Repository navigation
feat(guidance): next step for every static limitation and stop reason - #9449
Conversation
… (RIPR-SPEC-0310, #9438) Exhaustive next_step() on StaticLimitKind and StopReason, rendered as a Next line in human-full and explain. Per-variant tests reject missing, duplicate or non-imperative guidance. Re-blesses 60 human-full goldens. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv
|
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 42 minutes. View limit details
Comment |
Neutral wording for the assertion-context and feature-unknown steps, no self-referential explain hint, single next step when a gap-evidence stop rides a named limitation or an investigation step is already printed, count-pinned ALL lists, stop-reason distinctness and explain rendering tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv
Review of recordHead: Angles (independent reviewer agents, read-only):
Resolutions in this head: neutral wording for the assertion-context step (no Known gap, not blocking: the two new suppression branches have no direct test; golden coverage exercises the sections path. Tracked under #9438. Local 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! |
Union conflicts in docs/specs/README.md and 60 fixture expected/CHANGELOG.md ledgers: main's entries kept verbatim, this branch's appended entries renumbered after main's max. Spec-ID collision resolved: this branch's RIPR-SPEC-0310 (classification-keyed guidance) renumbered to RIPR-SPEC-0319; main's RIPR-SPEC-0310 (check-findings artifact, #9103) untouched. Renumber applied consistently across docs/specs/, policy/doc-artifacts.toml, .ripr/traceability.toml, changelog.d/ and the 60 fixture bless ledgers.
…-fixture goldens Merge conflict repair on top of b189b1a: - The three StaticLimitKind variants main added after this branch cut (RustPinnedShapeUnresolved, RustImplicitCallUnresolved, RustCallerLoopSelectorUnresolved) now carry imperative next steps, ALL/ordinal lists extended 26->29 (#9438, RIPR-SPEC-0319). - macro_site_scoped_rest_limit, selector_swap_try_not_error_path and shared_target_assertion_return render the new Next lines under the merged renderer; goldens re-blessed (RIPR-SPEC-0319). Proof: cargo test -p ripr --lib limit_guidance (8 pass), cargo xtask goldens check (exit 0), cargo fmt --check, clippy -p ripr --lib -D warnings, policy cascade (7 checks) and spec/traceability registry checks pass.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv
|
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED for the focused #10192 actionable-limitation slice on head 4064756ff1f99a8d630fa2cacf09d00f401dfd00, tree 047780fae5d8f900f6ad33b49ef648dab837fd7c. PR API base: 1d3255d6d85c645fe8c190dd41a0df4bf5519b88.
One new P2 finding is attached to the guidance mapping. Scope inspected: classification-keyed mappings, sections/explain consumers, existing reconciliation logic, spec 0319, and transitive/public-API fixture and edge producers. Reused the older review of record as historical evidence only; its 21615963 head and reported precommit do not establish this head's acceptance against the later real-agent failures #10192.
Independently observed: locked exact-head cargo build -p ripr --bin ripr passed (Rust 1.95.0/Linux). Binary SHA256 740b8ccf2693b4f66ae9f164e1ab5b5e26e8322828d81b7a3ef7b71d80c3baf3. Public-API boundary integration test passes; wrong-predicate control fails at its behavioral assertion (3 != 0). check --format human-full and explain both reproduce misleading repair advice. No author-branch/source writes.
Separate inherited residual, not an additional defect introduced by this diff: pub fn pair(a: u32, b: u32) -> bool { a >= 10 && b > 20 } with its expression on line 2 and a > -> >= diff produces two check findings. agent stub --at src/lib.rs:2 --kind predicate --json exits 3 with selector_ambiguous, offering seam IDs a13829b9573b18ef and a134a8b9573807e5; check prints probe/canonical-gap IDs but neither seam ID. Therefore this generic guidance PR does not satisfy #10192's ambiguous-seam or hidden-findings acceptance. Keep that specific work separate; do not create a duplicate generic guidance implementation.
Integration observation: git merge-tree --write-tree 4064756f 1818f481c279b84634c32ee19e9c23d199459967 exits 0 with tree 91bb2ee1863d5c2f60654c32ca6cbe6c4dcb0750, no conflict paths. The later PR API reports mergeable=false, so live mergeability remains unsettled; the local composition proves only the named basis, and no conflict repair or ref write was attempted.
Not independently verified: full unit/golden suite, hosted qualification, current required-check completeness, or humantime/bytesize upstream harness reruns. Offline build first stopped at missing cached oxc_ast_visit; the supported locked registry build subsequently succeeded. Next action: canonical writer repairs the guidance and semantic regression on this PR, then obtain an affected-surface review at the new exact head. No merge/qualification clearance.
) A transitive, public-API-path, macro or depth-limited reach edge can sit behind a private helper no test can name, so the step now says to call the owner directly if tests can name it and that the edge can stay unresolved even with an exact assertion. Adds a regression test and re-blesses 12 goldens. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv
…ed RIPR-SPEC-0319 guidance drift Main #9449 (cbddd07) added Next guidance lines under static limitations and stop reasons without reblessing these 14 fixtures, leaving main's own goldens check red on untouched code. Their human.txt additionally picks up this PR's RIPR-SPEC-0122 clipped-to-wrap digest line (main's 0319 wording lengthened the missing-discriminator prose past the wrap threshold). Each bless carries a CHANGELOG entry citing RIPR-SPEC-0319 (inherited) and RIPR-SPEC-0122 (this PR). No source changes. Co-authored-by: Claude <noreply@anthropic.com>
…ed RIPR-SPEC-0319 guidance drift Main #9449 (cbddd07) added Next guidance lines under static limitations and stop reasons without reblessing these 14 fixtures, leaving main's own goldens check red on untouched code. Their human.txt additionally picks up this PR's RIPR-SPEC-0122 clipped-to-wrap digest line (main's 0319 wording lengthened the missing-discriminator prose past the wrap threshold). Each bless carries a CHANGELOG entry citing RIPR-SPEC-0319 (inherited) and RIPR-SPEC-0122 (this PR). No source changes. Co-authored-by: Claude <noreply@anthropic.com>
…ng it (#10258) * fix(human): wrap digest missing-discriminator prose instead of clipping it The digest finding card rendered its Missing discriminator line through one_line, hard-cutting at 180 characters with only an ellipsis. On the TypeScript preview witness the card ended 'but helper-derived…' mid-thought; the operative tail ('...stay advisory in preview') was gone and no pointer said where the rest lived. The prose itself contains literal '...' sequences (expect(IMPORTED_CONST)...), so the clip marker did not even read as a clip. The same card already wraps the Next step and Not credited prose (#4323: wrap, never truncate — a hard cut deletes the remedy). Render the missing- discriminator value with the same fit-or-wrap policy; --format human-full carries the identical text in its Weakness section. Goldens: 231 human.txt fixtures re-blessed (formatting_only, every diff is the same line changing from clipped-with-ellipsis to wrapped), each with a RIPR-SPEC-0122 blessing CHANGELOG entry. human-full, JSON and machine surfaces are byte-unchanged. Co-authored-by: Claude <noreply@anthropic.com> * test(goldens): rebless python_conditional/module fixtures for inherited RIPR-SPEC-0319 guidance drift Main #9449 (cbddd07) added Next guidance lines under static limitations and stop reasons without reblessing these 14 fixtures, leaving main's own goldens check red on untouched code. Their human.txt additionally picks up this PR's RIPR-SPEC-0122 clipped-to-wrap digest line (main's 0319 wording lengthened the missing-discriminator prose past the wrap threshold). Each bless carries a CHANGELOG entry citing RIPR-SPEC-0319 (inherited) and RIPR-SPEC-0122 (this PR). No source changes. Co-authored-by: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steven · project thread
Source-of-truth Links
Proposal:
Spec: docs/specs/RIPR-SPEC-0319-classification-keyed-guidance.md
ADR:
Plan item:
Governing issue or accepted claim: #9438 (guidance coverage umbrella), slice 1
Acceptance delta (one sentence): Every
StaticLimitKind(26) andStopReason(15) maps to one imperativenext_step()through wildcard-free matches, rendered as aNext:line incheck --format human-fullandripr explain.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-hbrih0
Stack parent or prerequisite PR (if any): none
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): n/a
Proof
limit_guidancetests: ordinal-checked count-pinnedALLlists, imperative shape, no runtime claims, distinct per kind and per stop reason, explain rendering.human-full.txtgoldens re-blessed under RIPR-SPEC-0319; drift is the addedNext:line only. Classification, JSON, SARIF and gate output unchanged.cargo xtask precommitis green on 5ced46a.🤖 Generated with Claude Code
https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv