carlos / platform Public

merge main into design-console-secrets

Census chain: this branch's overlay re-sealed after main's managed-fleets-2b1
and region-ha-shutting-down-retry overlays. 9B8 inventory now builds on
managed-fleets-2b1's. Units and claims unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 677d50d4d947f5b638b786774d17576a6c916d39 parent fd33427parent 97c70fe
86 files changed, +17,787 −209
  • apimode_managedfleets.go +4 −0
  • docs/superpowers/notes/census-proposal-design-console-secrets.md +1 −1
  • docs/superpowers/notes/census-proposal-managed-fleets-2b1.md +45 −0
  • docs/superpowers/notes/census-proposal-region-ha-shutting-down-retry.md +19 −0
  • docs/superpowers/notes/managed-fleets-2b1-ledger.md +140 −0
  • docs/superpowers/plans/2026-11-08-edge-page-cache-plan-1-home.md +1,063 −0
  • docs/superpowers/plans/2026-11-08-managed-fleets-2b1-console-aws.md +852 −0
  • docs/superpowers/plans/CODEX-FINDINGS-PAGE-CACHE-PLAN1-R1.md +125 −0
  • docs/superpowers/plans/CODEX-FINDINGS-PAGE-CACHE-PLAN1-R2.md +100 −0
  • docs/superpowers/plans/CODEX-FINDINGS-PAGE-CACHE-PLAN1-R3.md +104 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1-R2.md +92 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1-R3.md +97 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1.md +78 −0
  • docs/superpowers/specs/2026-11-08-edge-page-cache-design.md +900 −0
  • docs/superpowers/specs/CODEX-FINDINGS-PAGE-CACHE-R1.md +73 −0
  • docs/superpowers/specs/CODEX-FINDINGS-PAGE-CACHE-R2.md +65 −0
  • docs/superpowers/specs/CODEX-FINDINGS-PAGE-CACHE-R3.md +28 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-PAGE-CACHE-R2.md +105 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-PAGE-CACHE-R3.md +116 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-PAGE-CACHE.md +92 −0
  • fleets_managed.go +10 −0
  • fleets_managed_test.go +32 −0
  • infra/modules/region-host/main.tf +40 −16
  • infra/modules/region-host/managed_fleets.tf +313 −0
  • infra/modules/region-host/outputs.tf +15 −0
  • infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl +140 −0
  • infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl +711 −0
  • infra/modules/region-host/variables.tf +127 −0
  • internal/activator/activator.go +9 −0
  • internal/activator/shuttingdown_answer_test.go +67 −0
  • internal/awsmanaged/clients.go +261 −0
  • internal/awsmanaged/compute.go +609 −0
  • internal/awsmanaged/compute_test.go +1,341 −0
  • internal/awsmanaged/credentials.go +331 −0
  • internal/awsmanaged/credentials_test.go +744 −0
  • internal/awsmanaged/diagnostics.go +51 −0
  • internal/awsmanaged/diagnostics_test.go +161 −0
  • internal/awsmanaged/export_test.go +74 −0
  • internal/awsmanaged/infra_policy_test.go +657 −0
  • internal/awsmanaged/integration_test.go +1,042 −0
  • internal/awsmanaged/policy.go +167 −0
  • internal/awsmanaged/policy_test.go +507 −0
  • internal/awsmanaged/storage.go +479 −0
  • internal/awsmanaged/storage_test.go +750 −0
  • internal/awsmanaged/testdata/fleet-data-policy.json +71 −0
  • internal/awsmanaged/testdata/managed-boundary-policy.json +62 −0
  • internal/awsmanaged/testdata/managed-console-policy.json +229 −0
  • internal/compute/fake.go +1 −1
  • internal/compute/fake_test.go +7 −2
  • internal/compute/provisioner.go +5 −0
  • internal/console/managed_e2e_test.go +442 −0
  • internal/console/managedbudget_test.go +315 −1
  • internal/console/managedenrol.go +58 −10
  • internal/console/managedfreshsim_test.go +430 −0
  • internal/console/managedhistory.go +135 −33
  • internal/console/managedhistory_test.go +16 −2
  • internal/console/managedpreflight_test.go +728 −0
  • internal/console/managedready.go +97 −18
  • internal/console/managedready_test.go +237 −2
  • internal/console/managedrecovery_test.go +858 −0
  • internal/console/managedstore.go +154 −42
  • internal/console/managedstore_test.go +2 −2
  • internal/console/managedview.go +9 −0
  • internal/console/managedworker.go +258 −44
  • internal/console/managedworker_test.go +9 −1
  • internal/console/server.go +1 −0
  • internal/console/store.go +2 −2
  • internal/console/store_gate.go +2 −0
  • internal/console/view.go +2 −0
  • internal/edge/storedoor.go +29 −2
  • internal/edge/storedoor_test.go +236 −0
  • internal/fleetstore/fake.go +20 −1
  • internal/fleetstore/fake_test.go +43 −7
  • internal/fleetstore/provisioner.go +13 −2
  • internal/objstore/termination_credentials_test.go +195 −1
  • internal/provision/console_secrets_census_test.go +1 −1
  • internal/provision/managed_fleets_2b1_census_test.go +44 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +3 −1
  • internal/provision/testdata/plan14-root-reads-design-console-secrets.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-managed-fleets-2b1.tsv +42 −0
  • internal/provision/testdata/plan14-root-reads-region-ha-shutting-down-retry.tsv +4 −0
  • internal/registry/fleets.go +26 −6
  • internal/registry/fleets_test.go +81 −0
  • internal/registry/remote.go +26 −8
  • internal/registry/remote_dispatch.go +2 −2
  • internal/registry/remote_test.go +154 −0

