Skip to content

bench: encode the agent-discrimination A/B harness with #13113 validity fixes - #13259

Merged
EffortlessSteven merged 8 commits into
mainfrom
docs-benchmark-encode
Nov 6, 2026
Merged

EffortlessSteven merged 8 commits into
mainfrom
docs-benchmark-encode

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

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 derived summary.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 (got 274f7f88da73, expected 86625387aaf5, exit 1).
  • contexts/<scenario>/{vanilla,ripr-context,tool-note}.txt: the recorded Nov 2-4 context captures; build-contexts.sh regenerates 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 the targeted_rerun_benchmark precedent: 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), and results/seed-study/.

#13113 validity fixes (all four)

  1. Writers: per-run cloned crates; the scripts refuse shared temp roots (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).
  2. PATH: step-zero toolchain normalization in eval.sh/build-contexts.sh and the prompt template (TOOLCHAIN: cargo at ... line in every eval output).
  3. Exit codes: run_phase captures cargo's true exit status; the positive control now reports phase-2 exit=101 where the seed evaluator printed exit=0 (the RC=$?-after-assignment swallow).
  4. Records: record-run.sh measures context_bytes itself, validates run-id/variant/rounds/verdict (five fail-closed rejections verified, including a --discriminates value contradicting the evaluator's own DISCRIMINATES: line), writes each report and the derived summary.csv with 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 (three ripr-context cells + 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 in results/seed-study/README.md.

Proof (run in this lane)

  • eval.sh negative control: non-discriminating test → DISCRIMINATES: no, exit 1, reason "test also passes on CHANGED behavior".
  • eval.sh positive control: the recorded seed-study test → 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: one non_rust_programming_retention_reason clause for the harness scripts, following the .ci/contabo-*.sh precedent.
  • .ripr/static-language-allowlist.toml: three whole-file entries for the captured tool-note.txt files — 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.

…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).
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 155 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 5da7def2-e40e-40a0-bb65-c06b8a4424f7
Commits

Reviewing files that changed from the base of the PR and between 0e4e140 and 060b631.

