Skip to content

fix(rust): scope shared reason-string oracle credit (#7763) - #7778

Merged
EffortlessSteven merged 4 commits into
mainfrom
rook/7763-parser-assertion-provenance
Oct 14, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
rook/7763-parser-assertion-provenance

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

A parser reason literal also appears in unrelated plan/gate assertions. Those same-file assertions could supply discriminate=yes beside an actual parser caller while formatted-input activation remained unresolved. Withhold that borrowed credit for string predicates when the proximity test has no established owner path; keep the row visible as no_call_path. Direct exact parser oracles and the existing opaque/transitive allowances retain credit. Refs #7763.

Exact candidate: head c623680782737a31756b24f682cd7cf17208dcf9, tree 87f6e326e45fda929ef82e08f89950d2d723fbbd, base d0a992271050555d12fdee0aa1f46ec839d14e9d, branch rook/7763-parser-assertion-provenance. Normal push/readback verified the head. Production delta: 13 added lines and one replaced line in reveal.rs. Evidence: a parser fixture, two independent public-API controls, promotion-honesty corpus row, SPEC-0240/traceability, and goldens. Changelog: changelog.d/7763-parser-string-oracle-provenance.md, canonical Fixed marker/bullet/reference.

The original released-0.10 caller omission is historical: exact current base already retains the direct test in the reduced case, entire consumer file, and targeted reason-predicate analysis of the actual UB workspace at 921ac515b33c6176dfb44bc2e483fe50e363e5ab. That current targeted row retains three actual callers, marks unrelated cross-file rows no_call_path, and reports infection_unknown/weak discrimination. It is a different analysis scope from the released repo-scope artifact; no row-ID equality is claimed. This PR repairs the separate current same-file literal witness rather than manufacturing a caller fix.

Observed Linux/Rust 1.95.0 proof:

  • Pre-repair public-API metamorphic control failed: unrelated reason/gate assertions changed discrimination from no to yes. Repaired controls pass 2/2; direct exact parser oracle remains yes, activation unknown.
  • Native committed fixture: 3/3 pass. Compiling location-validation bypass fails only the direct test on missing location (2 pass / 1 intended failure); other-condition and unrelated-plan tests pass.
  • Reveal suite 112/112; helper_wrapper_reach 33/33.
  • New fixture, promotion-honesty corpus, dogfood, traceability, fixture contracts, changelog and diff checks pass.
  • Initial full goldens comparison had only owner_return_pin_fallible_literal drift. Independent pristine-base reproduction proved missing locked anyhow 1.0.100 caused it; one official locked fetch restored the same frozen binary to retained expectations. Base receipt on #7616. Exact committed-candidate cargo xtask goldens check then passed with no violations; no inherited golden was rewritten.
  • Committed check-fast passed all 15 selected gates, including strict workspace/all-target Clippy; selector independently matched 14 changed paths and merge base d0a9922.
  • Fresh independent reviewer inspected all 14 files and semantic consumers, compiled the clean exact head, and passed both public-API tests (exit 0); independent native 3/3 and intended compiling-bypass rejection reproduced. No blocking findings. Optional future controls for predicate-specific opaque/transitive allowances and a nonempty decoy-row assertion remain nonblocking suggestions.

Keep Draft. No hosted qualification, release-0.10 registry replay, static activation proof, UB pin adoption, 19/max0 gate clearance, threshold/suppression or merge claim. Unknown formatted/local reason flow and standard-macro context limits remain explicit. This lane leaves #6501's separate cardinality branch untouched. Rollback: revert this bounded slice. Parent owns final acceptance after independent exact-head review and hosted checks.

Current integration inspection: PR base 4fe4dff9cead2f98b8a18693cffa7b475b2c3024 advanced with TypeScript snapshot/calibrate changes. Actual GitHub merge object 1ad9d8edce39a2f693d8582a5f5e7f5999774fcd, parents current base and candidate, tree 71e4f296ab3b9103ec6387766474e879191aa465, exactly matches local merge-tree. reveal.rs and the new public-API test blobs match the candidate. This is source/composition inspection, not executed merged-tree or hosted qualification.

Latest remote review/check boundary: Gemini reports daily quota exhaustion and CodeRabbit reports included-review exhaustion; neither supplies semantic clearance. Available hosted jobs are still running or Draft-skipped. Independent local reviewer evidence is complete; parent retains final hosted/provider disposition. All lane-owned local commands are terminal and the candidate worktree is clean.

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

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

The 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 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: d0b7ae01-4fd3-4084-904d-c512e6aa4fb3
📥 Commits

Reviewing files that changed from the base of the PR and between bbdbae9 and fc16185.

📒 Files selected for processing: 14
  • .ripr/traceability.toml
  • changelog.d/7763-parser-string-oracle-provenance.md
  • crates/ripr/src/analysis/classify/reveal.rs
  • crates/ripr/tests/parser_assertion_provenance.rs
  • docs/specs/RIPR-SPEC-0240-unknown-not-a-gap.md
  • fixtures/evidence-promotion-honesty-corpus/corpus.json
  • fixtures/parser_formatted_input_provenance/SPEC.md
  • fixtures/parser_formatted_input_provenance/diff.patch
  • fixtures/parser_formatted_input_provenance/expected/CHANGELOG.md
  • fixtures/parser_formatted_input_provenance/expected/check.json
  • fixtures/parser_formatted_input_provenance/expected/human-full.txt
  • fixtures/parser_formatted_input_provenance/expected/human.txt
  • fixtures/parser_formatted_input_provenance/input/Cargo.toml
  • fixtures/parser_formatted_input_provenance/input/src/lib.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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

Independent post-handoff source review; runtime/integration review INCOMPLETE because the assigned executor failed before container creation (container_service_failed). No Rust executable/sysroot probe, build, test, mutation run, or composed-tree execution was possible. This is infrastructure failure, not an access denial. Author and earlier reviewer execution receipts remain their evidence, not mine.

Frozen head c623680, tree 87f6e326e45fda929ef82e08f89950d2d723fbbd, implementation parent d0a9922. Live head re-read unchanged. Current base 4fe4dff; GitHub merge 1ad9d8e has those base/head parents and tree 71e4f296ab3b9103ec6387766474e879191aa465. Composition identity inspected only; its execution remains outstanding.

No material source finding established in this inspection. The production change is restrictive: string-literal Predicate probes with an owner-reaching relation withhold oracle credit for proximity-only tests lacking the existing opaque/transitive allowances. The credits_oracle guard gates owner-pin confirmation and routes matching decoy assertions to retained no_call_path rows before strongest-oracle accumulation. It neither adds caller relations nor establishes formatted-input activation. Standard assertion admission remains an independent filter. The literal expected outcomes and metamorphic decoy-removal control are independent of regenerated goldens; the direct-oracle control explicitly pins yes discrimination with unknown infection.

Remaining validation limits: the first public-API test's filtered all() assertion permits an empty decoy set; its paired test explicitly requires a decoy no_call_path row, and the fixture golden retains both decoy assertions, so this is a nonblocking strengthening opportunity rather than demonstrated regression. The inherited invokes_opaque_macro allowance scans raw body text, including strings, and is deliberately preserved. Predicate-specific opaque/transitive allowance controls and custom/shadowed-macro negatives should be independently executed before widening the claim; source inspection alone does not establish them.

At check read, no inline review threads existed; ub-review, Rust-only feature lane, windows-advisory-subset and Linux-wheel build were running, droid-review queued, and multiple Draft-sensitive jobs skipped. Provider quota exhaustion supplies no semantic clearance. Ready prerequisites are NOT established by this review: a functioning reviewer executor must independently execute the relevant API/native/mutation/helper/macro controls and proportional current-main composition, then reconcile live checks/reviews. No Ready, merge, source edit, golden refresh, policy/pin/adoption or UB gate clearance occurred. No local commands were started or remain active.

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

Confirmed findings

  • RIPR-SPEC-0240 spec paragraph and corpus row assume reveal.rs gate is sufficient, but no assertion pins the ordering of the new && !(return_admission.proximity_may_reach_owner)(test) conjunct; if proximity_may_reach_owner later changes truth value for fixture tests, the gate could silently re-allow the decoy.
  • fixtures/evidence-promotion-honesty-corpus/corpus.json:5566 — New corpus row only binds class=infection_unknown. Pin observe_state and discriminate_state so that a regression that silently credits the unrelated row (giving discriminator=yes) is caught by the corpus contract rather than relying solely on goldens.
  • Fixture input does not include a doc-test or in-source test for the SUFFIX-empty orientation branch; not in scope for #7763 but reduces the natural-activation surface for future formatted-input work.

Verification questions

  • Confirm siblings to the string-predicate guard exist in the same credits decision: non-string Predicate expressions, Return-token predicates, MatchArm predicates. The new gate (rust_string_literals non-empty) is intentionally narrow, so the fix is not extended.
  • Confirm crates/ripr/src/analysis/classify/reveal.rs:973 — shared_string_predicate fires for any predicate whose expression contains a Rust string literal, including numeric/path predicates. Confirm rust_string_literals is applied only to the discriminator side, or that string-bearing numeric/path predicates do not exist; otherwise a future numeric predicate with a string in source location will be wrongly suppressed.
  • Confirm second test replaces source with format! inlined parser body and asserts direct_reason row exists with no 'miss' AND decoy row carries 'no_call_path'. Golden expects decoy_no_call_path but fixture input is missing a 'miss'-free direct_owner_call row in the directly-tested module path; test will not regress on missing direct_reason unless a control row is added.
  • Confirm public API route used by integration test is well-formed: CheckInput with mode=Mode::Fast, format=OutputFormat::Json, include_unchanged_tests=true, default members; render_check consumes report. Scratch tmp dir is per-PID and unique per call.
  • Confirm helper inputs (is_proximity_only, invokes_opaque_macro, return_admission.proximity_may_reach_owner) could let unrelated_plan_and_gate_oracles slip through if proximity_may_reach_owner is true. Test pins relation_reason='same_test_file', which only fires when proximity_may_reach_owner is false for that test, so the new clause's &&!invokes_opaque_macro&&!proximity conjunction is effectively redundant here.

Evidence gaps

  • Native runtime test unrelated_plan_and_gate_oracles is asserted only statically: no #[test] in repo or fixture runs it as real Rust, and no cargo-test receipt is present yet (scheduled-late).
  • ripr sensor exit code Some(2) is a failed-source-route evidence receipt, not a reviewer-blocking build lease; PR-body admits non-block source.
  • ripr sensor status 'failed' with exit code Some(2) is independent of this PR's security posture; ripr is the analysis tool itself, not the witness under review.
  • 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.

Independent runtime follow-up to source review 5511347346: the missing execution is now complete. No blocking finding for #7778's stated string-predicate scope. This is a bounded review result, not Ready or merge authority.

Reviewed head c623680, tree 87f6e326e45fda929ef82e08f89950d2d723fbbd, original implementation parent d0a9922. Connected GitHub reads verified those objects and the unchanged live PR head. Read #7763, both substantive issue comments, author handoff, source review and bot review 5511390091. All 14 changed surfaces and the downstream credit/owner-pin/strongest-oracle path were inspected.

Observed independent execution on Linux x86_64 / Rust 1.95.0 (59807616e), in isolated clean review worktrees. Cargo used the official registry and locked dependencies, with:
PATH=/workspace/.cargo/bin:$PATH CARGO_HOME=/workspace/.cargo RUSTUP_HOME=/workspace/.rustup CARGO_TARGET_DIR=/workspace/review-target-7778.

Exact candidate commands, all exit 0:

  • cargo test --locked -p ripr --test parser_assertion_provenance: 2/2.
  • cargo test --locked -p ripr --test helper_wrapper_reach --test mixed_macro_reach --test property_macro_quarantine: 33/33, 5/5, 5/5.
  • cargo test --locked -p ripr --lib analysis::classify::reveal::tests: 112/112, 10375 filtered.
  • cargo test --locked -p ripr --test owner_pin_execution macro: 3/3, 28 filtered; native macro admission/empty-macro controls execute.
  • cargo xtask fixtures parser_formatted_input_provenance: selected one fixture; JSON, human and human-full comparisons pass, no violations.
  • ripr check --root fixtures/parser_formatted_input_provenance/input --diff <review>/fixtures/parser_formatted_input_provenance/diff.patch --mode fast --format json: exit 0. Independent nonempty JSON assertions verified both direct parser callers, exactly two same_test_file decoy rows carrying no_call_path, infection=unknown and discrimination=no. Findings exactly equal the committed JSON golden. The paired public API control retains a real exact parser oracle with discrimination=yes and infection=unknown.

Native fixture and wrong-behavior challenge:
rustc --edition=2024 --test pristine.rs -o pristine-tests, then ./pristine-tests: compile exit 0, 3/3 pass. A separate copy removes only the six-line unresolved-target location-validation block. rustc --edition=2024 --test bypass.rs -o bypass-tests compiles; ./bypass-tests exits 101: the direct location test fails for src/a.rs, other_parser_condition and unrelated_plan_and_gate_oracles pass (2 pass / 1 intended failure). Pristine source SHA256 687123f3a83e8d821b53a5008f63048c237ff91276263ca95c18ddb6e39761ec; bypass SHA256 18ddfa9627adcbe7bc19c214bf07e5e93dac516194e19cfaf4153040159ea074. No attribution logic was edited.

Executed current-main composition:
git merge-tree --write-tree c96a7929f8c694eb62cff2dbe2ad7ee94beea815 c623680782737a31756b24f682cd7cf17208dcf9 gives clean tree 8e05bb49c02d67ff5fa967ba50d7bfadcaa92c04. Local temporary merge object 1a69cf8684c9db742f507ad4f645ac93670e49fb has exactly those two parents. On that tree, all exit 0:

  • cargo test --locked -p ripr --test parser_assertion_provenance: 2/2.
  • cargo test --locked -p ripr --lib committed_snapshot: 6/6.
  • cargo test --locked -p ripr --lib mutation_calibration: 44/44.
  • cargo test --locked -p ripr --lib analysis::committed_source::tests: 12/12.
  • cargo test --locked -p xtask --test ripr_public_guide_contract: 17/17, including 18 portable help cases and expected missing-asset rejection.

Integration currentness: original GitHub merge 1ad9d8e, parents 4fe4dff and candidate, tree 71e4f296ab3b9103ec6387766474e879191aa465, matches independent merge-tree inspection. Main later advanced to 963139b; its delta from the executed c96a792 basis is only gate CLI leading-flag dispatch/tests and changelog. Inspected that delta and a clean merge tree 1de3fc4dd2de5a94b6f3337f3ced96dc97d1febf. That later tree is source-inspected, not executed; unrelated gate dispatch does not invalidate the bounded parser/API proof.

Bot review synthesis: conjunct ordering is not a demonstrated behavior defect. The public API metamorphic test pins the outcome; the CLI check independently closes the first test's potentially vacuous filtered all(). Stronger corpus observation/discrimination fields and explicit predicate-specific opaque/transitive/custom-macro controls remain useful nonblocking suggestions. Existing allowances are preserved; this execution does not widen their support claim.

Separate live concern: filed #7794 after all-state searches and a targeted current-source reproduction on the entire UB f28f8b094ce56586df2b14b8b11f9932fb44b38d consumer file. A side_effect .or_default() probe borrows strong credit from sibling parse_note orientation assertions; replacing only their equalities with calls-preserving let statements drops exposed/yes to weakly_exposed/weak. A second read-only agent verified the original receipt and uncovered fixture boundary. #7778's fixture and Predicate/string guard do not cover this sibling-effect family. #7794 recommends a separate regression with real owner/effect-observer positives. It is not a released-analyzer replay, full UB qualification, or a production extension in this review.

Residuals: broad full-goldens/check-fast/Clippy receipts in the handoff remain author/earlier-review evidence; this pass independently executed the focused comparisons above. No native Windows qualification or full consumer workspace replay. Final exact-head check read had no failed/in-progress check and Droid review queued; several lanes Draft-skipped. Provider quota comments supply no semantic clearance; no inline threads existed. No Ready, merge, release, deployment, analyzer adoption, policy change or UB gate clearance. All owned commands are terminal, tracked trees stayed clean, and all three review-owned worktrees were removed.

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

Supplemental independent new-main execution, completing the integration prerequisite left source-only in review 5511578718. No blocking finding for #7778's bounded string-predicate scope. No Ready or merge disposition is issued.

Re-read connected GitHub main at admission: f9f30d5. PR head re-read before posting remains c623680, candidate tree 87f6e326e45fda929ef82e08f89950d2d723fbbd, original parent d0a9922.

Exact executed composition:

  • git merge-tree --write-tree f9f30d56c8ae1cd5911004b35a8ae86a07ebed30 c623680782737a31756b24f682cd7cf17208dcf9 cleanly produced tree a9461ebeb124be61dbb72d4c2ac929199495461f.
  • Temporary local merge object 6597dfd64577e41acd3ada75c86f4c27db88b869 has exactly those main/head parents and that tree.
  • Linux x86_64, Rust 1.95.0; reused CARGO_HOME=/workspace/.cargo, RUSTUP_HOME=/workspace/.rustup and CARGO_TARGET_DIR=/workspace/review-target-7778, with /workspace/.cargo/bin on PATH.

Compared with the previously executed c96a792 basis, main added owner-pin/type-path admission, dependent-package relations, gate CLI flag dispatch and repository policy preparation reuse. Owner/related-test changes engage the predicate repair's shared credit path, so fresh product and test-library compilation was necessary. Dependencies were reused; there was no duplicate progressing build, full workspace suite, guide/package rerun or release build.

All proportional runtime commands exited 0 on the composition (400 selected tests total):

  • cargo test --locked -p ripr --test parser_assertion_provenance --test helper_wrapper_reach --test mixed_macro_reach: 2/2, 33/33 and 5/5.
  • cargo test --locked -p ripr --lib analysis::classify::owner_pin::tests: 170/170, 10339 filtered.
  • cargo test --locked -p ripr --lib analysis::classify::related_tests::tests: 174/174, 10335 filtered.
  • cargo test --locked -p ripr --lib dependent_scope::tests: 15/15, 10494 filtered.
  • cargo test --locked -p ripr --lib gate_leading_flags_dispatch_to_evaluate: 1/1, 10508 filtered.
  • Real composed CLI: ripr check --root fixtures/parser_formatted_input_provenance/input --diff <review>/fixtures/parser_formatted_input_provenance/diff.patch --mode draft --format json. Exit 0; independent JSON assertions retain both actual parser callers and exactly two decoy no_call_path rows, with infection=unknown and discrimination=no. The paired API control also retains the real exact parser oracle's yes discrimination.

#7794 disposition: pre-existing separate sibling-effect limitation, not introduced by this candidate and nonblocking for #7778's explicitly bounded repair. The exact original-base→candidate production diff changes only reveal.rs. For SideEffect/CallDeletion, shared_string_predicate is false, so the new credits_oracle expression reduces identically to the original base's credits(reason). This attribution of pre-existence is established by the exact source diff; no fresh pristine-base binary replay is claimed.

The newly composed CLI independently reproduces #7794 on the whole 430-line current UB f28f8b094ce56586df2b14b8b11f9932fb44b38d consumer file under its documented targeted diff: .or_default() gets exposed/yes from two sibling parse_note orientation assertions. Replacing only those equalities with let statements that preserve their parser calls yields weakly_exposed/weak. #7794 now records the new-main result, source basis for pre-existence, nonblocking PR scope, and remaining broader #3161/consumer-adoption limitation. #7778 does not claim or test that effect family.

All commands in session 98583 are terminal. The submitted candidate was unchanged; no attribution logic or goldens were edited. The review tree was clean and its worktree removed. This closes the requested local new-main execution gap for the exact named composition. Parent retains live hosted/provider checks, final acceptance and lifecycle; no Ready, merge, release, deployment, analyzer adoption, policy change or UB gate clearance occurred.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 14, 2026 00:27
@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 commented Oct 14, 2026 •

Copy link
Copy Markdown
Member Author

#7794 coordination closeout: independent effect-kind confirmation repair is delivered as Draft #7817, exact head46dc32ebee9444256746da6c1a5ecdeeb03502e8/tree6b90a096b7248e420d46b9beffb4e1155e00729e, original main-derived basec96a7929f. This branch and its Predicate/string scope were untouched. No semantic stack dependency; separate guard placement retains both repairs and composes main459ad8f2 + #7817 + this c623680 head cleanly as tree4563ffecfebd3e1278cc9d763be16671bea13e55 (source-only, not qualification). Current-head public2/2, reveal113/113, helper33/33, native-path5/5, fixture/full goldens/dogfood/corpus/contracts, check-fast15 gates/16 paths and precommit all pass. Fresh independent review independently verifies exact consumer identity and public/native/removal controls, no actionable source/oracle blocker. The parser equality rows remain visible as observation_unconfirmed; unknown standard dispatch is not claimed ruled out. Keep the new candidate Draft; parent owns hosted/acceptance disposition. Broader #3161 and consumer/pin/gate adoption remain unestablished.

@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

Copy link
Copy Markdown
Member Author

Repair handoff for unresolved thread PRRT_kwDOSiSx0c6sHdGF / review comment 4265521880.

Normal push and Git ref readback confirm:

  • Head: 7cbc6173a2441cc36aa614d84d9ca23fd7262a28
  • Integrated/tested main base: 3ea9a19ee663b5011a1f053e7d598ec264677259
  • Head tree: 8995309a46bff455504a1ccc08cf24fe7d07c4f7
  • Main merge commit: 3d1ad99fc2b17ff37beb6f19322496a4b033478a (parents original candidate c623680782737a31756b24f682cd7cf17208dcf9 and tested main base).
  • Branch: rook/7763-parser-assertion-provenance; clean candidate checkout.

The follow-up changes only crates/ripr/tests/parser_assertion_provenance.rs. It requires exactly two decoy rows, exactly one per oracle kind/assertion identity (exact-value plan assertion and relational gate assertion), and pins both rows to relation_reason=same_test_file and miss=no_call_path. No uniqueness assertion by test name alone. Production and supported semantics are preserved. Existing canonical Fixed fragment changelog.d/7763-parser-string-oracle-provenance.md remains applicable; this follow-up is test hardening.

Observed Linux/Rust 1.95.0 local proof:

  • Pre-edit merged-composition cargo check -p ripr --all-targets: pass.
  • Pre-edit and committed-head cargo xtask check-fast: all 15 selected gates pass, including strict workspace/all-target Clippy. Independently resolved 14 changed paths; stable selector and exact merge base match the base above.
  • Committed-head cargo test -p ripr --test parser_assertion_provenance: 2/2 pass.
  • Unchanged native fixture in an isolated copy: 3/3 pass. Direct in-repository manifest invocation hit Cargo workspace-membership setup refusal and supplied no test result; the isolated copy executed successfully.
  • cargo xtask fixtures parser_formatted_input_provenance: JSON, human, human-full goldens pass, no violations.
  • cargo xtask check-evidence-promotion-honesty: pass.
  • Compiling isolated public-report mutations, using separate temporary integration-test targets: dropping the exact-value decoy row and corrupting its miss both passed the old test. The repaired test rejects the removal at count 1 versus 2 and rejects the corrupted miss at no_call_path. Both expected failures exited 101 after successful compilation and test execution. Mutation targets were removed from the candidate; snapshots/logs retained for the parent.

This is a repaired candidate awaiting fresh independent exact-head review and non-publishing CI. Run 38490303108 and earlier review/check receipts apply only to the old head. Thread remains unresolved. No Ready transition, PR merge, release, deployment, gate weakening, or security change was performed. The live PR was already non-Draft and its state was preserved.

@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

  • Lane assigned (ub-worker-handoff) is mismatched to a Rust static-analyzer predicate-credit diff; no worker/async/transfer/detach surfaces exist to review, so no public finding is filed.

Refuted

  • New credits_oracle conjunct could introduce a reentrancy or short-circuit hazard that crosses a worker or async boundary; refuted because: Conjuncts combine precomputed, side-effect-free booleans (shared_string_predicate, owner_reaching_related, is_proximity_only, !invokes_opaque_macro, !(proximity_may_reach_owner)(test)); no I/O, allocation, or shared-state write that a worker-handoff pass would flag.
  • The reveal.rs gate conjuncts (return_admission.proximity_may_reach_owner)(test) are untested in isolation; refuted because: Given that a parser fixture test (unrelated_reason_literal_cannot_supply_parser_discrimination) plus the corpus row rust_formatted_parser_reason_keeps_activation_unknown collectively pin the gate's effect on classify and discriminate, the conjuncts are not asserted individually, but the gate's overall behavior is pinned. github-actions bot observation about ordering of && !(proximity_may_reach_owner)(test) remains a residual risk, not a test-oracle gap.
  • The new shared_string_predicate guard could mask security-relevant predicates (e.g., path/permission strings) by withholding credit and downgrading classification to infection_unknown, allowing vulnerable code to escape static detection in a security review workflow.; refuted because: ripr is an advisory static analyzer; infection_unknown explicitly flags unknown activation and surfaces related tests, stop reasons, and missing discriminators. It is a strictly more conservative outcome than miscrediting 'yes' - not a downgrade in security posture. The conjunct only narrows credit; it does not suppress findings or hide evidence paths.

Parked follow-ups

  • Corpus row rust_formatted_parser_reason_keeps_activation_unknown relies on the new gate; if a future change to proximity_may_reach_owner silently re-allows the decoy the corpus would not catch it (must_not_report_clean + must_not_promote + class only).
  • Helper duplication risk: the gate composes four existing predicates (is_proximity_only, invokes_opaque_macro, proximity_may_reach_owner, rust_string_literals) rather than introducing a new proximity oracle for strings.
  • Corpus row pins class=infection_unknown and must_not_promote but does not pin observe_state or discriminate_state, so a regression that flips discriminator to yes silently passes.
  • Sibling-path calibration: no-match scan confined to ProbeFamily::Predicate with non-empty string literals; Return-token, MatchArm and opaque/transitive predicate siblings not covered by this guard. Scope matches PR claim of bounded string-predicate fix; flag for future predicate-specific follow-up.
  • Fixture input/src/lib.rs omits a doctest for the SUFFIX-empty orientation branch and the related non-suffix test mirrors grep filter; out of scope for #7763 but reduces natural-activation surface. github-actions bot 5511390091 listed this; parked, not blocking.

Evidence gaps

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

Fresh independent successor review: no actionable source or test-oracle blocker found for this PR's bounded string-predicate attribution repair. Disposition: REVIEW_INCOMPLETE for merge qualification; the local semantic/oracle review is complete, but old-head required run 38490303108 cannot qualify this head and current required hosted qualification is not established.

reviewed_head_sha: 7cbc6173a2441cc36aa614d84d9ca23fd7262a28
head_tree: 8995309a46bff455504a1ccc08cf24fe7d07c4f7
integration_basis: integrated main 3ea9a19ee663b5011a1f053e7d598ec264677259; integration commit 3d1ad99fc2b17ff37beb6f19322496a4b033478a has original candidate and that main as parents. The successor diff from this integration commit changes only the provenance test. reveal.rs has identical blob 0b4f76c316d649cbeb9fe37bdc51569e691888e1 at the prior and successor heads.

Inspected AGENTS, review-pr and repository review rules/context, #7763, the repair handoff, all 14 PR surfaces, source reviews 5511578718/5511645162, and the unresolved thread. Followed the credit decision into retained RelatedTest rows, no_call_path explanation, owner-pin credit and discriminator aggregation, and reviewed fixture/spec/traceability/corpus/rendered contracts. No schema, dependency, workflow, release or platform-support expansion occurs in the successor repair. Two assertions sharing one test name are deliberately two distinct oracle rows; exactly one exact-value plan assertion and one relational gate assertion are required. The length assertion precedes indexing, and each matched row pins both provenance fields.

Concern disposition — PRRT_kwDOSiSx0c6sHdGF / comment 4265521880: valid on the old head, fixed/superseded by the successor repair and independently confirmed below. The old filtered all() accepted missing rows and did not guard the miss. The repaired assertion closes both holes. The thread remains unresolved; no resolution action was performed.

Observed Linux / Rust 1.95.0 independent execution in review-owned detached checkouts, using the locked graph, standard workspace Cargo/Rustup homes and an isolated target directory:

  • cargo test --locked -p ripr --test parser_assertion_provenance: exit 0, 2/2.
  • Isolated unchanged native fixture, cargo test --manifest-path <isolated-fixture>/Cargo.toml: exit 0, 3/3. Pristine source SHA256 687123f3a83e8d821b53a5008f63048c237ff91276263ca95c18ddb6e39761ec.
  • Removing only unresolved-target location validation compiles and executes; native command exits 101 with the direct location test failing at src/a.rs, while other_parser_condition and unrelated_plan_and_gate_oracles pass (2/1). Bypass source SHA256 18ddfa9627adcbe7bc19c214bf07e5e93dac516194e19cfaf4153040159ea074.
  • cargo xtask fixtures parser_formatted_input_provenance: exit 0; one selected fixture, JSON/human/human-full comparisons pass, no violations.
  • cargo xtask check-evidence-promotion-honesty: exit 0.
  • git diff --check 3ea9a19...7cbc6173: exit 0.

Compiling wrong-report challenges used separate temporary integration-test targets with the actual public API/rendered finding helper. The old assertion source was read from c623680; new assertions from this exact head. Only the returned finding's exact-value decoy row was either removed or assigned miss=observation_unconfirmed; production source was unchanged. Reconstructed experimental tree containing all four temporary targets: d73e599e65bc38711b24bf69028767b9a46189f9, based on the reviewed head.
Commands: cargo test --locked -p ripr --test review_7778_{old,new}_{drop,miss} unrelated_reason_literal_cannot_supply_parser_discrimination, executed individually.

  • old/drop and old/miss: exit 0, 1/1 each.
  • new/drop: exit 101 after compilation/execution, intended count rejection 1 versus 2.
  • new/miss: exit 101 after compilation/execution, intended observation_unconfirmed versus no_call_path rejection.
    Temporary targets were removed from the review checkout; the submitted candidate was untouched.

Main-delta inspection preceded inheritance of unchanged review dimensions. Integrated main includes associated-function owner pins/dependent-package admission, Python/TypeScript changes, gate dispatch and policy preparation reuse. Subsequently admitted live main ff4a2fcd6fac21a93b8fb04f1b0befc80311a601 adds Rust pattern-oracle admission and log-gap handling plus other surfaces. The free parser's two assertion kinds do not use matches! or the log-effect guard; fresh focused execution still checks their composition rather than relying solely on that inference.

Executed frozen composition: git merge-tree --write-tree ff4a2fcd 7cbc6173 is clean, tree 8df84caa84cefe881de1ce387da485c967f6d4a4; local review commit f9633675dda0da0a8b6ce95daf1a0d30f470213c has exactly those full main/head parents. On this composition:

  • Same locked public-API command: exit 0, 2/2.
  • Actual composed CLI ripr check --root fixtures/parser_formatted_input_provenance/input --diff fixtures/parser_formatted_input_provenance/diff.patch --mode fast --format json: exit 0. Nonempty independent assertions verified one finding exactly equal to the committed JSON finding, both actual direct parser callers, exactly two distinct decoys with same_test_file/no_call_path, infection=unknown and discrimination=no. The positive API control retains discrimination=yes with infection=unknown.
  • CLI --version reports the local composition commit; executed CLI SHA256 6c842d30d6e6edad367559002757992143b307630e09ecb961a57ba6c2d69980.

Separately observed GitHub merge object d57a10495cfb706331179c3ab44c693010ada0cd: parents 16ab6e5e8349915c8e3f130bd1546ebf63a3877b and reviewed head, tree f9b15a44fc9100968403391cba2ec9377cd7f820, matching local merge-tree inspection. That object is source-inspected, not claimed executed or a hosted job's actual checkout.

Immediately before posting, connected reads retained the exact head, open/non-Draft state and unresolved/outdated concern. All 23 exact-head check runs were read without pagination loss: no failure observed, wheel and Rust-only lanes still in progress, and no Ripr Rust required qualification result present. Other skipped or successful checks do not establish the missing gate.

Residuals/non-claims: unchanged opaque/transitive allowances retain prior limits; no static formatted-input activation proof, native Windows qualification, released-0.10/full-consumer replay, broad full-workspace/full-goldens/check-fast rerun, UB pin/gate clearance or release proof is claimed. Author's check-fast/Clippy receipts remain reported evidence. No author edits, thread resolution, Ready/lifecycle mutation, merge, release or gate weakening. Parent retains hosted qualification and final acceptance.

@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 'without_decoy' assertion compares discriminate values; equality can be vacuous when state is already 'no' for both probes (gate only affects oracle credit, not gate's own discriminator).

Refuted

  • The credits_oracle conjunct evaluation could panic on out-of-bounds indexing into rust_string_literals(&probe.expression) returning an empty Vec; refuted because: matches!(probe.family, ProbeFamily::Predicate) gates the empty check; .is_empty() on Vec is total and panic-free; no indexing occurs. Allocation-failure concern raised by lane calibration is not applicable here.
  • Adding a string-literal ripgrep conjunct inside credits_oracle could cause an ArrayBuffer-style realloc / stale-length / transfer-detach hazard across the related_tests iteration.; refuted because: Diff is Rust-only; no ArrayBuffer, TypedArray, SharedArrayBuffer, WebAssembly.Memory, or detach/transfer/grow surface is touched. The added boolean conjunct is composed of precomputed, immutable, side-effect-free predicates over per-probe data captured before the loop. No Vec/String is grown or sliced; no &Vec/&mut Vec pattern crosses the predicate evaluation. No unsafe block is introduced. Lane focus does not apply to this PR.
  • New credits_oracle conjunct introduces a reentrancy or async-handoff hazard that crosses a worker boundary; refuted because: Conjuncts combine precomputed side-effect-free booleans; no I/O, allocation, or shared-state write occurs in the new branch. The function only consults already-captured related_tests vectors and probes.

Parked follow-ups

  • Only diff-side changes are checked; no security concern in unchanged surfaces.

@EffortlessSteven
EffortlessSteven merged commit 0598981 into main Oct 14, 2026
34 checks passed
@EffortlessSteven
EffortlessSteven deleted the rook/7763-parser-assertion-provenance branch October 14, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant