managed fleets 2b-1: console-side AWS adapters, IAM, ready.json guard
Plan 2b-1 of #457 phase 2. Managed fleets stay off: no production provider wiring, enabled=false, nothing applied, no live AWS. - Console fixes from 2a: alias cap 64 and new-ID 429, registry reads outside SQL transactions with cancellable remote calls, retryable 503 enrolment, firstDispatch proof and ErrLaunchConflict, provider I/O outside lockFleet, deadline before backoff, one ready.json freshness guard (randomized simulation), durable delivered-key set with a needs-operator state shown in carlos fleets show. - internal/awsmanaged: unwired EC2 compute and S3/IAM fleet storage adapters, mocked SDK tests only. - infra/modules/region-host: opt-in console IAM grant (default off) and shared user boundary, rendered-policy fixtures. - Store door denies box PUT/DELETE of fleets/<f>/boxes/<l>/ready.json. Reviews: Astra per task, Fable on Tasks 2-6, whole branch Astra and Fable; census approved by Astra on #280. Copy approved by Paul. Ledger: docs/superpowers/notes/managed-fleets-2b1-ledger.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from managed-fleets-2b1 into main.
apimode_managedfleets.go+4 −0docs/superpowers/notes/census-proposal-managed-fleets-2b1.md+45 −0docs/superpowers/notes/managed-fleets-2b1-ledger.md+140 −0docs/superpowers/plans/2026-11-08-managed-fleets-2b1-console-aws.md+852 −0fleets_managed.go+10 −0fleets_managed_test.go+32 −0infra/modules/region-host/main.tf+40 −16infra/modules/region-host/managed_fleets.tf+313 −0infra/modules/region-host/outputs.tf+15 −0infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hcl+140 −0infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hcl+711 −0infra/modules/region-host/variables.tf+127 −0internal/awsmanaged/clients.go+261 −0internal/awsmanaged/compute.go+609 −0internal/awsmanaged/compute_test.go+1,341 −0internal/awsmanaged/credentials.go+331 −0internal/awsmanaged/credentials_test.go+744 −0internal/awsmanaged/diagnostics.go+51 −0internal/awsmanaged/diagnostics_test.go+161 −0internal/awsmanaged/export_test.go+74 −0internal/awsmanaged/infra_policy_test.go+657 −0internal/awsmanaged/integration_test.go+1,042 −0internal/awsmanaged/policy.go+167 −0internal/awsmanaged/policy_test.go+507 −0internal/awsmanaged/storage.go+479 −0internal/awsmanaged/storage_test.go+750 −0internal/awsmanaged/testdata/fleet-data-policy.json+71 −0internal/awsmanaged/testdata/managed-boundary-policy.json+62 −0internal/awsmanaged/testdata/managed-console-policy.json+229 −0internal/compute/fake.go+1 −1internal/compute/fake_test.go+7 −2internal/compute/provisioner.go+5 −0internal/console/managed_e2e_test.go+442 −0internal/console/managedbudget_test.go+315 −1internal/console/managedenrol.go+58 −10internal/console/managedfreshsim_test.go+430 −0internal/console/managedhistory.go+135 −33internal/console/managedhistory_test.go+16 −2internal/console/managedpreflight_test.go+728 −0internal/console/managedready.go+97 −18internal/console/managedready_test.go+237 −2internal/console/managedrecovery_test.go+858 −0internal/console/managedstore.go+154 −42internal/console/managedstore_test.go+2 −2internal/console/managedview.go+9 −0internal/console/managedworker.go+258 −44internal/console/managedworker_test.go+9 −1internal/console/server.go+1 −0internal/console/store.go+2 −2internal/console/store_gate.go+2 −0internal/console/view.go+2 −0internal/edge/storedoor.go+29 −2internal/edge/storedoor_test.go+236 −0internal/fleetstore/fake.go+20 −1internal/fleetstore/fake_test.go+43 −7internal/fleetstore/provisioner.go+13 −2internal/objstore/termination_credentials_test.go+195 −1internal/provision/managed_fleets_2b1_census_test.go+44 −0internal/provision/plan9_b8_census_test.go+1 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-managed-fleets-2b1.tsv+42 −0internal/registry/fleets.go+26 −6internal/registry/fleets_test.go+81 −0internal/registry/remote.go+26 −8internal/registry/remote_dispatch.go+2 −2internal/registry/remote_test.go+154 −0
CI passed — run details
apimode_managedfleets.goLoading diff…
docs/superpowers/notes/census-proposal-managed-fleets-2b1.mdLoading diff…
docs/superpowers/notes/managed-fleets-2b1-ledger.mdLoading diff…
docs/superpowers/plans/2026-11-08-managed-fleets-2b1-console-aws.mdLoading diff…
fleets_managed.goLoading diff…
fleets_managed_test.goLoading diff…
infra/modules/region-host/main.tfLoading diff…
infra/modules/region-host/managed_fleets.tfLoading diff…
infra/modules/region-host/outputs.tfLoading diff…
infra/modules/region-host/tests/managed_fleets/group_refusal.tftest.hclLoading diff…
infra/modules/region-host/tests/managed_fleets/managed_fleets.tftest.hclLoading diff…
infra/modules/region-host/variables.tfLoading diff…
internal/awsmanaged/clients.goLoading diff…
internal/awsmanaged/compute.goLoading diff…
internal/awsmanaged/compute_test.goLoading diff…
internal/awsmanaged/credentials.goLoading diff…
internal/awsmanaged/credentials_test.goLoading diff…
internal/awsmanaged/diagnostics.goLoading diff…
internal/awsmanaged/diagnostics_test.goLoading diff…
internal/awsmanaged/export_test.goLoading diff…
internal/awsmanaged/infra_policy_test.goLoading diff…
internal/awsmanaged/integration_test.goLoading diff…
internal/awsmanaged/policy.goLoading diff…
internal/awsmanaged/policy_test.goLoading diff…
internal/awsmanaged/storage.goLoading diff…
internal/awsmanaged/storage_test.goLoading diff…
internal/awsmanaged/testdata/fleet-data-policy.jsonLoading diff…
internal/awsmanaged/testdata/managed-boundary-policy.jsonLoading diff…
internal/awsmanaged/testdata/managed-console-policy.jsonLoading diff…
internal/compute/fake.goLoading diff…
internal/compute/fake_test.goLoading diff…
internal/compute/provisioner.goLoading diff…
internal/console/managed_e2e_test.goLoading diff…
internal/console/managedbudget_test.goLoading diff…
internal/console/managedenrol.goLoading diff…
internal/console/managedfreshsim_test.goLoading diff…
internal/console/managedhistory.goLoading diff…
internal/console/managedhistory_test.goLoading diff…
internal/console/managedpreflight_test.goLoading diff…
internal/console/managedready.goLoading diff…
internal/console/managedready_test.goLoading diff…
internal/console/managedrecovery_test.goLoading diff…
internal/console/managedstore.goLoading diff…
internal/console/managedstore_test.goLoading diff…
internal/console/managedview.goLoading diff…
internal/console/managedworker.goLoading diff…
internal/console/managedworker_test.goLoading diff…
internal/console/server.goLoading diff…
internal/console/store.goLoading diff…
internal/console/store_gate.goLoading diff…
internal/console/view.goLoading diff…
internal/edge/storedoor.goLoading diff…
internal/edge/storedoor_test.goLoading diff…
internal/fleetstore/fake.goLoading diff…
internal/fleetstore/fake_test.goLoading diff…
internal/fleetstore/provisioner.goLoading diff…
internal/objstore/termination_credentials_test.goLoading diff…
internal/provision/managed_fleets_2b1_census_test.goLoading diff…
internal/provision/plan9_b8_census_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-managed-fleets-2b1.tsvLoading diff…
internal/registry/fleets.goLoading diff…
internal/registry/fleets_test.goLoading diff…
internal/registry/remote.goLoading diff…
internal/registry/remote_dispatch.goLoading diff…
internal/registry/remote_test.goLoading diff…