carlos / platform Public

merge main: census chain re-sealed for fleet record labels m1

Main added two census overlays; the m1 overlay is re-proposed after them (seal 5603979d), with the same units and claims.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev a1bf6da92a934599df3528def4b760617a12ae45 parent da94ed1parent b9eaea9
92 files changed, +6,730 −228
  • 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
  • dbforward_e2e_test.go +6 −1
  • docs/region-ha-runbook.md +10 −0
  • docs/site/cli.md +8 −0
  • docs/site/high-availability.md +40 −0
  • docs/site/nav.json +5 −0
  • docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md +1 −1
  • docs/superpowers/notes/census-proposal-g6-pool.md +11 −0
  • docs/superpowers/notes/census-proposal-log-retention-knobs.md +11 −0
  • docs/superpowers/notes/census-proposal-pdf-host-client-groups.md +28 −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-FINDINGS-PDF-HOST-CLIENT-GROUPS-FIXES.md +22 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-PDF-HOST-CLIENT-GROUPS-R1.md +37 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-PDF-HOST-CLIENT-GROUPS-R2.md +43 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-log-retention-knobs-census.md +13 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-log-retention-knobs.md +11 −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/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS-FIXES.md +3 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS-R2.md +18 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS.md +14 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-log-retention-knobs-census.md +35 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-log-retention-knobs.md +14 −0
  • docs/superpowers/reviews/FABLE-FINDINGS-G6-POOL-BRANCH-R1.md +71 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-G6-POOL-BRANCH.md +65 −0
  • docs/superpowers/specs/2026-11-11-g6-us-capacity-design.md +16 −0
  • infra/modules/pdf-host/README.md +18 −3
  • infra/modules/pdf-host/main.tf +15 −1
  • infra/modules/pdf-host/tests/computed.tftest.hcl +40 −0
  • infra/modules/pdf-host/tests/computed/main.tf +13 −0
  • infra/modules/pdf-host/tests/pdf_host.tftest.hcl +61 −0
  • infra/modules/pdf-host/variables.tf +10 −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/host/agent.go +5 −0
  • internal/host/applessroute_test.go +4 −4
  • internal/host/errship.go +5 −3
  • internal/host/errship_test.go +4 −4
  • internal/host/logretention.go +230 −0
  • internal/host/logretention_test.go +323 −0
  • internal/host/logship.go +14 −72
  • internal/host/logship_test.go +6 −6
  • internal/hostenv/hostenv.go +2 −0
  • internal/provision/g6_pool_census_test.go +38 −0
  • internal/provision/plan9_b8_census_test.go +5 −3
  • internal/provision/testdata/plan14-root-reads-chain.tsv +4 −1
  • internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-g6-pool.tsv +3 −0
  • internal/provision/testdata/plan14-root-reads-log-retention-knobs.tsv +4 −0
  • internal/provision/testdata/plan14-root-reads-pdf-host-client-groups.tsv +16 −0
  • testdata/clireg-golden.jsonl +2 −2

CI passed — run details

Intent

Human

<task-notification> <task-id>add3b55ce7f6bfccb</task-id> <tool-use-id>toolu_01BN8fPTAooKtvjti5FjtJtH</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ac77363b-5830-422c-9f38-d7f2540dd398/tasks/add3b55ce7f6bfccb.output</output-file> <status>completed</status> <summary>Agent "Fix: relabel manifest error fails job" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Done. I added `jobFailed(ctx, err)` to both manifest-error branches in `internal/console/fleetrelabel.go`, in `relabelFleet` and in `drainBox`, which had the same pattern. The log lines and the `continue` in `relabelFleet` are unchanged. I did not add an assertion to `TestUnverifiableManifestLeavesTheRecord`; the targeted run passes without it. Commit: `da94ed11` Test result: `ok github.com/carlosframework/platform/internal/console 17.966s`. The first run failed on a read-only Go cache, so I re-ran it with the sandbox disabled and the default `GOCACHE`.</result> <usage><subagent_tokens>39504</subagent_tokens><tool_uses>5</tool_uses><duration_ms>71969</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>b0f1qysnj</task-id> <tool-use-id>toolu_01Bvg4bC1ARpcjHjTBviY1Vo</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ac77363b-5830-422c-9f38-d7f2540dd398/tasks/b0f1qysnj.output</output-file> <status>completed</status> <summary>Background command "Push the fix and wait for CI" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 19.0 g CO₂e (2,422,443 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-fleet-record-labels, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

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…

dbforward_e2e_test.go

Loading diff…

docs/region-ha-runbook.md

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-fleet-record-labels-m1.md

Loading diff…

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

Loading diff…

docs/superpowers/notes/census-proposal-log-retention-knobs.md

Loading diff…

docs/superpowers/notes/census-proposal-pdf-host-client-groups.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-FINDINGS-PDF-HOST-CLIENT-GROUPS-FIXES.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-PDF-HOST-CLIENT-GROUPS-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-PDF-HOST-CLIENT-GROUPS-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-log-retention-knobs-census.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-log-retention-knobs.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/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS-FIXES.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-log-retention-knobs-census.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-log-retention-knobs.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…

docs/superpowers/specs/2026-11-11-g6-us-capacity-design.md

Loading diff…

infra/modules/pdf-host/README.md

Loading diff…

infra/modules/pdf-host/main.tf

Loading diff…

infra/modules/pdf-host/tests/computed.tftest.hcl

Loading diff…

infra/modules/pdf-host/tests/computed/main.tf

Loading diff…

infra/modules/pdf-host/tests/pdf_host.tftest.hcl

Loading diff…

infra/modules/pdf-host/variables.tf

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/host/agent.go

Loading diff…

internal/host/applessroute_test.go

Loading diff…

internal/host/errship.go

Loading diff…

internal/host/errship_test.go

Loading diff…

internal/host/logretention.go

Loading diff…

internal/host/logretention_test.go

Loading diff…

internal/host/logship.go

Loading diff…

internal/host/logship_test.go

Loading diff…

internal/hostenv/hostenv.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-fleet-record-labels-m1.tsv

Loading diff…

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

Loading diff…

internal/provision/testdata/plan14-root-reads-log-retention-knobs.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-pdf-host-client-groups.tsv

Loading diff…

testdata/clireg-golden.jsonl

Loading diff…