carlos / platform Public

spec rev 4: Paul's N-HA6 (replication classes keep their window); round 3 brief from the template

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev bcfc342a85d8452daf3499bb7c464f0cf2ae52e5 parent 94eb69f
2 files changed, +52 −3
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-no-claims-R3.md +48 −0
  • docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md +4 −3

CI failed — run details

diff --git a/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-no-claims-R3.md b/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-no-claims-R3.md
new file mode 100644
index 000000000..32499e29d
--- /dev/null
+++ b/docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-no-claims-R3.md
@@ -0,0 +1,48 @@
+# Review brief: region HA without claims (spec), round 3 of 3
+
+Repo carlos/platform, branch `design-region-ha-no-claims`, the commit named in the reviewer's prompt (the commit that adds this brief).
+Under review: `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` (rev 4).
+Authorities: the code on this branch, which is `origin/main` at ddf3b929 plus this spec and its review notes. Do not review against unmerged branches. The claims-cleanup plan on `origin/design-live-moves-ha` and the nearest-region spec on `origin/design-nearest-region-199` are unmerged; this spec must not depend on them. If it does, say so as a P1 and stop.
+
+You are an independent reviewer. Read the document, then the code it names, and check every claim against that code.
+
+## Fixed: do not re-argue
+
+- Paul's rulings in the spec's §2.1: H1, H3 to H6, H20 to H22, H24, the roll order, and N-HA1 to N-HA6. N-HA6 (2026-10-26) confirms that the batched and daily replication classes stay available under HA and lose up to their interval. Report only mechanisms that fail to honour them.
+- Scope cuts made in rev 4: the N-box moves and seed-import designs are out (§14 keeps only refusals and requirements), and automatic replacement on S3 loss (A22) is cut. Do not ask for either to be designed here.
+- Findings declined in earlier rounds, with reasons in the spec's disposition table. Raise one again only with new evidence.
+
+## What to check
+
+1. **I1 and I3, single writer and lease authority.** No path lets a second box, or a restarted agent on the same box, write a host's replica or files while another may still run it. Check the HA acquire (§9.4), the release marker against the pinned leaser (`litestream@v0.5.14/s3/leaser.go`) and every reader in `internal/lease`, the retry queue for failed marker writes (§5.2), the same-box emptiness proof (§9.6) and the clock-skew bound (§9.7).
+2. **I2, no stale serving.** The keep decision (§5.3) is the only place a local DB or files tree is reused, and it requires a clean, complete marker naming this box and this lifetime. Check the staging-promotion order and the reused-hostname refusal.
+3. **Duty coverage (§7.4).** Every sleeping host with a due time or a once-timer stays covered through release, termination and transfer.
+4. **The failover bound (§9.8, §10, §12.1).** A terminated box and a hung box, including one that hangs just after first service, recover within the stated bound. Check the lifecycle hook and the security groups.
+5. **The first slice (§19).** It can switch on alone on dev's two IE boxes without the rest of P1, and it closes the stale-copy hazard there.
+6. **The refusals in §14** stop moves and imports before anything is stopped or copied.
+
+## Round 3
+
+Earlier rounds: `docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-no-claims-r1.md` (rev 1) and `-r2.md` (rev 3). The round number counts every earlier review of this design under any file name or reviewer.
+
+First give one line per P1 and P2 from round 2: resolved, partly, or not. Carry every unresolved or partly resolved finding forward at its current severity, then add new findings. The verdict covers everything outstanding, earlier rounds included.
+
+## Severity
+
+- **P1**: unsafe, or it would not work. Blocks the plan.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the section, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks (that is its fault family). End with exactly one verdict:
+
+- **READY**: no P1 and no P2.
+- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another round.
+- **NOT READY**: one or more P1s, listed.
+
+This is round 3, so a NOT READY also says whether the P1s share one cause, and whether refusing the case up front or cutting the feature would remove them.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. Leave GOCACHE unset.
diff --git a/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md b/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md
index 95e733b8f..0512559a6 100644
--- a/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md
+++ b/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md
@@ -18,7 +18,7 @@ This spec supersedes every claim-dependent part of "Region HA, spec 2: two-box r
| astra-1.2 expiry bypasses "never take over a hung box" | Closed in r2. Expiry never lets another box acquire; skew bound. | §9.4, §9.7 |
| astra-1.3 r2 same-box recovery without an emptiness proof | Accepted. Only after the agent stops the host's units and proves its cgroups empty. Layouts with no proof are refused and alarmed. | §9.6 |
| astra-1.4 r2 skipped or unreadable entries still allowed "clean" | Accepted. Clean means a complete publish; otherwise not clean, and not ready to retire. | §5.2, §8.4 |
-| astra-1.5 r2 batched and daily classes miss H3 | **Declined.** Under H6 durability follows the plan, so the class is the plan's choice. H3's ~1 s applies to the stream class; the others lose up to their interval, stated plainly. Author's call A16, for Paul to confirm. | §5.5 |
+| astra-1.5 r2 batched and daily classes miss H3 | **Declined.** Under H6 durability follows the plan, so the class is the plan's choice. H3's ~1 s applies to the stream class; the others lose up to their interval, stated plainly. Paul confirmed it as N-HA6. | §5.5 |
| astra-1.6, 1.7, 1.10, 1.11, 1.13, 1.14, 1.15 | Closed in r2. | §7.3, §7, §6.4, §6.1, §13, §5.3, §8.4 |
| astra-1.8 r2 a host can die before its first duty publication | Accepted. The duty entry is written synchronously before the release marker; until it lands, the box keeps the lease. | §7.4 |
| astra-1.9 r2 the boot grace protects a box that already served | Accepted. A launch lifecycle hook holds new boxes out of service until healthy; the ASG grace drops to 60 s. | §9.8, §10, §12.1 |
@@ -61,6 +61,7 @@ These stand from spec 1 and spec 2.
| N-HA3 | Failover is "a few minutes, lower is better", met **without shortening every lease**. Once EC2 confirms a box is terminated, a survivor takes over its leases at once. |
| N-HA4 | N-box offline moves and seed import join this plan series. Dev and the first test region may go HA with both refused. No carloku.com region retires its old box until both work in N-box regions. |
| N-HA5 | App files on the continuous (top-plan) class sync every 10 s. `instance.key`, `report.token` and `<host>.env` sync at about 1 s. |
+| N-HA6 | Confirms A16 (2026-10-26): the cheaper replication classes stay available in HA regions and lose up to their interval on a failover, stated plainly. H3's ~1 s applies to the stream class. |
### 2.2 Author's calls
@@ -83,7 +84,7 @@ Each is the author's or the coordinator's. Paul can overturn any of them.
| A13 | The platform box adopts tenant records but never wakes a tenant, and it is not a load balancer target. | The console's local-registry reads keep working. |
| A14 | Region membership is "a verified box with a fresh edges file in that region". Auto Scaling membership is not an input, and nothing is enrolled. | Enrolment was the claim's. |
| A15 | `CARLOS_REGION_HA` stays the box switch, redefined claim-free, once P0 has removed the claim code that acts under it (§16.3). | It already gates plan 2a's claim-free parts. |
-| A16 | H3's window applies to the stream replication class, whose local capture runs every second under HA. The batched and daily classes lose up to their interval, stated plainly, and are not refused (astra-1.5 declined). **Paul to confirm.** | Under H6 the class is the plan's choice. The capture cadence costs CPU, not S3. |
+| A16 | H3's window applies to the stream replication class, whose local capture runs every second under HA. The batched and daily classes lose up to their interval, stated plainly, and are not refused (astra-1.5 declined). Confirmed by Paul as N-HA6. | Under H6 the class is the plan's choice. The capture cadence costs CPU, not S3. |
| A17 | Files sync is plan 1a's `hostfiles`, under the instance's hibernate prefix with one fixed generation. | Plan 1a's code without the claim's generations. |
| A18 | Spec 1's H7 (ticks are at least once) and H8 (`files_durability` defaults to `snapshot`) carry over. | Both are claim-free. |
| A19 | The old box drains before the EIP cut-over, and is then stopped, not terminated, until acceptance. | Rollback inside the window just starts it again. |
@@ -723,4 +724,4 @@ One 3,000-seed sweep per revision, run serially at nice 19.
## 22. Open questions for Paul
-None. A16, the declined astra-1.5, is an author's call for Paul to confirm (§2.2).
+None.