Skip to content

test(xtask): state each arm's requests when the candidate-text flow fails - #2323

Open
eric8810 wants to merge 1 commit into
mainfrom
dim/2308-eval-candidate-flow
Open

eric8810 wants to merge 1 commit into
mainfrom
dim/2308-eval-candidate-flow

Conversation

@eric8810

Copy link
Copy Markdown
Collaborator

Summary

only_the_candidate_arm_carries_the_candidate_text failed once on a loaded macOS runner (run 46094294606) with only the assertion name: whether the current arm compacted at all, or compacted with a prompt that lost its text, was not in the message. Those are different failures and only the second would be a product defect (#2308).

The failure now prints, for each run, the record, and per arm every recorded request with its byte size and whether it carried the product prompt or the candidate text. The next occurrence answers "did compaction run in the current arm?" from its own message.

Not a fix: the trigger is still unproven. The flow sizes its window from a probe run (4·fixed), so the first request crosses the 0.8B trigger by about 8%, and the steer's two accepted shapes move the run inside that margin. Twenty sequential runs and twenty runs at four-way concurrency pass locally, so this change is the evidence the next occurrence needs.

Design rule checklist

  • Scope: n/a — one evaluation flow's failure message.
  • Commands and results: n/a.
  • Handover: n/a.
  • Timeline before callbacks: n/a.
  • Infrastructure: unchanged.
  • Core mechanisms and consumers gain no plugin-specific handling: n/a.
  • Batch: n/a.
  • Context: n/a.
  • No reading another plugin's internal state or deciding for it: n/a.
  • Cross-language faces: n/a.
  • Business configuration stays out of loader rows: n/a.
  • Missing mechanism capabilities: none. The sizing margin itself is tracked in scenario_eval: the current arm can carry no summarizer request in the candidate-text flow #2308.
  • Timeline holds only facts later decisions use: n/a.

Documentation

  • No accepted ADR is modified or deleted.
  • No other module's design is changed.
  • No delivery status is added to an ADR, index or roadmap.

Verification

  • cargo test -p xtask --features eval-tests --bins scenario_eval::tests::only_the_candidate_arm_carries_the_candidate_text -- --exact — passed, 13 s.
  • Twenty sequential runs of the same flow — all passed.
  • Five rounds of four concurrent runs of the compiled test binary — all passed.
  • cargo fmt --all -- --check --config error_on_line_overflow=true
  • cargo clippy --workspace --all-targets --locked --features xtask/eval-tests -- -D warnings — exit 0.

Refs #2308

…ails

The flow asserts that the current arm's requests carry the summarizer prompt;
when that failed on a loaded macOS runner the message said only which
assertion tripped, not whether compaction ran at all — a current arm with no
summarizer request and a current arm whose prompt went missing are different
failures (#2308).

The failure now lists each run's record and, per arm, every request with its
size and whether it carried the product or candidate text, so the next
occurrence answers the question from its own message.

Twenty sequential runs and twenty runs at four-way concurrency pass locally,
so the trigger is still unproven; this change is the evidence the next
occurrence needs, not a fix.

@zerob13 zerob13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new diagnostic still cannot tell whether compaction ran. In the changed failure report, the summarizer flag uses the same phrase whose absence triggered the assertion. If compaction ran but the prompt lost that phrase, the flag is false just as when compaction never ran. The judge-view estimate is not the input estimate for the arm under test.

For each arm, report independent evidence of whether compaction started and what happened, plus the relevant compaction input estimate from the run. Keep the useful request-marker flags and omit prompt and event bodies. Verify that a missing phrase after actual compaction is distinguishable from no compaction. This is the diagnostic requirement in #2308, not a request to fix the underlying failure here.

Assertion semantics are unchanged. I checked the original macOS failure log and compared the two diagnostic cases with inert data. Exact CI had Linux eval verification pending.

@yyhhyyyyyy yyhhyyyyyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Round 1 at f1f8fa74. The change is diagnostic only: only_the_candidate_arm_carries_the_candidate_text builds a diagnosis string from the two run records and each arm's recorded requests, and appends it to the two positive assertion messages. The assertion conditions, their predicates, and the test parameters are unchanged.

The message is correct. records are the runs.jsonl values, current and candidate are the request strings collected from the provider, and request.len() is the byte size. The summarizer and candidate flags use the same substrings as the assertions below them (xtask/src/scenario_eval.rs:16843-16857), and the messages at :16862 and :16874 are the only edits besides that block. Empty vectors print 0 requests; the request text itself is not printed, so the failure output stays bounded to one line per record plus one line per request. Building the string on the passing path costs a few formats over two short vectors.

Verification: ran the exact named test locally under the real HOME with CARGO_TARGET_DIR in the data directory: 1 passed, 0 failed, 220 filtered, 10.28 s. CI at review time: changes, evaluate-pr, issue-gate and macos-native pass; verify (linux) is in progress; other jobs are skipped. No P0-P2 findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants