infra: Task 28 review 1, plan-check proves unknowns from source
Rulings: lambda:PassNetworkConnector on the controller role, a LitestreamLag alarm, and the budget role's permission as aws_iam_role_policy.budget_action (phases.json and account plan 5.1). plan-check reads the phase's root and modules from the checkout: an unknown value passes only as a bare reference chain to the pinned attribute, or a jsonencode policy equal to the pinned document, with plan and source agreeing at every hop. Variable pins compare values; every create needs one configuration entry; alarms pin enabled actions, evaluation and exact dimensions. Fixtures are genuine offline tofu plans of every root (make_plan_fixtures.py). Config roles assert no managed policies; README notes the dev budget cannot see VM spend.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 files changed,
+2,265
−7,146
docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md+5 −5docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md+30 −0infra/hosted/README.md+41 −13infra/hosted/envs/dev/services/tests/services.tftest.hcl+1 −1infra/hosted/envs/prod/config/tests/iam.tftest.hcl+1 −0infra/hosted/envs/prod/services/tests/alerts.tftest.hcl+36 −29infra/hosted/envs/prod/services/tests/iam.tftest.hcl+22 −12infra/hosted/modules/alerts/main.tf+27 −1infra/hosted/modules/controller/main.tf+28 −13infra/hosted/scripts/make_plan_fixtures.py+196 −0infra/hosted/scripts/phases.json+928 −120infra/hosted/scripts/plan-check.py+656 −74infra/hosted/scripts/plan_check_test.py+286 −41infra/hosted/scripts/testdata/network-destroy-plan.json+0 −3,477infra/hosted/scripts/testdata/network-plan.json+0 −3,360infra/hosted/scripts/testdata/plan-dev-config.json+1 −0infra/hosted/scripts/testdata/plan-dev-network.json+1 −0infra/hosted/scripts/testdata/plan-dev-services.json+1 −0infra/hosted/scripts/testdata/plan-prod-account.json+1 −0infra/hosted/scripts/testdata/plan-prod-config.json+1 −0infra/hosted/scripts/testdata/plan-prod-network-destroy.json+1 −0infra/hosted/scripts/testdata/plan-prod-network.json+1 −0infra/hosted/scripts/testdata/plan-prod-services.json+1 −0
docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.mdLoading diff…
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.mdLoading diff…
infra/hosted/README.mdLoading diff…
infra/hosted/envs/dev/services/tests/services.tftest.hclLoading diff…
infra/hosted/envs/prod/config/tests/iam.tftest.hclLoading diff…
infra/hosted/envs/prod/services/tests/alerts.tftest.hclLoading diff…
infra/hosted/envs/prod/services/tests/iam.tftest.hclLoading diff…
infra/hosted/modules/alerts/main.tfLoading diff…
infra/hosted/modules/controller/main.tfLoading diff…
infra/hosted/scripts/make_plan_fixtures.pyLoading diff…
infra/hosted/scripts/phases.jsonLoading diff…
infra/hosted/scripts/plan-check.pyLoading diff…
infra/hosted/scripts/plan_check_test.pyLoading diff…
infra/hosted/scripts/testdata/network-destroy-plan.jsonLoading diff…
infra/hosted/scripts/testdata/network-plan.jsonLoading diff…
infra/hosted/scripts/testdata/plan-dev-config.jsonLoading diff…
infra/hosted/scripts/testdata/plan-dev-network.jsonLoading diff…
infra/hosted/scripts/testdata/plan-dev-services.jsonLoading diff…
infra/hosted/scripts/testdata/plan-prod-account.jsonLoading diff…
infra/hosted/scripts/testdata/plan-prod-config.jsonLoading diff…
infra/hosted/scripts/testdata/plan-prod-network-destroy.jsonLoading diff…
infra/hosted/scripts/testdata/plan-prod-network.jsonLoading diff…
infra/hosted/scripts/testdata/plan-prod-services.jsonLoading diff…