Skip to content

ux(check): expose bounded cache reuse in verbose diff output (Advances #4975) - #12933

Merged
EffortlessSteven merged 12 commits into
mainfrom
carrier/12566-check-cache-verbose-4975
Nov 10, 2026
Merged

EffortlessSteven merged 12 commits into
mainfrom
carrier/12566-check-cache-verbose-4975

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Carrier for ux(check): expose bounded cache reuse in verbose diff output (Closes #4975) #12566 (Cursor branch, REPAIR_REQUIRED: two conflicts with main plus a test pinning stale file-fact version 1.53), rebased as a resolved patch on main. Same intent: ordinary ripr check --diff threads producer-owned FileFactCacheStats into CheckOutput and projects them under -v/--verbose (one stderr line plus capped store-failure rows, additive file_fact_cache / file_fact_cache_limitation JSON fields). Default JSON unchanged.

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: none
Spec: docs/OUTPUT_SCHEMA.md, schemas/ripr/check.schema.json
ADR: none
Plan item: none
Governing issue or accepted claim: #4975
Acceptance delta (one sentence): Verbose ordinary diff check output exposes bounded file-fact cache reuse/recompute/store-failure facts from the typed producer stats while default JSON and analysis classifications stay stable.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): carrier/12566-check-cache-verbose-4975
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): supersedes #12566
Acceptance retained from a replaced candidate (if any): all of #12566 (same 40 files, same changelog fragment, process allowlist, integration test); all six Devin threads on #12566 were resolved.
Accepted winner and losing candidate disposition (when decided): #12566 closed as superseded by this carrier.

