Skip to content

feat(guidance): next step for every static limitation and stop reason - #9449

Merged
EffortlessSteven merged 9 commits into
mainfrom
claude/project-thread-hbrih0
Oct 25, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
claude/project-thread-hbrih0

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

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) and StopReason (15) maps to one imperative next_step() through wildcard-free matches, rendered as a Next: line in check --format human-full and ripr 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_guidance tests: ordinal-checked count-pinned ALL lists, imperative shape, no runtime claims, distinct per kind and per stop reason, explain rendering.
  • human-full.txt goldens re-blessed under RIPR-SPEC-0319; drift is the added Next: line only. Classification, JSON, SARIF and gate output unchanged.
  • Review of record is in the PR comments; local cargo xtask precommit is green on 5ced46a.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GuGQtbbAYUM1bgExeZ3jiv

… (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
@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 EffortlessSteven self-assigned this Oct 22, 2026
@coderabbitai

coderabbitai Bot commented Oct 22, 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 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 165 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: 5457f938-d2ab-4b89-b22e-a7a8f9cb80cf
Commits

Reviewing files that changed from the base of the PR and between bb475e9 and c60b2f7.

Files selected for processing: 87
  • .ripr/traceability.toml
  • changelog.d/spec-0319-limitation-next-steps.md
  • crates/ripr/src/domain/limit_guidance.rs
  • crates/ripr/src/domain/mod.rs
  • crates/ripr/src/output/human/explain.rs
  • crates/ripr/src/output/human/sections.rs
  • docs/specs/README.md
  • docs/specs/RIPR-SPEC-0319-classification-keyed-guidance.md
  • fixtures/atomic_ordering_swap_strong_object_oracle/expected/human-full.txt
  • fixtures/constant_declaration_probe_reconciliation/expected/human-full.txt
  • fixtures/cross_crate_trait_impl_direct_owner_positive/expected/human-full.txt
  • fixtures/error_path_diagnostic_absent/expected/human-full.txt
  • fixtures/error_path_diagnostic_error/expected/human-full.txt
  • fixtures/error_path_diagnostic_escaped/expected/human-full.txt
  • fixtures/error_path_diagnostic_format/expected/human-full.txt
  • fixtures/error_path_diagnostic_neutral/expected/human-full.txt
  • fixtures/error_path_diagnostic_raw/expected/human-full.txt
  • fixtures/error_path_diagnostic_typed_argument/expected/human-full.txt
  • fixtures/error_path_diagnostic_typed_message/expected/human-full.txt
  • fixtures/error_path_operand_error_lexeme/expected/human-full.txt
  • fixtures/error_path_oracle_execution_called/expected/human-full.txt
  • fixtures/error_path_oracle_execution_direct/expected/human-full.txt
  • fixtures/error_path_oracle_execution_false_branch/expected/human-full.txt
  • fixtures/error_path_oracle_execution_no_assertion/expected/human-full.txt
  • fixtures/error_path_oracle_execution_reached_uncalled/expected/human-full.txt
  • fixtures/error_path_oracle_execution_shadowed/expected/human-full.txt
  • fixtures/error_path_oracle_execution_uncalled/expected/human-full.txt
  • fixtures/error_variant_boxed_wrapper_downcast_witness/expected/human-full.txt
  • fixtures/error_variant_boxed_wrapper_fail_closed/expected/human-full.txt
  • fixtures/field_match_foreign_option_constant/expected/human-full.txt
  • fixtures/field_match_macro_option_shadow/expected/human-full.txt
  • fixtures/field_match_raw_option_shadow/expected/human-full.txt
  • fixtures/guarded_result_match_conditional_failure/expected/human-full.txt
  • fixtures/macro_site_scoped_rest_limit/expected/human-full.txt
  • fixtures/one_hop_field_projection_discarded/expected/human-full.txt
  • fixtures/one_hop_field_projection_sibling/expected/human-full.txt
  • fixtures/one_hop_field_projection_wrong_sink/expected/human-full.txt
  • fixtures/owner_return_pin_rebound_test_attribute/expected/human-full.txt
  • fixtures/parser_formatted_input_provenance/expected/human-full.txt
  • fixtures/propagated_error_closing_early_path/expected/human-full.txt
  • fixtures/property_macro_lexical_fallback/expected/CHANGELOG.md
  • fixtures/property_macro_lexical_fallback/expected/human-full.txt
  • fixtures/property_macro_noop_named_test/expected/CHANGELOG.md
  • fixtures/property_macro_noop_named_test/expected/human-full.txt
  • fixtures/property_macro_noop_property_assertion/expected/CHANGELOG.md
  • fixtures/property_macro_noop_property_assertion/expected/human-full.txt
  • fixtures/property_macro_noop_proptest/expected/CHANGELOG.md
  • fixtures/property_macro_noop_proptest/expected/human-full.txt
  • fixtures/property_macro_noop_qualified_collision/expected/CHANGELOG.md
  • fixtures/property_macro_noop_qualified_collision/expected/human-full.txt
  • fixtures/property_macro_noop_quickcheck/expected/CHANGELOG.md
  • fixtures/property_macro_noop_quickcheck/expected/human-full.txt
  • fixtures/python_adversarial_changed_sink_non_delta_operand/expected/human-full.txt
  • fixtures/python_protocol_entry_bracketed_rebind_no_exposed_credit/expected/CHANGELOG.md
  • fixtures/python_protocol_entry_bracketed_rebind_no_exposed_credit/expected/human-full.txt
  • fixtures/python_unittest_list_equal_derived_result/expected/human-full.txt
  • fixtures/python_unittest_list_equal_effectful_argument/expected/human-full.txt
  • fixtures/python_unittest_list_equal_nested_class/expected/human-full.txt
  • fixtures/rust_committed_golden_expected_file/expected/human-full.txt
  • fixtures/rust_constructor_field_observation/expected/human-full.txt
  • fixtures/rust_constructor_field_wrong_field_observer/expected/human-full.txt
  • fixtures/rust_long_expression_display_bound/expected/human-full.txt
  • fixtures/rust_macro_reach_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_reach_limitation/expected/human-full.txt
  • fixtures/rust_macro_wrapped_assertion_limitation/expected/human-full.txt
  • fixtures/rust_macro_wrapped_test_call_limitation/expected/CHANGELOG.md
  • fixtures/rust_macro_wrapped_test_call_limitation/expected/human-full.txt
  • fixtures/rust_mixed_direct_macro_reach/expected/CHANGELOG.md
  • fixtures/rust_mixed_direct_macro_reach/expected/human-full.txt
  • fixtures/rust_returned_type_drop_local_guard/expected/human-full.txt
  • fixtures/rust_slice_table_call_exit/expected/human-full.txt
  • fixtures/rust_slice_table_try_exit/expected/human-full.txt
  • fixtures/rust_test_written_expected_file/expected/human-full.txt
  • fixtures/rust_test_written_expected_file_bound/expected/human-full.txt
  • fixtures/rust_transitive_reach_positive/expected/CHANGELOG.md
  • fixtures/rust_transitive_reach_positive/expected/human-full.txt
  • fixtures/rust_transitive_reach_same_name_other_type/expected/CHANGELOG.md
  • fixtures/rust_transitive_reach_same_name_other_type/expected/human-full.txt
  • fixtures/rust_transitive_reach_test_helper_chain/expected/CHANGELOG.md
  • fixtures/rust_transitive_reach_test_helper_chain/expected/human-full.txt
  • fixtures/rust_where_bound_declarations/expected/human-full.txt
  • fixtures/selector_swap_try_not_error_path/expected/human-full.txt
  • fixtures/shared_target_assertion_return/expected/human-full.txt
  • fixtures/typescript_adversarial_owner_module_mock/expected/human-full.txt
  • fixtures/whole_value_string_from_shadow/expected/human-full.txt
  • fixtures/wrapper_seam_callee_call_attribution/expected/human-full.txt
  • policy/doc-artifacts.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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

Copy link
Copy Markdown
Member Author

Review of record

Head: 2161596358c0f8ff6c6ad6e5598c1afe06ff6516

Angles (independent reviewer agents, read-only):

  • Correctness and edge cases (on ef08d4e1): 3 blocking, 2 duplication findings, several nits.
  • Spec, contract and tests (on ef08d4e1): no blocking; test-pinning nits; goldens verified as added Next: lines only across all 60 files; public JSON/SARIF/GitHub output unaffected.
  • Re-review of the fix commit (this head): no blocking findings.

Resolutions in this head: neutral wording for the assertion-context step (no assert_eq! vs assert! conflict with the match-arm description) and no advice to drop a feature cfg; the feature-unknown step no longer names a nonexistent flag; no self-referential ripr explain hint; MissingImportGraph covers unresolved relative imports; helper-identity step leads with calling by full path. The gap-evidence stop reason no longer prints a generic Next beside a specific limitation Next, and explain skips the stop-reason Next when an investigation step is already shown. Count-pinned ALL lists, stop-reason distinctness and explain rendering tests added; 29 goldens re-blessed.

Known gap, not blocking: the two new suppression branches have no direct test; golden coverage exercises the sections path. Tracked under #9438.

Local cargo xtask precommit passes. owner_return_pin_fallible_literal could not be compared offline; hosted CI owns it.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 03:50
@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!

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

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head 5ced46a3), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

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

@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 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
EffortlessSteven added a commit that referenced this pull request Oct 25, 2026
…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>
EffortlessSteven added a commit that referenced this pull request Oct 25, 2026
…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>
EffortlessSteven added a commit that referenced this pull request Oct 25, 2026
…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>
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