Repository navigation
fix(agent-stub): place --at --kind stubs where the repair cage admits them (#13383) - #13405
EffortlessSteven wants to merge 1 commit into
Conversation
… them (#13383) The command ripr check prints, agent stub --at --kind --write, resolved from a file parse and always placed an inline module in the production file, which the repair packet's tests/-only edit cage then refused (edit_cage_violation) and which the RIPR-SPEC-0287 divergence guard never saw. Upgrade the file-parse resolution to the classified resolution when the inventory holds the same seam and stubs it, so placement and the existing guard match --seam-id and the unkinded --at. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVdGzSYtntK6oMwg5TaJEA
|
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 43 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
An independent fresh-subagent review of head 71c977d found no blocking findings. It inspected the full diff, resolve_test_stub, resolution_for, next_repair_for and all callers of resolve_test_stub. The upgrade applies only to the kinded file-parse path, swaps in the classified resolution only when it succeeds, and otherwise keeps the file-parse stub and its disclosure. Repair pointer and divergence guard come from the existing owner, with no new validator. The integration test has an unkinded control, a placement-equality check and an untouched-production-file check. Spec, traceability and changelog match the change. Hosted exact-head proof is requested by merge-ready.
Generated by Claude Code
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
ripr static exposure checkCommit Took 51s. |
|
Closing as a duplicate of #13401, which claimed #13383 earlier (05:43Z vs 06:21Z) and implements the same fix (classified Generated by Claude Code |
Requested by Steven · project thread
Governing issue or accepted claim: #13383
Acceptance delta (one sentence):
ripr agent stub --at FILE:LINE --kind FAMILY --write, the commandripr checkprints, places the stub in the tests/ file the repair cage admits (or is refused by the existing divergence guard) instead of writing an inline module into the production file.Problem
--at --kindresolves from a single-file parse and always places a new inlinemod ripr_testsin the production file. The repair packet admits onlytests/<file>.rs, so a followingripr continuefails withedit_cage_violation. The RIPR-SPEC-0287 (#8727) divergence guard only runs for classified resolutions, so it never covered this path. Without--kindthe stub already targets tests/.Fix
In
resolve_test_stub, when a file-parse stub is produced and the scoped inventory holds the same seam, resolve it through the existing classified owner (resolution_for). Placement then matches--seam-idand the unkinded--at, andnext_repair_forplusdivergent_write_refusalapply unchanged. If the classified stub refuses (weak oracle, no placement) the file-parse resolution and its disclosure are kept. No new validator.Reproduction (scratch crate, before the fix)
lib fn
pricewith a weaktests/lib.rstest and a behavior-changing diff:agent stub --at src/lib.rs:2placed intotests/lib.rswith a Next repair line; adding--kind predicateplaced anew inline moduleinsrc/lib.rs.Proof
crates/ripr/tests/agent_stub_at_disclosure.rs::at_kind_write_places_into_the_tests_file_the_repair_cage_admitscargo test -p ripr --test agent_stub_at_disclosure(10 pass),--test agent_stub_compiles(40 pass),--lib test_stub(77 pass)cargo xtask precommit: all gates passed throughcheck-user-text, then stopped on an instrument timeout (covered_by enumeration ofrust_activationkilled after 300s under shared-build lock contention); not a source or policy failure. Not rerun to completion.ripr continue --attemptloop, full workspace tests, hosted CI.Spec RIPR-SPEC-0287, traceability and changelog fragment updated.
Generated by Claude Code