carlos / platform Public

Merge remote-tracking branch 'origin/region-ha-p2b-plan' into region-ha-p2b-build

claude agent, operated by paul@keymail.dev ebe36811df2f10deb13e5b153e75e5e6d1bc8a69 parent 7920cccparent 7262982
3 files changed, +610 −0
  • docs/superpowers/plans/2026-11-04-region-ha-p2b-console.md +425 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P2B-R1.md +92 −0
  • docs/superpowers/reviews/REVIEW-REGION-HA-P2B-R1.md +93 −0

CI passed — run details

diff --git a/docs/superpowers/plans/2026-11-04-region-ha-p2b-console.md b/docs/superpowers/plans/2026-11-04-region-ha-p2b-console.md
new file mode 100644
index 000000000..3f305b8bc
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-04-region-ha-p2b-console.md
@@ -0,0 +1,425 @@
+# Region HA P2b: console implementation plan, rev 2
+
+> **For agentic workers:** Planning only in this session. No production edits, push, reviewer dispatch or full test suite. Execute the checkbox tasks only in a later authorized implementation session, after resolving their gates. Later slices below are requirements, not permission to implement an unmerged producer.
+
+**Goal:** On dev, a create with no eligible serving box returns the existing no-capacity answer before it writes anything. The console publishes the same regional count without claims. Operators subsequently get role read-back and honest readiness evidence. The HA awake-box display remains a separate slice because every rollout consumer must agree.
+
+**Architecture:** One console observation per minute reads existing edges publications, status reports and signed identities. Metric publication and create admission use that immutable observation. The console neither chooses a lease owner nor probes boxes. Role writes use P3a's existing control objects. Full readiness and display have explicit producer/design gates below.
+
+**Tech stack:** Go, the existing console HTTP/CLI doors, release.Store, boxid, boxchoice and the CloudWatch adapter. No new service, box poll, ASG enumeration or data-bucket permission.
+
+**Authorities:** `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md`, rev 6.1, especially §§4.4, 10–12, 15, 18–19; AGENTS.md; discussion #421 (`amadan discuss show carlos/platform 421`); P2's two deferred-outline sections in `docs/superpowers/plans/2026-11-01-region-ha-p2-console.md`.
+
+**Citation base:** **016599d5b97c04b2fc5e807b834fdf38e2c7a35e**, the checked-out `origin/main`. All existing-code file:line citations below refer to that tree. Proposed files, settings, helpers and response additions are explicitly marked proposed and have no invented source lines. The released `v0.34.0` decoder/watch was also inspected for compatibility; it is not an implementation dependency.
+
+**Status:** rev 2. R1 (Opus) READY AFTER FIXES, 0 P1 / 5 P2 / 9 P3, applied as rev 2; review closed under rule 1. The pool-evidence task added by the Q1 ruling was not in R1; its build gets its own per-task review (rule 3). The display slice retains P2's C1 history. Plan final at rev 2; the build is a separate session.
+
+## Rulings and decisions
+
+| Authority / invariant | Consequence |
+|---|---|
+| N-HA1, N-HA3, N-HA9 / I1 | The Litestream lease remains writer authority. No shorter lease, early takeover, lock reader in the console, or claim activation. |
+| N-HA2, N-HA4, N-HA7 / I1, I5 | Born-HA only. Preserve immutable stamps after switch-off and all move/import refusals. No migration, retirement or new data-proof authority. |
+| N-HA5, N-HA6 / I1 | No publication/capture cadence changes or new recovery/loss-window promise. |
+| N-HA8, N-HA10, N-HA12, N-HA15 / I1 | Existing forwarding, billing and recovery stay unchanged. Create capacity never gates existing-host wakes, retries, timers or restarts. |
+| N-HA11, N-HA16, N-HA17 / I6 | Use the merged departure lifecycle truth. Started means the first successful queue receive, not constructor return, Running, completed scans, or a health guarantee. No new queue consumer. |
+| N-HA13 / I7 | Display is its own small design. P2a's C1 P1-1 and P1-A are retained requirements, not a fresh review budget. No isolated awake-box badge beside main's conflicting rollout. |
+| N-HA14 / I6 | ASG Standby rolls, replacement, launch hooks and booting group boxes remain P3b. Fixed-box admission is the only P3a admission implemented here. |
+| #421 controller P3a T2 final CUT, 2026-11-04 / I6 | Closed boxes keep legacy names. They refuse locally; home election and cold-wake exclusion remain. Do not reintroduce namespace withdrawal or infer readiness from a held name. Its three-round family remains closed. |
+| P2 controller G3 ruling / I5 | Keep non-home and pooled HA data creates refused. Lifting F5 is not trivial: main only proves the configured home data prefix, not arbitrary region/pool storage. |
+
+Rulings supplied in BRIEF-REV2.md, all dated 2026-11-04:
+
+| Authority / invariant | Decision and reason |
+|---|---|
+| Q1, agent manager 8a3d302 under Paul's delegation / I2, I4 | Fold pool evidence into P2b-1's existing edges publication. T0 precedes admission and gets its own security-gate review. Preserve named-pool creates on dev: sophie serves @shared,hapair; leo serves cohort1,hapair. Old publishers supply unknown named-pool evidence; shared creates use existing evidence. |
+| Q2 = N-HA18, Paul / I6 | P2b-2 ships desired-role save/read-back and eligibility diagnostics. Full readiness and drain completion remain not yet reported until their P3b producers merge. A drain request stays visibly pending and never permits stopping a box. |
+| Q3, resolved by Q1 and R1 P2-4 / I6 | A P3a-only dev release and fixed-pair admission drill precede the P2b-1 merge. Validate and install CONSOLE_HA_CAPACITY_CONFIG before the release carrying P2b-1. Hold other dev releases during the named window. Flagship is unaffected while CONSOLE_HA_REGIONS is unset there. |
+| Q4/Q5, controller, recommended options with no capability cut / I7 | P2b-3 stays an outline. When scheduled, give it one explicitly scoped review carrying P2's two C1 P1 rounds, closed third round and N-HA13. Stop at the first P1-free round; a repeated-family P1 returns to Paul without a fix. Before switch-on, prove a shorter stale-reporter bound from a merged stop guarantee or evidence producer. No URL polling and no accepted 24-hour display blackout. |
+
+Author decisions implementing those rulings:
+
+| Decision / invariant | Reason |
+|---|---|
+| D1 / I2, I3: refresh a console-wide immutable observation once a minute, including failures; expire it 120 seconds from pass start | Request memoization alone is not process-wide sharing. A burst must neither multiply bucket reads nor keep an old successful count after an unsuccessful observation. |
+| D2 / I2: configure the region universe and trusted coordinates explicitly | A vanished region must still produce zero after a complete empty read. Neither surviving files nor their majority can select a CloudWatch region or data bucket. |
+| D3 / I2, I6: require explicit P3a admission fields for HA create eligibility | `HomeEligible` intentionally accepts old files as serving for compatibility. It cannot prove admission/readiness. Missing additions are unknown, not a positive result. Schedule box rollout before enabling this console behavior. |
+| D4 / I4: count all eligible serving boxes regionally, then narrow for the create's pool | A box serving a named pool is regional capacity. Requiring shared-pool membership for the metric would undercount it. T0 adds the missing pool-list input on the same branch before admission; missing pool evidence cannot justify a named-pool zero. |
+| D5 / I6: ship the N-HA18 diagnostic role door; defer full readiness and completed drain | P3a publishes role/admitted/drained, but not its local facts or health conditions, and never publishes drained=true. The limited door has its own dated slot below. |
+| D6 / I7: do not execute display in P2b-1 | Shared observation, failure holds, retry authority, lifetime attribution and released deploy-watch behavior need one design. A small badge does not isolate those risks. |
+
+## Named invariants
+
+| ID | Property and enforcement point |
+|---|---|
+| I1. Observation grants no runtime authority | Capacity and display never acquire, release, restore, wake, stop or transfer duties. Existing wake paths do not call the new admission helper. |
+| I2. Evidence is complete or unknown | One observation records source times, read completeness, verified identity and region scope. Missing, malformed, ambiguous, capped or failed evidence cannot become zero or ready. Known stale or explicitly excluded boxes count zero; unread boxes do not. |
+| I3. One bounded observation | One runner per console starts independently of HostClaim. Metric and every HA create door read the same generation without S3 loads on the request path. Failures obey the same one-minute budget. |
+| I4. Eligibility agrees | One pure console projection applies verified identity, exact home scope, data coordinates, effective role, capability, liveness and shared boxchoice headroom thresholds. Pool narrowing is a distinct final step; a regional count is not proof for a named pool. |
+| I5. Refuse before mutation | Auth and normal input/duplicate/permanent-refusal checks precede capacity; capacity precedes environment binding, store provisioning, lifetime/history registration, domain claim, record, audit-of-success, serial and index writes. |
+| I6. Desired is not applied or ready | A saved role is desired state. A fresh role report is an observation, not a current health check, acknowledgment of a particular write, completed drain, or retirement permission. Unsupported producers leave explicit blockers. |
+| I7. One honest HA host projection | Every display, rollout, health and retry consumer uses the same tenant/lifetime-checked evidence. Sleeping or uncertain HA hosts never enter deploy-watch URL fallback. Observation never proves lease authority. |
+| I8. Operator and tenant boundaries survive | Role/readiness access uses the existing operator gate. Member doors preserve service/team scope and byte-identical unauthorized 404s. Never expose another account's host data or raw storage keys. |
+
+## Merged evidence and remaining gaps
+
+The cited base includes P1b-3a `322d2447`, home-scope correction `c6304f2d`, survivor correction `16b2a0ce`, P1b-3b T `9b8b2c5`, P2a `f2810fd`, follow-ups `f18da98`, and P3a `016599d5`. P3b is not an input.
+
+| Existing seam at the citation base | What it establishes |
+|---|---|
+| `internal/boxroles/roles.go:18`, `:29`, `:38`, `:50`, `:83` | Desired serve/drain/platform objects; strict decoding; own override, regional default, then serve. Both point GETs happen even when the first fails. Booting is not a desired role. |
+| `internal/host/boxroles.go:41`, `:53`, `:99`, `:114`; `internal/host/boxroles_config.go:12` | Reader is opt-in through CARLOS_GROUP_ADMISSION=1 and change-index read mode. Root-owned region-config.json binds canonical region_code to exact placement, including empty home. A failed read sets local known=false and keeps the prior restriction. |
+| `internal/host/edgesfile.go:260`, `:954`, `:985`, `:1158`; `internal/edgesfile/admission.go:10`, `:19` | Actual wire additions are box_role, admitted, drained. Writer sets both box and box_id to its reference. HomeEligible accepts all-three-absent old files. No named-pool list or admission fact vector is published. |
+| `internal/host/group_admission.go:37`, `:80`, `:97`, `:112`, `:161` | Fixed admission only; group configuration refuses. Role admission/start gating exists, but EdgesRole returns drained=false, and does not publish the role reader's known bit. Role errors can therefore leave a last-role report; never call it full readiness. |
+| `internal/groupadmission/state.go:9`, `:47`; `internal/hadeparture/types.go:47`; `internal/hadeparture/consumer.go:162`, `:198` | Local startup facts and the actual Started acknowledgment. `internal/host/group_admission.go:123` consumes Started. |
+| `internal/lbhealth/lbhealth.go:154`; `internal/host/group_metrics.go:36`, `:45` | Six local conditions: hosting, forwarding map/key, certificates, edge beat, activator beat, refresh attempt. Admission/clock CloudWatch datums are region/deployment aggregate inputs, not per-box readiness reports. No console poll of that endpoint or CloudWatch reads added. |
+| `internal/edgesfile/snapshot.go:138`, `:161`, `:243`, `:249`, `:281` | Existing live-edges join and completeness rules. PlacementView loses null-versus-empty placement, and BoxChoice loses data-bucket coordinates. Do not use that lossy conversion as the new full predicate. |
+| `internal/status/fleet.go:120`, `:138`, `:217`, `:260`; `internal/console/hotreads.go:376`, `:393`; `internal/console/reqmemo.go:217` | Status cadence 5m; stale after 15m; 200 report/1MiB caps; the normal loader drops objects older than 24h. liveEdges is request-memoized, not the required minute-wide observation. |
+| `internal/console/boxselect.go:147`; `internal/boxid/record.go:38`, `:65`; `internal/boxid/verify.go:96`, `:102` | Reuse signed identity verification, not roster membership. AWS signature alone does not bind a chosen fixed reference; require the operator's fixed reference/iid binding too. Do not reuse the old unverified region-majority selection. |
+| `internal/boxchoice/policy.go:16`, `:49`, `:63`; `internal/edge/wakeplacement.go:87`, `:103` | 15% free memory, 10% free disk, edges age <=15m, future tolerance <=1m. Empty home placement is real. Apps counts affect soft spread, not EligibleBoxes; no console app-count decoder is needed for this count. |
+| `internal/console/regioncapacity.go:59`, `:99`, `:121`; `internal/console/hostclaimops.go:50`; `cmd/console/main.go:756` | Current metric enumerates surviving files and depends on the claim chooser/start. Both change in P2b-1. |
+| `internal/console/awsregionmetric.go:25`, `:30`, `:46`, `:57`; `internal/console/nocapacity.go:31`, `:38`, `:42`, `:125`, `:166` | Existing metric dimensions/adapter, approved refusal and successful-send hourly throttle. Current roomIn is inert without claims. |
+| `internal/console/apiinstances.go:1950`, `:2267`, `:2316`, `:2381`; `internal/console/apisidecars.go:394`, `:422`; `internal/console/domainattach.go:206`, `:227`, `:643` | Create entry points and side-effect boundaries. Include seeded dispatch and both first-domain lifetime arms, not only plain instance creation. First-domain route is home/shared static, not the app's named region. |
+| `internal/console/createleftovers.go:144`, `:160`; `internal/console/hacreate.go:16`, `:29` | F5 and bounded home prefix proof already merged. Keep them, including duplicate-before-leftover behavior. |
+| `internal/console/apiboxroles.go:84`, `:115`, `:159`; `internal/console/authcli.go:570`; `system_roles.go:35`, `:55`, `:80`; `system.go:160` | Existing doors are claim-gated signed-roster writers with default/legacy vocabulary. They are not P3a object writers. Old CLI success wording claims immediate effect and cannot be reused. |
+
+## Slices and first visible result
+
+**P2b-1, executable subject to the release card:** Tasks T0–T4 ship the pool-evidence producer, one observation, EligibleBoxes and pre-write create refusals together. Paul can see a disposable dev `carlos instances create` return the approved 503/Retry-After answer, or succeed with positive evidence, while CloudWatch shows that observation's regional count. The drill includes supported named-pool creates. A structured observation identifier in internal logs ties the results together. There is no scaffolding-only first merge.
+
+**P2b-2, scoped outline under N-HA18:** desired-role save/read-back and eligibility diagnostics. Its write target is merged. Full readiness and drain completion stay explicitly not yet reported until their P3b producers merge. The scope below is settled; executable task details must use merged interfaces.
+
+**P2b-3, outline:** HA awake-box display and every rollout consumer. When scheduled, its one explicitly scoped review carries the inherited C1 history and the Q4/Q5 stopping conditions. Scheduling does not authorize another P2 review round.
+
+**P2b-1 dev slot: 2026-11-09, 14:00–16:00 UTC.** The 2026-11-06 target is replaced because T0 adds a producer, compatibility witnesses and a security review to the same visible slice, after the P3a-only release/drill prerequisite. The implementation controller owns booking the attended slot and naming the release operator in the card. Hold other dev releases and unattended updates through the window. If the complete slice, prerequisites or operator cannot fit, keep it on its branch and name a replacement date before merge.
+
+The order is binding: first roll a **P3a-only dev release** and pass its fixed-pair admission drill; only then merge P2b-1. Validate and install the exact capacity configuration on the dev console as a drop-in without restarting, before the release carrying P2b-1. That release rolls boxes and verifies their pool publications before rolling the console. CONSOLE_HA_REGIONS is already set on dev, so the new console binary activates the gate immediately. Flagship remains unaffected while that setting is unset there.
+
+**P2b-2 dev slot: 2026-11-11, 14:00–16:00 UTC**, after P2b-1 acceptance, for Paul's N-HA18 role save/read-back and diagnostic door. Its controller must book an operator and scoped card before its merge, or retain it on branch and name a new date. Full readiness, completed drain and P2b-3 do not ride either slot. The planning commit changes no running system.
+
+#421 records dev v0.34.0 with CARLOS_REGION_HA enabled on sophie-knitting and leo-climbing, and CONSOLE_HA_REGIONS=ie enabled on the console. It records P3a as merged but not released. Revalidate at card preparation; do not reuse P2a's historical assumption that HARegions is unset. P2b alone proves neither G1 completion nor G2/G3, and never G5 retirement readiness.
+
+## P2b-1 design
+
+### Trusted coordinates and scope (I2, I4)
+
+Proposed console-only setting **CONSOLE_HA_CAPACITY_CONFIG** is a bounded JSON document delivered with the console configuration, not fetched from edges or an app. Its proposed schema has v=1, a regions map keyed by canonical placement code, and fixed_boxes keyed by exact reference. Each region supplies aws_region, data_bucket and data_bucket_region. Each fixed binding supplies region_code and instance_id. Existing Config.AWSAccount and expectedSecretsFP remain the account and deployment key authorities. Reject duplicate/unknown/null fields, empty coordinates, invalid names, duplicate instance bindings and unsupported versions before switching on. Bound the document to 64KiB and 200 fixed references; exceeding a bound is an explicit configuration error.
+
+The region universe is exactly CONSOLE_HA_REGIONS, with every entry requiring coordinates. It persists when all boxes vanish. The home region is CONSOLE_HOME_REGION; its wire/record placement remains `""`, while all other region codes match exactly. Omitted or empty placement is home; explicit null is malformed. Never set CARLOS_REGION=ie on the dev home boxes or console. The console's raw CARLOS_REGION stays empty for its existing home data proof.
+
+An HA-enabled console with missing/invalid capacity configuration returns temporary evidence refusals for affected creates and emits no unprovable metric, rather than disabling the safety check. Parser validation must pass on the exact proposed configuration before rolling. Creates outside CONSOLE_HA_REGIONS keep main's behavior. Configuration loads once; changing it requires the normal console restart/card.
+
+Fixed pins bind identity, not membership: a listed pin without live evidence counts nothing. For a g- reference, the exact existing derivation is `g-` plus the first 20 hex digits of SHA-256(`carlos-box-ref-v1|account|instance`), at `internal/host/boxreference.go:91`. Validate it without EC2/group enumeration. P3a still cannot admit such a box; no test may manufacture group admission as production capability. Fixed boxes recreated on a new iid require a new reference, as #421's f18da98 correction states.
+
+### Observation and freshness (I2, I3)
+
+Proposed `internal/console/hacapacity.go` owns the pure projection; `hacapacity_observe.go` owns I/O and the immutable cache. Start one runner from console serve, immediately then on the existing one-minute capacity interval, whenever configured HA regions or the CloudWatch adapter need it. Move the nested metric start out of StartClaimRecoveryPass. Do not run either producer from NewServer. A cancellable console lifetime owns the runner; one in-flight pass, bounded to 45 seconds. Requests never start or retry a load. Before the first successful observation they get evidence unavailable.
+
+Each pass makes one bounded LIST per prefix. For control/edges/, use PageLister (`internal/release/store.go:389`, `:1074`) with 201 keys: at most 200 accepted; the 201st makes the census incomplete. Status keeps the existing 24-hour object-modification horizon, applied before the 200-report cap or any status GET. Self-stale edges need no status counterpart.
+
+PageLister discards modification times, and the existing ModLister paginates without a bound. Add a **proposed console-local bounded metadata adapter** in hacapacity_observe.go: one S3 ListObjectsV2 request with MaxKeys=1000, retaining LastModified and IsTruncated. Filter entries older than pass start minus 24 hours, then enforce at most 200 recent/unknown-time keys. Missing modification times are retained, never treated as old. A truncated raw page is incomplete even if fewer than 200 recent keys were seen; do not fetch a second page or assume old keys hide no current box. The raw 1000-key scan limit is separate from the 200 current-report cap. No HEAD per key and no unbounded ListMod fallback. Provide a bounded directory-store counterpart for local witnesses; unsupported stores report unknown. Expose the prefiltered keys through a console-local store view to LoadBoxesComplete, with no second LIST.
+
+Read bodies with 1MiB maximum per edges/status object and 64KiB per identity record. The dev card records total edges/status counts and recent-status counts on dev and flagship. At an edges cap, use the runbook's existing departure-verified edges-file removal procedure; age alone grants no deletion. At the raw status scan cap, prepare a scoped prune of retired status keys older than the horizon, verified against current identities and publishers. Never delete an active or uncertain reporter. At a true >200-current-report cap, reduce the supported scope or design and price a larger bound before switch-on. Cleanup is operator work, not automatic capacity-observer deletion. Count its requests separately in its approved card. Pin LIST flags, filtering and request totals at the low-level transport.
+
+Retain raw presence/type information for placement, admission and eligibility fields alongside the existing PlacementView. Validate the key's reference, Box and BoxID agree, version is understood, status label is unique, and status Metrics.InstanceID agrees with the verified identity. Classify each edges file before demanding a status counterpart, using the precedence table below; do not reuse JoinLive's whole-request missing-status rule for self-stale or out-of-scope files. Verify each distinct candidate reference once per observation through boxid.Load/Verifier.Enroll, with expected account/AWS region, fixed pin or derived g- reference, and a uniqueness check across proven instance IDs. No cross-observation identity cache is necessary in this slice; its GETs are budgeted every minute.
+
+Record observation start/completion, each edges generation, each status generation, completeness and machine-readable blocker codes. Keep generation times unchanged. Reads are not an atomic S3 snapshot: counts describe the bounded observation, not reserved capacity. On use, recompute time predicates from the retained timestamps; do not freeze a stale answer as fresh. A successful observation expires at age >=120s from pass start. Start passes on a fixed 60-second schedule, not 60 seconds after completion; each has a 45-second deadline. The prior success therefore covers the successor pass, including a create at t=60s+epsilon. Readers never wait on that pass. At use, producer timestamps still decide freshness. A missed schedule cannot extend the 120-second bound. Canceled readers do not cancel the shared load; failed/timed-out passes immediately replace successful evidence with unknown, even before expiry.
+
+An unreadable LIST or unassignable malformed key can affect every region, so all those datapoints are omitted. A failure provably scoped to a validated region omits that region only. For a remaining in-scope candidate, a missing status counterpart, missing identity or unknown protocol is incomplete. An identity conclusively failing verification is excluded and diagnosed; it is never admitted by falling back to a label. Conflicting reference/instance evidence makes the affected set incomplete. A complete empty deployment is zero for every configured region. Complete stale publications are zero, including after 24 hours; no deletion or terminal EC2 conclusion follows.
+
+### Eligibility (I2, I4, I6)
+
+Evaluate each file in this order. A known exclusion removes only that file; it cannot speak for a peer. Unknown data cannot assert that the rest of the region is empty.
+
+| Precedence | Classification and required evidence |
+|---|---|
+| 1. Validate scope facts | A successfully decoded file with validated placement different from the region, different data bucket/region, no region-ha-1 capability, no hibernation, or a different secrets fingerprint is a known non-candidate. Its own valid edges generation failing HeadroomFresh for age also excludes it. Require no identity, status or admission fields for these exclusions. An invalid scope field cannot be used as an exclusion; only independently validated facts can remove the file. Null placement, corrupt bodies and unassignable versions remain unknown when no scope exclusion can be established. |
+| 2. Bind the candidate | Only in-scope, self-fresh files need identity/status/admission evidence. Bind key, Box, BoxID, signed deployment-account identity, configured AWS region, fixed pin or exact g- derivation, and status instance ID. A valid signed deployment-account record with no configured fixed binding and no valid derived g- binding is **unbound**, excluded with a diagnostic. Failed reads/missing identity are unknown; conclusively invalid identity is excluded. Conflicting instance/ref evidence remains unknown. |
+| 3. Classify liveness and admission | A valid stale status is a known exclusion. Missing status is unknown. Require fresh status (BoxStale's 15-minute bar), valid producer times and explicit admission fields. Booting/drain/platform, not-admitted, drained and legacy draining are known exclusions. Missing additions, unknown roles, malformed booleans/numbers and zero/far-future times are unknown. |
+| 4. Apply headroom | Require serve, admitted=true, drained=false and no legacy draining. Apply boxchoice.Placeable's existing thresholds; do not pass serve as an old roster role (ExcludeRoles expects the empty default). Reject negative/inconsistent totals before arithmetic. Well-formed insufficient or absent totals exclude; Apps is not required. |
+| 5. Narrow to the requested pool | Shared creates use explicit serves_shared_pool=true and accepts_inbound=true. Named creates require membership in T0's named_pools and accepts_inbound=true. A valid list lacking the pool excludes that candidate for this request; missing/malformed pool evidence is unknown for named creates only. Never infer pools from host lists. |
+
+**Aggregation:** allow a create if at least one verified-eligible box serves its requested pool, even when another candidate is unknown. With no such positive witness, complete-zero requires every in-scope file to be classified for that request; otherwise return unknown. A failed/capped LIST cannot establish a complete census and makes the observation unavailable. Emit a regional EligibleBoxes metric only when every in-scope file is classified for regional eligibility; count the unique union independent of pool. Unknown pool evidence alone does not change the regional count and never becomes a regional zero. A request-specific complete zero must not overwrite that metric.
+
+**Pool publication (Q1):** T0 proposes additive `named_pools`, a sorted unique JSON array of the named pools from the same provisionTickConfig/ParseBoxPools result used by the reconciler. Include only nonempty names accepted by provision.ValidPool; invalid configured tokens cannot match a valid create and must not poison evidence for valid pools. Omit the canonical shared empty string from this array; existing serves_shared_pool remains authoritative for shared creates. New publishers always emit the array, including `[]` for no named pools. Absence/null/wrong types are unknown, not an empty list. Keep the existing edges version and cadence; old readers ignore the additive field. Bound reads by the existing edges-body limit and validate names with the existing pool grammar, without inventing a stricter deployment limit.
+
+In a mixed-version region, a verified new publisher can admit a named-pool create on its positive membership evidence. If none can, an otherwise eligible old publisher's missing list makes the answer unknown (C10, no page); it cannot justify zero. Shared creates keep using existing shared/inbound evidence. Regional metrics remain based on regional eligibility, so an old box missing only pools is still countable. All-old regions refuse named creates as unknown. Dev rolls both publishers before the new console so sophie's @shared,hapair and leo's cohort1,hapair coverage is retained. Existing F5 still refuses pooled/non-home HA data creates.
+
+The 120-second observation lifetime is separate from both 15-minute producer bounds. A box whose producer evidence ages out while a successor is in flight is reclassified at use.
+
+These are last-published eligibility observations. P3a's admitted latch does not mean all six health conditions still hold now; the console cannot see a later local known=false. Neither the metric nor an admitted create promises full health. N-HA18 and P2b-2 make that missing diagnostic evidence explicit. This is not permission to ignore a published restriction.
+
+### Create boundary (I5, I8)
+
+Proposed helper `requireHACreateCapacity` takes the normalized region/pool and reads the observation only. It returns allow, complete-zero, or unknown. Complete-zero uses noRoom, approved copy and Retry-After 60. Unknown returns 503 with C04 and Retry-After 60, or C10 when named-pool publication is the missing input; neither sends a capacity page or publishes a zero. A positive count permits main's subsequent checks; it never picks or stamps a box. Retain the existing hourly successful-send throttle and its send-failure release semantics.
+
+| Door | Required ordering and regression witnesses |
+|---|---|
+| Instance, plain and --from | Keep auth, duplicate response, input/shape, F5 and other permanent rails before capacity. Keep the permanent HA import refusal before capacity; run capacity before supported createFrom dispatch or any binding/store/lifetime writer. For active HA regions, defer the old armed-region 400 until the HA check can answer 503. Imported creates keep their existing HA refusal; capacity cannot make an import legal. Cover home `""` and explicit home normalization, static, address, resident rootfs and binary shapes. |
+| Standalone sidecar | Check the same effective region and manifest Pool before beginClaimCreate/createSidecarMarked. Keep duplicate/paused/shape responses and HA stamping unchanged. Use T0's named-pool evidence and the mixed-version rule above. |
+| First-domain route | Run before the branch at domainattach.go:227, covering claims, lifetimes and plain paths, and before pending proof/claim writes. The prospective static record is home/shared. Existing-route aliases, reattachments that write no first route, wildcard/catch-all aliases and ordinary domain verification do not acquire a new capacity requirement. Both browser and API responses carry Retry-After. |
+| Non-create work | No new helper in wake, enable of an existing record, restart, deploy, retry, timer/run pickup, domain alias attach, move cleanup or import cleanup. Preserve their existing gates. |
+
+Do not leave the early claims-based roomIn as an alternative HA policy. Route active-HA create callers to the new helper and retain any still-supported claims-only behavior outside this path. Record-read memoization may avoid duplicate GETs, but never delay capacity until the claimed executor or lifetime has already been created.
+
+## Executable tasks for P2b-1
+
+These task commits stay on one implementation branch until the visible slice is complete. Each test name below is proposed unless identified as existing. Production-wired means real parsers, stores, middleware and handler/runner entry points with a local counted transport; no live AWS mutation is necessary.
+
+### Task T0: Publish pool evidence on existing edges [own review: security gate and root surface]
+
+**Files:** `internal/host/edgesfile.go`, its existing serialization tests and a new host-produced fixture under `internal/host/testdata/`; T1's console decoder/tests. Reference `internal/provision/reconcile.go:3274`, `:3310`, `:3329` for the existing pool parser and predicates. No new pool object or independent reader loop.
+
+- [ ] **Step 1:** Add `TestEdgesNamedPoolsPublication` through the real edges builder/serializer using provisionTickConfig. Cover empty config, @shared, @shared,hapair, cohort1,hapair, duplicates and invalid tokens as the existing parser handles them. Always emit named_pools, including an empty array. Compare membership to the real reconciler's named-pool decisions; no separately parsed environment or host-list inference.
+- [ ] **Step 2:** Add the field to the existing replacing publication, preserving its normal timer/watch cadence, conditional write and change-index behavior. Test that the published list changes with the effective reconcile configuration on the next ordinary publication and that old readers tolerate the additive field. No forced startup/periodic pool write, extra LIST/GET, or namespace change.
+- [ ] **Step 3:** Have the host serialization test generate/check a shared golden body; T1 consumes those bytes, including existing P3a admission fields. Pin absent versus empty/malformed lists and mixed-version positive/unknown/complete-zero named-pool decisions through T3's real create handlers. Shared decisions and regional counts must stay independent of missing named pools.
+- [ ] **Step 4:** Run targeted host serialization and console pool tests, `make census-card`, and required proposal/checks for changed root units/envelopes. Obtain the task's independent security-gate review before admission integration. Commit `ha: publish named pools in existing edges evidence` on the same implementation branch. No separate scaffolding merge.
+
+### Task T1: Build the bounded observation [own review: cache and security boundary]
+
+**Files:** new `internal/console/{hacapacity.go,hacapacity_observe.go,hacapacity_test.go,hacapacity_observe_test.go}`; `internal/console/server.go`; `cmd/console/{main.go,main_test.go}`. Existing `hotreads.go`, `reqmemo.go`, `boxselect.go` are reference seams, not permission to change other readers' semantics.
+
+- [ ] **Step 1:** Add failing `TestHACapacityConfiguredUniverse`, `TestHACapacityIdentityAndScope`, `TestHACapacityUnknownIsNotZero`, `TestHACapacityBudget`. Use T0's host-produced serialized fixture, including P3a admission fields, and signed identity fixture keys. Include omitted/empty/null placement, missing versus stale status, stale reports older than 24h, absent region, duplicate iid/ref, copied identity, wrong account/region/bucket/fingerprint, unknown versions and exact age/headroom boundaries.
+- [ ] **Step 2:** Implement the strict console configuration and bounded observation described above. Use PageLister for edges and the proposed console-local metadata adapter for status; unsupported stores give unknown. Reuse the status parser with its prefiltered bounded list. T0 owns publication; add no roster reader. Test 200/201 edges, 200/201 recent status keys, >200 old status keys plus live reports within a complete raw page, the 1000-key/truncated raw limit, missing modification times and oversize bodies at the actual store transport. Self-stale edges without status must be excluded; fresh edges without status stay unknown. Pin every precedence-table row in TestHACapacityIdentityAndScope, including non-HA dev neighbors, unbound identities and positive-plus-unknown aggregation with an omitted metric.
+- [ ] **Step 3:** Exercise the real runner with a controllable clock: concurrent reads use one generation, timeout/error replaces success, canceled readers cannot poison others, a create at t=60s+epsilon succeeds while the next pass is in flight, retained producer evidence ages independently, expiry at 120s blocks requests even after a missed tick, shutdown ends the runner, and a second start does not create another loop. Count the initial pass separately from 60 steady-state passes/hour. Through an actual failing S3 transport, prove the dedicated observer client makes one wire attempt, with no hidden SDK retries.
+- [ ] **Step 4:** Run `nice -n 19 go test ./internal/console ./cmd/console -run 'TestHACapacity' -count=1`. Commit `ha: observe verified regional capacity without claims` after the risk-sized review. No standalone merge.
+
+### Task T2: Wire the metric to console start [whole-branch review]
+
+**Files:** `internal/console/{regioncapacity.go,regioncapacity_test.go,awsregionmetric.go,hostclaimops.go}`; `cmd/console/main.go`; T1's observer.
+
+- [ ] **Step 1:** Add `TestHACapacityStartsWithoutClaims` through the real serve/start seam with HostClaim=false, RegionHA=false, HARegions populated and CARLOS_REGION_METRICS=cloudwatch. Assert one loop; moving the existing nested start is part of the test. With metrics unset, admission observation still runs; with no HA configuration and no metric request, it does not.
+- [ ] **Step 2:** Rewrite publishCapacity/regionCapacities around the configured universe and I4 projection, removing their dependency on ExecutorChooser. Preserve Carlos/Region, EligibleBoxes, Count, Region=canonical code, timestamp and one call per region to that configured AWS region. All-zero and partial-region results are explicit cases. Wrong file-controlled AWS region must never redirect a request.
+- [ ] **Step 3:** Use the actual CloudWatch adapter against a loopback HTTP transport. Assert request bodies and destination-region client selection, including one failed region beside a successful one. Keep failure/recovery logging bounded; count no GetMetricData, EC2, SQS or ELB calls. A failed PutMetricData makes one wire attempt and waits until the next tick.
+- [ ] **Step 4:** Run `nice -n 19 go test ./internal/console ./cmd/console -run 'TestHACapacity|TestRegionCap|TestCapacity' -count=1`. Commit `ha: publish regional capacity from console start`.
+
+### Task T3: Refuse creates before side effects [own review: security and production storage]
+
+**Files:** `internal/console/{nocapacity.go,nocapacity_test.go,apiinstances.go,apisidecars.go,domainattach.go}`; new `internal/console/hacreatecapacity_test.go`; relevant existing create, domain, sidecar and writer-census tests.
+
+- [ ] **Step 1:** Add `TestHACreateCapacityDoors` through registered authenticated HTTP handlers, including browser first-domain attach. Run shared-pool allow/zero/unknown for every door and each lifetime/claims setting that the door supports. Verify status/body/header, not just a helper error. Named pools exercise T0's publication and mixed-version decisions, including hapair/cohort1 coverage, unsupported membership, old publishers and all-old regions. Missing pools never produce a page or a regional zero.
+- [ ] **Step 2:** Place the single helper at the pre-write boundaries above. Where existing early roomIn/placement checks precede final input checks, split read-only validation from the mutation phase rather than adding a second predicate. Preserve duplicate, F1/F5 and import refusals, and successful creates outside HA regions. Do not stamp sidecars HA.
+- [ ] **Step 3:** Count all protected stores and local writes: environment bundles/bindings, private-storage adapter calls, history/lifetime slots, records, claims, serial, change index and success audit. Zero/unknown must leave all untouched. Use real local registry/DirStore state plus the existing private-storage transport seam; a test that only asserts no CreateRecord call is insufficient. Include --from, private storage, pending DNS proof and first-domain lifetime paths.
+- [ ] **Step 4:** Add `TestHACreateCapacitySharesObservation` for simultaneous instance/sidecar/domain requests and a metric pass. They consume the same observation and add zero S3 reads. Add `TestHACreateCapacityPageThrottle` covering concurrent zeros, send failure and process restart. Add `TestHACapacityDoesNotGateExistingWake` through the existing edge/activator production fixture with no capacity, preserving its normal HA acquire path.
+- [ ] **Step 5:** Run `nice -n 19 go test ./internal/console -run 'TestHACreateCapacity|TestHACapacity|TestNoCapacity|TestHAP2|TestHACreate|TestHAImport' -count=1` and the package containing the existing-wake witness. Check the relevant console record-write inventories. Commit `ha: gate new creates on shared capacity evidence`.
+
+### Task T4: Deliver the visible slice and close its gate [whole-branch review; scoped live card]
+
+**Files:** test additions above; execution-time docs in `docs/site/cli.md` and `docs/region-ha-runbook.md`; any census artifacts required by the actual diff. This drafting commission writes none of those files.
+
+- [ ] **Step 1:** Approve the executable copy rows below before product/docs writes. Document 503/Retry-After, incomplete evidence versus known zero, T0's named-pool behavior, retained F5 and the create-only boundary. Do not claim readiness or completed drain.
+- [ ] **Step 2:** Prepare the dev card below, including exact proposed capacity config and the named release window. Verify signatures, fixed pins, home bucket/region/fingerprint and all opt-in publications using read-only evidence. A missing prerequisite blocks the roll, not a new producer designed on an unmerged branch.
+- [ ] **Step 3:** Complete local production-wired checks and mutation witnesses: deleting the shared helper call from each door, treating unknown as zero, accepting missing admission fields and restoring the nested HostClaim start must each fail a witness. Run the whole-branch review within the budget and census checks on its final diff. No repetitive review of low-risk tasks.
+- [ ] **Step 4:** In implementation only, run the repo build/vet/test/format gate once, plus required cross-compiles. Push and describe on amadan, verify green CI on the exact tip, squash-merge with -expect, then read main CI. The scheduled dev release and card make the create result visible; archive measured counters and cleanup evidence. This planning session does none of those actions.
+
+## P2b-2: desired role and eligibility diagnostics, N-HA18 (I6, I8)
+
+Use a distinct proposed versioned API for the new object writer and read-back. The exact new routes belong to the executable P2b-2 design. Keep the old roster endpoints unavailable in claims-off HA mode: a released CLI would otherwise accept a save and falsely print that the role is applied. New CLI code must not fall back to the roster writer on 404. The command becomes `carlos system box role <ref|@region-code> <serve|drain|platform>`. Add API-backed read-back and `carlos system region readiness <region>` in this slice; these read commands/endpoints are proposed, not available on the citation base. Keep `publish-record` dispatch intact. Remove misleading group/default/legacy guidance in `system.go`, `system_roles.go` and `docs/site/cli.md`; reject obsolete syntax with R12, never translate legacy to drain silently. Keep old claim-only routes from writing the new object by accident.
+
+The write has these requirements:
+
+- Authenticate a person through apiSystemRoller (`internal/console/apisystemupdate.go:144`) before target reads; service credentials remain excluded. Browser additions, if any, retain session → CSRF → owner → fresh-auth order. No new browser writer is required.
+- Validate with boxroles.Key/Decode. Target an exact independently verified ref or a configured @region-code. No display-label lookup, enrolment, group scan, wildcard or caller-supplied S3 key. A default can be set for a configured region with no live box, so replacements inherit it. An exact-ref write requires usable identity evidence; distinguish unknown evidence from an unknown target.
+- Read the exact desired object and its ETag, then one conditional PUT of `{role,by,at}`. The server supplies by/at. If the role is unchanged, preserve the prior record and write nothing. A CAS conflict returns 409 with no overwrite/retry. Use the existing scope bump, already recognized by release.ChangeScope; do not double-bump. A successful object save remains saved if the automatic index bump later logs failure. Do not tell the user nothing changed in that case.
+- Read-back distinguishes saved desired state, own/default/implicit source, last reported effective role, admitted/drained values, publication time/age, observation age, and missing blockers. A 200 save is not “now applied”; reuse of the old `boxRoleLine` would lie. Handle the role-save response lost in transit by exact-object read-back before any repeat mutation. Local observation invalidation may mark pending immediately but must not trigger another full observation inside the minute.
+- Extend the one observation with B own-role GETs plus R default GETs, deduplicated. Decode both even when an override exists: main's boxroles.Read fails closed if either read/record fails. A fresh override serve legitimately wins over a drain default. Equality between desired and published role is only observed agreement; no exact role-write receipt exists, and clock comparison cannot create one.
+
+The readiness door reports eligibility diagnostics: the region's eligible count and per-box source/timestamps, desired/reported roles, and independent unavailable blockers. Empty, stale or missing evidence is never ready. **Full readiness: Not yet reported** and **Drain completion: Not yet reported** remain explicit until P3b's producers merge. Do not emit Ready from admitted=true or an eligible count. A saved drain request stays **Pending**, including when the last reported role equals drain; that agreement does not permit stopping the box. Do not reconstruct these from an aggregate CloudWatch Admitted datum, the presence of route names, an empty host map, a nil blocker slice, or a saved role.
+
+**Producer gate:** main's local facts are EnvLoaded, Reconciled, RolePublished and TerminationStarted. Full readiness also needs current hosting, forwarding map/key, certs, edge and activator heartbeat, refresh evidence, plus drained completion/duty-transfer truth. P3a provides no remote report for these. Drain currently restricts starts; it does not implement §13's graceful sleep/scan completion. P3b's launch completion, Standby, booting-name protection and group health are later dependencies, not fields to add here. N-HA18 authorizes the diagnostic door now, in the 2026-11-11 dev slot. Its executable tasks may use only the role objects and evidence already merged, plus P2b-1 after its merge. Full-readiness and drain-completion extensions wait for P3b producers to merge and be re-read; those producers must ride existing status/edges cadence with no new box poll. No proposed P3b fields are part of this door.
+
+Own reviews apply to the operator writer, security/identity changes, any cache extension and root CLI changes. Production-wired witnesses must drive the actual P3a role reader from the console-written DirStore object, publish its actual edges body, and read it back through the new door. Include default/override precedence, malformed default despite override, write conflict, saved-but-unobserved, old CLI/new server and new CLI/old server, and all unauthorized principals. No fixture may invent drained=true as proof that P3a drains.
+
+## P2b-3: HA display design entry brief (I7)
+
+This slice remains outline-only under the controller's Q4/Q5 ruling. When scheduled, it gets one explicitly scoped review carrying the two C1 P1 rounds, closed third round and N-HA13. Stop at the first P1-free round; a repeated-family P1 returns to Paul without a fix. It changes observed presentation, not runtime authority. Scope by immutable rec.HA even when HARegions is later unset. Determine actual activator ownership first: address-backed HA records and pre-existing non-hibernating sockets may have no rollout report and must retain their applicable metrics/health paths. A fresh timestamp after CreatedAt is the existing lifetime fence, not a published incarnation ID: `internal/status/snapshot.go:370` has no such ID. A stronger proof needs a separately merged producer, not an invented field.
+
+### Consumer inventory at 016599d5
+
+| Consumer | Existing anchors and obligation |
+|---|---|
+| Shared joins / report cache | `internal/console/apiinstances.go:938`, `:978`, `:1133`; `internal/console/remoteinstances.go:162`, `:259`, `:337`. Replace last-read/newest-report selection for applicable HA hosts with one projection. Keep record/tenant fences and completeness; one platform status load per observation, not per host/tab. |
+| List API, counts, filters, pagination | `internal/console/apiinstances.go:394`, `:563`, `:1309`, `:1326`, `:1369`. Compute health, count and filter from the same projection as the returned row. rollout_incomplete applies to unknown/conflicting HA rows even in an all-HA list. |
+| Single GET / placement | `internal/console/apiinstances.go:1385`, `:1425`; `internal/console/instancesplacement.go:48`. Single GET currently has served_by only, not the list's health/rollout. Add only explicit agreed observation fields; do not mistake every adopter for the awake box or silently expand to a full list row. |
+| Local and remote app detail/list | `internal/console/instancepage.go:298`, `:302`; `internal/console/remoteinstances.go:417`, `:581`; `internal/console/overview.go:123`, `:303`, `:359`; `internal/console/templates/app_instance.html:19`. Local platform rows cannot override a remote awake reporter. Preserve Setting up for complete evidence with no adoption, and Unknown when evidence is incomplete. |
+| Hold, Failed, retry presentation | `internal/console/instancepage.go:43`, `:52`, `:81`, `:115`. A held/down host may be asleep. Keep hold text, Failed health and recovery independently of awake selection. |
+| Retry grant | `internal/console/apiretry.go:82`, `:110`, `:167`. Select fresh tenant/lifetime-checked HeldBy/book/epoch evidence, not the uniquely awake box. Ambiguity/incompleteness produces zero grant and serial writes. This task needs its own security review. |
+| Other per-host fields | `internal/console/apiinstances.go:180`, `:205`, `:231`, `:241`, `:248`, `:263`, `:715`, `:857`, `:883`. The later design must assign a source/clear/aggregate rule for staged_version, upstreams, db_bytes, update_report, config_refusal and egress, plus detail Updates, Installed, Serving and worker states. Do not carry fields from another box beside the chosen rollout. |
+| CLI decoder and table | `apimode.go:3463`, `:3512`; `instances_cli.go:573`, `:583`, `:596`, `:696`. State whether each addition reaches table or JSON. Main has no instances list --json flag; adding it needs help/docs/decoder/truncation/omission tests, not an assumed existing switch. |
+| Deploy watch, first decision | `deploywatch.go:96`, `:172`, `:201`, `:278`, `:303`, `:422`. A complete list with nil rollout can satisfy legacyOnly and URL-poll sleeping hosts. A new CLI-only fix is insufficient. |
+| Deploy watch, later decisions/grouping | `deploywatch.go:477`, `:525`. Unknown/all-asleep/mixed/held transitions must never change an HA host into modeURL. Empty awake-box attribution must not break grouping, Installed or SchedulerIdle decisions. |
+| Released clients | v0.34.0's watchInstanceList/legacyOnly/apply/groupByBox and apiRollout retain these same fallback rules. Preserve a wire answer those clients can safely interpret; verify supported older releases too before switch-on. Older servers may omit new fields. No unsupported capability may decode as healthy/asleep by zero value. |
+
+The separate design must settle these requirements together:
+
+1. One valid awake reporter may win over sleeping adopters only with complete applicable evidence. Multiple awake/transient reporters, wrong tenant/lifetime, unread reports or unsupported coverage are unknown. Neither sorting labels nor taking the latest timestamp resolves a conflict.
+2. An all-asleep answer claims no awake box. Define agreement on Installed, scheduler-idle and hold state before a rollout is considered final. A nil rollout on a complete HA list is unsafe for old deploy watches. Supply a compatible safe server projection or block the slice; never fix only the new CLI. Assert zero URL requests, including fallback from a later refresh.
+3. Keep status generation, normal 5m cadence, 15m freshness and console-cache age distinct. No report is not asleep. Freshness checks use both future bounds and valid generation semantics.
+4. Stale dead-holder keys can remain inside the 24h listing horizon. The later design must prove a shorter exclusion bound from a merged stop guarantee with clock witnesses, or a separately merged evidence producer, before switch-on. The controller chose the shorter-bound requirement with no capability cut; a 24-hour unknown display is not an accepted fallback. This draft claims no such bound.
+5. Source every ancillary field consistently; all-HA versus mixed lists must not change the result or trigger a hidden second loader. Existing unrelated non-HA rows retain main behavior. Cover health on both console-local and remote routes.
+
+Use the real `TestInstalledAndServingCells`, `TestRolloutReason`, `TestRolloutWireShape` in `instances_rollout_test.go:15`, `:36`, `:77`, plus the actual deploywatch tests, notably `TestWatchRolloutDarkBoxNeverPollsOverHTTP`, `TestWatchRolloutMixedFleetPollsOnlyTheUnreported`, `TestWatchRolloutWithNoReportsIsTheOldWatch`, and `TestWatchRolloutIncompleteJoinIsNotNoReports`. Add an HTTP integration witness feeding real console list JSON to the released/current decoders and watches with a counted URL transport. A permutation test over report order and local/remote placement must yield identical HA answers. Removing rollout_incomplete or returning nil for known sleep must make the zero-poll witness fail.
+
+P2b-3 adds no independent polling loop. Its later design must connect page/list/detail/single-GET/retry reads to a shared source generation and count fleet-specific reads separately. It must carry a complete copy/field decision table and the inherited review history before execution.
+
+## Request and cost budget (I3)
+
+G/P/L/D mean S3 GET/PUT/LIST/DELETE API attempts. Spec §18 pins G at **$0.0004/1,000**, P/L at **$0.005/1,000**, D free. All numbers below are incremental capacity/role/display work, not the unchanged reads and writes of a successful create. Failed requests count. Configure the new console observation store and CloudWatch client for one SDK attempt per operation: their retry is the next minute. The later role writer must use the same one-attempt policy for its object and index calls; the index's bounded application-level CAS attempts remain counted below. Keep this client policy local to the new paths, without changing other console or box clients. For these new paths logical counts therefore equal wire-attempt bounds. Existing box fan-out rows are application-call counts; record their deployed SDK multiplier separately in the card. No operation is called free because it fails.
+
+Let E be accepted edges keys, H accepted status keys after the 24-hour horizon, B distinct identity refs needing verification (B<=E), R configured HA regions and C console processes. The observer makes one bounded request per prefix, including empty prefixes: 201 edges keys as a sentinel for the 200-edge limit; up to 1000 raw status entries with modification times and truncation, then <=200 recent/unknown-time status keys after horizon filtering. Old status entries add LIST response bytes only, no GETs and no slots in the recent-report cap. Raw truncation or >200 recent keys is incomplete, without another page. Cap remedies are in Observation and freshness. If a later design raises these bounds, price every page and any terminal empty page. Existing unbounded main readers are not relabeled as this budget.
+
+| Path/event | Incremental logical requests and effect |
+|---|---|
+| P2b-1 accepted observation, once/minute/console | **2L + (E+H+B)G; 0P/0D.** One GET per accepted body and verified ref; no desired-role GET in P2b-1. Empty prefixes still cost 2L and return zero for configured regions. |
+| Pool field on ordinary edges publication/fold | **0 added G/P/L/D and 0 AWS calls.** T0 adds JSON bytes to the existing write and each existing read; no new object, write trigger, index bump, request or poll. |
+| Unreadable/capped observation | At most that bound for started calls; a failed first LIST costs its attempt. No request-time retry. Omit affected metric points, refuse creates, no page. At most one subsequent scheduled attempt per minute. |
+| Metric tick | **0 additional S3; up to R PutMetricData calls**, one datum/region at standard resolution. Incomplete regions omitted. No GetMetricData, EC2 Describe, SQS, ELB, ASG or SSM calls. |
+| Each create admission / retrying a refused create | **0G/0P/0L/0D, 0 AWS control calls** from capacity. Auth, validation and existing prefix proof remain separately charged. Refusal writes no protected state; complete zero may send the existing throttled operator alert. No additional alert from an unknown observation or metric alone. |
+| P2b-2 observation extension | **+(B+R)G** for own/default desired objects, including known absence; 0P/L/D. Deduplicate defaults, not their error semantics. Read-back/diagnostic requests use this observation for effective state. |
+| Role exact-object read-back | **1G** for desired object/ETag when requested live; effective evidence from observation, **0 extra status loads**. Unknown target may also need one identity GET if no usable verified observation exists; do not reload the fleet. Region-default target verification is configuration-only. |
+| Role no-op | **1G**, plus at most that one target identity GET. No role PUT, audit of change or index bump. |
+| Role changed, successful conditional write | Precondition **1G**, role **1P**, index **kG+kP**, k<=4 total attempts (`internal/release/changeindex.go:31`, `:129`). Add optional explicit read-back **1G** and cold target verification **1G**. Normal warm save 2G+2P; fully counted maximum with both extras **7G+5P**. |
+| Role CAS conflict / write uncertainty | One attempted role P plus its precondition G; conflict does not bump. Return conflict, no automatic rewrite. An uncertain response can require **1G** exact read-back; a retry is a new explicit event. Already-saved/index-failed is not rolled back or reported unchanged. |
+| Box reader fan-out of a role change | Existing scope watch: **2G per opted-in box per observed change**, even own-role override/default absence or first-read failure. Startup also 2G; retry backoff 5s, doubling to 60s, then 2G/minute on sustained failure (`internal/host/boxroles.go:91`). Existing watch/backstop reads are not new P2b polls. |
+| Effective role edges mutation | Existing replacing write/index (`internal/host/snapshot_loop.go:221`): normal **2G+2P**, upper successful bound **7G+7P** (up to 3 object CAS attempts plus up to 4 index attempts); failures/retries charged again. No forced publication merely because an operator reads a row. |
+| Each resulting edges reader fold | For N deployment edges keys, per affected reader **ceil(N/1000)L+N G**, at least 1L for empty prefix. Coalesced existing bound **120 folds/hour/box**; multiply by all readers. Role reads cost no all-role LIST. |
+| P2b-3 display | No execution budget approved yet. Required envelope: **0 added S3 on a warm shared observation**, one **ceil(H/1000)L+H G** status load on a cold shared refresh if it cannot reuse P2b-1; at least 1L when empty. It must become one shared refresh, not one per row/tab or a second per-minute loop. Existing fleet-prefix lists/GETs and record reads remain charged separately. No lock, EC2 or HTTP-health/host-URL probes. |
+
+The pool-field byte increment per body is the length of `,"named_pools":` plus the compact JSON array: 25 bytes for sophie (hapair), 35 bytes for leo (cohort1,hapair), and 17 bytes for an empty array. Each normal upload, observer GET and existing reader fold carries those bytes; sum the per-box increments times each path's existing publication/read count. It adds 60 stored bytes for the dev pair and 2,592,000 response bytes per 43,200 console observations, with **$0 incremental request cost/month per region or console**. Existing S3 storage/transfer tariffs, if applicable, price those bytes separately; §18 pins request prices only.
+
+For a 30-day month, steady-state passes are **43,200 per console**, plus one initial pass at startup and one after each restart. P2b-1 S3 cost is:
+
+`C * 43,200 * (2 * $0.000005 + (E+H+B) * $0.0000004)`.
+
+For a two-box, one-region console with E=H=B=2: **86,400 L + 259,200 G = $0.53568/month/console**. A three-box deployment is **$0.58752/month/console**. The fixed cost of the two deployment-wide lists is **$0.432/month/console**; the variable portion for region r is **$0.01728*(E_r+H_r+B_r)/month/console**. Do not charge the shared LIST twice when attributing costs to regions. P2b-2 adds **$0.01728*(B+R)/month/console**, or **$0.05184** for two boxes/one region. Bounds charge a fresh identity verification every minute, with no speculative cache saving.
+
+CloudWatch adds **43,200 PutMetricData requests/region/month/console** and one regional EligibleBoxes time series, plus startup/restart sends. The pinned spec supplies no CloudWatch request/custom-metric tariff. Its dollar line is therefore `43,200*C*regional request price + one time-series price/region`, not $0 and not an invented pinned rate. The release card must record the account's actual tariff/free allowance and resulting total before arming. Multiple consoles multiply API requests and S3 cost; the metric's dimensions do not create one new time series per console. No new EC2 Describe cost exists.
+
+Role event example, four opted-in readers and one changed effective publication: normal console save 2G+2P, readers 8G, publication 2G+2P, one fold on each reader 4L+16G. Total **28G+4P+4L = $0.0000512**, before explicit read-back, retries or coalescing savings. P3a's existing steady-state S3/SQS/clock metric workload remains outside the incremental console cost; there is **no new per-box polling workload**.
+
+## Copy deck for execution
+
+Drafts only, as expressly requested. This implementation-plan deck is not product approval. Before strings enter code, CLI help, logs or user docs, the execution controller runs copy review and applies accepted wording verbatim. Every string proposed by this revision is below; later outline details require a refreshed deck before execution. No em dashes in new copy. API blocker codes are stable machine values with these human renderings, never raw nested errors.
+
+| ID | Where | Draft or exact reuse |
+|---|---|---|
+| C01 | Create 503 | Exact reuse of noCapacityRefusal: `No box in %s has room right now. Try again in a few minutes.` |
+| C02 | Operator capacity page subject | Exact reuse: `No box in %s has room` |
+| C03 | Operator capacity page body | Exact reuse of noCapacityAlert at nocapacity.go:42, including its full/stale/role explanation. Do not rewrite it for this slice. |
+| C04 | Unknown evidence create 503 | `Capacity in %s could not be checked. Nothing was created. Try again in a minute.` |
+| C05 | Capacity configuration error, pre-roll/startup | `HA capacity configuration is invalid for %s. Check the configured region, data bucket and box identities.` |
+| C06 | Observer start log | `HA capacity observation started. Checking once a minute.` |
+| C07 | Observer failure log | `HA capacity evidence is incomplete for %s. New creates are paused there.` |
+| C08 | Observer recovery log | `HA capacity evidence is available again for %s.` |
+| C09 | Metric start/failure/recovery logs | Reuse existing regioncapacity.go:122, :134, :137 and awsregionmetric.go:63 wording; no new prose variant. |
+| C10 | Named-pool evidence unavailable, 503 | `Capacity for pool %s in %s could not be checked. Nothing was created. A box serving this pool must report its pool membership before this create can proceed.` |
+| C11 | Unbound identity diagnostic | `This box has a signed identity but no configured reference binding. It is excluded from capacity.` |
+| R01 | CLI role usage | `carlos system box role <ref|@region-code> <serve|drain|platform>` |
+| R02 | Proposed role read-back usage | `carlos system box role <ref|@region-code>` |
+| R03 | Proposed readiness usage | `carlos system region readiness <region>` |
+| R04 | Saved desired role, CLI/API | `Saved %s as the desired role for %s. Read readiness to check what the box has reported.` |
+| R05 | No-op desired save | `The desired role for %s is already %s.` |
+| R06 | Invalid role, 400 | `Role must be serve, drain or platform.` |
+| R07 | Invalid target, 400 | `Use an exact box reference or @region- followed by a configured region code.` |
+| R08 | Unknown target, 404 after operator gate | `No verified box or configured region matches %s.` |
+| R09 | Target/read unavailable, 503 | `The role evidence for %s could not be read. Nothing was changed. Try again.` |
+| R10 | Lost role CAS, 409 | `The desired role changed while it was being saved. Nothing was changed by this request. Read it again before retrying.` |
+| R11 | Ambiguous role write, 503 | `The role save could not be confirmed. Read the desired role before retrying.` |
+| R12 | Obsolete group/default/legacy syntax | `Use system box role with a box reference or @region-code and serve, drain or platform.` |
+| R13 | Operator audit and role-save log | `Set the desired role of %s to %s.` |
+| R14 | Read-back labels, separate strings | `Box`; `Region`; `Desired role`; `Role source`; `Reported role`; `Admitted`; `Drained`; `Generated at`; `Age`; `Evidence source`; `Blockers`; `Eligible boxes` |
+| R15 | Role source values, separate strings | `Box override`; `Region default`; `Implicit serve` |
+| R16 | Readiness values, separate strings | `Eligible`; `Not eligible`; `Unknown`; `Pending`; `Not yet reported`; `Yes`; `No` |
+| R17 | Missing/stale source blockers | `No report is available.`; `The report is too old.`; `The report time is invalid.`; `Some evidence could not be read.` |
+| R18 | Identity/configuration blockers | `The box identity could not be verified.`; `The box reports different region or data settings.`; `This report version is not supported.` |
+| R19 | Eligibility blockers | `The box is booting.`; `The box is not admitted.`; `The box is draining.`; `The box has the platform role.`; `The box reports that it has drained.`; `The box has too little free memory or disk.` |
+| R20 | Missing inputs/pool blockers | `Headroom totals are not available.`; `Shared-pool hosting is not available.`; `Named-pool membership is not reported by this release.`; `Admission is not reported by this release.` |
+| R21 | Full readiness limitation | `Full readiness is not yet reported. Current admission and health checks are not available in this release.` |
+| R22 | Desired/effective discrepancy | `The box has not reported the desired role yet.` |
+| R23 | Read-back age | `Reported at %s UTC. Observed %s ago.` |
+| R24 | Drain completion limitation | `Drain completion is not yet reported. The drain request is pending. Do not stop the box on the basis of this request.` |
+| R25 | Diagnostic labels, separate strings | `Eligibility`; `Full readiness`; `Drain completion`; `Drain request` |
+| H01 | HA awake observation, later display | `Awake on %s as of %s UTC.` |
+| H02 | Proven asleep observation | `Asleep as of %s UTC.` |
+| H03 | Unknown/conflicting observation | `The current box could not be confirmed.`; `Boxes disagree about this instance. Its current state is unknown.` |
+| H04 | Retry ambiguous/incomplete refusal | `The failure hold could not be confirmed. No retry was requested. Try again after the reports update.` |
+| H05 | Display provenance/empty states | `Last reported`; `Setting up`; `Unknown`. Reuse existing latter labels where possible. |
+| D01 | CLI/runbook create explanation | `New creates in an HA region need a box with room. A 503 response asks you to retry after 60 seconds. Missing evidence pauses creates without reporting zero capacity. Existing instances can still wake.` |
+| D02 | Role/readiness docs | `A role change saves the desired role. Read it back to see the last reported role and its age. A saved drain request does not prove that instances have stopped or duties have moved.` |
+| D03 | Deployment docs | `Roll the boxes and verify their admission reports before enabling the capacity check. Keep the home placement empty. Set the configured region codes and data coordinates on the console.` |
+| D04 | Named-pool and mixed-version docs | `Named-pool creates need a serving box that reports membership of the requested pool. Older boxes do not report this evidence. If no box confirms capacity and evidence is missing, the create returns 503 without a capacity alert. Shared-pool creates use the existing shared-pool reports.` |
+| D05 | Display docs | `The box and state are observations from reports. They can be delayed. A sleeping HA instance is not woken to check a deploy.` |
+
+HTTP codes/Retry-After and JSON field names are protocol, not extra prose. Preserve existing auth/duplicate/F1/F5 errors verbatim. If execution adds a new error, tooltip, help paragraph, blocker or log, it must enter this deck before writing product copy. Outline-only readiness reasons for unpublished individual facts must not be rendered as if the facts were measured.
+
+## Census and reviews
+
+This plan-only Markdown changes no root-census byte. P2b-1 now also changes the root-scoped host edges publisher and any shared decoder needed for named_pools. T0 needs a card for the additive JSON field, serialization/configuration reads, tests in scoped envelopes and all consumer changes. Its console-only admission/observer changes remain outside root scope unless they modify a linked shared package. Confirm with `make census-card` on the implementation diff; do not assume a new shared helper is exempt. Reuse boxchoice without modifying its runtime policy. Relevant record-write censuses still apply to create/role writers even when the root census is empty.
+
+P2b-2 CLI role/read-back/diagnostic output, dispatch, flags, usage and JSON decoder changes in system.go/system_roles.go are root-binary surface. Any shared boxroles/release/status/edgesfile change is also in scope. P2b-3 changes in apimode.go, instances_cli.go, deploywatch.go and linked shared packages need a card, including every changed unit and whole-file envelope. Docs prose under docs/site is not a root read, but every new command needs its CLI heading and docsite validation; flags and JSON cannot evade census by being called presentation.
+
+For an in-scope diff: create CLAIMS with tab-separated file:unit and changes/new reads; run census-propose under the actual slice name; run targeted census, scope, rebase and J4 checks; obtain an independent Opus or Fable verdict for this Codex-authored work against amadan main at the exact tip, including every unit/envelope, and record it on #280 in the authorized implementation session. The reviewer decides; do not escalate census classes to Paul. This session dispatches nobody and posts nothing.
+
+Review T0's pool-evidence security gate/root surface, T1's cache/identity boundary and T3's pre-write gate separately under stopping rule 3. T2 and docs/local acceptance ride one whole-branch review. Later role authority, retry grants, root changes and new caches get risk-sized review. A final P2 fix still needs census and changed security/root/termination/storage checks inside the same budget.
+
+## Dev switch-on card and rollback
+
+Preparation is read-only. A later card names the actual AWS account/region, deployment, console service, sophie/leo identities, binary versions, exact env/config changes, disposable app/hosts, cost ceiling, traffic effect, operator, window and cleanup. #421's prior G1 approval is not approval for these additional settings or a P3a drill.
+
+1. **Before P2b-1 merges**, roll a P3a-only dev release and pass its fixed-pair admission drill. Confirm every dev box is on P3a before opt-in and satisfy its own card: sophie's console route Unit=console.service, chronyc under the edge sandbox, change-index read mode, root-owned region-config.json and termination queues/Started. CARLOS_GROUP_ADMISSION=1 is box-only. The console keeps its box HA variables unset and CARLOS_REGION empty. Record the drill's binary and evidence; a combined P3a/P2b-1 release cannot substitute for it.
+2. Book **2026-11-09, 14:00–16:00 UTC** with a named release operator. Hold other dev releases and unattended updates during that window. Before the release carrying P2b-1, validate the exact CONSOLE_HA_CAPACITY_CONFIG and existing SecretsPub/AWSAccount/home data settings, then install the capacity-config drop-in on the dev console **without restart**. Preserve CONSOLE_HA_REGIONS=ie. Set CARLOS_REGION_METRICS=cloudwatch only after verifying its existing Carlos/Region PutMetricData grant. Missing rights need a separate scoped card. Preserve CONSOLE_REGION_INGRESS/PLATFORM_EDGE_IPS. Flagship is unaffected while CONSOLE_HA_REGIONS remains unset there; verify that read-only.
+3. Record current total key counts under control/edges/ and status/boxes/, plus status counts inside the 24-hour horizon, on dev and flagship. Include the 200-edge, 200-recent-status and 1000-raw-status limits and the scoped cap remedies above. Record each dev box's actual wire placement, including sophie, leo, dennis, box-1 and any lingering noor-fossicking publication. Home is empty/omitted, not ie. Non-HA home neighbors must be known scope exclusions without identity/admission requirements.
+4. Roll P2b-1's boxes before its console. Verify fresh named_pools: sophie-knitting [hapair], leo-climbing [cohort1,hapair], with sophie's shared flag true and leo's false; also verify admission, identities and timestamps. No new object or extra poll is installed. Confirm supported named-pool users retain capacity; retain the F5 HA-data cut. Mixed-version and incomplete-evidence cases run locally first. Only after these checks roll the new console, whose already-set HARegions activates the gate immediately.
+5. In the attended window, show positive shared and supported named-pool creates and cleanup through CLI/API. For visible refusal, use the card's separately approved temporary capacity-configuration exclusion or coordinated P3a role window; name all concurrent creates affected. Show the no-capacity response and zero protected writes, restore and show recovery, and observe the corresponding CloudWatch count and transport counters. Do not exhaust memory, alter storage prefixes, drain a production workload or kill an edge merely to manufacture zero. Incomplete-evidence injection remains local unless explicitly scoped; existing wakes continue through the real edge.
+6. Record exact previous binary/config/env bytes and restore them on failure. Stop experimental creates before rollback. Roll back the console gate before reverting a pool publisher, so named creates do not become unknown during rollback. Restoring the prior console returns to its earlier weaker create checks; it is no proof of capacity. Preserve immutable HA stamps. Removing CARLOS_REGION_METRICS stops sends only, not admission. Restore approved configuration/role changes and verify read-back/publication. Retire only approved throwaways through CLI/API, release the update hold, remove owned scratch and stop test processes.
+
+Role/readiness and display later get separate cards. Full readiness green, graceful drain, ASG hook/Standby and NLB/termination/hairpin drills remain with their merged producers and approved series cards. Do not report P2b-1's create drill as those gates passing.
+
+## Resolved questions and execution prerequisites
+
+Q1–Q5 are resolved by the attributed 2026-11-04 rulings above. No design choice remains open for Paul in this revision. The dated dev slots require a named release operator, scoped live card and the documented prerequisites before implementation merges. These are execution gates, not permission to mutate production from this planning session.
+
+## R1 P2 dispositions
+
+| Finding / fault family | Rev 2 change |
+|---|---|
+| P2-1 / capacity evidence classification, I2/I4 | Ordered per-file scope exclusions before identity/admission, explicit unbound exclusion, positive-witness admission and complete-only regional metric; T1 pins each case. |
+| P2-2 / observation lifetime, I3 | Fixed 60-second schedule, 45-second pass deadline and 120-second start-based expiry; test a create during the successor pass and recheck producer times at use. |
+| P2-3 / bounded census of unbounded history, I2/I3 | Restore the 24-hour status horizon before GETs/report cap, exclude self-stale edges without status, retain modification metadata in one bounded LIST, and document raw-cap limits, count inventories and scoped cleanup. |
+| P2-4 / rollout gating, I6 | P3a-only release/drill before merge; validated capacity-config drop-in installed before the P2b-1 release; named attended window with other releases held; flagship remains off. |
+| P2-5 / switch-on scheduling, rule 5 | Q1's pool producer rides P2b-1 as T0. Move the full slice to the 2026-11-09 dev slot for its added implementation and review work. |
+
+## R1 P3 follow-ups
+
+All nine remain recorded; none starts a review round. Only one-line wording fixes are applied here, except the pool-fixture detail necessarily supplied by the new Q1 task.
+
+| R1 item / invariant | Disposition |
+|---|---|
+| P3-1 / I5, import precedence | One-line correction applied: permanent HA import refusal precedes capacity. Implementation witness belongs to T3. |
+| P3-2 / I2, persistent named-pool refusal | Superseded by Q1's producer; C10 still explains missing publication in mixed-version regions without promising a one-minute fix. |
+| P3-3 / I5, region versus HA stamp | One-line correction applied: creates outside CONSOLE_HA_REGIONS retain main behavior. |
+| P3-4 / I4, real serialized fixture | T0's new Q1 task supplies a host-generated/checked golden body shared with T1; no hand-written production-field proof. |
+| P3-5 / I1, vacuous wake witness | Follow-up in T3 implementation: replace the console-inaccessible edge wake test with console enable/restart/deploy/retry/alias-attach door witnesses under zero and unknown observations. Retain the series' real wake coverage separately. |
+| P3-6 / I3, worker registration | Follow-up in T2 implementation: register the new worker name with RunClaimWorker and specify idle job-list behavior, since unregistered names panic. |
+| P3-7 / I2, absent status iid | Follow-up in T1 implementation: make an empty status metrics.instance_id explicit unknown, not a conclusive identity mismatch. |
+| P3-8 / I2, duplicated fixed bindings | Follow-up in the release card/runbook: cross-check console fixed_boxes with box CARLOS_HA_FIXED_BOX_IDENTITIES, including recreated fixed refs. |
+| P3-9 / I2, identity verifier setup | Follow-up in the release card: verify Config.AWSAccount and the embedded identity certificates on the actual console binary. |
+
+## Round history and stopping rules
+
+**R1 (Opus) READY AFTER FIXES, 0 P1 / 5 P2 / 9 P3, applied as rev 2; review closed under rule 1. The pool-evidence task added by the Q1 ruling was not in R1; its build gets its own per-task review (rule 3).**
+
+| Inherited review | History and disposition |
+|---|---|
+| P2 R1, Opus, 2026-11-01 | NOT READY, 1 P1/9 P2/11 P3. P1-1: honest display/shared observation C1. Requirements carried above. |
+| P2 R2, Opus, 2026-11-01 | NOT READY, 1 P1/7 P2/6 P3. P1-A repeats C1 through sleeping-host URL fallback. N-HA13 cuts display; no third family fix. |
+| P2 R3, Opus, 2026-11-01 | READY AFTER FIXES, 0 P1/1 P2/7 P3. P2a rev 4 applies fixes; review CLOSED, 3 of 3 used. No automatic fourth round for an outline split. |
+| P3a T2 namespace withdrawal | F1/F2, N1, then R2-1/R2-2. Final controller CUT under Paul's delegation. Closed; no P2b repair of that family. |
+| P2b R1, Opus, 2026-11-04 | READY AFTER FIXES, 0 P1 / 5 P2 / 9 P3, at plan 77b0d81d / branch 7124ba61. Archived as `docs/superpowers/reviews/REVIEW-REGION-HA-P2B-R1.md`. Rev 2 applies all P2s; review CLOSED after one round. T0 was added by Q1 after R1 and needs its build review. |
+| This revision | Author edits only; no second review, production change, test suite or deployment claimed. |
+
+Future briefs use `docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md` and carry this history. The controller must scope capacity/role review as the newly executable merged-input slice, not reopen P2a. Stop at the first no-P1 round, apply P2s without reopening, list P3s as follow-ups. A fourth round needs Paul's scoped go. Two consecutive findings against one invariant stop fixes and require his refuse/cut/central-enforcement choice. The controller's Q4/Q5 ruling scopes display review when scheduled; a repeated C1 P1 returns to Paul without a fix.
+
+One implementation session owns one slice and ends at its merge. At three days or three compactions, hand off and stop. At 24h without a merge, or a stopping-rule trigger, report the blocker, last two rounds and recommended cut to Paul and on the authorized branch discussion; repeat every further 24h. Splitting this document does not reset the clock or rounds. This plan's requested local drafting work ends at its commit; no branch post or HANDOFF.md is written.
+
+Draft verification: re-read cited merged code, check no proposed interface is claimed to exist, verify budget arithmetic and all required sections, run `git diff --check`, verify the archived review is byte-identical to R1, stage only this plan and that review, and use the requested author and a subject shorter than 80 characters. Runtime tests and live acceptance remain unchecked implementation tasks.
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P2B-R1.md b/docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P2B-R1.md
new file mode 100644
index 000000000..a0779ddd5
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P2B-R1.md
@@ -0,0 +1,92 @@
+# Review brief: region HA P2b console plan, round 1 of 3
+
+Repo carlos/platform, branch `region-ha-p2b-plan`, commit 77b0d81dfe9b5ea33f3d66187c0d75dadcefa62d.
+Under review: `docs/superpowers/plans/2026-11-04-region-ha-p2b-console.md`.
+Authorities, all MERGED on main (base 016599d5):
+`docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md`,
+`docs/superpowers/plans/2026-11-01-region-ha-p2-console.md` (its P2b and
+HA display outlines are this plan's requirements),
+`docs/superpowers/plans/2026-11-01-region-ha-p1b3-placement.md`,
+`docs/superpowers/plans/2026-11-03-region-ha-p1b3b-duties.md`,
+`docs/superpowers/plans/2026-11-01-region-ha-p3-group.md`, and the merged
+code (P1b-3a, P1b-3b slice T, P2a, P3a 016599d, follow-ups f18da98).
+P3b is NOT merged. Do not review against unmerged branches; if this work
+needs one, 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 N-HA1 to N-HA17 and the controller rulings under Paul's
+ delegation, recorded on discussion #421 (a copy is at
+ /home/paulca/.cache/region-ha-p2b/d421.md). Report only mechanisms that
+ fail to honour them.
+- N-HA13: the HA display was cut from P2a after two rounds of P1 in family
+ C1. The display slice here (P2b-3) is an outline/entry brief; do not
+ review it as executable, but do flag any claim in it that is wrong
+ against main.
+- The deliberate G3 cut on non-home/pool HA data creates stays.
+- AGENTS.md stopping rules 1-8 (rule 4: main only; rule 5: switch-on date).
+
+## What to check
+
+1. Every file:line, type, function and env var cited exists on 016599d5 and
+ does what the plan says. Flag anything that relies on P3b or other
+ unmerged work.
+2. P2b-1 executable tasks T1-T4: the shared one-minute observation, the
+ eligibility rule (verified live edges, effective roles, placement,
+ bucket, fingerprint, freshness), metric start independent of HostClaim,
+ and create refusals before ANY side effect (env binding, domain claim,
+ store write, lifetime registration) on every create door (instance incl.
+ --from/import, standalone sidecar, first-domain route). Existing-host
+ wakes must stay outside the gate. Incomplete evidence must refuse
+ without paging or publishing zero.
+3. Request budget: no new per-box polling, no per-row status loads; S3,
+ CloudWatch and EC2 counts and prices correct; one observation shared by
+ metric and admission.
+4. Trust: AWS region and region universe come from trusted configuration,
+ never from file contents; unverified identities are excluded.
+5. Tests are production-wired witnesses, not fakes only; per-task review
+ marks follow stopping rule 3.
+6. Dev switch-on card and rollback are executable and accurate about dev's
+ current state (check the plan's claims about CONSOLE_HA_REGIONS on the
+ dev console against #421: it was set only during drill windows and
+ unset afterwards unless #421 says otherwise).
+7. Open questions Q1-Q5: is each a real decision for Paul, is the
+ recommendation sound, and did the plan make any silent choice that cuts
+ user-visible capability or changes a spec ruling?
+8. Copy deck: complete for the strings P2b-1 adds; plain; no em dashes.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+ Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review. (The
+ census, and review of any newly changed security, root, termination
+ or production-storage behaviour, still check the fix; see AGENTS.md,
+ "Stopping rules".)
+- **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 or task, 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.
+
+In round 3, 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.
diff --git a/docs/superpowers/reviews/REVIEW-REGION-HA-P2B-R1.md b/docs/superpowers/reviews/REVIEW-REGION-HA-P2B-R1.md
new file mode 100644
index 000000000..2027af3fd
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-REGION-HA-P2B-R1.md
@@ -0,0 +1,93 @@
+# Review: region HA P2b console plan, round 1 of 3
+
+Reviewer: Opus, independent. Plan `docs/superpowers/plans/2026-11-04-region-ha-p2b-console.md` at 77b0d81d (branch tip 7124ba61). Citation base 016599d5. Read-only; no tests run.
+
+## Summary
+
+Citations hold. I checked every existing-code anchor in "Merged evidence", the create doors, the metric start, boxchoice, the status loader, the P2b-2 role seams and the P2b-3 inventory against 016599d5. Each exists and says what the plan says. The plan does not depend on P3b. The budget arithmetic is right: $0.53568, $0.58752, $0.432, $0.01728 per key, $0.05184 for P2b-2, and the role event total of 28G+4P+4L = $0.0000512. The plan's statement about the dev console agrees with #421. CONSOLE_HA_REGIONS=ie was set as G1 item 8 at 23:03Z, approved by Paul, and was never unset (d421.md:377, :383, :430). The plan is right to drop P2a's "unset" assumption. The copy deck has no em dashes, and C01-C03 and C09 match main's strings exactly.
+
+I found no P1. The P2s are gaps in four places: how the observation classifies boxes and how long it stays valid, the status-key bound, how merging and releasing the slice line up with P3a, and the Q1/Q3 recommendations. Each has a local fix that needs no new round.
+
+## P1
+
+None.
+
+## P2
+
+### P2-1. Box classification precedence and regional aggregation are unspecified (Eligibility; T1)
+
+- **Invariant / family:** I2 (complete or unknown) and I4 (eligibility agrees). Family: capacity evidence classification.
+- **Problem.** Plan lines 111, 115 and 117 list the counted predicate, some known exclusions (booting, drain, platform, not admitted, drained, stale, insufficient totals) and some unknowns (missing admission additions, missing identity, missing status counterpart, unknown protocol). They never say:
+ 1. whether a box that is plainly out of scope is excluded before identity and admission evidence are demanded. Out of scope means another placement, another data bucket, no `region-ha-1` capability, no hibernation, or the wrong secrets fingerprint.
+ 2. how per-box unknowns combine into a regional answer. Does one unknown box make the whole region unknown, or can ≥1 verified-eligible box still allow a create while the metric omits the region?
+ 3. whether a box with a valid identity record but no fixed pin and no derivable g- binding (for example a recreated fixed box under a new reference, f18da98) is "conclusively failing verification" (excluded) or "missing identity" (unknown).
+- **Evidence.**
+ - A box without CARLOS_REGION_HA publishes no `region-ha-1` (`internal/host/edgesfile.go:198-203`) and no identity record (`internal/host/boxrecord.go:163-165`).
+ - A box without CARLOS_GROUP_ADMISSION=1 has no RoleSource, so it publishes no admission fields (`internal/host/boxroles.go:100-102`, `:115`).
+ - An unset CARLOS_REGION is the home placement `""` (#421, c6304f2d).
+ - Dev has non-HA boxes beside sophie and leo: dennis, box-1, and the retired noor-fossicking (d421.md:64, :190, :430).
+ - Main's `boxchoice.Eligible` silently skips out-of-scope boxes (`internal/boxchoice/boxchoice.go:131-144`). Spec §4.3 defines view(r) by placement, bucket and fingerprint, so out-of-scope boxes are simply not in it.
+- **Failure scenario.** Suppose dennis (no HA, no admission fields, no identity record) publishes home placement. Read literally ("missing identity / missing admission additions are unknown"), the IE region is unknown on every pass. Then every dev HA-region create returns 503 C04, and the EligibleBoxes datapoint is never published, so the alarm breaches permanently. Read the other way, the implementer picks a rule that review never saw.
+- **Fix.** Add a precedence table to "Eligibility" and pin it in `TestHACapacityIdentityAndScope`:
+ 1. Validated per-file scope facts are known non-candidates and need no identity or admission evidence. A file can only remove itself this way. These facts are: placement ≠ region, data bucket or region ≠ configured, no `region-ha-1`, no hibernation, fingerprint ≠ expected, and its own edges generation stale.
+ 2. Only in-scope files go on to identity, status and admission checks.
+ 3. Regional rule: allow if ≥1 verified-eligible box serves the requested pool. Complete-zero only when every in-scope file is classified. Otherwise unknown. Metric: publish only when every in-scope file is classified.
+ 4. A signed record for the deployment account with no configured binding is "unbound" and excluded, with a diagnostic. It is not unknown.
+
+ State in the card which dev boxes publish home placement.
+
+### P2-2. The one-minute validity window lapses before every successor pass completes (Observation and freshness; T1 Step 3)
+
+- **Invariant / family:** I3 (one bounded observation). Family: observation lifetime.
+- **Problem.** The runner starts a pass immediately and then on the one-minute interval (plan line 103), and "At age >=60s from pass start, the observation is unavailable" (line 109). Pass n is valid until the instant pass n+1 starts. Pass n+1 publishes only when it completes: 2 LISTs plus E+H+B sequential GETs, bounded to 45 s. So once a minute there is a window as long as the pass during which every HA create gets 503 C04. A Go ticker that drops a tick widens the window to a full minute. Line 109's "canceled waiters" hints that requests might wait on the in-flight pass, but line 103 says requests never start or wait for a load.
+- **Evidence.** Plan lines 103 and 109. The existing loop shape is `internal/console/regioncapacity.go:121-145` (ticker after the pass). The status loader is sequential (`internal/status/fleet.go:285-308`).
+- **Failure scenario.** On the dev card (step 4), a "positive supported create" lands in the refresh window and gets C04 even though both boxes are eligible. In steady state, about 1-5% of HA creates are refused, and more when S3 is slow.
+- **Fix.** Measure validity from completion, with a bound of at least interval + pass timeout (for example 120 s from pass start). That is safe because I2 already recomputes every producer-time predicate at use. Alternatively, define a bounded wait for an in-flight pass. Add the boundary to T1 Step 3: a request at t = 60 s + ε, while the next pass is in flight, must still allow.
+
+### P2-3. Reading every historical status key against a 200-key cap turns normal accumulation into a permanent create outage (Observation and freshness; budget)
+
+- **Invariant / family:** I2 and I3. Family: bounded census of unbounded history.
+- **Problem.** The plan drops the 24 h horizon for capacity and reads "all accepted status keys, including old ones" (line 105). A 201st key under either prefix makes the observation incomplete for every region (lines 105, 111 and 231).
+- **Evidence.**
+ - Status keys are never deleted. Nothing in the repo deletes `status/boxes/` outside tests and dry-run.
+ - The horizon exists precisely because "with automatic replacement such reports pile up, one per replaced box, and could fill the key cap" (`internal/status/fleet.go:240-251`).
+ - Retired boxes' edges files also persist (`internal/edgesfile/snapshot.go:122-125`).
+- **Failure scenario.** Once a deployment has seen more than 200 box labels (status keys) or more than 200 edges files, every HA create returns 503 and the metric stops, with no documented remedy. H, and so the per-minute GET cost, grows with history rather than with the live fleet.
+- **Why the rationale does not hold.** The plan wants old status keys so that a retired box's lingering edges file counts as known stale rather than missing. But capacity never needs that status. An edges file whose own generation fails `HeadroomFresh` is already a known zero for capacity (it can never be Placeable). A box with fresh edges needs fresh status, which is always inside the 24 h horizon.
+- **Fix.**
+ - Classify per file. A self-stale edges file is excluded with no status counterpart, instead of reusing JoinLive's whole-request "edges without status" incompleteness for it. Keep the horizon, so old status keys never count against the cap or the budget.
+ - If a bounded mod-time listing is not available, say how the horizon is applied within one LIST.
+ - Either way, make the card record current key counts under `control/edges/` and `status/boxes/` on dev and flagship. Name the remedy at the cap (the runbook's edges-file removal, plus a status-key prune).
+
+### P2-4. Merge and release order with P3a and the absent capacity config is not pinned; the dev gate turns on with the binary (Slices; dev card)
+
+- **Invariant / family:** AGENTS.md rule 5 (switch-on date) and I6. Family: rollout gating.
+- **Problem.** No new switch exists. CONSOLE_HA_REGIONS=ie is already live on the dev console (d421.md:383). With P2b-1, an HA console that lacks CONSOLE_HA_CAPACITY_CONFIG refuses affected creates (line 97). D3 also requires P3a admission fields, which boxes publish only with CARLOS_GROUP_ADMISSION=1 on a P3a build. P3a is merged but not released (d421.md:436). If P2b-1 merges before a P3a-only dev release and drill, the next dev release carries both. The console then refuses every HA-region create from the moment it rolls, which is before any box can opt in. That covers all dev home creates of every gated kind: instance, sidecar and first-domain static. Card item 1 says "confirm P3a is released ... before opt-in" (line 324). It does not require the merge to wait for a P3a-only release, or the config to be installed before the console binary.
+- **Failure scenario.** Another workstream's routine dev release, which by memory always rolls dev first, ships P2b-1. Dev creates 503 for everyone until the card runs.
+- **Fix.** In "Slices" and the card, state these in order:
+ 1. P2b-1 merges only after a P3a-only dev release has rolled and its fixed-pair admission drill has passed.
+ 2. CONSOLE_HA_CAPACITY_CONFIG is validated and installed on the dev console (drop-in, no restart) before the release that carries P2b-1.
+ 3. Name the window with other dev releases held.
+ 4. Note that flagship is unaffected while CONSOLE_HA_REGIONS is unset there.
+
+### P2-5. Q1's recommendation conflicts with Q3's date on dev (Open questions)
+
+- **Invariant / family:** rule 5 and no silent capability cut. Family: switch-on scheduling.
+- **Problem.** Q1 (recommended) waits for an unplanned, undated box-side pool-evidence slice before switching P2b-1 on "for a deployment using those creates". Dev is such a deployment: sophie serves @shared,hapair and leo serves cohort1,hapair (d421.md:56), with dev pooled apps (cohort1/claimtrial, hapair). Q3 (recommended) targets 2026-11-06 "after ... the selected Q1 prerequisite". Taking both recommendations makes 11-06 unreachable and leaves the slice without a real date. And because of P2-4, merging without the producer cuts named-pool creates anyway.
+- **Fix.** Either recommend Q1 option 2 for dev, with D04, an affected-user list and the 11-06 date, and keep option 1 for other deployments. Or keep option 1 and give the pool-evidence slice its own date, moving Q3's target behind it. Say plainly which one Paul is being asked to approve.
+
+## P3 (follow-up list; never a reason for another round)
+
+1. **Import ordering versus I5 (Create boundary, instance door).** "Run capacity before createFrom/createImport dispatch" puts a temporary 503 ahead of the import's permanent 409 (`refuseHAImport` runs inside `createImport`, `internal/console/apiinstanceimport.go:119`). That contradicts I5's "permanent-refusal checks precede capacity". Skip capacity for `req.Import` in an HA region, or call `refuseHAImport` before capacity.
+2. **C04 for the Q1 named-pool cut.** If Q1 option 2 is chosen, C04 ("Try again in a minute", Retry-After 60) misdescribes a refusal that lasts until a release. Give named-pool refusals their own 503 string, consistent with D04.
+3. **"Non-HA creates keep main's behavior" (line 97).** Static, address, rootfs, sidecar and first-domain records are never HA-stamped (`internal/console/seedmove.go:47-49`, `domainattach.go:256`) but are gated by region. Reword to "creates outside CONSOLE_HA_REGIONS".
+4. **T1 Step 1 fixture.** `edgesFile` is unexported in `internal/host`. Name where the "actual serialized P3a edges bytes" come from, for example a golden file generated by an `internal/host` test and checked by both packages.
+5. **T3 `TestHACapacityDoesNotGateExistingWake`.** The console helper cannot be reached from the box wake path, so this witness is vacuous. Point it at the console's own non-create doors listed in line 132 (enable, restart, deploy, retry, alias attach) with a zero/unknown observation.
+6. **Worker registration.** `RunClaimWorker` panics for unregistered names (`internal/console/claim_workers.go:60-64`). T2 should name the new worker's registration and its job-list behaviour when there is nothing to do.
+7. **Status `metrics.instance_id` absent** (`internal/status/snapshot.go:585`, omitempty). State whether an empty value is unknown or a mismatch.
+8. **Two fixed-identity sources.** `fixed_boxes` duplicates the boxes' CARLOS_HA_FIXED_BOX_IDENTITIES. A recreated fixed box under a new reference that is missing from the console config counts nothing. The card and runbook should cross-check both lists.
+9. **Card checks.** Card item 2 should verify Config.AWSAccount and the embedded identity certificates on the dev console (`internal/console/server.go:1854-1858`). Without them every identity is unverified.
+
+## Verdict
+
+READY AFTER FIXES