Repository navigation
fix(cache): invalidate corpus reuse after source-directory replacement (#7850) - #7864
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 reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 10 minutes. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent LLM exact-head source/oracle review, recorded by the delivery owner (author-account COMMENT, not GitHub approval).
Reviewed head e8412831b4336903ca64b14788635644027e1f93, tree 00b52292defa4450ce4f7f69b99285178caee890; reviewed base 78312b335cdb1558372aded3a4911073052753a9.
No blocking findings or nonblocking suggestions. Inspected all six changed files and the shared fingerprint's full, compact, workspace-key, no-impact, discovery, storage and rendering consumers. Device plus inode extend the existing identity while retaining ctime invalidation. Corpus generation 0.4 changes mapping admission only; existing classified/file-fact entries remain available.
Oracle challenge: literal owner, expression, kind, class and count expectations precede current-input cold parity. Distinct fixture roots and subprocesses exercise both families. Equal old stat tuples plus different inodes establish the actual replacement stimulus. Cache byte snapshots reject destructive recovery. Disabling only fingerprint reuse is rejected by the initial full-path fingerprint trace. Removing device/inode is represented by the retained pre-repair implementation, where both corrected cases fail at the intended post-swap parity assertion. Artifact producer inspection justifies normalizing only generated_at and its enclosing content digest; semantic/input identities remain compared.
Observed retained evidence: corrected behavioral red 2/2, native exit101; green cache CLI suite 12/12 with zero failed/ignored; corrected test-only patch SHA256 ce024c026cf37abdafbad34a006ebbc7ec77e5cc6ccaaae1da7fa61bb4f2f2f3 matches the committed test diff; pre-repair binary SHA256 23a4179a6a6b75b5fd755418b79cdc585a56aaa9ca3fe659db5cd2bca4a72578 verified. Reviewer performed no builds or author-tree edits.
Disposition: REVIEW_INCOMPLETE, suitable for Draft publication. Completed local shaping, exact published-head hosted checks/test denominators, hosted Linux timestamp-alignment capability and protected integration remain unverified. Non-Unix fallback is unchanged. Same-inode writes inside a ctime tick, concurrent analysis-time replacement and hostile-writer authentication remain nonclaims.
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm traceability
.ripr/traceability.tomllists both new tests under RIPR-SPEC-0005 tests; confirm the spec document's existing 'tests' list is owned by the same spec since the changeset only edits the prose and adds two test refs, with no schema/contract widening beyond #7850. - Confirm crates/ripr/tests/cache_clear_safety.rs:659 — Helper
directory_swap_cache_snapshotis duplicated within the same file by shape — it is only used by the new test, but it sits next topre_directory_cache_snapshotfrom earlier work that likely already serves the same purpose. Confirm it is not a near-copy; if it duplicates, extract a single helper and reuse to keep the smallest-complete-fix boundary.
Refuted
- Scope creep: the diff should also rewrite workspace_key_inputs or invalidate classified seams, not just extend the stat fingerprint.; refuted because: The contract is 'cache reuse must not answer different files'. Adding dev+ino to the only signature that gates reuse is sufficient; workspace_key_inputs and classify caching layers are out of scope per the PR's stated contract and the issue boundary.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Disposition of the automated verification questions on exact head
Independent exact-head source/oracle review remains accepted with no blocking findings. Gemini and CodeRabbit quota messages are missing provider reviews, not clean reviews; the existing independent LLM review is separate evidence. The environment restart lost the original verification session's terminal status after check-fast reached Clippy. Source/tree are unchanged; serial local shaping is being resumed and remains unestablished until terminal completion. Candidate stays Draft. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Cumulative exact-head review refresh; author-account COMMENT, not a GitHub approval.
Reviewed head e8412831b4336903ca64b14788635644027e1f93, tree 00b52292defa4450ce4f7f69b99285178caee890. Source, tests and the six-file delta are unchanged. Independent source/oracle review remains current. Independent integration inspection also verified merge subject 3ae4456b2c627090d35830a707238a2c85ff59da, tree b3bed30c5e7ec3effbb1906cb5f19533de314d46, parents b81496ae2127e62c15b92472e92e2409ece4b86a + the reviewed head: all six candidate paths are unchanged, and incoming propagation/LSP/corpus changes do not affect the literal Rust fixtures or their cache consumers. No blocking source, oracle or composition finding.
Local qualification is now established: corrected behavioral red 2/2, green cache CLI suite 12/12, final exact-head regressions 2/2, zero failed/ignored; bounded check-fast and exact-head precommit passed. The earlier Rust-only hosted job checked out that merge subject and actually passed both new regressions and all 12 cache CLI cases.
The current required Routed Rust Small run 38511956609, attempt 1 is still in progress for the exact head, with the reusable workflow referenced at that merge subject. Policy preflights and workspace/all-target check passed; all-features check is running. Required nextest execution, its fresh run-context/JUnit denominator, doctests and terminal Ripr Rust Small Result are still unestablished. A workflow reference is not a terminal hosted checkout receipt.
The generation-guide finding is evidence-refuted in the source-backed reply, and resolution is read back. Historical integrity generation 0.3 is distinct from replacement-file generation 0.4. Present-tense wording is an inherited nonblocking clarification opportunity. Earlier traceability/helper questions are addressed in the prior response. No unresolved inline thread remains.
Disposition: REVIEW_INCOMPLETE / WAITING_REQUIRED_CHECKS. Expected green for the narrow cache claim, with no merge or auto-merge request. GitHub owns the next transition: terminal required execution and its affected-case receipt. Classic protection read returned integration-permission 403; the rules endpoint was rejected by the tool allowlist. Those remain unreadable-policy evidence gaps, not evidence that protection or approval requirements are absent. No bypass or settings change is authorized. Non-Unix fallback, same-inode rewrites inside one ctime tick, concurrent replacement and hostile-writer authentication remain nonclaims.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition: REVIEW_READY for exact published head e8412831b4336903ca64b14788635644027e1f93, tree 00b52292defa4450ce4f7f69b99285178caee890. Author-account COMMENT records the accountable owner's cumulative independent LLM review; it is not a GitHub approval.
Claim: regular source-directory replacement must recover current-input cold semantics in both full and compact cache paths, then warm-hit after subprocess restart while preserving previous source/cache bytes. Independent review of the shared fingerprint authority, all six files, full/compact/workspace-key/no-impact/discovery/storage/rendering consumers and independently pinned oracle remains current. The retained pre-repair implementation discriminates the missing device/inode identity: corrected red 2/2 fails at intended post-swap parity; local green 12/12 and final exact-head regressions 2/2 pass with zero failed/ignored. Bounded local check-fast/precommit passed. No blocking source or oracle finding.
Current integration basis: main at bb6af8ce33b9628e20f487d3051d6af026240255; clean prospective combined tree 6f0a0febaae1ee9c50856208367eb391ca221292. Independent integration refresh verified unchanged production/test/spec/fragment bytes and both SPEC-0005 traceability mappings. The combined delta remains six files, 252 additions / 4 deletions. Incoming guard, assertion, suppression, app/MCP/TypeScript and changelog-policy changes do not invalidate the literal no-test Rust fixtures or this cache claim. This is static current-main composition inspection; hosted execution below belongs to its earlier actual checkout. Behind-only movement does not require restacking or another broad run.
Required run 38511956609, attempt 1, completed success for the original head. Primary job logs 115682302034 show actual checkout 3ae4456b2c627090d35830a707238a2c85ff59da, parents b81496ae2127e62c15b92472e92e2409ece4b86a + reviewed head, pinned Rust 1.95.0, nextest profile ci / run d5daef84-33b9-4ab0-8477-4d973c77aed8, 15,552 passed across 88 binaries and two skipped. Both owned directory-swap regressions and all 12 cache-clear cases actually PASS. Old reports were removed before execution; the fresh nonempty JUnit guard and upload succeeded. All 15 diagnostic gate outcomes are success; doctests have 2 passed / 1 ignored. Stable required Ripr Rust Small Result 115697514110 is completed success. No CI retries or further builds performed.
All reported findings are source-refuted and replies read back; the inline generation-guide thread's resolution is confirmed. Current-head review inspection finds no unresolved inline thread or requested-changes review. Provider quota/skipped/queued output is not substituted for independent review.
Evidence limits: artifact 11871169322 metadata binds the current run/attempt/head, but the one tool-issued ZIP URL retrieval returned HTTP403; its XML/run-context bytes were not inspected and no alternate route was attempted. Logs suffice for checkout, owned-case execution and nonempty terminal denominator. Identities/reasons of the two skipped tests are not printed and remain unestablished, not passes. Classic protection/rules reads remain held as unreadable-policy gaps. Ordinary merge must respect GitHub enforcement; no bypass or settings change. The two prior failed continuation metadata writes remain unestablished-error holds, untouched. Non-Unix fallback, same-inode writes inside one ctime tick, concurrent replacement, hostile-writer authentication and performance improvement remain nonclaims.
Replacing a source directory could reuse classified facts for different files whose size, mtime and ctime matched. Bind the Unix corpus fingerprint to device and inode and advance only its mapping generation to 0.4. Existing cache generations remain intact.
Closes #7850. Parent #3794 stays open; #6758's source-read performance work and #4515's broad packaged tamper corpus keep their existing owners. Ordinary same-repository product source repair; no release, publication, settings or credential changes.
Contract: RIPR-SPEC-0005. Production owner:
analysis/seam_cache.rs::stat_signature, consumed by full and compact inventory. Source repair is six identity-encoding lines plus the corpus-generation change; evidence covers the public CLI.Acceptance and validation:
78312b335cdb1558372aded3a4911073052753a9,worktree doctor,check-fastandcargo check --locked -p ripr --all-targetspassed. The zero-path base selector was independently verified.alpha/ two seams while independent cold producedbravo/ one seam. Both 40-byte fixtures also compile independently.cargo test --locked -p ripr --test cache_clear_safety -- --test-threads=1: 12 passed, zero failed/ignored. Full and compact cases each run separate cold, warm, directory-edit, independent cold and process-restart sequences. Literal owner/kind/expression/count pins precede parity. Full warm trace proves the fingerprint shortcut was consumed. Prior cache entries survive byte-for-byte.artifact.generated_atand its enclosingcontent_sha256; all input identity, scope, limitations and evidence remain compared. The earlier volatile-field oracle failure is retained separately and is not claimed as product red.e8412831b4336903ca64b14788635644027e1f93(tree00b52292defa4450ce4f7f69b99285178caee890): review record. The two automated verification questions have source-backed dispositions, and there are no inline review threads.check-fastpassed 14 gates over six verified paths.precommitpassed on exact head e841283, merge base 78312b3, report digestsha256:693fd79675a353e58db341f5fdea328d7b84972824fede26e2efc897710c1b39. Final exact-head regressions: 2 passed, zero failed/ignored. The first shaping session lost terminal status in an environment restart; it is retained as unestablished, and the resumed serial run completed with native exit0.Ripr Rust Small Resultqualification.3ae4456b2c627090d35830a707238a2c85ff59da, parentsb81496ae2127e62c15b92472e92e2409ece4b86aand exact head e841283, treeb3bed30c5e7ec3effbb1906cb5f19533de314d46. Current-main 83d5b20 local merge-tree is conflict-free (0ed6b035355a853f2b02d9eeba462ec0e3c78ff1). Later owner-pin/badge/suppression changes add no cache prerequisite or change this no-test fixture's source identity. No behind-only branch rewrite.Environment: Linux x86_64, Rust1.95.0, 4 CPUs, 16GiB memory limit; serial Cargo with 12-minute command bounds. Owned worktree and target only; 8GiB reserve and 13GiB conservative additional-growth budget. No speedup or wider performance claim. Windows keeps its existing no-fingerprint fallback; this regression's timestamp-collision stimulus is Linux-only. Same-inode edits inside one ctime tick, hostile cache-writer authentication and analysis-time concurrent replacement remain outside this claim.
Changelog disposition:
changelog.d/7850-corpus-file-identity.mdfollows the canonical fragment example:<!-- section: Fixed -->, a-bullet and trailing(#7850). No output schema/support-tier change. Traceability adds both behavior tests to RIPR-SPEC-0005. Revert this squash commit to roll back the claim; no cache deletion or migration is required.Continuation: owner is the delegated cache-recovery Codex session; branch
fix/cache-directory-swap, basis78312b335cdb1558372aded3a4911073052753a9. Published candidate: PR #7864 / e841283; local/independent review is complete. Next: explicit Ready transition requests the existing required qualification route, inspect actual checkout/denominators and findings, then normal protected squash merge after requirements pass. Frozen exact-head executable SHA256e35158a25bd9a870365964978b8e001947bf7cc34313d154ed1a438288a05878. Worktree/target and original red witnesses are retained for this open PR's review/reproduction. GitHub CLI repository read returned Forbidden and was not retried. Source Git transport and connected issue operations succeeded.