Repository navigation
fix(analysis): retain bounded returned-ledger identity evidence - #7355
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe 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. ChangesReturned Ledger Transfer
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
Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk is established. The returned-ledger evidence remains partial, and higher wrappers retain their forwarding limitation. Security Architecture Review
Pre-merge checks |
|
There was a problem hiding this comment.
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.
|
Independent review: REPAIR_REQUIRED, bound to exact head P1 — helper-side statement macro can rebind the ledger receiver without refusal. Location: 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 ( 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 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 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 Reviewed the complete original branch diff against merge-base |
|
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. |
|
Full finite matrix artifact is currently unreadable in this executor: prepare_materialize succeeded for libfile_d093dd8bc9b88191a35a6db4dbe67858 (6818-byte ZIP), but the skill's unchanged |
|
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 |
|
Independent exact-head review: REPAIR_REQUIRED at P1 — helper-local imports can shadow the ledger receiver without refusal. Location: 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 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. |
|
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. |
|
Correction: clearance below is withdrawn. Current disposition at the same exact head Independent bounded-source review clear at exact head Inspected the complete 352→853 delta, both production helpers and SPEC0159 changes, against previously reviewed full branch/repair history (merge-base Tests actually run at this head:
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. |
|
Disposition of Gemini review5482606777: current853 does NOT yet resolve the high-priority canonicalization concern. Both owner parameter matching ( |
|
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. |
|
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 |
|
Focused independent repair/reconciliation receipt, exact head 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:
Substantive comments reconciled:
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 All controlled field findings remain |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
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 |
|
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
left a comment
There was a problem hiding this comment.
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.
|
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
Renewed independent namespace/token review at exact head 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:
Substantive review comments reconciled:
Residual limits: whole |
|
Delta-only renewal of the independent namespace/token receipt at exact head Exact entire db4→bc8 delta verified: one test-fixture line changes 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, Preserved evidence identities: db4 receipt remains the executed 17public tests/72 compiled-runtime-analyzer rows +14 focused unit tests at No implementation edits, merge, hosted/integration/frozen-consumer/package qualification, or claim of exhaustive soundness. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
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.
Frozen escaping-ledger proofCandidate 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
stronger
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. |
|
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. |
There was a problem hiding this comment.
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 returnNone; 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
left a comment
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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_unresolvedand 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.
|
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. |
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, andouter()discarded that result, yet a test observingouter()received only the indexed-field uncertainty. The repair preserveshelper_result_not_forwardedfor 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
PropagationWitnessV1remains 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.
propagation_unknown. These controls establish route discrimination, not exact detail-string discrimination.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 commit77f75c50c195eb0e33d12ac63dc6d6f235f809a6, treece17641fb29bdd137445bea6b0ac4173df6e4ae2, passed seven compatibility gates; its initial detached-doctor setup failure remains separate. The earlier main973 receipt covers bc8 combinationb3a815f2b2e5a0c476c263b8181a63f6b34e0eab/ tree8c0f684b246d8836701e4487b21f75a858705f2fand nine local checks. Later observed main30264238c4c6a684f5ef3d4c2c5e1dba3ae467d5had a clean inspection-only merge-tree90357bef8e4886cd8b3632266f0ef56c7cb5e8d3; 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 baselinebc8dca910af161006693a32a4e90fe0b2c3a7a0d. 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.