Skip to content

test(cli): pin ripr check argument refusals, timeout env parsing and refusal documents - #9965

Merged
EffortlessSteven merged 6 commits into
mainfrom
claude/project-thread-labtg5-cli-check-tests
Oct 30, 2026
Merged

EffortlessSteven merged 6 commits into
mainfrom
claude/project-thread-labtg5-cli-check-tests

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Pin ripr check argument refusals, timeout selection and refusal documents without changing production behavior. Strengthen the original regression tests so valid-but-wrong JSON, an unrelated timeout failure, or an artifact written outside the observed destination cannot satisfy the oracle.

Source-of-truth Links

Proposal: none; existing test-gap claim.
Spec: RIPR-SPEC-0241
ADR: none; no architecture change.
Plan item: core CLI regression coverage.
Governing issue or accepted claim: #9965 check argv/config/timeout refusal discrimination.
Acceptance delta (one sentence): Tests exercise real argv/environment/config and analysis-budget paths, pin typed refusal documents and native exits, and reject intentional wrong exits and documents without production behavior changes.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-labtg5-cli-check-tests
Stack parent or prerequisite PR (if any): no source stack; #9968 is integrated. Qualification depends on the canonical #10586 repair landing and appearing in the hosted subject.
Proposed replacement of PR (if any; not yet accepted): none.
Acceptance retained from a replaced candidate (if any): none.
Accepted winner and losing candidate disposition (when decided): this existing PR remains the sole candidate; no replacement.

Scope

Production delta: none. The only addition in production-owned code is a #[cfg(test)] module registration.

Evidence delta:

  • Twenty library tests cover argument conflicts, roots, timeout parsing, help and refusal formats. Machine oracles now require typed refusal semantics.
  • Existing process timeout precedence test now requires successful nonempty analysis.
  • New Unix/Rust process test observes real delayed Git diff execution, checks flag/environment budget selection and analysis_timeout / analysis/timeout, and requires nonempty analysis with the budget disabled.
  • Correct fixture cleanup ownership, absolute artifact destinations and malformed-ledger error classification.
  • Traceability records these tests under the existing refusal contract.

Rollback: revert test and traceability additions. Non-goals: production changes, new output contracts, exhaustive option combinations, native-platform budget qualification or descendant-containment proof.

Changelog: exempt test-only evidence change; no behavior, API, output, workflow or public-doc impact under CHANGELOG_POLICY.md.

Validation

Candidate: 09223ec742d0ee6435816bfc6afc632023f88c9e, tree 5a68b50b9718fd783cfcb1ed83ed87428bdf8e20, integrated basis a1c1a33f075d7cc3a5e532c93d054f473fe05202.

  • Resolved the actual main conflict by retaining both check_budget_refusals and cli_value_contracts modules, each with its correct feature/platform gate. Independent review of the identical committed tree found no additional source or oracle defect.
  • All 20 argv-refusal library tests passed at 7bac5d0f, whose tree exactly matches published predecessor 69c71155, including the repaired bad-base expectation. The independent literal Windows/Unix path-policy controls also passed. Native Windows bad-base execution remains required.
  • Eleven focused process tests passed, each selecting exactly one test. They cover actual config failure, six machine formats, argv usage, success, timeout precedence and delayed real Git analysis. These receipts retain their recorded source/artifact identities.
  • Actual production controls: changing failure exit 2 to 0 made the unchanged process test fail with the expected exit mismatch; replacing the production JSON refusal with {} made it fail on missing schema. All four product builds succeeded. Original and restored binary hashes match, and the same test passed against both. Eleven process tests passed again after restoration. The original, distinct negative and unchanged test executables are retained.
  • Predecessor local gates passed: check-fast (14 gates; independently verified stable five-file selector), check-process-policy, ci-policy and precommit. Doctor's behind-only result was advisory under repository policy; the later actual content conflict was separately established and repaired.
  • The composed published head is now running 16 focused process cases, all 20 library tests and applicable local gates. These are pending until terminal native results are inspected.
  • Observed GitHub merge subject: c64a3878c89380941468dbeb6cf053631e2488bd, parents c8f08a0cd218ac46c8855c3cbb32d184217e9a47 + candidate, tree 9b1e70fb9615263356208a88cc9cf4403952b478. Its additional delta is five Rust corpus files; this is a source observation, not an executed qualification receipt. test: python_repair_attempt fails when target/debug/ripr is replaced mid-run in a nextest shard #10586 is not repaired by this integration.
  • Successor hosted qualification remains held for test: python_repair_attempt fails when target/debug/ripr is replaced mid-run in a nextest shard #10586 and native Windows proof.

Historical qualification passed 21,559 selected tests, five skipped, and subsequent gates on merge commit 0f0d95f2aad65f06735e22e7279ed86e831ca661. That receipt remains bound to the earlier head and is not proof of this repair.

Continuation

Owner / governing claim: this PR's existing candidate and bounded CLI regression claim.
Candidate: exact published head, basis, tree and observed merge subject above; Draft.
Review: independent source/test-oracle review is non-blocking; final REVIEW_INCOMPLETE. The native Windows bad-base thread remains open.
Validation: predecessor evidence retained; composed-head proof is running as described above.
Dependency: #10586 has an established inherited driver-image defect and one canonical repair owner. Its repair, independent review and landing remain separate; preserve all affected receipts and holds.
Next: finish composed-head local proof. After the canonical #10586 repair lands, verify its source in the actual hosted merge subject, refresh affected review and request qualification once. Obtain native Windows execution of the named bad-base test through an existing authorized route. Protected merge requires successful current-head REVIEW_READY publication/readback, terminal required checks and a separate current-head/integration verification.

…refusal documents

Add lib-level regression tests for ripr check paths that only the process-level
suites or nothing exercised: the --output-dir conflict matrix, --committed
conflicts, --path/--exclude scope refusals, --suppression-policy and
--write-artifact refusals, --gap-ledger format/read errors, repo-scope
--diff/--base validation, RIPR_CHECK_TIMEOUT and --timeout parsing, help
detection, machine refusal documents and implicit workspace root rebinding.
Test-only; no production change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AK27agKoC3u5B3sbY3XRTA
@coderabbitai

coderabbitai Bot commented Oct 23, 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 40 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 149 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: 5560aa2a-a0dd-483f-9b5a-e8ad3294570a
Commits

Reviewing files that changed from the base of the PR and between a1c1a33 and 8a1dac8.

Files selected for processing: 5
  • .ripr/traceability.toml
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/cli/commands/check_argv_refusal_tests.rs
  • crates/ripr/tests/cli_smoke.rs
  • crates/ripr/tests/cli_smoke/check_budget_refusals.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 12:37
gemini-code-assist[bot]

This comment was marked as resolved.

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

Verification questions

  • Confirm the PR description says all 20 focused tests passed, but only adversarial review evidence is available in this packet.
  • Confirm the strongest route-completeness uncertainty is sibling CLI variants outside the new conflict matrix.
  • Confirm workspace-wide sibling parity was not established; this packet checks check.rs and its shared test helpers, not every CLI command or argv parser entry point.

Refuted

  • The test file introduces an unsafe lifetime or pointer-ownership defect.; refuted because: The diff contains no unsafe block, raw pointer, borrowed callback, or manual reclamation; temporary values remain owned by local variables and RAII guards. unsafe-review reported new_gaps=0 and worsened=0.
  • The test suite could create a denial-of-service through timeout or path handling.; refuted because: The new tests reject negative, empty, non-numeric, and overflowing timeout values and use bounded local fixtures; no runtime production path is changed.
  • The tests may miss a sibling CLI route or parser branch.; refuted because: The lane traced broad route classes—conflict refusals, root validation, timeout parsing, help detection, machine refusal rendering, and workspace rebinding—but did not establish exhaustive coverage of every option variant; this remains a bounded verification gap rather than a demonstrated bug.
  • The timeout tests could involve an integer or string backing view that becomes stale or is resized.; refuted because: check_timeout_from_env receives an already-owned String result, and parse_check_timeout_from converts a scalar argument to Duration. No buffer, ArrayBuffer, TypedArray, resize, detach, transfer, or borrowed length snapshot exists.
  • The cwd-sensitive test can permanently alter process-wide current directory for later tests.; refuted because: It takes cwd_lock before mutation and installs CwdRestore before the first set_current_dir, so normal paths restore the original directory during unwinding.

Evidence gaps

  • The new tests claim exact refusal coverage, but the supplied packet contains a failed ripr sensor and no cargo-test receipt.
  • Hosted execution was not available to this lane, and the PR's ripr sensor exited 2; the scheduled cargo-test receipt is therefore still material residual evidence.
  • The strongest unresolved verification concern is execution.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Ripr Rust Small on GitHub Hosted / Rust gates failed in cargo xtask goldens check on fixture selector_swap_try_error_arm_control (human-full.txt, a leftover (observation_unverified) marker). This PR is test-only and does not touch that fixture or any output code: the drift comes from #9950 and #9928 interacting on main. Fix already exists in open #9968 (merge-ready), which re-blesses that fixture. Once #9968 lands I will update this branch onto main and re-request qualification; no re-run until then.


Generated by Claude Code

EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member Author

Owner / governing claim: existing source owner; #9965's bounded check-argv regression coverage.
Candidate: 96abb28ee3d3187743f0e72eda0425394d8af8b8, unchanged.
Current state: Draft, verified after the authorized transition at 15:36 UTC. This supersedes the earlier blocked Draft-operation status; the canonical branch and existing label were left unchanged.
Review: source inspection 5630494944 and execution/integration supplement 5630549325 found no blocking source/test-oracle defect. Final REVIEW_INCOMPLETE / WAITING_INTEGRATION_PROOF. The existing TempRoot P2 remains deferred in its resolved thread.

Historical integration receipt at main97df16cb (source-only; superseded below)

  • Candidate head: 96abb28ee3d3187743f0e72eda0425394d8af8b8; merge base 91e38cc95bfe33f35efb9617687f42567a5f0d9c.
  • Current main: 97df16cb946c7f5af0b34760d5be69a879139ffd; tree 0eb0658f7f7bbca9fee7bdb0a84c2bcf3c84f220.
  • Native git merge-tree --write-tree 97df16cb946c7f5af0b34760d5be69a879139ffd 96abb28ee3d3187743f0e72eda0425394d8af8b8 exits 0, yielding expected combined tree 6a687ce2cea27a6d8bacceac127808061028b582.
  • Against that main, the combined tree changes exactly the two owned paths: four added lines in crates/ripr/src/cli/commands/check.rs and 619 added lines in check_argv_refusal_tests.rs. All 20 test functions and the entire test-file bytes are preserved from the reviewed head. Test Git blob f8d9c0fda3a95ad60134bbeb31c892959c45a80b; SHA-256 c85737994010fe56a49127f766865467040402e218f721286d4dc9883670ad47. Removing only the exact new test-module registration makes combined check.rs byte-identical to current main's check.rs.
  • Landed shared-golden repair 0abe9d41f9e7dcdf439d020db793d5b202b704fa (fix(output): make the infection_unknown next step name a concrete action #9968) is an ancestor of this main. The complete selector fixture expected-output directory is unchanged since that repair. Its human-full golden is identical in current main and the predicted combined tree, omits the stale marker, and has SHA-256 e223fecf104e5e1d985d0c553e0ee2c45bab27e3f29b481bd5e3e01a4c8d22e6.
  • The intervening main changes since the executed 592aa74 basis affect TypeScript snapshot tracking/cache, Python guard activation and pilot placeholder wording. The tested CLI/check/refusal helpers, main process exit mapping, Cargo manifests and lockfile have no delta in that interval. This is applicability/source inspection, not execution of the new combined tree.
  • Machine receipt /workspace/pr9965-review/current-main-integration.json, SHA-256 7ca7eddaaa03a17893e9af31e5ba0c329f9abe9069f5cbe21aea5ce42af87b77.

Previously pinned source-owner recipe (refresh to the latest basis below before use)

In the existing canonical candidate-owned worktree, first re-read the PR head and source status. If the head is still the reviewed 96abb28 and the tree is ready for integration, a normal git merge --no-edit 97df16cb946c7f5af0b34760d5be69a879139ffd should produce tree 6a687ce2cea27a6d8bacceac127808061028b582. Verify the actual tree, preserve the tests and shared-golden bytes above, and publish through the existing branch with an ordinary non-force push after the expected-head reread. If main or head changed, inspect that delta and refresh this receipt first.

Then inspect the actual GitHub PR merge commit, parents and tree: it must bind the new published head and include #9968's repair. Refresh affected focused proof and exact-head review while Draft, followed by the normal Ready/merge-ready request once when green is credible. Preserve current-run ownership; do not re-request over queued/running work. Passing required checks and final published-head REVIEW_READY enable ordinary protected expected-head squash and main readback.

Validation retained: required job 120417962484 explicitly passed all 20 added lib tests; 20,136 workspace tests passed/five skipped and doctests two passed/one ignored, then qualification FAILED at the selector golden and later gates skipped. Those results remain bound to actual checkout 5cbef9d1f2aed50eba7ed0cae6447955a1c2f04b (base6417e7cf + candidate). Separate actual binary proof at main592aa747/combinedbd8ec3 passed 22 public CLI cases and four wrong-result controls; see review5630549325 for full identities and its retained instrument correction. Native Windows/macOS and full current-main qualification remain unestablished; exhaustive command coverage is not claimed.

Actual blocker: the remote PR merge ref is still 5cbef9d, tree 2f448fe9590b37a139fb8b6cd5a1adc4fa4a9f2d, missing #9968. No owner integration, changed published head or reviewable successor is observed. The current-head run listing still shows the old failed request39954755676 and no active returned run. No new CI, test/build, owner-branch write, auto-merge or merge was requested in this continuation.

Resources: the earlier owned build/probe are terminal/native0; their review worktree was removed after source-bundle verification. /workspace/pr9965-review retains source/command/stream receipts and the new source-only integration receipt. /workspace/pr9965-target retains the actual selected executable/build state for the parent/source-owner continuation. Pre-existing and other reviewers' environment-loss resources remain untouched. Classic protection403 remains an unretried read limitation; active main ruleset18845973 and normal merge protections are preserved.

16:22 UTC material-basis refresh; adoption still pending

Live GitHub and Git reads agree that #9965 is still Draft at unchanged 96abb28ee3d3187743f0e72eda0425394d8af8b8, with remote merge subject 5cbef9d1f2aed50eba7ed0cae6447955a1c2f04b. There is no new source-owner discussion, adopted integration head or published successor observed. Claim-specific all-state search for check_argv_refusal_tests.rs returns this existing PR. Current-head qualification remains failed request39954755676; no new request was created.

Main is now d5a4942faaf272e41ac6f31dc3c0e8eab9836407. Its two intervening merges since the pinned97df receipt are #9937 (report literal/Markdown handling plus new locked pulldown-cmark/unicase dependencies) and #9657 (bounded human Evidence legend and its expectations). These are material rendering/build-input changes: the earlier executed binary at main592aa747 is not execution evidence for this new basis, and neither it nor the completed 20-test proof was rerun or relabeled.

Native source-only git merge-tree --write-tree d5a4942faaf272e41ac6f31dc3c0e8eab9836407 96abb28ee3d3187743f0e72eda0425394d8af8b8 exits0 and produces tree da979f18648d902c32742bef45d6cf070d07b08d. The owned delta remains exactly +4 check-module registration lines and the unchanged 619-line/20-test file. All test bytes are preserved, and removing exactly the registration leaves check.rs identical to this main.

#9968 remains an ancestor. The complete selector expected-output directory in the predicted composition equals current main. Its human-full bytes still equal the landed #9968 repair and omit the stale marker. The directory as a whole has legitimately changed since #9968: #9657 adds its legend to human.txt and records that change in CHANGELOG.md. Preserve those newer expectations along with the delivered human-full repair.

Updated machine receipt: /workspace/pr9965-review/current-main-integration.json, SHA-256 717a374388b04e093a3ad8f7e82b537419fb5577887bd8e0ae8b7e8a925fcb95. The prior97df receipt is retained as integration-97df16cb.json. This is a clean predicted composition, not adopted source or current-basis runtime qualification.

Next executable owner step remains canonical main adoption and publication. In the source-owned worktree, after source-status and expected-head rereads, the pinned normal merge for this receipt is git merge --no-edit d5a4942faaf272e41ac6f31dc3c0e8eab9836407; expected tree is da979f18648d902c32742bef45d6cf070d07b08d. Re-read/refine if either ref moves, publish normally, then verify actual GitHub merge identity and refresh affected proof/review before one qualification request. The delivery reviewer can review that exact adopted head when published and carry eligible work through normal expected-head protected squash. No branch takeover, new build/CI, extra worktree or merge attempt was made during this refresh.

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

Independent source review: no blocking source or test-oracle defect found in this test-only candidate. Final merge disposition remains REVIEW_INCOMPLETE.

  • reviewed_head_sha: 96abb28ee3d3187743f0e72eda0425394d8af8b8 (re-read before submission); parent 91e38cc95bfe33f35efb9617687f42567a5f0d9c, tree bbdd3aefa3428dad93740100116cb472d534bf57.
  • integration_basis: inspected hosted checkout 5cbef9d1f2aed50eba7ed0cae6447955a1c2f04b, with parents base 6417e7cf98aa5fc266e05db9414cab0aa486db00 and this head. Both changed CLI files are byte-identical between head and that checkout. This is historical composition evidence, not qualification of today's main.
  • claim_boundary / inspected owners: read the complete two-file diff, check_inner, timeout flag/environment dispatch and parsing, machine_refusal_document/refuse_check, workspace-root resolution, fixture Git/root helpers, CLI process consumers and main exit mapping. Compared refusal behavior with RIPR-SPEC-0241, its existing traceability and docs/EXIT_CODES.md. Production behavior is unchanged; new tests add stimulus/oracles, so no new public-contract/spec change is required.
  • oracle challenge: conflict tests require their named refusal rather than any failure; destination/artifact absence is checked. Timeout tests distinguish unset, zero, positive, invalid, overflow, non-Unicode and explicit precedence without process-global environment mutation. The new machine-document test alone only checks parseability/nonemptiness; existing process tests additionally pin typed identities, repair routes, non-consumability, empty findings, native exit 2, stderr and success/prose-only controls. Cwd mutation is locked and its restore guard drops before temporary-root cleanup.
  • non_blocking_suggestions: the existing TempRoot setup-ownership finding is confirmed, with an actual positive/negative std-only process witness and corrected populated-residue scope in the existing thread. P2; no duplicate patch or thread opened.
  • proof_and_ci_observed: independently inspected job 120417962484, including the 20 new PASS rows and existing CLI timeout/refusal/success controls. Reuse the delivery receipt: required tests passed; qualification failed at the named golden fixture and later gates skipped. The separate golden repair #9968 is merged.
  • proof_or_review_missing: local offline test invocation exited 101 before compilation because the cache lacked locked serde_json 1.0.154. A single locked online retry was compiling when the selected execution environment became unavailable; its terminal outcome is UNKNOWN. Follow-up status reads returned No usable execution environment is available. No local test pass or independently executed candidate CLI run is claimed; no hosted rerun was requested.
  • affected_currentness_dimensions / residuals: source/test-oracle inspection is bound to this head; current-main integration and successor qualification remain for the existing source owner. Native Windows/macOS and exhaustive sibling-command coverage were not independently exercised. The isolated review tree, target and witness files were retained; process/artifact closeout is unverified after environment loss. No owner branch change, release, deployment, cleanup, Ready transition or merge was performed.

disposition: source review non-blocking; final REVIEW_INCOMPLETE pending owner integration, affected re-review and passing required qualification. An empty prior COMMENT, a resolved suggestion or the green test step is not merge clearance.

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

Execution and integration supplement to source review 5630494944. No additional blocking source or test-oracle finding was established. Final disposition remains REVIEW_INCOMPLETE / WAITING_INTEGRATION_PROOF.

  • Reviewed head: 96abb28ee3d3187743f0e72eda0425394d8af8b8, reread immediately before this review. Complete owned delta remains the four-line test-module registration and the 619-line, 20-test file; production behavior, schemas and dependencies are unchanged.
  • Claim boundary: the 20 lib tests comprise eight conflict/artifact/ledger tests, five root/repo-input tests, two timeout tests, three help/value tests and two machine/human refusal tests. They use exact errors where asserted and targeted substring/shape checks elsewhere. This establishes those named cases, not exhaustive option combinations, every command, or a new public support contract. check_inner, shared root and timeout helpers, machine_refusal_document/refuse_check, the process integration consumers, main exit mapping, RIPR-SPEC-0241 and EXIT_CODES were inspected. No new spec change is required for this test-only delta.
  • Executed public surface: isolated combined tree bd8ec3c35a0e35b29fa860e76931eef3f08237e7 = main 592aa7473c2af21c30dbf3ef414688a57a70937b + reviewed head; local-only inspection commit f25da57b07553c5a524c48c129b0fa52858eff2d. Linux x86_64, task-local pinned Rust 1.95.0, default Rust/Python/TypeScript features. Explicit target: cargo build --locked -p ripr --bin ripr -j 2 --message-format=json, with separate CARGO_TARGET_DIR, debug info disabled and no incremental state; native exit 0. The selected Cargo compiler-artifact executable was /workspace/pr9965-target/debug/ripr, SHA-256 0fdcb92254eb72f72e358ec6b81c6e48abca713e89525837df76e47aadb08dc3; its observed version names the inspection commit.
  • Producer and controls: real git diff --no-ext-diff -- member/src/lib.rs bytes were consumed by that executable into nonempty successful JSON findings. 22 actual process cases passed, covering that success, no-write fanout usage conflict, committed/worktree conflict, missing/file root, invalid mode/format/timeout and bare --all, environment failure and explicit timeout precedence, help versus free-text values, six machine bad-base documents with their typed shapes, two prose-only human formats and implicit workspace-member rebinding. Four deliberate wrong-result controls (success exit for refusal, empty document, wrong typed identity, unexpected usage stdout) were rejected. This complements the source review's explicitly unexecuted CLI dimension.
  • Instrument correction: the first probe stopped after 14 recorded commands because its JSON oracle incorrectly indexed the string analysis_scope.run_status as an object. The oracle was corrected against the committed integration assertion/spec and resumed from unchanged retained inputs/results; no product rebuild or replay of those 14 commands was used. The original instrument-error log and outputs remain retained.
  • Hosted execution reused honestly: required job 120417962484 checked out 5cbef9d1f2aed50eba7ed0cae6447955a1c2f04b, parents 6417e7cf98aa5fc266e05db9414cab0aa486db00 + reviewed head. All 20 new lib tests have explicit PASS rows. The workspace summary is 20,136 passed/zero failed/five skipped, with doctests two passed/one ignored. Qualification nevertheless FAILED on the named selector golden; subsequent fixture/corpus/PR-evidence/schema gates were skipped. This is historical execution at its actual basis, not a new full qualification receipt.
  • Current composition: main advanced to dd364c714a8b865156eb35aa42dc353c96955722 during inspection. Native merge-tree succeeds with tree bbf0b499f4f1643c243224b885d2fd738f0e3a23. The intervening #9961 delta changes TypeScript committed-snapshot tracking/cache; all added helper consumers were enumerated at this ref, with the TypeScript module's lang-typescript cfg inspected. No owned check/refusal, manifest or lockfile delta appeared. Applicability is source-inspected; the 22-command receipt stays bound to 592aa74/bd8ec3, not relabeled as execution of bbf0b499.
  • Findings: reuse the confirmed P2 TempRoot setup-residue finding and its existing resolved thread; the later std-only negative witness correctly shows the residue can contain Cargo.toml. No duplicate fix or thread. The separately recorded post-landing #9968 non-predicate guidance finding remains with its existing owner/proposal; this PR changes no classifier/guidance producer and does not widen that exposure. The shared selector golden repair itself remains delivered.
  • Actual blocker: fresh Git reads still return remote merge subject 5cbef9d, tree 2f448fe9590b37a139fb8b6cd5a1adc4fa4a9f2d. Native ancestry check exits 1 for #9968 merge 0abe9d41f9e7dcdf439d020db793d5b202b704fa: the repaired prerequisite is absent from this hosted subject. The source owner's main integration promised in comment 6365870443 has not occurred. No unchanged qualification rerun, branch takeover, merge or auto-merge was attempted.
  • Protections/limits: one inline thread is resolved; the complete current conversation and added review were read. Active ruleset 18845973 requires thread resolution, has zero required approvals and no bypass actors. Classic protection read returned 403 and was not retried; missing policy detail is retained, not treated as absent enforcement. Returning the PR to Draft was rejected by automatic approval review because it could halt review/merge automation; the PR remains Ready with its existing label and no retry was made. Native Windows/macOS execution and full current-main qualification remain unestablished.

Evidence retained under /workspace/pr9965-review: build JSON/artifact selection, terminal exits, producer/input bytes, every command/stream/result, original instrument failure and final receipt. Receipt SHA-256: 71f7176b23f89f30a173e63f2eb4d2a5d566d2b5a0b0537ae4ded7edfd07a831; complete command-output JSON SHA-256: a929a64ea3ac47cd8532a0bfc0ca563c57c38b018bee8e7abde5a1658ee4799f.

Continuation: existing source owner integrates main/prerequisite into the canonical candidate and verifies the actual GitHub merge subject; refresh affected exact-head review, then request qualification once through the normal procedure. Passing required checks plus final published-head REVIEW_READY permit the ordinary protected expected-head squash and landing verification. Current failed qualification does not permit that transition.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 15:36
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DhLb2VKJXpSwarf9qNWkGb
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 25, 2026 18:42
@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!

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 potential issue.

Devin Review

EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

Current continuation is in the PR body at published head 09223ec742d0ee6435816bfc6afc632023f88c9e, tree 5a68b50b9718fd783cfcb1ed83ed87428bdf8e20. The actual main conflict is repaired by preserving both smoke-test modules. Independent exact-head source review is non-blocking, with final REVIEW_INCOMPLETE.

The predecessor passed all 20 library cases, eleven focused process cases, check-fast (14 gates and a verified five-file selector), process policy, ci-policy and precommit. Intentional production exit/document defects were rejected by the unchanged process test; original/restored behavior passed. These receipts remain bound to their original identities. The composed published head is running the focused 16-case process set, 20 library cases and applicable local gates.

Observed GitHub merge subject c64a3878c89380941468dbeb6cf053631e2488bd contains this head plus five unrelated Rust corpus changes. Its source composition was reviewed; no current qualification is claimed.

Draft and the native Windows bad-base thread remain held. The canonical #10586 owner retains the shared repair; after its accepted landing, verify it in the actual hosted subject before one qualification request. Current-head REVIEW_READY publication/readback and terminal required proof are still prerequisites for a separate protected merge. No new CI or merge was requested.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 26, 2026 05:54

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

REPAIR_REQUIRED — one new platform test-oracle finding; source review only.

Reviewed head: b639a4bf104b89f3a287b00ef83a56afacf0fdf8, rechecked through the live Git ref immediately before publication. Integrated base/merge base: 5bcfdff8af40cdf512e3d4b9ddee7bd7023e072d. Current main observed: aeeeddacd1e24f3b04e713572717e7b172966431. Actual hosted checkout: 0f0d95f2aad65f06735e22e7279ed86e831ca661, parents 1af8bb0e0c0a80baee830248610e2a44e173c1ee + reviewed head, tree bb5b5e415779b31c9fea778da7c91d82584911d3. This is not a claim of execution against today's main.

New finding: the bad-base test's expected path at line 408 disagrees with the Windows rendering contract brought in by #10111. The inline handoff below names the producer, concrete mismatch and focused validation.

Ownership and scope: the accepted claim is the PR's bounded test-gaps coverage (no numbered campaign issue is linked in its body). The current continuation already owns machine-refusal oracle strengthening and argv/config/timeout discrimination. Those gaps remain with that source owner; no competing repair or duplicate finding is opened. The TempRoot setup-residue P2 remains in its existing resolved/deferred thread. Source integration and #9968 ancestry are now present; the older WAITING_INTEGRATION_PROOF statement must not be reused as current status.

Inspected: complete two-file delta (+4 module-registration lines, unchanged 619-line test file), fixture path construction, repo-base validation and error propagation, host-specific path rendering, sibling raw-path expectations, timeout/help/refusal producers and CLI consumers. Machine-format contract comparison used #7332, RIPR-SPEC-0241 and EXIT_CODES. The syntax-only machine oracle is a valid existing weakness: {} (or arbitrary nonempty GitHub text) passes its local predicates, while existing cli_smoke tests independently assert typed identities/status/repair routes. Its active owner should retain those discriminators.

Observed CI: Rust gates job 121257210145 checked out the merge above, passed all 20 added tests, and reports 21,559 tests passed / five skipped; doctests two passed / one ignored. Golden, fixture, corpus, PR-evidence and schema-sweep steps succeeded. The Windows subset job 121257054111 executed narrower named filters, not argv_refusal_tests; its success cannot establish this oracle. Relevant test/producer/path blobs are identical between the reviewed head and the Linux checkout.

Commands and limits: ran git ls-remote, git fetch --no-tags origin pull/9965/head pull/9965/merge main, pinned git show/git diff/git grep, ancestry/merge-base checks and git diff --check (pass). Read GitHub reviews, comments, job steps and logs. No local build, test, native Windows experiment, CI request, source edit or PR-state transition. gh pr view was denied with Forbidden; that route was stopped and not retried. No protection or merge-clearance claim is made.

Next executable action: the existing candidate owner folds the Windows expectation repair into the already-owned test-only wave, executes the focused Windows test with the valid-base positive and bad-base negative retained, then supplies the new head and receipt for affected review. Preserve Draft/holds and the normal qualification procedure; this review grants no Ready or merge transition.

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

Independent source/test-oracle review at 738a635e2884237156d467ab96cb840cec1459db (tree 605a00403b7268b2abba07ea9c85248b0f8910e9): no remaining blocking source or oracle finding. Final disposition: REVIEW_INCOMPLETE.

Inspected the cumulative five-file delta, actual argv/environment/config/budget/refusal/exit owners and consumers, RIPR-SPEC-0241, output and exit contracts. Production code changes remain limited to test-module registration. The repaired machine tests assert typed refusal semantics; the runtime budget test observes delayed real Git analysis, with nonempty disabled-budget control. Absolute output destinations, setup cleanup, JSON parse classification, module registration and language feature gates were checked.

Observed focused evidence: eleven named process tests, each with exactly one passing subject and native exit zero; the Cargo artifact records identify the test and product executables with default language features. These exercised source-equivalent bytes before the commit-stamp rebuild. This is focused proof, not hosted qualification.

Missing: library tests, intentional wrong-production exit/document experiments, local policy checks, successor hosted qualification and final current integration judgment. Native Windows/macOS runtime budget behavior and Unix descendant containment are not established. A successful required wrapper or this incomplete review does not authorize merge.

@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 of record (exact-head sweep, head 69c711554480e064d4728ebd71659caa67bf1d2c)

Scope verified against the body's claim: test-only delta. The only production-owned change is the #[cfg(test)] module registration at crates/ripr/src/cli/commands/check.rs:2134 (hunk @@ -2131,6 +2131,10 @@, inside the tests section); the rest is one new lib test module (20 #[test] fns, matching the body's "twenty"), one new unix-gated process test, a rewritten smoke test, and three traceability entries. No prior review exists on this head: the latest prior review (id 5648055973, 2026-10-26 06:15) covers 738a635e; the head adds only the one-line human_path repair to the test file (commit 69c7115, 1+/1−, verified via the commits API).

Verified

All read at head 69c71155 via the REST contents API (no test executed in this review lane).

  • Symbol binding. Every production symbol the tests call exists with matching signature: check_timeout_from_env/parse_check_timeout_from/parse_git_timeout (check.rs:455-510), help_request (check.rs:435), validate_repo_scope_diff_inputs (check.rs:46), resolve_implicit_workspace_root (check.rs:361), refuse_check (check.rs:553), machine_refusal_document (check.rs:583), CoreError::{repository_root_unusable, base_unresolvable, analysis_timeout} (core_error.rs:188-257), fixture_git::fixture_git_ok (testing/fixture_git.rs:115), cwd_lock::hold_cwd (testing/cwd_lock.rs:15), args/unique_command_test_dir (commands.rs:3560/3583), and smoke helpers assert_check_json_refusal, init_check_refusal_repo, run_owned_stdin_probe, probe_command, assert_success, run_ripr_with_env, workspace_root (cli_smoke.rs:3706/3768/335/276/760/22833/684).
  • Pinned messages verified verbatim at their production source. --output-dir matrix (check.rs:842), committed conflicts (check.rs:960/972/983/1456/1469), path/exclude conflicts (check.rs:994-1010; malformed-pattern text from normalize_pattern, analysis/diff_scope_filter.rs:129-147), suppression formats (check.rs:1050), write-artifact cases (check.rs:1190/1254/1268), gap-ledger format/read/parse (check.rs:2085/2090; invalid JSON: from gap_decision_ledger.rs:919), repo-scope diff/base (check.rs:60-77), the RIPR_CHECK_TIMEOUT fail-closed set including u64::MAX overflow and NotUnicode (check.rs:467-499), unknown check argument shape (check.rs:3208 region). CoreError Display keeps detail verbatim (pinned by an existing core_error.rs unit test), so the exact-match base-revision assertion is sound; identity/route mapping repository_root_unusable → analysis/repository-root confirmed (core_error.rs:113/130).
  • Ordering assumptions hold. Help dispatch precedes value validation (check.rs:690); suppression/format conflict fires before any policy-file load (check.rs:1037 vs argv collection at 789); committed/gap-ledger and committed/repo-format conflicts precede the gap-ledger read (check.rs:1452-1475 vs 2090); RepoExposureJson::is_repo_scope() is true (output/format.rs:228-236 → is_repo_seam_inventory: true), so the --path/--exclude repo-format refusal fires as the test expects.
  • Refusal envelope shape. render_diff_scope_limited_check_json returns Ok(None) for this error class, so the JSON assertions exercise render_check_failure_json's #6834 envelope (output/limited_check.rs:11-22/185) — the same pointers the existing assert_check_json_refusal helper pins.
  • Budget message premise. analysis_timeout: ripr check exceeded its {}s wall-clock budget is formatted from the configured budget (cli/commands/check_budget.rs:39-43), so the 1s wall-clock budget assertion matches for the 1-second cases.
  • Oracle discrimination is materially stronger than what it replaces. The precedence control now requires a successful run with nonempty findings from the real fixtures/boundary_gap diff (fixture and diff.patch exist at head; expected/human.txt shows the fixture yields 1 finding), so a skipped analysis cannot satisfy it. The budget test requires the probe to actually reach git diff (marker file) and covers both precedence directions (--timeout 0 over bad env; --timeout 1 over env-disabled 0). assert_check_json_refusal requires exit 2 plus a parseable typed document, rejecting valid-but-wrong JSON and intentional wrong exits. help_request expectations match the implementation branch-for-branch, including the enum-option and consumed-value cases.
  • Platform branch. The budget test is correctly gated #[cfg(all(unix, feature = "lang-rust"))] (shell shim + PATH git); Windows budget qualification is declared a non-goal in the body.
  • Traceability. The three added entries under RIPR-SPEC-0241 name real tests/file at head; bare-file entries have strong precedent (1598 same-shape entries in .ripr/traceability.toml). The referenced spec file exists at head.

Findings

Two P2 findings posted inline (naming/oracle precision; feature-reduced denominator). Neither blocks.

Validation signal

  • Observed: the two check runs on this head (Graphite / AI Reviews, GitGuardian Security Checks) are green; no build/test gate has run on this head yet.
  • Reported (PR body): eleven focused process tests passed on source-equivalent repair bytes; library tests, wrong-production controls, local policy checks and hosted qualification are pending; the historical 21,559-test qualification is bound to merge commit 0f0d95f2, not this head.
  • Not verified: no test was executed in this review. The unix-gated budget test cannot run on this Windows host, and per the PR body the 20 new lib tests have not been executed by anyone yet. Static binding above de-risks but does not replace execution.

Residual risk: the budget test's disabled-budget nonempty-findings premise for pub fn over(x: u32) -> bool { x > 10 } rests on the author's reported pass plus fixture analogy (comparison predicates drive predicate_boundary probes; note comparison_operands splits on the first >, and this line's -> hits that split first, so a finding is produced but its rendered boundary operands may be mangled for this shape — worth one glance at first hosted run). The budget refusal can orphan the sleeping shim git child (~3s) past fixture cleanup; unix-only, so no Windows file-lock concern.

REVIEW_INCOMPLETE (draft) — findings above are pre-landing feedback.

Comment thread crates/ripr/tests/cli_smoke.rs Resolved

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

Verification questions

  • Confirm the new process test exercises a shared git shim and checks both timeout refusal and successful analysis, but it is Unix-and-Rust-feature-gated and does not cover native Windows or non-Rust feature builds.
  • Confirm the timeout refusal oracle is strengthened for machine JSON, but the sibling CLI surface outside check was not exhaustively compared for equivalent timeout/refusal contracts.
  • Confirm workspace-wide sibling CLI parity was not established; this review traced check routes and shared root/path producers, not every command entry point.

Refuted

  • The change introduces unsafe lifetime, pointer-ownership, or manual-reclamation risk.; refuted because: The changed Rust code adds no unsafe block, raw pointer, borrowed callback, or manual reclamation; temporary paths are owned by local values and RAII guards, and unsafe-review reports no new or worsened gaps.
  • The new native test seams may create lifetime, aliasing, or ownership UB.; refuted because: The diff contains no unsafe or raw-pointer code; paths, temporary roots, environment values, and child-process handles are owned, and cleanup is RAII-based. The known setup-residue issue is resource hygiene, not UB.
  • Assigned worker-handoff surface is absent: the changed code is Rust CLI testing and contains no JS runtime or worker/GC ownership transfer.
  • The new process-level timeout test may introduce a denial-of-service or hang through its Git shim.; refuted because: The shim delays only one diff operation for four seconds, the harness imposes a 30-second outer timeout, and each case requires marker creation before accepting a result; this bounds test execution rather than exposing production to attacker-controlled delay.
  • The changed tests could introduce an unsafe worker-handoff, GC, detach, or transfer ownership defect.; refuted because: The diff contains no JavaScript/JS-backed runtime, async task handoff, GC-managed object, detach operation, raw pointer, unsafe block, or ownership transfer; all temporary data is owned by Rust values or RAII guards.
  • The bad-base oracle currently violates the Windows human-path rendering contract.; refuted because: The seeded thread records that the oracle was repaired to use human_path and that literal Windows separator/verbatim-prefix controls passed; only native Windows execution remains outstanding, so this is a residual proof risk rather than a new source finding.
  • The added test registration or fixture helpers may have altered production behavior or crossed an ownership boundary.; refuted because: The diff changes no runtime behavior: check.rs only registers a cfg(test) module, while the other Rust changes live in test modules and the TOML file records traceability.

Evidence gaps

  • Current merge-subject qualification remains absent despite focused historical receipts.
  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Prerequisite reconciliation for the existing author continuation: #10586 is no longer open. Its reviewed repair #10616 landed as de14869, verified on main with repaired driver consumers. Please update the stale prerequisite state and verify the repair is present in the actual next integration subject, not merely today's main. Preserve the explicit native-Windows bad-base hold and pending composed-head receipts; source human_path repair does not establish platform execution.

This does not authorize a blind refresh: newer main qualification blockers now have existing owners in #10663 (xtask path-inclusion dead-code Clippy) and #10660 (owner-built-expected corpus observation; depends on #10663). Reconcile applicability and their verified landings before one justified current-subject qualification. Finish unaffected local evidence/review work under existing admission rules; no duplicate build/CI campaign, custody takeover or blanket hold release is requested. This handoff made no source or lifecycle change.

@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 of record (exact-head sweep, head 09223ec742d0ee6435816bfc6afc632023f88c9e)

Inspected: all five changed files (crates/ripr/src/cli/commands/check_argv_refusal_tests.rs, crates/ripr/tests/cli_smoke/check_budget_refusals.rs, crates/ripr/tests/cli_smoke.rs, crates/ripr/src/cli/commands/check.rs, .ripr/traceability.toml) plus the head-side producers, helpers, fixtures and spec they bind to, read as git objects at the exact head SHA (refs/pull/9965/head fetched; git rev-parse FETCH_HEAD = 09223ec7…; the local working copy was not used or modified).

Verified

  • Scope agreement. The files API lists 5 files (+833/−9). The head commit's tree is 5a68b50b9718fd783cfcb1ed83ed87428bdf8e20 and its parents are 69c71155 (candidate predecessor) + a1c1a33 (integrated basis), matching the body's identity claims. git diff --stat a1c1a33..09223ec is exactly these 5 files, and the only production-owned delta is the #[cfg(test)] #[path = "check_argv_refusal_tests.rs"] mod argv_refusal_tests; registration in check.rs — the body's "no production behavior change" claim holds structurally.
  • Oracle-to-producer parity. Every pinned refusal string in the new module was traced to its head producer: pass --output-dir once (check.rs:798), the --output-dir conflict sentence (check.rs:842), the --committed conflict set (check.rs:960/972/983), repo-scope --gap-ledger/--format refusals (check.rs:1456/1469), the --path/--exclude repo-scope and whole-output sink conflicts (check.rs:994 and the sink clause below it), the --suppression-policy format restriction (check.rs:1050), --write-artifact conflicts (check.rs:1190/1254/1268), --gap-ledger format restriction and its read/parse producers (check.rs:2085/2090; the invalid JSON: {err} prefix comes from output/gap_decision_ledger.rs:919 via badge/summaries.rs:517), repo-scope --diff/--base validation (check.rs:46-79, including the human_path-rendered bad-base message), root-not-a-directory via ensure_command_root (commands_context.rs:117), the ..-segment glob refusal (analysis/diff_scope_filter.rs:129-148), the timeout parsers/fallback (check.rs:455-502, including the exact Ok(Some(None)) nesting for 0 and the explicit-flag short-circuit), help_request (check.rs:435-453, traced case-by-case: value-consuming skip for --base/--diff, the enumerated-value carve-out for --mode/--format, and --all alone falling through to unknown_argument), and mode/format unknown-value refusals (cli/parse/mode.rs).
  • Discrimination. The budget case table (check_budget_refusals.rs:45-49) pins both directions of flag/env precedence: env-selected 1 must refuse with identity analysis_timeout, route analysis/timeout, exit 2, nonempty stdout, downstream_consumable: false, empty findings, and a message naming the "1s wall-clock budget" — so a silently-applied default 600 s budget (check_budget.rs:22-23) would fail it; --timeout 1 must beat env 0; --timeout 0 must beat env bad. The diff-entered marker assertion kills refusals that fire before analysis, and assert_check_json_refusal (pre-existing, cli_smoke.rs:3762) pins schema_version/identity/repair-route so an unrelated timeout identity cannot satisfy the oracle. The strengthened check_rejects_invalid_check_timeout_flag_and_env now requires a real successful analysis with nonempty findings over the calibrated fixtures/boundary_gap mutation (>→>=), so skipping analysis or emitting elsewhere cannot pass it.
  • Fixture and helper reality. fixtures/boundary_gap/{input,diff.patch} exists at head; init_check_refusal_repo commits pub fn v0 and the budget test then overwrites it, so the worktree diff is nonempty. All referenced helpers exist at head (commands::tests::{args, unique_command_test_dir}, crate::testing::{cwd_lock, fixture_git}, probe_command, run_owned_stdin_probe, assert_success, ignore_remove_dir_all, workspace_root, run_ripr_with_env), and the new module contains exactly 20 #[test] functions as the body claims.
  • Traceability. The three added entries resolve to real files/tests at head; the bare-module-path entry form and the broad RIPR-SPEC-0241 tests array are pre-existing conventions (the array already exceeded the spec's own Test Mapping section before this PR); analysis_timeout/analysis/timeout is present in RIPR-SPEC-0241's identity table at head (spec line 206).
  • Dedupe. The only review on this head is an automated github-actions notice (review id 5648741356); the latest human review was on predecessor 69c71155, so this exact head carried no substantive review of record.

Findings

One P2 (inline below, crates/ripr/tests/cli_smoke/check_budget_refusals.rs line 46): the budget-disabled wiring (0 reaching run_with_budget's None inline branch) has no end-to-end discriminator. Not blocking; unit pins bound it.

Residual risks, recorded so the denominator stays explicit:

  • The analysis_timeout refusal path is exercised only by unix+lang-rust tests (check_budget_refusals.rs; the pre-existing check_json_timeout_and_bad_base_have_distinct_identities is #[cfg(unix)] and covers git_invocation_timeout). Native Windows runs --timeout/RIPR_CHECK_TIMEOUT in production with no process-level analysis_timeout witness. The body declares native-platform budget qualification a non-goal; this review records that as the stated denominator rather than a defect.
  • The new unix shim relies on sleep, printf and a discovered real git on PATH; all bounded by the 30 s probe deadline and the shim delegating to the canonicalized real git, but it inherits the usual Unix-only proof route.

Validation signal

  • Observed: head identity (git rev-parse/git cat-file -p), the full diff (gh api repos/EffortlessMetrics/ripr-swarm/pulls/9965/files), delta-vs-basis (git diff --stat a1c1a33…​09223ec), and every producer/fixture/helper string above read directly from git objects at the pinned SHA (git show/git grep <sha>), including the 20-#[test] count and the spec's identity table.
  • Reported: the PR body's local receipts (20 library tests, 11 focused process tests, the negative production controls — flipping exit 2→0 and replacing the JSON refusal with {} — and check-fast/precommit gates). This review did not execute them.
  • Not verified: no tests or xtask gates were run in this review (read-only review lane; the local checkout is not a usable worktree); native Windows execution; hosted composed-head qualification, which the body correctly holds as pending for a draft.

Disposition: REVIEW_INCOMPLETE (draft) — findings above are pre-landing feedback.

Copy link
Copy Markdown
Member Author

Independent receiver-side review accepts a new bounded Linux exact-head proof packet for09223ec742d0ee6435816bfc6afc632023f88c9e. Archive125746bytes/SHA2567e7e819485c748d1d7b3eca5167b49dda92592e4e7fa14149ae40669361ec515 and manifest verified; all12raw probes checked. Nine refusal/config-precedence controls exit2. During delayed real Git diff, finite timeout30 shows the named budget worker, while flag0 and environment0 omit it in all five samples each; all three complete exit0 with two findings. This closes the Linux disabled-budget discriminator, not an absence-of-worker inference from a too-fast run.

Perl-only build exit101 explicitly requires lang-rust and is not a runtime result. Binary identity remains recorded in receipts, not independently rehashed from a bundled executable.

Native Windows hold PRRT_kwDOSiSx0c6wJq4V/comment4374361787 remains: exact-head repo_scope_base_must_resolve_to_a_commit must select exactly1test/pass/nativeexit0 with valid/bad-base, helper/CLI parity and pathnegative preserved. Composed20-library/16-process terminal receipts remain unverified. No Ready transition, hold release, source edit or CI request occurred.

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

Residual carried from the convergence review, verified against the current head (09223ec): unix-only orphaned sleep child after the budget kill.

Mechanism (crates/ripr/tests/cli_smoke/check_budget_refusals.rs, shim at line 35): the shim runs sleep 4 as a foreground child of sh before execing the real git. ripr check --timeout 1 fires the analysis budget and kills its direct child (the shim sh), but nothing kills sleep — it stays alive for up to ~3–4s after the test process and probe have returned. The marker is written before the sleep, so the test's own assertions are unaffected; the residue is purely a stray process, which conflicts with the repo's process-hygiene norm (reap spawned trees; cf. cargo xtask check-process-policy and the lane rule about terminating spawned children).

Not present at main: crates/ripr/tests/cli_smoke/check_budget_refusals.rs does not exist on main (387f96e) — this is confined to this PR's new test, so it can be fixed before merge rather than tracked separately.

Suggested fix (keeps the discriminating behavior): make the shim reap its own delay so the kill cascades, e.g.

sleep 4 & s=$!; trap 'kill $s 2>/dev/null' TERM INT; wait $s

in place of the bare sleep 4, or drop the delay below the probe-join horizon if the 1s budget signal can be earned another way. Either keeps analysis_timeout discriminated while leaving no orphaned child on hosted runners.

(Windows is unaffected — the shim is #!/bin/sh + unix permissions, so the test is unix-only by construction.)

…ence on every build

Review convergence for #9965:
- The budget shim delay is chunked (40 x 0.1s) so the SIGKILL that stops a
  timed-out git invocation orphans at most one 0.1s sleep instead of a 4s
  one; SIGKILL is uncatchable, so a TERM/INT trap could never fire.
- Drop the unpinned after_config_load claim from the committed repo-scope
  refusal test name; the fixture carries no ripr.toml.
- Pin the explicit --timeout over RIPR_CHECK_TIMEOUT precedence with an
  ungated process control so feature-reduced builds keep that wiring
  observed; the strong lang-rust control is unchanged.
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 30, 2026 01:06
@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

Copy link
Copy Markdown
Member Author

Converged in 8a1dac8927389cbb7b40, verified at head first.

Mechanism confirmed with one correction. The budget kill is not a TERM to the shim: cancellation is observed in the git poll loop (crates/ripr/src/git.rs:1292-1298), which calls terminate_tree, whose non-Windows kill is std::process::Child::kill = SIGKILL on the direct child (crates/ripr/src/process_owner.rs:210-219, 260-267). SIGKILL is uncatchable, so the suggested trap 'kill $s 2>/dev/null' TERM INT can never fire on the actual path — the delay child is orphaned either way. A local SIGKILL control reproduced the mechanism: sh -c 'sleep 3 & echo $! > pid; wait', shim SIGKILLed at 0.3s, left the recorded sleep orphan for exactly 2.7s (its full remaining duration), so an in-flight delay child does survive the shim's death on a real host.

Fix implemented — the review's second offered direction (bounded residue): the shim delay is now chunked (n=0; while [ "$n" -lt 40 ]; do sleep 0.1; n=$((n + 1)); done, crates/ripr/tests/cli_smoke/check_budget_refusals.rs:35-46). After the SIGKILL, at most one 0.1s sleep is in flight, so the stray-process residue drops from ~3s of sleep (plus a post-exit exec of the real git into a dead pipe) to under one 0.1s chunk. Discriminating behavior is unchanged: the marker is still written before the delay, the total delay remains ~4s so the 1s budget still fires mid-diff, and the disabled-budget control still completes a real nonempty analysis.

Local proof at 8a1dac8927389cbb7b40: cargo fmt --check clean; cargo test -p ripr --lib argv_refusal_tests 20 passed; cargo clippy -p ripr --all-targets -- -D warnings clean; the seven-check policy cascade passed. The unix-gated process test itself is not runnable on this Windows host; hosted Linux CI on this head is the execution receipt for it.

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

Verification questions

  • Confirm the new budget shim can leave a short-lived orphaned sleep after SIGKILL, but chunking bounds residue to at most one 0.1-second sleep rather than the prior multi-second child.
  • Confirm workspace-wide sibling CLI parity was not established; this lane traced check and shared producers/consumers, not every command-specific parser or refusal surface.
  • Confirm the diff checks the check command's refusal and timeout routes, but it does not establish equivalent refusal semantics across every sibling CLI command or feature-reduced platform route.

Refuted

  • The new test helpers could create dangling references or double-cleanup through shared mutable state.; refuted because: The helpers own PathBuf and process state values; CwdRestore and TempRoot each have single-owner Drop behavior, while cwd mutation is serialized through cwd_lock. No unsafe aliasing or pointer lifetime is introduced.
  • The budget test crosses a worker/async handoff boundary that could retain a detached process or transferred resource.; refuted because: This is a Rust process-test delta, not JS-backed async/GC/detach/transfer code. The shim is an owned child process; the seeded thread records the prior orphan-process objection as repaired by chunking the delay to bound residue.
  • The new tests introduce a denial-of-service through timeout or path handling.; refuted because: The affected test paths are bounded: timeout values are fixed, delays are chunked, probe duration is capped, and fixture roots are owned and removed. The diff does not alter production execution or expose external input handling.
  • This change modifies production CLI behavior or expands the production dependency graph.; refuted because: The production-owned change is only #[cfg(test)] registration of a test module; no runtime path, public API, schema, or dependency changes appear in the diff.
  • The changed tests could reveal stale-length, detach, transfer, or active-view/backing-store aliasing behavior.; refuted because: No such API or representation is present in the changed code; all inspected data paths use owned Rust strings, paths, JSON values, and child-process buffers.

Evidence gaps

  • The current packet lacks a terminal cargo-test receipt for the changed test targets.
  • Model proof intent was rejected by deterministic validation.
  • Security evidence is incomplete for native Windows and feature-reduced builds because the process budget test is Unix/lang-rust gated.

Parked follow-ups

  • The timeout process oracle is Unix-only and therefore does not provide native Windows execution evidence for the budget shim path.

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but no qualification run exists for head 8a1dac89: it was pushed after the label was applied, or the label event was dropped. Remove and re-apply merge-ready to request it 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 of record (exact-head convergence sweep, head 8a1dac8927389cbb7b4035c8faeff1c4463cb74a, tree of parent 09223ec742d0ee6435816bfc6afc632023f88c9e plus the convergence delta)

Scope verified against the body's claim: test-only. Cumulative delta is five files; the convergence commit 8a1dac89 adds 22/−2 across crates/ripr/tests/cli_smoke/check_budget_refusals.rs, crates/ripr/src/cli/commands/check_argv_refusal_tests.rs and crates/ripr/tests/cli_smoke.rs. The only production-owned change remains the #[cfg(test)] module registration at crates/ripr/src/cli/commands/check.rs:2134-2137. No goldens, output contracts, specs or public API touched.

Stimulus/oracle challenge (all verified at this head):

  • The budget shim delay is chunked (40 × sleep 0.1, check_budget_refusals.rs:35-46). Discrimination preserved: the marker is written before the delay, total delay stays ~4s against the 1s budget, and the disabled-budget control still requires a successful nonempty analysis. The convergence finding's original trap suggestion could not fire — the budget kill is SIGKILL via the cooperative poll (git.rs:1292-1298) → terminate_tree → Child::kill (process_owner.rs:210-219), uncatchable — so the bounded-residue direction the review offered was implemented instead; a local SIGKILL control reproduced the orphan mechanism (2.7s residue from a killed wrapper).
  • The renamed test (committed_refuses_repo_scoped_formats_and_gap_ledger, check_argv_refusal_tests.rs:159) now claims only what it pins; its fixture writes no ripr.toml, so the dropped after_config_load ordering claim was unprovable. No shard/golden/traceability references the old name.
  • The new ungated precedence control (cli_smoke.rs:31518-31533) asserts exit 2 with the env-var refusal absent while an explicit --timeout is given — observing the argv→check_timeout_explicitly_provided wiring (check.rs:923-939) on every feature set; the strong lang-rust-gated control (real nonempty diff, nonempty findings) is unchanged.
  • The bad-base oracle matches the Windows human_path producer (check_argv_refusal_tests.rs:409-412) and was executed natively on Windows at this head (below).

Validation receipts (all commands executed by this reviewer):

  • Native Windows host, candidate target dir: cargo fmt --check (exit 0); cargo test -p ripr --lib argv_refusal_tests — 20 passed, 0 failed, including repo_scope_base_must_resolve_to_a_commit (the outstanding native Windows bad-base execution, showing the folded F:/... refusal path); cargo test -p ripr --test cli_smoke check_rejects_invalid_check_timeout_flag_and_env -- --exact — 1 passed; cargo clippy -p ripr --all-targets -- -D warnings (exit 0); cargo xtask policy cascade — check-no-panic-family, check-process-policy, check-allow-attributes, check-static-language, check-executable-files, check-network-policy, check-lint-policy all pass; git merge-tree --write-tree origin/main HEAD — no conflicts.
  • The LSP test framed_lsp_zero_git_timeout_commits_limited_once_and_recovers (untouched by this PR, lib set identical to the recorded predecessor) failed once in shard 3 of run 40984887379, then passed on rerun, passed 3/3 locally at this head, and main's same-day run passed all shards — classified a transient runner-load flake, not a candidate defect.
  • Hosted required lane on this head: run 40994775584 — routing, admission, gates, all four test shards and shard verify completed (conclusion recorded in the run); the Ripr Rust Small Result required check is green at this head.

Prerequisite verified today: #10616 merged as de14869b8c9b, an ancestor of current main — the recorded canonical #10586 repair is landed.

Residuals (recorded, non-blocking): the unix-gated budget process test cannot execute on this Windows host — the hosted Linux lane is its receipt; the disabled-budget None-arm identity disclosure residual stays as recorded in the resolved thread; the chunked shim leaves a bounded ≤0.1s in-flight sleep after a budget kill.

Disposition: REVIEW_READY. Required check green on the published head, zero unresolved review threads, mergeable, conflicts absent.

@EffortlessSteven
EffortlessSteven merged commit 324a971 into main Oct 30, 2026
102 of 108 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-labtg5-cli-check-tests branch October 30, 2026 04:49
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Merged as 324a9710261057b711e6fd18af8c491045fdb2b0 (squash, now main's tip) from head 8a1dac8927389cbb7b4035c8faeff1c4463cb74a.

What landed: the full five-file test-only delta — 20 argv/config/timeout/refusal lib tests under RIPR-SPEC-0241, the strengthened real-process budget and precedence controls, and the convergence repairs (chunked budget-shim delay bounding the SIGKILL-orphan residue to one 0.1s chunk, the honest repo-scope refusal test name, and the ungated --timeout-over-RIPR_CHECK_TIMEOUT precedence control). Qualification: merge-ready run 40999841317 — Ripr Rust Small Result required check success on the exact merged head; review of record 5707851143 (REVIEW_READY); all six review threads resolved. The one transient red (untouched LSP test in a shard of run 40984887379) was triaged as runner-load flake: same shard green on main the same hour, 3/3 local passes at this head, green on rerun and on the qualification run.

Residuals carried: native execution of the unix-gated budget process test exists only via hosted Linux lanes; the disabled-budget None-arm identity disclosure stays a recorded residual in its resolved thread; native Windows budget-test qualification remains with the platform lane. The branch and convergence worktree/target were removed. No governing issue is open — the claim was PR-local (RIPR-SPEC-0241 traceability records the tests); traceability landed with the merge.

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.

2 participants