Skip to content

fix(analysis): retain bounded returned-ledger identity evidence - #7355

Merged
EffortlessSteven merged 18 commits into
mainfrom
fix/3215-escaping-diagnostic-ledger
Oct 11, 2026
Merged

EffortlessSteven merged 18 commits into
mainfrom
fix/3215-escaping-diagnostic-ledger

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Current head: 47dd5fb. A valid first-hop returned ledger previously hid a dropped result higher in the observed route: record(&mut ledger) pushed a diagnostic, collect() returned its local, and outer() discarded that result, yet a test observing outer() received only the indexed-field uncertainty. The repair preserves helper_result_not_forwarded for higher observed wrappers whose identity is unestablished. Direct observation of the proved first caller retains the partial-ledger explanation, including when an unobserved outer drops its result. No higher-hop transfer is added.

The existing PropagationWitnessV1 remains Partial and retains valid internal first-hop identity. The field/push edge remains a candidate; Config.policy_errors[0].detail, element survival, index selection, branch activation and exact oracle discrimination remain unproved. SPEC0159's wrapper-local refusal stays intact. This is a bounded prerequisite under #3215, not closure of #3215/#7131 or ub-review #1363, and grants no exposure credit.

Current evidence: public source/check receipt and parent independent review.

  • All nine affected exact-head checks pass: build, public helper-wrapper suite (21 tests), first-hop identity suite (14), retained-witness test (1), native controls/frozen replay, strict check-fast, goldens, precommit and dogfood. Check-fast selected 13 candidate paths, ran 13 gates and skipped fixture-contracts.
  • The regression is RED before repair. Four compiled native controls each execute one test: pristine all GREEN; push-removal RED for direct/forwarded ledger observation and GREEN for dropped outer. All classifier cases remain propagation_unknown. These controls establish route discrimination, not exact detail-string discrimination.
  • Both frozen original/stronger cases retain all 20 IDs, classifications, stage states and propagation summaries versus bc8, with explicitly empty private-cache runs matching warm findings. Original immutable consumer diagnostic-removal GREEN and stronger RED receipts remain on unchanged input bytes; the full earlier author/reviewer matrices are not claimed rerun.

Repaired frozen-base integration: main 9732975 plus current head, unpublished local commit be2e11a5e07c33988d391c070e742b80693b78e8, tree 72d8c2949990798752f2f148959e9e0cf2e0926c. Workspace all-targets compilation and all 21 public helper-wrapper tests pass on this tree; all candidate-changed crate blobs match the published head. Earlier main973 policy/MCP/readiness checks belong to their earlier tree and are not represented as newly executed here. Later-main qualification remains separate and parent-owned.

The parent renewed Ready through the normal Draft → Ready transition on 2026-10-11 at 13:24:19 UTC, on exact head 47dd, after current source reviews and integration. Required hosted validation, including Ripr Rust Small Result, is pending and monitored separately. Ready does not establish merge qualification. No additional dispatch or merge occurred.

Prior bc8f931 evidence is explicitly historical. Its earlier source clearance was withdrawn when the dropped-outer reproduction was confirmed; it did not qualify the unrepaired behavior. The current repair and review above supersede that clearance in the repaired scope. Historical bc8 receipts retain their original identities: ten local gates, 33 authored native controls, namespace reconciliation and whole-feature reconciliation. Earlier full independent suites are db4 evidence.

Historical combinations also retain their original scope: main341 341fb52614788b584d3601bafe4a86955c96f4ea + bc8, local commit 77f75c50c195eb0e33d12ac63dc6d6f235f809a6, tree ce17641fb29bdd137445bea6b0ac4173df6e4ae2, passed seven compatibility gates; its initial detached-doctor setup failure remains separate. The earlier main973 receipt covers bc8 combination b3a815f2b2e5a0c476c263b8181a63f6b34e0eab / tree 8c0f684b246d8836701e4487b21f75a858705f2f and nine local checks. Later observed main 30264238c4c6a684f5ef3d4c2c5e1dba3ae467d5 had a clean inspection-only merge-tree 90357bef8e4886cd8b3632266f0ef56c7cb5e8d3; its new policy/routing paths were outside those frozen receipts. None qualifies an unspecified latest main.

Frozen reference: ub-review stronger case, qualification commit 316db5e64c7b77493857f03ebb1288f79ec87c77; executed original main comparison baseline bc8dca910af161006693a32a4e90fe0b2c3a7a0d. The earlier bc8 Ready event at 12:29:41 UTC and denied CLI workflow GET (no POST/run admitted) are historical, not current-head qualification.

Author repair files and raw receipts are retained privately: 313828 bytes, SHA256 5340c7e4bbc66408523a4eb80fb5ecad73b488e0ca40252d1171f6afdb861de2. No private artifact download links or reviewer bundle are published here.

Parent owns required validation and integration. No release, source-repo synchronization, consumer pin/threshold/suppression changes or merge.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: bfe524bb-e2eb-406e-b599-9cf32809a9e3



📥 Commits

Reviewing files that changed from the base of the PR and between bc8f931 and 47dd5fb.




📒 Files selected for processing (6)
  • changelog.d/3215-returned-ledger-identity.md
  • crates/ripr/src/analysis/classifier/evidence.rs
  • crates/ripr/src/analysis/classify/helper_transfer.rs
  • crates/ripr/src/analysis/classify/mod.rs
  • crates/ripr/tests/helper_wrapper_reach.rs
  • docs/specs/RIPR-SPEC-0159-bounded-helper-transfer.md



🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:




Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.





Summary by CodeRabbit

  • Bug Fixes

    • Rust helper diagnostics now retain partial evidence when a constructed field may pass through a mutable argument and be returned by a caller.
    • Diagnostics distinguish an unresolved exact-field observer from a helper result that is dropped or not forwarded. The evidence does not confirm which element is observed.
    • Cached classifications are refreshed to reflect the updated helper-transfer analysis.
  • Documentation

    • Clarified the conditions and limits of this helper-transfer evidence.

Walkthrough

The classifier now identifies bounded mutable-ledger transfers through helper calls and retains them as partial propagation evidence. It reports the unresolved indexed-field observer and updates related cache generations, tests, documentation, and traceability records.

Changes

Returned Ledger Transfer

Layer / File(s) Summary
Detect bounded returned ledgers
crates/ripr/src/analysis/classify/helper_transfer/returned_ledger.rs, crates/ripr/src/analysis/syntax/owner_pin.rs, crates/ripr/src/analysis/syntax/mod.rs, docs/specs/RIPR-SPEC-0159-bounded-helper-transfer.md
The analysis identifies a candidate when a synchronous helper pushes through a mutable parameter and its caller passes a uniquely bound mutable local that it returns unchanged. It rejects ambiguous or mismatched bindings, scopes, types, and source declarations. Tests cover accepted and rejected cases.
Build partial propagation diagnostics
crates/ripr/src/analysis/classifier/evidence.rs, crates/ripr/src/analysis/classify/propagation_witness.rs, crates/ripr/src/analysis/classify/helper_transfer.rs, crates/ripr/src/analysis/classify/mod.rs, crates/ripr/tests/helper_wrapper_reach.rs
The classifier records candidate and established transfer edges while keeping the witness partial and the exact observer unresolved. It reports the observer limitation when tests directly observe the proved first-hop caller. Higher wrappers that drop or fail to forward the result retain the forwarding limitation. Tests cover these outcomes.
Update cache and traceability records
crates/ripr/src/analysis/seam_cache.rs, docs/OUTPUT_SCHEMA.md, .ripr/traceability.toml, changelog.d/3215-returned-ledger-identity.md
The full cache generation advances from 1.61 to 1.62; sharded and compact generations advance from 0.67 to 0.68. Related schema examples, traceability entries, and the changelog are updated.

Priority: ⬇️ Low

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant ClassifiedProbeEvidence
  participant returned_ledger
  participant returned_ledger_witness
  participant retain_returned_ledger
  participant Diagnostic
  ClassifiedProbeEvidence->>returned_ledger: Inspect owner source and helper chain
  returned_ledger-->>ClassifiedProbeEvidence: Return parameter, local, and caller
  ClassifiedProbeEvidence->>returned_ledger_witness: Build candidate witness from probe and sinks
  returned_ledger_witness-->>ClassifiedProbeEvidence: Return partial witness
  ClassifiedProbeEvidence->>retain_returned_ledger: Add ledger transfer edges and unresolved observer limit
  ClassifiedProbeEvidence->>Diagnostic: Convert witness to diagnostic
Loading

Merge Risk: ⚪ Minimal · up to 47dd5

No actionable merge-blocking risk is established. The returned-ledger evidence remains partial, and higher wrappers retain their forwarding limitation.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 47dd5

The inspected changes retain limited diagnostic evidence without granting observation or exposure credit. Strict identity checks and separate cache generations constrain the impact. Some execution-path assumptions remain unproved, so the assessment is low risk rather than an assurance of complete safety.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The demonstrated impact is on diagnostic evidence and classification of analyzed Rust source, plus derived cached results. The inspected identity path does not introduce an execution or credential-authority transition.

Trust Boundaries and Controls

  • observed — Source text cannot establish identity through mutability-like spelling alone: the proof requires actual mutable-reference tokens. It also refuses ambiguous bindings, imports and opaque statement expansions, and requires unique synchronous declarations in the same lexical module scope with restrictive attribute handling.
  • observed — The test-call predicate establishes bounded caller identity, not unconditional execution or branch activation. Its new consumer only chooses between Unknown explanations; this unresolved execution property is not converted into exposure credit.



