carlos / platform Public

docs: only group members serve storage generations hosts

Runbook: fixed boxes and switch-off members refuse generations locks,
so wakes go to members; dev's hapair fixed boxes (sophie, leo) never
serve them; set the switch on fixed boxes to arm their floor; never
turn members off; lock_not_generations wording and recovery adjusted.
Plan: the same note in the switch-on section and the fix wave list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev cbb7e9afa743550f871d7d5fa3b28f4a51fec901 parent b9e0267
2 files changed, +12 −3
  • docs/region-ha-runbook.md +9 −3
  • docs/superpowers/plans/2026-11-17-region-ha-storage-generations.md +3 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/region-ha-runbook.md b/docs/region-ha-runbook.md
index cfa0bbe42..9016bf548 100644
--- a/docs/region-ha-runbook.md
+++ b/docs/region-ha-runbook.md
@@ -344,7 +344,13 @@ Set `CARLOS_HA_GENERATIONS` in the group's host.env, one group at a time. For gr
- `on`: Each wake copies the previous holder's data into a new folder before serving the host. Existing waits stay as they are.
- `fast`: The same, and a host whose holder released uncleanly or was terminated wakes as soon as [the termination is proven](superpowers/specs/2026-10-26-region-ha-without-claims-design.md#92-confirmation) instead of waiting 15 minutes.
-Turn on `on` first and run the drills before `fast`. Never turn it off once a host has `head.json`. A host with `head.json` keeps using generations whatever the setting says because its lock stays in generations mode. But a host that has `head.json` and an ordinary lock, woken by a box with storage generations off, is refused with `lock_not_generations`.
+Turn on `on` first and run the drills before `fast`.
+
+Only group members serve hosts with storage generations. A box takes such a host's lock only when it is a member of the region's group (its host.env has `CARLOS_BOX_REFERENCE=group`) and its switch is `on` or `fast`. Fixed boxes, and members with the switch off, refuse the lock with `generations lock on a box that takes none (a fixed box, or the switch off)`, so the wake fails there and the host's wakes go to members. Fixed boxes still serve ordinary HA hosts as before. On dev, the fixed boxes in pool `hapair`, sophie and leo, will never serve hosts with storage generations.
+
+Set `CARLOS_HA_GENERATIONS` to `on` on the region's fixed boxes too, in their own host.env. They still refuse hosts with storage generations, but the setting arms their [floor](#the-floor-nothing-below-vg), so they cannot be rolled back to a release below vG that would take such a lock.
+
+Never turn the switch off on a group's members once a host has `head.json`. A member with the switch off refuses those hosts as a fixed box does, so with every member off they cannot wake anywhere.
Before the first group in a deployment is switched on, the console must be at vG or later (see [the floor](#the-floor-nothing-below-vg)). Never roll the console back below vG while any host has `head.json`. An older console reads the host's root folder, not the folder `head.json` names. Its database door, backups, seed copies and drills then return stale data with no error for up to 7 days, and report no replica once the root folder is deleted.
@@ -372,7 +378,7 @@ The box refused to start the host. The journal line names the reason:
- `no_l0` and `empty_plan_with_data` mean the previous holder's copy holds no usable starting point.
- `file_over_5gib` means one file is too large to copy.
- `head_missing` means generation folders exist but `head.json` does not.
-- `lock_not_generations` means a box with storage generations off met an ordinary lock on a host that has `head.json`. Every box at vG or later keeps a generations lock in generations mode, so a binary below the floor took that lock, or someone edited it by hand.
+- `lock_not_generations` means a box that takes no generations locks (a fixed box, or a member with the switch off) met an ordinary lock on a host that has `head.json`. No box at vG or later writes an ordinary lock over a generations lock, so a binary below the floor took that lock, or someone edited it by hand.
L0 is the newest level of the host's database copy, where each uploaded change lands first. The host stays down and pages once an hour. Do not edit `head.json` or the lock to get past it.
@@ -386,7 +392,7 @@ To restore the host, choose a folder to restart it from and point the host at it
A host refused with `head_missing` has no `head.json`, and `carlos ops` has no recovery for it yet: point refuses it.
-A host refused with `lock_not_generations` had its lock taken by a binary below the floor, or edited by hand. Point does not fix it. Before you switch the group on, list the host's root layout, the files under `instances/<host>/` outside its `g-<number>/` folders, and look for LTX files written after `created_by.at` in `head.json`. Those are changes the binary below the floor wrote after the last generations take. Switching on makes the next wake copy from the folder `head.json` names, so those changes are not served, and the box later deletes them with the root folder. If you find any, copy them somewhere safe and ask before you switch on. Then find the box below the floor and roll it forward.
+A host refused with `lock_not_generations` had its lock taken by a binary below the floor, or edited by hand. Point does not fix it. The host's next wake on a group member with the switch on takes it in generations mode and copies from the folder `head.json` names. Changes the binary below the floor wrote are then not served, and the box later deletes them with the root folder. To find them, list the host's root layout, the files under `instances/<host>/` outside its `g-<number>/` folders, and look for LTX files written after `created_by.at` in `head.json`. If you find any, copy them somewhere safe and ask what to do with them. Then find the box below the floor and roll it forward.
### Old folders and the clock
diff --git a/docs/superpowers/plans/2026-11-17-region-ha-storage-generations.md b/docs/superpowers/plans/2026-11-17-region-ha-storage-generations.md
index 39f5022ec..5d63423b0 100644
--- a/docs/superpowers/plans/2026-11-17-region-ha-storage-generations.md
+++ b/docs/superpowers/plans/2026-11-17-region-ha-storage-generations.md
@@ -407,6 +407,8 @@ Approved by 8a3d302 for Paul on 2026-11-19. It is the one operator path that acc
Who asks: Paul (#421, generations approved 2026-11-15). What a user gets: an HA host recovers from a crash or an unclean release in 1 to 5 minutes, not 15, with no silent history divergence. When: dev the first window after the release that carries Task 12, flagship after the dev drills pass. The release manager (8a3d302) owns releases, the group env, and every drill window.
+**Option A (8a3d302 for Paul, 2026-11-19): only group members serve generations hosts.** A box takes a generations lock only when it is a group member (`CARLOS_BOX_REFERENCE=group`) with the switch `on` or `fast`; fixed boxes and switch-off members refuse it (`hafresh.ReasonGenerationsIneligible`), so wakes go to members. The group's `generations_floor` is not known on the box, so it is not part of the test; the runbook requires it before the switch. Set the switch on the region's fixed boxes too, to arm their activation floor. On dev, the fixed boxes in pool `hapair` (sophie, leo) will never serve generations hosts; the dev drills must wake generations hosts on IE members, and a drill that sends a generations host's request to sophie or leo expects the refusal.
+
## As built (2026-11-19)
The ledger is `.superpowers/sdd/2026-11-17-region-ha-storage-generations/progress.md`; spec rev 5 records the same decisions.
@@ -426,6 +428,7 @@ The ledger is `.superpowers/sdd/2026-11-17-region-ha-storage-generations/progres
**Branch review fix wave (2026-11-19):**
- Astra P1: the box's activation floor. A box whose `CARLOS_HA_GENERATIONS` is anything but empty, `0` or `off`, or that has ever had it set (`/etc/carlos/ha-generations-floor`, root 0600, written by the adopt pass's unit repair and by any activation guard that sees the switch on), refuses to activate a binary that does not report `replica-generations-1` in `carlos version --json`, on every path the PPv2 floor covers; the recovery unit gates carlos.prev with `carlos system generations-allows-prev`.
- Fable P2-3: while `generations_floor` is set, a declared fixed box with no edges file is a generations refusal, not DR-4 only.
+- Option A (round 2): only a group member with the switch on or fast takes a generations lock (`hafresh.Proofs.GenerationsEligible`, decided first in `DecideAcquire`); an ineligible box's take also writes none. The activator computes it once per wake from `CARLOS_BOX_REFERENCE` and the switch, for wakes and adoption. The activation guard stays as defence in depth.
- `CARLOS_HA_GENERATIONS` is on the host.env allowlist (internal/hostenv), so the release manager sets it per region through SSM; write, seed and group assembly refuse any value but "", `0`, `off`, `on` or `fast`.
- Runbook: console at vG before the first switch-on and never rolled back below it; history-generation point loss; `lock_not_generations` means a binary below the floor (check the root for LTX files after head's `created_by.at`); the activation refusal.