Repository navigation
Conversation
…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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
Summary
only_the_candidate_arm_carries_the_candidate_textfailed 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
beforecallbacks: n/a.Documentation
Verification
cargo test -p xtask --features eval-tests --bins scenario_eval::tests::only_the_candidate_arm_carries_the_candidate_text -- --exact— passed, 13 s.cargo fmt --all -- --check --config error_on_line_overflow=truecargo clippy --workspace --all-targets --locked --features xtask/eval-tests -- -D warnings— exit 0.Refs #2308