Repository navigation
fix(update): explain what holds a blocked update - #182774
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: needs changes before merge. What this changesThis PR explains retained update custody and carries that explanation into CLI output, Gateway responses, automatic-update history, and chat summaries. Example: The cancelled updater previous-update-owner has exited while its version-4 custody remains.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR addresses misleading update refusals on current main, but its new recovery commands lose custom installation paths and need a focused correction. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherCLI, Gateway RPC, and automatic updates request admission from the managed-handoff owner, which reads installation custody and returns either a prepared helper or a refusal consumed by update reporting. flowchart TD
A[CLI update] --> D[Managed handoff owner]
B[Gateway update RPC] --> D
C[Automatic update campaign] --> D
D --> E[Existing custody and process identities]
E --> F[Blocker explanation]
F --> G[CLI response and update history]
G --> H[Concise chat notice]
Technical reviewBest possible solution: Keep the shared custody explanation and generate its recovery commands through the existing installation-target formatter. Do we have a high-confidence way to reproduce the issue? Current-main source supplies already-running wording for joined custody regardless of observed liveness, and the supplied regression constructs an exited cancelled owner; this read-only review ran no target code. Is this the best way to solve the issue? One explanation from the existing handoff owner is the smallest complete approach, provided its recovery commands retain the diagnosed installation's selectors. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e32e9159d381. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +68, Tests +141. Total +209 across 13 files. Added test files: 1. View PR surface stats
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 Reviewed October 24, 2026, 2:47 PM ET / 18:47 UTC. |
|
Merged via squash auto-merge.
|
…update (#182774) (cherry picked from commit 87aa01a) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes: another update is reported as “already running” when a failed or cancelled updater has exited but its installation custody is still retained.
User Impact
The refusal now names the lease type, owner, lease version, helper/executor PIDs, observed process identity state, and last activity. It gives profile-aware status and repair commands instead of suggesting that waiting will necessarily finish the update. RPC, CLI and automatic-update history preserve the explanation; chat no longer claims the updater is running.
This does not delete locks or weaken admission. Live or unverified writers remain protected. An older installed Gateway/CLI needs this code before its messages change.
Why This Change Was Made
The underlying cancelled-custody repair already landed in #177932 (
45314c992e24721bba62685795f1be533807656b), including recovery after Doctor failure/deferral without restarting the cancelled family’s grace period. Current-main tests confirm that repair settles dead custody and permits the next update, while retaining live children and unverified recovery. This PR fixes the remaining misleading report at both fresh-helper and cached-handoff admission. It adds no new state or recovery policy.Evidence
Independent API-only full review found one P2 (profile-aware recovery commands); it is fixed and the independent delta review is P0–P2 clean. To satisfy existing line-cap ratchets, the unchanged root-identity assertion moved to a sibling module (same export) and the unchanged startup fixture type moved to its existing test-support module. No coverage was removed. Exact-head required CI remains the landing gate.