Skip to content

Configuration reference says warmPool.enabled keeps released devices booted #1373

Closed

Description

@V3RON

website/src/content/docs/docs/reference/configuration.mdx:118 describes warmPool.enabled as "Keep released devices booted, and ...". Since ADR 0061 §2 every virtual device is destroyed when its lease ends, so no released device is kept. The rest of the line (learned kinds, false shuts idle devices down) still holds.

Found while triaging #1371.

Written by an agent.

Activity

  1. added
    bug:new
    documentation
    on Nov 6, 2026
  2. V3RON commented on Nov 6, 2026

    @V3RON
    ContributorAuthor

    This was generated by AI during triage.

    Triage notes

    Confirmed: a docs-only defect.

    • website/src/content/docs/docs/reference/configuration.mdx:118 says warmPool.enabled will "Keep released devices booted".
    • ADR 0061 §2 (Accepted) says a released virtual device is destroyed, and the next lease gets a new copy. The leasing manual (src/leasing/AGENTS.md) says the same: "Reclaim deletes a virtual device whatever lease.identity says". Issue iOS: every simulator is a copy of a seed, and every virtual device serves one lease #1204 shipped it.
    • The rest of the row still holds: learned kinds kept ready, and false shuts idle running devices down.
    • No other page or code comment repeats the phrase. docs/internal/adr/0038…:27 says "a released device is booted back". That is an older ADR that 0061 narrows, so it should not be edited.

    Duplicates: none found. #1371 (where this was found) is a separate warm-pool behaviour bug, not this text.

    Suggested fix: one line. Drop "Keep released devices booted, and" and start the row at "Keep ready as many of each kind…". No test needed, and nothing public changes.

    Labels: added documentation. Left at bug:new so the maintainer can set bug:ready. A failing test can't reproduce a docs-text bug, so the usual triage-bug repro step doesn't apply.

    Written by an agent.

  3. self-assigned this
    on Nov 6, 2026
  4. V3RON commented on Nov 6, 2026

    @V3RON
    ContributorAuthor

    Supersedes the report above.

    Reproduction

    Confirmed. The defect is in website text, so no test can fail on it, and no bug/1373-repro branch is pushed. A test that pins the sentence would only copy the page. The behaviour that makes the sentence false already has passing fast-lane tests (testing rule 7):

    e2e/warm-pool-reserve.test.ts:64   (warmPool.enabled at its default, true)
      "with reserveRunning.ios 1 and an iOS running limit of 3, three released leases are
       deleted and leave two new devices warm"
    e2e/lease-lifecycle.test.ts:10
      "catalog -> lease --detach -> status/list agree -> release -> device deleted -> events"
    

    Root cause

    Defect, in docs: website/src/content/docs/docs/reference/configuration.mdx:118 (origin/main 42b114c). The row was not updated when ADR 0061 §2 made every virtual device single-use. A release ends in ReclaimCoordinator.reclaim (src/core/reclaim-coordinator.ts:103), which sends every virtual device to #retireSpent, and that destroys it (#deleteSpent, line 354). warmPool.enabled only switches the converger (src/core/warm-pool/converger.ts:219, 346, 436), which keeps never-leased ready devices. The rest of the row is still true.

    Simplest fix

    Delete "Keep released devices booted, and " so the cell starts at "Keep ready as many of each kind…". Tried, then restored:

    $ pnpm exec vitest run --project unit src/core/config-reference.test.ts   # with the edit
     Test Files  1 passed (1)
          Tests  1 passed (1)
    

    Alternatives rejected

    • Add a test that reads the cell: it pins prose, and the behaviour is already proven.
    • Edit ADR 0038:27 ("a released device is booted back"): ADR 0061 narrows it; an accepted ADR is not rewritten.

    Risk

    • Docs only. No other page in website/src/content repeats the claim.

    Fast track

    • Defect: yes
    • Fix tried: no — no failing test exists for docs text; the page's key test stayed green
    • Nothing public added or broken: yes
    • No ADR or rule changed: yes
    • One fix: yes

    Side findings

    Written by an agent.

  5. removed their assignment
    on Nov 6, 2026
  6. added
    bug:ready
    on Nov 6, 2026
  7. self-assigned this
    on Nov 6, 2026
  8. removed
    bug:new
    on Nov 6, 2026
  9. V3RON commented on Nov 6, 2026

    @V3RON
    ContributorAuthor

    Delivery run

    Merged: #1377 (#1373)
    Parked: none
    Waiting: none
    Decided: none

    Written by an agent.

  10. added a commit that references this issue on Nov 10, 2026
    7b13aec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug:readydocumentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions