Repository navigation
perf(evidence): pass-scoped filesystem currentness with terminal recapture (#4292) - #12451
EffortlessSteven wants to merge 3 commits into
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 49 minutes. View limit details
|
|
CI on Follow-up Action needed: remove and re-add |
|
CI on Follow-up Action: remove and re-add |
|
Triage: inherited E0061 (rust_test_stub 4-arg) across gates/feature/paste/kani/ranking — your diff already carries the 4-arg call, but the merge ref still compiles the stale 3-arg site. Rebase onto current fixed main (refresh the merge ref) and re-run; no product change needed. |
8f31230 to
c005b2a
Compare
|
|
|
|
…pture (#4292) EvidencePass captures each distinct admitted test/seam path once per pass, shares ancestor stat walks across pairs, and recaptures metadata before publication. Stale generation strips test targets and emits a latency receipt naming pass_capture_terminal granularity. Closes #4292 Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
Move terminal currentness out of per-window evidence_for, buffer review windows until pass-level recapture succeeds, withdraw target-dependent repair facts on stale generation, and share ancestor stats during terminal sweep. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
c005b2a to
6787885
Compare
|
|
…ass: keep pass_filesystem and #11524 warm-failure fields) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmoz3yvGnngtDNnPKxG
|
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Source review of head 92c6001 (full diff read against main e39c88f, conflict resolution included). Not compiled locally; hosted proof not yet established for this head.
Inspected: EvidencePassFilesystemCurrentness (one stat walk per distinct admitted path, first fingerprint wins, terminal recapture compares every tracked path), validates_target_digest_with_pass (old entry point delegates with None, so other callers are unchanged), CompactGripContext::try_new_with_pass_filesystem (try_new now cfg(test); the only EvidencePass::new callers, including main's warm_entrypoint tests, do not call try_new), finalize_filesystem_currentness at every publication boundary in seam_inventory.rs (streamed path errors out; scoped paths withdraw target-bearing evidence), and the buffered-window restructure that defers classification until after the terminal check (ordinal and identity checks preserved). Test pass_terminal_generation_rejects_mid_pass_manifest_insert covers a mid-pass manifest insert. Conflict resolution (test_grip_evidence.rs): EvidencePass gained pass_filesystem here and warm_failed, incomplete_files and test-only inject_warm_panic from main's #11524; the fields are independent, so both are kept, and main's early return on warm_failed precedes any use of pass state.
Findings: none blocking. Residual: failure direction is conservative; full-suite behavior is established only by hosted CI.
Generated by Claude Code
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY
Source review of head 92c6001 (full diff read against main e39c88f, conflict resolution included). Not compiled locally; hosted proof not yet established for this head.
Inspected: EvidencePassFilesystemCurrentness (one stat walk per distinct admitted path, first fingerprint wins, terminal recapture compares every tracked path), validates_target_digest_with_pass (old entry point delegates with None), CompactGripContext::try_new_with_pass_filesystem (try_new now cfg(test); EvidencePass::new callers, including main's warm_entrypoint tests, do not call try_new), finalize_filesystem_currentness at every publication boundary in seam_inventory.rs (streamed path errors out; scoped paths withdraw target-bearing evidence), and the buffered-window restructure deferring classification until after the terminal check (ordinal and identity checks preserved). Test pass_terminal_generation_rejects_mid_pass_manifest_insert covers a mid-pass manifest insert. Conflict resolution (test_grip_evidence.rs): EvidencePass gained pass_filesystem here and warm_failed, incomplete_files and test-only inject_warm_panic from main's #11524; fields are independent, both kept, and main's early return on warm_failed precedes any use of pass state.
Findings: none blocking. Residual: failure direction is conservative; full-suite behavior is established only by hosted CI.
Generated by Claude Code
|
Burn-down helper: NOT merging (head 92c6001), merge-ready removed. My earlier source-only REVIEW_READY on this head was wrong about behavior: hosted tests fail. Shards: Generated by Claude Code |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Bounded source review — 2026-11-05 UTC
- reviewed_head_sha:
92c6001277d252c2cdc0165071208ab2c53b6e7f. - integration_basis: metadata base
e39c88fc16f70ad73d5aabef623b42da79400c78; immutable candidate and authored source delta reviewed. No new composed integration execution. - claim_boundary: perf(evidence): pass-scoped filesystem currentness with terminal recapture (#4292)
- changed_surfaces_and_semantic_owners_inspected: Read entire production patch: pass fingerprint memo, actual target authority, terminal sweep and all evidence-pass callers, buffered review windows, first/rest stages and withdrawal of target/missing-discriminator/new-test facts. Prior three findings fixed in current source; terminal sweep shares directory observation cache. Source review does not establish2500/10000seam byte identity or performance receipt. Potential buffering resource cost remains measurement requirement, not asserted defect.
- blocking_findings: No additional inline finding in this pass; existing source, validation, integration and owner holds described above retain their disposition.
- non_blocking_suggestions: None added.
- refuted_or_stale_findings: Current repairs and previous refutations described above preserved; no duplicate thread added.
- proof_and_ci_observed: Immutable source/diff and live claim/conversation/thread inventory inspected. No full cargo build, hosted qualification or CI request. Older native/hosted receipts remain attributed reports.
- proof_or_review_missing: Actual current-head hosted logs/checkout binding and final integration proof not independently re-audited. Review is source-bounded; generated data matrices and all historical artifacts not exhaustive.
- affected_currentness_dimensions: Current head/base/open state checked before publication; historical receipts remain bound to their original subjects and scope.
- residual_assumptions_and_non_claims: This COMMENT review preserves Draft and release/activation/owner holds and does not establish final integration qualification or merge readiness.
- disposition: REVIEW_INCOMPLETE; no new finding; replay/performance qualification outstanding
|
On head The comparison carries the ctime of ancestors above the workspace root through Integration overlap for coordination: this PR changes An automatic merge-tree inspection against that Focused follow-up on exact head |
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: BLOCK 92c6001 — required hosted CI is red at this head, and the diverging values are exactly this patch's withdraw_target_bearing_evidence transform.
Reviewed head 92c6001277d252c2cdc0165071208ab2c53b6e7f (tree parent 1 6787885ed4, main parent e39c88fc16). The earlier REVIEW_READY on this head (2026-11-04T00:55:40Z) recorded "hosted proof not yet established"; the hosted run started one minute later and failed.
Blocking findings
1. Ripr Rust Small Result fails at this head, and the failures are the withdrawal path
Run 41750547208 (head_sha 92c6001277…, pull_request, 2026-11-04T00:56:44Z) failed shards 1–4, "Rust test shards verify", and the result job. Rust-only feature lane (run 41750547212) failed at the same head.
- Shard 3 —
analysis::seam_inventory::tests::bound_seams_inventory_persisted_entry_never_serves_a_different_statepanics atseam_inventory.rs:10076(assert_eq!(scoped_projection(&damaged)?, baseline)). The observed diff is preciselywithdraw_target_bearing_evidence: the recomputed run has"test_target":nulland nonew_test_target, while the baseline has a full target ("provenance":"rust_index_function","currentness":"current") and"new_test_target":{"blocker":"no_test_module"}. - Shard 1 —
classified_cache_cargo_home_fallback_and_relative_home_match_coldpanics atcrates/ripr/tests/cache_clear_safety.rs:262onassert_eq!(left, right)over the classified JSON arrays: the cold and warm/recomputed projections differ. - Shard 4 —
output::render::tests::repo_badge_actionable_count_agrees_with_repo_exposure_on_the_same_treepanics atoutput/render.rs:1306on "fixture must produce at least one actionable canonical gap with a complete repair route on the exposure path": the actionable gap that the fixture is built to contain is gone. - Shard 2 —
output::evidence_record::tests::inline_cfg_test_library_offers_a_repair_start_only_with_one_governed_modulefails in the same shard set.
The predicate violated is same-tree determinism: for one unchanged tree, cold, warm, persisted and recomputed runs must agree on evidence and on actionable counts (#9899's "a persisted entry … never serves a different state"). Here the terminal recapture reports stale_generation in runs whose only writes are the tool's own cache/receipt artifacts, so one path withdraws target-bearing evidence and another does not. Because finalize_filesystem_currentness also gates evidence_for_seams and both scoped paths, this is not confined to the repo-exposure route.
This must be fixed by making the recapture ignore the run's own artifact writes (or by bounding what counts as an admitted path), or by making withdrawal deterministic across cold/warm/persisted paths — not by relaxing the four assertions.
2. The window bound no longer bounds evidence memory
classify_evidence_windows now pushes every window's owned seams and evidence into pending: Vec<PendingWindow> and classifies only after the terminal check. ScopedEvidenceConsumer is documented as "a bounded consumer of classified windows" with DEFAULT_REVIEW_EVIDENCE_WINDOW = 32 / MAX_REVIEW_EVIDENCE_WINDOW = 256, and pass.clear_window_memos() per window is what kept peak memory proportional to the window. Buffering all windows makes peak memory proportional to the whole evaluated seam scope (evidence carries observed_values text), which is the shape of the #12940 large-workspace OOM. The retained_{} receipt still reports only consumer.retained_payloads(), so it would not show the growth. This is reasoned from the code, not measured; if you keep the design, the window contract and its receipt need to change with it.
Not checked
No local build or test run (read-only review). I did not isolate which tracked path changes under the run's own writes; that is the first thing to instrument. I did not request a re-run, so the head's check state is as of run 41750547208.
|
Disposition: repair needed. Head |
|
Evidence-only sweep triage: this PR currently conflicts with |
|
Coordination note (evidence-only reviewer): this branch is now conflicted with main ( |
Governing issue or accepted claim: #4292
Acceptance delta (one sentence): Test-target authority captures each distinct admitted path once per evidence pass, recaptures at publication with pass-level finalize (buffered review windows), withdraws target-dependent repair facts on stale generation, and emits
evidence_filesystem_currentnesswithgranularity=pass_capture_terminal.Summary
Cold
repo-exposure-jsonevidence spent most remaining per-pair time in repeatedfilesystem_fingerprintstat walks insidevalidates_target_digest. This change wiresEvidencePassto a pass-scoped capture shared across seam×test pairs, then revalidates the same path set before results leave the pass.Proof
cargo xtask precommit(local)cargo test -p ripr --lib pass_terminal_generation_rejects_mid_pass_manifest_insertcargo test -p ripr --lib production_target_evidence_rejects_authority_failurescargo test -p ripr --lib evidence_pass_output_is_identical_on_one_and_many_threadsClaim boundary
Proves pass-scoped filesystem freshness with terminal recapture and latency receipt naming; does not claim hosted repo-exposure self-replay byte identity at 2,500/10,000 seams (needs PR CI / manual replay).
Closes #4292