Scope

  • ConsumedRustSources.file_fact_cache becomes Option<FileFactCacheStats> (production, not test-only); output/check_file_fact_cache.rs owns the verbose JSON/stderr projection; CheckOutput.file_fact_cache carries stats for renderers.
  • Integration tests: crates/ripr/tests/check_file_fact_cache_verbose.rs; process allowlist policy/process_allowlist.d/4975-check-file-fact-cache-verbose.txt; changelog fragment changelog.d/4975-check-file-fact-cache-verbose.md.
  • Carrier delta vs ux(check): expose bounded cache reuse in verbose diff output (Closes #4975) #12566: one extra hunk in crates/ripr/src/analysis/language/rust/repo.rs (the file_fact_cache assignment, which main moved there from rust/mod.rs in refactor(seam_cache): extract path_dependencies owner submodule (#5058) #12497); the blocked-store test blocks the repo-file-facts layer directory so it pins no file-fact schema version.
  • No CACHE_SCHEMA_VERSION / FILE_FACT_CACHE_SCHEMA_VERSION change: the stats are not serialized into cache entries.

Non-goals: repo-latency receipt (#3864), semantic reuse (#3796), default JSON changes.

Scope Classification

  • One public contract

Production delta: verbose check cache projection.
Evidence/support delta: integration tests, schema, docs.
Single acceptance criterion: see acceptance delta above.
Non-goals: see above.

Support-tier Impact

  • none

Policy Impact

  • process/network (integration test spawns allowlisted)

Proof

On tree 9f4d4b921c55a0e3045f6936233837afd1d8bdd2, a fresh cargo test -p ripr --test check_file_fact_cache_verbose passed 2/2 with the existing target reused. Independent review of the identical tree checked 510 Linux errno controls and planted-path controls; native Windows remains unverified. Details, identities, earlier attributed review and current integration basis are in the review evidence. Current-head hosted qualification and final integration judgment remain pending.

Claim Boundary

May claim: verbose diff check surfaces bounded file-fact cache counters and store-failure rows without changing findings or default JSON.
Must not claim: semantic seam cache reuse, latency guarantees, #3864 scope.

Rollback

Revert the squash commit.

Spec-Test-Code Traceability

  • Spec: docs/OUTPUT_SCHEMA.md
  • Tests: crates/ripr/tests/check_file_fact_cache_verbose.rs, output::check_file_fact_cache
  • Code: crates/ripr/src/output/check_file_fact_cache.rs

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

CI Economics

n/a


Generated by Claude Code

…4975)

Carrier for #12566 (head c01723a), resolved against main b80ce95/0244de7d:
repo.rs hunk follows the fn move from #12497; blocked-store test blocks the
repo-file-facts layer dir so it no longer pins a file-fact schema version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmoz3yvGnngtDNnPKxG
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 150 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: c4c76e9b-bbcd-4343-9828-a284a3e42261
Commits

Reviewing files that changed from the base of the PR and between 7237fb4 and d3d3a6d.

Files selected for processing: 44

  • changelog.d/4975-check-file-fact-cache-verbose.md
  • crates/ripr/src/analysis/consumed_source.rs
  • crates/ripr/src/analysis/facts/mod.rs
  • crates/ripr/src/analysis/language/perl/static_limit/runner_tests.rs
  • crates/ripr/src/analysis/language/python/python_tests.rs
  • crates/ripr/src/analysis/language/rust/mod.rs
  • crates/ripr/src/analysis/language/rust/repo.rs
  • crates/ripr/src/analysis/mod.rs
  • crates/ripr/src/analysis/seam_cache.rs
  • crates/ripr/src/analysis/seam_inventory.rs
  • crates/ripr/src/app.rs
  • crates/ripr/src/app/check.rs
  • crates/ripr/src/app/check/output_builder.rs
  • crates/ripr/src/app/tests/mod.rs
  • crates/ripr/src/lsp/tests.rs
  • crates/ripr/src/lsp/tests/consumed_source_tests.rs
  • crates/ripr/src/mcp/gaps.rs
  • crates/ripr/src/mcp/repair.rs
  • crates/ripr/src/mcp/repair_card.rs
  • crates/ripr/src/mcp/server_tests.rs
  • crates/ripr/src/mcp/source_recovery_tests.rs
  • crates/ripr/src/mcp/workspace.rs
  • crates/ripr/src/output/badge/tests.rs
  • crates/ripr/src/output/check_file_fact_cache.rs
  • crates/ripr/src/output/diff_report.rs
  • crates/ripr/src/output/gap_decision_ledger/python_identity_tests.rs
  • crates/ripr/src/output/github.rs
  • crates/ripr/src/output/human.rs
  • crates/ripr/src/output/human/agent_tests.rs
  • crates/ripr/src/output/human/triage.rs
  • crates/ripr/src/output/json/mod.rs
  • crates/ripr/src/output/json/report.rs
  • crates/ripr/src/output/language_view_agreement_tests.rs
  • crates/ripr/src/output/missed_txt.rs
  • crates/ripr/src/output/mod.rs
  • crates/ripr/src/output/next_step.rs
  • crates/ripr/src/output/pilot/types.rs
  • crates/ripr/src/output/related_test_miss.rs
  • crates/ripr/src/output/render.rs
  • crates/ripr/src/output/sarif.rs
  • crates/ripr/tests/check_file_fact_cache_verbose.rs
  • docs/OUTPUT_SCHEMA.md
  • policy/process_allowlist.d/4975-check-file-fact-cache-verbose.txt
  • schemas/ripr/check.schema.json

Summary by CodeRabbit

  • New Features
    • ripr check --diff -v reports Rust file-fact cache activity in stderr and verbose JSON, including reused and recomputed facts, stores, and applicable invalidation or corruption counts.
    • Verbose reports include bounded store-failure details while withholding unsafe path information.
  • Documentation
    • Updated the check output schema documentation to describe verbose cache fields, counters, and status values.
  • Compatibility
    • Default JSON output remains unchanged and omits the cache fields.

Walkthrough

Rust file-fact cache statistics now flow through check output. Verbose mode reports cache activity and bounded store-failure details on stderr and in JSON. Default JSON remains unchanged.

Changes

Rust file-fact cache reporting

Layer / File(s) Summary
Collect and project cache statistics
crates/ripr/src/analysis/consumed_source.rs, crates/ripr/src/analysis/facts/mod.rs, crates/ripr/src/analysis/language/rust/*, crates/ripr/src/analysis/seam_cache.rs, crates/ripr/src/analysis/seam_inventory.rs, crates/ripr/src/analysis/mod.rs, crates/ripr/src/lsp/tests/consumed_source_tests.rs
Cache statistics are optional in consumed Rust sources and are propagated in all builds. The code merges counters, caps failure rows, tracks invalidated paths, and sanitizes failure paths and errors.
Carry statistics through check output
crates/ripr/src/app.rs, crates/ripr/src/app/check.rs, crates/ripr/src/app/check/output_builder.rs, crates/ripr/src/analysis/language/perl/static_limit/runner_tests.rs, crates/ripr/src/app/tests/*, crates/ripr/src/mcp/*, crates/ripr/src/output/*
CheckOutput carries optional cache statistics. Verbose check runs render available statistics and terminal-safe failure summaries. Test fixtures initialize the new field.
Render and validate verbose telemetry
crates/ripr/src/output/check_file_fact_cache.rs, crates/ripr/src/output/json/report.rs, crates/ripr/tests/check_file_fact_cache_verbose.rs, schemas/ripr/check.schema.json, docs/OUTPUT_SCHEMA.md, changelog.d/4975-check-file-fact-cache-verbose.md, policy/process_allowlist.d/4975-check-file-fact-cache-verbose.txt
Verbose JSON adds cache receipts and limitation values; verbose stderr reports cache activity. Tests cover cold and warm runs, store failures, and path withholding. The schema and documentation describe the fields.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant RustIndexBuilder
  participant CheckOutput
  participant VerboseCheck
  participant JSONRenderer
  RustIndexBuilder->>CheckOutput: provide optional cache statistics
  CheckOutput->>VerboseCheck: supply cache statistics
  VerboseCheck->>VerboseCheck: render cache summary and failure details
  CheckOutput->>JSONRenderer: supply cache statistics
  JSONRenderer->>JSONRenderer: append fields in verbose mode
Loading

Possibly related PRs

Merge Risk: Moderate · previous review 7237f

Verbose check output can omit cache work and store failures, and its documentation can misdescribe recomputations. Resolve these reporting issues before merging unless the limitations are explicitly accepted.

Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Inconclusive Docstring coverage is 23.53% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed

Check name Status Explanation
Title check Passed The title clearly identifies the main change: exposing bounded file-fact cache reuse in verbose diff output. It is concise and related to the changeset.
Description check Passed The description is detailed and covers the change summary, scope, source boundary, relationships, proof, claim limits, rollback, traceability, and policy impact. It does not include the template's Eng…
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.
Full details: Description check

Explanation

The description is detailed and covers the change summary, scope, source boundary, relationships, proof, claim limits, rollback, traceability, and policy impact. It does not include the template's Engineering Check, Gates, or Extension changes sections, but the remaining content is sufficient to make the description mostly complete.

Full details: Docstring Coverage

Explanation

Docstring coverage is 23.53% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 34 functions across 33 files. (8 skipped: 4 unsupported, 4 too large.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches

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 checks the cache at dawn,
Reused facts hop softly on.
Fresh misses leave a tidy trace,
Bounded notes keep every place.
Verbose fields join the show,
Default JSON stays as before.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 4, 2026 07:48
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@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

  • A store error can occur without making did_work true, suppressing the verbose JSON receipt while leaving store_errors hidden.
  • Store-failure rows are capped during merge, but merge_from discards rows beyond the cap without incrementing store_failures_dropped.

Verification questions

  • Confirm unit tests cover receipt fields, but no focused test proves merge_from preserves the global failure-row cap when merging multiple capped snapshots.
  • Confirm both Rust producer routes always assign Some(cached.file_fact_cache), making the documented not_observed limitation appear unreachable for ordinary Rust checks.
  • Confirm the verbose projection omits file_fact_cache entirely when no Rust cache work was observed, but its documented limitation states the field is null.
  • Confirm the blocked-store fixture verifies failure telemetry but does not assert the bounded failure-row cap or dropped-row accounting.
  • Confirm verbose JSON always appends file_fact_cache and file_fact_cache_limitation, while the schema describes file_fact_cache as verbose-only but does not require the limitation whenever file_fact_cache is null.
  • Confirm the integration test exercises new behavior but does not pin a red/green result against the base revision.

Evidence gaps

  • The failed ripr sensor and absent cargo-test receipt prevent completion-level verification of this Rust behavior change.
  • The hosted Rust test proof was requested but no completion receipt is present, while the ripr sensor failed with exit code 2.
  • The required Rust compile and focused integration-test evidence is absent because cargo-test was only scheduled and ripr failed.
  • 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.

REPAIR_REQUIRED — head 53ea793

Review against current main, built and executed here on a trial merge.

Defect, with a one-line repair. crates/ripr/src/app/check.rs:551 reads output.file_fact_cache = consumed_sources.file_fact_cache.take();. consumed_sources is the value returned from this function (line 564) and the LSP snapshot keeps it. take() empties its file_fact_cache, so after this change every consumer of snapshot.rust_consumed_sources.file_fact_cache reads None. Two existing lib tests fail on this head for that reason:

  • lsp::tests::consumed_source_tests::actual_saved_producer_commits_raw_bytes_on_cold_and_warm_cache_paths returns SETUP: cold run produced no file_fact_cache stats (the same run printed rust file facts: 0 reused, 1 recomputed, 1 stored, so the stats existed before line 551).
  • lsp::tests::consumed_source_tests::clean_open_rust_file_is_indexed_without_seeding_findings returns clean open file did not exercise cold and warm fact-cache loads.

Repair: copy the stats instead of removing them, consumed_sources.file_fact_cache.clone(), so the carrier keeps its stats for the LSP snapshot and the check output gets its own copy. Then re-run cargo test --lib -p ripr.

What I checked and found sound:

  • The three advisory leads from the automated review do not hold. A store error alone still sets did_work() (it includes store_errors > 0). merge_from counts every capped row in store_failures_dropped, so retained rows plus dropped equal errors. With no observed cache work the verbose JSON emits "file_fact_cache": null plus file_fact_cache_limitation: "not_observed", matching OUTPUT_SCHEMA.md.
  • Non-blocking follow-up: no unit test exercises merge_from over several capped snapshots.
  • Executed on this head: cargo fmt --check -p ripr exit 0; cargo test -p ripr --test check_file_fact_cache_verbose 2 passed; cargo xtask check-output-contracts pass; cargo xtask goldens check pass; cargo clippy -p ripr --lib --tests -- -D warnings exit 0; cargo test --lib -p ripr 18136 passed and the 2 above failed.

Not run: the hosted Ripr Rust Small Result, lsp_lifecycle and fixtures. No cache-schema bump is involved.


Generated by Claude Code

…ying the consumed-sources carrier

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmoz3yvGnngtDNnPKxG

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

REVIEW_READY — head c6bf768

Delta review against my earlier review at 53ea793, plus the PR against main (41 files, merge-base diff). The PR has no review threads. The earlier repair request is satisfied.

  • The repair. app/check.rs now reads output.file_fact_cache = consumed_sources.file_fact_cache.clone(); with the unneeded mut dropped on consumed_sources. That is the whole delta from 53ea793 (git diff 53ea7932..c6bf7682 touches only those two lines). The returned carrier keeps its stats for the LSP snapshot, and the check output gets its own copy.
  • Tests that exposed it now hold. cargo test --lib -p ripr on this head: 18138 passed, 0 failed, 1 ignored. That includes lsp::tests::consumed_source_tests::actual_saved_producer_commits_raw_bytes_on_cold_and_warm_cache_paths and clean_open_rust_file_is_indexed_without_seeding_findings.
  • Also on this head: cargo fmt --check -p ripr exit 0 and cargo clippy -p ripr --lib --tests -- -D warnings exit 0.
  • Carried from the earlier pass at 53ea793, unaffected by the two-line delta: the verbose integration test (2 passed), check-output-contracts and goldens check pass; the default JSON is unchanged and the verbose receipt, merge_from and did_work logic read correct.

Non-blocking follow-up: no unit test covers merge_from over several capped snapshots.

Not run on this head: the integration test, output-contracts and goldens (carried from the earlier head), and the hosted Ripr Rust Small Result. No cache-schema bump is involved.


Generated by Claude Code

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

merge-ready was requested, but this PR conflicts with main (head c6bf7682), so GitHub creates no test-merge ref and no qualification run can start. Merge main into the branch and resolve the conflicts, then remove and re-apply merge-ready.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmoz3yvGnngtDNnPKxG

@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 verification checks before upstream.

Verification questions

  • Confirm verbose JSON can emit a null file_fact_cache with a limitation, but the schema does not require that limitation whenever the receipt is null.
  • Confirm the integration test verifies one store failure, but does not exercise multiple capped snapshots or assert the global failure-row cap and dropped-row accounting.
  • Confirm the bounded store-failure-row contract is not proved red/green: the blocked-store test checks only store_errors and one stderr phrase, while merge_from and the receipt define capped rows and dropped-row accounting.
  • Confirm the documented null-limitation states are not exercised by the added test suite: no route-level test distinguishes None/not_observed from Some(zero_work)/zero_work.
  • Confirm the merge helper preserves the global store-failure row cap and accounts for dropped rows across successive snapshots.
  • Confirm the schema describes file_fact_cache_limitation as the reason a null cache receipt is present, but its independent definition does not require the pair relationship enforced by the renderer.
  • Confirm the integration test covers cold/warm cache telemetry, default JSON omission, and blocked-store disclosure, but does not exercise the bounded failure-row cap or dropped-row accounting.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • The packet reports ripr sensor failure and an absent cargo-test receipt; prior seeded evidence is positive but is not a current-head receipt.

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

REVIEW_READY — head 51e653f

Review of the main-merge head against my earlier clearance at c6bf768. The PR has no review threads. The PR diff against main is 42 files.

  • Conflict resolution in analysis/language/rust/mod.rs. Main's trace_latency_phase("diff_main_index", …) call is kept, and the carrier's unconditional rust_consumed_sources.file_fact_cache = Some(cached.file_fact_cache.clone()); follows it, which is what the carrier intends once the #[cfg(test)] guard is dropped.
  • Unchanged from the cleared head. merge_from in seam_cache.rs is byte-identical to the version I reviewed (each capped row is counted in store_failures_dropped, so rows plus dropped equal errors), and app/check.rs, output/check_file_fact_cache.rs and analysis/consumed_source.rs have no difference from c6bf768, so the .clone() repair is intact. I also searched the merged tree for tests that expect file_fact_cache to be absent outside cfg(test): none; the remaining references are the facts-builder stats tests on a different field.
  • Executed on this head: cargo fmt --check -p ripr exit 0; cargo clippy -p ripr --lib --tests -- -D warnings exit 0; cargo test --lib -p ripr 18207 passed, 0 failed, 1 ignored (the two LSP consumed-source tests included); cargo test -p ripr --test check_file_fact_cache_verbose 2 passed; cargo xtask check-output-contracts pass; cargo xtask goldens check pass.

Non-blocking follow-up: no unit test covers merge_from over several capped snapshots.

Not run: the hosted Ripr Rust Small Result, lsp_lifecycle and fixtures. No cache-schema bump is involved.


Generated by Claude Code

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

Bounded source review — 2026-11-05 UTC

  • reviewed_head_sha: 51e653f5b7698172dd42bd84bca9f3e540b5d7cc.
  • integration_basis: metadata base 00079eaf03c1af9fcc008babdee179745035d490; immutable candidate, authored change and named semantic owners inspected. No new composed integration run.
  • claim_boundary: ux(check): expose bounded cache reuse in verbose diff output (Closes #4975)
  • changed_surfaces_and_semantic_owners_inspected: Read producer stats carrier/merge_from/did_work, app clone transfer, JSON verbose projection and stderr line, cold/warm test and LSP consumers. Prior take()-empties-carrier defect fixed by clone. Store error alone counts work, retained+dropped failures bounded, absent/zero work remain explicit null limitations. Default JSON branch unchanged. Prior native reports retained as reports, not rerun.
  • blocking_findings: No additional inline finding in this pass. Existing findings, prerequisites and accepted deferrals described above retain their recorded disposition; no duplicate threads added.
  • non_blocking_suggestions: None added.
  • refuted_or_stale_findings: Current source repairs and prior refutations described above retained; resolved does not imply deferred work was repaired.
  • proof_and_ci_observed: Current immutable source and targeted diff read, current conversation and all thread states inspected. No hosted logs or whole RIPR build/tests. Prior review execution claims remain attributed reports; not reexecuted here.
  • proof_or_review_missing: Exact-head whole-product/native integration and hosted qualification unverified in this pass; large generated fixture matrices and broader runtime contracts not exhaustively reexecuted.
  • affected_currentness_dimensions: Current head/base/open state checked immediately before publication. Historical receipts retain their original commit, tree, runner and scope; no promotion to current integration proof.
  • residual_assumptions_and_non_claims: Existing Draft, owner and release/activation holds remain. This COMMENT review does not grant merge readiness, rollout or release acceptance.
  • disposition: REVIEW_INCOMPLETE; no new actionable finding; retain explicitly deferred issues where named.

EffortlessSteven commented Nov 5, 2026 •

Copy link
Copy Markdown
Member Author

Repair wave: the actual CLI at composed source c87bf92a reproduced the narrowed fallback loss. With named dependent scope and a blocked cache, the admission trace reported core_files_2, the unreached-test filter reported loaded_files_1, and the final receipt reported only one miss/store failure. Removing the orphan produced one core file, one final file and one failure without rebuild. The candidate now retains the admission stats when a same-run fallback discards its index; local commit 228ace90b373c1af56eb91165b6217f629c75cb8 also adds a real CLI discriminator and fixes schema/docs to define recomputations as misses plus corrupt entries.

Wheel diagnosis: run 42115324793 job 127553786682 built and inspected the wheel, then tar failed because tools/python/installed-provider-recovery/run.py was absent from its verified checkout 7237fb45; the clean-install journey was skipped. Main commit 5e9ed234ab8b78ace071c1709f712144672bce11 (#12972) added both that script and the workflow packaging step. The log's executed step matches the integration-base workflow but does not establish an exact controller SHA. This is an integration prerequisite mismatch, not an established cache defect. Current main 5eff6305d6e2becf98f6772b890c5d8f80af201c was merged locally without force into candidate 031505da55e08870bd7ee446edf8986ff9ac33ba and contains the script. The exact merged tree's CLI test is running; no current proof or qualification is yet claimed. The published PR remains Draft at 7237fb45 with source readiness withdrawn and the prior label denial untouched.

EffortlessSteven commented Nov 5, 2026 •

Copy link
Copy Markdown
Member Author

Review finding and repair: #4975 requires a planted absolute home/cache path in a failure row to be refused. At 51e653f5, file_fact_cache_receipt → file_fact_store_failure_rows → portable_store_failure_path joined components without rejecting root or parent components; the error string was copied verbatim. An extracted Rust 1.95 control returned Some("//home/user/cache/secret") for /home/user/cache/secret. Normal producer paths appear relative and write_cache omits its path; this proves the negative-control failure, not a normal-CLI leak.

Draft head 14c0e8a242f5101a260ec76a49fe3b648bf45ad2 rejects non-relative paths and withholds path-bearing error details, adds Unix/Windows/traversal and safe-detail controls, a multi-snapshot cap/overflow control, and a real blocked-store receipt privacy assertion. Changed-file rustfmt and whitespace checks passed on tree 08e7460e5e0fbdeff0ddcc5b43b31c3eb428735b. An extracted-function Rust 1.95 control rejected absolute/traversing paths and preserved a normal path and safe error; an extracted actual merge_from control retained 32 rows and counted 48 dropped from 80 failures across three snapshots. Fresh cargo test -p ripr --test check_file_fact_cache_verbose passed 2/2 both on the old head and on this repaired tree; the latter includes the new real-producer privacy assertion. New library tests and hosted qualification remain unexecuted. GitHub merge ref aedbe85b53df255762bb6cf104661d9706c6584d had parents d39fdb9a7211ca4dab5ad8b67d73956059c39393 and 14c0e8a242f5101a260ec76a49fe3b648bf45ad2, and contains prerequisite 9d296a50a6f6ad8d0056fbd4df41001a4322b408. No merge readiness claimed.

@EffortlessSteven
EffortlessSteven marked this pull request as draft November 5, 2026 07:35
@EffortlessSteven EffortlessSteven changed the title ux(check): expose bounded cache reuse in verbose diff output (Closes #4975) ux(check): expose bounded cache reuse in verbose diff output (Advances #4975) Nov 5, 2026

Copy link
Copy Markdown
Member Author

Current source review record:

  • reviewed_head_sha: 14c0e8a242f5101a260ec76a49fe3b648bf45ad2; tree 08e7460e5e0fbdeff0ddcc5b43b31c3eb428735b.
  • integration_basis: GitHub merge ref aedbe85b53df255762bb6cf104661d9706c6584d, parents d39fdb9a7211ca4dab5ad8b67d73956059c39393 and the reviewed head; prerequisite 9d296a50a6f6ad8d0056fbd4df41001a4322b408 is in its ancestry. No execution on this composition yet.
  • claim_boundary: bounded producer file-fact statistics in verbose ordinary diff output; default JSON and analysis classifications unchanged. Broader ux(check): expose bounded cache reuse and failure facts in ordinary diff output #4975 edit, corruption and installed-CLI characterization remain open.
  • inspected: cache stats creation, aggregation and bounded rows; Rust adapter carrier and LSP clone preservation; app transfer; verbose stderr and JSON projection, schema/docs, shared failure rendering and privacy paths, existing review comments and threads, and the relevant main changes. did_work includes errors; retained plus dropped rows account for merged failures; no-observation and zero-work JSON remain explicit null limitations.
  • finding repaired: absolute path and path-bearing error disclosure through newly exposed failure rows, with intentionally conservative withholding of error details containing path separators. The original path helper red control and repaired positive/negative controls are in the linked continuation comment.
  • observed proof: cargo test -p ripr --test check_file_fact_cache_verbose on the current tree passed 2/2, including producer-to-receipt blocked-store privacy and cold/warm/default-JSON checks; changed-file rustfmt and git diff --check passed; extracted exact helper and merge-method controls passed. Prior 51e653f5 library, clippy, contracts and golden claims remain attributed to the prior reviewer. Hosted run 41876973547 tested old merge 686e5e40 and does not qualify this head.
  • missing: the two new library tests have not been executed locally; their full monolithic test build is deferred to the required hosted shards under the resource-bounded instruction. Current-head hosted checks, current findings and final integration judgment remain pending. Provider quota/neutral output is not a clean provider review.
  • disposition: SOURCE_REVIEW_READY for the named bounded claim; REVIEW_INCOMPLETE for merge until current-head hosted and integration evidence is inspected.

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

SOURCE_REVIEW_READY

Reviewed the producer, bounded aggregation, LSP carrier, verbose output and privacy repair on this head. Focused real-CLI and extracted negative controls are recorded in the source review. Current-head hosted qualification and combined-tree judgment remain outstanding.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 5, 2026 08:01

Copy link
Copy Markdown
Member Author

Claim: driving this PR to squash-merge.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW
…back rebuilds; define recomputed as misses plus corrupt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 10, 2026 03:13
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

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

Devin Review

Comment thread crates/ripr/src/analysis/facts/mod.rs Resolved
…rkspaces, scope the cache receipt in docs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW

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

SOURCE_REVIEW_READY

Exact head bfa72c4 reviewed: the CheckOutput carrier field and every struct initializer (missing ones in human.rs, missed_txt.rs and lsp tests were added after the main merge), the output projection module, the same-run fallback stats merge with run-order preservation, JSON schema and docs wording for misses plus corrupt, the integration tests with workspace cleanup, process allowlist and changelog. Default JSON is unchanged and no cache schema version moves. All threads have source-backed replies and are resolved.


Generated by Claude Code

…text policy

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW

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

SOURCE_REVIEW_READY

Exact head 68a2aec reviewed. Delta from the previous reviewed head: test host-path samples are assembled at run time so the local-context policy passes, and current main is merged. All threads are resolved.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW

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

SOURCE_REVIEW_READY

Exact head a5aa791 reviewed. Delta from the previous reviewed head: current main merged, which carries the repair of main's duplicated test field. All threads are resolved.


Generated by Claude Code

…licate fixes removed

#14047 and #14048 each removed one of the two duplicate initializers, leaving
the re-export shadow test owner without the field (E0063) on main.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW

Copy link
Copy Markdown
Member Author

Head d3d3a6d restores the test_local_shadows initializer in python_tests.rs: #14047 and #14048 each removed one of two duplicates, so main's lib tests fail to compile (E0063) and #14050 was closed unmerged. This one-line repair is needed for exact-head qualification and is a clean no-op if main is repaired first.


Generated by Claude Code

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

SOURCE_REVIEW_READY

Exact head d3d3a6d reviewed. Delta from the previous reviewed head: current main merged and one test initializer field restored so the lib tests compile. All threads are resolved.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit a283b27 into main Nov 10, 2026
76 of 77 checks passed
@EffortlessSteven
EffortlessSteven deleted the carrier/12566-check-cache-verbose-4975 branch November 10, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants