Repository navigation
fix: verify deferred activation in package recovery acceptance - #208901
Conversation
- Check a fresh pending preparation receipt without expecting in-place npm replacement. - Start the prepared release through the existing Gateway helper and verify serving identity and terminal run receipt. - Preserve recovery evidence and authored settings across preparation and activation.
|
🦞👀 ClawSweeper review completeClawSweeper finished reviewing this revision. |
- Keep the incomplete-preparation negative control valid under strict indexed access checks.
|
Codex review: passed. What this changesThis PR verifies package preparation separately from activation at the next Gateway start. Example: A recovered 2026.9.10 candidate prepares 2026.9.11 with --no-restart.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it corrects an acceptance assertion that contradicts deferred activation, preserves the recovery checks, and introduces no definite correctness or security defect. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe upgrade-survivor release harness drives published updaters through interrupted publication, repair, another update, and Gateway startup, producing recovery evidence consumed by sanitized diagnostics. flowchart LR
A[Published updater interruption] --> B[Candidate repair]
B --> C[Deferred update preparation]
C --> D[Preparation evidence checks]
D --> E[Resident launcher Gateway start]
E --> F[Serving identity and run receipt]
F --> G[Sanitized acceptance diagnostics]
Technical reviewBest possible solution: Retain the existing recovery harness and verify preparation, subsequent launcher activation, and preserved recovery evidence as separate stages. Do we have a high-confidence way to reproduce the issue? Source establishes the contradiction: --no-restart prepares a separate release while current-main acceptance requires immediate replacement of the original package; no target code was executed during this review. Is this the best way to solve the issue? The change uses the existing preparation receipt, Gateway start helper, RPC identity, and run reader without introducing another activation owner or compatibility alias. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 59b9268bbed7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +116, Other +63. Total +179 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 30, 2026, 2:07 AM ET / 07:07 UTC. |
|
Landed. The package-activation-recovery lane now checks the documented |
…ogic * commit 'f7ccd914102ab408606c45c0aa3adbd8427051eb': (1290 commits) refactor(ios): remove unreachable settings and automation controls (#208958) fix: verify deferred activation in package recovery acceptance (#208901) improve(ci): avoid unused adaptive scoring work (#208926) chore(ui): refresh control ui locales (#208959) test(agents): verify user recall and file state across OpenAI compactions (#208909) fix(ui): update the sidebar on startup and recovery screens (#207967) fix(whatsapp): quote the first queued swipe-reply answer (#208791) test(memory-wiki): generate metadata replacement transitions (#208932) fix(ui): hide Claude injected context from chat (#207234) fix(ui): count people instead of emoji in reaction badges (#207235) fix: keep Daybreak when another provider's model list fails (#208883) test(telegram): check the registered preload at polling worker startup (#208936) fix(qa): test Slack verbosity with one direct shell call (#208023) fix(qa): wait for Telegram messages before checking their formatting (#208024) feat(ios): show build details at the bottom of Settings (#208944) chore(ui): refresh control ui locales (#208937) fix: goals stop after native child-result handoffs (#193024) fix(ui): show current tool actions in collapsed chat activity (#208925) improve(ios): put About last in Settings (#208928) test(memory-wiki): generate human-note preservation regressions (#208921) ...
What Problem This Solves
The package-publication recovery lane requests
openclaw update --no-restartbut then requires the original npm installation to contain the prepared version. That contradicts deferred activation and fails the retained 2026.9.8 recovery run.User Impact
Test-only correction; no product or release changes. Recovery acceptance now distinguishes preparation from the next Gateway start.
Why This Change Was Made
running/activatingreceipt, future target, completed preparation and candidate checks, and unchanged serving package, recovery evidence, and settings.finished/succeededreceipt.Evidence
bash -nandnode --checkpassed for the changed lane helpers.upgrade-survivor-package-activation.test.tspassed (1.56s test execution), including the pending-preparation and activation negative controls.isOpenAIResponsesApiexport from@openclaw/ai/internal/openai-responses-payload-policy. It did not reach the changed assertions. The separate npm 12 installed-tree budget check also failed.d96e550a26c3: the requested2026.9.8/package-publication-recoverylane passed, as did the policy-added2026.9.9publication-recovery lane and the full acceptance workflow.525bd54eb27d..d96e550a26c3: complete, patch correct, no code findings, security cleared. Execution proof was still pending at review time.