carlos / platform Public

census: data-lifecycle-336 overlay and approval card (#336)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 67a91f885ea697cdfa8d23db98cb5e3539960f95 parent d63a2a8
3 files changed, +38 −0
  • docs/superpowers/notes/census-proposal-data-lifecycle-336.md +25 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-data-lifecycle-336.tsv +12 −0

CI failed — run details

diff --git a/docs/superpowers/notes/census-proposal-data-lifecycle-336.md b/docs/superpowers/notes/census-proposal-data-lifecycle-336.md
new file mode 100644
index 000000000..3de04afbe
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-data-lifecycle-336.md
@@ -0,0 +1,25 @@
+# Census approval: data-lifecycle-336
+
+Ruling `census-ruling-data-lifecycle-336`. Every change below keeps the disposition it already has, so it needs an approval, not a decision.
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `infra/modules/deployment-buckets/main.tf` `external` | body | unchanged (1) | adds aws_s3_bucket_lifecycle_configuration "data" on the data bucket: noncurrent versions expire after var.data_noncurrent_days, expired delete markers go, multipart aborts after 7 days; no read, no IAM change |
+| `infra/modules/deployment-buckets/variables.tf` `external` | body | unchanged (1) | adds variable data_noncurrent_days (number, default 7, validated whole and >= 1); no read |
+| `infra/modules/region-remote-host/main.tf` `external` | body | unchanged (1) | adds the same aws_s3_bucket_lifecycle_configuration "data" on the regional data bucket; no read, no IAM change |
+| `infra/modules/region-remote-host/variables.tf` `external` | body | unchanged (1) | adds variable data_noncurrent_days (number, default 7, validated whole and >= 1); no read |
+
+Envelopes re-pinned: `infra/modules/deployment-buckets`, `infra/modules/region-remote-host`.
+
+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. Escalate 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. An escalation goes to the census owner as a decision.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `infra/modules/deployment-buckets/main.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-db-region-forward-2;basis=the db-reads/ lifecycle rules (db region forward spec §5.7, J4): two rules beside geoip-noncurrent on the deployment bucket's lifecycle configuration, prepared and not applied until Paul approves docs/superpowers/notes/db-reads-lifecycle-approval.md; no read, no IAM change
+- `infra/modules/deployment-buckets/variables.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input
+- `infra/modules/region-remote-host/main.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input
+- `infra/modules/region-remote-host/variables.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input
+
+Seal: `84cb1e17c2f9cabddcc1e6ed5b39b00ffa70395639b4418c2cc5cf9b444b3eee` → `539ae875b4a089bc6512ae2e047fa9e353e8b760c18312b81ec3400e5e1f6d48`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-data-lifecycle-336.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 a520c01fd..c439211d0 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -18,3 +18,4 @@ plan14-root-reads-rootfs-apps-1-new.tsv bd1e86c9dc0a0d33ea9b9b66483c58f79d71cfec
plan14-root-reads-rootfs-apps-1.tsv 9cf49b684449c9b4c8b2356afa1ec0a7bb6403011de005f12e4877101bb74ddc
plan14-root-reads-edge-request-records-decisions.tsv c6dfb1753f33c96aee894496c2e7e8e9d87cea4f0ff61cb15dbbd8e78ed5021b
plan14-root-reads-edge-request-records.tsv 84cb1e17c2f9cabddcc1e6ed5b39b00ffa70395639b4418c2cc5cf9b444b3eee
+plan14-root-reads-data-lifecycle-336.tsv 539ae875b4a089bc6512ae2e047fa9e353e8b760c18312b81ec3400e5e1f6d48
diff --git a/internal/provision/testdata/plan14-root-reads-data-lifecycle-336.tsv b/internal/provision/testdata/plan14-root-reads-data-lifecycle-336.tsv
new file mode 100644
index 000000000..b0cfab2a7
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-data-lifecycle-336.tsv
@@ -0,0 +1,12 @@
+# Census overlay data-lifecycle-336, written by census-propose (#369). census-ruling-data-lifecycle-336, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-data-lifecycle-336.md.
+# 4 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@legacy ddfe0f10ea8352c2ac2a2332d376052927882c84f3c8dd9d0739e0247bb8a995 infra/modules/deployment-buckets/main.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-db-region-forward-2;basis=the db-reads/ lifecycle rules (db region forward spec §5.7, J4): two rules beside geoip-noncurrent on the deployment bucket's lifecycle configuration, prepared and not applied until Paul approves docs/superpowers/notes/db-reads-lifecycle-approval.md; no read, no IAM change;rev3=census-ruling-data-lifecycle-336;basis=adds aws_s3_bucket_lifecycle_configuration "data" on the data bucket: noncurrent versions expire after var.data_noncurrent_days, expired delete markers go, multipart aborts after 7 days; no read, no IAM change file:external@0 3774b0e24145e89430c5acb0ad4508e6949f4b34ec6cbdb97700e5c5c35ba7d9
+@legacy c0491444351fffe26584b361757b54814460c5c5af36f62a957b4b64597ca3e1 infra/modules/deployment-buckets/variables.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-data-lifecycle-336;basis=adds variable data_noncurrent_days (number, default 7, validated whole and >= 1); no read file:external@0 234c8f2a6977a296bfdea78a3e2753914af7f806381b36aa2f4cd2630a15d60e
+@legacy bff551ee559255589fffecd7b6ab2ee529eba4e13df6ff6eb9bb1e359248b7c3 infra/modules/region-remote-host/main.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-data-lifecycle-336;basis=adds the same aws_s3_bucket_lifecycle_configuration "data" on the regional data bucket; no read, no IAM change file:external@0 ee699245585c40adacdc3cfcd6a7e1bf264825ac9ad55aab702332b278d86a1c
+@legacy fba1279b4a22e1291957e331c37dca458c8f80342014e5a4b8ce3bcf5780c0a4 infra/modules/region-remote-host/variables.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-data-lifecycle-336;basis=adds variable data_noncurrent_days (number, default 7, validated whole and >= 1); no read file:external@0 467eae2e74081b304e441203590730945212e43555ab3af45fecb70d22a0e744
+infra/modules/deployment-buckets/main.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-db-region-forward-2;basis=the db-reads/ lifecycle rules (db region forward spec §5.7, J4): two rules beside geoip-noncurrent on the deployment bucket's lifecycle configuration, prepared and not applied until Paul approves docs/superpowers/notes/db-reads-lifecycle-approval.md; no read, no IAM change;rev3=census-ruling-data-lifecycle-336;basis=adds aws_s3_bucket_lifecycle_configuration "data" on the data bucket: noncurrent versions expire after var.data_noncurrent_days, expired delete markers go, multipart aborts after 7 days; no read, no IAM change file:external@0 3774b0e24145e89430c5acb0ad4508e6949f4b34ec6cbdb97700e5c5c35ba7d9
+infra/modules/deployment-buckets/variables.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-data-lifecycle-336;basis=adds variable data_noncurrent_days (number, default 7, validated whole and >= 1); no read file:external@0 234c8f2a6977a296bfdea78a3e2753914af7f806381b36aa2f4cd2630a15d60e
+infra/modules/region-remote-host/main.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-data-lifecycle-336;basis=adds the same aws_s3_bucket_lifecycle_configuration "data" on the regional data bucket; no read, no IAM change file:external@0 ee699245585c40adacdc3cfcd6a7e1bf264825ac9ad55aab702332b278d86a1c
+infra/modules/region-remote-host/variables.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-data-lifecycle-336;basis=adds variable data_noncurrent_days (number, default 7, validated whole and >= 1); no read file:external@0 467eae2e74081b304e441203590730945212e43555ab3af45fecb70d22a0e744
+@coverage infra/modules/deployment-buckets 90574aa9cab03043c37aabbaf70e0fc852bbce5a428f38085a752f52f4e6747b
+@coverage infra/modules/region-remote-host 58a1425a489a6d1b1dbe3dbec3c28b8c99e799ab134dd03d0db9fd60badbf957