You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ui-server: deferred startup recovery is not retried while the host runs and keeps only the last cause #4437
Part of #4426 (follow-ups from #4278). Found in the review of PR #4435.
Context
On a capacity or storage refusal, recoverAtOpen (packages/ui-server/src/brain/turn-journal.ts:150-163) leaves the row for the next open, and nothing retries it on the running host:
maintain (:628-642) calls only the ledger's recover.
A dead turn stays recording, and a dead revert stays applying, which excludes its turn from collectOne (:652-656).
Each deferral overwrites journal.cleanup.lastFailure and registers a new settings channel (:158).
Scope
The row-recovery steps in ready, their retry in idle maintenance, and the deferral notice. No contract change. Out of scope: receipt quarantine (#4430).
Acceptance criteria
After a refusal clears, the next idle maintain() ends dead recording turns and marks dead applying reverts unknown, without a restart.
The retry never touches a turn owned by a live process.
With two or more deferred records, the owner-visible status names every unresolved record or their count, and a later cleanup failure does not erase it.
Deferrals reuse one settings channel.
Each test is shown failing with its guard removed.
Activity