Repository navigation
fix(update): make completed recovery evidence best effort - #167330
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 8, 2026, 2:38 PM ET / 18:38 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch makes verified package-recovery cleanup best effort, preserves historical evidence, and archives completed journals outside future update admission. Example: A verified update cannot remove its recovery anchor
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 2 items remain Keep open: the fix remains necessary, but packed-release upgrade compatibility still needs qualification before merge. No actionable patch defect was found. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe package updater replaces the installed package and command launchers while recording recovery obligations in SQLite. Repair verifies the installation, closes those obligations, and preserves historical evidence. flowchart TD
A[Update or repair command] --> B[Recovery journal]
B --> C{Operation completed?}
C -->|No| D[Verify installation and current writer]
D --> E[Durably close recovery]
C -->|Yes| F[Preserve and archive evidence]
E --> F
F --> G[Report outcome and admit later updates]
Technical reviewBest possible solution: Keep completion and archival in the existing recovery owner, with released-writer qualification demonstrating preserved settings and evidence through repair and a subsequent update. Do we have a high-confidence way to reproduce the issue? Yes, source and focused regression scenarios establish how obsolete recovery evidence blocks later admission; this read-only review did not execute a failing run. Is this the best way to solve the issue? Yes, the existing recovery owner is the appropriate repair boundary, and the fallback tradeoff is explicitly recorded; packed-release compatibility remains unproven. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b3b40e1615d5. Provenance checked
TestingProof path: in-process harness. Added test files: 6. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +67, Tests +441, Docs +41. Total +549 across 23 files. View PR surface stats
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
|
4cd5478 to
2c6986b
Compare
|
One data point on how common the "obsolete lease identity" case is. On Debian 13
From reading v2026.9.8 and v2026.9.9: a top-level CLI update captures the current store identity as its authority, and If that reading is right, it might be worth noting in the release notes or troubleshooting docs which recovery the 9.9 driver supports for this case until a driver with this PR is installed. |
Backport all required recovery fixes to 2026.10.1: #167302, #167330, #167358, and #167377. Include their missing settlement prerequisites #164997, #165238, and #165607. Close obsolete recovery custody durably before best-effort evidence archival; keep unfinished rollback and current mutation authority strict. Completed history cannot block subsequent updates. Qualify authentic interruptions from pinned 9.8/9.9 updaters plus the unchanged 9.7-to-9.8 negative control. Adapt donor APIs to the release-owned publication and lease database owners. No version, dependency, budget, permission, or publication changes. Proof:619 focused tests passed, including14 release-profile cases; fresh complete69-file P0-P2 review clean. Complete changed gate passed. Exact combined release build and stable/all/soak qualification remain pending. Sources: 3ed1e21 (#167302) 4821885 (#167330) 8879e5e (#167358) bc860ad (#167377) 9497527 (#164997) 5ae6497 (#165238) fb84dd5 (#165607) Co-authored-by: Scott Hanselman <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Keep the canonical completed-history repairs from #167330 and #167358 rather than duplicate their owners. Retain the reviewed Git, native, and optional restart-install-history fixes. Integrated focused validation: 429 infrastructure and 61 CLI tests passed; independent review clean through P2. Co-authored-by: fuller-stack-dev <[email protected]>
|
Independent installed-release evidence for the completed-receipt / obsolete-lease case discussed here. Linux x64, npm-global installation (
Read-only inspection of the retained package activation journal shows:
In the installed bundle, The temporary storage was recreated; the exact event was not reconstructed. Proven impact is the erroneous current recovery status. We have NOT tested whether the next upgrade is blocked. This appears to match this PR's intended fix, so I am adding evidence rather than opening a duplicate regression. Which published npm release/build contains the fix, and what is the supported way for an already-installed 2026.9.9 reader to settle this completed record? The local qualification package labeled 2026.9.9 is not evidence that the published npm package contains it. |
Related: #167302, #164074, #166135. Companion fixes: #167358; release qualification: #167377.
What Problem This Solves
Historical recovery evidence can permanently block future package updates even after the live package is verified or recovery is already complete. This includes changed retained-package metadata or bytes, obsolete helper/anchor and lease identities, and newer completion receipts that shipped 2026.9.8/2026.9.9 cannot parse.
User Impact
Verified cleanup becomes best effort: keep changed evidence, durably close the obligation, report the result, then archive the entire historical control directory. New completion details no longer remain in older updaters’ active admission path. Completed history does not regain restoration authority when filesystems, leases, or retained copies change.
This does not make candidate-only code run before an unchanged, already-blocked 9.8 updater downloads it. A compatible installed recovery implementation is still needed to clear such an existing blocker; releasing a new target alone cannot change old admission code. The maintained released-driver negative control proves this boundary.
Why This Change Was Made
Builds on Scott Hanselman’s merged #167302 and expands this existing follow-up rather than creating a replacement PR:
Archival-failure disposition
Retain the warned fallback. This is an intentional availability choice in the requested best-effort historical-cleanup scope: after a known completed record cannot be archived, preserve it and allow the existing non-journaled package-swap implementation. That particular update has no standalone publication-recovery helper; an interruption can therefore require installer/manual recovery. The warning states that limitation.
This fallback does not apply to an unknown or unfinished operation, does not discard old evidence, does not bypass current writer/journal authority, and does not relax live-package verification. A cleanup-only collision or permission failure must not become a permanent update-admission prerequisite. No new storage schema or intent is introduced. Packed released-writer qualification is completed below.
Scott’s missing
publication-completeeligibility remains in the merged base. The conflict with his public repair test is resolved in this consolidated branch. No new schema version or receipt intent is introduced.Evidence
Completed packed-candidate qualification (2026-10-08)
All five maintained Docker cells passed on their first attempt, with no timeout; final scheduler status is
passedand cleanup joined. The parent independently reranassertPackageRecoveryEvidenceon all five structured receipts.Positive cells used the exact composed candidate
1aa57206f693d5e2fbce607289d0bbeefbff32d1, tarball SHA-25620f5375db04391e3155d1a1386843e8aeb80cade377193b71e7221e5b7d490f7. This is a local qualification package labeled 2026.9.9, not a published release. Runtime owners match #167330 at2c6986b123f8ce44bbeb9c714ab20a3515a73a30and #167358 atd3932c61a3517bb171d4c1242a2699897bae1ee8.Each authentic released writer created its own journal and helper and reached
publication-complete. Installed-candidate public repair and repeated repair exited 0. Full retained-tree inventory, identity and original helper digest, unchanged candidate bytes, and authored settings were preserved. Every positive cell then installed the distinct expected package/build identity2026.9.10-first-hop.0through the updater, with retained evidence and settings still preserved. This supplies the requested shipped-writer compatibility/repair/next-update proof; focused unfinished-restoration refusal regressions remain separate supporting evidence.The negative control confirms unchanged 9.8 blocks before staging/accessing the deliberately absent candidate:
update-recovery-pending,candidateCodeInvoked:false. It does not claim candidate-only rescue of a stranded old updater. Old-reader → external-new-repair → old-reader remains uncovered, and no full release upgrade or release publication is claimed.Frozen trusted harness:
ec0a4e67d8a3ae45e0311cb27a62f4e00b745820. At final harness head6c05dc5bfebacd61b25333d5b07a3a3913c52f80, recovery-specific modules, policy and Docker planner remain byte-identical; shared main phase-logging/restart-fixture changes are covered by focused conflict tests, not claimed byte-identical. Aggregate cell time is 3,490 s (58m10s), excluding setup. These are local Docker measurements, not CI seconds.Current-head required CI is green on all three PRs. Exact-head ClawSweeper reviews completed with no code findings; their outstanding qualification requests are addressed by these results. Existing independent source-review dispositions and the harness's inherited local Knip failure remain recorded, not relabeled as clean checks.