Repository navigation
fix: release validation misses interrupted package upgrades - #167377
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, 4:01 PM ET / 20:01 UTC (Revision 4). ClawSweeper reviewWhat this changesThis PR adds release checks for interrupted published-package upgrades, repeated candidate repair, package and settings preservation, and a subsequent update. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR provides useful qualification coverage absent from current main. Earlier findings are resolved, and the completed five-cell qualification addresses the previous review’s evidence request; no new patch defect was identified. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherRelease validation installs published OpenClaw packages in disposable Docker environments and exercises their updater against a candidate package. The scenario planner selects cases, while the harness checks outcomes and publishes diagnostic receipts. flowchart TD
A[Release validation request] --> B[Baseline and scenario planner]
B --> C[Published package in Docker]
C --> D[Publication interruption or Doctor failure]
D --> E[Candidate repair twice]
E --> F[Distinct subsequent update]
F --> G[Package and settings preservation checks]
G --> H[Diagnostic receipts]
Technical reviewBest possible solution: Maintain released-writer fault coverage in the existing survivor harness alongside the complementary runtime recovery fixes. Do we have a high-confidence way to reproduce the issue? Not applicable to a runtime patch: current main’s scenario catalog establishes the qualification gap, and the recorded Docker runs exercise the added fault scenarios. Is this the best way to solve the issue? Yes, extending the existing published-upgrade harness preserves one qualification owner and its planning, omission, and diagnostic contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4f33fe7402bf. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +415, Config +3, Other +596. Total +1014 across 24 files. Added test files: 1. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: LabelsLabel 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 (3 earlier review cycles)
|
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]>
…#167377) * test(update): validate pinned released package recovery * test(update): qualify recovery on native storage and preserve settings * fix(test): preserve pinned package recovery qualification cells * test(update): reset recovery fault markers for each invocation * test(update): count pinned recovery omissions in scheduler results
What Problem This Solves
Fixes a release-validation gap: successful upgrades and same-version crash tests did not prove that a new package can recover a shipped updater’s interrupted publication and then update again.
User Impact
No direct runtime change. The standard
reported-issuesrelease plan now retains five recovery cells for the shipped strict readers, even after latest/previous release aliases advance. Runtime fixes are in #167330 and #167358, building on Scott’s merged repair.Why This Change Was Made
Use the existing upgrade-survivor harness with actual published packages:
Faults are external observers in disposable test processes, not production bypass flags or fabricated recovery journals. Live packages/journals use native runtime storage; diagnostic outputs use the artifact mount.
Evidence
publication-complete, SIGKILL exit 137, and metadata-only drift.update-recovery-pendingbefore candidate access.9324ed61ca56without dropping pinned cells or main scheduling priorities. Final conflict proof: 186 tests passed (Vitest 63.53 s; wrapper 68.81 s), shell syntax passed, and independent P0–P2 review found no actionable findings. Selected guards, formatting, root typechecks, script lint and test lint passed. The full changed-file gate has an inherited Knip failure forClientVoiceToolEffectinsrc/talk/client-voice-session-store.ts; source, Knip inputs and symbol references match the incorporated main revision. That check is not claimed green.The inspected 9.7→9.8 release qualification exercised successful upgrade paths. This adds the missing composition of a released writer, interruption/error, newer repair, and a subsequent update; it does not relabel previous happy-path runs as fault coverage.
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.