Repository navigation
fix(bench-agent-surfaces): isolate repo digest history from the harness (#7296) - #7298
Conversation
|
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 reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 2 minutes. View limit details
Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
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. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: 28ce989
integration_basis: candidate base f07adc7; published PR base 5fc77a9. Independent comparison of those bases found 20 unrelated paths, with no benchmark/changelog overlap.
claim_boundary: repair repo identity's corpus-root binding and remove ambient-parent dependence from its tests; preserve existing identity semantics and tree controls.
changed_surfaces_and_semantic_owners_inspected: published two-file patch; identity_overlay; canonical/git_args/run_output and commit helpers; repo corpus preparation; spec0221 corpus identity; JSON/Markdown source_sha consumers; fixture setup, independent argv/digest oracle, dirty edits, error test; existing oracle-only tree drift, unchanged saved-diff pin and .git exclusion.
blocking_findings: no source, oracle, contract or platform defect found by independent reviewer /root/independent_review. Merge proof remains incomplete.
non_blocking_suggestions: none.
refuted_or_stale_findings: generic bot status success and an empty thread list are not semantic review; quota notices from Gemini/CodeRabbit are unavailable review. The mistyped local process-policy invocation was corrected to check-process-policy, whose actual gate passed.
proof_and_ci_observed: historical Analytics depth1 RED retained; untouched full base28/0; original shallow test RED with Git status128; real-fixture predecessor RED after successful setup; root-binding removal RED at wrong-digest equality; exact final-head full focused30/0 and original exact1/0; actual depth1 final-head supplied-binary focused30/0 and exact1/0. Shallow HEAD, one reachable commit, shallow=true and selected binary SHA2569b85ae5bb7153f09a5173a9205287d7157e86b36c9821de87c66c364e514a1f4 independently verified. Final process gate passed. Required run38097878592/job114347544286 on the published head is active.
proof_or_review_missing: terminal final check-fast/precommit, direct Cargo invocation from the shallow checkout, and terminal required Ripr Rust Small Result/integration evidence. Current hosted tests/doctests have not completed.
affected_currentness_dimensions: implementation, stimulus, oracle, public claim, consumers and exact published head inspected. No workflow/schema/permission/process allowance delta. Ready was requested once for hosted qualification and is not REVIEW_READY.
residual_assumptions_and_non_claims: actual prepare_repo_corpus selects the harness CWD today; no broader public wrong-root defect claim. No full Analytics/all-features/docs completion, native Windows execution, RC/release qualification or broad mutation adequacy claim. Historical fail-fast left2578 tests unrun. Main branch metadata and supported active ruleset18845973 require Ripr Rust Small Result, resolved threads and no bypass; classic review-protection read was403 and direct active-rules URL routing400, with no denied route retried. Ordinary protected squash remains the authority.
disposition: REVIEW_INCOMPLETE — source inspection is clean; final local and hosted proof is pending.
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: 28ce989
integration_basis: candidate base f07adc7; published PR base 5fc77a9. Independent comparison of those bases found 20 unrelated paths, with no benchmark/changelog overlap.
claim_boundary: repair repo identity's corpus-root binding and remove ambient-parent dependence from its tests; preserve existing identity semantics and tree controls.
changed_surfaces_and_semantic_owners_inspected: published two-file patch; identity_overlay; canonical/git_args/run_output and commit helpers; repo corpus preparation; spec0221 corpus identity; JSON/Markdown source_sha consumers; fixture setup, independent argv/digest oracle, dirty edits, error test; existing oracle-only tree drift, unchanged saved-diff pin and .git exclusion.
blocking_findings: no source, oracle, contract or platform defect found by independent reviewer /root/independent_review. Merge proof remains incomplete.
non_blocking_suggestions: none.
refuted_or_stale_findings: generic bot status success and an empty thread list are not semantic review; quota notices from Gemini/CodeRabbit are unavailable review. The mistyped local process-policy invocation was corrected to check-process-policy, whose actual gate passed.
proof_and_ci_observed: historical Analytics depth1 RED retained; untouched full base28/0; original shallow test RED with Git status128; real-fixture predecessor RED after successful setup; root-binding removal RED at wrong-digest equality; exact final-head full focused30/0 and original exact1/0; actual depth1 final-head supplied-binary focused30/0 and exact1/0. Shallow HEAD, one reachable commit, shallow=true and selected binary SHA2569b85ae5bb7153f09a5173a9205287d7157e86b36c9821de87c66c364e514a1f4 independently verified. All final local gates passed: check-process-policy; check-fast10 gates including strict workspace Clippy with correct2-file selector; complete exact-head precommit-v2 policy floor and package xtask all-target Clippy. Direct cargo test -p xtask --locked from the genuine depth1 checkout selected30/0; original exact1/0; both native0. Independent final inspection verified Cargo-selected executable path, actual shallow compile paths, shallowHEAD/tree/blob, count1, and both current/frozen shallow SHA256978debf9ad598343a47c674145989ee61c1f42adde4b39e0b2373cf16f32cb59; full frozen9b85... witness remains intact. Distinct bytes are retained once each. Required run38097878592/job114347544286 on the published head remains active in Required Rust tests; prior policy, process/network, workspace/all-features target and strict Clippy steps passed. Latest check-run snapshot had no failing checks and no Ripr Rust Small Result aggregate yet.
proof_or_review_missing: terminal required Ripr Rust Small Result, hosted required tests/doctests and integration evidence. Local acceptance and independent source/oracle inspection are complete; no source findings or unresolved threads observed.
affected_currentness_dimensions: implementation, stimulus, oracle, public claim, consumers and exact published head inspected. No workflow/schema/permission/process allowance delta. Ready was requested once for hosted qualification and is not REVIEW_READY.
residual_assumptions_and_non_claims: actual prepare_repo_corpus selects the harness CWD today; no broader public wrong-root defect claim. No full Analytics/all-features/docs completion, native Windows execution, RC/release qualification or broad mutation adequacy claim. Historical fail-fast left2578 tests unrun. Main branch metadata and supported active ruleset18845973 require Ripr Rust Small Result, resolved threads and no bypass; classic review-protection read was403 and direct active-rules URL routing400, with no denied route retried. Ordinary protected squash remains the authority.
disposition: REVIEW_INCOMPLETE solely for terminal hosted required/integration proof; source inspection is clean and all local acceptance is established. Handoff WAITING_REQUIRED_CHECKS per finish-pr: GitHub owns the next transition. No merge or auto-merge attempted; readiness must be refreshed from actual terminal checks before protected squash.
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- ripr sensor failed (exit 2) and no receipt was inspected; opposition lane did not independently re-execute cargo test or ripr against the final head. Author-provided table is the only execution evidence in this packet.
Verification questions
- Confirm two new tests assert
entry["input_digest"] == sha256(git -C root diff base)andsource_sha == harness_sha. Opposite digest on dirty edit (1730 vs 1731) is asserted, but parity with the harness cwd is not directly re-tested for the identity_overlay arm (relies on git_args path).
Refuted
- Fix should have introduced a new dedicated helper instead of reusing canonical+git_args in the identity_overlay repo arm; refuted because: Reusing canonical and git_args is the smallest complete fix: both helpers already encapsulate the canonicalization + empty-overlay convention; introducing a parallel helper would duplicate git-args construction and risk drift.
- repo_input_digest_uses_fixture_history_and_dirty_worktree could be flaky because unix_stamp/tmp dirs collide under parallel cargo test.; refuted because: Each test uses a unique
format!("ripr-bench-repo-{}-", unix_stamp())scratch dir guarded by DirGuard; collision risk is bounded to same-microsecond same-prefix runs, and cargo test runs tests in parallel by default but each gets its own tmp path. Not a blocker.
Parked follow-ups
- mirror mismatch risk: new test borrows test-time scratch path but production path stays anchored to the canonical corpus root passed by prepare_repo_corpus; no public API surface changed.
- Mutated ~4437 test no longer asserts null-digest/note for live-checkout corpus; it now delegates to repo_identity_fixture which writes a Cargo.toml+src/lib.rs and two commits. Comment claims synthetic .git above still exercises tree-digest exclusion.
- The repo_input_digest_uses_fixture_history_and_dirty_worktree test is not marked #[ignore] nor scoped with a feature gate; it runs serially with sibling history fixtures. If other tests under tests:: also call commit_corpus_base on the same scratch path concurrently, fixture SHA collisions are theoretically possible — but per-test unix_stamp isolation in scratch dir mitigates this and the DirGuard cleans up. Parked as low because no collision witness in current receipts.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Accountable triage of UB review5481373052, at unchanged head 28ce9893e341f8f6a5778c77c16aeac4a953ef7c.
No benchmark source defect is demonstrated by this review. The reported sensor exit2, absent an inspected command/stderr/receipt, is inconclusive instrument evidence; its cause is NOT_ESTABLISHED, and no sensor-pass claim is made. The opposition lane's lack of re-execution is a limitation of that review packet, not a failing test. Separately, the independent source/oracle reviewer inspected the actual terminal Cargo logs, verified shallow HEAD/tree/blob identity, and rehashed the selected and retained qualified executables; that inspection went beyond the author table.
The verification questions are already covered in repo_input_digest_uses_fixture_history_and_dirty_worktree:
- Lines4281–4286 capture ambient harness HEAD independently and require it to differ from fixture HEAD.
- Lines4300–4306 construct
git -C fixture diff captured_base_shaindependently ofgit_args, require the intended nonempty old/new file lines, and derive its SHA256. - Lines4318–4333 run the actual
identity_overlayarm for bothHEAD~1and the captured fixture base SHA, assertingsource_sha == harness_shaand recordedinput_digest == expected, for both committed1730 and dirty1731. Lines4310–4313 require the dirty digest to change. The other new test intentionally checks invalid-base error refusal/prefix; it does not redundantly assert digest/SHA parity.
The expected input is fixture-local while source_sha identifies the harness. The independently derived digest and the actual recorded value are compared; no expected-value oracle calls the production Git helper. Productionprepare_repo_corpusstill chooses harness CWD today, so this does not claim a broader public arbitrary-root defect.
The parked null-digest/note removal allegation is refuted by the retained explicit assertions: the test calls identity_overlay with the real repo fixture, requires tree_digest to be null, and requires tree_digest_note to contain “live checkout”. Earlier oracle-only drift, unchanged saved-diff digest and synthetic .git exclusion assertions remain. The helper supplies real history; it does not replace these assertions.
Actual final-head executions under pinned Rust1.95.0:
- Full checkout
cargo test -p xtask --locked bench_agent_surfaces:30 passed,0 failed, native0. - Genuine depth1 checkout, same direct Cargo command:30 passed,0 failed, native0.
- Original tree test with
--exact:1 passed,0 failed, native0 in each checkout, exercising the null/note and retained tree controls. - Tests-only predecessor and production root-binding removal: native101 at fixture-local wrong-digest equality after successful real two-commit setup, not unknown-ref/setup failure. Expected fixture diff digest
c08451751a92ae3705585fa8ffb9f32c4fada9d72636535e03613fdf927aa986; root-removal ambient digestf933117b5c592c204e14a743947b248559eec4c97f56b2c83de83978015d0677. - Final process policy, correct two-file selector/check-fast with workspace strict Clippy, and exact-head precommit passed.
These raw receipts and original executable witnesses remain in the owning execution environment's /workspace/bench-surfaces-evidence, with source/receipt mappings and hashes9b85ae5b…e514a1f4 (full) and978debf9…f32cb59 (direct shallow Cargo), as independently verified in the current-head inspection.
The collision/serial wording is also imprecise: unix_stamp uses milliseconds, standard tests can run in parallel, and identity/error/tree use distinct scratch prefixes and separate fixture roots. No collision or shared-root witness was supplied. No ignore/feature gate, global CWD change, extra helper or process allowance is needed.
The UB artifact11686538448 is listed for this exact head. The connected download exposed a file reference, but local retrieval of that file URL was blocked by the network proxy: Tunnel connection failed:403 Forbidden. That route was stopped without retry. Its sensor receipt remains unread; this is retained as a provider evidence limitation, not converted into a clean sensor result or a source defect.
Independent triage agrees: no source repair or repeated expensive proof is justified by these assertions. Source/oracle/local acceptance is established; after current-head required tests/doctests/integration and Ripr Rust Small Result actually pass, this advisory COMMENT does not independently prevent REVIEW_READY. Current disposition remains REVIEW_INCOMPLETE for required hosted proof only. Parent owns spaced CI monitoring; no duplicate CI polling, head change, merge or auto-merge was performed. Analytics all-features/full-suite acceptance remains with #7142.
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: 28ce989
integration_basis: candidate source base f07adc7; current PR/main base 5fc77a9. Required hosted logs show fetch-depth 0 and actual merge checkout 7e86971 integrating this exact head into that base. Prior independent comparison found 20 unrelated base paths and no overlap with either changed file.
claim_boundary: bounded source repair for repo identity's corpus-root binding and the tests' ambient-parent dependence. Production prepare_repo_corpus still selects the harness current directory; no broader public arbitrary-root defect is claimed. Analytics completion parent #7142 remains open.
changed_surfaces_and_semantic_owners_inspected: retain the substantive exact-head source, helper/consumer, spec0221, platform and oracle inspection recorded in review5481366366. It covered the published xtask/src/reports/bench_agent_surfaces.rs and changelog.d/7296-bench-repo-digest-fixture.md patch, identity_overlay, canonical/git_args/run_output and existing pinned commit helpers, source_sha as harness identity, digest/error semantics, saved-diff precedence, null live-tree digest/note, and the #5971/#7012/#7065 tree controls. Independently constructed fixture-local diff and successful fixture setup distinguish the predecessor and root-binding-removal REDs from repaired GREEN. This refresh adds actual terminal hosted/integration evidence, without new source changes or builds.
blocking_findings: none.
non_blocking_suggestions: none.
refuted_or_stale_findings: the pending hosted-only REVIEW_INCOMPLETE disposition and PR body's WAITING_REQUIRED_CHECKS snapshot are superseded by this terminal proof. Accountable UB triage5481386569 remains applicable: no demonstrated source defect; fixture-local digest/source_sha parity is asserted by the behavior regression; the separate invalid-base test preserves refusal semantics; null/note controls remain explicit. The reported optional sensor exit2 is inconclusive instrument evidence with cause NOT_ESTABLISHED, not a sensor-pass claim. No review thread remains unresolved. Provider quota notices do not establish a semantic review.
proof_and_ci_observed: retained local exact-head acceptance is 30/0 focused and 1/0 original exact test from both full and genuine depth1 Cargo checkouts; native0. Historical shallow RED, actual tests-only predecessor wrong-digest RED after fixture setup, root-removal wrong-root behavioral RED, tree/saved-diff/.git controls, independent fixture-local digest equality and dirty-edit movement remain preserved. Existing final process-policy/check-fast/precommit receipts passed without new allowances; distinct full/shallow qualified compiler artifacts were independently rehashed in the prior inspection.
I directly inspected permitted connector run/job metadata, decoded hosted/aggregate logs, artifact metadata, current head/base, checks and review discussion. Run38097878592, attempt1, completed success at 2026-10-11T00:52:25Z. Hosted job114347544286 succeeded: cargo nextest run --workspace --profile ci ran 14,233 tests across 67 binaries, all 14,233 passed, 2 skipped; all 30 bench_agent_surfaces tests passed, including both new repo-input tests and the original tree identity test. cargo test --workspace --doc produced 2 passed,0 failed,1 ignored in one target and 0 doctests in the other. Policy/process/network, workspace/all-target and all-features ripr target checking, strict workspace Clippy, golden/fixture/verdict corpus contracts and PR evidence steps succeeded.
Required Ripr Rust Small Result114353465972 is completed/success at this exact head, GitHub Actions app15368. Its decoded aggregate log establishes TARGET=github, ROUTE_RESULT=success, GITHUB_RESULT=success, DOCS_ONLY=false; runner_api_failed selected the permitted hosted fallback. No failed/timed-out/action-required check was observed. Required nextest artifact11686099161 is unexpired and bound to this head, published digest sha256:89ba04da0010a6a0b9663cb446ef2a9be9661eba8b667de3c4d5e52a87aef81d. Wildcard artifact11686628530 is also listed at this head. Artifact metadata/decoded upload logs were inspected; archive contents were not downloaded in this refresh.
proof_or_review_missing: none required for this bounded source REVIEW_READY disposition. Optional advisory reports, sccache stats and RIPR report uploads were skipped and remain NOT_ESTABLISHED. Independent reviewer refresh: Independently read terminal run/jobs/artifact metadata and decoded hosted/aggregate logs via the GitHub connector. Confirmed exact head/base/merge checkout, actual nextest/doctest counts, all30 benchmark PASS lines, required aggregate success and artifact metadata; no remaining scoped readiness fact missing. Earlier source/oracle/local full/shallow/policy inspections stand. REVIEW_READY.
affected_currentness_dimensions: hosted execution and integration proof refreshed from actual terminal results. Source/oracle/helper/contract/platform dimensions remain current at unchanged head; current base/merge checkout are identified above. Latest discussion has no new untriaged concrete finding and review_threads is empty.
residual_assumptions_and_non_claims: hosted nextest was the workspace/default-feature profile, with full history; all-features target checking is not an all-features full-suite execution. #7142 full Analytics completion is unresolved: historical run38086252734/job114314709105 had 11,757 passed,1 failed,2 skipped and2,578 unrun after fail-fast. This repair's full/shallow focused proof and required hosted success do not close that broader boundary. No RC, native Windows, release/package publication, deployment or runtime mutation-adequacy claim. Classic review-protection read403, connector active-rules route400, invalid shell gh authentication, and optional sensor artifact local-file retrieval403 remain documented; none was retried or bypassed. Supported main metadata/ruleset reads established required context, thread resolution, zero approvals and no bypass. The platform reported executor disconnect at00:54; no local receipt update was attempted or needed. The permitted GitHub connector established every newly required hosted fact. No source edit, build, Ready toggle, CI rerun or merge performed in this refresh. Parent coordinator is the sole merge writer and must perform the final ordinary protected-merge eligibility handshake.
disposition: REVIEW_READY
Analytics' depth-1 checkout exposed a benchmark identity test that borrowed the harness's parent history. Repository input digests now use the canonical corpus root through the existing Git helper, and the test's repository case owns real two-commit history.
Closes #7296. Analytics completion parent #7142 remains open.
Swarm / Source Boundary
Ordinary source repair in EffortlessMetrics/ripr-swarm. Exactly two files: xtask/src/reports/bench_agent_surfaces.rs and changelog.d/7296-bench-repo-digest-fixture.md. Independent of #7288/#7295 and #7289/#7293.
Source-of-truth / Candidate
RIPR-SPEC-0221 (agent-surface benchmark); preserved #5971/#7012/#7065 tree identity controls.
Head:
28ce9893e341f8f6a5778c77c16aeac4a953ef7c.Base:
f07adc7daa4485d02be19cec0ee4d85218e1147d.Tree:
21671cf7fe33ee77c6b36f5dcfb4e31d320e8b77.No prerequisite stack or replacement. All-state finding searches and all open PR file lists refreshed before editing/publication; no equivalent benchmark writer.
Production and Evidence Delta
The repository digest uses canonical corpus.root and existing git_args with empty configuration/environment overlays. Hashing, saved-diff precedence, error refusal/prefix, harness source_sha, null live-tree digest and note retain their meaning. prepare_repo_corpus still selects the harness current directory; this repair does not establish a broader public arbitrary-root defect.
A separate fixture uses existing pinned commit helpers. Tests establish two commits and exact parent/base identity before invoking identity_overlay. An independently constructed git -C fixture diff must contain the intended file and old/new lines. Recorded digests equal that diff for both HEAD~1 and the captured base SHA, and move after dirty fixture edits. Existing oracle-only tree drift, unchanged saved diff digest and synthetic .git exclusion controls remain.
Acceptance / Observed Proof
Pinned Rust 1.95.0, Linux, 4-CPU quota/16 GiB memory, two build jobs, one bounded target; no profile/pin changes.
Raw receipts and source/removal witnesses retained in /workspace/bench-surfaces-evidence; Git retains the exact predecessor and candidate objects. Distinct qualified compiler artifacts are retained with source/receipt mappings: full-head SHA2569b85ae5bb7153f09a5173a9205287d7157e86b36c9821de87c66c364e514a1f4 and direct shallow Cargo SHA256978debf9ad598343a47c674145989ee61c1f42adde4b39e0b2373cf16f32cb59. One mutable target was admitted up to15 GiB with an unchanged8 GiB free-space reserve; no duplicate frozen witness for unchanged bytes. Filtered integration binaries with zero selected tests do not add to the 30-test denominator.
Review / Gates
Independent exact-head source/oracle/consumer inspection found no blocking finding and verified final policy receipts. All requested local focused acceptance is established from full and actual depth1 Cargo checkouts. Current disposition REVIEW_INCOMPLETE solely for terminal hosted required/integration proof. Published Draft first, then marked Ready exactly once on the final head through the normal route; Ready is not merge readiness.
Required Routed Rust Small run38097878592/job114347544286 remains in Required Rust tests at the current snapshot; prior policy, process/network, workspace/all-features target checking and strict Clippy steps passed. Ripr Rust Small Result has not yet appeared, and required doctests remain pending. No failing check or unresolved review thread was observed. No protected merge or auto-merge attempted. GitHub owns the next transition; handoff state WAITING_REQUIRED_CHECKS.
Main branch metadata requires Ripr Rust Small Result. Active main ruleset18845973 requires thread resolution, zero approvals and no bypass actors. Classic review-protection read returned403 Resource not accessible by integration; direct active-rules URL was rejected400 by connector routing, while the supported ruleset read succeeded. No denied route retried or rule/gate changed. Protected merge remains the authority.
Claim Boundary / Policy / Rollback
No full Analytics/all-features/doc-test completion, RC qualification, native Windows execution or runtime mutation adequacy claim. No workflow, runner, permission, process allowance, dependency, schema, release/package publication, deployment, credential or security change. Existing spec/code/test mapping is documented here; traceability manifest remains outside the exclusive file scope. Revert this scoped squash through a normal reviewed source PR. Next source claim: none selected.