Skip to content

fix(rust): withhold exact-pin gaps on closure, returned-receiver and let-else shapes - #9488

Merged
EffortlessSteven merged 14 commits into
mainfrom
claude/project-thread-58r3x9
Oct 22, 2026
Merged

EffortlessSteven merged 14 commits into
mainfrom
claude/project-thread-58r3x9

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Fixes #9440 (under #9410). An isolated exact assert_eq! on a direct call read as "no assertion references the change" when the changed code sat in a closure the call runs, a statement acting on the returned value, or a let ... else exit. New rust_pinned_shape_unresolved limit withholds that gap as static_unknown (RIPR-SPEC-0240); nothing is credited.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Spec: RIPR-SPEC-0240
Governing issue or accepted claim: #9440
Acceptance delta (one sentence): The false-actionable Rust corpus rows from #9440 read limited, with regression tests and a named limit.

Candidate Relationships

Candidate branch: claude/project-thread-58r3x9
Stack parent or prerequisite PR (if any): none. Based on main after #9432 merged; four of the nine rows (adder, zero-input, collect-result, impl-trait-return-filter) moved to #9463 and are not re-blessed here.

Scope Classification

  • Analyzer change with spec, tests and corpus rows

Decision

Withhold, do not credit. Whether the pinned input runs the changed closure or takes the else exit is not something ripr resolves here. Crediting spawn+join, an applied returned closure and Result collect needs pin-rule additions with runtime controls: #9490.

Corpus effect (on main: 535 cases, 9 false verdicts)

  • false_actionable -> abstained, re-blessed here: shape-thread-join-result, shape-sort-direction-truncate, shape-let-else-branch-pinned.
  • Re-blessed here, cost rows: shape-let-else-branch-unreached, shape-windows-strict-vs-loose (ideal -> acceptable; cases accept limited).
  • Owned by test(corpus): add 20 more Rust language-shape cases #9463: adder, zero-input, collect-result, impl-trait-return-filter. Whoever merges second re-blesses them.
  • shape-closure-returned-zero-input keeps its gap: a zero input provably does not run the closure, so the zero-input rule excludes it.
  • Unmoved by design: RIPR-SPEC-0265 adaptor rows (trap-iter-empty-slice, grid-iter-property).

Why two true-gap twins read limited

let-else-branch-unreached and windows-strict-vs-loose differ from their pinned twins only in which input value reaches the changed edge. Deciding that needs the input-to-branch evaluation that ripr deliberately does not do, so narrowing further would require crediting or evaluation, not withholding. The cost is bounded: two rows lose ideal, both stay non-actionable and accept limited. Tracked in #9490.

Proof

cargo test -p ripr --test pinned_shape_limit   # 19 pass (positives + narrowness controls)
cargo xtask verdict-corpus check               # drift only on the re-blessed rows
cargo xtask precommit                          # exit 0

Full cargo test -p ripr: only failures are pre-existing (match_arm_geometry fails on the base too; cli_smoke::pr_evidence_with_missing_artifacts_writes_error_packet needs origin/main). Cache schema bumped 1.90 -> 1.91. The boundary_gap unchanged-after-attempt snapshot (pinned by cli_smoke::first_useful_action_corpus_pins_routing_cases) is refreshed for 1.91.

Claim Boundary

May claim: these shapes no longer produce a certain gap. Must not claim: they are credited or that the pinned test notices the change.

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri

@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 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 114 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: 0cb10ff9-7298-4b4b-967c-88be14bfa8d1
📥 Commits

Reviewing files that changed from the base of the PR and between e7b5e1d and 35e0778.

