Skip to content

Credit claims::assert_ok!/assert_some! payload pins on a verified claims import - #10645

Merged
EffortlessSteven merged 7 commits into
mainfrom
claude/project-thread-60mzju-claims-ok
Oct 27, 2026
Merged

EffortlessSteven merged 7 commits into
mainfrom
claude/project-thread-60mzju-claims-ok

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #9619

Acceptance delta (one sentence): let v = claims::assert_ok!(owner(..)); assert_eq!(v, literal) now credits the owner pin when the test file imports the macro from a manifest-verified registry claims dependency, and the lib-claims-assert-ok-unwrap-then-eq missed-credit row is removed.

What changed

  • assert_ok, assert_err, assert_some, assert_none join the trusted macro names, scoped to a verified claims import in the test file (the expect! precedent). No import, a renamed import, another crate, a local macro_rules!, or a path/git/package/absent dependency all refuse.
  • bound_whole reads let v = assert_ok!(<call>) / assert_some!(<call>) as the owner call whose payload is v, then reuses the existing unwrap-wrapper and bound-variable rules (mut, derived expected, method use of the local, wrapped operand and a bound opposite exit all refuse).
  • Spec: RIPR-SPEC-0197 "Claims payload pins (False-verdict audit: what the corpus does not measure (abstention, real-world origin, uncovered mined patterns) #9619)".
  • Tests: claims_payload_owner_pin.rs, 4 credited and 13 refused cases; fails without the source change.
  • Corpus: Rust 0 false of 713 after removing the row.

Blast radius

TRUSTED_MACRO_NAMES is also read by targeted_calls.rs and field_selector.rs without a test-scope guard (expect already has this exposure). Lib tests covering owner_pin, macro, targeted_calls and field_selector pass (658).

Local: cargo xtask precommit exit 0.


Generated by Claude Code

…ims import (#9619)

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

Copy link
Copy Markdown
Member Author

Review of record, head e6e53a3

Angles: correctness, tests/oracle grip, spec, security/fail-closed, blast radius.

  • Correctness: credit requires all of: verified registry claims dependency (DropInManifests::verified), a non-renamed leaf import of the exact macro, the macro operand being exactly one call, and the existing unwrap/bound-variable gates (no mut, no derived expected, no method use, no bound opposite exit). Bare-call bound_by_macro exemption is limited to the claims macros the file actually imports.
  • Tests: 4 credited, 13 refused (no import, other crate, rename, local macro_rules!, mut, derived expected, wrapped operand, local method use, assert_some!(call.ok()), path/package/absent dependency, bound Err). The test fails at single_import_bound_assert_ok without the source change. Corpus: Rust 0 false of 713; the target row moved to exposed and its missed-credit entry is removed (not rescored).
  • Spec: RIPR-SPEC-0197 gains "Claims payload pins" plus a Test Mapping entry; traceability and changelog fragments added.
  • Blast radius: TRUSTED_MACRO_NAMES is also read by targeted_calls.rs and field_selector.rs with no test-scope guard, same as expect today. The effect there is that these four macros are no longer treated as opaque; no credit path is added outside bound_whole. 658 related lib tests pass.
  • Local: cargo xtask precommit exit 0.

Findings: none blocking.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Oct 26, 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 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 173 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: 6fdc4203-994d-49be-a5ad-d309ba98acca
Commits

Reviewing files that changed from the base of the PR and between 3a2a4b7 and 3c91ef0.

Files selected for processing: 12
  • .ripr/traceability.d/9619-claims-payload-owner-pin.toml
  • changelog.d/9619-claims-payload-owner-pin.md
  • crates/ripr/src/analysis/classify/owner_pin.rs
  • crates/ripr/src/analysis/syntax/mod.rs
  • crates/ripr/src/analysis/syntax/owner_pin.rs
  • crates/ripr/tests/claims_payload_owner_pin.rs
  • docs/specs/RIPR-SPEC-0197-owner-return-pins.md
  • fixtures/rust-verdict-corpus/expected/rows/lib-claims-assert-ge-relational.json
  • fixtures/rust-verdict-corpus/expected/rows/lib-claims-assert-ok-unwrap-then-eq.json
  • fixtures/rust-verdict-corpus/expected/rows/lib-claims-assert-some-eq-pinned.json
  • fixtures/rust-verdict-corpus/expected/rows/lib-claims-assert-some-side-only.json
  • fixtures/rust-verdict-corpus/missed-credit.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 26, 2026 09:22

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request implements support for claims payload owner-pins (assert_ok! and assert_some!), allowing them to pin Ok/Some payloads like .unwrap() when imported from a verified claims dependency. The changes include syntax and classification updates, extensive test coverage, and documentation updates. The review feedback highlights two main areas for improvement: optimizing the claims macro import check to parse the source file only once instead of redundantly for each macro, and improving the robustness of the macro operand parsing to handle trailing whitespace or comments.

Comment thread crates/ripr/src/analysis/syntax/mod.rs Resolved

@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 1 potential issue.

Devin Review

… four claims rows (#9619)

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

Copy link
Copy Markdown
Member Author

Review of record update, head 4debbb8

The first CI run (e6e53a3) failed verdict_corpus: four claims rows had un-blessed expected files. I blessed them; each moved row:

  • lib-claims-assert-ok-unwrap-then-eq: limited → credited (reachable_unrevealed → exposed), outcome abstained → ideal. This is the target row.
  • lib-claims-assert-some-eq-pinned, lib-claims-assert-some-side-only, lib-claims-assert-ge-relational: verdict unchanged (limited); classification reachable_unrevealed → weakly_exposed because the claims macros are no longer opaque. None gains exposed; each already accepts limited.

Also in this push: single-parse source_imported_claims_macros (Gemini), trailing-whitespace tolerant operand check, and qualified_path_invocation_is_not_admitted (Devin). All six bot threads replied to and resolved. Precommit exit 0 on this head; Rust corpus 0/713 false.

Findings: none blocking.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Run 40308542502 on 4debbb8 stopped at Strict workspace Clippy (CLIPPY_RESULT: failure; tests, goldens, fixtures and verdict_corpus were skipped, not failed). That is main's dead-code break from #10624 (parent_dir_follows_symlink in the xtask build), not this PR's diff: precommit, which includes clippy, is exit 0 on this head. The fix of record is #10663; I'm waiting for it to land, then I'll merge main here and re-apply merge-ready.


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 one verification check before upstream.

Verification questions

  • Confirm tRUSTED_MACRO_NAMES is shared beyond owner-pin classification, so this lane cannot prove the absence of sibling behavior changes without inspecting those consumers.

Refuted

  • The claims macro names are globally trusted and therefore could affect targeted_calls or field_selector outside a test scope.; refuted because: The trusted-name expansion is intentional test-scoped analysis behavior; the PR documents the existing expect-style exposure, and the changed classifier applies claims import gating before payload credit. No new incorrect public result is demonstrated by the diff.
  • Qualified claims::assert_ok! should be admitted by the PR claim.; refuted because: The specification and seeded resolution deliberately limit this feature to imported macros under their own names; qualified invocation is explicitly fail-closed and tested.
  • The shared trusted-macro list makes every claims-named macro trusted wherever TRUSTED_MACRO_NAMES is consumed.; refuted because: This change does not alter those consumers' existing behavior; the new claims credit route independently requires source_imported_claims_macros and a verified manifest import. The seeded thread explicitly identifies this as pre-existing expect-style exposure.
  • Claims import recognition is limited to clean, unrenamed use trees from the claims crate; the surrounding binding/manifest machinery must still reject foreign, path, git, package, absent, or shadowed dependencies.
  • Qualified claims::assert_ok!(...) invocations should receive payload credit according to the PR wording.; refuted because: The current claim deliberately scopes admission to imported bare macro invocations; the seeded thread records this as an intentional fail-closed exclusion and adds a refusal test.

Parked follow-ups

  • The claims macro names are added to a shared trusted-macro list, which the PR body identifies as being consumed by targeted_calls and field_selector without an equivalent test-scope guard.

Evidence gaps

  • Executable proof is not yet available in this packet because ripr failed and cargo-test is pending its late receipt.
  • Current-head executable test proof is unavailable in the cached evidence.
  • Model proof intent was rejected by deterministic validation.
  • The successful cargo-test/ripr proof is not available in the packet: ripr failed with exit code 2 and cargo-test is still scheduled late.

#10564 added a poll_context first parameter to awaited_call_shape; the
claims payload route keeps both behaviors valid by passing the same
context the sibling unwrap route passes.
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Review-of-record verification, head ee07c25 (main merged through c98fc80 + conflict repair)

Completing the board review's one required verification check — TRUSTED_MACRO_NAMES consumers inspected at the merged head (main merged through c98fc80; #10663's clippy fix included):

  • Definition: crates/ripr/src/analysis/syntax/owner_pin.rs:470 — this PR adds exactly assert_err, assert_none, assert_ok, assert_some, each scoped by the single-parse source_imported_claims_macros helper (syntax/owner_pin.rs:1417), which refuses renames, nested trees, unparseable sources, and only admits the four names.
  • Consumer 1: classify/owner_pin.rs:6382 (NON_RETURNING_MACROS) — this PR's own lane.
  • Consumer 2: classify/targeted_calls.rs:239 — the qualified-assertion rebinding guard. Effect of the new names: a same-line qualified claims::assert_ok!(..) invocation now counts as non-rebinding, identically to expect! and the other trusted names. A locally shadowed name still refuses via macro_unambiguous and the binding checks; the subject leaf match at targeted_calls.rs:260 still routes assert_ok to opaque, unchanged by this PR (the file is not in the diff).
  • Consumer 3: classify/arm_selection/field_selector.rs:154 — the statement-macro guard. A statement-position assert_ok! no longer blocks field selection; a locally rebound name still refuses via source_binds_value_name (field_selector.rs:155).
  • Consumer 4: classify/helper_transfer.rs:2531 — doc-link reference only, no behavior.

Neither sibling file is modified by this PR. The residual exposure — a foreign crate exporting an incompatible assert_ok! name is trusted by the sibling guards without a per-file import check — is the same pre-existing class as expect, disclosed in the PR blast radius and refuted in the review of record. The claims credit route itself independently requires the verified manifest import (classify/owner_pin.rs:4120-4131).

Merge conflict repaired: merging main surfaced one semantic conflict — #10564 added a poll_context first parameter to awaited_call_shape (classify/owner_pin.rs:3720), and the claims payload route still called the old 2-arg form. Repaired by passing the same poll_context the sibling unwrap route passes (classify/owner_pin.rs:4128), keeping both behaviors valid: claims payload pins through verified poll helpers now credit exactly as unwrap-wrapper payloads do.

Proof on the merged head: cargo fmt --check exit 0; cargo clippy -p ripr --all-targets --locked -- -D warnings exit 0; cargo test -p ripr --test claims_payload_owner_pin 1 passed exit 0; cargo test -p ripr --lib owner_pin 347 passed 0 failed exit 0; policy cascade (check-no-panic-family, check-process-policy, check-allow-attributes, check-static-language, check-executable-files, check-network-policy, check-lint-policy) run on this tree. The earlier required-check failure was the stale merge ref (main's #10624 xtask dead-code Clippy break), fixed by #10663 (merged 13:04Z); this push refreshes the merge ref.

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

Refuted

  • Adding claims names to TRUSTED_MACRO_NAMES makes any foreign or renamed assert_ok!/assert_some! invocation trusted.; refuted because: The payload route independently requires a manifest-verified claims import under the macro's own name; tests explicitly refuse foreign, renamed, local, path, package, and absent-dependency cases.
  • The changed corpus expectations weaken the oracle rather than proving the intended transition.; refuted because: Rejected: the target row advances to the implementation's claimed credited/exposed/ideal state and its missed-credit exception is removed; sibling rows remain limited and are not over-promoted.
  • The payload credit could be widened to arbitrary macro operands or non-payload variants.; refuted because: claims_payload_call requires an exact parenthesized operand and only assert_ok/assert_some can produce a payload; wrapped operands, converted operands, assert_err, and assert_none are excluded or non-crediting.

Parked follow-ups

  • The changed shared trusted-name list may affect sibling consumers beyond payload classification.
  • The shared trusted-name expansion may alter sibling classifier behavior beyond owner pins; the seeded thread reports inspection of those consumers but no current executable proof.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • A successful cargo-test receipt is still pending from the late evidence phase, while the ripr sensor failed with exit code 2.
  • The scheduled cargo-test proof is required to establish that the newly documented positive and negative cases pass with the complete workspace changes.
  • The claims payload route appears to require a verified import and the existing unwrap and bound-variable gates, but failed ripr evidence prevents an independent end-to-end verdict.

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head ee07c257), 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_01TWhvd7eb6ejVMezcdd4sUZ

Copy link
Copy Markdown
Member Author

Review of record update, head e1826df

Main moved after ee07c25 (whose required run was green), so the label raised a conflict notice. Merge of main resolved two adjacent-addition conflicts (the syntax/mod.rs re-export list and the RIPR-SPEC-0197 Test Mapping), keeping both sides; no logic changed. On this head: cargo xtask precommit exit 0, claims and unwrapped-Ok test files pass, Rust corpus 0 false of 739 with no drift. The earlier failure on 4debbb8 was main's Clippy break (#10663), and the ee07c25 "failure" at 21:44Z was the run cancelled by my label clear. merge-ready re-applied for qualification of this head.

Findings: none blocking.


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.

Refuted

  • The shared trusted-name expansion makes foreign, renamed, local, or qualified claims macros trusted.; refuted because: The payload route independently requires a manifest-verified own-name claims import and exact operand; the PR explicitly refuses qualified invocation, renames, local macro_rules, and unverified dependencies.
  • The claims payload implementation should admit qualified claims::assert_ok! calls or broaden operands beyond one exact call.; refuted because: The specification deliberately limits the feature to own-name imported macros, and qualified invocation is explicitly fail-closed and tested.
  • The corpus changes weaken the oracle by promoting unrelated claims rows.; refuted because: Only the target row advances to credited/exposed/ideal; the related rows remain limited and are only marked weakly exposed.

Parked follow-ups

  • Shared trusted-macro classification may affect sibling consumers beyond owner-pin classification.
  • The shared trusted-name expansion's blast radius is verified only through the seeded consumer inspection, not by a new focused regression in this diff.
  • Expanding the shared TRUSTED_MACRO_NAMES list can affect sibling classifiers; the seeded review records an intentional targeted_calls change, but field_selector behavior was not independently evidenced in this lane.
  • The shared trusted-name expansion can affect targeted_calls and field_selector beyond owner-pin payload credit.

Evidence gaps

  • Execution proof for the current head depends on the scheduled late cargo-test receipt, which is not yet available in this packet.
  • Model proof intent was rejected by deterministic validation.

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

Review of record (exact-head sweep, head ee07c257920d1b29456cc685261ee50d16387a71)

Substantive review of the full head diff (12 files: two analysis source files, the syntax export, a new integration test, spec, traceability, changelog, four verdict-corpus rows, missed-credit ledger). The only prior review on this head (github-actions[bot], id 5659658968) is an automated notice whose own evidence section reports failed sensor evidence; this is the substantive record. It independently confirms that notice's parked follow-up about shared TRUSTED_MACRO_NAMES consumers with the concrete mechanism (Finding 3).

Verified

Read at head ee07c257 via gh api repos/EffortlessMetrics/ripr-swarm/contents/<path>?ref=ee07c257920d1b29456cc685261ee50d16387a71 (raw):

  • crates/ripr/src/analysis/classify/owner_pin.rs — the new claims arm in bound_whole (4117–4137), claims_payload_call (5646–5665), unwrap_wrapper derivation (3884–3908), expected wrapper handling (4324–4331), ReturnPathGate::admits (5441–5462), bound_by_macro_with (8932–8945), the bare-call gate's claims_macros (4541–4575), TEST_SCOPED_TRUSTED_MACROS/is_bounded_macro (6400–6424), bound_owner_initializer (5560–5639), error_variant_key (6227–6262).
  • crates/ripr/src/analysis/syntax/owner_pin.rs — TRUSTED_MACRO_NAMES (470–512), CLAIMS_CRATES/drop_in_crates/is_drop_in_assertion (1369–1410), source_imported_claims_macros (1417–1434), MacroBindingKind/macro_binding_scan (399–466), file_binds_value_name (3093–3174).
  • Sibling consumers: classify/targeted_calls.rs:239–264 (claims leaves fall through _ => opaque, so no operand credit is built there) and classify/arm_selection/field_selector.rs:141–157.
  • Masking contract: analysis/extract/mask.rs:274–400 — the state machine emits exactly one output byte per input byte, so claims_payload_call's reuse of masked offsets to slice operand is offset-safe; comments/strings after the closing paren mask to spaces, matching the trailing-comment positive test.
  • Parse caching: parse_clean_source_file → parse_source_file with a content-keyed PARSE_CACHE up to 512 KiB (syntax/nesting.rs:39–81), so the new per-assertion source_imported_claims_macros calls (classify 4122–4126 and 4547) are cache-served for typical test files. No performance finding filed.
  • Corpus honesty: read fixtures/rust-verdict-corpus/cases/lib-claims-assert-ok-unwrap-then-eq.json (truth is runtime_mutant_kill with two failing mutants; the labeling observation records ripr 5e385c644 reporting reachable_unrevealed for exactly this shape, so the new positive discriminates old vs new behavior) plus the three sibling claims cases (assert_ge!, assert_some_eq!, side-only assert_some!). None of the siblings uses the four added names as a payload pin; their reachable_unrevealed → weakly_exposed movement with changed_since_labeling: true and retained missed-credit rows is re-observation, not silent re-blessing.
  • Traceability: .ripr/traceability.d/9619-claims-payload-owner-pin.toml registers the new test under RIPR-SPEC-0197; the spec gains the Claims payload pins section and Test Mapping; changelog entry present. Scope matches the body's claims.
  • Required gate: gh api repos/EffortlessMetrics/ripr-swarm/commits/<head>/check-runs — Ripr Rust Small Result (the only required status check per branches/main/protection/required_status_checks) succeeded on this head (run 40406711466, completed 2026-10-26T22:34Z; the failed/cancelled set at 21:44Z is a superseded run).

Not run in this review: the new integration test, cargo xtask goldens check, and any executable reproduction (review-only lane, no worktree). PR-body validation (precommit exit 0, 658 lib tests, corpus 0 false of 713) is Reported, not independently verified.

What holds up well: claims_payload_call is fail-closed (exact whole-operand shape, ! required, paren delimiter only, nothing after the close, non-payload assert_err!/assert_none! excluded, renamed/qualified invocations cannot match); the credit reuses the unwrap pin's existing binding/expected/exit gates; the new test's 19 cases cover a real refusal matrix; corpus bookkeeping distinguishes credited transition from abstained movement.

Findings

  1. [P1] Claims payload arm credits an assert_ok!/assert_some! pin under the ErrVariant gate, inverting the panic direction — inline at crates/ripr/src/analysis/classify/owner_pin.rs:4127.

  2. [P2] source_imported_claims_macros admits a claims import from any module scope in the file — inline at crates/ripr/src/analysis/syntax/owner_pin.rs:1426.

  3. [P2] field_selector now admits statement expansions of the four names by name alone, including locally redefined ones — inline at crates/ripr/src/analysis/syntax/owner_pin.rs:477. The PR body discloses the shared-list blast radius; the inline comment adds the concrete fail-open mechanism found by reading field_selector.rs:141–157 and file_binds_value_name (which sees Fn/Const/Static/IdentPat/UseTree, not MacroRules).

Disposition: 1 blocking finding (listed: Finding 1, P1). Findings 2 and 3 are P2 follow-ups and do not block on their own. Resolve Finding 1 with a code change or a source-backed refutation; either way an ErrVariant + claims payload case in crates/ripr/tests/claims_payload_owner_pin.rs (credited: false, or a reasoned exclusion from scope in RIPR-SPEC-0197) would settle it.

…rt-scope limitation (#9619)

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

Copy link
Copy Markdown
Member Author

Review of record update, head 0c8caa2

e1826df was green on the required result; the substantive review then found a valid P1, so this head supersedes it.

Local on this head: cargo xtask precommit exit 0; claims and unwrapped-Ok tests pass. All review threads replied to and resolved. merge-ready re-applied for qualification of this head.

Findings: none blocking.


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 claims payload arm lacks the direction gate required by the specification: an ErrVariant pin can still be read through assert_ok! or assert_some!.

Verification questions

  • Confirm the corpus and test changes demonstrate the intended owner-payload transition, but they do not discriminate the opposite-direction ErrVariant regression.
  • Confirm the Ok/Some direction guard has no discriminating negative test; the seeded thread confirms an Err-direction shape is exposed through an independent pre-existing route even when the claims arm is absent.

Refuted

  • Qualified claims::assert_ok! invocation is an unsupported route rather than a regression.; refuted because: Rejected as a concern for this change: the spec and seeded resolution deliberately admit only own-name imports, and the integration test pins qualified invocation as refused.
  • The payload route broadens the operand to arbitrary expressions.; refuted because: claims_payload_call requires one balanced parenthesized operand containing only the exact call, and existing bound-variable, mut, derived-expected, and method-use gates remain active.

Parked follow-ups

  • The shared TRUSTED_MACRO_NAMES expansion can alter sibling classifier behavior outside the verified claims-import route.
  • The new claims macro names are consumed outside the owner-pin route through TRUSTED_MACRO_NAMES.
  • Import admission is file-wide rather than scoped to the asserting test's module.
  • The shared trusted-name expansion has a separate fail-open-by-name blast radius, while claims import scoping remains file-granular.

Evidence gaps

  • The PR claims the focused test fails without the source change, but this packet contains no negative-source execution receipt; the late cargo-test receipt can only prove the current head passes.
  • Model proof intent was rejected by deterministic validation.

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head 0c8caa25), 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_01TWhvd7eb6ejVMezcdd4sUZ

Copy link
Copy Markdown
Member Author

Review of record update, head 3c91ef0

Main moved again (#10280); the only conflict was the shared RIPR-SPEC-0197 Test Mapping tail, resolved keeping both sides. The 00:12Z automated review's one "confirmed" finding (no direction gate) was written against a pre-fix snapshot: the gate is in 0c8caa2 (("assert_ok", Some("Ok")) | ("assert_some", Some("Some"))), and the lack of a discriminating negative is disclosed in my 23:52Z reply and tracked in #10807. On this head: claims, unwrapped-Ok and result_map_callback tests pass; Rust corpus 0 false of 749, no drift. precommit is re-running locally. merge-ready re-applied.

Findings: none blocking.


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 the Ok/Some direction guard lacks a discriminating negative test.

Refuted

  • Qualified claims::assert_ok! invocation should be credited.; refuted because: The feature contract deliberately admits own-name imported macros only; the qualified-path refusal is explicitly tested and specified.
  • The trusted import route admits arbitrary claims operands or foreign/renamed/local macros.; refuted because: claims_payload_call requires an exact parenthesized operand; source_imported_claims_macros requires a claims import under the macro's own name, while the owner-pin route independently requires manifest verification and existing binding gates.
  • The implementation admits renamed, foreign, local, qualified, or unverified claims macros.; refuted because: The payload route independently requires an own-name claims import, and the matrix explicitly refuses renamed, foreign, local, qualified, path/package, and absent-dependency cases.
  • The implementation is architecturally too broad because it changes the shared trusted macro list and adds a separate claims-specific list.; refuted because: The separate claims list confines payload credit and import parsing to the intended feature, while the shared-list exposure is explicitly disclosed and already tracked as a follow-up; no new incorrect sibling result is demonstrated by this diff.
  • The corpus updates over-promote unrelated claims rows and weaken the oracle.; refuted because: The target row advances from limited/reachable_unrevealed to credited/exposed/ideal, while sibling rows remain limited and are only changed to weakly_exposed; the target missed-credit entry is removed as claimed.

Parked follow-ups

  • Adding four claims names to the shared trusted-macro list affects sibling consumers beyond the verified claims payload route.
  • Adding claims names to the shared trusted-name list exposes sibling consumers to the same name-based trust model; seeded review identified field_selector as the remaining concrete follow-up.
  • Import admission is file-wide, so an inner-module import can admit a test elsewhere in the file.
  • Adding four claims names to TRUSTED_MACRO_NAMES may alter sibling consumers beyond owner-pin classification.
  • The import check is file-scoped, so an import in one module can admit the macro name for a test elsewhere in the file.
  • The claims import helper admits file-wide use-tree matches, so an import in one module can admit the macro for a test in another module; the specification records this as an accepted limitation.

@EffortlessSteven
EffortlessSteven merged commit 7eb9013 into main Oct 27, 2026
57 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-60mzju-claims-ok branch October 27, 2026 01:13
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