Pre-merge checks | Passed 3 | Failed 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 39 functions across 9 files. (2 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description provides extensive technical context, scope boundaries, evidence, and validation results, but it does not follow the repository template. Required sections such as Candidate Relationsh… Rewrite the description using the repository template. Complete all required sections, including source-of-truth links, candidate relationships, scope and non-goals, rollback steps, traceability, policy and support-tier impact, static-langu…
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly summarizes the primary change: retaining bounded returned-ledger identity evidence during analysis.

Full details: Docstring Coverage

Explanation

Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 39 functions across 9 files. (2 skipped: 2 unsupported.)


Full details: Description check

Explanation

The description provides extensive technical context, scope boundaries, evidence, and validation results, but it does not follow the repository template. Required sections such as Candidate Relationships, Scope Classification, Support-tier Impact, Policy Impact, Rollback, Spec-Test-Code Traceability, Static Language Check, Engineering Check, and Gates are missing or not completed in the prescribed format.

Resolution

Rewrite the description using the repository template. Complete all required sections, including source-of-truth links, candidate relationships, scope and non-goals, rollback steps, traceability, policy and support-tier impact, static-language and engineering checks, and the applicable gate results.


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR


















🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR





  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit traced the ledger’s way,
From helper’s push to local stay.
The field’s observer hides from view,
The witness marks what’s known and true.
Cache versions hop to something new.

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

@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 the 'returned mutable-ledger identity' analysis feature, allowing Rust helper diagnostics to retain a bounded mutable-argument/returned-local ledger identity. It introduces the returned_ledger module, updates evidence gathering and propagation witness logic, and bumps the cache schema versions. The review feedback identifies two issues in returned_ledger.rs: a correctness bug where stripping the &mut prefix after canonicalization can cause incorrect local identifier extraction, and a fragile parameter name matching logic that should be refactored using ast::IdentPat to handle mut patterns and comments robustly.

Copy link
Copy Markdown
Member Author

Independent review: REPAIR_REQUIRED, bound to exact head ae1dfc94f18c897eb6a0627160e1157f0563cbef (PR head verified immediately before this comment).

P1 — helper-side statement macro can rebind the ledger receiver without refusal. Location: crates/ripr/src/analysis/classify/helper_transfer/returned_ledger.rs:89-90, owner parameter rebind admission.

Compiled, runnable reproduction:

struct PolicyError { detail: String }
fn record(errors: &mut Vec<PolicyError>) {
    macro_rules! bind {
        ($name:ident) => { let mut $name: Vec<PolicyError> = Vec::new(); };
    }
    bind!(errors);
    errors.push(PolicyError { detail: format!("diagnostic") });
}
fn collect() -> Vec<PolicyError> {
    let mut errors = Vec::new();
    record(&mut errors);
    errors
}
fn main() { assert!(collect().is_empty()); }

Rust compiles this and the assertion passes: the pushed record belongs to a fresh helper-local ledger. Public analyzer controls nevertheless retain the returned-ledger marker (returned_mutable_ledger_observer_unresolved). The lexical caller_rebinds_parameter check cannot see the macro-generated binding. The new caller macro refusal does not screen the helper owner.

The actual caller-to-helper mutable borrow is real here; the error is attaching the pushed field/receiver to the original helper parameter and admitting the returned-ledger route. This violates SPEC0159's receiver identity and rebound/shadowed refusal boundary. The witness remains Partial and the class remains propagation_unknown, so this does not demonstrate exposure credit.

A bounded repair should reuse the existing statement/item macro authority to refuse opaque helper-owner rebinding before field-to-parameter admission, preserving allowed expression macros such as format!. No duplicate authority is needed.

Validation at this head: 9 disposable integration tests, 8 pass / 1 fail. The failing test contains a finite 43-row value-namespace matrix: every row first compiles and executes its runtime control, then calls the public analyzer; 42 rows pass, only owner_macro_receiver_shadow fails. All 16 signature-binding forms now refuse correctly (plain/raw/mut/ref/ref-mut, tuple/array/@/struct/enum/nested patterns, Fn/FnMut/FnOnce/reference). Caller body bindings, imports, statement macro delimiters, original const/static/macro regressions, ignored results, and observer/refusal controls pass. Plain, expression-macro, unrelated-parameter and renamed-field-parameter positives remain admitted without exposure credit.

Reviewed the complete original branch diff against merge-base bc8dca910af161006693a32a4e90fe0b2c3a7a0d and subsequent repair deltas through this exact head. Source/package readiness and hosted qualification are separate and not established by this review.

Copy link
Copy Markdown
Member Author

This helper-side statement-macro hole is repaired and pushed at 40e038e. A concurrent bounded source audit independently reproduced it natively on ae1 (runtime empty returned ledger, false partial candidate explanation). The adapter now requires the owner parameter to be its sole ordinary/raw matching full-function binding and refuses opaque owner statement expansions using the delivered macro-position classifier. Expression-position format! remains allowed. Exact-head checks and 22 compiled controls are running. I will preserve and replay the full independent finite matrix, subject to obtaining the supplied artifact through the supported Library materialization path; prior two reviewer artifacts failed download through that path.

Copy link
Copy Markdown
Member Author

Full finite matrix artifact is currently unreadable in this executor: prepare_materialize succeeded for libfile_d093dd8bc9b88191a35a6db4dbe67858 (6818-byte ZIP), but the skill's unchanged library_file_transfer.py materialize returned exit 1 / library file transfer failed: download failed, including one fresh prepare-and-materialize retry. No local archive or HTTP status/body is available. I cannot claim replay of those 43 exact rows. Please provide the matrix source as readable PR text or a repository-attached file, or have the parent preserve/replay the supplied archive independently. The compiled owner-macro reproduction is separately retained locally and rejected by 40e038e; local 22-control replay is now being inspected after its first failure.

Copy link
Copy Markdown
Member Author

Frozen replay identified a false refusal at intermediate 40e038e: the delivered macro-position classifier includes MacroExpr tails of nested blocks, and the real provider helper contains if ... { format!(...) } value initializers. Fixed at pushed 352dcab: expression block tails are excluded from the opaque statement guard because their bindings cannot reach a later visible call/push; item/statement expansions remain refused. Added an owner expression-tail positive regression. All exact-head checks restart on 352dcab. Independent finite 43-row matrix remains pending acquisition: supported Library download failed twice; see preceding exact blocker. Please retarget review to this head.

Copy link
Copy Markdown
Member Author

Independent exact-head review: REPAIR_REQUIRED at 352dcab2a3e58852e22cb2ebf3aca48b6ae06d27 (PR head reverified before posting).

P1 — helper-local imports can shadow the ledger receiver without refusal. Location: crates/ripr/src/analysis/classify/helper_transfer/returned_ledger.rs:92-96. The sole-binding authority does not count direct or glob use bindings; the caller has an explicit ast::Use refusal but the helper owner does not.

Compiled/runnable reproduction:

struct PolicyError { detail: String }
mod shadow {
    pub struct Sink;
    #[allow(non_upper_case_globals)] pub const errors: Sink = Sink;
    impl Sink { pub fn push(&self, _: super::PolicyError) {} }
}
fn record(errors: &mut Vec<PolicyError>) {
    use crate::shadow::errors; // also reproduces with use crate::shadow::*;
    errors.push(PolicyError { detail: format!("diagnostic") });
}
fn collect() -> Vec<PolicyError> {
    let mut errors = Vec::new();
    record(&mut errors);
    errors
}
fn main() { assert!(collect().is_empty()); }

The parameter is unused; the imported Sink receives the record and the returned ledger is empty. Public API/analyzer controls nevertheless retain returned_mutable_ledger_observer_unresolved. The actual borrow is real; field/receiver attachment to the original parameter and bounded returned-ledger admission are incorrect. The classification stays propagation_unknown, so this is not exposure credit. Explicit use ... as errors is refused, but direct and glob imports are falsely admitted. Reuse the existing import refusal/binding authority on the owner rather than creating a second identity authority.

The ae1→352 delta was inspected completely. The previous helper statement-macro counterexample is repaired; the scoped block-tail exception is consistent with Rust expression scoping. Independent Luna source review found no delta-specific tail-macro counterexample.

Latest public control run: 11 integration tests, 10 pass / 1 fail (the owner-import test is the sole failure). All original 43 compiled/runtime-checked matrix rows pass, including all prior signature/body/const/static/macro blockers. Three additional compiled/runtime owner-import rows yield direct=false refusal, glob=false refusal, alias=correct refusal; a fourth compiled/runtime row verifies nested block-tail expression macros in both owner and caller preserve the positive route. The observer/refusal matrix and ignored-result controls retain unknown/no-exposure boundaries.

The first instrument run was invalid because adding a global-fixture helper shifted the fixed diff line; no product finding is inferred from it. Corrected final fixture preserves field line positioning and every matrix/import/tail row compiles and executes before public analysis. Hosted qualification and source/package release acceptance remain separate. No merge or author-branch edits.

Copy link
Copy Markdown
Member Author

Acknowledged the direct/glob owner-import P1 at exact352dcab. Stopped the owned qualification driver before claiming its required checks. I am consolidating a shared parser-owned opaque-binding boundary for helper receiver and caller callee/local: any unresolved Use in either function and opaque statement/item expansions refuse identity; full-function ordinary/raw binding authority handles patterns and named items. Returned-local declaration/mutation/tail constraints remain. Will add compiled direct/glob/alias owner-import controls and a scope/authority table, preserving expression-tail formatting and the frozen positive path. Prior43 matrix is independently cleared at 352 as reported, but final-head review must restart.

EffortlessSteven commented Oct 11, 2026 •

Copy link
Copy Markdown
Member Author

Correction: clearance below is withdrawn. Current disposition at the same exact head 85313a942efa439c967060782f92afe4a629bda9 is REPAIR_REQUIRED. Reconciliation of Gemini's concrete prefix concern produced a valid, compiled/runtime/public-analyzer counterexample: a shared &mutLedger parameter and record(&mut_errors) are falsely attached to returned _errors. See executed reproduction. The prior 63-row results remain valid for those inputs but did not cover this prefix case. No exposure credit is shown; the bounded identity explanation is incorrect.


Independent bounded-source review clear at exact head 85313a942efa439c967060782f92afe4a629bda9 (PR head reverified before posting). No remaining source blocker found within the requested identity-only contract. Merge disposition remains REVIEW_INCOMPLETE until parent-coordinated hosted/integration qualification; this comment grants no merge or release acceptance.

Inspected the complete 352→853 delta, both production helpers and SPEC0159 changes, against previously reviewed full branch/repair history (merge-base bc8dca910af161006693a32a4e90fe0b2c3a7a0d). The owner receiver, caller callee, and returned local now consistently reuse the existing full-function named-binding authority, normalized for raw spelling. Owner and caller imports refuse unresolved identity wholesale; existing statement/item macro authority supplies the opaque-expansion refusal. The scoped block-tail expression exception remains sound for name visibility. No duplicated identity/witness authority was introduced.

Tests actually run at this head:

  • cargo test --locked -p ripr --test ledger_review_controls -- --nocapture: 12 pass / 0 fail.
  • Entire prior 43-row compiled/runtime/public-analyzer matrix passes, including const/static/macro and all16 signature-binding blockers.
  • Previous helper direct/glob/alias import controls: 3 pass.
  • Adjacent helper/caller namespace controls: 16 pass (grouped/raw/alias/unrelated imports, receiver raw/tuple/struct/const shadows, nested bindings, caller ledger names).
  • Nested expression-tail positive in both helper and caller: 1 pass.
  • Total 63 fixture rows compile and execute their actual ledger-length control before public analysis; all agree with expected admission/refusal.
  • cargo test --locked -p ripr --lib returned_ledger -- --nocapture: 10 pass.
  • git diff --check: pass. All Cargo targets were worktree-private.

The original positive route and nested expression-tail route retain the partial ledger marker. Exact/wrongindex/wrongfield/self-computed/message-only/discarded and ignored observer controls preserve unknown propagation and no exposure credit. The actual frozen consumer replay was not independently executed here; it remains parent/author qualification, separate from these positive-route fixtures.

Nonblocking limits: unrelated imports and out-of-scope same-name bindings conservatively refuse coverage. Index, Config field observation, branch activation, record-to-return survival and oracle discrimination remain unestablished as specified; witness remains Partial. Luna independently inspected the changed endpoint authorities and found no concrete remaining identity bypass (source-only, no builds). No author branch edits or merge.

Copy link
Copy Markdown
Member Author

Disposition of Gemini review5482606777: current853 does NOT yet resolve the high-priority canonicalization concern. Both owner parameter matching (canonical(type).starts_with("&mut")) and argument extraction (canonical(arg).strip_prefix("&mut")) are textual. A shared reference to an identifier starting mut can alias these checks. I stopped the owned qualification driver and am constructing a compiled shared-type/shared-argument lookalike control, then replacing these with AST RefType/RefExpr mut tokens before renewed exact-head review. The medium plain-pattern concern is a conservative false negative (mut errors/commented parameter patterns remain unsupported); expanding pattern support is outside this bounded repair. No final-ready claim despite prior source review clearance.

Copy link
Copy Markdown
Member Author

Coherent token-mutability repair is already published at f93579b; qualification restarted and remains pending. Exact owner RefType.mut_token and final-call argument RefExpr.mut_token/raw_token/PathExpr now decide mutability and local identity. The prior shared mutLedger/mut_errors compiled empty-ledger counterexample is preserved as a 26th runtime/public control. Focused12 cover independent type-prefix collisions, shared-argument collisions, raw-pointer refusal and commented true mutable borrow/type positives. Medium pattern support remains conservative; no new feature scope. Parent's full-feature semantic audit and renewed matrix review must reconcile on this final head; PR stays draft.

Disposable local current-base combination was prepared from main779b72ba178d22b94f7973255fe277e91a500c95 + candidatef935: synthetic validation commit a70f7d7b446f6c300042de0caafbe2895344f6fd, tree6037b7e2ef6162b5cb8b33706f9571a09dbf0604, detached /workspace/ledger-combination779. No branch rewrite or published integration; combo checks are queued serially after candidate qualification.

Copy link
Copy Markdown
Member Author

Bounded source audit found another owner-bound ambiguity at f935: ProbeShapeFact has byte offsets, but field probe selection ties identical field text on a changed line, keeps first source order, and build_probe stores line/column1 without that offset. returned_ledger's .find also selects first. A change only to the second/discarded-ledger detail can therefore attach to the first unchanged/returned-ledger push when both new fields share the same line/text. Stopped f935 qualification (build26 frozen/runtime replay and12 focused PASS; remaining required gates unqualified). I am reproducing this natively and adding a bounded unique-matching-field refusal plus positive/negative regression; no probe-range schema expansion. Parent semantic review should include this exact-field occurrence boundary.

EffortlessSteven commented Oct 11, 2026 •

Copy link
Copy Markdown
Member Author

Focused independent repair/reconciliation receipt, exact head f93579bb2ef21a04072865534e9362b2f7336788 (reviewed Git object; final remote check observed that the PR had advanced to 06123c18f6576c16c9a236d72a6cfa45d00e50e0). This receipt applies ONLY to f93579b, and does not qualify the new remote head. No remaining blocker found in this 853→f935 repair and retained-control scope. Overall merge disposition remains REVIEW_INCOMPLETE: fresh full-feature audit, required checks, current-main combination and frozen-consumer qualification belong to the parent and are not established here.

Inspected the complete two-file repair delta. Owner RefType mutable token and final-call RefExpr mutable/raw tokens now establish mutability; the bare local path comes from that exact parsed final call. Canonical argument/type equality is retained for consistency, not used as borrow/name authority. Existing shared full-function binding, import and opaque statement/item macro refusals remain intact; witness machinery is unchanged and Partial.

Tests actually run at this head:

  • Public API integration controls: 16pass/0fail, including full prior43 namespace matrix, helper/caller import/adjacent controls, all3 Gemini controls, and5 token-adjacency controls.
  • 71 fixture rows compile and execute their real ledger-length assertion before public analysis:43+3imports+16adjacent+1expression-tail+3Gemini+5token cases. The valid &mutLedger/&mut_errors false-identity P1 now refuses. Mutable-reference comments and mutable mut_errors local preserve the route.
  • Focused in-tree returned-ledger tests: 12pass/0fail.
  • git diff --check: pass. Review targets/worktree were private; author branch unchanged.

Substantive comments reconciled:

  • Gemini high-prefix finding4240924782 and independently confirmed P1: repaired and executed refusal, current exact-head reply.
  • Gemini pattern matching4240924785: nonblocking conservative refusal, unchanged and replayed (mut errors refuses; bare-name parameter comment admits).
  • Prior caller const/static/macro/signature, helper statement-macro, helper direct/glob imports: all current controls refuse.
  • Expression-tail false refusal from intermediate40e: positive replay admits.
  • CodeRabbit reports review-limit exhaustion, not substantive source acceptance.
  • Historical Library download failures do not prevent this independent replay from retained local controls; they are not resolved or relabeled as author replay.

Nonblocking limits: raw ledger-local identifier and whole parenthesized mutable borrow refuse, alongside unrelated imports/out-of-scope same-name bindings. Raw-local refusal comes from the existing plain-ASCII is_identifier authority; the first additional-case run exposed my overbroad admission expectation (15pass/1fail), then the final oracle explicitly records conservative refusal. Critical prefix-negative and all prior namespace expectations were unchanged.

All controlled field findings remain propagation_unknown; no exposure credit. Exact observer/index/Config field propagation, activation, pushed-record survival and discrimination remain unestablished. Actual frozen-consumer execution was not rerun here. No merge, implementation edits or broad-audit duplication.

@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 bounded semantic audit of exact head f93579b: REPAIR_REQUIRED at that head. Current published head has since advanced to 06123c1; this review does not apply a verdict to that newer head.

[P1] False classifier-level helper identity from enclosing declaration scope. returned_ledger.rs:98-139 compares SymbolId prefixes and caller-body bindings, but does not establish that the bare call resolves to the indexed declaration. Valid compiled/runtime reproduction:

#![allow(dead_code, non_upper_case_globals)]
struct PolicyError { detail: String }
const record: fn(&mut Vec<PolicyError>) = |_| {};
const _: () = {
    fn record(errors: &mut Vec<PolicyError>) {
        errors.push(PolicyError { detail: format!("diagnostic"), });
    }
};
fn collect() -> Vec<PolicyError> {
    let mut errors = Vec::new();
    record(&mut errors);
    errors
}
fn main() { assert!(collect().is_empty()); }

Rust 1.95 compilation and runtime assertion pass. The real parser/index/chain resolver/classify_probe nevertheless emits record mutably borrows errors ... returns that same local ledger; class stays propagation_unknown. The called value is the no-op constant; the indexed function is inaccessible. The retained adapter witness labels parameter-to-local effect_target established. Reuse parser-owned declaration/call-scope guards and refuse unsupported identity; FunctionItemFact::Free alone is insufficient for the const-block case. Confidence: high.

Distinct associated-function control: an impl Collector::record plus impl Collector::collect containing the same bare call also admits returned_ledger at adapter level. Its real classifier relation guards prevent the returned-ledger marker. This is adapter-only corroboration, not an additional classifier-level false-identity result.

[P1] Same-line record occurrence ambiguity. returned_ledger.rs:45-60 first-matches equal normalized field text by line. With errors.push(PolicyError { detail: format!("diagnostic") }); discarded.push(PolicyError { detail: format!("diagnostic") }); on one line, a second-field probe gets the first receiver's returned-ledger route. Both source and a mutant changing only the discarded detail compile/run the same returned-vector assertion; classifier emits the identity marker and stays propagation_unknown. Require unique matching occurrence. The author's independent occurrence finding and repair are acknowledged; 06123c1 introduces a matching-field uniqueness refusal, pending my replay.

Observed validation on f935: pristine focused suite 12pass; three compiled/run fixtures and one discarded-field mutant; independent parser/index/resolver/classifier harness exercises three cases; retained witness digests match and complete-direct admission refuses. All 12 changed files and the full source-to-claim path inspected. The known token-mutability repair is source-confirmed and focused regressions pass. No implementation/author-branch edits, hosted qualification, exhaustive-soundness or merge-clearance claim. Runnable bundle follows through Library.

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

Exact-head follow-up semantic replay at 06123c1, reverified before posting: REPAIR_REQUIRED for the enclosing-declaration-scope defect described in review #7355 (review).

P1 scope finding remains classifier-level: the compiled const_scope fixture returns an empty ledger because the bare record call invokes a module-level no-op function-pointer constant. The parser/index/resolver/classify_probe still emits the returned_mutable_ledger_observer_unresolved marker and record mutably borrows errors ... returns that same local ledger, class propagation_unknown. Relevant unchanged identity guards are now returned_ledger.rs:104-145. The separately retained associated-function case remains adapter-only; classifier relation guards do not admit its returned-ledger diagnostic.

The same-line field occurrence defect is repaired for the independently compiled control: matching_fields uniqueness refuses returned_ledger (None); classifier returns the existing helper_result_not_forwarded limitation. Source and discarded-field mutant still compile/run the unchanged returned-vector assertion. That finding is superseded by this repair for the exercised case.

Observed on this head: four Rust fixtures compiled and executed; private parser/index/resolver/classifier/witness harness passed three expected admission/refusal cases; all13 repository returned_ledger focused tests passed from the freshly built executable. No hosted, integration, package/release, exhaustive-soundness or merge-clearance claim. Review worktree removed; no implementation or author branch edits.

Runnable bundle saved and confirmed in Library: filename ripr-pr7355-independent-audit-f935.zip; library_file_id libfile_4b95221f127c8191b654ef79af74383b; current version1; file_id file_00000000771881f5a0ab88b9a50d9baa. Despite its baseline filename, it preserves separate f935-evidence and06123-evidence directories, portable disposable-worktree replay.sh, four Rust fixtures, exact original and portable harnesses, JSON findings/witnesses, logs and SHA256 manifest. The baseline green harness intentionally reproduces defects; it is not an acceptance test. README supplies exact-head replay commands and evidence-level distinctions.

coderabbitai[bot]

This comment was marked as resolved.

Copy link
Copy Markdown
Member Author

Currentness correction to #7355 (review): the pre-post read observed publication of c21ca2c. The review is commit-anchored historical evidence for9b273a3fea18dba864ee60492a7464758d15829f, not the current-head disposition; its wording reverified before posting must not be read as latest-head clearance/blocking judgment. The c21 delta adds attributed ancestor-module refusal and spec/tests, matching the compiled neighboring defect. I am replaying the exact-current-head controls before reconciling that finding.

Copy link
Copy Markdown
Member Author

Both independent reviewers: please retarget final repair review to exact c21ca2c. Compare06123c18..c21 (two files only):9b273 binds helper/caller definitions to the same actual SourceFile or Module ItemList, requires unique direct named declarations and refuses associated/const/static/block-local, attributed/async or different-scope functions. The c21 delta adds conservative refusal of attrs on every enclosing Module ancestor (proc/cfg_attr may rewrite declarations); direct and nested attributed-module source controls added. Source-file/inline-module positive source controls retained. Mutability-token, unique same-line field and all prior endpoint/import/statement-macro guards remain.14focused tests include these bounds; finalc21 focused gate rebuilding. Finalc21 native build + frozen original/stronger20-ID/all-stage cold/warm replay +30compiled runtime/public controls PASS already. Const/static/conditional scope fixtures reproduce false identity on rejected061 (compiled GREEN) and refuse the marker onc21. Earlier351/853/f935/061 rejected witnesses/runtime evidence retained; parent retains full43/71-row review matrix, author full artifact download remains blocked via supported Library helper. Final proof bundle will include exact-head source patch/mbox/Git bundle,30fixture sources/logs/findings, frozen per-ID tables and final gate logs; no older-head clearance transferred. Current main snapshote109 combination runs serially after local gates. Keep REVIEW_INCOMPLETE pending both final reviews and exact hosted checks.

@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 exact-c21ca2c8af11a998ed01a0a4adb90002efc05604 delta review and executable replay: REPAIR_REQUIRED for inner attributes. GitHub read immediately before this submission reports c21 as published head. All claims below are bound to that commit, not any later publication.

Reconciliation: c21 repairs the9b273 outer-module-attribute counterexample. Both compiled outer-module constant-entry and macro-replacement controls now refuse returned_ledger and omit the identity marker. The original inaccessible const-block, associated-function adapter admission and duplicate-field controls also continue to refuse; ordinary file/module positives remain admitted. Prior comments' findings are superseded only for these exercised cases.

[P1] HasAttrs::attrs() omits inner attributes. returned_ledger.rs:309-318 tests function.attrs() and module.attrs(), but inner function attributes live in its body statement list and inner module attributes in its ItemList. The pinned ra_ap_syntax0.0.349 provides ast::attrs_including_inner() explicitly for this boundary (ast/traits.rs:72-115). The new conditional-declaration refusal therefore still admits excluded function identities.

Compiled/runtime/classifier minimal inner-module reproduction:

#![allow(dead_code, non_upper_case_globals)]
struct PolicyError { detail: String }
mod chosen {
    #![cfg(any())]
    use super::PolicyError;
    fn record(errors: &mut Vec<PolicyError>) {
        errors.push(PolicyError { detail: format!("diagnostic"), });
    }
    pub(super) fn collect() -> Vec<PolicyError> {
        let mut errors = Vec::new();
        record(&mut errors);
        errors
    }
}
const collect: fn() -> Vec<PolicyError> = Vec::new;
fn main() { assert_eq!(collect().len(), 0); }

Append #[test] fn check_collect() { assert_eq!(collect().len(), 0); } for analysis. Rust1.95 compilation and runtime pass. The real parser/index/resolver/classify_probe admits returned_ledger Some, relates check_collect as helper_owner_call, and emits record mutably borrows errors from src/lib.rs::chosen::collect ... returns that same local ledger / returned_mutable_ledger_observer_unresolved, class propagation_unknown. Actual call invokes the global no-op constant; chosen functions are not compiled.

A second compiled inner-function control puts #![cfg(any())] inside chosen::record, with chosen's module-level use super::{PolicyError, record} resolving the executed call to a global no-op record constant. Both the global test entry and actual chosen::collect return empty vectors. It also gives classifier-level false returned-ledger identity, not merely adapter-only admission. Full source is inner_function_attr.rs in the updated bundle.

Repair direction: reuse the existing inner-inclusive parser attribute authority for both function and ancestor-module checks; consider source-file inner attributes at the same declared-unconditional boundary. No cfg evaluation or broad replacement analyzer requested. Confidence: high.

Observed current-head proof: 13 baseline/neighbor source fixtures compiled/executed; one independent analyzer test exercised12 cases with expected outcomes; two additional inner-attribute sources compiled/executed and their expected refusal checks both FAIL (exit101) with classifier JSON saved; 14 repository focused tests pass. These are behavioral reds after successful fixture setup. No hosted, combined-main, exhaustive-soundness, package/release or merge-clearance claim. Review-created worktrees removed; original root unchanged. Library bundle update with separate9b273/c21 receipts follows.

Copy link
Copy Markdown
Member Author

Currentness update: published head is now d37b044. I inspected c21→d37: the source-binding guard moves later, the diagnostic now distinguishes parameter and local names, and spec prose changes. The HasAttrs::attrs() inner-attribute refusal defect reported in commit-anchored review #7355 (review) is unchanged in this delta; exact-d37 runtime/analyzer replay is running before a d37 disposition.

Confirmed Library bundle currently contains separate f935/061/9b273/c21 receipts and runnable inner-module/function classifier counterexamples: ripr-pr7355-independent-audit-f935.zip; library_file_id libfile_4b95221f127c8191b654ef79af74383b; version2; file_id file_0000000098fc81f586ba335cbb085b76. Bundle filename preserves baseline history; README identifies each exact head. No current-head clearance is implied by prior focused passes or superseded CI.

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

Exact-d37b044c3a7d67c3f9261669a06664a4845ee2c0 follow-up, last git head read immediately before this submission reports d37: REPAIR_REQUIRED. Claims apply only to this commit.

The c21→d37 delta moves synchronous source binding after the cheap identity checks, clarifies diagnostic parameter/local names and adjusts spec prose. It does not repair the inner-attribute defect documented with complete Rust repro in #7355 (review).

Both exact-d37 inner-module (mod chosen { #![cfg(any())] ... }) and inner-function (fn record(...) { #![cfg(any())] ... }) controls compile/run empty-ledger assertions, then FAIL the intended returned-ledger refusal assertion (exit101). Real parser/index/resolver/classify_probe emits the new record parameter errors mutably borrows local errors from src/lib.rs::chosen::collect ... diagnostic and returned_mutable_ledger_observer_unresolved, class propagation_unknown. Both are classifier-level false identity; neither is the earlier associated-function adapter-only case. HasAttrs::attrs() still omits inner attributes beneath function bodies/module ItemLists; use the pinned parser's ast::attrs_including_inner for the declared unconditional boundary.

Reconciliation: original const-block, associated-function adapter, duplicate-field and outer attributed-module defects remain refused on d37 in the independently replayed controls. Ordinary source-file/module positives remain admitted. A compiled positive with parameter errors and caller local ledger confirms the new diagnostic names both endpoints accurately and its raw witness retains corresponding distinct identities.

Observed current-head validation:13 baseline/neighbor fixtures compiled/run; independent analyzer test exercises12 expected cases; two inner-attribute sources compiled/run and two intended analyzer refusals FAIL; an additional distinct-name positive compiled/run and analyzer replay passes; all14 repository focused tests pass. Prior cancelled/superseded CI is not qualification. No whole-feature clearance, hosted, combined-main, package/release, exhaustive-soundness or merge-readiness claim. Review worktree removed; original root unchanged. Separate d37 evidence is being added to the existing Library bundle.

@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 exact-db4f7e21ed276ba7d6382e1b9f46b9bb1283ba33 repair review and compiled/analyzer replay. Git and connected GitHub reads bind this head; final pre-submission git read still reports db4. Bounded disposition: REVIEW_INCOMPLETE overall; no remaining source blocker found in the requested attribute repair and replayed returned-ledger proof boundaries. This is not merge/hosted qualification or a claim of exhaustive soundness.

Repair delta inspected: HasAttrs::attrs() is replaced with the pinned parser's attrs_including_inner() for both functions and enclosing modules. A source-file inner-attribute guard refuses non-inert names while allowing lint/doc names. SPEC0159 and focused source-scope controls reflect that boundary; no cfg evaluator or broad analyzer was introduced.

Reconciliation of the substantive P1 reviews: both compiled inner-module and inner-function counterexamples now return returned_ledger None; real parser/index/resolver/classify_probe omits returned_mutable_ledger_observer_unresolved and falls back to helper_result_not_forwarded, class propagation_unknown. Thus reviews5482824610(c21) and5482841305(d37) remain historical failure receipts; the reported borrowed-identity defect is repaired for both independently executed cases on db4. Original inaccessible const-block, associated-function adapter, duplicate-field and outer-module-attribute controls also continue to refuse. The earlier associated-function case remains distinct from classifier-level defects.

Neighbor/positive challenges: plain source-file and same-module routes remain admitted; a compiled positive with parameter errors/local ledger preserves accurate diagnostic and raw witness identities; file-level doc/lint positive remains admitted; a real compiled two-file driver with a source file disabled by inner cfg verifies the new file-attribute refusal. Unsupported declared-function/module annotations remain conservative coverage refusals.

Observed validation:15 standalone baseline/neighbor fixtures compiled and executed, one independent analyzer test exercises14 cases with expected admissions/refusals; additional compiled file-doc positive and disabled-file driver have successful analyzer replays; distinct-name analyzer replay passes; all14 repository returned_ledger focused tests pass. Assertions test adapter admission and absence of the identity marker in refused classifier cases, not merely unit green status. Prior-head reds and corrected setup failure are preserved separately.

Residual limits: push semantics, element survival/order, branches/activation, observer/index/Config field transfer and discrimination remain unestablished. The path stays partial with candidate field/receiver edges; complete-direct admission still refuses. Renewed namespace/token review, required hosted checks and integration evidence are separate and pending parent reconciliation. No author/implementation edits; disposable review tree removed and original root unchanged. Library bundle is being updated with separate exact-db4 receipts.

Copy link
Copy Markdown
Member Author

Renewed independent namespace/token review at exact head db4f7e21ed276ba7d6382e1b9f46b9bb1283ba33. Final remote read reports bc8f931; this receipt applies ONLY to db4 and does not qualify that newer head. No remaining source blocker found in the requested namespace/token and full f935→db4 repair-delta scope. Overall disposition remains REVIEW_INCOMPLETE for merge qualification, which belongs to parent-coordinated hosted/integration/frozen-consumer acceptance.

Inspected the full three-file delta since f935: unique matching source-field occurrence, shared direct lexical declaration scope and unique direct names, outer/inner function/module/file attribute refusal, final-position indexed-source validation, corrected endpoint summary, and SPEC0159. These reuse pinned parser authorities and preserve existing Partial witness/Unknown gates. No implementation or author-branch edits.

Tests actually run on db4 with worktree-private targets:

  • Public API integration controls: 17pass/0fail.
  • 72 fixture rows compile and execute runtime ledger-length assertions before public analysis: prior43 matrix +3helper imports +16adjacent namespace cases +1expression-tail positive +3Gemini +5token-adjacency cases +1distinct-endpoint summary.
  • All prior const/static/macro/signature/import blockers and the valid shared &mutLedger/&mut_errors prefix counterexample refuse. Positive token/comment/mut-name routes retain the partial ledger explanation.
  • Distinct-name positive correctly renders owner parameter errors and returned caller local ledger separately.
  • In-tree returned-ledger suite: 14pass/0fail, including lexical source scope, unique occurrence, attribute, mutability, deferred-source and owner/field identity controls.
  • git diff --check: pass.

Substantive review comments reconciled:

  • Gemini prefix finding: repaired by parsed RefType/RefExpr tokens, independent valid compiled refusal replay remains green.
  • Gemini pattern matching: unchanged nonblocking conservative refusal for mut errors; bare-name comment remains admitted.
  • Whole-feature reviewer P1 sequence (const/block/associated scope, identical same-line field, outer and inner cfg): source repairs inspected here; their exact-db4 replay independently reports14 analyzer controls and neighboring positives passing. Those standalone/classifier reproductions are attributed to that reviewer, not counted as my public controls.
  • CodeRabbit endpoint summary, cheap-check reorder and spec wording: source-confirmed repairs; endpoint behavior independently replayed. No measured performance claim.

Residual limits: whole mut parameter patterns, raw ledger-local names, whole-parenthesized borrows, unrelated imports/out-of-scope same-name bindings and attributed declaration scopes conservatively refuse. Push semantics, element survival/order, branches/activation, exact index/Config observer transfer and discrimination remain unestablished. All controlled field findings stay propagation_unknown; no exposure credit or unrelated finding improvement is inferred. Actual frozen-consumer, combined-main, hosted and artifact/release qualification were not executed in this pass. No merge.

Copy link
Copy Markdown
Member Author

Delta-only renewal of the independent namespace/token receipt at exact head bc8f931b6a9be42693c5ac0480af3b39e376d9eb. Remote PR head reverified as bc8. Prior db4 namespace/token review remains valid on bc8; no new source blocker found. Overall merge qualification remains separate.

Exact entire db4→bc8 delta verified: one test-fixture line changes #![allow(dead_code)] to #![warn(dead_code)] in returned_ledger_requires_shared_lexical_module_scope. Automated exact replacement/byte comparison confirms the production adapter is identical; Git confirms no other changed files. The unchanged inner-attribute authority explicitly accepts both allow and warn as inert file attributes. This does not weaken the lexical-scope refusal or alter production/parser/witness/diagnostic behavior.

Checks actually run for renewal: exact one-line delta and production byte comparison, inert-attribute whitelist/source check, prior db4 lexical-scope pass-receipt verification, git diff --check, and Rust1.95 compilation/execution of a small #![warn(dead_code)] source-file/function-scope control. No Cargo suite was rerun on bc8.

Preserved evidence identities: db4 receipt remains the executed 17public tests/72 compiled-runtime-analyzer rows +14 focused unit tests at db4f7e21ed276ba7d6382e1b9f46b9bb1283ba33; those are not relabeled as bc8 executions. Their namespace/token applicability carries to bc8 through this verified test-only delta. Substantive comment reconciliation and conservative coverage limits remain as recorded there.

No implementation edits, merge, hosted/integration/frozen-consumer/package qualification, or claim of exhaustive soundness.

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

Exact-head whole-feature source review reconciliation at bc8f931: no remaining blocking source finding identified in the bounded returned-ledger addition. Overall disposition remains REVIEW_INCOMPLETE for parent-owned hosted/integration qualification; this is source review, not merge eligibility. Connected GitHub and git readback verify bc8 as published head.

I inspected the complete db4→bc8 diff: exactly one cfg(test) fixture changes #![allow(dead_code)] to #![warn(dead_code)] in returned_ledger_requires_shared_lexical_module_scope. No production, spec, cache, witness, classifier, ownership or attribute-refusal behavior changes. The production prefix of returned_ledger.rs is byte-identical (SHA256 368a96c2117c97a6181d2e678ecfd0fb2069c19964fea366fdff066f8a6fc5c1); asserting replacement of this one test string reconstructs the exact prior file. Full repository diff shows no other changes.

Affected positive checked proportionately: a #![warn(dead_code)] ordinary-file fixture compiles/runs under Rust1.95 and remains admitted by the previously built db4 parser/index/resolver/classifier executable. This is explicitly comparison evidence using unchanged production code, not a fresh bc8 build, actual execution of the modified bc8 unit, or a hosted pass. It validates the altered lint spelling against the same whitelist semantics without repeating an unrelated full build.

The prior db4 whole-feature review #7355 (review) and its executed repair controls remain historical receipts for db4. Their production-source review conclusions are explicitly reconciled to byte-identical bc8 code here. Original token-mutability, duplicate-field, const-block scope, associated adapter and outer/inner attribute findings are repaired for the independently exercised controls; no prior runtime result is relabeled as exact-bc8 qualification.

Namespace/token reviewer is renewing separately on bc8; parent owns combining that evidence with hosted/integration results. Cancelled db4 jobs are historical supersession, not successful current checks. Push method semantics, element survival/order, branch activation, Config/index/observer transfer and discrimination remain unestablished; partial/candidate witness and complete-direct refusal remain. No exhaustive soundness, release/package readiness or merge clearance.

No author/implementation edits or shared-checkout HEAD movement. Currentness/comparison receipts will be appended to the existing Library bundle while preserving all prior reds and exact-head replay records.

Copy link
Copy Markdown
Member Author

Frozen escaping-ledger proof

Candidate bc8f931b6a9be42693c5ac0480af3b39e376d9eb; baseline bc8dca910af161006693a32a4e90fe0b2c3a7a0d.

The claim is partial ledger identity only. No class or stage-state promotion occurs; exact Config field/index observation remains unknown.

Both frozen cases retain all 20 IDs and all stage states. Cold and warm findings match.

Runtime frozen controls: pristine original/stronger GREEN; diagnostic-removal original GREEN and stronger RED at the independent detail assertion.

Reduced controls: all 33 pristine GREEN; exact-detail mutant RED; 32 negatives mutant GREEN. Both analyzer heads grant no exposure credit in these controls.

original

ID Class before/after R/I/P/O/D before R/I/P/O/D after
probe:src_config.rs:predicate:2b350a96 infection_unknown / infection_unknown yes/unknown/unknown/yes/yes yes/unknown/unknown/yes/yes
probe:src_config.rs:predicate:20234794 infection_unknown / infection_unknown yes/unknown/unknown/yes/yes yes/unknown/unknown/yes/yes
probe:src_config.rs:return_value:836370e0 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:call_deletion:83d73794 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:side_effect:6423f634 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:field_construction:542cc512 propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:field_construction:c403dbee propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:call_deletion:3cec112e propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:side_effect:79b985b4 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:return_value:6c105769 propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:predicate:652446e8 infection_unknown / infection_unknown yes/unknown/unknown/yes/yes yes/unknown/unknown/yes/yes
probe:src_config.rs:predicate:f546b9c2 infection_unknown / infection_unknown yes/unknown/unknown/yes/yes yes/unknown/unknown/yes/yes
probe:src_config.rs:return_value:81c43a1f propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:call_deletion:8ee71303 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:side_effect:ccb9414f propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:field_construction:88974a6d propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:field_construction:1b61d2c5 propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:call_deletion:cfc4d253 propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:side_effect:641392fe propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:static_unknown:2d6d286f static_unknown / static_unknown yes/unknown/unknown/no/no yes/unknown/unknown/no/no

stronger

ID Class before/after R/I/P/O/D before R/I/P/O/D after
probe:src_config.rs:predicate:2b350a96 infection_unknown / infection_unknown yes/unknown/unknown/yes/yes yes/unknown/unknown/yes/yes
probe:src_config.rs:predicate:20234794 infection_unknown / infection_unknown yes/unknown/unknown/yes/yes yes/unknown/unknown/yes/yes
probe:src_config.rs:return_value:836370e0 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:call_deletion:83d73794 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:side_effect:6423f634 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:field_construction:542cc512 propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:field_construction:c403dbee propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:call_deletion:3cec112e propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:side_effect:79b985b4 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:return_value:6c105769 propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:predicate:652446e8 infection_unknown / infection_unknown yes/unknown/unknown/yes/yes yes/unknown/unknown/yes/yes
probe:src_config.rs:predicate:f546b9c2 infection_unknown / infection_unknown yes/unknown/unknown/yes/yes yes/unknown/unknown/yes/yes
probe:src_config.rs:return_value:81c43a1f propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:call_deletion:8ee71303 propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:side_effect:ccb9414f propagation_unknown / propagation_unknown yes/yes/unknown/yes/yes yes/yes/unknown/yes/yes
probe:src_config.rs:field_construction:88974a6d propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:field_construction:1b61d2c5 propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:call_deletion:cfc4d253 propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:side_effect:641392fe propagation_unknown / propagation_unknown yes/yes/unknown/yes/weak yes/yes/unknown/yes/weak
probe:src_config.rs:static_unknown:2d6d286f static_unknown / static_unknown yes/unknown/unknown/no/no yes/unknown/unknown/no/no

Full command/hash/runtime/empty-cache receipts are in the final proof package. Current-main combination base341/commit77f75/treece176 has all seven compatibility gates PASS; latest2df advance is inspection-only. Draft retained; parent owns required hosted context/readiness/integration.

Copy link
Copy Markdown
Member Author

Bounded integration refresh COMPLETE on frozen base 9732975, unchanged candidate bc8f931, unpublished local commit b3a815f2b2e5a0c476c263b8181a63f6b34e0eab, tree 8c0f684b246d8836701e4487b21f75a858705f2f. All candidate-changed crate blobs remain identical in the combination.

All nine local checks PASS: build; strict check-fast (stable 12-path selector, 13 gates and fixture-contracts skip, causal-delta no-run plus workspace all-targets Clippy); readiness workflow contract (19 tests); repo-policy (57 tests across nonempty suites); MCP stdio (15 tests); MCP unit (152 selected tests); goldens; precommit (policy table plus impact-selected ripr/xtask all-targets Clippy and diff checks); named-branch doctor. No ignored tests in the counted suites. The exact commands/logs, scope reports, input blobs and binary SHA are retained.

#7364 removes Ready only from advisory UB/Droid events; UB publication retains opened/synchronize/reopened. Required routed-rust Ready admission remains intact. These are local combination/policy receipts, not hosted admission or required-check results. Existing exact-bc8 ledger/frozen/namespace receipts remain on their original identities; no claim that the full original or reviewer matrix was rerun against this combination.

Final remote observation: main 3026423 adds #7358 Rust-only CI immutable event-base/head routing, #7348 executable-file policy frontdoor and #7361 VSCode/docs UX. Inspected delta changes no Rust ledger runtime or routed-rust Ready admission. Latest merge-tree is clean (90357bef8e4886cd8b3632266f0ef56c7cb5e8d3) but untested here; the new policy/routing paths are outside this frozen973 pass. Per instruction, no further complete validation cycle; parent reassesses that delta proportionately before integration/readiness.

Integration973 evidence supplement, version 0, 86680 bytes, SHA256 9ca5929eb111e06845294a64fa7a39d6338b0e417a5dd187b08de32e84c87070. Original source/frozen evidence remains here. No local frozen973 blocker remains. No source edits, push/rebase/merge, Ready transition or additional dispatch. Parent owns current independent review, Ready and hosted qualification. Private worktree/target remain retained for parent handoff.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 11, 2026 12:29

@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 2 potential issues.

Devin Review

@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

  • Surface mismatch: this lane is JS worker/transfer/async focused but the PR is Rust analyzer identity evidence; no SharedArrayBuffer, postMessage, structuredClone, Worker, WorkerGlobalScope, or Atomics surfaces are touched. No right-side line warrants a JS-worker finding; parent-hosted/integration qualification remains pending.

Verification questions

  • Confirm schema bump 1.61->1.62 + 0.67->0.68 invalidates warm seam caches; no shared-memory detach concern but on-disk warm caches will be discarded.
  • Confirm the pre-fix vs post-fix red/green discriminator for the headline claim (helper_result_not_forwarded → returned_mutable_ledger_observer_unresolved) is not encoded as a snapshot or golden of the diagnostic text; reliance is on the new return_ledger_limit branch + propagation_witness.unit assertions only.
  • Confirm docs/spec/changelog changes lack a docs-build or markdown link-check gate in this packet; reviewers cannot confirm the new SPEC0159 paragraph and the changelog Fixed entry are rendered together.

Refuted

  • Box::from(slice) allocation failure does not return None; recoverable fallback claims are dropped.
  • A SharedArrayBuffer or structuredClone(transfer) boundary in the analyzer pipeline could lose the borrowed-and-returned ledger identity across worker handoff.; refuted because: The analyzer pipeline is single-threaded synchronous Rust using ra_ap_syntax0.0.349; no JS, WASM, Worker, SharedArrayBuffer, Atomics, postMessage, or structuredClone surface is introduced or modified in this PR. The returned-ledger evidence never crosses a JS worker boundary; identity lives in a Partial PropagationWitnessV1 value carried in-process.

Parked follow-ups

  • returned_ledger re-parses owner.body and the synthetic caller body via parse_clean_source_file on every probe that reaches this path; no memoization keyed on FunctionSummary id+start_line, and classify/evidence.rs notes an existing hot-path memoization concern. Bounded scope: only FieldConstruction probes with helper_chain + helper_only_reach reach it, and most refuse on cheaper checks, but for repos with many such probes this remains a per-probe parse. Acceptable for this PR but worth a parked note for a follow-up if repeated parse cost shows up in profile.

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.

Parent reconciliation of two independent source reviews at exact head 47dd5fb. The later first-hop/outer-ledger concern was independently reproduced on bc8, superseding the earlier source clearance, and is repaired at this head. The new consumer filter restricts returned-ledger limitation selection to direct observation of the proved first caller. Dropped and forwarding higher wrappers retain helper_result_not_forwarded; direct observation retains the bounded Partial explanation. All cases remain propagation_unknown, with no new exposure or upper-hop identity claim.

Independent whole-feature checks passed: four compiled pristine/removal controls with expected outcomes, four real parser/classifier cases, 14 focused identity tests, two internal witness-consumer tests and two end-to-end regressions. Independent namespace/token renewal inspected the complete delta and confirmed namespace/token and witness authority bytes are unchanged; 17 adapted direct-observer tests covering 72 compiled/runtime/analyzer fixtures and two end-to-end regressions passed. Its old discarded-outer expectation initially failed under the repaired contract and was updated explicitly; older receipts retain their original heads.

The separate retained-witness concern is nonblocking for the declared internal-only scope. Valid witness edges are not exposed through Finding JSON; public consumer projection and exact Config/index/observer discrimination remain limitations. No private evidence bundle is shared or linked here.

No remaining blocking source finding was identified in these bounded review scopes. This is not exhaustive soundness or merge qualification. Current-head integration, required hosted checks, subsequent substantive comments and repository protections remain separate prerequisites; bc8 hosted checks cannot qualify this head.

@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

  • CodeRabbit noted summary reordering returns could read clearer, but this is naming polish, not a correctness defect.
  • Surface mismatch: lane is JS worker/transfer/async focused but the PR is Rust analyzer identity evidence; no SharedArrayBuffer, postMessage, structuredClone, Worker, WorkerGlobalScope, or Atomics surfaces are touched.
  • Indexed-observer boundary is explicitly named returned_mutable_ledger_observer_unresolved and remains Partial. A future re-purposing of this limitation token as an exposure credit (e.g., promoted to a stage state, used to drive a discrimination reduction) would convert this from an advisory to an exploit enabler; current diff grants no such promotion, but parent semantic audit should reaffirm token usage stays Unknown-only.
  • Lane responsibility mismatch: this lane targets JS worker/transfer/async surfaces, but PR #7355 is a Rust analyzer identity feature. No JS-backed memory crossing surfaces are introduced; cache schema bump 1.61->1.62 / 0.67->0.68 invalidates warm on-disk seam caches only and has no SharedArrayBuffer detach or transferable consequence. Hoisted seeded review conclusion stands.

Verification questions

  • Confirm spec prose (SPEC0159 paragraph at lines 121-138) added a four-line dense normative section plus endpoint table but no docs-build or link-check gate exists in this packet; reviewers cannot confirm the SPEC0159 paragraph and changelog Fixed entry render together.
  • Confirm rETURNED_LEDGER_DIFF is the only changed-line input; both family_finding calls assert propagation_unknown, so an old-vs-new (red/green) discriminator is absent: a regression that reverts the witness could still pass.

Refuted

  • Schema bump 1.61->1.62 and 0.67->0.68 could leave warm seam caches referencing detached ArrayBuffers/TypedArrays across a JS worker hop.; refuted because: No JS worker, transfer, or buffer surface exists in this PR; the schema bump invalidates on-disk warm caches by version mismatch with no shared-memory detach path. The cache is a Rust-side seam cache keyed by workspace_root_hash/files_content_hash.
  • The new returned_ledger helper retains a pushed element across a worker or async detach boundary and could leak mutable state.; refuted because: The helper is Rust local synchronous analysis: owner.body, caller.body, probe and chain are all in-process FunctionSummary/HelperChain facts read by the analyzer. No shared-memory, transferable or detached handle is crossed; the partial witness and unknown-limitation markers stay internal to PropagationWitnessV1.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Cassandra waiver: cargo-test sensor is scheduled-late with status receipt-absent; this lane called only the canned source/test files via the seeded packet and the spec, not by running tests.

Parked follow-ups

  • Devin verification question on warm-cache invalidation (1.61->1.62) is a residual risk for parent-hosted qualification, not a JS-buffer detach concern.
  • Park macro_call_is_statement scope beyond DirectReturn/format! tails: deferred owner pushes (#![cfg(any())] mod enclosing, #[cfg_attr(rewrite)] module, closure bodies, async closures) are still refused via function.async_token / ClosureExpr::can_cast / attrs_including_inner. Outer cfg/expansion evaluation is out of park.

Copy link
Copy Markdown
Member Author

Repair handoff at 47dd5fb: all nine affected local checks pass (build; public wrapper21; first-hop identity14; retained witness1; native route controls/frozen replay; strict check-fast; goldens; precommit; dogfood). Regression is RED before repair. Four compiled native controls are pristine GREEN; push removal is RED for direct/forwarded ledger observation and GREEN for dropped outer. Every classifier case stays propagation_unknown. Both frozen original/stronger cases preserve all20 IDs/classes/stage states/propagation summaries with fresh-empty-cache/warm equality. Internal first-hop witness is unchanged; no higher transfer or exposure credit.

Bounded integration on frozen main9732975e0e380eb10980018c4738bbf828c3f9db plus repair passes workspace all-targets compilation and public wrapper21: unpublished local commitbe2e11a5e07c33988d391c070e742b80693b78e8, tree72d8c2949990798752f2f148959e9e0cf2e0926c. All candidate-changed crate blobs match. Prior973 policy/MCP receipts keep their earlier tree identity; no latest-main qualification is claimed. Parent reports whole-feature review confirms the repair; namespace applicability and fresh required validation remain parent-owned. Source is stable, clean and pushed. No source-repo sync, dispatch, PR-state action, release or merge.

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