Repository navigation
bench: encode the agent-discrimination A/B harness with #13113 validity fixes - #13259
Conversation
…ty fixes
Encode the validated Nov 2-4 agent-efficiency A/B harness as
benchmarks/agent-discrimination/, following the targeted_rerun_benchmark
precedent (claims-limited framing; not a product-quality corpus).
Scenario identity: scenarios/<name>/{original,changed} content trees plus
make-scenario-crates.sh, which materializes fresh two-commit repos with
pinned identity and fails closed unless the rebuilt HEADs equal the
recorded seed-study SHAs (8662538, 006aaf4, ed7af52; reproduction and
tamper fail-closed verified at encode time).
Validity fixes from #13113: per-run cloned crates (scripts refuse shared
temp roots and Cargo-workspace ancestors), step-zero toolchain PATH
normalization in eval.sh/build-contexts.sh and the prompt, true cargo
exit codes captured in run_phase (the seed evaluator's RC=$? after an
assignment swallowed them), and record-run.sh (validated structured
fields, atomic report writes, summary.csv derived from the reports).
Recorded first calibration: the 5 of 9 retained seed-study records under
results/seed-study/ with the 9-vs-5 premise gap documented; captures are
sanitized of the recording host's machine paths per check-local-context
doctrine (mapping in results/seed-study/README.md).
Proof: eval.sh negative control (non-discriminating test ->
DISCRIMINATES: no, exit 1) and positive control (recorded study test ->
DISCRIMINATES: yes, exit 0, true phase-2 exit=101 now reported);
markdown-links, check-doc-index, check-doc-artifacts, check-local-context,
check-static-language, check-file-policy, check-executable-files,
check-workspace-shape all pass.
Follow-ups noted in README, not implemented: xtask runner integration and
N-growth to >= 12 hardened scenarios (uplift is unmeasurable at the
current easy difficulty - recorded finding).
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 20 minutes. View limit details
|
ripr static exposure checkCommit Took 22s. |
|
REVIEW_READY disposition: COMMENT (author self-review; every claim below was executed against this exact head, 974fd5f, in the encoding lane) Surfaces reviewed: Invariants verified on this head:
Risks accepted: the 5-of-9 record gap is documented rather than reconstructed; both third-party reviewer bots were rate-limited this run (missing review for those providers, not clean review); the ripr static-advisory comment on this PR is advisory and expected — the scenario crates intentionally ship baseline tests that do not discriminate the change under study. Residuals/non-goals: xtask runner integration and N-growth to >= 12 hardened scenarios are recorded as follow-ups in the README; uplift remains unmeasurable at the current difficulty (recorded finding). |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Author self-review recorded on the published head 974fd5f; every claim below was executed in the encoding lane against this exact tree.
Surfaces reviewed: benchmarks/agent-discrimination/ (README, RUNBOOK, eval.sh, record-run.sh, make-scenario-crates.sh, build-contexts.sh, scenarios/, contexts/, results/seed-study/), policy deltas (policy/non-rust-allowlist.toml, policy/workspace_shape.txt, .ripr/static-language-allowlist.toml), and one non_rust_programming_retention_reason clause in xtask/src/main.rs.
Evidence verified on this head: the scenario generator reproduces the recorded seed-study SHAs exactly (86625387aaf5..., 006aaf48af8a..., ed7af52a019f...) and a one-line scenario tamper fails closed (got 274f7f88da73, expected 86625387aaf5, exit 1). Evaluator positive control (the recorded study test): DISCRIMINATES yes, exit 0, with the true phase-2 cargo exit 101 reported where the seed evaluator printed 0. Evaluator negative control (a non-discriminating test): DISCRIMINATES no, exit 1. The shared-temp refusal exits 2 with a disclosed AGENT_BENCH_ALLOW_TEMP=1 override; the Cargo-workspace-ancestor refusal matches the real cargo behavior (a workspace-nested clone exits 101). record-run.sh measures context bytes itself and rejects zeroed fields, non-positive rounds, unknown variant, run-id mismatch, and a verdict contradicting the evaluator line (all five rejections executed); summary.csv is derived from the reports on every write (5 seed records + 1 new record -> 6 sorted rows, no temp residue). vanilla.txt byte counts are unchanged study captures (1178/1099/1762).
Known gaps carried honestly: 5 of 9 seed-study records are retained (the 4 unretained cells are documented and unrecoverable); uplift is unmeasurable at the current easy difficulty (recorded finding); both third-party reviewer bots were rate-limited this run, so their review is missing rather than clean; the ripr static-advisory comment on this PR is advisory and expected, since the scenario crates intentionally ship baseline tests that do not discriminate the change under study.
Follow-ups remain open by design: xtask runner integration and N-growth to >= 12 hardened scenarios are recorded in the README, outside this claim.
|
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Author re-attestation on the updated head 3910c16: this head merges origin/main at a24077d (which carries 9d296a5, the #13246 duplicate check-fast registration reconcile) into the benchmark encoding at 974fd5f with no source changes to the benchmark itself. Re-proven on this merged tree: check-command-catalog pass (the previously inherited duplicate-entry failure is resolved), markdown-links pass, check-doc-index pass, check-doc-artifacts pass, cargo fmt clean. The evaluator positive/negative controls, per-run clone protocol, gates, and record-run validations were verified on the identical benchmark content in this lane and are unchanged by the merge.
|
|
# Conflicts: # xtask/src/main.rs
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Author re-attestation on head 9a9659e: merges origin/main at 9d0174e; the only conflict was adjacent clause additions at the top of non_rust_programming_retention_reason in xtask/src/main.rs, resolved by keeping both this PR's benchmarks/agent-discrimination clause and main's new tools/activate-rust.sh and tools/test-activate-rust.sh clauses (#13123) unchanged. cargo fmt clean on the resolved tree; the benchmark content is identical to the previously re-proven head.
…fests for the dependency surface check-dependencies flags benchmarks/agent-discrimination/scenarios/*/Cargo.toml as unallowlisted dependency surfaces (observed in the PR #13259 hosted Rust gates run). They are analyzed fixture inputs with no dependencies, matching the benchmarks/agentic and muse-plugin fixture_input precedents. Verified locally: cargo xtask check-dependencies passes.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Author re-attestation on head f9b7be0: adds one dependency_allowlist.txt fixture_input line for the scenario manifests, mirroring the benchmarks/agentic and muse-plugin precedents; fixes the check-dependencies rejection observed in the previous hosted gates run. Verified locally on this tree: cargo xtask check-dependencies passes (exit 0). No other content changed.
Review-thread finding on PR #13259: the summary rebuild globbed every results-dir *.md, so the checked-in results/seed-study/README.md (a provenance document with no run_id field) tripped the empty-field guard and exited 2 after the report was already moved into place, breaking the derived-summary guarantee. Only files whose first lines carry run_id: are treated as run records now. Re-verified end to end on the exact defect scenario (seed-study copy including README.md + one new record): exit 0, summary.csv rebuilt with exactly the 6 record rows.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Author re-attestation on head 0fcc343: adds the record-run summary-rebuild skip for non-record markdown (the graphite-app thread finding, fixed, verified end to end on the exact defect scenario, thread replied and resolved). The dependency_allowlist fixture_input line from the previous head is unchanged; check-dependencies was verified passing locally on that content. No other changes.
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the source-binding route reaches from evaluator output to the recorded report, but the checked-in historical reports lack the digest that record-run.sh now requires.
- Confirm workspace-ancestor detection is broader than Cargo's workspace discovery rule because it rejects any ancestor Cargo.toml, not specifically a manifest with a workspace table.
- Confirm the ripr static sensor failed, while the harness itself depends on ripr output semantics for context construction and the top-finding explain command.
Refuted
- No changed Rust or shell path uses ArrayBuffer, TypedArray, resizable buffers, detach, transfer, or an active view over a separately mutable backing store.
- The harness has no browser-worker concurrency surface; orchestration is process-per-run shell state, so GC, detach, transfer, and worker-lifetime hazards are out of scope.
Parked follow-ups
- Record writing uses same-directory temporary files, a directory lock, and an EXIT cleanup trap; the remaining concern is operational concurrency rather than memory lifetime.
Evidence gaps
- No completed cargo-test receipt was available, leaving the advertised hostile-route controls as source evidence rather than completed exact-head execution.
- Model proof intent was rejected by deterministic validation.
- The checkpoint lacks a completed cargo-test receipt, and shell/fixture paths remain sensitive to unusual filesystem names or external process behavior.
- The packet has no completed cargo-test receipt, despite Rust behavior and tests changing; the seeded thread also reports hosted qualification still pending.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE
The ancestor walks were changed to check filesystem and drive roots, and the conservative refusal wording was corrected. Independent source review found no new blocker; focused ordinary-path controls passed. Actual root and Windows Git Bash execution remain unverified, and the local check-fast continuation was interrupted under memory pressure before completion. Hosted qualification and final integration review remain pending.
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm the new recorder's source-digest check cannot reproduce the five checked-in seed records, which intentionally lack TEST_SOURCE_SHA256.
Parked follow-ups
- The generated context route now refuses Cargo-manifest ancestors before writing outputs; actual Windows drive-root and native Git Bash behavior remains unexecuted here.
- The report writer uses a results-directory lock, temporary files, and atomic renames, but report and summary publication are separate operations rather than one transaction.
- The new harness mitigates but does not eliminate operational risk when a report is committed before its derived summary rename fails.
Evidence gaps
- The supplied packet contains no completed cargo-test receipt; the ripr sensor failed with exit code 2.
- Model proof intent was rejected by deterministic validation.
- The focused harness claims sibling invocation coverage across evaluator, recorder, context builder, and generator, but the current packet contains no completed cargo-test receipt.
- The current packet lacks a completed cargo-test receipt, and native Windows/Git Bash root traversal was not proven here; existing controls cover ordinary POSIX paths, simulated root behavior, and focused scenario scenarios.
- Exact-head Rust test completion is still not evidenced in the supplied packet, so the compile/test route remains a manual verification gap.
ff8844c to
71be507
Compare
|
Lane note (branch-collision recovery, issue #13113's documented shared-writer phenomenon): commits ff8844c/f2d6f3e1d0/7a3eea7242 authored by a Codex runtime were pushed onto this lane's branch docs-benchmark-encode on top of the attested benchmark head 71be507, rewriting eval.sh, record-run.sh, RUNBOOK.md, build-contexts.sh and make-scenario-crates.sh and adding test-harness.sh. That content was not produced or verified by this lane's review and evidence trail (the eval.sh controls, gates, and thread fix were verified against 71be507 exactly). The branch is restored to 71be507 with a lease-guarded push; the foreign tip is preserved intact for its author on refs/heads/preserve/codex-benchmark-branch-20261105 (ff8844c), where it can be delivered through its own reviewed PR. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Author re-attestation on the restored head 71be507, superseding the later-dated reviews that were posted on the foreign branch tip (7a3eea7, f2d6f3e) by another runtime sharing this account: this PR's candidate is again exactly the attested benchmark encoding whose hosted Rust gates run passed (41m33s, run 42047598431, job 127315235028). The foreign commits remain preserved on refs/heads/preserve/codex-benchmark-branch-20261105 for their author's own delivery.
…review failure) into docs-benchmark-encode
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Author re-attestation on head fb85ec6: merges origin/main at 0e4e140. The previous tests-shard failure (output::human::agent_tests::check_agent_preview_only_run_projects_the_discriminator_and_stops_advisory) was attributed as inherited and upstream-repaired: reproduced failing on pure main at the merge-ref base 2c08890 on Linux (WSL, exit 101, no benchmark content present) and passing on pure main at 916392a after #13168's fix to the same file (Windows exit 0 and WSL exit 0), with zero overlap between this PR's diff and crates/ripr. The benchmark content is unchanged from the previously verified heads.
Graphite-app review threads on PR #13259: the 'cd ... || pwd' command substitutions always succeeded, so a missing crate path silently resolved to the process cwd (eval.sh, with the not-found error branch unreachable) and a missing --out-dir wrote contexts to the cwd instead of creating the directory (build-contexts.sh). Both now check existence first: eval.sh prints the not-found error and exits 2; build-contexts.sh creates the out-dir or fails with an actionable error. Verified: eval.sh on a nonexistent path exits 2 with the clean error; build-contexts.sh with a nonexistent out-dir creates it and writes the regenerated contexts there (vanilla.txt 1178 bytes, matching the recorded study capture).
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Author re-attestation on head 060b631: fixes both graphite-app error-path findings (eval.sh crate-path not-found now exits 2 with the clean error instead of silently resolving to the cwd; build-contexts.sh creates a missing out-dir up front or exits 2), both verified on the exact scenarios, threads replied and resolved. No other content changes from the head whose full hosted run was green (gates 37m43s pass, all four tests shards pass, run 42211499758).
|
N-growth corpus audit (2026-11-11) — verdict: What was re-checked (origin/main, after #13509): Exact gap: the bar is this corpus's own wording — "N-growth to >= 12 hardened scenarios where vanilla does not trivially succeed", where the recorded hardness evidence is a vanilla run failing to discriminate in one round (README caveat; LEARNINGS 2026-11-04 durable rule: scenarios "hard enough that the vanilla baseline sometimes fails, at N ≥ 12 with Wilson intervals"). Against that bar the corpus stands at 0 of ≥ 12 verified hardened:
Hardness must be demonstrated by a recorded vanilla non-success via Next authoring batch (for the owning lane; ~9–12 new scenarios so ≥ 12 hardened once re-measured): small
Open mechanical question for that lane: the three seed scenarios carry recorded study context captures ( |
Governing issue or accepted claim: agent-efficiency study (Nov 2-4)
Acceptance delta (one sentence): the validated A/B harness is encoded as
benchmarks/agent-discrimination/with all four #13113 validity fixes enforced in-repo (per-run cloned crates with shared-temp and Cargo-workspace-ancestor refusal, toolchain PATH normalization, true cargo exit codes, populated-and-validated structured records with atomic report writes and a derivedsummary.csv), plus the 5 retained seed-study records as the recorded first calibration.What this encodes
scenarios/<name>/{original,changed}/content trees +scenario.json+make-scenario-crates.sh: the three scenario crates as scripted generators with pinned commit identity. Verified at encode time on the recording host: rebuilt HEADs reproduce the recorded seed-study SHAs byte for byte (86625387aaf5,006aaf48af8a,ed7af52a019f), and a one-line tamper makes the generator fail closed (got274f7f88da73, expected86625387aaf5, exit 1).contexts/<scenario>/{vanilla,ripr-context,tool-note}.txt: the recorded Nov 2-4 context captures;build-contexts.shregenerates per-run contexts against a run-owned clone.eval.sh(the sole discriminator oracle),record-run.sh,RUNBOOK.md(updated per-run protocol),README.md(claims-limited framing per thetargeted_rerun_benchmarkprecedent: measures discrimination-at-context-cost on 3 recorded scenarios with the pinned prompt template and the objective two-phase evaluator; not a product-quality corpus), andresults/seed-study/.#13113 validity fixes (all four)
F:/Temp,/tmp,/var/tmp— verified exit 2) and Cargo-workspace-ancestor destinations (verified: cargo claims a workspace-nested clone with exit 101, so the generator and evaluator refuse with an actionable message).eval.sh/build-contexts.shand the prompt template (TOOLCHAIN: cargo at ...line in every eval output).run_phasecaptures cargo's true exit status; the positive control now reports phase-2exit=101where the seed evaluator printedexit=0(theRC=$?-after-assignment swallow).record-run.shmeasurescontext_bytesitself, validates run-id/variant/rounds/verdict (five fail-closed rejections verified, including a--discriminatesvalue contradicting the evaluator's ownDISCRIMINATES:line), writes each report and the derivedsummary.csvwith an atomic rename, and refuses concurrent writers. A crash between the two renames can leave the summary stale until a later successful rebuild (verified mixed re-derivation over the 5 seed records + 1 new record = 6 rows).Recorded first calibration (5 of 9 records)
The study ran 9 solver runs; 5 run records are retained (all
discriminates: yes,rounds: 1). The 4 unretained records (threeripr-contextcells +silent-return-vanilla) are not recoverable — that loss is exactly #13113's recording defect, which the new recorder addresses for successful writes. Uplift is unmeasurable at this difficulty (recorded finding): both retained vanilla cells already discriminated in 1 round, so the study shows cost, not benefit. Captures are sanitized of the recording host's machine paths per check-local-context doctrine; the mapping and byte-count semantics are documented inresults/seed-study/README.md.Proof (run in this lane)
DISCRIMINATES: no, exit 1, reason "test also passes on CHANGED behavior".DISCRIMINATES: yes, exit 0.cargo xtask markdown-links/check-doc-index/check-doc-artifacts/check-local-context/check-static-language/check-file-policy/check-executable-files/check-workspace-shape/cargo fmt --check: all pass.Policy deltas
policy/non-rust-allowlist.toml:benchmarks/agent-discrimination/**fixture entry (the shell scripts must run under the solver's POSIX shell beside cargo/git; an xtask port cannot host them).policy/workspace_shape.txt: fixture-manifest line for the scenario crates (never workspace members).xtask/src/main.rs: onenon_rust_programming_retention_reasonclause for the harness scripts, following the.ci/contabo-*.shprecedent..ripr/static-language-allowlist.toml: three whole-file entries for the capturedtool-note.txtfiles — bytes are verbatim study evidence with pinned byte counts, so inline per-line allows would falsify the record.Non-goals / follow-ups (not implemented)
xtask runner integration; N-growth to >= 12 hardened scenarios where vanilla does not trivially succeed. Scenario difficulty, tokenizer precision, and cross-model variance are #13113 non-goals.
Repair continuation at 3c82618
The focused harness controls now cover ambiguous test names, exact integration target selection, workspace-ancestor refusal, fresh context output directories, test-source digest mismatch, and overlapping record-writer refusal. Phase logs live in the run-owned crate. The digest identifies the selected source file, not included dependencies. See the continuation comment for executed evidence and outstanding review and qualification. The historical study observations are unchanged.