Repository navigation
fix(update): avoid stop advice after preactivation failure - #177129
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 maintainer review before merge. What this changesThis PR requires recorded installed-runtime recovery admission before recommending Gateway stop-and-repair maintenance. Example: A Git update fails with snapshot-capacity-insufficient while Gateway 2026.7.1 remains healthy under profile work.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Both earlier findings are resolved, and this PR fixes misleading recovery advice still present on current main; no remaining actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe update CLI combines recovery-owner decisions and Gateway verification results into persisted next-action guidance shown in terminal output and update reports. flowchart TD
A[Update failure] --> B[Recovery admission owner]
B --> C[Recorded recovery facts]
A --> D[Gateway verification]
C --> E[Next action selection]
D --> E
E --> F[Ledger and user report]
Technical reviewBest possible solution: Keep recovery admission authoritative and use its recorded outcome to distinguish unfinished maintenance from an untouched healthy Gateway. Do we have a high-confidence way to reproduce the issue? Source tracing shows that healthy preactivation recovery reaches the same main-branch guidance as admitted forward recovery; the added regression composes Git admission, verification, publication, SQLite history, and rendering with mocked health observations. Is this the best way to solve the issue? The patch is a focused repair: the existing recovery owner records admission, and the existing guidance owner consumes it without adding another lifecycle path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fb855ce3c5e3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +16, Tests +120. Total +136 across 6 files. Added test files: 0. View PR surface stats
Review metrics
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 (1 earlier review cycle)
Reviewed October 19, 2026, 4:53 AM ET / 08:53 UTC (Revision 2). |
|
@clawsweeper re-review Please review corrected head Exact-head CI run 39224130911, attempt 1, has passed all three focused suites: guidance 30/30, database rollback 13/13, post-update repair 43/43. The old-code negative control remains unexecuted; broad CI is still running. |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
…177129) * fix(update): avoid stop advice after preactivation failure * fix(update): retain rollback detail in recovery guidance
What Problem This Solves
Fixes misleading stop-and-repair advice when a Git update fails before activation and the existing Gateway remains healthy.
User Impact
Operators get the actual failure and retry command while their unchanged Gateway keeps serving. Recovery that intentionally retains an installed runtime still explains how to finish maintenance, using the selected profile and preserving any recorded rollback refusal or failure.
Why This Change Was Made
A healthy service does not prove the candidate was activated or state was migrated. Record successful installed-runtime recovery admission at its owner, and require that fact before offering maintenance advice. The message describes the installed Gateway and retained state without inventing migration or rollback refusal.
No schema, restart, rollback, or migration behavior changes. Production delta: +19/-3; the added lines record the authoritative recovery-admission fact and retain actual rollback-outcome detail.
Evidence
fc33aad8caught two corrections: retain actual rollback-refusal detail, and create canonical profile paths before the recovery run. Both are fixed in0cea146e6f6.