Repository navigation
Defer busy native background updates before fencing writes - #1348
Merged
selfcontained merged 2 commits intoOct 29, 2026
Merged
Conversation
selfcontained
marked this pull request as ready for review
October 29, 2026 09:13
selfcontained
deleted the
agt_b38285dd474b/defer-busy-background-updates-before
branch
October 29, 2026 15:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background and deferred native update attempts currently request the write-maintenance fence before discovering known busy work, briefly rejecting sends on each attempt. Add a conservative signed busy preflight before recovery preparation so those attempts withdraw and retry without fencing. A verified idle read only reaches the unchanged authoritative fence, drain, fresh activity/host rechecks and protected recovery path.
Explicit manual and remote installs retain their existing authoritative install path; later deferred retries use the conservative background policy. Missing, failed, malformed or unverifiable activity defers automatic attempts. Revalidate the full journal, intent, running state, recovery lock and attempt generation after the read. Coalesce completion/withdrawal retry scheduling and reject stale timers while retaining five-minute/twelve-retry bounds.
Validation on final head
fed3033d:pnpm run check: passed.pnpm run test:e2e: 261 passed, 13 skipped.No production server or web source changed. No installed update, VM, production mutation/restart or rollout was used. Busy/stop/quiesce dependencies in the Fastify regression harness are controlled fixtures; native and browser proof do not constitute an installed update test. CI results are tracked on the current head separately.
Task: tsk_c201a24752cd. Independent of unmerged accounting repair #1344. Merge requires explicit user approval; no rollout authorized.