carlos / platform Public

census: claims for media-spike-fixes (media-engine module)

Three body changes in infra/modules/media-engine (ecs.tf, network.tf,
the tftest file); both envelopes re-pinned. No read added, nothing on a
box reads the files. Awaiting the reviewer's verdict on #280.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev dbd31a9c7a63273103d04326b65d4d793e851732 parent f77b70a
3 files changed, +34 −0
  • docs/superpowers/notes/census-proposal-media-spike-fixes.md +23 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-media-spike-fixes.tsv +10 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/notes/census-proposal-media-spike-fixes.md b/docs/superpowers/notes/census-proposal-media-spike-fixes.md
new file mode 100644
index 000000000..3691a51e1
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-media-spike-fixes.md
@@ -0,0 +1,23 @@
+# Census approval: media-spike-fixes
+
+Ruling `census-ruling-media-spike-fixes`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `infra/modules/media-engine/ecs.tf` `external` | body | unchanged (1) | engine_container writes the lists ECS answers empty: linuxParameters.capabilities gains add = [] (drop = ["ALL"] kept), and environment, mountPoints, portMappings, systemControls, volumesFrom = [] (codec still overrides environment with TMPDIR and mountPoints with scratch); so the plan after an apply no longer replaces the four definitions. No capability, mount, port, sysctl or volume is granted; skip_destroy, user, read-only root, entryPoint, image by digest and no task role unchanged. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. |
+| `infra/modules/media-engine/network.tf` `external` | body | unchanged (1) | DNS Firewall domain names written fully qualified (trailing dot), the form DNS Firewall stores and lists, so plans stop rewriting both lists: the allow list is the same five names (s3, *.s3, api.ecr, *.dkr.ecr, logs in the region) and the block list is "*." (was "*"), still BLOCK NXDOMAIN at priority 200, fail-closed. No name added. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. |
+| `infra/modules/media-engine/tests/media_engine.tftest.hcl` `external` | body | unchanged (1) | assertions follow the module: capabilities must equal {add = [], drop = ["ALL"]}; deadline mountPoints and environment, and every volumesFrom, portMappings, systemControls must be empty (was: absent); new asserts that every list ECS fills in is written and that every DNS Firewall name is fully qualified; domain lists expected with trailing dots. Mock provider only, no AWS access; no read is added. |
+
+Envelopes re-pinned: `infra/modules/media-engine`, `infra/modules/media-engine/tests`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `infra/modules/media-engine/ecs.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-media-conversion;basis=new: Fargate-only cluster and four task definitions (deadline + codec containers, entryPoint /usr/local/bin/carlos-media, read-only root, user 65534, caps dropped, no task role, image by digest) created only once image_digest is set, with skip_destroy so a rollout keeps the revisions a running console uses.
+- `infra/modules/media-engine/network.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-media-conversion;basis=new: a VPC with two private subnets, no internet gateway, NAT or default route; a tasks security group with no ingress and HTTPS egress only to the S3 prefix list and the endpoints; S3 gateway and ECR/logs interface endpoints with principal-scoped policies; a Route 53 Resolver DNS firewall allowing only the S3, ECR and logs names (TRUST_REDIRECTION_DOMAIN on that ALLOW only) and blocking the rest with NXDOMAIN, fail-closed; the drill input changes only the four endpoint policies and the repository policy.
+- `infra/modules/media-engine/tests/media_engine.tftest.hcl` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-media-conversion;basis=new OpenTofu tests (24 runs: 9 plan and 15 apply, all against mock_provider aws, so no AWS access): task definitions pass the gate's shape, endpoint, role, console, reaper and DNS policies exact, no default route, drill states, output parses. The archive provider is real and writes the reaper's ZIP to a local path during the test.
+
+Seal: `f06c832e5595b5a0c256639131d094a94da4505d0e64586813c357cb7eea8f33` → `ce73bb1c1374f2d6344fdd3e0494eef5f8a21bb86a5350b5567917af0dbb75ce`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-media-spike-fixes.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index f9e34d8b4..0c2a37ad6 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -265,3 +265,4 @@ plan14-root-reads-replica-wake-gap-r3.tsv 460c6557a81afc8e5a73db79b8673a7495f84c
plan14-root-reads-replica-wake-gap-ch.tsv 6c3e03c493dbca78fc128355f071caa2b2d5f22674b98994cd85a0cf63d40ca8
plan14-root-reads-plan-domains-2a.tsv 89f2b0e097f2de04bcef403f0b4aaa7a56a17dc7d0000a87993f033e268fc2fa
plan14-root-reads-edge-held-cap.tsv f06c832e5595b5a0c256639131d094a94da4505d0e64586813c357cb7eea8f33
+plan14-root-reads-media-spike-fixes.tsv ce73bb1c1374f2d6344fdd3e0494eef5f8a21bb86a5350b5567917af0dbb75ce
diff --git a/internal/provision/testdata/plan14-root-reads-media-spike-fixes.tsv b/internal/provision/testdata/plan14-root-reads-media-spike-fixes.tsv
new file mode 100644
index 000000000..c2d8d2fcd
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-media-spike-fixes.tsv
@@ -0,0 +1,10 @@
+# Census overlay media-spike-fixes, written by census-propose (#369). census-ruling-media-spike-fixes, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-media-spike-fixes.md.
+# 3 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@legacy 41747126228463910b4587d9096f6b67dc47232c699b06649eec5b758144ac71 infra/modules/media-engine/ecs.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new: Fargate-only cluster and four task definitions (deadline + codec containers, entryPoint /usr/local/bin/carlos-media, read-only root, user 65534, caps dropped, no task role, image by digest) created only once image_digest is set, with skip_destroy so a rollout keeps the revisions a running console uses.;rev3=census-ruling-media-spike-fixes;basis=engine_container writes the lists ECS answers empty: linuxParameters.capabilities gains add = [] (drop = ["ALL"] kept), and environment, mountPoints, portMappings, systemControls, volumesFrom = [] (codec still overrides environment with TMPDIR and mountPoints with scratch); so the plan after an apply no longer replaces the four definitions. No capability, mount, port, sysctl or volume is granted; skip_destroy, user, read-only root, entryPoint, image by digest and no task role unchanged. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 6bf86142ae5301bdaaffc1271fd3f0efe87018e680b295f4b608334c91e600a1
+@legacy 5f7df5014a50ad33c6c67f9bc7259ee0ec854502f5f83a1cc1eec49617e698c2 infra/modules/media-engine/network.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new: a VPC with two private subnets, no internet gateway, NAT or default route; a tasks security group with no ingress and HTTPS egress only to the S3 prefix list and the endpoints; S3 gateway and ECR/logs interface endpoints with principal-scoped policies; a Route 53 Resolver DNS firewall allowing only the S3, ECR and logs names (TRUST_REDIRECTION_DOMAIN on that ALLOW only) and blocking the rest with NXDOMAIN, fail-closed; the drill input changes only the four endpoint policies and the repository policy.;rev3=census-ruling-media-spike-fixes;basis=DNS Firewall domain names written fully qualified (trailing dot), the form DNS Firewall stores and lists, so plans stop rewriting both lists: the allow list is the same five names (s3, *.s3, api.ecr, *.dkr.ecr, logs in the region) and the block list is "*." (was "*"), still BLOCK NXDOMAIN at priority 200, fail-closed. No name added. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 6403d7d0f3f015f8ca13f7c8d62af35cba48a3280a71b6501ab81c3afd6c65b5
+@legacy fcd93de8b67480ea70617882f0af30027f8d340fcd95569b232fb8d27d92ed5c infra/modules/media-engine/tests/media_engine.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new OpenTofu tests (24 runs: 9 plan and 15 apply, all against mock_provider aws, so no AWS access): task definitions pass the gate's shape, endpoint, role, console, reaper and DNS policies exact, no default route, drill states, output parses. The archive provider is real and writes the reaper's ZIP to a local path during the test.;rev3=census-ruling-media-spike-fixes;basis=assertions follow the module: capabilities must equal {add = [], drop = ["ALL"]}; deadline mountPoints and environment, and every volumesFrom, portMappings, systemControls must be empty (was: absent); new asserts that every list ECS fills in is written and that every DNS Firewall name is fully qualified; domain lists expected with trailing dots. Mock provider only, no AWS access; no read is added. file:external@0 78a725258167c21f2a5a9526bc18fdbd33d9ce84fdd8f4346cc53aefc9abe0fd
+infra/modules/media-engine/ecs.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new: Fargate-only cluster and four task definitions (deadline + codec containers, entryPoint /usr/local/bin/carlos-media, read-only root, user 65534, caps dropped, no task role, image by digest) created only once image_digest is set, with skip_destroy so a rollout keeps the revisions a running console uses.;rev3=census-ruling-media-spike-fixes;basis=engine_container writes the lists ECS answers empty: linuxParameters.capabilities gains add = [] (drop = ["ALL"] kept), and environment, mountPoints, portMappings, systemControls, volumesFrom = [] (codec still overrides environment with TMPDIR and mountPoints with scratch); so the plan after an apply no longer replaces the four definitions. No capability, mount, port, sysctl or volume is granted; skip_destroy, user, read-only root, entryPoint, image by digest and no task role unchanged. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 6bf86142ae5301bdaaffc1271fd3f0efe87018e680b295f4b608334c91e600a1
+infra/modules/media-engine/network.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new: a VPC with two private subnets, no internet gateway, NAT or default route; a tasks security group with no ingress and HTTPS egress only to the S3 prefix list and the endpoints; S3 gateway and ECR/logs interface endpoints with principal-scoped policies; a Route 53 Resolver DNS firewall allowing only the S3, ECR and logs names (TRUST_REDIRECTION_DOMAIN on that ALLOW only) and blocking the rest with NXDOMAIN, fail-closed; the drill input changes only the four endpoint policies and the repository policy.;rev3=census-ruling-media-spike-fixes;basis=DNS Firewall domain names written fully qualified (trailing dot), the form DNS Firewall stores and lists, so plans stop rewriting both lists: the allow list is the same five names (s3, *.s3, api.ecr, *.dkr.ecr, logs in the region) and the block list is "*." (was "*"), still BLOCK NXDOMAIN at priority 200, fail-closed. No name added. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 6403d7d0f3f015f8ca13f7c8d62af35cba48a3280a71b6501ab81c3afd6c65b5
+infra/modules/media-engine/tests/media_engine.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new OpenTofu tests (24 runs: 9 plan and 15 apply, all against mock_provider aws, so no AWS access): task definitions pass the gate's shape, endpoint, role, console, reaper and DNS policies exact, no default route, drill states, output parses. The archive provider is real and writes the reaper's ZIP to a local path during the test.;rev3=census-ruling-media-spike-fixes;basis=assertions follow the module: capabilities must equal {add = [], drop = ["ALL"]}; deadline mountPoints and environment, and every volumesFrom, portMappings, systemControls must be empty (was: absent); new asserts that every list ECS fills in is written and that every DNS Firewall name is fully qualified; domain lists expected with trailing dots. Mock provider only, no AWS access; no read is added. file:external@0 78a725258167c21f2a5a9526bc18fdbd33d9ce84fdd8f4346cc53aefc9abe0fd
+@coverage infra/modules/media-engine 2454234a6dd982bdd258b4d2743a1ec6698cc569f9680e0748869f1728ac60b4
+@coverage infra/modules/media-engine/tests 2c83fdf5bdb50448bd7524c523472a3f49ac4c7a3f7263b03fd17cc7f392ead9