oficina / equipo Public

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>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 30fd4e9fcbbb315c9dae9685e6c9a74540d07cc9 parent 798f9e1
23 files changed, +2,265 −7,146
  • docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md +5 −5
  • docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md +30 −0
  • infra/hosted/README.md +41 −13
  • infra/hosted/envs/dev/services/tests/services.tftest.hcl +1 −1
  • infra/hosted/envs/prod/config/tests/iam.tftest.hcl +1 −0
  • infra/hosted/envs/prod/services/tests/alerts.tftest.hcl +36 −29
  • infra/hosted/envs/prod/services/tests/iam.tftest.hcl +22 −12
  • infra/hosted/modules/alerts/main.tf +27 −1
  • infra/hosted/modules/controller/main.tf +28 −13
  • infra/hosted/scripts/make_plan_fixtures.py +196 −0
  • infra/hosted/scripts/phases.json +928 −120
  • infra/hosted/scripts/plan-check.py +656 −74
  • infra/hosted/scripts/plan_check_test.py +286 −41
  • infra/hosted/scripts/testdata/network-destroy-plan.json +0 −3,477
  • infra/hosted/scripts/testdata/network-plan.json +0 −3,360
  • infra/hosted/scripts/testdata/plan-dev-config.json +1 −0
  • infra/hosted/scripts/testdata/plan-dev-network.json +1 −0
  • infra/hosted/scripts/testdata/plan-dev-services.json +1 −0
  • infra/hosted/scripts/testdata/plan-prod-account.json +1 −0
  • infra/hosted/scripts/testdata/plan-prod-config.json +1 −0
  • infra/hosted/scripts/testdata/plan-prod-network-destroy.json +1 −0
  • infra/hosted/scripts/testdata/plan-prod-network.json +1 −0
  • infra/hosted/scripts/testdata/plan-prod-services.json +1 −0
docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md

Loading diff…

docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md

Loading diff…

infra/hosted/README.md

Loading diff…

infra/hosted/envs/dev/services/tests/services.tftest.hcl

Loading diff…

infra/hosted/envs/prod/config/tests/iam.tftest.hcl

Loading diff…

infra/hosted/envs/prod/services/tests/alerts.tftest.hcl

Loading diff…

infra/hosted/envs/prod/services/tests/iam.tftest.hcl

Loading diff…

infra/hosted/modules/alerts/main.tf

Loading diff…

infra/hosted/modules/controller/main.tf

Loading diff…

infra/hosted/scripts/make_plan_fixtures.py

Loading diff…

infra/hosted/scripts/phases.json

Loading diff…

infra/hosted/scripts/plan-check.py

Loading diff…

infra/hosted/scripts/plan_check_test.py

Loading diff…

infra/hosted/scripts/testdata/network-destroy-plan.json

Loading diff…

infra/hosted/scripts/testdata/network-plan.json

Loading diff…

infra/hosted/scripts/testdata/plan-dev-config.json

Loading diff…

infra/hosted/scripts/testdata/plan-dev-network.json

Loading diff…

infra/hosted/scripts/testdata/plan-dev-services.json

Loading diff…

infra/hosted/scripts/testdata/plan-prod-account.json

Loading diff…

infra/hosted/scripts/testdata/plan-prod-config.json

Loading diff…

infra/hosted/scripts/testdata/plan-prod-network-destroy.json

Loading diff…

infra/hosted/scripts/testdata/plan-prod-network.json

Loading diff…

infra/hosted/scripts/testdata/plan-prod-services.json

Loading diff…