carlos / platform Public

G6 pool path: born-HA apps for allowed accounts in an HA region

An account on CONSOLE_HA_POOL_ACCOUNTS can create an app with high
availability in a region that has an HA pool: the "High availability"
checkbox on Create an app, or carlos apps create --region us --ha. The
app row carries ha_pool; the enable door copies pool and region from the
row, so the default instance is born HA in the region's pool. A born-HA
app's region and placement are locked and it swaps one instance at a
time. Settings shows a status line for born-HA apps. New docs page
/docs/high-availability and the --ha paragraph in the CLI reference.

Plan docs/superpowers/plans/2026-11-12-g6-pool-path.md (Tasks 1-9). All
copy is Paul's, verbatim (reviews wlbznpwwh6cd7eo3ginvljcveu and
m4znh5chevof75qxxjtppkv5ja). Reviewed by Astra and Fable; census
approved on #280 at ea40b6e1. Unset CONSOLE_HA_POOL_ACCOUNTS means
nobody: set it in the console roll's window (plan, After merge).
Follow-ups: discussion #989.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from g6-pool into main.
claude agent, operated by paul@keymail.dev 6b03bef2fda6a0c294763eb92acf95a07721a1b8 parent 61138f6
58 files changed, +5,668 −129
  • apimode.go +15 −1
  • apps.go +29 −3
  • apps_ha_test.go +128 −0
  • cmd/console/hapoolaccounts_serve_test.go +55 −0
  • cmd/console/hapoolaccounts_test.go +51 −0
  • cmd/console/main.go +57 −0
  • docs/site/cli.md +6 −0
  • docs/site/high-availability.md +40 −0
  • docs/site/nav.json +5 −0
  • docs/superpowers/notes/census-proposal-g6-pool.md +11 −0
  • docs/superpowers/plans/2026-11-12-g6-pool-path.md +503 −0
  • docs/superpowers/reviews/CODEX-CHECK-G6-POOL-BRANCH-R1-FIX.md +19 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-G6-POOL-BRANCH-R1.md +49 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-G6-POOL-PLAN-R1.md +67 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-G6-POOL-PLAN-R2.md +26 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-G6-POOL-PLAN-R2.md +76 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-G6-POOL-PLAN.md +65 −0
  • docs/superpowers/reviews/FABLE-FINDINGS-G6-POOL-BRANCH-R1.md +71 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-G6-POOL-BRANCH.md +65 −0
  • internal/console/apicli.go +23 −0
  • internal/console/apicli_ha_test.go +594 −0
  • internal/console/apiinstancemove.go +11 −0
  • internal/console/apiinstances.go +122 −59
  • internal/console/apiinstances_haenable_test.go +596 −0
  • internal/console/apiinstancesenable_test.go +39 −0
  • internal/console/apisidecars.go +6 −1
  • internal/console/appregion_ha_test.go +827 −0
  • internal/console/appregionset.go +21 −0
  • internal/console/approved_ha_pool_copy_test.go +69 −0
  • internal/console/copiespublication.go +15 −0
  • internal/console/domainattach.go +6 −2
  • internal/console/domainattach_test.go +27 −4
  • internal/console/envform_test.go +8 −0
  • internal/console/fleets.go +93 −9
  • internal/console/fleetsecretskey.go +8 −5
  • internal/console/ha_pool_scope_test.go +4 −0
  • internal/console/hapool.go +296 −0
  • internal/console/hapool_test.go +373 −0
  • internal/console/hapoolcopy.go +43 −0
  • internal/console/lifetimes_store.go +6 −3
  • internal/console/newapp_ha_test.go +408 −0
  • internal/console/placement_census_test.go +213 −0
  • internal/console/regionclaim.go +8 −0
  • internal/console/regionfacts.go +19 −9
  • internal/console/regionpicker.go +12 −5
  • internal/console/sealkey.go +16 −1
  • internal/console/server.go +120 −9
  • internal/console/store.go +66 −12
  • internal/console/store_hapool.go +45 −0
  • internal/console/store_hapool_test.go +128 −0
  • internal/console/templates/app_new.html +30 −1
  • internal/console/templates/app_settings.html +4 −2
  • internal/console/view_test.go +29 −0
  • internal/provision/g6_pool_census_test.go +38 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-g6-pool.tsv +3 −0
  • testdata/clireg-golden.jsonl +2 −2

CI passed — run details

apimode.go

Loading diff…

apps.go

Loading diff…

apps_ha_test.go

Loading diff…

cmd/console/hapoolaccounts_serve_test.go

Loading diff…

cmd/console/hapoolaccounts_test.go

Loading diff…

cmd/console/main.go

Loading diff…

docs/site/cli.md

Loading diff…

docs/site/high-availability.md

Loading diff…

docs/site/nav.json

Loading diff…

docs/superpowers/notes/census-proposal-g6-pool.md

Loading diff…

docs/superpowers/plans/2026-11-12-g6-pool-path.md

Loading diff…

docs/superpowers/reviews/CODEX-CHECK-G6-POOL-BRANCH-R1-FIX.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-G6-POOL-BRANCH-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-G6-POOL-PLAN-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-G6-POOL-PLAN-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-G6-POOL-PLAN-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-G6-POOL-PLAN.md

Loading diff…

docs/superpowers/reviews/FABLE-FINDINGS-G6-POOL-BRANCH-R1.md

Loading diff…

docs/superpowers/reviews/REVIEW-BRIEF-G6-POOL-BRANCH.md

Loading diff…

internal/console/apicli.go

Loading diff…

internal/console/apicli_ha_test.go

Loading diff…

internal/console/apiinstancemove.go

Loading diff…

internal/console/apiinstances.go

Loading diff…

internal/console/apiinstances_haenable_test.go

Loading diff…

internal/console/apiinstancesenable_test.go

Loading diff…

internal/console/apisidecars.go

Loading diff…

internal/console/appregion_ha_test.go

Loading diff…

internal/console/appregionset.go

Loading diff…

internal/console/approved_ha_pool_copy_test.go

Loading diff…

internal/console/copiespublication.go

Loading diff…

internal/console/domainattach.go

Loading diff…

internal/console/domainattach_test.go

Loading diff…

internal/console/envform_test.go

Loading diff…

internal/console/fleets.go

Loading diff…

internal/console/fleetsecretskey.go

Loading diff…

internal/console/ha_pool_scope_test.go

Loading diff…

internal/console/hapool.go

Loading diff…

internal/console/hapool_test.go

Loading diff…

internal/console/hapoolcopy.go

Loading diff…

internal/console/lifetimes_store.go

Loading diff…

internal/console/newapp_ha_test.go

Loading diff…

internal/console/placement_census_test.go

Loading diff…

internal/console/regionclaim.go

Loading diff…

internal/console/regionfacts.go

Loading diff…

internal/console/regionpicker.go

Loading diff…

internal/console/sealkey.go

Loading diff…

internal/console/server.go

Loading diff…

internal/console/store.go

Loading diff…

internal/console/store_hapool.go

Loading diff…

internal/console/store_hapool_test.go

Loading diff…

internal/console/templates/app_new.html

Loading diff…

internal/console/templates/app_settings.html

Loading diff…

internal/console/view_test.go

Loading diff…

internal/provision/g6_pool_census_test.go

Loading diff…

internal/provision/plan9_b8_census_test.go

Loading diff…

internal/provision/testdata/plan14-root-reads-chain.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-g6-pool.tsv

Loading diff…

testdata/clireg-golden.jsonl

Loading diff…