Files ignored due to path filters: 1

  • benchmarks/agent-discrimination/results/seed-study/summary.csv is excluded by !**/*.csv
Files selected for processing: 55

  • .gitattributes
  • .ripr/static-language-allowlist.toml
  • benchmarks/agent-discrimination/.gitignore
  • benchmarks/agent-discrimination/README.md
  • benchmarks/agent-discrimination/RUNBOOK.md
  • benchmarks/agent-discrimination/build-contexts.sh
  • benchmarks/agent-discrimination/contexts/flipped-comparison/ripr-context.txt
  • benchmarks/agent-discrimination/contexts/flipped-comparison/tool-note.txt
  • benchmarks/agent-discrimination/contexts/flipped-comparison/vanilla.txt
  • benchmarks/agent-discrimination/contexts/inserted-guard/ripr-context.txt
  • benchmarks/agent-discrimination/contexts/inserted-guard/tool-note.txt
  • benchmarks/agent-discrimination/contexts/inserted-guard/vanilla.txt
  • benchmarks/agent-discrimination/contexts/silent-return/ripr-context.txt
  • benchmarks/agent-discrimination/contexts/silent-return/tool-note.txt
  • benchmarks/agent-discrimination/contexts/silent-return/vanilla.txt
  • benchmarks/agent-discrimination/eval.sh
  • benchmarks/agent-discrimination/make-scenario-crates.sh
  • benchmarks/agent-discrimination/record-run.sh
  • benchmarks/agent-discrimination/results/seed-study/README.md
  • benchmarks/agent-discrimination/results/seed-study/flipped-comparison-ripr-tool-r01.md
  • benchmarks/agent-discrimination/results/seed-study/flipped-comparison-vanilla-r01.md
  • benchmarks/agent-discrimination/results/seed-study/inserted-guard-ripr-tool-r01.md
  • benchmarks/agent-discrimination/results/seed-study/inserted-guard-vanilla-r01.md
  • benchmarks/agent-discrimination/results/seed-study/silent-return-ripr-tool-r02.md
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/changed/.gitignore
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/changed/Cargo.toml
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/changed/src/lib.rs
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/changed/tests/baseline.rs
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/original/.gitignore
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/original/Cargo.toml
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/original/src/lib.rs
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/original/tests/baseline.rs
  • benchmarks/agent-discrimination/scenarios/flipped-comparison/scenario.json
  • benchmarks/agent-discrimination/scenarios/inserted-guard/changed/.gitignore
  • benchmarks/agent-discrimination/scenarios/inserted-guard/changed/Cargo.toml
  • benchmarks/agent-discrimination/scenarios/inserted-guard/changed/src/lib.rs
  • benchmarks/agent-discrimination/scenarios/inserted-guard/changed/tests/baseline.rs
  • benchmarks/agent-discrimination/scenarios/inserted-guard/original/.gitignore
  • benchmarks/agent-discrimination/scenarios/inserted-guard/original/Cargo.toml
  • benchmarks/agent-discrimination/scenarios/inserted-guard/original/src/lib.rs
  • benchmarks/agent-discrimination/scenarios/inserted-guard/original/tests/baseline.rs
  • benchmarks/agent-discrimination/scenarios/inserted-guard/scenario.json
  • benchmarks/agent-discrimination/scenarios/silent-return/changed/.gitignore
  • benchmarks/agent-discrimination/scenarios/silent-return/changed/Cargo.toml
  • benchmarks/agent-discrimination/scenarios/silent-return/changed/src/lib.rs
  • benchmarks/agent-discrimination/scenarios/silent-return/changed/tests/baseline.rs
  • benchmarks/agent-discrimination/scenarios/silent-return/original/.gitignore
  • benchmarks/agent-discrimination/scenarios/silent-return/original/Cargo.toml
  • benchmarks/agent-discrimination/scenarios/silent-return/original/src/lib.rs
  • benchmarks/agent-discrimination/scenarios/silent-return/original/tests/baseline.rs
  • benchmarks/agent-discrimination/scenarios/silent-return/scenario.json
  • policy/dependency_allowlist.txt
  • policy/non-rust-allowlist.toml
  • policy/workspace_shape.txt
  • xtask/src/main.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 060b631237a4 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=0e4e1406cbbdc16a7e0e51dc4db4efafa1a24ca0 findings=36 gaps=4 exposed=6 infection_unknown=3 static_unknown=23 weakly_exposed=4
weakly_exposed|benchmarks/agent-discrimination/scenarios/silent-return/changed/src/lib.rs:16|match method|missing=No strong discriminator was detected|test=t1|id=probe:benchmarks_agent-discrimination_scenarios_silent-return_changed_src_lib.rs:match_arm:da4079ce
weakly_exposed|benchmarks/agent-discrimination/scenarios/silent-return/original/src/lib.rs:16|match method|missing=No strong discriminator was detected|test=t2|id=probe:benchmarks_agent-discrimination_scenarios_silent-return_original_src_lib.rs:match_arm:5fdeb5c1
weakly_exposed|xtask/src/main.rs:23829|return Some( "Agent A/B discrimination harness scripts must run under the solver…|missing=No strong discriminator was detected|test=t3|id=probe:xtask_src_main.rs:return_value:ce35b742
weakly_exposed|xtask/src/main.rs:23829|Some( "Agent A/B discrimination harness scripts must run under the solver's POSI…|missing=No strong discriminator was detected|test=t3|id=probe:xtask_src_main.rs:return_value:a5190aac
t1=benchmarks/agent-discrimination/scenarios/silent-return/changed/src/lib.rs:33 card_settles_next_day exact_value `assert_eq!(settlement_hours(PaymentMethod::Card, false), 24);` miss=observation_unconfirmed
t2=benchmarks/agent-discrimination/scenarios/silent-return/original/src/lib.rs:33 card_settles_next_day exact_value `assert_eq!(settlement_hours(PaymentMethod::Card, false), 24);` miss=observation_unconfirmed
t3=xtask/src/main.rs:1347 committed_workspace_test_changes_select_rust_gates relational_check `if !changed_files_vs_base(&root)?.is_empty() { return Err("clean selector fixtur…` miss=weak_assertion
limits=infection_unknown:3,static_unknown:23
next=ripr explain --root /home/runner/work/ripr-swarm/ripr-swarm/head --base 0e4e1406cbbdc16a7e0e51dc4db4efafa1a24ca0 --committed --mode draft --format agent probe:benchmarks_agent-discrimination_scenarios_silent-return_changed_src_lib.rs:match_arm:da4079ce

Took 22s.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

REVIEW_READY

disposition: COMMENT (author self-review; every claim below was executed against this exact head, 974fd5f, in the encoding lane)

Surfaces reviewed: benchmarks/agent-discrimination/ (README, RUNBOOK, eval.sh, record-run.sh, make-scenario-crates.sh, build-contexts.sh, scenarios/, contexts/, results/seed-study/), plus policy deltas (non-rust-allowlist.toml, workspace_shape.txt, .ripr/static-language-allowlist.toml) and one non_rust_programming_retention_reason clause in xtask/src/main.rs.

Invariants verified on this head:

  • Scenario identity: make-scenario-crates.sh reproduces the recorded seed-study SHAs exactly (86625387aaf5..., 006aaf48af8a..., ed7af52a019f...); a one-line tamper to a scenario tree fails closed (got 274f7f88da73, expected 86625387aaf5, exit 1).
  • Evaluator direction oracle: positive control (recorded study test) → DISCRIMINATES: yes, exit 0, with the true phase-2 cargo exit (101) now reported where the seed evaluator printed 0; negative control (non-discriminating test) → DISCRIMINATES: no, exit 1.
  • Validity gates: shared-temp refusal (exit 2) and AGENT_BENCH_ALLOW_TEMP=1 disclosure verified; Cargo-workspace-ancestor refusal verified against the real cargo failure mode (workspace-nested clone → exit 101).
  • Record integrity: 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's own DISCRIMINATES: line (all five rejections executed); summary.csv is derived from reports on every write (verified 5 seed records + 1 new record → 6 sorted rows, no tmp residue).
  • Captured evidence: vanilla.txt byte counts unchanged (1178/1099/1762, matching the recorded study values); sanitized files carry the placeholder mapping documented in results/seed-study/README.md with dual byte pins in scenario.json.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head 974fd5ff), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

merge-ready was requested, but this PR conflicts with main (head 3910c160), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

# Conflicts:
#	xtask/src/main.rs

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

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.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 6, 2026 04:43
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

Comment thread benchmarks/agent-discrimination/eval.sh Resolved
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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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).

@EffortlessSteven

Copy link
Copy Markdown
Member Author

N-growth corpus audit (2026-11-11) — verdict: verified_current; the benchmark is landed but the scenario corpus is short of the hardened target and growth is still owed.

What was re-checked (origin/main, after #13509): benchmarks/agent-discrimination/scenarios/ contains exactly 3 scenarios — inserted-guard (reproduces 86625387aaf5), flipped-comparison (006aaf48af8a), silent-return (ed7af52a019f). Since this PR merged (squash d808febf4bb), the only bench-directory changes are #13460 (merge 9022b3c469, concurrent record isolation) and #13509 (merge f36929da764, evidence binding to isolated runs); both touched zero files under scenarios/. PR/issue searches (benchmark scenario, agent-discrimination, hardened scenarios, 12 hardened, scenario N-growth) found no scenario-growth PR and no dedicated tracking issue — the follow-up lives only in this issue body and the README "Follow-ups" list. #13162 encoded the study learnings with the recorded finding in its title ("uplift needs harder scenarios").

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 record-run.sh, not asserted at authoring time; an unmeasured scenario must not be counted toward the 12 (at 3/3 vanilla successes the Wilson 95% floor is 43.8% — an all-success baseline cannot certify or refute uplift).

Next authoring batch (for the owning lane; ~9–12 new scenarios so ≥ 12 hardened once re-measured): small {original,changed} crates whose discriminating input is not recoverable from the diff at a glance — the known-easy seed pattern inverted. Candidate families, all fitting the existing ripr-agent-discrimination-scenario-v1 schema (baseline_tests_discriminate: false, changed file src/lib.rs, deterministic identity via make-scenario-crates.sh):

  1. Composite boundary — the discriminating input needs two variables jointly at the boundary (the study's decisive fact was a single input, missing=age == 65; make the single-input read a trap).
  2. Error-class reclassification — one Err variant remapped or silently absorbed among several (a narrower sibling of silent-return).
  3. Numeric semantics — rounding direction, integer truncation, saturating/clamping arithmetic (fee rounding, proration).
  4. Ordering/tie-breaking — stable-sort key change, dedup-first vs dedup-last, earliest-vs-latest match wins.
  5. Partial-failure batch semantics — settle-until-first-failure: which items committed before the abort is the discriminating observation.
  6. Cross-call state — idempotency guard or second-call-dependent behavior not visible from one obvious call.
  7. Precedence/override — a later rule shadowing an earlier one, or stacking-order flip.

Open mechanical question for that lane: the three seed scenarios carry recorded study context captures (seed_study_context_bytes_* pins); new scenarios will have none. Define how their scenario.json context pins are produced (recorded via record-run.sh on the first vanilla measurement) before authoring. The existing benchmarks/agent-discrimination/** policy/shape entries should already cover added crates — verify with cargo xtask check-file-policy / check-workspace-shape rather than adding new policy deltas.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant