Repository navigation
Let the agent loop finish when only analyzer limits remain (#14821) - #15322
Conversation
verify=complete_with_limits replaces verify=refused when the only unmet condition is unexposed findings and every one is a candidate-current, non-preview static_unknown / infection_unknown / propagation_unknown finding with a reaching, asserting related test and no weak or smoke owner-bound row. The init --agents loop treats it as DONE with limits reported. Strict verify=complete is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzRmqtKS28f5H5Gp2fX
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 47 minutes. View limit details
|
An examined-only reaching row carries the test's first assertion, which may be a smoke is_ok() or assert!(true). It now counts only when the same test is a contributing, reaching strong/medium row on a finding of the run; a contributing row must itself be strong/medium. agent-eval matches the two DONE records exactly; init block tests pin the new text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzRmqtKS28f5H5Gp2fX
A test that pins try_take exactly no longer vouches for an unasserted refill call: the examined-only route requires the same test to be a strong/medium reaching row on a finding of the same owner function. The CLI fixture adds that mixed tree as a refusal case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzRmqtKS28f5H5Gp2fX
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzRmqtKS28f5H5Gp2fX
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head ea9d863
Inspected: the completion owner CheckOutput::verification and its new closable_limits projection; the agent renderer line; every .verification() consumer (triage all-clear keeps strict completion; unanalyzed-changes reads only refusals); xtask agent-eval DONE matching; the init block text in all three language variants plus the quickstart copy; OUTPUT_SCHEMA, RIPR-SPEC-0147 and changelog parity with the code.
Fail-closed axes covered by unit tests: gap classes, a named-limit weak finding, weak or smoke owner-bound rows, unknown relations, preview, base-deleted, missing reach, call-only and unmatched rows, examined-only rows without a same-owner exact test, a vouching test on another owner, an ownerless limit, owner opt-out, count drift, and every other refusal reason.
CLI fixtures: exact tests over a boundary fix end complete_with_limits; smoke-only, call-only, assert(true) and mixed trees over the same premise end refused.
Three independent subagent passes; the two fail-opens they found are repaired in this head.
Generated by Claude Code
Refuse when related-test rows were packed past the bounded list (a dropped row could be weak); key the vouching test by its full identity including start line; only candidate-current, non-preview findings vouch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzRmqtKS28f5H5Gp2fX
related_test_role_tests control 7 forbids production row eligibility from reading RelatedTest::miss. The examined-only route now keys on the row role alone; the same-owner exact voucher carries the evidence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzRmqtKS28f5H5Gp2fX
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY for head f7f1edd
Inspected: the completion owner CheckOutput::verification and its new closable_limits projection; the agent renderer line; every .verification() consumer (triage all-clear keeps strict completion; unanalyzed-changes reads only refusals); xtask agent-eval DONE matching; the init block text in all three language variants plus the quickstart copy; OUTPUT_SCHEMA, RIPR-SPEC-0147 and changelog parity with the code.
Fail-closed axes covered by unit tests: gap classes, a named-limit weak finding, weak or smoke owner-bound rows, unknown relations, preview, base-deleted, missing reach, call-only and unmatched rows, examined-only rows without a same-owner exact test, a vouching test on another owner, an ownerless limit, owner opt-out, count drift, and every other refusal reason.
CLI fixtures: exact tests over a boundary fix end complete_with_limits; smoke-only, call-only, assert(true) and mixed trees over the same premise end refused.
Three independent subagent passes plus Devin; every hole they found (examined-only rows, cross-owner vouching, packed rows, same-name tests, stale vouchers) is repaired in this head with a unit case. Row eligibility reads the row role, never the miss.
Generated by Claude Code
|
Ownership check for #14821: I found this candidate at f7f1edd and the dedicated thread’s claim. Is that thread still writing or qualifying this head? I have a request to cover supported mutation receipts and preserve refusal for unresolved actionable findings. Please identify any existing receipt work or confirm a handoff on this candidate so we avoid concurrent edits. |
|
Ownership: the dedicated #14821 thread still owns this candidate, and it is done writing. Head f7f1edd is final. Receipt work: none exists here. This PR only changes the static Generated by Claude Code |
|
Parked green and ready to enqueue. Head f7f1edd has Generated by Claude Code |
|
|
One conflict, a doc-comment paragraph of xtask/src/reports/agent_eval.rs: the branch adds the acceptance of verify=complete_with_limits, and main reworded the sentence after it. Both are kept.
An independent reading of the completion owner found one fail-closed filter no test covered: the exact rows that may vouch for an examined-only row are taken from findings that are not withheld, and nothing failed when that filter was removed. A test now opts the vouching finding out and expects the refusal. A removal control on this head shows why the filter alone stops no test: the refusal is overdetermined. The summary counts a withheld exposed finding, so the count reconciliation refuses the run whether or not the filter is there. The filter is kept as defense in depth that keeps the voucher rule true on its own, and the code comment and the test say so. The owner's doc comment says what the code asks of an examined-only row: its role, and neither what it matched nor what was not credited.
Source review of the PR's head
|
|
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Reviewed head c94c848: the PR's own head f7f1edd9a66b686f6dce658a746ca0a539cf1cfb, the merge 66d169954c0305603e4da16482d9404dcdbc1cef of origin/main 5000e3d6ae with that head as its first parent, and c94c8483e48f62bfeadb5facec23547233751a4c, one test and one doc comment. The record for f7f1edd9a66b686f6dce658a746ca0a539cf1cfb earlier in this conversation covers the PR's change; this one covers the merge and the test.
The PR (#14821). ripr check --format agent ends with verify=complete_with_limits|...|limits=CLASS:COUNT,... instead of a refusal when that refusal is the only unmet condition and every unexposed finding is an analyzer limit no test edit can close; the ripr init --agents loop and the quickstart accept that line as DONE and ask the agent to report the limits as unproven. Strict verify=complete is unchanged and no finding is upgraded. The eligibility owner is CheckOutput::verification(); it is fail-closed: only the three unknown classes, candidate-current, non-preview, not withheld, no weak or smoke contributing test that is not proximity-only, positive evidence of a reaching test that pins exactly, the refusal list exactly the one refusal, and counts that reconcile.
The merge. One conflict, a doc-comment paragraph of xtask/src/reports/agent_eval.rs: the branch's acceptance of verify=complete_with_limits and main's reworded sentence beside it are both kept. Nothing else conflicted.
The test commit. A read-only reviewer of the merged delta found no fail-open input for the audited shapes and one fail-closed filter no test covered: the rows that may vouch for an examined-only row are taken from findings that are not withheld. c94c8483e48f62bfeadb5facec23547233751a4c adds the control, the vouching finding opted out and the run refused. The refusal is overdetermined: with that filter removed every test of the owner still passes, because the count reconciliation refuses a run whose summary counts a withheld exposed finding; the filter stays as defense in depth, and its comment says so. c94c8483e48f62bfeadb5facec23547233751a4c also makes the owner's doc comment say what the code asks of an examined-only row.
Linux, this head merged onto main at 0ff5aa2461: cargo test -p ripr --lib -- app::check_verification, 7 passed; cargo clippy -p ripr --all-targets -- -D warnings, exit 0; cargo fmt --all -- --check, exit 0. Linux, the same test commit before its last amendment, which changes two comments and nothing else, merged onto main at 5000e3d6ae: the same 7 tests passed; cargo test -p ripr --test cli_smoke -- verify_complete_with_limits, 2 passed; cargo test -p xtask -- agent_eval, 21 passed; cargo xtask goldens check over every fixture, pass; cargo clippy -p ripr -p xtask --all-targets -- -D warnings and cargo fmt --all -- --check, exit 0. Windows host, the earlier head: the owner's 7 tests, the 2 CLI tests and the 21 xtask tests passed; the 45 policy gates, each exit 0; cargo clippy --workspace --all-targets -- -D warnings, exit 0; on this head the owner's 7 tests passed again. Removal controls, each applied, tested and restored on a clean tree: with a withheld unexposed finding counted as a closable limit again, any_test_closable_finding_keeps_the_refusal stops, on the Windows host on the earlier head and on Linux on this head (6 passed, 1 stopped), which is the case the test of this commit holds; with the exact rows that may vouch for an examined-only row taken from withheld findings again, on the Windows host on the earlier head, no test stops, because the count checks refuse a run that withholds an exposed finding on their own; that filter is redundant today, and the test and the two comments of this commit say so.
Read and left as they are: the three notes the reviewer left, each named in the inspection record; none is a way to reach the new state with a closable finding or a gap.
Not claimed: hosted qualification on this head has not run.
The structured inspection record is in the PR conversation.
`main` grew the agent block by one line since this branch's base, and the branch adds one DONE line for `verify=complete_with_limits`; merged, the block has 41 lines and `block_fits_the_budget_and_names_the_stop_rules` stops the hosted test shard. Two DONE lines that each say when to stop are joined into one; no word of either is dropped, and the quickstart page, which must carry the identical block, gets the same line.
Source review of the PR's head
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Reviewed head 627f2f3: the PR's own head f7f1edd9a66b686f6dce658a746ca0a539cf1cfb, the merge 66d169954c0305603e4da16482d9404dcdbc1cef of origin/main 5000e3d6ae with that head as its first parent, c94c8483e48f62bfeadb5facec23547233751a4c (one test and one doc comment) and 627f2f3543a10c87c9b3c178586adac3d7b7416d (the agent block's line budget). The record for f7f1edd9a66b686f6dce658a746ca0a539cf1cfb earlier in this conversation covers the PR's change; this one covers the merge and the two commits.
The PR (#14821). ripr check --format agent ends with verify=complete_with_limits|...|limits=CLASS:COUNT,... instead of a refusal when that refusal is the only unmet condition and every unexposed finding is an analyzer limit no test edit can close; the ripr init --agents loop and the quickstart accept that line as DONE and ask the agent to report the limits as unproven. Strict verify=complete is unchanged and no finding is upgraded. The eligibility owner is CheckOutput::verification(); it is fail-closed: only the three unknown classes, candidate-current, non-preview, not withheld, no weak or smoke contributing test that is not proximity-only, positive evidence of a reaching test that pins exactly, the refusal list exactly the one refusal, and counts that reconcile.
The merge. One conflict, a doc-comment paragraph of xtask/src/reports/agent_eval.rs: the branch's acceptance of verify=complete_with_limits and main's reworded sentence beside it are both kept. Nothing else conflicted.
The test commit. A read-only reviewer of the merged delta found no fail-open input for the audited shapes and one fail-closed filter no test covered: the rows that may vouch for an examined-only row are taken from findings that are not withheld. c94c8483e48f62bfeadb5facec23547233751a4c adds the control, the vouching finding opted out and the run refused. The refusal is overdetermined: with that filter removed every test of the owner still passes, because the count reconciliation refuses a run whose summary counts a withheld exposed finding; the filter stays as defense in depth, and its comment says so. c94c8483e48f62bfeadb5facec23547233751a4c also makes the owner's doc comment say what the code asks of an examined-only row.
The agent block's budget. The hosted qualification of c94c8483e48f62bfeadb5facec23547233751a4c stopped in a test shard on block_fits_the_budget_and_names_the_stop_rules: main has grown the agent block by one line since this branch's base, the branch adds one DONE line, and merged the block has 41 lines against a budget of 40. 627f2f3543a10c87c9b3c178586adac3d7b7416d joins two DONE lines that each say when to stop into one, in the block and in the quickstart page, which must carry the identical block; no word of either is dropped, and the block is 40 lines again.
Linux, this head merged onto main at 793151049b: cargo test -p ripr --lib -- cli::commands::init_agents, 21 passed, block_fits_the_budget_and_names_the_stop_rules, quickstart_page_carries_the_identical_block and block_uses_one_complete_post_edit_report among them; cargo test -p ripr --lib, the whole suite, 21,498 passed, 4 ignored and 3 stopped, named below. Linux, this head merged onto main at 8c719d04fa: cargo test -p ripr --test cli_smoke -- verify_complete_with_limits, 2 passed; cargo test -p xtask -- agent_eval, 21 passed; cargo xtask goldens check over every fixture, pass; cargo fmt --all -- --check, exit 0; cargo xtask ci-policy, the hosted policy lane's own command, exit 0 with every gate at pass; cargo clippy --workspace --all-targets -- -D warnings, exit 0. The three that stopped are in modules this branch does not touch, and this Linux host stops them on main as well: run on exact main 875aa822a7, captured_pr_diff_keeps_a_gitlink_bump_under_ignore_submodules_all and committed_changes_keep_a_gitlink_bump_under_ignore_submodules_all stop there too, each on a git commit of a gitlink that does not succeed under this host's git 2.34.1; no_impact_permission_only_change_declines_missing_mapping passed alone on main and stopped alone on the merged tree, and it reads a change time that must move between two writes a moment apart, so it is a timing flake of this host and not a reading of this branch. The whole ripr lib suite was not in the proof of the two earlier heads, which ran this branch's tests by name; this head's proof runs it, and no test of a module this branch touches stops in it. Windows host, this head: the unit tests of init_agents, 20 passed; the 45 policy gates, each exit 0; cargo clippy --workspace --all-targets -- -D warnings, exit 0. The evidence for the two earlier heads, and the removal controls of the test commit, is in the record of c94c8483e4 earlier in this conversation; that record's claim that the host's tests passed held only for the tests it named, which is why the first request of that head stopped on the agent block's line budget.
Read and left as they are: the three notes the reviewer left, each named in the inspection record; none is a way to reach the new state with a closable finding or a gap.
Not claimed: hosted qualification on this head has not run.
The structured inspection record is in the PR conversation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Final judgment for head 627f2f3 (#14821). The required PR qualification passed on this exact head: Ripr Rust Small Result success, Admit PR Candidate accepted the source review recorded on this head, and both hosted test shards ran on it. The head is unchanged since that review, the PR has no conflict, it has no open review thread, and no finding arrived after the request.
Source, stimulus and oracle were reviewed on this head, as recorded in the conversation: ripr check --format agent ends with verify=complete_with_limits instead of a refusal when that refusal is the only unmet condition and every unexposed finding is an analyzer limit that no test edit can close; strict verify=complete is unchanged and no finding is upgraded. The eligibility owner is CheckOutput::verification() and is fail-closed; the filter that keeps a withheld finding from vouching for an examined-only row, which a removal control showed to stand behind the count checks today, is held by a test of its own. Static evidence only.
This head is now enqueued for the queue's qualification of the actual merge composition. The queue result and the landed commit are read back separately.
Requested by Steven · project thread
Summary
ripr check --format agentnow ends withverify=complete_with_limits|outcome=O|findings=N|exposed=E|limits=CLASS:COUNT,...instead ofverify=refused|...|reason=unexposed_findings_remainwhen that refusal is the only unmet condition and every unexposed finding is an analyzer limit that no test edit can close.ripr init --agentsloop (anddocs/AGENT_QUICKSTART.md) accepts that line as DONE and asks the agent to report thelimits=. The "Analyzer limit" STOP bullet now applies only when verify is refused.verify=completeis unchanged. No finding is upgraded.The eligibility owner is
CheckOutput::verification()inapp/check_verification.rs. The renderer only formats it. It is fail-closed, and a finding counts as test-unclosable only when all of these hold:static_unknown,infection_unknownorpropagation_unknown. Neverno_static_path(an uncalled owner is a gap, agent: untested changed lines classed no_static_path count as limits, so FIND reports gaps=0 and a stop line on a smoke-only test #14820), and neverweakly_exposed/reachable_unrevealed, even behind a named limit;weakorsmokestrength, so the smoke-only trees from agent: untested changed lines classed no_static_path count as limits, so FIND reports gaps=0 and a stop line on a smoke-only test #14820 still refuse;RelationReason::establishes_reach) and is a contributingstrong/mediumrow on this finding, or is an examined-onlyassertion_not_observingrow of a test that is a contributing, reachingstrong/mediumrow on another finding of the same owner function. An examined-only row alone proves nothing, because its oracle text is just the test's first assertion. Without an owner binding, a test that is exact on one function could vouch for an unasserted call to another. Both holes were found by independent review and are now closed. The voucher is matched by full test identity (file, name, start line), comes only from candidate-current, non-preview, non-withheld findings, and is selected by row role, never bymiss(the related-test role control). A finding whose related-test rows were packed past the bounded list never completes;Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Spec: RIPR-SPEC-0147 (updated)
Governing issue or accepted claim: #14821
Acceptance delta (one sentence): When the only unexposed findings are analyzer limits that a reaching, asserting test leaves, the agent record ends
verify=complete_with_limits|...|limits=...and the documented loop can end in DONE, while smoke-only, assertion-free, gap,no_static_path, preview and suppressed cases keepverify=refused.Candidate Relationships
Candidate branch:
claude/project-thread-rnibvyStack parent or prerequisite PR: none
Scope
parse(..).unwrap()reads the same way. The arm selector deliberately refuses computed inputs. Crediting "a helper that calls the constructor" would be unsound, so the analysis and the sound options are filed as Exact assert on a match arm reads observation_unconfirmed when the arm's input is computed #15320.Proof
app/check_verification.rscover the positive case, including an examined-only reaching row with an unmatched assertion (the realstatic_unknownshape). They also cover each fail-closed axis: gap classes, a named-limit weak finding, smoke and weak rows (alone and mixed with strong), an unknown relation, preview, base-deleted, no related test, proximity, name and assertion-target-only relations, an empty oracle,no_assertion, owner opt-out, count drift, and every other refusal, plus the rule that strict completion stays strict.tests/cli_smoke/verify_complete_with_limits.rsbuilds real git fixtures from a ratelimit crate. Fixing the drain boundary<=→<under exact tests endsverify=complete_with_limits|...|limits=infection_unknown:1. The same diff under smoke-only (is_ok()), call-only andassert!(true)trees refuses. So does a mixed tree in which an exacttry_taketest only callsrefill, with refill precision also changed. Every refusing tree asserts the samegaps=0and limits premise.cargo xtask precommitexit 0 (twice, the second on 2234d55),check-traceabilityandcheck-file-policypass, the 2cli_smoke verify_complete_with_limitstests pass, thecheck_verificationandrelated_test_role_testslib tests pass on this head (14), plus the earlier 161-testoutput::humanandinit_agentsslice, and the 17 xtaskagent_evaltests.decision_helpers_never_branch_on_the_miss(row eligibility readmiss), fixed in f7f1edd. Its gates and shard 2 were green.Source review: REVIEW_READY 627f2f3
https://claude.ai/code/session_01YVdGzRmqtKS28f5H5Gp2fX
Generated by Claude Code