Skip to content

Warm pool: off by default and deprecated #2038

Backlog

Description

@V3RON

Part of #2033.

Scope

A worker with no warmPool config boots devices only for leases and learns nothing. A config that sets warmPool.targets without warmPool.enabled says so at start. The website says the pool is off by default and deprecated. A worker that sets warmPool.enabled: true keeps the pool as today.

If it goes wrong: a worker still boots spares nobody asked for, or an operator who used targets loses their spares with no word in the log.

Technical spec

Commit 62c7299.

Rows

  • Behaviours: B6, B7, B8, B9
  • Interfaces: I1, I2
  • Existing code: X5, X6, X7, X8, X9, X11, X14, X18, X19

Facts

# Fact Source
F1 The daemon collects loadConfig's warnings at start and logs them; the CLI's own config loads drop them src/daemon/main.ts:251
F2 The release notes are GitHub's generated notes from PR titles, written into CHANGELOG.md at release .github/workflows/release.yml:245, :255
F3 withConfig deep-merges into the e2e defaults, so a file that turns the pool on keeps refillDelayMs: 0 e2e/helpers/env.ts:355

Modules touched

src/core/warm-pool/config.ts, src/core/config.ts, src/core/config-warm-pool.test.ts, the unit tests and harnesses in X11 that rely on the pool, the e2e files and helpers in B8 (e2e/helpers/agent-device-targets.ts included), e2e/release/07-baselines-warm-pool.md, e2e/release/09-memory-pressure.md, src/core/warm-pool/AGENTS.md, the website pages in B9. Searches: rg -n "warmPool" src --glob '*test*', rg -n "warmPool" e2e, rg -ln "spare|learned kind|warm" e2e, rg -il "warm pool|warmPool" website/src/content/docs.

Rules in play

  • ADR 0101 §1: the default is off; the one runtime signal is I1 for a targets-only config.
  • ADR 0101 §2: website pages say deprecated and removed in a later release; warmPool.quarantine.*, memoryPressure.pauseWarming, the warm/booted sources and warm-hit are not described as deprecated.
  • Documentation rule 9: the public config default changes, so the website pages in B9 change in this PR.
  • src/core/AGENTS.md: a part takes its config slice; the warning lives in the worker branch of loadConfig.

Retired words

  • on by default (of the warm pool): the pool is off by default and deprecated; warmPool.enabled: true turns it on

Tests

Seam: loadConfig (src/core/config-warm-pool.test.ts:24) with a warn spy, as src/core/config-platform-and-driver-settings.test.ts:40; createHarness({ startPool: true }) for the lease at the default.

  • B6: An operator starts a worker with no warmPool config: warmPool.enabled is false, nothing is learned on a lease, and no device is booted after it ends: no key: false; enabled: true: true; enabled: false: false; testConfig(): false; a lease granted and released at the default: no learned kind, no boot
  • B7: An operator starts a worker whose config sets warmPool.targets and no warmPool.enabled: the load warns once with I1, and the pool stays off: one target, no enabled: one warning; targets in the overrides layer only: one warning; targets in the file and enabled: true in the overrides: none; enabled: true: none; enabled: false: none; targets: []: none; gateway role: only the gateway's own "Ignoring" warning (src/core/config-role-checks.ts:129)
  • B8: A maintainer runs the e2e suite and the release checks: every test that needs the pool turns it on in its own config (or no longer waits for a spare) and passes; the others pass at the new default: opt in: e2e/warm-pool-learned.test.ts, e2e/warm-pool-reserve.test.ts, e2e/warm-targets.test.ts, e2e/slow-warm-pool.test.ts, e2e/lease-lifecycle.test.ts:174, e2e/doctor-drift.test.ts:58, e2e/daemon-lifecycle.test.ts:278 and :325, e2e/daemon-restart.test.ts:24, e2e/physical-devices-core.test.ts:289, :317 and :333, e2e/event-history.test.ts:101, e2e/capacity-cleanup-nuke.test.ts:141, e2e/gateway-smoke.test.ts:369, e2e/console/screen.spec.ts:70, e2e/slow-ios-window.test.ts:63, e2e/slow-ios-stream.test.ts:220; e2e/helpers/agent-device-targets.ts:156 and :204 (warmUp, waitForFree wait for spares the pool boots) and their callers e2e/helpers/agent-device-targets.test.ts:113, e2e/slow-agent-device.test.ts:195, e2e/slow-agent-device-gateway.test.ts:154 and :179, e2e/slow-e2e-provider.test.ts:49: the pool on in their config, or the helpers stop waiting for a spare; e2e/slow-ios-slim.test.ts:384 (a warm slim device rebooted); the release checks e2e/release/07-baselines-warm-pool.md:8 and e2e/release/09-memory-pressure.md:7 turn the pool on first; e2e/waiting-requests.test.ts:54 expects the second waiter's own capacity reason instead of "behind an earlier request" (B3); the fast lane at the default; any further file rg -n "warmPool" e2e and rg -ln "spare|learned kind|warm" e2e find
  • B9: A reader opens the website: the warm pool pages and the configuration reference say the pool is off by default and deprecated, how to turn it on, and that targets need enabled: true: concepts/warm-pool.mdx, worker/warm-pool.mdx, reference/configuration.mdx (the warmPool section), and every other page found by rg -il "warm pool|warmPool" website/src/content/docs that says the pool is on by default or that a lease finds a spare

Done when

  • The PR title starts feat!: and says the warm pool is off by default and deprecated.
  • pnpm test:changed and pnpm typecheck pass.
  • pnpm test:e2e passes on the fast-lane files B8 names.
  • The console lane passes on e2e/console/screen.spec.ts (pnpm test:console --project=chromium e2e/console/screen.spec.ts).
  • pnpm test:e2e e2e/helpers/agent-device-targets.test.ts passes.
  • Slow lane: e2e/slow-warm-pool.test.ts, e2e/slow-ios-window.test.ts, e2e/slow-ios-stream.test.ts, e2e/slow-ios-slim.test.ts, e2e/slow-agent-device.test.ts, e2e/slow-agent-device-gateway.test.ts and e2e/slow-e2e-provider.test.ts pass.
  • The website build passes (pnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjs).
  • rg -n -i "on by default" website/src/content/docs finds no line about the warm pool.

Out of scope

  • Removing any pool code, key, command, event, finding or tab (the follow-up feature).
  • A warning for any other warmPool.* key, a doctor finding or a console notice.

Depends on

Written by an agent.

Activity

  1. added
    task:draft
    on Dec 2, 2026
  2. added
    task:ready
    and removed
    task:draft
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    task:ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions