Repository navigation
fix(benchmark): preserve unknown costs and reject invalid passes - #204
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f764023190
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .verifier_result.rewards.reward as $reward | ||
| | if $reward == null then false | ||
| elif (($reward | type) != "number") then error("reward must be a finite number or null") | ||
| elif ($reward | isfinite | not) then error("reward must be a finite number or null") |
There was a problem hiding this comment.
When a result contains Python-style NaN, jq 1.7 parses it as a number and NaN | [isfinite, isnan] evaluates to [true,true]. This branch therefore falls through to $reward >= 1, reports the trial as an ordinary failure, and exits successfully, contrary to the new contract that non-finite rewards reject the input. Check isnan explicitly and add a corresponding regression fixture.
Useful? React with 👍 / 👎.
| if (( ${#files[@]} == 0 )); then | ||
| files=(/dev/null) |
There was a problem hiding this comment.
Reject inaccessible job directories
When the caller can stat a populated job directory but lacks permission to enumerate or search it, nullglob expands this pattern to zero files and the fallback reads /dev/null; the command then exits successfully with a zero-trial row. This silently turns an access failure into apparently valid benchmark data and can omit every attempted trial, whereas the previous literal unmatched glob caused jq to report an error. Distinguish an inaccessible directory from a genuinely empty one before applying the fallback.
Useful? React with 👍 / 👎.
What changes for users
Harbor cross-harness summaries now keep missing/null pricing unknown instead of reporting it as zero. Derived cost-per-attempt/pass is withheld when any trial has unknown cost; explicit zero remains known. Exception-bearing trials cannot count as passes, and malformed rewards/costs and overflowing totals reject instead of producing misleading results. Empty job directories produce a zero-trial row.
Why / design
Linear: ENG-950, ENG-957 (bounded reporting prerequisite under ENG-809).
Slice: supervised-delegation D6a.1, instrument correction under D6.
Changed files:
benchmarks/harbor/compare/summarize.sh,test-summarize.sh, itsREADME.md, anddocs/plans/progress/supervised-delegation.md.These are synthetic parser controls, not competitor results, model trials, evaluator-isolation evidence, or proof of complete supplier costs. Paid D6b measurements remain outside this change.
How verified
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo build --workspacecargo test --workspace --no-fail-fast -- --test-threads=1: 1,908 passed, 0 failed, 5 intentionally ignored, exit 0 (2026-09-26 07:30:16–07:33:55 UTC).bash -n; ShellCheck; Git whitespace checks.Full-suite run used pinned Rust 1.97.1, canonical TMPDIR, stripped inherited credentials, NO_COLOR unset, TERM=xterm-256color and COLORTERM=truecolor. Prior ambient-environment failures are retained in the delivery receipts; no Rust code or tests were weakened. The suite ran at d365a01; final head f764023 only records the outcome in the ledger. All executable source/config/tests are identical. Earlier fmt/Clippy/build passes apply to that unchanged source.
Independent non-author review approved the benchmark source and final head/tree
879e9b93d288cec90dd1589f5021e233b3c36e77, verified unchanged source blobs, and independently aggregated the raw full-suite counts. Review receipt SHA-256:780f9914004eb5d8e5e590619871eedab12cb581dea58a54a9a678014494aa86. Raw logs, reviews and verified Git bundle are retained in the Manager delivery handoff for this unit. Hosted checks are separate and pending at creation.Impact