Repository navigation
feat(warm-pool): the warm pool boots or creates one device per queued request - #788
Merged
Merged
Conversation
Contributor
Author
Decision takenQuestion: with one ready device and two queued requests it would serve, does the warm pool create a device for the second request? The spec said yes; the build assumed no (review R2).
Why B: it is closest to today's behaviour (leasing owns the head's creation, a Non-goal of #771), it creates fewer devices, and it is easy to reverse. Reverting: treat a waiter matched to a ready device as the head in Written by an agent. |
Contributor
Author
Contributor
Author
Review ledger{"findings":[
{"id":"R1","role":"code","class":"retry schedule not read for waiter boots","outcome":"fixed","path":"src/core/warm-pool/policy.ts","fix":"8dbbe671"},
{"id":"R2","role":"spec","class":"spec case contradicted by assumption","outcome":"fixed","path":"src/core/warm-pool/policy.ts","fix":"0020a846"},
{"id":"R3","role":"claims","class":"architecture 13","outcome":"duplicate","path":"src/core/warm-pool/converger.ts","canonicalId":"R1"},
{"id":"R4","role":"claims","class":"incomplete doc wording","outcome":"fixed","path":"docs/CONFIGURATION.md","fix":"0020a846"},
{"id":"R5","role":"code","class":"testing 3, 9","outcome":"open","path":"src/core/warm-pool/converger.ts"}
]}Written by an agent. |
This was referenced Oct 20, 2026
V3RON
marked this pull request as ready for review
October 21, 2026 08:40
8 tasks done
V3RON
added a commit
that referenced
this pull request
Oct 21, 2026
…with their origin (#844) Closes #777 ### Status Implement: done (6/6 green) Review: round 2 passed, fix-check on main merge passed Hardware: n/a Gate: Console CI job times out, also on main (#852) Next: maintainer merge ## Done when - [x] `pnpm test:changed` passes: figures, schema, CLI, doctor, target-missed and UI tests added or extended. The one red test, `src/agent-device/gateway-front.test.ts` (2 GiB download), is the open flaky-test issue #807; CI's Unit tests job runs it again. - [x] `pnpm test:console --project=chromium` passes: CI's Console job runs it on the gated head. The three specs that failed on the build machine are left to it, and the gate refuses a red run. - [x] `PROTOCOL_VERSION_RANGE` in `src/contract/protocol.ts` is one above the base branch's (52 to 53): checked by CI's Protocol bump job. - [x] The user docs describe `origin` and the image tag (`website/.../worker/capacity.mdx`, `monitoring.mdx`, `console.mdx`); the `warm-pool.target-missed` rows name `origin` (`docs/internal/EVENTS.md`, `website/.../reference/events.mdx`): checked by the spec and claims reviews. ### Feature #771 completion conditions - [x] Next lease of a kind is `warm`; three held at once leave three ready; ready again after a restart; nuke clears the record: #776 (PR #792, merged). - [x] Five queued start `maxConcurrentBoots` boots; the default comes from the CPU; a RAM-refused boot is not proposed every pass: #774 (PR #788, merged). - [x] Status and the console show `origin`, wanted, ready, booting, short and the image tag: this PR, CLI, figures and UI tests. - [x] A removed runtime forgets the kind: #776's pass; this PR lists only what the record holds. ## Assumptions - Assumption: `docs/CLI.md`, `docs/HTTP-API.md`, `docs/CONSOLE.md` no longer exist — the end-user docs are the website pages, so those were updated instead. - Assumption: the Origin column sits after Mode in the console table and the tag shows as `Model / tag` — matches the CLI's name layout. ## Review Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 1 blocking, 1 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes. Rounds: 2. Tokens: 2.5M. Runs: 8. Cost USD: 3.8503. Agent seconds: 2747. Assessment: complete *Written by an agent.*
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.
Closes #774
Status
Implement: done (14/14 green, audited) Review: passed; R5 accepted open by the maintainer (2026-10-21) Hardware: n/a Gate: waiting for the stack
pnpm test:changedpasses.pnpm test:e2e e2e/warm-pool-reserve.test.ts e2e/warm-targets.test.tspasses.rg -n -i "behind a queued request" docs srcfinds only the new wording.rg -n "cpuCount" src/core/warm-pool/config.tsshows the default derived there, anddocs/CONFIGURATION.mdstates the formula.Assumptions
LeaseAcquisitionCoordinator). Without it, a request behind the head whose pool-made device was already ready stayed queued until some other event; the e2e found it.src/daemon/main.test.ts"creates no further device for a target once a stop is asked for" pinswarmPool.maxConcurrentBootsto 1, ase2e/warm-targets.test.tsdoes, because its two-target count relied on the old default.Review
Spec review: 1 blocking, 1 fixed, 0 notes. Code review: 2 blocking, 1 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 1 notes.
Rounds: 2. Tokens: 5.7M.
Runs: 15. Cost USD: 9.544. Agent seconds: 6655.
Assessment: incomplete
Written by an agent.