plan: record rulings A and B (8a3d302 for Paul, 2026-11-17)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+3
−3
docs/superpowers/plans/2026-11-17-region-ha-storage-generations.md+3 −3
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 86f178e8e..c89f7d06e 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 |
| @@ -17,7 +17,7 @@ |
| - head.json: `<loc>/head.json`, fields exactly as spec §3.1 (`v`=1, `generation`, `created_by{lock_generation,box,iid,lifetime,at}`, `start_txid`, `predecessor`, `history[]{generation,start_txid,created_at,ended_at}`). No version ids anywhere in it. |
| - Lock fields: held generations lock carries `carlos_generation` (the holder's generation name); a generations release marker is owner `released/v1;ref=<box>;iid=<iid>;gen=1` with record field `carlos_release_g` (never `carlos_release`). |
| - Capability: `replica-generations-1` (published by every box at this release). Switch: box env `CARLOS_HA_GENERATIONS` = unset/`0` (off), `on` (generations; acquire table unchanged), `fast` (generations plus the slice-4 table change). Set per group by the release manager (8a3d302); never set by this branch on any live pool. |
| -- The gate (spec §9), corrected after Astra plan R1 finding 3 (pending Paul's ruling A): `ha_floor` is **not** a hard gate (`grouproll.Floor` reports a below-floor release as DR-4, floor.go:164,186, and a lock-free member rolls on, dr4.go:76). Task 13 adds an enforced generations floor: group config `generations_floor` (a release); while it is set, `Floor` and the roll's candidate check **refuse** (never DR-4) a roll or replacement to a release below it, and any present edges file without `replica-generations-1`. Slice 0 still makes any box at or above Task 0's release refuse a generations lock. |
| +- The gate (spec §9), corrected after Astra plan R1 finding 3 (ruling A, 8a3d302 for Paul, 2026-11-17: enforced, refuse up front): `ha_floor` is **not** a hard gate (`grouproll.Floor` reports a below-floor release as DR-4, floor.go:164,186, and a lock-free member rolls on, dr4.go:76). Task 13 adds an enforced generations floor: group config `generations_floor` (a release); while it is set, `Floor` and the roll's candidate check **refuse** (never DR-4) a roll or replacement to a release below it, and any present edges file without `replica-generations-1`. Slice 0 still makes any box at or above Task 0's release refuse a generations lock. |
| - Restore window and history: 7 days (`SnapshotRetention`, lease.go:96). Abandoned prefixes are retired after 1 day. |
| - Copies: `VersionedStore.CopyVersion(..., createOnly=true)` (versioned.go:219), at most 8 in parallel. A planned file over 5 GiB refuses the take (single-part copy limit; multipart is a follow-up). |
| - Request budget (state it in the branch description and test it): **steady state adds zero requests per box per day** (no poll, no timer). Per take: 1 GET head.json, 1+ ListObjectVersions pages of G, one CopyObject per planned file, 1 PUT head.json, 1 PUT manifest (files fence), 1 ListDirs for retirement plus the deletes of retired generations. Per reader: 1 GET head.json per resolution (a bound GET carrying a generation reads no head). |
| @@ -252,7 +252,7 @@ Wake order inside `restoreHA`: (a) if the switch is off and the lock has no `Gen |
| ## Task 8: Console readers and the bound door (spec §6.1, §6.2) |
| -> **Corrections (Astra plan R1, findings 6 and 7; pending Paul's ruling B):** |
| +> **Corrections (Astra plan R1, findings 6 and 7; ruling B, 2026-11-17: refuse with 409; string via a Luna copy pass):** |
| > - A list or GET for a host with head.json that carries **no** `gen` (an old CLI) is refused with 409 and a short reason; a root-layout host keeps today's unbound protocol. Test the old CLI's exact request sequence (`dbdoor/client.go:101,143`) across a head switch: refused, never mixed. |
| > - Bound listings and GETs stay on the bound generation even after head moves (that is the point). Replace `TestDoorListAfterSwitchRestartsTheRead` with `TestDoorBoundListStaysOnG1AfterSwitch`. The one restart condition is a bound generation that is gone (retired: list empty or GET 404 on a generation not in head or history) → `ErrGenerationGone` → `restoreAt` restarts once unbound-then-bound. |
| > - The 409 reason is user-facing: its string goes through copy review before this task lands. |
| @@ -340,7 +340,7 @@ Rules: `ListDirs(<loc>/)`; for each `g-<M>/`: keep if it is the current generati |
| --- |
| -## Task 13: Enforced generations floor (Astra plan R1 finding 3; pending Paul's ruling A) |
| +## Task 13: Enforced generations floor (Astra plan R1 finding 3; ruling A) |
| **Files:** Modify `internal/grouproll/floor.go` (`Floor` :57), `internal/grouproll/roll.go` (candidate check :780, :943), the group config type that holds `HAFloor`. Test `internal/grouproll/floor_test.go`. |