Repository navigation
Read the three oracle underclaims RIPR-SPEC-0227 and 0231 adopt - #7627
Conversation
An unwrap_err() whose value is never compared now reads broad_error / weak on the line scanner and the parser path (RIPR-SPEC-0227 decision 2). A bound value that a later line compares stays that assertion's oracle, and the tail line of a multi-line statement is not admitted. assert_ne!(owner(..), Err(E::Sibling)) and assert!(!matches!(owner(..), Err(E::Sibling))) against a changed Err(E::Changed) now read relational_check / weak in reveal instead of being dropped by the sibling-variant gate. The owner call must be the whole operand or scrutinee, unguarded and unshadowed. Verdict-corpus oracle matches go from 26/34 to 29/34 with no underclaims; match_floor rises to 29. Refs #6640 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK
|
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 reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 33 seconds. View limit details
Comment |
…sert! Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK
…o 34/0 Brings in RIPR-SPEC-0231 rule 1 (#6670) and re-blesses its five spec0231 rows (the same content as #7631). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK
Review of record — head c7b9a02Angles:
Each angle was an independent reviewer agent reading the source. External bots (gemini, coderabbit) were quota-limited and produced no review. Findings and resolutions:
Strength ceiling: verified that no new path reaches
Merge of main: brings in #6670 rule 1. The five spec0231 rows it staled are re-blessed with the same content as #7631. Corpus oracle is now 34/34 with 0 overclaims, and the gates are tightened to match. Nothing blocking remains. 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! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- expect_err reading parity: scan.rs::extract_assertions path does not route expect_err() through uncompared_unwrap_err; ra.rs::extract_parser_oracles only branches on unwrap/expect (smoke) and unwrap_err. A bare
f().expect_err("x")whose value is never compared still reads smoke, not broad_error/weak. Tracked by #7604; not a #7627 regression but a sibling unfixed by this PR.
Verification questions
- Confirm no new test in classify.rs exercises the parser path admitting
assert!(!matches!(owner(..), Err(E::Bad)))(RIPR-SPEC-0231 examples 19/20 admit it; only the line scanner and the ra.rs method-call side are parity-tested). The admission correctness is covered by the integration test in error_path_sibling_variant.rs, so the gap is in lexical/parser parity, not in behavioral proof. - Confirm fixture rows re-bless three underclaims to matches and 5 overclaim rows to matches; spec-coverage.toml match_floor 26→34, overclaim_ceiling 5→0 matches the PR's precommit claim (oracle 29/34, overclaim 5/34 → 34/34, 0/34 post-#6670).
Refuted
- Hypothesis: a Vec<&str> grown inside
macro_argumentscould be resized while downstream code holds a&strfrom it, producing a use-after-resize / stale active-view bug.; refuted because: Rejected: every&strpushed intopartsis a sub-slice of the borrowedinner: &str; the Vec is consumed byas_slice()in the same function and not aliased elsewhere. No detach, transfer, or capacity reallocation surfaces in the diff. - Potential data race: test_body_shadows_owner reads test.body and test.nested_fn_names / test.let_bindings from a TestSummary that an async classify task might still mutate.; refuted because: analyze_related_assertions is a synchronous function called from the classifier driver; TestSummary is built once by the parser and only read thereafter. There is no async pipeline that retains a mutable handle, so the borrow is single-threaded and no race exists.
Evidence gaps
- build/cargo-check/cargo-clippy/cargo-fmt skipped and ripr sensor failed exit 2, but no exploit primitive is affected; static analyzers and review remain sufficient for the security posture of this PR.
- ripr sensor returned exit code 2; lane cannot read
sensors/ripr/receipts. This is the only evidence gap and is outside active-view jurisdiction. - Model proof intent was rejected by deterministic validation.
Parked follow-ups
- Prior review thread confirms mutation-checked guards for the new sibling-exclusion rules; no stale-state or detached-view concerns were raised by the human reviewer of record.
- Corpus rows spec0231-oracle-assert-ne-ok-value, -assert-ne-scalar, -ensure-not-equal, -assert-ne-struct-literal, and -helper-assert-not-equal now read relational_check/weak and outcome=match, dropping the overclaim count from 5 to 0. The PR re-blesses these without changing their test shape; spec_0231 rule 1 (overclaims) is owned by #6670, so this is a follow-on reweight, not a new admission.
…cing adapters before unwrap_err - A test-visible binding that may rebind assert!, assert_ne! or matches! now refuses the RIPR-SPEC-0231 sibling exclusion (shared assertion-context gates via admits_assertion_context). - An uncompared unwrap_err() reads broad_error only when nothing but Ok-preserving adapters (map_err, map, as_ref, .await, ..) sits between the call and unwrap_err(); .and(Err(..)) and ok_or(..) read nothing. - Update the xtask population test that pinned the old 26/34 oracle rate. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Review of record, addendum for head 05b1586The first required run failed in one xtask test, Devin's review (4 findings):
The github-actions review's one confirmed finding is the Local proof on this head:
Generated by Claude Code |
There was a problem hiding this comment.
Verification questions
- Confirm ripr sensor itself failed with exit 2 in this run; the compiler receipts are advisory. Lane cannot independently witness re-blessing at the scoreboard level this round. Author's local proof (
cargo xtask verdict-corpus check-all34/34, overclaim 0, underclaim 0) is the only execution-grade evidence. - Confirm macro_arguments and group_end are factored in reveal.rs but scan.rs independently re-implements balanced_group_end and delimiters_balance. Same delimiter logic, two copies, no shared helper. Not a correctness issue (both paths are testable and mutated) but a sibling-helper duplication to note, not broaden in this PR.
Refuted
- Hypothesis that
uncompared_unwrap_errorexcludes_only_sibling_variantcould be coerced into an out-of-bounds read, type confusion, or panic-as-DoS via crafted source.; refuted because: Both helpers operate on borrowed&strslices; identifier slicing uses.bytes().take_while(is_ident_byte).count()which is bounded bylen().delimiters_balance/balanced_group_endtrack depth and returnNoneon imbalance.start_with(['.', ')', ']', '}'])andstarts_with('(')on the trimmed string are pure boundary checks. Nounsafe, nounwrapon user data, no panicking index. - macro_arguments returns a Vec<&str> borrowed from masked while exclude_only_sibling_variant still references the same masked buffer, so dropping the Vec or moving the masked String would alias and cause UB; refuted because: Caller in reveal.rs keeps masked as a local; macro_arguments borrows from it and the Vec is consumed in the same statement-level match. No reallocation, no move across the borrow. Depth counter uses saturating_sub on i64, so even a malformed tail cannot underflow into a negative depth that escapes the function.
- Lane focus (JS worker/async/GC/detach/transfer) is inapplicable: the diff is a Rust-only ripr analyzer change with no JavaScript, no workers, no async runtime, no transferable boundary, no GC-managed heap.
- A JS-backed worker crossing or transferable boundary could expose an unsoundness around the new shared
uncompared_unwrap_errhelper.; refuted because: Repo has no JS runtime, no Worker, no SharedArrayBuffer, no transferable, no off-thread handoff. The diff is pure Rust analyzer code with&strslices in the same process; no memory crossing applies. - Off-topic: PR #7627 is a Rust analyzer oracle-classification change, not a JS/resizable-buffer change; ub-active-view has no RIGHT-side surface in this diff to comment on.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- expect_err parity gap (Devin/github-actions confirmed) is a known sibling, not a regression of this PR; tracked in #7604.
- Parked follow-ups to track rather than broaden: #7604 expect_err reading parity, #7638 dead-branch / unreachable-statement reach (covers every oracle reading, not only unwrap_err), and the conservative refusal of
let e = unwrap_err(); drop(e). All three are documented as non-goals in the PR body and changelog; broadening them in #7627 would expand scope beyond the three underclaims it owes. - Two byte-walker helpers (group_end, balanced_group_end) and one comma-splitter (macro_arguments) were added in reveal.rs while equivalent walkers already exist in extract/. Consolidating onto the extract/ side is a one-file follow-up; the duplication is shallow and parity-tested, so it does not block the PR.
- scan.rs and reveal.rs each ship a balanced-parenthesis helper (balanced_group_end + delimiters_balance vs group_end + macro_arguments) with the same depth-walk algorithm. No shared util across crates/ripr/src/analysis/extract/; mutation coverage does not catch a future copy drift. Not a correctness issue today; flag as a sibling-helper consolidation candidate for a follow-up, not a #7627 change.
#7631 landed with match_floor 31; this branch reads 34/34, so the gate and its xtask pin stay at 34. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK
Main now labels 35 oracle rows and reads 32/35; the three remaining were this branch's underclaims, so the merged tree reads 35/35. Raise match_floor and the xtask pin to 35. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
# Conflicts: # fixtures/rust-verdict-corpus/spec-coverage.toml # xtask/src/reports/dx_scoreboard/population_tests.rs
…nd pass) # Conflicts: # fixtures/rust-verdict-corpus/spec-coverage.toml # xtask/src/reports/dx_scoreboard/population_tests.rs
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- reveal.rs::macro_arguments and group_end duplicate scan.rs::balanced_group_end / delimiters_balance logic in two places; no memory-lifetime impact but a drift risk if either changes the other path.
- Duplicated macro_arguments/group_end logic between reveal.rs and scan.rs; both safe (depth-bounded) but a shared helper in extract:: oracles would keep one source of truth and shrink the contract this PR adds.
Verification questions
- Confirm expect_err parity gap (scan.rs vs ra.rs only branch on unwrap/expect, not expect_err) confirmed by github-actions review; tracked as #7604 non-goal, not a #7627 regression. Live as a sibling unfixed by this PR.
Refuted
- PR could introduce a JS-backed worker handoff, postMessage/transferable, or async detach/GC boundary relevant to UB review; refuted because: All changed files are Rust ripr analyzer source, tests, docs, fixtures, and xtask scoreboard code. No wasm-bindgen, napi, neon, deno_core, worker, SharedArrayBuffer, or async runtime boundary is added or modified. Helpers added (uncompared_unwrap_err, receiver_keeps_call_error, balanced_group_end, delimiters_balance, macro_arguments, group_end, is_whole_owner_call, has_word, excludes_only_sibling_variant, test_body_shadows_owner, admits_assertion_context) are pure &str -> Option/Vec<&str>/bool functions over masked test source. The line scanner and parser path share the predicate so behavior is identical across both adapters; there is no transferable ownership change, no detach, no GC root. The ub-worker-handoff surface is absent.
- Could excludes_only_sibling_variant credit a sibling-only inequality because context_ambiguities missing on certain masked sources; refuted because: reveal_evidence now invokes admits_assertion_context which checks rebinding for assert_ne/assert/matches; tests cover three local macro_rules! variants.
- Hypothesis that a
Vec<&str>grown inside macro_arguments or any new helper could panic under memory pressure or be coerced into a type-confusion.; refuted because: macro_arguments pushes &str borrows into a Vec with no allocation of user data: capacity growth uses std::vec::Vec default which aborts on OOM, not a security primitive. No transmute, no unsafe, no lifetime extension across the borrow. Memory pressure in this analyzer is not a DoS surface relevant to the change.
Parked follow-ups
- Change-skipped surface: ra.rs extract_parser_oracles only branches on unwrap/expect/unwrap_err name; does_err_or_panic_text path for expect_err remains — confirmed a tracked gap not a #7627 regression.
- Spec-coverage match_floor raised 34→37 while PR body and prior reviews cite 34/34. Delta is +3 (the 3 underclaim→match re-blessings), but the parallel 'overclaim 0' count is not gated, so the floor arithmetic is correct but the stated 34/34 framing in the PR body is stale relative to 37/37.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- match_floor=37 + overclaim_ceiling=0 are the proof surface; xtask pins (37,37) on oracle_accuracy and 0 numerator on oracle_overclaim_rate. The numeric re-blessing is the only authoritative integration evidence; ripr sensor failed (exit 2) so this lane cannot independently witness the new numbers.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Review-of-record addendum for head Delta since the reviewed head
I diffed the PR's own changes to Angles:
No blocking findings. Merging once required CI is green on this head. Generated by Claude Code |
There was a problem hiding this comment.
Confirmed findings
- Duplicated balanced-paren/group walker across scan.rs and reveal.rs; depth-bounded and tested today, so not exploitable, but a future drift in either copy could open a parsing-confusion / DoS class issue. Out of scope to fix in this PR.
- delimiters_balance / balanced_group_end in scan.rs duplicate group_end / macro_arguments in reveal.rs; both safe (depth-bounded, balanced, no UB), but a shared helper in extract::oracles would shrink the contract this PR adds.
Verification questions
- Confirm scan.rs::balanced_group_end / delimiters_balance and reveal.rs::group_end / macro_arguments re-implement the same delimiter-balance logic in two places; no shared helper, drift exposure when one side changes.
- Confirm expect_err has no decision-2 sibling helper. scan.rs checks unwrap_err(); ra.rs only branches on unwrap/expect plus unwrap_err. expect_err still reads older expect_ admission, not broad_error/weak.
- Confirm no new unsafe, no wasm/JS/async/postMessage/SharedArrayBuffer boundary, no secret material, no I/O or network code touched. Diff is pure Rust ripr-internal analyzer code plus tests/fixtures/docs.
- Confirm three corpus rows re-bless from underclaim to match (broad_error weak / relational_check weak). The PR contract claim (axiom 37/37, 0 overclaim) is realized by spec-coverage.toml match_floor=37 and oracle_committed_rates population pin; author run is the only execution-grade signal.
- Confirm drift risk: scan.rs::balanced_group_end and reveal.rs::group_end (with delimiters_balance) are independent implementations of the same balanced-paren walker with subtly different surfaces (square brackets included in reveal, paren-only in scan). Not a security defect today (both depth-bounded, both tested, both mutated) but a divergence hotspot.
Refuted
- Tests do not prove that the parser-path parity for unwrap_err matches lexical under shadow/import/foreign-body conditions; refuted because: spec_0227 unit test exhaustively covers 12 shapes on both adapters via RaRustSyntaxAdapter.summarize_file; the integration test error_path_sibling_variant.rs exercises 14 full-pipeline cases including all shadow and macro_rules rebinding shapes. Behavioral evidence holds for the PR claim. Parity gap is a coverage observation, not a blocker on the red/green proof.
- No
unsafe, no Box::from(slice), no wasm-bindgen, no napi/neon, no SharedArrayBuffer, no worker/postMessage, no async runtime boundary was added or modified by this PR. - Crafted source can coerce uncompared_unwrap_err or excludes_only_sibling_variant into OOB read, type confusion, info disclosure, or panic-as-DoS via crafted source.; refuted because: Both helpers operate on borrowed &str slices. Identifier slicing uses bytes().take_while(is_ident_byte).count() bounded by len(). balanced_group_end/group_end track paren depth and return None on imbalance; delimiters_balance returns false on negative depth. is_whole_owner_call requires rest starts with '(' and group_end == end(). mask_comments_and_strings runs before any name/operand check. No unsafe added, no allocations on the hot path, no panicking indexing (.get / len-bounded everywhere). Author's mutation checks (skip receiver_keeps_call_error, drop assertion-context gate, drop shadow gate) flip the relevant control from pass to fail. No JS/worker/SAB boundary; no secret material; no I/O or network surface touched.
- All changed helpers are pure &str slice operations with depth-bounded delimiter parsing and return None on imbalance. No native seam is touched.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition: REPAIR_REQUIRED. Verified P2 oracle-credit regression filed as #7872; retain the current writer of claude/project-thread-vv94ve.
Blocking finding — grouping bypasses the receiver adapter gate. In scan.rs::receiver_keeps_call_error, the first opening parenthesis can be a grouping expression rather than the initial call. Its matching close leaves no suffix, so the whitelist is never inspected inside the group. On this exact head, the production API reports:
withdraw(10, 20).and(Err::<u64, _>(PayError::Insufficient)).unwrap_err();
// reachable_unrevealed; unknown/none
(withdraw(10, 20).and(Err::<u64, _>(PayError::Insufficient))).unwrap_err();
// weakly_exposed; broad_error/weakNested grouping also overcredits. Independently executed Rust controls show the second statement passes for both the baseline error and a wrong Ok(0) result. It therefore does not observe the owner's error side. This is an incorrect weak oracle, not a strong/exposed escalation. The same exact shared predicate admits parenthesized .ok_or(..) while refusing its plain twin; that Option result is a predicate-level control, not a claimed full-pipeline finding.
Identity and integration: reviewed head e325248cf94338cd5462f909f100e1597e3d0ea0, rechecked open and unchanged immediately before publication at 2026-10-14 04:03 UTC. Git-observed main 405deb02681372f9b6f684d4d22c53e82b260ad6; actual merge base 4711c122a0248d75807ba2e0401169a2f46743aa. git merge-tree --write-tree succeeded with tree b03d18c2d32b58f60350d721a1e6dadb392fee04. Head-bound execution below does not claim a combined-tree build.
Inspected ownership and consumers: #6640, both specs, changed-file inventory and extraction/reveal wiring; shared uncompared_unwrap_err through lexical extraction and RA statement admission; ClassifiedProbeEvidence supplies assertion-context admission to sibling exclusion; reveal carries oracle kind/strength into related tests and discrimination; owner-pin and boundary pairing distinguish weak readings from exact pins. Existing integration tests exercise check_workspace, the actual changed ErrorPath finding and public CheckOutput oracle values. No new platform/process/network surface is introduced by these helpers.
Actual bounded results: task-local Rust 1.95.0 (59807616e), isolated detached review tree and separate Cargo target; unchanged submitted production bytes. Selected command cargo +1.95.0 test --locked -p ripr --test error_path_sibling_variant --jobs 2 -- --nocapture exited 0: 13 existing tests plus one initial probe, 14 passed / 0 ignored. This covers existing exact/sibling error variants, ok_or variants, and the new inequality positives/refusal controls. The initial probe used sibling Limit, whose independent sibling gate suppresses the defect; it is not evidence against #7872. The subsequent discriminating seven-shape probe using Insufficient exited 101: three correct positives, one correct plain-.and negative, and three incorrect grouped-chain credits (.and with one/two groups, and .or). Its one test failed / 13 filtered out, after successful compilation. Exact-predicate and independent runtime controls both exited 0 and recorded the counterexample.
Existing findings: prior macro-rebinding, nested/message-call, guard and shadow fixes have substantive controls that passed here. Delimiter-helper duplication remains a maintenance suggestion, not independently established exploitability. #7604 expect_err, #7638 dead statements and conservative drop(e) are existing tracked/non-goal boundaries; this pass does not relabel them as newly repaired. The authored committed rows count 37 matches and the floor/ceiling are 37/0; that is source evidence, not a fresh verdict-corpus execution or a general zero-overclaim guarantee.
Missing proof: at inspection, exact-head Routed Rust Small run 38507219403, job 115667436002, had successful policy/honesty/check/clippy steps, required Rust tests in progress, and doctest/golden/corpus steps pending. No duplicate CI was triggered. This pass did not rerun the full corpus, lib matrix or combined-tree qualification. The grouping controls have not yet been added to the authored scanner/parser parity test.
Next executable action: the current candidate writer should recursively validate grouped receiver chains, add the #7872 scanner/parser and production controls while preserving grouped bare-call/map_err positives, then run focused proof and refresh affected head/integration receipts. Parent retains Ready and protected merge authority. Local patch, logs, source harnesses and the compiled control witness are retained in the delegated environment; #7872 contains the durable reproduction, results and repair handoff.
A leading parenthesized group hid an error-replacing adapter from the receiver whitelist: (check(x).and(Err(E::Other))).unwrap_err() read broad_error/weak although it passes whatever check returns. The first group must now be a call on a plain path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
The repair for the REPAIR_REQUIRED finding (#7872) is pushed as head Fix: Controls:
Proof on this head:
Disposition: the blocking finding is repaired. Merging waits on required CI on this head. Generated by Claude Code |
There was a problem hiding this comment.
Reporter summary
The PR correctly fixes the three oracle underclaims per RIPR-SPEC-0227/0231 with documented mutation-checked guards (receiver whitelist via is_call_path, shared assertion-context gates for macro rebinding, bare-call operand matching for sibling exclusion). However, every specialist lane reports provider-preflight failure and no execution-grade witness on this head: the deterministic late cargo-test receipt exited 101, the ripr sensor exited 2, and all heavy witnesses (cargo-check/clippy/fmt/build/miri) remain disabled under the gh-runner profile. The author attributes the cargo-test 101 to 7 root-sandbox permission failures that also fail on main, but no lane could confirm that; the duplicated delimiter walker between scan.rs/reveal.rs, the expect_err parity gap (#7604), and the statement-reach gap (#7638) remain live sibling issues that this PR scopes out. No UB/memory-lifetime/security regression is observable (pure &str analyzer logic with depth-bounded byte iteration), but the lane cannot affirm the new receiver-path controls and the 37/37 verdict-corpus gate hold on this exact HEAD without re-execution. Verdict is uncertain pending a clean cargo-test run (non-root or pre-filtered) plus cargo-check/clippy/fmt on this head and reproduction of the three re-blessed corpus rows against the merge base.
Main's committed rows hold 40 oracle matches of 41 labeled cases since #7627 and #7859 landed together, but the population test still pinned 37, so the required Rust gates fail on main and on every PR merged with it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP
#7133) (#7848) * fix(classify): bind the log-capture limit to the record's own template (#7133) Round-3 review of #7711 found three ways an assertion on a different record could still withhold the gap: - a `target: "..",` or `key = value;` prefix made the first quoted text the target or key, not the format template; - template fragments were matched anywhere in the assertion operands, in any order and across separate literals; - a template whose static text is only punctuation (`"{}: {}"`) bound to any record. The template is now read past those prefixes, its fragments must appear in order inside one string literal of the operands, and a template with no alphanumeric static text keeps the gap. Mutation runs kill every new guard; corpus rows are unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * fix(classify): read log templates and asserted literals with the shared lexical scan (#7133) Review of 920d3d2 (Devin, two review agents, and the review on the PR) found more ways the log-capture limit could bind the wrong text: - the private literal scanner ended a nested block comment at its first `*/`, so a commented-out expected record read as live, and it split raw strings at their inner quotes; - separators were found on unmasked text, so a `;` or `,` in a comment or character literal moved the template start, and a comment before the template hid it; - `find("!(")` could land in a nested `format!(` when the record used `log::info! (`; - fragments matched as unanchored substrings, so "audited {}" bound "unaudited 42". `extract::string_literal_spans` now exposes the shared mask scanner's literal spans; the template and the asserted literals are read from it, and separators from the masked view. The template is read right after `log::<level>!(`. A template that starts or ends with static text anchors the literal's start or end, and a fully static template must equal it. New authored corpus subject `authored-log-template` with twin cases: a targeted record the test never checks (main: limited; now: gap) and a targeted record the test captures and asserts (limited on both). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * fix(classify): leave a log template with an escape at either edge unbound (#7133) An escape that starts or ends the template (`"\"audited {}\""`) left that edge unanchored, so the record could bind another record's literal ("unaudited 42"). Such a template is now not bound and keeps its gap. Adds a keyed `ch = ','` positive and states the anchoring and raw/cooked behaviour in the changelog fragment. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * test(corpus): pin raw-literal capture of a quoted log record (#7133) Adds `quote` to the authored-log-template subject: a record with escaped quotes whose test asserts it with a raw literal. Runtime: both mutants are killed. Observed: limited on main 4711c12, gap (false_actionable) on 920d3d2 where the private scanner split the raw literal, limited on this head. Re-pins the subject and regenerates the two earlier diffs' index lines; their rows are unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * fix(classify): compare log templates and asserted literals as decoded text (#7133) Review of 492bfd6 found escapes still acted as wildcards: an escape ended a fragment, so whitespace after an edge escape (`"audited\n "`, `" \taudited {}"`) left the edge unanchored, and a mid-template escape (`"audited\n{}"`) let other words through. Templates and cooked asserted literals are now unescaped first (`\n \t \r \0 \\ \" \'`); any other escape leaves the text unbound. `string_literal_spans` reports whether a span is raw, so a raw literal's value is its contents. Fragments split only at placeholders, and any static text at an edge, whitespace included, anchors that edge. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * fix(classify): leave repeated log arguments and format! asserts unbound (#7133) Review of fe1b2af found two older over-binding routes: - `"{0} audited {0}"` treated both placeholders as independent gaps, so it bound "alice audited bob"; a template that uses one named or positional argument twice is now not bound; - a `format!("received map {}", m)` template inside the assertion was read as asserted text; literals that open a `format!` or `format_args!` call are now skipped. Also notes the `string_literal_spans` offset contract at its re-export. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * fix(classify): count implicit log arguments and catch raw format! templates (#7133) An implicit {} placeholder now takes the next positional index, so a template mixing {} with {0} is refused like any repeated argument. The format! skip in assertion operands now recognises raw templates, path-qualified and spaced invocations, and bracket or brace delimiters. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * fix(classify): leave log templates with tied placeholders unbound (#7133) A width or precision taken from an argument ({:.*}, {:w$}) and a template mixing named with positional placeholders can tie two placeholders to one value, like a repeated argument, so such templates keep the gap. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * test(xtask): calibrate oracle population totals to 40 matches (#7133) * test(xtask): pin the committed oracle accuracy at main's 40/41 Main's committed rows hold 40 oracle matches of 41 labeled cases since #7627 and #7859 landed together, but the population test still pinned 37, so the required Rust gates fail on main and on every PR merged with it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP * test(verdict-corpus): raise the Rust oracle match floor to main's 40 Main's committed rows hold 40 oracle matches, and the oracle gate test requires match_floor to equal the committed count, so the floor at 37 failed the required Rust gates on main and on this PR. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7meAy5d967X5KFZKs7zdP --------- Co-authored-by: Claude <noreply@anthropic.com>
…7935) * Read through grouped unwrap_err receivers instead of refusing them (#7872) The #7627 repair refused every parenthesized receiver, so (check(x)).unwrap_err() and (check(x).map_err(f)).unwrap_err() lost their broad_error/weak reading. The group's contents now pass the same call-plus-Ok-preserving-adapters test, and a raw identifier call path (r#check) is admitted. (check(x).and(Err(..))).unwrap_err() still reads nothing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK * Require an identifier after a raw-identifier prefix in is_call_path Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK * Refuse grouped comparisons, ranges, jumps and tuples as unwrap_err receivers Independent review found that reading through groups admitted (a < check(x)), (a..check(x)), (return check(x)) and (x < y, check(x)): is_call_path accepted spaces, commas and angle brackets anywhere. Outside a ::<..> turbofish the path is now ident, '.', ':' and r# only. A raw identifier must start with a letter or '_'. Pins the depth-8 bound. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK * Pin the oracle population to the merged tree's 40/41 (port of #7932's pin) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK * Validate the turbofish in is_call_path instead of skipping its tail Graphite review: (x::<A> < y, check(300)).unwrap_err() passed because only the text before the first ::< was held to plain-path bytes. The scan now tracks <..> depth and holds everything outside it to the plain path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK * Pin grouped fallback shapes behind an Ok-preserving adapter as non-credits Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK * Raise the oracle match_floor to the committed 40 matches The committed-labels test pins match_floor to the observed match count; the restored grouped and raw-identifier positives raise it from 37 to 40. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK --------- Co-authored-by: Claude <noreply@anthropic.com>
Summary
Before: in three verdict-corpus cases, ripr related the test to the changed error but read no oracle. Each case runs against a changed
Err(PayError::Insufficient):check(300).unwrap_err();, with the value never compared;assert_ne!(withdraw(10, 20), Err(PayError::Limit));assert!(!matches!(withdraw(10, 20), Err(PayError::Limit))).The scoreboard counted these as oracle underclaims.
After:
unwrap_err()readsbroad_error/ weak (RIPR-SPEC-0227 decision 2).relational_check/ weak, and the finding isweakly_exposed.match_flooris 37 andoverclaim_ceilingis 0. The floor tracks main's labeled-row count; this PR contributes the last three matches.How:
scan.rs::uncompared_unwrap_erris one shared predicate, used by both the line scanner and the parser path (ra.rs)._-prefixed binding, or a binding that nothing later mentions.OkanOk(map_err,map,as_ref,.await, ...) may sit between the call andunwrap_err(). Socheck(x).and(Err(E::Other)).unwrap_err()andx.ok_or(E).unwrap_err()read nothing..unwrap_err();tail, ay).unwrap_err();tail, or the value line afterlet e =.reveal.rs::excludes_only_sibling_variantadmits the inequality before the RIPR-SPEC-0106 Part B sibling-variant gate drops it. It requires all of these:assert_ne!operand, or the wholematches!scrutinee, is exactly a bare owner call (message arguments are ignored);matches!is the wholeassert!condition, and its pattern is unguarded;fnor local binding shadows the owner;assert!,assert_ne!ormatches!, checked through the shared assertion-context gates (admits_assertion_context);Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: n/a
Spec: RIPR-SPEC-0227 (decision 2) and RIPR-SPEC-0231 (examples 19 and 20, plus a new section "Reveal admission of an excluded sibling")
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #6640
Acceptance delta (one sentence): the overstated-oracle scoreboard has no underclaims left, and its gates hold every labeled row as a match with 0 overclaims.
Candidate Relationships
Candidate branch:
claude/project-thread-vv94veStack parent or prerequisite PR (if any): none. This follows #7572 and #7631.
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a
Scope
unwrap_err()is read as an oracle.Scope Classification
Production delta:
unwrap_err()read directly off a call readsbroad_error/ weak on both adapters.relational_check/ weak, under standard macro bindings.Evidence/support delta:
let;.and(Err(..)),ok_or) as negatives;map_errand a method receiver as positives.macro_rules!forassert_ne,assertandmatches.Single acceptance criterion:
Non-goals:
expect_errreading (rust: a bareexpect_err(..)reads as mock_expectation / medium instead of a result-side broad_error / weak #7604).debug_assert_ne!sibling exclusion. Test admission refuses it earlier in reveal.if false, closures that are never called). That gap predates this PR and is filed as rust: oracle extraction credits statements that never run (if false, uncalled closures) #7638.Support-tier Impact
Claim/proof notes:
exposed.Policy Impact
Proof
Result, failures, or skipped proof:
spec_0231_sibling_inequality_off_the_owner_call_stays_refusedfail. Skipping the receiver check makes the parity test fail.Claim Boundary
May claim:
Must not claim:
debug_assert_ne!.expect_erris read as result-side.Rollback
Revert the squash commit. The rows and gates revert with it.
Spec-Test-Code Traceability
classify.rs::spec_0227_uncompared_unwrap_err_is_a_weak_broad_error_oracle,tests/error_path_sibling_variant.rs::spec_0231_*(2 tests)scan.rs,syntax/ra.rs,classify/reveal.rs,classify/owner_pin.rs,classifier/evidence.rsStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --checkcargo xtask precommit🤖 Generated with Claude Code
https://claude.ai/code/session_01LF96T8WMLipviRmdgetFpK