Repository navigation
Conversation
…three booleans #1664 Signed-off-by: Nik Cubrilovic <[email protected]>
This was referenced Nov 11, 2026
Contributor
Author
|
All commits of this draft are on main (landed in the v0.0.175 bundle). Closing the draft. |
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.
Part of #1664 (the waiter half; the report
renderblock is a separate PR because it changes the JSON schema).cloud-fetcher.tskept a waiter's state in three booleans,settled,dispatchedandracing, whose legal combinations lived only in comments. They are one union now:The issue names three states; the code has a fourth that was always legal and could not be dropped:
dispatched(terminal handling committed, the one-and-only fallback fetch started and has not settled the waiter yet; a fallback settles asynchronously). Merging it intoqueuedorsettledwould let a re-sentcompleteditem (#992) or an overlapping fallback sweep double-fetch. The illegal combinations (racingwithoutdispatched,racingwithsettled) can no longer be written.No behaviour change:
claimmoves queued to dispatched and refuses any other state, the headroom timer moves dispatched to racing,resolveWaiterandrejectWaiterend in settled, the demux and the retire checks read the same four states the boolean tests encoded. No user-facing change, so no CHANGELOG bullet.Acceptance criteria (#1664, waiter AC)
cloud-fetcher(13),cloud-fetch-headroom(10, the racing and claim paths),cloud-fetcher-redirect-hops(9),rendered-fetch(6)cloud-fetcher-waiter-state-1664.test.ts) pins the union and fails if the booleans returnChecks
tsgo (audit-engine), root lint. Temp HOME. Goldens not run locally (CI runs them).
Agent skill and docs