carlos / platform Public

plans: P2a plan rev 4, final

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 99b8b18008b81322f60a1a9abeff57e831911c2a parent bac9e20
1 file changed, +46 −19
  • docs/superpowers/plans/2026-11-01-region-ha-p2-console.md +46 −19

CI passed — run details

diff --git a/docs/superpowers/plans/2026-11-01-region-ha-p2-console.md b/docs/superpowers/plans/2026-11-01-region-ha-p2-console.md
index de8a2609e..d0936af47 100644
--- a/docs/superpowers/plans/2026-11-01-region-ha-p2-console.md
+++ b/docs/superpowers/plans/2026-11-01-region-ha-p2-console.md
@@ -10,7 +10,9 @@
**Spec:** `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md`, rev 6.1, especially §§4.4, 10–11, 14–16, 18–21. Authorities are this merged spec, AGENTS.md, and Paul's rulings on discussion #421 (`amadan discuss show carlos/platform 421`, read 2026-11-01).
-**Revision:** 3, 2026-11-01; applies Paul’s N-HA13 display cut and answers the in-scope round-2 findings. Round 3 is the final round; rev 3 has not had an independent review.
+**Revision:** 4, 2026-11-01, final; applies round 3’s P2-1 and P3-1–7 without reopening review.
+
+**Status:** rev 4, final. Opus R1 NOT READY, R2 NOT READY (N-HA13 cut display), R3 READY AFTER FIXES; P2 fixed. Review closed.
**Citation base:** refreshed amadan `origin/main` on 2026-11-01: **65420a4d9e0d919743ea2e95e20b1a649605db3d**. Every existing-code citation below was re-read at that commit. The branch starts at `79d9d6a281c58c481e902c6e963b5479a016446a`; it is not rebased or merged here. Main's intervening team-service, navigation and edge-test changes do not change the cited code. Proposed interfaces and witnesses have destination paths but no invented source lines. P1b-3a is still unmerged; it supplies no executable dependency to P2a.
@@ -50,8 +52,9 @@ P2a alone finishes neither P2 nor G1. The current series finish line is **G3**:
|---|---|---|---|
| 1 — Opus, 2026-11-01 | `docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P2-R1.md`; `docs/superpowers/plans/REVIEW-REGION-HA-P2-R1.md`; reviewed tip `e6cfc5bdce84bb94ad5a5f52772a65596ba1150a` | **NOT READY: 1 P1, 9 P2, 11 P3** | P1-1/C1 shared observation; P2-1–9/C1–C3,C6 answered in rev 2 below. P3 dispositions recorded below. Historical rev-2 response; C1 partly resolved in round 2 and then cut by N-HA13. |
| 2 — Opus, 2026-11-01 | `docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P2-R2.md`; `docs/superpowers/plans/REVIEW-REGION-HA-P2-R2.md`; reviewed tip `38d39c8ee74bc0b88a9dd936cba35fded21d0da6` (rev 2 at `0acfe905`) | **NOT READY: 1 P1, 7 P2, 6 P3** | P1-A/C1 repeats P1-1’s fault family. Paul chose CUT (N-HA13), not a third C1 fix. P1-A and P2-A–D go to the display outline; P2-E–G and four in-scope P3s are answered below. |
+| 3 — Opus, 2026-11-01, final | `docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P2-R3.md`; `docs/superpowers/plans/REVIEW-REGION-HA-P2-R3.md`; reviewed tip `a5f585b35bc14e0d3b863af01d51f8efaad78102` (rev 3) | **READY AFTER FIXES: 0 P1, 1 P2, 7 P3** | P2-1/C2,C6 fixed in rev 4: row-local read failures, missing-target fallthrough, no single-mode list reads, regression witnesses and hourly read budget. P3-1–7 taken below. Review closed under stopping rule 1; no further round. |
-Round budget used: **2 of 3**. **Round 3 is final** and is not dispatched here; rev 3 is the author’s response, not a READY verdict. N-HA13 settles the repeated C1 family by cutting it. A remaining P1 in round 3 stops this plan for Paul’s decision; no fourth round is authorized. Preserve this table through splits and handoffs; P2a/P2b do not reset a review of the same change. Upstream history stays closed: spec three rounds, P1a three, P1b-1 three, P1b-2 three, dead-holder backoff three; P1b-3a two, final READY AFTER FIXES under N-HA12. Do not reopen those designs.
+Round budget used: **3 of 3; review CLOSED**. Round 3 found no P1; rev 4 applies its P2 and P3 fixes without reopening review. N-HA13 settles the repeated C1 family by cutting it. No fourth round is authorized. Preserve this table through splits and handoffs; P2a/P2b do not reset a review of the same change. Upstream history stays closed: spec three rounds, P1a three, P1b-1 three, P1b-2 three, dead-holder backoff three; P1b-3a two, final READY AFTER FIXES under N-HA12. Do not reopen those designs.
Future briefs use `docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md`. Stop at the first round without P1, fix its P2s without reopening, put P3s on the branch follow-up list. A fourth round needs Paul's scoped go. Two consecutive rounds against the same invariant stop fixes and require Paul's refuse/cut/central-enforcement choice. Task reviews are limited to security, cache, root, termination, production storage, billing or redirect risk; other tasks receive whole-branch review. Census and newly changed security/root/termination/storage behavior still check final fixes inside that budget. No reviewer is dispatched here.
@@ -116,11 +119,15 @@ All existing-code paths and lines are pinned to the citation base above; task fi
**Interfaces:** `Config.RegionIngress []string` (DNS destinations only), plus `func ParseRegionIngress(raw string) ([]string, error)` in `internal/console/regioningress.go`, called by `cmd/console` startup. Format of **CONSOLE_REGION_INGRESS** for this plan is comma-separated IP literals (NLB's static EIPs), matching PLATFORM_EDGE_IPS's address vocabulary; tofu deployment wiring must supply the complete regional set. Trim, canonicalize IPv4/IPv6, de-duplicate in first-seen order. Empty/unset retains legacy behavior. Non-empty with any invalid item fails startup; never silently fall back to member EIPs. **Suppression scope:** this flat list is deployment-wide, not keyed by region. Configured `dnsTargets` suppresses the entire folded box-IP union, including edges in non-HA regions. Deployment wiring must supply the complete intended public set across those regions or leave this mode unset; test HA and non-HA member IPs together. Per-region ingress discovery/mapping waits for P3.
-**Placements door (P2-E / C2): choose the review’s refusal option until P3.** A configured-ingress response must not advertise HA member EIPs as DNS destinations. After the existing auth/owner/team gates, GET of a regional claim naming any active HA region, or a single-mode claim targeting an HA record/active HA region, returns **409/I6**, with the configured public union and an explicit statement that placement readiness is unavailable here. Return no `placements`/member-EIP payload and no ready verdict. Resolve single-mode targets from the authorized record (claim Route, or claim Host when Route is empty); normalize empty-home region and honour immutable `HA` even if HARegions is unset. Unreadable/missing target evidence gets the existing neutral temporary refusal, never fallback to member addresses. For regional claims the configured region list suffices for active-region checks; read their target records as needed to honour immutable HA. Before any PUT claim write, apply the same check to both current and proposed targets after existing syntax/ownership validation. This also covers its success-response path: do not mutate and then refuse rendering. Non-HA-only placements and all unset-ingress placements retain main’s behaviour. The console’s regional domain guidance and placement-state detail use I6 at this boundary instead of RD-44/RD-46’s promise that placements supplies per-region addresses/readiness. Apply the same authorized-target check at domain list/single GET/settings sinks, reusing request-memo target reads; preserve domain verification/delegation and never change instance health or rollout. No configured union is claimed to be a verified regional readiness observation. The CLI already prints server error text, so old and current clients safely receive this refusal/guidance without a new wire field or root-code change.
+**Placements door (P2-E / C2; round-3 P2-1): choose the review’s refusal option until P3.** A configured-ingress response must not advertise HA member EIPs as DNS destinations. After the existing auth/owner/team gates, GET of a regional claim naming any active HA region, or a single-mode claim targeting an HA record/active HA region, returns **409/I6**, with the configured public union and an explicit statement that placement readiness is unavailable here. Return no `placements`/member-EIP payload and no ready verdict. Resolve single-mode targets from the authorized record (claim Route, or claim Host when Route is empty); normalize empty-home region and honour immutable `HA` even if HARegions is unset. For regional claims the configured region list suffices for active-region checks; read their target records as needed to honour immutable HA. A missing target record (`ErrNotExist`) carries no HA flag: fall through to the active-region check, then main’s view (including `no-serving-box` for a deleted target outside an active HA region). Only actual read errors at the placements door get **503/Reuse I7**; missing records never become a permanent temporary refusal.
+
+Before any PUT claim write, check **only the proposed target set**, after existing syntax/ownership validation. Do not inspect the current claim’s targets for this new guard: a caller can drop an HA target, and a takeover of another owner’s pending claim must reveal nothing about that owner’s targets. This also covers the success-response path: do not mutate and then refuse rendering. Non-HA-only placements and all unset-ingress placements retain main’s behaviour. No configured union is claimed to be a verified regional readiness observation. The CLI already prints server error text, so old and current clients receive this refusal/guidance without a new wire field or root-code change.
+
+**Domain list, single GET and settings sinks:** apply the authorized-target check only to **regional** rows, reusing request-memo target reads. Confirmed immutable HA or an active HA region gets I6 in `Guidance` and separate short I8 in state `Detail`, replacing RD-44/RD-46’s placements promise. A failed target read degrades only that row to I6/I8 or main’s existing text; never return a whole-response error or abort sibling rows or the app-facing `deployment` block. `ErrNotExist` falls through to the active-region check and then main’s view here too. Do not add target reads for single-mode rows, including HA rows: retain `domainGuidance` and structured `records` under main’s existing emission conditions; configured `dnsTargets` already restricts both to the safe public union. Preserve domain verification, proof/delegation records and unrelated rows; never change instance health or rollout.
-- [ ] **Step 1: Write failing tests.** `TestRegionIngressParsing`: blank legacy, whitespace, duplicate, IPv4/IPv6, invalid/hostname/URL/port rejected. `TestConfiguredIngressSuppressesMemberIPs`: in configured mode output is PLATFORM_EDGE_IPS followed by RegionIngress, deduplicated; no live-box fold even during S3 failure. Unset mode retains today’s union and cache. `TestConfiguredIngressSuppressesSteering` sets SteeringHost and tests apex/subdomain guidance contains only A records to the configured union, never a CNAME. Update `TestDomainGuidance` for every changed legacy sentence as well as the configured branch. `TestConfiguredIngressPlacements` drives actual GET and PUT for regional HA/mixed claims and single HA targets, explicit/empty home and immutable HA after switch-off: 409/I6, configured guidance only, no member addresses, readiness or claim/index/serial writes. Missing target/read failure remains neutral temporary refusal. Cover unset-ingress and non-HA-only legacy success, stranger/team-scope neutrality, and the console domain-list/detail/settings guidance sinks. `TestConfiguredIngressMultiRegion` proves deployment-wide fold suppression. `TestDomainsPlacementsConfiguredIngressRefusal` drives the existing CLI against a fake-console 409 and proves its answer contains configured guidance, no DNS-ready member table; use `carlosTestEnv` and scratch cwd for any binary subprocess. `TestIngressDoesNotWidenProxyTrust`: new ingress alone does not make `trustsProxy` accept a peer; existing loopback and explicitly trusted EdgeIPs behave as before.
+- [ ] **Step 1: Write failing tests.** `TestRegionIngressParsing`: blank legacy, whitespace, duplicate, IPv4/IPv6, invalid/hostname/URL/port rejected. `TestConfiguredIngressSuppressesMemberIPs`: in configured mode output is PLATFORM_EDGE_IPS followed by RegionIngress, deduplicated; no live-box fold even during S3 failure. Unset mode retains today’s union and cache. `TestConfiguredIngressSuppressesSteering` sets SteeringHost and tests apex/subdomain guidance contains only A records to the configured union, never a CNAME. Update `TestDomainGuidance` for every changed legacy sentence as well as the configured branch. `TestConfiguredIngressPlacements` drives actual GET and PUT for regional HA/mixed claims and single HA targets, explicit/empty home and immutable HA after switch-off: 409/I6, configured guidance only, no member addresses, readiness or claim/index/serial writes. Cover unset-ingress and non-HA-only legacy success, stranger/team-scope neutrality, and the console domain-list/detail/settings guidance sinks. `TestConfiguredIngressDeletedTarget` drives list and placements with a deleted regional target: outside an active HA region retain main’s view (`no-serving-box` on placements), while an active region still gets I6 (409 at placements); never 503 for `ErrNotExist`. `TestConfiguredIngressTargetReadFailure` drives both doors with an actual target GET error: placements gets 503/Reuse I7; list stays successful with only the affected row degraded to I6/I8 or main’s text, healthy siblings and `deployment` intact. Exercise the same row-local behavior at single GET/settings. Assert single-mode HA rows keep `domainGuidance` and `records` with zero added target reads, and PUT can drop an old HA target without reading it or another owner’s pending targets. `TestConfiguredIngressMultiRegion` proves deployment-wide fold suppression. `TestDomainsPlacementsConfiguredIngressRefusal` drives the existing CLI against a fake-console 409 and proves its answer contains configured guidance, no DNS-ready member table; use `carlosTestEnv` and scratch cwd for any binary subprocess. `TestIngressDoesNotWidenProxyTrust`: new ingress alone does not make `trustsProxy` accept a peer; existing loopback and explicitly trusted EdgeIPs behave as before.
- [ ] **Step 2: Run** `nice -n 19 go test ./internal/console -run 'TestRegionIngress|TestConfiguredIngress|TestIngressDoesNotWidenProxyTrust' -count=1`; expected FAIL.
-- [ ] **Step 3: Implement C2.** Parse at console startup, before NewServer/listener. Do not merge RegionIngress into Config.EdgeIPs: `internal/console/authcli.go:1210` uses that as authority. In configured mode `edgeIPs` returns the static DNS union without `foldedEdgeIPs`; all callers of `dnsTargets` inherit it. In configured mode suppress `SteeringHost` in dnsTargets: offer only A-record guidance for apexes **and subdomains**, even if steering is armed. `internal/host/steering_loop.go:126` builds steering from edges files, not RegionIngress; no CNAME may promise configured ingress until a later merged steering producer uses that list. Unset mode retains main’s steering behavior. Use reviewed I1/I2/I5/I6, with I3/I4 restricted to legacy mode; do not promise the console discovers NLB addresses. Validate the complete proposed ingress with this parser **before rolling** the console, since invalid nonempty input stops startup. Verify every listed console PLATFORM_EDGE_IPS entry is public ingress before enabling configured mode; a platform box EIP may be that ingress. The same variable also feeds agent DNS checks and console proxy trust, so no cosmetic removal of a platform IP is authorized here. In the deployment recipe require the agents' existing PLATFORM_EDGE_IPS to recognize that same public set before any NLB cut-over; console instructions alone cannot change their DNS verdict.
+- [ ] **Step 3: Implement C2.** Parse at console startup, before NewServer/listener. Do not merge RegionIngress into Config.EdgeIPs: `internal/console/authcli.go:1210` uses that as authority. In configured mode `edgeIPs` returns the static DNS union without `foldedEdgeIPs`; all callers of `dnsTargets` inherit it. In configured mode suppress `SteeringHost` in dnsTargets: offer only A-record guidance for apexes **and subdomains**, even if steering is armed. `internal/host/steering_loop.go:126` builds steering from edges files, not RegionIngress; no CNAME may promise configured ingress until a later merged steering producer uses that list. Unset mode retains main’s steering behavior. Use reviewed I1/I2/I5/I6/I8, with I3/I4 restricted to legacy mode; do not promise the console discovers NLB addresses. Validate the complete proposed ingress with this parser **before rolling** the console, since invalid nonempty input stops startup. Verify every listed console PLATFORM_EDGE_IPS entry is public ingress before enabling configured mode; a platform box EIP may be that ingress. The same variable also feeds agent DNS checks and console proxy trust, so no cosmetic removal of a platform IP is authorized here. In the deployment recipe require the agents' existing PLATFORM_EDGE_IPS to recognize that same public set **before setting CONSOLE_REGION_INGRESS**; console instructions alone cannot change their DNS verdict. P3 must set CONSOLE_REGION_INGRESS before any group box publishes an edges file: legacy folding would otherwise advertise its auto-assigned public IPv4 (spec §12.1).
- [ ] **Step 4: Add/run** `TestRegionIngressStartupWiring` in `cmd/console/main_test.go` using injected getenv/parser input; no real process or credentials. Run Step 2 plus `nice -n 19 go test ./cmd/console -run TestRegionIngress -count=1` and `nice -n 19 go test ./internal/console -run 'TestEdgeFold|TestDomainGuidance' -count=1`. Run `nice -n 19 go test . -run TestDomainsPlacementsConfiguredIngressRefusal -count=1` as well. Expected PASS; configured DNS source selection makes **zero** fold reads (placements retains its separately budgeted authorization/target checks), and no network address is looked up during parsing.
- [ ] **Step 5: Commit** `region-ha p2a: use regional ingress in DNS guidance`.
@@ -128,11 +135,11 @@ All existing-code paths and lines are pinned to the citation base above; task fi
**Files:** new `internal/console/hacreate.go`, `hacreate_test.go`; modify `createleftovers.go`, `apiinstances.go`, `ha_born_test.go`, `rootfs_test.go`. No sidecar/domain handler edit is needed for the dropped F4.
-**Interfaces / C3:** `func (s *Server) haCreateShapeRefusal(rec provision.Record) *doorRefusal` returns F1/400 iff `s.haRegion(rec.Region) && rec.KindOrDefault() == "instance" && len(rec.AddrsOrDefault()) == 0 && rec.Runtime == "" && !rec.HibernateOrDefault()`. This applies equally to plain and `--from` creates, before their paths split; an unstamped seed is not exempt. Use effective region after home/placement normalization, not raw request input. Address-backed records default non-hibernating (`internal/provision/provision.go:537`) and are outside this predicate.
+**Interfaces / C3:** `func (s *Server) haCreateShapeRefusal(rec provision.Record) *doorRefusal` returns F1/400 iff `s.haRegion(rec.Region) && rec.KindOrDefault() == "instance" && len(rec.AddrsOrDefault()) == 0 && rec.Runtime == "" && !rec.HibernateOrDefault()`. This applies equally to plain and `--from` creates, before their paths split; an unstamped seed is not exempt. Use effective region after home/placement normalization, not raw request input. Address-backed records default non-hibernating (`internal/provision/provision.go:537`) and are outside this predicate. F1 also runs before dispatch to `createImport`: a non-hibernating binary socket import into an active HA region now gets F1/400 instead of C2/409. Both refuse before any write; hibernating imports retain C2/409. Record this precedence in D3 and import tests.
Add `HAData bool` to leftoverCreate, set exactly to `s.shouldStampHA(rec) && !seeded && rec.DerivesPaths()` before stamping (`internal/console/seedmove.go:47`; `internal/console/apiinstances.go:2308`). This explicitly excludes Addr **and** Addrs instances from prefix proof while preserving their existing stamp; seed/import, static, replica, sidecar and rootfs exclusions remain. `firstHALeftover(ctx, st, prefix) (class string, err error)` uses `release.PageLister.ListPage(ctx,prefix,"",1)` for `activator.HibernatePrefix(cfg.HibernatePrefix,host)+"/"`. Missing bounded listing is an error. Classify the first key into fixed `lock`, `files`, `replica` or `other`; return no raw key, object SHA, contents or bucket. Use SeedData only at the configured home data-bucket root (`internal/console/server.go:551`).
-- [ ] **Step 1: Write failing tests.** `TestHACreateShapeBeforeWrites`: plain **and --from** HA binary socket creates (`Runtime == ""`) with Hibernate false get F1/400 before writes; normal hibernating socket proceeds to its existing rails; non-HA, static, resident rootfs (including Hibernate=false) and Addr/Addrs-backed shapes retain main behavior. `TestHACreatePrefixObjects`: lock.json (legacy/corrupt/other lifetime), files/0/manifest, sealed object, each LTX level and an unknown key all get F2/409 with only a fixed class; empty/sibling prefixes pass. No hash/key/bucket/body appears in JSON or HTML. Address-backed creates get no F1 or HA prefix listing, including remote/pool cases.
+- [ ] **Step 1: Write failing tests.** `TestHACreateShapeBeforeWrites`: plain **and --from** HA binary socket creates (`Runtime == ""`) with Hibernate false get F1/400 before writes; normal hibernating socket proceeds to its existing rails; non-HA, static, resident rootfs (including Hibernate=false) and Addr/Addrs-backed shapes retain main behavior. `TestHACreatePrefixObjects`: lock.json (legacy/corrupt/other lifetime), files/0/manifest, sealed object, each LTX level and an unknown key all get F2/409 with only a fixed class; empty/sibling prefixes pass. No hash/key/bucket/body appears in JSON or HTML. Address-backed creates get no F1 or HA prefix listing, including remote/pool cases. Import dispatch tests assert F1/400 for non-hibernating binary sockets into active HA, C2/409 for hibernating imports, and zero protected writes for both.
- [ ] **Step 2: Run** `nice -n 19 go test ./internal/console -run 'TestHACreate' -count=1`; expected FAIL.
- [ ] **Step 3: Implement C3 before mutation.** Add F1 after ValidateShape (`internal/console/apiinstances.go:2182`) and effective-region resolution, before env binding/seed dispatch. In `leftoverReplicaRefusal` (`internal/console/createleftovers.go:136`), only `!c.HAData && !leftoverCheckApplies(...)` may take the old early return. Read record existence first; return ordinary duplicate/read failures before any new data proof or placement cut. For HAData, a non-home effective region or nonempty pool gets **F5/409**, the deliberate G3 cut, with no Retry-After or operator-access remedy. For home, unpooled HAData, require HibernateBucket, non-nil SeedData, and normalized record region equal to cfg.Region so `leftoverCheckApplies` can prove authority (`internal/console/createleftovers.go:43`). Missing/mismatched wiring, unsupported bounded listing or listing failure gets **F3/503** with retry wording; a predecessor object gets F2/409. For HAData, perform the bounded whole-prefix proof, then retain only the existing `moves/<host>/` LTX check (levels 0–9). Skip the redundant ten `instances/<host>/` level LISTs after a successful empty whole-prefix proof. Parameterize the existing prefix walker so non-HA and sidecar callers keep both original prefixes; do not duplicate the scan algorithm. Witness exact prefixes and maximum attempts, including every move-staging level and error path. The create-time proof is no reservation; keep first-wake’s empty-prefix proof. No IAM expansion, speculative bucket clients or unbounded LIST fallback.
@@ -140,7 +147,7 @@ Add `HAData bool` to leftoverCreate, set exactly to `s.shouldStampHA(rec) && !se
- [ ] **Step 4: Wire refusal witnesses.** `TestHACreateUninspectableRefusesBeforeWrites` covers remote/pool F5/409 separately from home missing-store/missing PageLister/list error F3/503, private storage and lifetime-on/off. `TestHACreateDuplicatePrecedesReplica` covers existing instance and sidecar retries before data checks/cuts, preserving each door’s main duplicate text. Exercise actual handlers: refused requests write zero record/lifetime/claim/env/store-grant/provision/serial/index/staging mutations. --from stays on seed-floor/leftover transport without stamp, but F1 applies; import’s active-HA refusal precedes seed data work. Non-HA fleet behavior stays unchanged.
- **Existing fixtures whose setup/expectations change (P2-6 / C3):** `TestCreateStampsBornHA` (`internal/console/ha_born_test.go:45`) currently creates explicit ie with no home/data wiring: split remote ie into F5/409/no writes, then set HomeRegion=ie and coherent cfg.Region/normalized record region, HibernateBucket and empty bounded SeedData for successful explicit-home and empty-home stamps. Keep non-HA/off-switch assertions. `TestSeedsAndSidecarsAreNeverStampedHA` (`internal/console/ha_born_test.go:84`) gets the same home wiring for its plain-create control; preserve its successful HA standalone sidecar and seed exclusions. `TestStaticRecordIsNotStampedAndDoesNotBlockAMove` (`internal/console/ha_born_test.go:205`) keeps no HA refusal for static moves, adds destinations into HA, and supplies home data wiring to its binary stamp control. `TestRootfsCreateIsNeverBornHA` (`internal/console/rootfs_test.go:588`) preserves the original successful non-hibernating rootfs fixture and proves no HA stamp; only its binary control gains coherent empty home data wiring. P1a row 3.3’s resident rootfs allowance is unchanged. F1’s `rec.Runtime == ""` explicitly distinguishes the refused binary socket from this lease-owning rootfs route. Never set HAData=false or bypass a gate to rescue fixtures. Run Step 2 plus `nice -n 19 go test ./internal/console -run 'TestCreateStampsBornHA|TestSeedsAndSidecarsAreNeverStampedHA|TestStaticRecordIsNotStamped|TestRootfsCreateIsNeverBornHA|TestLeftover|TestCreateRefuses|TestCreateAllows|TestCreateSkips|TestCreateRetry' -count=1`; expected PASS.
+ **Existing fixtures whose setup/expectations change (P2-6 / C3):** `TestCreateStampsBornHA` (`internal/console/ha_born_test.go:45`) currently creates explicit ie with no home/data wiring: split remote ie into F5/409/no writes, then set HomeRegion=ie, keep home CARLOS_REGION/cfg.Region empty with canonical record region `""`, and supply HibernateBucket and empty bounded SeedData for successful explicit-home and empty-home stamps. Keep non-HA/off-switch assertions. `TestSeedsAndSidecarsAreNeverStampedHA` (`internal/console/ha_born_test.go:84`) gets the same home wiring for its plain-create control; preserve its successful HA standalone sidecar and seed exclusions. `TestStaticRecordIsNotStampedAndDoesNotBlockAMove` (`internal/console/ha_born_test.go:205`) keeps no HA refusal for static moves, adds destinations into HA, and supplies home data wiring to its binary stamp control. `TestRootfsCreateIsNeverBornHA` (`internal/console/rootfs_test.go:588`) preserves the original successful non-hibernating rootfs fixture and proves no HA stamp; only its binary control gains coherent empty home data wiring. P1a row 3.3’s resident rootfs allowance is unchanged. F1’s `rec.Runtime == ""` explicitly distinguishes the refused binary socket from this lease-owning rootfs route. Never set HAData=false or bypass a gate to rescue fixtures. Run Step 2 plus `nice -n 19 go test ./internal/console -run 'TestCreateStampsBornHA|TestSeedsAndSidecarsAreNeverStampedHA|TestStaticRecordIsNotStamped|TestRootfsCreateIsNeverBornHA|TestLeftover|TestCreateRefuses|TestCreateAllows|TestCreateSkips|TestCreateRetry' -count=1`; expected PASS.
- [ ] **Step 5: Commit** `region-ha p2a: refuse unsupported HA creates before writes`.
### Task 3: Close regional move/import refusal gaps [own review: production storage]
@@ -151,7 +158,7 @@ Add `HAData bool` to leftoverCreate, set exactly to `s.shouldStampHA(rec) && !se
- [ ] **Step 1: Write failing tests.** `TestHAMixedMoveRegionsBeforeWrites`: HA→legacy, legacy→HA, HA→HA, legacy record in active HA source, both home spellings, flag true with HARegions unset; offline stage/start plus legacy and Phase-1 doors. Assert 409 names blocking region and no OfflineStart/stage journal/stop/hold/env/control mutation. `TestHAImportFlagSurvivesSwitchOff` tests immutable HA at upload/stopped after switch-off; begin’s active-region check and defensive flag predicate are explicit separate cases, not a claim begin can load an existing HA record. Non-HA imports retain main behavior.
- [ ] **Step 2: Run** `nice -n 19 go test ./internal/console -run 'TestHAMixedMove|TestHAImportFlag' -count=1`; expected FAIL.
-- [ ] **Step 3: Implement C3 centrally.** In `offlineBeginChecks` (`internal/console/apiinstancemove_offline.go:505`), preserve main’s refusal order: after its existing ownership/shape checks and `offlineClaimEvidence`, parse with `readJSON`, normalize/validate the target, then run the helper before manifest/fleet work or writes; stage and start share it. Apply it to older and Phase-1 initiation (`internal/console/apiinstancemove.go:427,583`). Preserve cleanup/recovery of already-started operations. In `placeAppTarget` (`internal/console/fleets.go:783`), target is home (`""`) or `fleet/<name>` only (`internal/console/fleets.go:817`). Under the existing account/app locks (`internal/console/fleets.go:856,857`), examine changed-region records from the strict read and refuse before SetAppPlacementContext (`internal/console/fleets.go:928`) or manifest/registry writes. A fleet→HA-home data move refuses; a home→same-home or same-fleet record does not acquire a new HA-region refusal. Config is immutable for process lifetime and the app lock spans checks/writes, so no new shared-package recheck is needed. Keep existing SetRecordRegion HA/seed/rootfs CAS checks and their races (`internal/provision/provision.go:1040,1042,1049`); they already apply only when the raw region changes. Avoid a cosmetic empty-home↔home-code rewrite on an immutable HA record: skip SetRecordRegion for normalized no-op records, rather than weakening the shared CAS. No-op records must not trigger either the preflight or write-time HA refusal; changed records still do.
+- [ ] **Step 3: Implement C3 centrally.** In `offlineBeginChecks` (`internal/console/apiinstancemove_offline.go:505`), preserve main’s refusal order: after its existing ownership/shape checks and `offlineClaimEvidence`, parse with `readJSON`, normalize/validate the target, then run the helper before manifest/fleet work or writes; stage and start share it. Apply it to older and Phase-1 initiation (`internal/console/apiinstancemove.go:427,583`). Preserve cleanup/recovery of already-started operations. In `placeAppTarget` (`internal/console/fleets.go:783`), target is home (`""`) or `fleet/<name>` only (`internal/console/fleets.go:817`). Under the existing account/app locks (`internal/console/fleets.go:856,857`), examine changed-region records from the strict read and refuse before SetAppPlacementContext (`internal/console/fleets.go:928`) or manifest/registry writes. A fleet→HA-home data move refuses; a home→same-home or same-fleet record does not acquire a new HA-region refusal. Config is immutable for process lifetime and the app lock spans checks/writes, so no new shared-package recheck is needed. Keep existing SetRecordRegion HA/seed/rootfs CAS checks and their races (`internal/provision/provision.go:1040,1042,1049`); they already apply only when the raw region changes. Avoid a cosmetic empty-home↔home-code rewrite on an immutable HA record: skip SetRecordRegion for normalized no-op records, rather than weakening the shared CAS. No-op records must not trigger either the preflight or write-time HA refusal; changed records still do. The later walk re-lists keys (`internal/console/fleets.go:937–955`): skip SetRecordRegion only for records present in the preflight and proven normalized no-ops. A record absent from the preflight set must still take SetRecordRegion, so its existing CAS refuses a newly appeared HA record; absence is never evidence of a no-op. Retain `TestPlaceRefusesAnHARecordCreatedBetweenItsScans`. Skipping a proven no-op deliberately leaves a legacy home record stored as `"ie"` uncanonicalised; main would rewrite it to `""`. No migration or canonicalisation is added here.
- [ ] **Step 4: Add/run** `TestHAPlaceRegionsBeforeWrites` for both changed-region refusals and no-op/mixed no-op-plus-moving records, explicit/empty home equality, fleet→HA-home, static-only place and data-plus-static app. `TestHATransferStaticExemption` covers the exact static predicate in every initiation family and confirms an immutable HA flag still refuses. `TestHATransferCleanupStillWorks` covers cut/abort/resolve, offline seal/flip/open/finish, and import **commit/abort**, all continuing started operations. Run `nice -n 19 go test ./internal/console -run 'TestHAMixedMove|TestHAImportFlag|TestHAPlace|TestHATransfer|TestStaticRecordIsNotStamped|TestMoveDoorsRefuseHAHostBeforeAnyWrite|TestMoveRefusalNamesTheHomeRegion|TestImportRefusedIntoHARegionInOneBoxRegion|TestImportUploadAndStoppedRefusedInHARegion|TestPlaceRefusedForAppWithHAHost|TestPlaceRefusesAnHARecordCreatedBetweenItsScans' -count=1`; expected PASS. HA restore’s existing early return (`internal/activator/backend_exec.go:936`) stays a regression witness, with no backend edit.
- [ ] **Step 5: Commit** `region-ha p2a: refuse HA transfers at both region boundaries`.
@@ -164,11 +171,11 @@ Add `HAData bool` to leftoverCreate, set exactly to `s.shouldStampHA(rec) && !se
Reserve **`hap2a-home1.bab.dev.oncarlos.com`** in existing **ops/hacheck**, home **IE**, **no pool**, as the proposed disposable successful-create host; it must be unused with empty home replica/move prefixes. The card must confirm account sqid, app manifest, domain ownership and availability; if unavailable, name the replacement explicitly before approval. Do not reuse, move or restamp `hapair-a1`, and do not wake either host for this drill. Use separately named never-woken throwaway requests for F1 and regional/import refusals; list their exact names/prefixes on the card.
- The card names the actual dev console, account/region, leo/sophie only as existing deployment context, exact app/account/hosts/domains/prefixes, binary/version, release/roll/restart operations, expected record/lifetime/env/serial/index writes, ingress inputs, traffic effects, cost cap, duration and cleanup/verification. Verify before rolling that normalized HomeRegion=IE and cfg.Region agree, HibernateBucket is the intended home bucket and root SeedData is non-nil (`cmd/console/main.go:444,446,449`; `internal/console/server.go:551`). Confirm the never-used prefixes through bounded read-only store checks. Local handler witnesses cover zero writes and explicit/empty-home aliases. Missing wiring blocks switch-on.
+ The card names the actual dev console, account/region, leo/sophie only as existing deployment context, exact app/account/hosts/domains/prefixes, binary/version, release/roll/restart operations, expected record/lifetime/env/serial/index writes, ingress inputs, traffic effects, cost cap, duration and cleanup/verification. Verify before rolling that HomeRegion resolves to IE and the home console’s **CARLOS_REGION stays empty** (`cfg.Region == ""`), matching the canonical home record region `""`; do not set CARLOS_REGION=ie. `leftoverCheckApplies` compares raw region strings (`internal/console/createleftovers.go:43–51`). Verify HibernateBucket is the intended home bucket and root SeedData is non-nil (`cmd/console/main.go:444,446,449`; `internal/console/server.go:551`). Confirm the never-used prefixes through bounded read-only store checks. Local handler witnesses cover zero writes and explicit/empty-home aliases. Missing wiring blocks switch-on.
**Switch change on the approval card:** if the preflight confirms unset HA regions, temporarily set **`CONSOLE_HA_REGIONS=ie`** on the dev console for the approved test window, then restore the exact prior value and restart/read back. This affects **every concurrent dev IE create**, not only hacheck: eligible new instance records acquire immutable HA; binary non-hibernating sockets get F1; HAData creates get F2/F3 or pool/non-home F5; legacy data moves/imports involving active IE get refusals; configured HA placements get I6. Resident rootfs keeps P1a’s allowance, and standalone sidecars/static retain main’s behaviour. Coordinate the window with other dev creators; if it cannot be isolated, leave the implementation on branch. **Rollback cannot remove an HA stamp.** Record all creates during the window, retire only approved disposable records via existing API/CLI cleanup, and report any unexpected born-HA record without migrating or clearing it. No migration or existing-record restamp is authorized. Record the exact previous ingress/env/binary versions and their restore/verification steps too.
- Validate exact proposed ingress with the parser before the roll. Require **every listed PLATFORM_EDGE_IPS address to be public ingress**; today a platform box EIP may be that ingress. Its agent DNS-check and console proxy-trust uses are unchanged. Verify agent DNS acceptance of the complete proposed public set before cut-over. Name existing dev public destinations only: no new IAM, NLB, DNS, group, box or account-level changes. The requested scoped approval covers this window and its cleanup; this planning commit grants none.
+ Validate exact proposed ingress with the parser before the roll. Require **every listed PLATFORM_EDGE_IPS address to be public ingress**; today a platform box EIP may be that ingress. Its agent DNS-check and console proxy-trust uses are unchanged. Verify agent DNS acceptance of the complete proposed public set **before setting CONSOLE_REGION_INGRESS**. P3 must set that ingress configuration before any group box publishes an edges file (spec §12.1). Name existing dev public destinations only: no new IAM, NLB, DNS, group, box or account-level changes. The requested scoped approval covers this window and its cleanup; this planning commit grants none.
- [ ] **Step 3: Dev ingress/refusal witness only.** With the approved rolled console binary, record version and UTC times. Capture console domain guidance/API and the existing CLI’s answer: complete configured public destinations, A-only guidance, no HA member-EIP recommendation, and placements I6 without a readiness claim. Exercise unset-ingress legacy guidance as a local witness; do not fabricate an NLB or change DNS. During the approved IE window, create the unused unpooled home drill record successfully and confirm its HA stamp without waking it; demonstrate F1, F5 and mixed-region/import refusals with the approved names, before any protected write. Prefix-object fixtures/counters remain local unless disposable data writes are expressly approved. No awake-box observation, health assertion, deploy/retry drill, headroom exhaustion, kill, termination or hang belongs here. Restore the recorded switch/ingress/binary configuration, verify its effective value and answers, retire only the approved throwaways and remove owned scratch/processes within the approved duration. Immutable HA semantics still apply after switch rollback.
- [ ] **Step 4: Census and review** as below; one whole-P2a branch review plus only risk-sized own-task reviews, within the stopping budget. Record exact tip and ingress/refusal evidence; no claims of C1 completion, P2b readiness or G1/G3 acceptance.
- [ ] **Step 5: Implementation landing only.** Once targeted checks pass, run repo-required `go build ./...`, `go vet ./...`, `make test`, whole-tree formatting gate once; darwin/amd64, windows/amd64 and linux/arm64 compiles with CGO_ENABLED=0, explicit scratch output, arm64 binary below 64,000,000 bytes. A later authorized session pushes/describes the branch on amadan, requires green CI on its full tip, squash-merges with `-expect`, and reads main’s CI. No push/merge or those suites in this plan-drafting session.
@@ -213,15 +220,15 @@ The P1b-3a merge alone does not release the role/readiness/metric dependencies.
| Door / current main anchor | P2a behavior and witness |
|---|---|
-| Instance create, including --from/import dispatch: `internal/console/apiinstances.go:1524`; `internal/console/apiinstances.go:2297,2302`; record writes `internal/console/apiinstanceseed.go:86,89` | Task 2 F1 covers both plain/--from sockets; HAData proof covers prospective plain socket HA only. Imported creates retain the stronger import refusal. Counter witness covers every protected write. |
+| Instance create, including --from/import dispatch: `internal/console/apiinstances.go:1524`; `internal/console/apiinstances.go:2297,2302`; record writes `internal/console/apiinstanceseed.go:86,89` | Task 2 F1 covers both plain/--from sockets; HAData proof covers prospective plain socket HA only. Import dispatch hits F1/400 first for non-hibernating binary sockets in active HA; hibernating imports retain C2/409. Both refuse before writes. Counter witness covers every protected write. |
| Standalone sidecar create: `internal/console/apisidecars.go:223,394` | Main success/duplicate/LTX rail retained, no F4. Task 2/4 success and exclusion witnesses; shared capacity gate is P2b. |
| First-domain static create: `internal/console/domainattach.go:253,679` | Static, no HAData check and no new P2a cut. Task 4 success/exclusion witness; shared capacity gate is P2b. |
| Offline stage/start: `internal/console/apiinstancemove_offline.go:625,663,505` | Both use Task 3 source/destination check before claim/stage/stop writes; staged start rechecks. |
| Legacy/Phase-1 move request: `internal/console/apiinstancemove.go:422,427,574,583` | Same Task 3 rule; no alternative-door bypass. Existing cut/abort/resolve stay open. |
-| Apps place API/browser callers: `internal/console/fleets.go:1041,1105,1154` → `internal/console/fleets.go:783` | Only changed-region records enter Task 3’s HA preflight; unchanged records skip write-time region mutation. Existing app/rootfs/seed/hosts-history rails remain. |
+| Apps place API/browser callers: `internal/console/fleets.go:1041,1105,1154` → `internal/console/fleets.go:783` | Only changed-region records enter Task 3’s HA preflight; proven no-op records skip write-time region mutation (legacy `"ie"` remains uncanonicalised). Records absent from preflight still take SetRecordRegion and its CAS. Existing app/rootfs/seed/hosts-history rails remain. |
| Import begin/upload/stopped: `internal/console/apiinstanceimport.go:119,391,718` | Region refusal at begin; immutable flag plus region refusal at upload/stopped; flag check at begin is defensive. |
| Import commit/abort: `internal/console/apiinstanceimport.go:761,874`; offline recovery/finish verbs | No new HA refusal for already-started operations. Task 3 cleanup witness covers these explicitly. |
-| Domain placements GET/PUT: `internal/console/apiplacements.go:83,445,644` | Task 1 configured HA placements refusal/guidance, including single mode, mixed sets and immutable HA after switch-off. Auth/scope and input validation precede refusal; no claim/index write and no member-EIP/ready payload. |
+| Domain placements GET/PUT: `internal/console/apiplacements.go:81,445,644` | Task 1 configured HA placements refusal/guidance, including single mode, mixed sets and immutable HA after switch-off. Auth/scope and input validation precede refusal; no claim/index write and no member-EIP/ready payload. |
| Apps region / account move | Not data/instance placement doors: apps region changes no record region; account move rewrites console metadata. No new HA transfer gate. |
## Round 1 dispositions
@@ -270,6 +277,23 @@ Source anchors below are at the refreshed citation base. Task/step references id
**Branch follow-up list:** round-2 P3 bullets 1–2 (real CLI test names, “Setting up”) and round-1 P3-11 (observation age) are retained in the HA display outline. No P3 starts a new round; no in-scope P3 remains unaddressed.
+## Round 3 final dispositions
+
+`REVIEW-REGION-HA-P2-R3.md`: **READY AFTER FIXES**, no P1, one P2. Rev 4 applies these fixes; review is closed under stopping rule 1. No further round.
+
+| Finding / invariant | Rev 4 disposition |
+|---|---|
+| **P2-1 / C2,C6** | Task 1 separates row-local list/single GET/settings degradation from placements-only read-error 503; `ErrNotExist` falls through to active-region/main behavior. Drop single-mode list reads, retain guidance/records, add deleted-target/failing-read witnesses and hourly app-poll budget. |
+| **P3-1 / C2, ownership** | Task 1 PUT guard checks only the proposed set; no old-target trap or pending-owner target oracle. |
+| **P3-2 / C2, deployment handoff** | **P3 handoff:** set CONSOLE_REGION_INGRESS before any group box publishes an edges file; legacy folding can advertise the group’s auto-assigned public IPv4 (spec §12.1). Verify agents’ PLATFORM_EDGE_IPS accepts the public set before setting CONSOLE_REGION_INGRESS. Tasks 1/4 and D2 carry this order. |
+| **P3-3 / C3, home data authority** | Task 4 explicitly keeps the home console’s CARLOS_REGION empty; leftoverCheckApplies compares raw `"" == ""`, not HomeRegion’s display code. |
+| **P3-4 / C3, placement race** | Task 3 skips only proven preflight no-ops; records missing from preflight still take SetRecordRegion/CAS. Preserve the between-scans HA witness; legacy home `"ie"` remains uncanonicalised when skipped. |
+| **P3-5 / citations** | Reuse I7 points to `internal/console/apiplacements.go:44`; placements GET to `:81`, both verified at the pinned citation base. |
+| **P3-6 / copy** | Separate short I8 for state Detail avoids repeating I6 guidance. D2 records the unchanged root CLI help mismatch (`domains_cli.go:55–58`, `domainsPlacementsUsage`). |
+| **P3-7 / C3, import order** | Task 2, import witnesses, door inventory and D3 record F1/400 before createImport for non-hibernating HA binary sockets; hibernating imports retain C2/409. |
+
+**P3 handoff notes remain implementation/deployment obligations, not another review round.** Display follow-ups remain in the N-HA13 outline.
+
## S2 §8 / spec §15 disposition census
| Spec §15 row | Owner / result |
@@ -293,7 +317,7 @@ Logical AWS API attempts, including unsuccessful calls. SDK transport retries ar
| P2a path/event | Increment over main |
|---|---|
| Configured ingress parsing/render | **0 S3**. In configured mode eliminate the old DNS fold reads; do not credit savings to pay for another loop. Unset mode keeps the existing fold. |
-| Configured HA placements refusal/guidance | Existing claim/auth/scope reads stay charged. At most N target-record GETs (N≤8 regional targets, N=1 single mode) per current/proposed set, reusing records already read; PUT union ≤16 distinct targets. Domain list/settings with C regional claims and S single targets adds at most 8C+S target GETs, once per distinct target per request; count this amplification rather than charging only the placements GET. No new LIST/status poll; stop at first confirmed blocked target. Count failed GETs. Refused requests write zero claims/serial/index records. DNS union uses no S3. |
+| Configured HA placements refusal/guidance | Existing claim/auth/scope reads stay charged. At most N target-record GETs (N≤8 regional targets, N=1 single mode) per GET or proposed PUT set, reusing records already read; no current-target reads for the new PUT guard. Domain list/settings with C regional claims adds at most **8C target GETs**, once per distinct target per request; **0 added single-mode target reads** (domain single GET is at most 8G for a regional claim, 0G for single mode); count this amplification rather than charging only the placements GET. No new LIST/status poll; stop at the first confirmed blocked target within a claim, and continue sibling rows at list/settings sinks. Count failed GETs. Refused requests write zero claims/serial/index records. DNS union uses no S3. |
| HA shape/unsupported placement or transfer/import regional check | **0 new S3** for the predicates; local flags and already-read record (the data rail’s existence read is below). Refusal: **0 protected P/D/index mutations**. |
| Home HA data create prefix proof | **+1 bounded L**, maximum one result, **0G/0P/0D**, no body or lock GET. Existing duplicate record read is reused. Error costs its attempted L and no writes. |
| Retained move-staging rail for home HAData | After the whole-prefix proof, at most **10 L** for `moves/<host>/` levels 0–9 (`internal/dbdoor/coords.go:29`); skip the redundant instance levels. Total bound **1G+11L** before unchanged create writes, versus main’s 1G+20L. Early first-object refusal uses **1G+1L**. Non-HA/sidecar checks retain main’s two-prefix bound. No scan over files/objects or pagination is added. |
@@ -301,6 +325,8 @@ Logical AWS API attempts, including unsuccessful calls. SDK transport retries ar
| Remote/opaque-pool HA data proof unavailable | **0 data S3**: F5/409 after the record-existence GET (new if main skipped its rail), no speculative bucket client or unbounded cross-region scan. |
| P2a role/edges/control mutations | **0**: P2a writes no role objects, index scopes or publication files. Ordinary successful create's record/lifetime/env/serial/index writes retain main's budget. |
+**App-poll amplification:** at an app poll rate of R domain-list requests/hour, the bound is **8C × R target GETs/app/hour**, costing **$0.0000032 × C × R/hour**. Equivalently, with interval T seconds, R=3600/T: a 60-second app poll adds at most **480C GETs/hour = $0.000192C/hour**; a 30-second poll adds **960C GETs/hour = $0.000384C/hour**. The console does not prescribe an app cadence: pin the consuming app’s actual rate in the implementation/drill evidence and use this formula; multiply by independent app pollers, with no assumed cross-request cache saving. Failed GETs and SDK retries are attempts too; request-memo deduplication can only lower these pre-retry bounds.
+
Example: 1,000 empty home HA data-create checks use **11,000 LISTs = $0.055**, versus main’s 20,000 = $0.10: a net saving of 9,000 LISTs = $0.045, with the same existence GETs. Quiet P2a adds **0 S3/box/hour** and **0 S3/console/hour**. Instance display, single GET and retry keep main’s reads and caches unchanged; P2a adds no snapshot reader. Main's per-box §18 baseline remains roughly **3,300–3,500/hour**, not a new allowance.
**P2b budget envelope, not an executable polling design:** one uncached complete console observation of E edges files and H status objects is `ceil(E/1000)L + E*G + ceil(H/1000)L + H*G`, plus at most B signed identity GETs for B uncached refs, plus actual role reads once their merged consumer is known. If loaded once/minute without cache sharing, charge **60 times** this formula per console/hour; that is new central-console workload, never claim it is zero because boxes do not poll. For E=H=B=3 the edges/status/identity component is **120 L + 540 G/hour = $0.000816/hour**, before role reads and retries. The executable P2b plan must pin role/default read counts, identity expiry/bounds and invalidation from the real main interfaces and prove all doors share the observation. No per-box invocation of that formula. CloudWatch adds up to 60 PutMetricData calls/region/hour, not S3. This plan does not authorize arming that workload.
@@ -318,16 +344,17 @@ This is the complete **intent/deck for P2a**, with **draft** words for Luna to r
| I3/I4 | **Legacy only**, unset RegionIngress; host, steering hostname, addresses | Retain legacy steering CNAME recommendation and A-record alternative, naming healthy edges rather than configured regional ingress. Inventory changed legacy wording and update `internal/console/server_test.go:1652`. |
| I5 | Invalid configured ingress startup failure; safe invalid token only | Comma-separated IP literal requirement and invalid entry; validate before the roll. |
| I6 | Configured HA placements GET/PUT refusal and console regional guidance; host and public union | Required intent: per-region placement readiness/DNS advice is unavailable with HA configured ingress until P3; identify the configured public addresses without a regional readiness or latency-routing claim. No member EIP, lease or box detail. Existing CLI prints this server answer; no new flag or JSON field. |
+| I8 | Configured regional row’s state Detail, including row-local read uncertainty | Separate short detail intent: placement readiness is unavailable here. Do not repeat I6’s DNS guidance or assert a regional ready verdict. Final words pass execution-time copy review. |
| F1 | Plain or --from non-hibernating binary socket create (`Runtime == ""`), 400; region | %s has high availability turned on. Binary socket instances must allow hibernation; resident rootfs retains main’s allowance. |
| F2 | Predecessor data, 409; host and fixed class only | Describe earlier instance data, naming only lock/files/replica/other; choose another address or request operator inspection. No raw key/content hash. |
| F3 | Home wiring/listing failure, 503; display region | Cannot check this instance’s data in %s. Nothing was created. Try again. Persistent failures may require an operator to check home data access. |
| F5 | Deliberate non-home/pool HA data-create cut, 409; display region | Draft: HA data creates for this placement are not available yet in %s. Use the console’s home region without a pool. No retry/access-repair suggestion or Retry-After. |
-| D2 | CLI deployment configuration and domains placements docs | Explain RegionIngress plus PLATFORM_EDGE_IPS, full deployment-wide public set, configured A-only guidance, temporary HA placements refusal/readiness limits, pre-roll validation and the requirement that every PLATFORM_EDGE_IPS entry is public ingress (a platform box EIP can qualify). |
-| D3 | CLI create/move/import behavior | Document F1 for binary sockets only (rootfs allowance retained), F2/F3/F5 and their status/retry differences before writes. HA data moves/imports unavailable; static-kind records exempt only from the new regional move refusal; existing immutable-HA and other rails remain; started operations can finish/clean up. |
+| D2 | CLI deployment configuration and domains placements docs | Explain RegionIngress plus PLATFORM_EDGE_IPS, full deployment-wide public set, configured A-only guidance, temporary HA placements refusal/readiness limits, pre-roll validation and the requirement that every PLATFORM_EDGE_IPS entry is public ingress (a platform box EIP can qualify). Verify agent PLATFORM_EDGE_IPS before setting CONSOLE_REGION_INGRESS, then set ingress before any group edges publication. Note the unchanged root CLI help (`domains_cli.go:55–58`, domainsPlacementsUsage) still promises “the addresses to point DNS at”; configured HA refusals limit that promise, and P2a leaves root production code untouched. |
+| D3 | CLI create/move/import behavior | Document F1 for binary sockets only (rootfs allowance retained), including F1/400 before createImport instead of C2/409 for non-hibernating HA imports; hibernating HA imports retain C2/409. Document F2/F3/F5 and their status/retry differences before writes. HA data moves/imports unavailable; static-kind records exempt only from the new regional move refusal; existing immutable-HA and other rails remain; started operations can finish/clean up. |
| Reuse N1 | `internal/console/nocapacity.go:38`, approved P2b no-capacity 503 | Reuse exactly: “No box in %s has room right now. Try again in a few minutes.” Retry-After 60. |
| Reuse N2/N3 | `internal/console/nocapacity.go:42`, approved P2b page subject/body | Reuse noCapacityAlert outputs exactly; shared throttle and send-failure semantics. |
| Reuse M1/M2 | `internal/console/seedmove.go:52,57`, P1a-approved transfer refusals | Reuse haMoveSentence/haImportSentence verbatim, substituting blocking display region. |
-| Reuse I7 | `internal/console/apiplacements.go:46`, unreadable target/evidence | Reuse `placementsUnreadableMsg` verbatim for temporary configured-placements uncertainty. No fallback to member DNS. |
+| Reuse I7 | `internal/console/apiplacements.go:44`, placements target/evidence read error only | Reuse `placementsUnreadableMsg` verbatim for actual configured-placements read errors (503), never `ErrNotExist` or domain list/single GET/settings response errors. No fallback to member DNS. |
| Reuse E1/E2 | Existing duplicate/read answers (`internal/console/apiinstances.go:2265,2266`; `internal/console/apisidecars.go:405,406`) | Keep door-specific main duplicate/read messages; no replacement error copy. |
P2b's controller must inventory before implementation: role vocabulary/usage, saved-versus-applied result, invalid/unknown ref/region, read/CAS/write failures, operator audit, readiness label/each blocker/stale/incomplete/unsupported producer, metric startup/failure/recovery, no-capacity alert subject/body, regional proof refusal, and every changed CLI help/doc line. Those have no final destination/interface yet, so this is a **separate outline deck**, not invented executable strings. Do not implement P2b until its merged-input plan and complete approved deck exist. No new user-facing prose logs, empty states, tooltips or docs may escape that inventory.
@@ -344,4 +371,4 @@ Drafting verification: compare every proposed executable dependency to base main
The three former questions are settled by the controller’s Rulings table: next dev release after P2a merge, P3 produces role/admission evidence before P2b, and non-home/pool HA data creates remain F5/409 for G3. Task 4 still requires a concrete scoped dev approval card and verified wiring before live mutation/switch-on. These are implementation gates, not reopened design questions.
-This session revises and commits only this plan. P3/3b, migration, P4/P5/P6 and storage fencing stay with their owners. Rounds 1 and 2 both found a C1 P1; N-HA13 cuts display instead of fixing it a third time. Rev 3 answers the remaining in-scope findings; round 3 is final and has not been dispatched. No production edit, push, subagent or reviewer dispatch, full suite, or running process. Splitting the change does not reset review history or the finish-line clock.
+This session revises and commits only this plan. P3/3b, migration, P4/P5/P6 and storage fencing stay with their owners. Rounds 1 and 2 both found a C1 P1; N-HA13 cuts display instead of fixing it a third time. Rev 4 fixes round 3’s P2-1 and takes P3-1–7. Opus round 3 was READY AFTER FIXES with no P1; review is closed under stopping rule 1 and no further round is authorized. No production edit, push, subagent or reviewer dispatch, full suite, or running process. Splitting the change does not reset review history or the finish-line clock.