📒 Files selected for processing: 36
  • .ripr/traceability.toml
  • changelog.d/9440-pinned-shape-limit.md
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/src/analysis/classify/owner_pin.rs
  • crates/ripr/src/analysis/classify/pinned_shape.rs
  • crates/ripr/src/analysis/language/rust/mod.rs
  • crates/ripr/src/analysis/seam_cache.rs
  • crates/ripr/src/domain/language.rs
  • crates/ripr/src/lsp/gap_artifacts.rs
  • crates/ripr/tests/lsp_lifecycle/gap_corpus_currentness.rs
  • crates/ripr/tests/pinned_shape_limit.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/STATIC_LIMITS.md
  • docs/specs/RIPR-SPEC-0240-unknown-not-a-gap.md
  • fixtures/boundary_gap/expected/CHANGELOG.md
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/after.repo-exposure.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-receipt.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/agent-verify.json
  • fixtures/boundary_gap/expected/first-useful-action/unchanged-after-attempt/before.repo-exposure.json
  • fixtures/rust-verdict-corpus/expected/rows/shape-closure-returned-adder.json
  • fixtures/rust-verdict-corpus/expected/rows/shape-collect-result-short-circuit.json
  • fixtures/rust-verdict-corpus/expected/rows/shape-impl-trait-return-filter.json
  • fixtures/rust-verdict-corpus/expected/rows/shape-let-else-branch-pinned.json
  • fixtures/rust-verdict-corpus/expected/rows/shape-let-else-branch-unreached.json
  • fixtures/rust-verdict-corpus/expected/rows/shape-sort-direction-truncate.json
  • fixtures/rust-verdict-corpus/expected/rows/shape-thread-join-result.json
  • fixtures/rust-verdict-corpus/expected/rows/shape-windows-strict-vs-loose.json
  • fixtures/rust-verdict-corpus/known-false/shape-closure-returned-adder.toml
  • fixtures/rust-verdict-corpus/known-false/shape-collect-result-short-circuit.toml
  • fixtures/rust-verdict-corpus/known-false/shape-impl-trait-return-filter.toml
  • fixtures/rust-verdict-corpus/known-false/shape-let-else-branch-pinned.toml
  • fixtures/rust-verdict-corpus/known-false/shape-sort-direction-truncate.toml
  • fixtures/rust-verdict-corpus/known-false/shape-thread-join-result.toml
  • policy/output_contracts.txt
  • xtask/src/python_judged_panel.rs
  • xtask/src/tests/rust_corpus_projection.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

… by the pin (#9440)

An exact direct pin of a changed closure tail, returned receiver or let-else
exit was read as weakly_exposed/observation_unverified. Withhold it as
static_unknown (rust_pinned_shape_unresolved) instead; SPEC-0265 slice
adaptors, empty/zero inputs and non-exact pins keep their gap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
@EffortlessSteven
EffortlessSteven force-pushed the claude/project-thread-58r3x9 branch from 70b4b80 to cf7c58d Compare October 22, 2026 05:48
… effect (#9440)

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

Copy link
Copy Markdown
Member Author

Review of record

Head reviewed: cf7c58d2f; doc-only follow-up 4e812d657 (spec wording) is the current head. CodeRabbit is rate-limited on this PR, so it supplied no review.

Angles (independent reviewer agents, read-only)

  1. Correctness and edge cases (AST walkers, false withholds, real-ripr repros).
  2. Tests/regressions and spec/contract (variant registration, cache versions, test discrimination, vocabulary).

Findings and resolutions

  • Spec named four corpus rows that live in test(corpus): add 20 more Rust language-shape cases #9463, not on this branch. Fixed in 4e812d657: the effect section now lists only rows blessed here and says test(corpus): add 20 more Rust language-shape cases #9463 owns the rest.
  • shape-let-else-branch-unreached and shape-windows-strict-vs-loose are true gaps that now read static_unknown. Not narrowable under withholding: they differ from their pinned twins only in which input value reaches the changed edge, which ripr does not evaluate. Both stay non-actionable and their cases accept limited. Recorded on feat(rust): credit exact pins through a joined spawned closure, an applied returned closure and a Result collect #9490 for the crediting follow-up.
  • A non-literal empty input bound earlier in the test (let e: Vec<u32> = vec[]; f(&e)) is not seen as degenerate by the textual check. Reproduced with real ripr: the result is a plain weak finding, not a withhold, so no false withhold.
  • No crash or misparse found in the walkers; all enum-variant registrations and the 1.90→1.91 cache bump are consistent.
  • fixtures/boundary_gap/.../unchanged-after-attempt/* still records 1.90; hash-committed and unenforced, left alone.

No blocking findings. Negative controls (keeps_gap) fail if the guard over-withholds; positives fail if it is removed.


Generated by Claude Code

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 5 potential issues.

Devin Review

Comment thread .ripr/traceability.toml Resolved
…osures, one-line let-else and dead equalities (#9440)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PResvVn1d7d3d4PYtRgdri
… for cache schema 1.91 (#9440)

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

Copy link
Copy Markdown
Member Author

Review of record, addendum for head 284680d54

Prior record covered cf7c58d2f/4e812d657 (correctness; tests/spec). Since then:

  • Devin Review found five narrowing gaps, all verified and fixed in 66e271be4 with controls: shadowed or reassigned returned receiver, closure bound by let and never called, one-line let ... else whose initializer shares the changed line, equality inside a branch that may not run, and test references filed under fixtures in the traceability map. Each thread has a reply.
  • The 4e812d6 cli_smoke::first_useful_action_corpus_pins_routing_cases failure was real, not environmental: the boundary_gap unchanged-after-attempt snapshot pins cache_schema_version, which this PR bumps to 1.91. Earlier I wrongly called that fixture unenforced. Refreshed in 284680d54 (normalized producer output, content hash, receipt digests); the test passes, and my earlier note in the PR body is corrected.
  • All changes since the first record only narrow the withhold (more gaps kept), so no new class of finding can be withheld. pinned_shape_limit 19 pass, clippy -D warnings clean, verdict-corpus check no new drift, cargo xtask precommit exit 0.

CodeRabbit and Gemini are quota-limited (no review from them). No blocking findings remain.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

windows-advisory-subset failed on 284680d54 in two Python selector-literal tests (test_recovery_escapes_apostrophes_like_the_formatter, test_windows_recovery_matches_console_quotes_and_keeps_literal): recovery-command quoting, which this PR does not touch (it changes Rust classification, fixtures and docs only). The lane is advisory; I'm leaving it and watching the required Ripr Rust Small Result.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • Two true-gap corpus rows (shape-let-else-branch-unreached, shape-windows-strict-vs-loose) read static_unknown instead of weakly_exposed; cases accept limited. Author acknowledges in PR body and tracks in #9490. This is documented cost, not a defect.
  • StaticLimitKind additions and the cache schema bump 1.90→1.91 are mirrored across domain, lsp, seam_cache, xtask, and corpus tests; failure to mirror would surface as compile errors, not a security gap, but a missed mirror could let an unknown kind reach the wire as a typed limitation without a guard.

Verification questions

  • Confirm devin's 5 narrowing concerns (dead equality, shadowed return, single-line let-else, never-called closure, traceability path) are correctness/withhold-tightening, not security exploits. Author replies in 66e271b cite control tests for each; rerun evidence is pending (cargo-test scheduled-late).

Refuted

  • The closure-tail rule may cross a Worker/async detach or GC boundary.; refuted because: The implementation parses Rust syntax and inspects AST nodes with ra_ap_syntax; it neither invokes nor retains JS callbacks across asynchronous boundaries. Rust nodes and strings remain under ordinary synchronous ownership, so there is no Worker, GC, detach, transfer, or listener lifetime to analyze on this PR's changed path.
  • The PR broadens syntactic acceptance beyond its unresolved-shape contract.; refuted because: The PR explicitly withholds without credit, requires exact whole-call pins, rejects conditional combinators/degenerate inputs/other exits, and parks runtime-sensitive crediting.
  • Static_limit_kind is an attacker-controlled string written to JSON; an unrecognized value could let an attacker-influenced repo cause a denial-of-service or schema confusion in downstream consumers.; refuted because: StaticLimitKind is constructed only by the Rust enum; .as_str() is exhaustive and the new variant is mirrored into known_static_limit_kind (gap_artifacts.rs) and xtask KNOWN_STATIC_LIMIT_KINDS, so every emitted value passes the producer-side guard. The new value is a fixed identifier (rust_pinned_shape_unresolved), not user input.

Parked follow-ups

  • Crediting these unresolved shapes and narrowing the syntactic approximations is explicitly deferred rather than silently broadened in this PR.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Main took cache schema 1.91 (skip-guarded table rows); the pinned-shape limit moves to 1.92 / 0.99, and the three #9463 shape rows are blessed here.

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

Copy link
Copy Markdown
Member Author

Review of record, addendum for head 2c1587043

284680d54's required check failed on one thing: the three shape cases that #9463 brought to main (shape-closure-returned-adder, shape-collect-result-short-circuit, shape-impl-trait-return-filter) now read limited and had no blessed rows. Fixed by merging main and blessing them here. They are the same rule on the same shapes, so their move to abstained is intended.

Main also took cache schema 1.91 for an unrelated change (skip-guarded table rows), so this PR's bump is now 1.92 (sharded and compact 0.99). The merge conflict in seam_cache.rs was resolved by keeping main's 1.91 note and adding ours as 1.92; the tests, OUTPUT_SCHEMA.md and the boundary_gap snapshot (content hash and receipt digests recomputed from normalized production output) follow.

Local evidence on this head: pinned_shape_limit 19 pass, first_useful_action_corpus_pins_routing_cases passes, verdict-corpus check clean after bless, cargo xtask precommit exit 0. The only other red check last round was advisory windows-advisory-subset, unrelated. Review scope is unchanged from the earlier records: no blocking findings.


Generated by Claude Code

Main added rust_implicit_call_unresolved beside rust_pinned_shape_unresolved; both limits are kept.

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

The pinned-shape limit and the implicit-call limit make these rows non-false; verdict-corpus check fails on a listed row that is no longer false.

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

Copy link
Copy Markdown
Member Author

Note for whoever resolves the conflict on this PR: #9700 moved the known_false ledgers to one file per row at fixtures/<language>-verdict-corpus/known-false/<case>.toml, and inline [[known_false]] tables now fail the check. This branch's ledger edits (removing the eight #9440/#9463 rows from fixtures/rust-verdict-corpus/spec-coverage.toml and docs/roadmap/false-verdicts.md) become: delete those eight known-false/*.toml files (shape-thread-join-result, shape-sort-direction-truncate, shape-let-else-branch-pinned, shape-closure-returned-adder, shape-collect-result-short-circuit, shape-impl-trait-return-filter, plus any others this PR un-listed), and take main's side of both old files. Then re-run cargo xtask verdict-corpus check-all and re-apply merge-ready. I cannot write to the branch from this session (git writes are refused), so this is guidance only.


Generated by Claude Code

…esh snapshot, drop fixed known-false rows (#9440)

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

Copy link
Copy Markdown
Member Author

Merged current main into this branch (3887cf1) and resolved the conflicts; merge-ready re-applied.

  • Cache schema: main moved to 1.94/0.101 (caller-loop selector, Display pin, fixture-receiver limits), so this PR's bump is now 1.95 full and 0.102 sharded and compact, with the in-file version test and both CURRENT_CORPUS_CACHE_SCHEMA_VERSION test constants updated. KNOWN_STATIC_LIMIT_KINDS in xtask/src/python_judged_panel.rs goes from 27 to 28 entries for rust_pinned_shape_unresolved.
  • Docs: rust_pinned_shape_unresolved row kept in docs/STATIC_LIMITS.md (after main's current rust_framework_oracle_unresolved text) and docs/OUTPUT_SCHEMA.md (limit list and entry); schema-version examples read 1.95.
  • boundary_gap snapshot: unchanged-after-attempt regenerated from the production ripr check output with the test's own normalization, content commitment recomputed, receipt and verify digests updated; the unmodified first_useful_action_corpus_pins_routing_cases passes.
  • Corpus: main's list is now per-case files; the six rows this PR fixes (shape-closure-returned-adder, -collect-result-short-circuit, -impl-trait-return-filter, -let-else-branch-pinned, -sort-direction-truncate, -thread-join-result) had their known-false/*.toml files deleted. verdict-corpus check passes: 591 cases, 6 false verdicts remaining (all other owners).
  • Proof: cargo xtask precommit exit 0 and goldens check pass locally on 3887cf1.

Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verification questions

  • Confirm whole-call recognition is hand-written over assertion text and accepts only tightly enumerated suffixes; valid exact pins using equivalent syntax may remain gaps.

Refuted

  • Schema, LSP, policy, xtask, and documentation mirrors carry a non-executable taxonomy label; malformed mirroring would affect classification metadata rather than memory safety.
  • Prior review concern about setup statements before assertions was discussed and resolved as conservative withholding, not an oracle overclaim.
  • The new parser might introduce an OOB, UAF, type-confusion, or information-disclosure primitive by treating source strings as unsafe process data.; refuted because: Source parsing uses bounded Rust AST operations; changed lines determine shape eligibility, not memory access authority. No pointers, buffers, unsafe blocks, FFI, or secrets are involved.
  • The prior unconditional-execution objection identifies a new false negative.; refuted because: The seeded discussion classifies it as a deliberate fail-closed limitation: unsupported setup control may withhold a gap but does not create an actionable false positive.
  • The rule is conservative on execution uncertainty: unsupported or unmodelled exits leave the gap rather than credit the oracle.
  • A cache or backing-store resize could leave the analyzer using stale active-view lengths.; refuted because: The diff contains no ArrayBuffer, TypedArray, resizable backing-store, transfer, detach, or length-snapshot logic; affected state is syntactic Rust AST text analyzed from the current source.
  • The PR changes native memory ownership or introduces a memory-safety vulnerability.; refuted because: The diff contains no unsafe or pointer/lifetime ownership changes; unsafe-review completed with no new or worsened gaps. The change is analyzer classification and typed output metadata.

Evidence gaps

  • The PR's reviewed integration proof is incomplete in this packet because cargo-test is scheduled but no receipt is supplied.
  • The scheduled cargo-test receipt is the only execution evidence needed to settle that all focused red/green controls pass on this head.
  • Model proof intent was rejected by deterministic validation.

Parked follow-ups

  • The remaining uncertainty is conservative textual/AST classification of execution paths, not ownership or lifetime safety; unusual shapes may be withheld or left as gaps.

… after #9750 took 1.95 (#9440)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJgwEL5EqfhxV47nHYYpMV
@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) October 22, 2026 21:39

Copy link
Copy Markdown
Member Author

Review of record on the delta, head 35e0778. Delta since the 3887cf1 review is one main merge: #9750 took cache generation 1.95, so this PR's schema moves to full 1.96 and sharded/compact 0.103 (docs, currentness constants, OUTPUT_SCHEMA examples, boundary_gap unchanged-after-attempt digests recomputed, fixture CHANGELOG note). Angles: correctness (seam_cache constants and tests, seam_cache lib 184 pass), tests/regressions (gap_corpus 23 pass, unmodified first_useful_action_corpus_pins_routing_cases passes against the regenerated digests), spec/contract (both limit kinds documented, 1.95 text from #9750 kept). Findings: none. The pinned-shape logic itself is unchanged. merge-ready re-applied on this head; auto-merge requested.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Independent read of the merge delta on head 35e0778ff (merge of main into the branch; read-only, nothing run). No finding.

Not established: the required check result on this head and the combined-tree compile; hosted CI owns both. The earlier accepted limitation (setup control flow before the assertion) is unchanged and fail-safe.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • The whole-call parser accepts unbounded trailing parenthesized groups after the owner call, so wrapping does not necessarily keep the gap.

Verification questions

  • Confirm the advertised controls do not cover an assertion nested inside the owner-call operand.

Refuted

  • The AST/text analyzer could introduce a memory-safety or ownership vulnerability.; refuted because: The changed code uses safe owned-value APIs and contains no unsafe/native operation. Existing unsafe-review evidence found no new or worsened gaps.
  • The changed analyzer logic might create a stale active-view region or unsafe backing-store access.; refuted because: The implementation parses Rust syntax and performs bounded AST/string operations; the changed paths contain no active-view buffer, resize, detach, transfer, raw pointer, or unsafe code.
  • A spawned-thread or async-looking closure can create a worker handoff, detach, GC, or transfer boundary that changes ownership or lifetime.; refuted because: The diff adds static Rust syntax classification and fixture tests only; no thread, async runtime, FFI, unsafe block, pointer, or transfer implementation is introduced. The analyzer operates on owned source strings and parsed syntax nodes.
  • The oracle can falsely withhold a real gap because setup control flow or macro wrappers are not modeled.; refuted because: This is an acknowledged conservative limitation: unsupported execution evidence withholds rather than credits, so it cannot create a false actionable signal; prior thread explicitly resolved this direction.
  • The new analyzer logic is duplicated across classification and language-specific modules.; refuted because: The substantive logic is confined to pinned_shape.rs; language/rust/mod.rs only invokes the shared hook, and contract mirrors are declarative vocabulary/schema updates rather than behavioral duplication.
  • The new source-string recognizers create an OOB, panic, or denial-of-service primitive.; refuted because: Parsing failure is fail-closed; delimiter scans require a closing delimiter; descendant traversal is AST-bounded; and no unbounded textual loop processes external secrets or attacker-selected data.
  • The changed parser may create UB or cross a memory-safety trust boundary.; refuted because: The diff uses owned ra_ap_syntax trees and string/range inspection; it introduces no unsafe code, pointer dereference, FFI, allocation-sensitive authority, or secret-dependent output.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Public schema mirrors, cache generations, docs, and corpus projections are updated consistently, but the available packet still reports ripr failed and cargo-test pending.

Copy link
Copy Markdown
Member Author

Reply to the github-actions review (head 35e0778).

Unbounded trailing groups in is_whole_call. Verified in pinned_shape.rs:212: owner(a)(b)(c) is accepted as a whole call, which is intended (an applied returned closure is the second group, owner(..)(..)). The question is whether accepting more groups can create a false actionable signal. It cannot: is_whole_call only decides that the pin reads the whole result, and a true result makes withhold_pinned_shape_gap withhold the gap as static_unknown. Accepting too many groups can only withhold a gap that would otherwise show; it never credits or promotes one. Projections (.len(), fields, operators, wrapping calls) still return false and keep the gap, and the narrowness controls in tests/pinned_shape_limit.rs cover those. So I'm leaving it as is, under the fail-closed rule.

Assertion nested inside the owner-call operand. pins_owner_exactly requires the operand text to be owner(..) with only call/.unwrap()/.collect() suffixes, and the argument text is not interpreted, so a nested assertion makes no difference to the decision; the withhold applies either way.

"ripr failed / cargo-test pending" in the evidence gaps refers to the in-flight required check on this head.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 33f6b74 into main Oct 22, 2026
49 of 50 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-58r3x9 branch October 22, 2026 22:32

Copy link
Copy Markdown
Member Author

Merge log: squash 33f6b74 on head 35e0778. Required "Ripr Rust Small Result" passed on that head; the five Devin threads each had a fix reply (66e271b) and are now resolved; the github-actions review was answered above (fail-closed direction). Cache schema landed as full 1.96 / sharded and compact 0.103 after #9750 took 1.95. #9490 builds on this.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Post-merge review of squash 33f6b743 against my earlier review at 35e0778ff: the squash carries the same 36 files (+1446/-72) I reviewed. Cache schema is 1.96 / 0.103, the six known-false/*.toml files are deleted, and the eight corpus rows are blessed. I found nothing new.

Standing limitation, fails safe: pinned_shape.rs::assertion_runs_unconditionally models only a top-level return before the assertion and ignores ? and diverging setup. It withholds and never credits, so it cannot grow credit wrongly. The macro_rules wrapper control is going into the #9490 lane.


Generated by Claude Code

EffortlessSteven pushed a commit that referenced this pull request Oct 23, 2026
…h the stale shape-limit control

Review finding (graphite, PRRT_kwDOSiSx0c6va-Sr): the applied-input
distinctness check compared normalized literal TEXT, so equal values
behind different spellings (2 vs 02, 1.0 vs 1.00) passed as pairwise
different and credited the coincident pair 2 + 2 == 2 * 2 the rule
refuses. Canonicalize the value (strip leading integer zeros and
trailing fraction zeros) before the seen-set check, and pin the
refusals with unit controls.

CI red (Ripr Rust Small Result, runs 39873631526/39873631512): the
single failing test a_returned_closure_the_test_applies_reads_as_a_
shape_limit asserted the pre-#9490 withheld reading for the exact
shape this PR credits; it came in unchanged from #9488 via the main
merge. Rewrite it as the inverse control (the shape-limit rule must
not withhold the credited shape) and update its registered
traceability path.

Proof: pinned_shape_limit 19/19 and returned_closure_pin 5/5 in
default and lang-rust-only lanes; owner_pin lib filter 320/320;
clippy -p ripr --all-targets -D warnings clean; fmt clean; policy
cascade (no-panic-family, process, allow-attributes, static-language,
executable-files, network, lint-policy, traceability) all exit 0.
goldens check drift is limited to typescript_enum_wrong_export and
reproduces on the pristine PR head (inherited: #9881 re-blessed it
on main after this branch's merge of main; the merge ref resolves
it), no Rust classify golden drifts.
EffortlessSteven added a commit that referenced this pull request Oct 25, 2026
#9890)

* feat(classify): credit an applied returned closure pin (#9490 slice 3)

A pin that applies a returned closure (make_adder(2)(3)) now credits the
closure body when every argument is a distinct nonzero numeric literal.
RIPR-SPEC-0265 rule 5; shape-closure-returned-adder is credited/exposed.

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

* fix(classify): canonicalize applied-closure literal values and refresh the stale shape-limit control

Review finding (graphite, PRRT_kwDOSiSx0c6va-Sr): the applied-input
distinctness check compared normalized literal TEXT, so equal values
behind different spellings (2 vs 02, 1.0 vs 1.00) passed as pairwise
different and credited the coincident pair 2 + 2 == 2 * 2 the rule
refuses. Canonicalize the value (strip leading integer zeros and
trailing fraction zeros) before the seen-set check, and pin the
refusals with unit controls.

CI red (Ripr Rust Small Result, runs 39873631526/39873631512): the
single failing test a_returned_closure_the_test_applies_reads_as_a_
shape_limit asserted the pre-#9490 withheld reading for the exact
shape this PR credits; it came in unchanged from #9488 via the main
merge. Rewrite it as the inverse control (the shape-limit rule must
not withhold the credited shape) and update its registered
traceability path.

Proof: pinned_shape_limit 19/19 and returned_closure_pin 5/5 in
default and lang-rust-only lanes; owner_pin lib filter 320/320;
clippy -p ripr --all-targets -D warnings clean; fmt clean; policy
cascade (no-panic-family, process, allow-attributes, static-language,
executable-files, network, lint-policy, traceability) all exit 0.
goldens check drift is limited to typescript_enum_wrong_export and
reproduces on the pristine PR head (inherited: #9881 re-blessed it
on main after this branch's merge of main; the merge ref resolves
it), no Rust classify golden drifts.

* test(goldens): re-bless selector_swap_try_error_arm_control for the #9921 evidence-line wording (RIPR-SPEC-0122)

Main's #9921 dropped the observation_unverified suffix from per-finding
human evidence lines and re-blessed 57 human-full goldens; #9950 blessed
selector_swap_try_error_arm_control in the same batch and kept the stale
suffix, leaving main's own tip red on cargo xtask goldens check
(reproduced on pure origin/main d91c149 and on this branch's merge
ref: run 39955805404 failed only this goldens step after 20125/20125
nextest tests passed). Mechanical one-line re-bless to the current
renderer with the bless ledger reason.

* ci: probe event delivery for PR 9890 qualification

* fix(classify): bind returned-closure exposure to discriminating applied pins

Bounded review-owned adoption proposal for #9890 / #9490 slice3.
Join effective-body numeric discrimination, literal/type/binding refusals,
and required owner-pin enforcement before lexical token confirmation.
Retain supported positive controls and independent honesty coverage.

Canonical source custody remains with the existing PR author.

* fix(classify): complete closure attribution checks and proof controls

Preserve exact float discrimination and reject alternate result/callee attribution; retain native paired controls and fixture contract.

* chore: raise spec-example floor to 183

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

* chore: re-bless returned closure masking fixture after main output changes (#9490)

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

* lower rust missed_credit_ceiling to the blessed 133

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

* re-bless returned_closure_arithmetic_masking for main's ReturnValue next-step wording (RIPR-SPEC-0265)

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

* resolve missed_credit_ceiling merge: rust 142 (main 143 minus this PR's returned-adder row)

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

* rust floor 204, missed_credit_ceiling 142 after merging spawn/join rule 4

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

* rustfmt the returned-closure owner-tail chain

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

* Judge returned-closure input distinctness on typed values

Distinct decimal spellings can round to one f32/f64 input, so the
pairwise-different requirement now compares the parsed typed values.
Adds a rounded-equal f32 negative control and completes the
traceability list for the returned-closure controls.

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

* test(goldens): re-bless returned_closure_arithmetic_masking for main's legend and repair wording (RIPR-SPEC-0265)

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

* fix(classify): resolve a bare constant in an associated fn against the enclosing item scope; list example 9 in the spec test mapping (RIPR-SPEC-0265)

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: EffortlessSteven <steven@effortlessmetrics.com>
Co-authored-by: Steven Zimmerman <steven@effortlesssteven.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.

fix(rust): an exact pin on a direct call is read as a gap when the changed tail is a closure, method chain or statement effect

2 participants