Repository navigation
test(cli): pin ripr check argument refusals, timeout env parsing and refusal documents - #9965
Conversation
…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
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 40 minutes. View limit details
Comment |
There was a problem hiding this comment.
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.
|
Generated by Claude Code |
|
Owner / governing claim: existing source owner; #9965's bounded check-argv regression coverage. Historical integration receipt at main97df16cb (source-only; superseded below)
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 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 Actual blocker: the remote PR merge ref is still Resources: the earlier owned build/probe are terminal/native0; their review worktree was removed after source-bundle verification. 16:22 UTC material-basis refresh; adoption still pending Live GitHub and Git reads agree that #9965 is still Draft at unchanged Main is now Native source-only #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: 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 |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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); parent91e38cc95bfe33f35efb9617687f42567a5f0d9c, treebbdd3aefa3428dad93740100116cb472d534bf57.integration_basis: inspected hosted checkout5cbef9d1f2aed50eba7ed0cae6447955a1c2f04b, with parents base6417e7cf98aa5fc266e05db9414cab0aa486db00and 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 anddocs/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 returnedNo 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
left a comment
There was a problem hiding this comment.
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= main592aa7473c2af21c30dbf3ef414688a57a70937b+ reviewed head; local-only inspection commitf25da57b07553c5a524c48c129b0fa52858eff2d. 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-2560fdcb92254eb72f72e358ec6b81c6e48abca713e89525837df76e47aadb08dc3; its observed version names the inspection commit. - Producer and controls: real
git diff --no-ext-diff -- member/src/lib.rsbytes 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_statusas 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, parents6417e7cf98aa5fc266e05db9414cab0aa486db00+ 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
dd364c714a8b865156eb35aa42dc353c96955722during inspection. Native merge-tree succeeds with treebbf0b499f4f1643c243224b885d2fd738f0e3a23. 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, tree2f448fe9590b37a139fb8b6cd5a1adc4fa4a9f2d. Native ancestry check exits 1 for #9968 merge0abe9d41f9e7dcdf439d020db793d5b202b704fa: 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.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DhLb2VKJXpSwarf9qNWkGb
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Current continuation is in the PR body at published head 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 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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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 helpersassert_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-dirmatrix (check.rs:842), committed conflicts (check.rs:960/972/983/1456/1469), path/exclude conflicts (check.rs:994-1010; malformed-pattern text fromnormalize_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), theRIPR_CHECK_TIMEOUTfail-closed set includingu64::MAXoverflow andNotUnicode(check.rs:467-499),unknown check argumentshape (check.rs:3208 region).CoreErrorDisplay keeps detail verbatim (pinned by an existing core_error.rs unit test), so the exact-match base-revision assertion is sound; identity/route mappingrepository_root_unusable→analysis/repository-rootconfirmed (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/--excluderepo-format refusal fires as the test expects. - Refusal envelope shape.
render_diff_scope_limited_check_jsonreturnsOk(None)for this error class, so the JSON assertions exerciserender_check_failure_json's #6834 envelope (output/limited_check.rs:11-22/185) — the same pointers the existingassert_check_json_refusalhelper pins. - Budget message premise.
analysis_timeout: ripr check exceeded its {}s wall-clock budgetis formatted from the configured budget (cli/commands/check_budget.rs:39-43), so the1s wall-clock budgetassertion 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
findingsfrom the realfixtures/boundary_gapdiff (fixture anddiff.patchexist at head;expected/human.txtshows the fixture yields 1 finding), so a skipped analysis cannot satisfy it. The budget test requires the probe to actually reachgit diff(marker file) and covers both precedence directions (--timeout 0over bad env;--timeout 1over env-disabled0).assert_check_json_refusalrequires exit 2 plus a parseable typed document, rejecting valid-but-wrong JSON and intentional wrong exits.help_requestexpectations 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.
There was a problem hiding this comment.
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
checkwas 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.
|
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
left a comment
There was a problem hiding this comment.
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
5a68b50b9718fd783cfcb1ed83ed87428bdf8e20and its parents are69c71155(candidate predecessor) +a1c1a33(integrated basis), matching the body's identity claims.git diff --stat a1c1a33..09223ecis 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 incheck.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-dirconflict sentence (check.rs:842), the--committedconflict set (check.rs:960/972/983), repo-scope--gap-ledger/--formatrefusals (check.rs:1456/1469), the--path/--excluderepo-scope and whole-output sink conflicts (check.rs:994 and the sink clause below it), the--suppression-policyformat restriction (check.rs:1050),--write-artifactconflicts (check.rs:1190/1254/1268),--gap-ledgerformat restriction and its read/parse producers (check.rs:2085/2090; theinvalid JSON: {err}prefix comes fromoutput/gap_decision_ledger.rs:919viabadge/summaries.rs:517), repo-scope--diff/--basevalidation (check.rs:46-79, including thehuman_path-rendered bad-base message), root-not-a-directory viaensure_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 exactOk(Some(None))nesting for0and 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--allalone falling through tounknown_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
1must refuse with identityanalysis_timeout, routeanalysis/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 1must beat env0;--timeout 0must beat envbad. The diff-entered marker assertion kills refusals that fire before analysis, andassert_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 strengthenedcheck_rejects_invalid_check_timeout_flag_and_envnow requires a real successful analysis with nonempty findings over the calibratedfixtures/boundary_gapmutation (>→>=), 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_repocommitspub fn v0and 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/timeoutis 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_timeoutrefusal path is exercised only by unix+lang-rusttests (check_budget_refusals.rs; the pre-existingcheck_json_timeout_and_bad_base_have_distinct_identitiesis#[cfg(unix)]and coversgit_invocation_timeout). Native Windows runs--timeout/RIPR_CHECK_TIMEOUTin production with no process-levelanalysis_timeoutwitness. 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,printfand a discovered realgitonPATH; 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
{}— andcheck-fast/precommitgates). 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.
|
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
left a comment
There was a problem hiding this comment.
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 $sin 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.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Converged in Mechanism confirmed with one correction. The budget kill is not a TERM to the shim: cancellation is observed in the git poll loop ( Fix implemented — the review's second offered direction (bounded residue): the shim delay is now chunked ( Local proof at |
There was a problem hiding this comment.
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.
|
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
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 noripr.toml, so the droppedafter_config_loadordering 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--timeoutis given — observing the argv→check_timeout_explicitly_providedwiring (check.rs:923-939) on every feature set; the stronglang-rust-gated control (real nonempty diff, nonemptyfindings) is unchanged. - The bad-base oracle matches the Windows
human_pathproducer (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, includingrepo_scope_base_must_resolve_to_a_commit(the outstanding native Windows bad-base execution, showing the foldedF:/...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 xtaskpolicy 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 Resultrequired 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.
|
Merged as 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 Residuals carried: native execution of the unix-gated budget process test exists only via hosted Linux lanes; the disabled-budget |
Summary
Pin
ripr checkargument 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:
analysis_timeout/analysis/timeout, and requires nonempty analysis with the budget disabled.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, tree5a68b50b9718fd783cfcb1ed83ed87428bdf8e20, integrated basisa1c1a33f075d7cc3a5e532c93d054f473fe05202.check_budget_refusalsandcli_value_contractsmodules, each with its correct feature/platform gate. Independent review of the identical committed tree found no additional source or oracle defect.7bac5d0f, whose tree exactly matches published predecessor69c71155, including the repaired bad-base expectation. The independent literal Windows/Unix path-policy controls also passed. Native Windows bad-base execution remains required.{}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.check-fast(14 gates; independently verified stable five-file selector),check-process-policy,ci-policyandprecommit. Doctor's behind-only result was advisory under repository policy; the later actual content conflict was separately established and repaired.c64a3878c89380941468dbeb6cf053631e2488bd, parentsc8f08a0cd218ac46c8855c3cbb32d184217e9a47+ candidate, tree9b1e70fb9615263356208a88cc9cf4403952b478. 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.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.