CI passed — run details

Intent

Human

<task-notification> <task-id>a7ac88b64bfa769fc</task-id> <tool-use-id>toolu_01JRG7UQRikmDanf1QGzhmTU</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/abe35d56-e4c2-40df-9005-6e66b76b1f50/tasks/a7ac88b64bfa769fc.output</output-file> <status>completed</status> <summary>Agent "Branch review fix wave + CI" 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>1. Fixed P2-F1 in fd33427e. `configRefusalSealKey` now goes through the same unavailable, no-draft branch as `configRefusalStore` in envsave.go. The JSON door is unchanged, and no root-package files were touched. 2. New test `TestEnvSaveSealKeyStorageFailureRefused` closes the fixture database just before the writer: 502, no write, unavailable section, nothing echoed. It fails without the fix. To close the database at that point I added a test hook, `envSaveBeforeWrite`, in envsave.go (nil in production). `go test ./internal/console -run 'EnvSave|EnvForm' -count=1` passed. 3. The commit landed, but git again reported a lock held by another process, so the amadan ledger mark for this commit may have failed as before. I added a P2-F1 note to branch-fix-report.md, which is still uncommitted because .superpowers is gitignored.</result> <usage><subagent_tokens>152817</subagent_tokens><tool_uses>7</tool_uses><duration_ms>151812</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bywm5spfp</task-id> <tool-use-id>toolu_016Scctph933HQum63dQiE2Y</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/abe35d56-e4c2-40df-9005-6e66b76b1f50/tasks/bywm5spfp.output</output-file> <status>completed</status> <summary>Background command "sleep 90; T=$(git rev-parse --short=9 HEAD); for i in $(seq 1 120); do amadan ci status carlos/platform -branch design-console-secrets &gt; $HOME/.cache/console-secrets-copy/ci.txt 2&gt;&amp;1; rc=$?; grep -q "$T" $HOME/.cache/console-secrets-copy/ci.txt &amp;&amp; [ $rc -le 1 ] &amp;&amp; break; sleep 60; done; head -3 $HOME/.cache/console-secrets-copy/ci.txt" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 59.7 g CO₂e (7,691,146 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-console-secrets, 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_managedfleets.go

Loading diff…

docs/superpowers/notes/census-proposal-design-console-secrets.md

Loading diff…

docs/superpowers/notes/census-proposal-managed-fleets-2b1.md

Loading diff…

docs/superpowers/notes/census-proposal-region-ha-shutting-down-retry.md

Loading diff…

docs/superpowers/notes/managed-fleets-2b1-ledger.md

Loading diff…

docs/superpowers/plans/2026-11-08-edge-page-cache-plan-1-home.md

Loading diff…

docs/superpowers/plans/2026-11-08-managed-fleets-2b1-console-aws.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-PAGE-CACHE-PLAN1-R1.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-PAGE-CACHE-PLAN1-R2.md

Loading diff…

docs/superpowers/plans/CODEX-FINDINGS-PAGE-CACHE-PLAN1-R3.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1-R2.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1-R3.md

Loading diff…

docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1.md

Loading diff…

docs/superpowers/specs/2026-11-08-edge-page-cache-design.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-PAGE-CACHE-R1.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-PAGE-CACHE-R2.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-PAGE-CACHE-R3.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-PAGE-CACHE-R2.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-PAGE-CACHE-R3.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-PAGE-CACHE.md

Loading diff…

fleets_managed.go

Loading diff…

fleets_managed_test.go

Loading diff…

infra/modules/region-host/main.tf

Loading diff…

infra/modules/region-host/managed_fleets.tf

Loading diff…

infra/modules/region-host/outputs.tf

Loading diff…

infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl

Loading diff…

infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl

Loading diff…

infra/modules/region-host/variables.tf

Loading diff…

internal/activator/activator.go

Loading diff…

internal/activator/shuttingdown_answer_test.go

Loading diff…

internal/awsmanaged/clients.go

Loading diff…

internal/awsmanaged/compute.go

Loading diff…

internal/awsmanaged/compute_test.go

Loading diff…

internal/awsmanaged/credentials.go

Loading diff…

internal/awsmanaged/credentials_test.go

Loading diff…

internal/awsmanaged/diagnostics.go

Loading diff…

internal/awsmanaged/diagnostics_test.go

Loading diff…

internal/awsmanaged/export_test.go

Loading diff…

internal/awsmanaged/infra_policy_test.go

Loading diff…

internal/awsmanaged/integration_test.go

Loading diff…

internal/awsmanaged/policy.go

Loading diff…

internal/awsmanaged/policy_test.go

Loading diff…

internal/awsmanaged/storage.go

Loading diff…

internal/awsmanaged/storage_test.go

Loading diff…

internal/awsmanaged/testdata/fleet-data-policy.json

Loading diff…

internal/awsmanaged/testdata/managed-boundary-policy.json

Loading diff…

internal/awsmanaged/testdata/managed-console-policy.json

Loading diff…

internal/compute/fake.go

Loading diff…

internal/compute/fake_test.go

Loading diff…

internal/compute/provisioner.go

Loading diff…

internal/console/managed_e2e_test.go

Loading diff…

internal/console/managedbudget_test.go

Loading diff…

internal/console/managedenrol.go

Loading diff…

internal/console/managedfreshsim_test.go

Loading diff…

internal/console/managedhistory.go

Loading diff…

internal/console/managedhistory_test.go

Loading diff…

internal/console/managedpreflight_test.go

Loading diff…

internal/console/managedready.go

Loading diff…

internal/console/managedready_test.go

Loading diff…

internal/console/managedrecovery_test.go

Loading diff…

internal/console/managedstore.go

Loading diff…

internal/console/managedstore_test.go

Loading diff…

internal/console/managedview.go

Loading diff…

internal/console/managedworker.go

Loading diff…

internal/console/managedworker_test.go

Loading diff…

internal/console/server.go

Loading diff…

internal/console/store.go

Loading diff…

internal/console/store_gate.go

Loading diff…

internal/console/view.go

Loading diff…

internal/edge/storedoor.go

Loading diff…

internal/edge/storedoor_test.go

Loading diff…

internal/fleetstore/fake.go

Loading diff…

internal/fleetstore/fake_test.go

Loading diff…

internal/fleetstore/provisioner.go

Loading diff…

internal/objstore/termination_credentials_test.go

Loading diff…

internal/provision/console_secrets_census_test.go

Loading diff…

internal/provision/managed_fleets_2b1_census_test.go

Loading diff…

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

Loading diff…

internal/provision/testdata/plan14-root-reads-design-console-secrets.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-managed-fleets-2b1.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-region-ha-shutting-down-retry.tsv

Loading diff…

internal/registry/fleets.go

Loading diff…

internal/registry/fleets_test.go

Loading diff…

internal/registry/remote.go

Loading diff…

internal/registry/remote_dispatch.go

Loading diff…

internal/registry/remote_test.go

Loading diff…