Repository navigation
Open
Labels
Description
This was generated by AI during the Spec review of #1468.
What the finding is
A Custom runner that crashes, times out or never writes result.json after sending provider traffic that no recorded session accounts for keeps its failed outcome, with no accounting_gap Void and no gap session. Failed Trials are not Void, so they enter paired cost ratios. That Trial then counts as a cheap $0.00 run for the Custom-runner Arm.
Evidence
src/evals/experiment/execution/custom.rscollectchecks for accounting gaps only whenreportedis true, meaning the runner wrote a validresult.json. The comment above it states this on purpose: "outer supervision (a timeout, a runner that could not start) and broken runner protocol keep theirfailedclassification". Without a valid result, evidence errors are dropped (Err(_) => {}).src/evals/experiment/accounting.rsputs non-Void Trials, failed ones included, into paired cost ratios.- The existing test
timed_out_runner_after_provider_traffic_stays_failedasserts this behaviour. - The review ran this test in
src/evals/experiment/execution/custom/tests.rs. It fails, because the outcome staysfailedwith no Void cause:
#[test]
fn crashed_runner_after_unrecorded_provider_traffic_is_an_accounting_gap() {
let root = attempt();
let mut recorder = Recorder::start(root.path()).unwrap();
let runner = runner(root.path(), json!({"command": ["runner"], "providers": ["openai"]}));
let traffic = Accounting { provider_connections: 1, harness_invocations: Vec::new() };
let mut output = Output::failed(1_000, "missing or unreadable Custom runner result.json; exit status: 7; stderr: ");
collect(&mut recorder, &runner, &traffic, &mut output, false, &root.path().join("signal")).unwrap();
assert_eq!(output.void_cause, Some(VoidCause::AccountingGap), "{:?}", output.cause);
}Raised by
The Spec review of pull request #2203, which delivers Spec #1468.
Why the review did not decide it
Spec #1468 sets two rules that disagree here:
- "Outer supervision (
interrupted,sandbox_unavailable,memory_cap,host_killed, liveusage_limit, timeout ->failed) keeps precedence", and "runner crashes or missingresult.jsonwithout outer Void evidence record that Trial asfailed". - "if provider traffic occurred … with zero recorded sessions … the Trial is voided as
accounting_gap", and User Story 22: "omitted or deleted sub-agent sessions never produce artificially cheap$0.00Trials".
The implementation gives precedence to the first rule. There are three ways to settle it, and each changes how Scores and costs read:
- Void such Trials as
accounting_gap. The Bar would then retry them, and a broken runner's failures would stop counting against its Score. - Keep them
failedfor the Score, but record their cost as unknown. Paired cost ratios would then exclude them. - Keep today's behaviour.
The Spec and the Day shift own that trade-off, so this pull request does not change it.
Activity
JacobStephens2 commentedon Nov 15, 2026
Investigation Summary
Current state against
mainsrc/evals/experiment/execution/custom.rsandsrc/evals/experiment/execution/custom/tests.rs) are not onmainyet (ea4bd94f); they live in open Draft PR Spec: Custom-runner Arms for process Experiments #2203 (issue-1468, headef1ab4d7, currentlyCONFLICTINGwithmain), which delivers Spec Spec: Custom-runner Arms for process Experiments #1468.HEADBaseline resume pinning).Confirmed findings
failedon PR Spec: Custom-runner Arms for process Experiments #2203:custom::resultmarksreported = trueonly whenprocess.status.success()is true andoutput/result.jsonis valid version-1 JSON. Timeouts, crashes/nonzero exits (even ifresult.jsonexists), non-OOMSIGKILL, and missing/invalidresult.jsonleavereported = falseandOutcome::Failed.custom::collectchecksaccounting_gap(unrecordedprovider_connections,harness_sessions < crossed.len(), andrecorder.collect()errors) only whenreported && output.outcome != Outcome::Void, dropping evidence errors viaErr(_) => {}when!reported. (Commitfe577acbalso documented this rule indocs/eval-tasks.md,docs/experiment-results.md,docs/guide.md, andsite/docs/index.html, and addedreportedtotimed_out_runner_after_provider_traffic_stays_failed.)execution.rs(trace.grade) still runsaccounting::captureand voids any non-Void Trial whoseaccounting.gap()isSome. Thus arecord_commandsession that times out before emitting usage still becomesVoid(AccountingGap)viaaccounting::capture, whereas unrecorded provider calls (withoutrecord_command), failedsessions.jsonimports, or extra unrecorded calls after an earlier completedrecord_commandsession skip the gap check when!reported.$0.00enters paired cost ratios and estimates (main): WhenOutcome::Failedhas no.spans.jsonlfiles inattempt/session/,accounting::capture(src/evals/experiment/accounting.rs:112-129) emits no gap session,trial_total(accounting.rs:200-219) folds empty sessions toSome(0.0),paired_ratios(accounting.rs:334-366) includes allresult.outcome != Outcome::Voidpairs,efficiency::Comparison::of(src/evals/experiment/efficiency.rs:114) accepts0.0ratios (*ratio >= 0.0), andcost::history(src/evals/experiment/cost.rs:112) countsSome(0.0)towardpriced_trialsin pre-run estimates.Trade-offs for the Day shift to decide
accounting_gap: Note a correction to the original issue body—VoidCause::AccountingGapis not inBar::default().void_rules.causes(src/evals/experiment.rs:120-133), soWriter::can_continue(src/evals/experiment/trial.rs:180-201) does not retry it under the default Bar. Instead,grading::evaluate(src/evals/experiment/grading.rs:482-486, 555-589, 645) drops the task from both Arms and makes the ExperimentInconclusiveifdropped > total / 10. Either way, crashed/timed-out runner failures after provider traffic would stop counting against the Arm's Score.failedfor Score, mark cost as unknown (cost_usd: None): Preserves the failure against the Arm's Score and excludes the pair frompaired_median_ratios.costandefficiency.costratios. Note that under existingefficiency.rs,accounting.rs, andcost.rssemantics, aNoneTrial cost setsefficiency.cost.complete = false(omitting the bootstrap interval and causing--cost-ceilingto returnInconclusive), setsArm.total.cost_usd = None(unknown), and withholds the Arm's pre-run mean cost estimate. Becauseexecution.rs:355-361currently voids any non-Void Trial that has a sessiongap, implementing this requires representing unpriced/incomplete failed accounting without triggering theVoid(AccountingGap)conversion (and updatingdocs/experiment-results.mdandtests/experiments/result_format.rs). Also decide whetherrecord_commandtimeouts without usage (and native Trials that crash/time out before creating session files) should follow the same rule.$0.00(or partial) costs for unrecorded crashed/timed-out Trials in paired cost ratios and pre-run cost history.Next step for the Day shift
Decide between options 1, 2, or 3 (and whether to apply the decision directly to PR #2203 before merge or track it as a follow-up Ticket after #2203 lands), then shape the implementation or move back to
needs-triageonce the decision and target branch state are settled.