census: close-direct-s3-fleet-writes overlay (#1007)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+38
−0
docs/superpowers/notes/census-proposal-close-direct-s3-fleet-writes.md+25 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-close-direct-s3-fleet-writes.tsv+12 −0
CI passed — run details
Intent
Attributed to this commit: 45.0 g CO₂e (5,483,147 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on close-direct-s3-fleet-writes, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/notes/census-proposal-close-direct-s3-fleet-writes.md b/docs/superpowers/notes/census-proposal-close-direct-s3-fleet-writes.md| new file mode 100644 |
| index 000000000..bfea0e9c7 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-close-direct-s3-fleet-writes.md |
| @@ -0,0 +1,25 @@ |
| +# Census approval: close-direct-s3-fleet-writes |
| + |
| +Ruling `census-ruling-close-direct-s3-fleet-writes`. The independent reviewer approves or rejects every change below, 1 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `infra/modules/region-remote-host/main.tf` `external` | body | unchanged (1) | removes aws_iam_user_policy.host_deployment_bucket (the whole-deployment-bucket grant); access key status from var.access_key_status; no read, IAM narrowed | |
| +| `infra/modules/region-remote-host/variables.tf` `external` | body | unchanged (1) | deployment_bucket_arn now validated to be empty; adds access_key_status (Active|Inactive, default Active); no read | |
| + |
| +Envelopes re-pinned: `infra/modules/region-remote-host`, `infra/modules/region-remote-host/tests`, `internal/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. 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/region-remote-host/main.tf` `external`: legacy, task accepted-legacy. Basis: 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 |
| +- `infra/modules/region-remote-host/variables.tf` `external`: legacy, task accepted-legacy. Basis: 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 |
| + |
| +New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff: |
| + |
| +- new `infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen |
| + |
| +Seal: `da718fcd010b3c1db861196e0bbb9121723a9857ad16c2a15a329983688b8981` → `c6655e82e81ccd2a7547655eb393ec3fd10bba396255a1edb30d59b7ad1e682e`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-close-direct-s3-fleet-writes.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 bbe115138..9d511301e 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -223,3 +223,4 @@ plan14-root-reads-platform-mail-submission.tsv edd68225d4f61e5953ecaa710fe07e8c0 |
| plan14-root-reads-drain-quiesce-1062.tsv 66404a2fb26ea541e99d9c3d3bd87cb3f2a346eda95cdb7d7838cab2fcd844f5 |
| plan14-root-reads-flat-plans.tsv 66404a2fb26ea541e99d9c3d3bd87cb3f2a346eda95cdb7d7838cab2fcd844f5 |
| plan14-root-reads-sr-followups.tsv da718fcd010b3c1db861196e0bbb9121723a9857ad16c2a15a329983688b8981 |
| +plan14-root-reads-close-direct-s3-fleet-writes.tsv c6655e82e81ccd2a7547655eb393ec3fd10bba396255a1edb30d59b7ad1e682e |
diff --git a/internal/provision/testdata/plan14-root-reads-close-direct-s3-fleet-writes.tsv b/internal/provision/testdata/plan14-root-reads-close-direct-s3-fleet-writes.tsv| new file mode 100644 |
| index 000000000..cea0c1213 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-close-direct-s3-fleet-writes.tsv |
| @@ -0,0 +1,12 @@ |
| +# Census overlay close-direct-s3-fleet-writes, written by census-propose (#369). census-ruling-close-direct-s3-fleet-writes, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-close-direct-s3-fleet-writes.md. |
| +# 2 body, 0 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +@legacy ba3765246aea0b411e10ef6c9d1657cc1b097af016dc74e529ae7a79889ce8d2 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;rev3=census-ruling-close-direct-s3-fleet-writes;basis=removes aws_iam_user_policy.host_deployment_bucket (the whole-deployment-bucket grant); access key status from var.access_key_status; no read, IAM narrowed file:external@0 3e70d7771753e6ca68e5d057fdbcf4b41ff463e671dc817b923468119aac8b3c |
| +@legacy c2cd38372429a6ca94cdf9b29e56f02cbdb4de7533e3df7a326d5d1010da539e 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;rev3=census-ruling-close-direct-s3-fleet-writes;basis=deployment_bucket_arn now validated to be empty; adds access_key_status (Active|Inactive, default Active); no read file:external@0 60615245522d28230b590c5b5839d1bbc9c5c4c96b878b2b5d4429e7f94ba984 |
| +@legacy d44126b0f3457ff58d6f3762264acc424fdccea69c0bf8dbad9be40ade0f3e15 infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-close-direct-s3-fleet-writes;basis=new tofu test with a mock provider: own-bucket-only policy, deployment_bucket_arn refused, key status; no read file:external@0 59dca4eb8bed18219bb22d4a5a3016fe92523d740b7397b22570c1e4d25b0838 |
| +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;rev3=census-ruling-close-direct-s3-fleet-writes;basis=removes aws_iam_user_policy.host_deployment_bucket (the whole-deployment-bucket grant); access key status from var.access_key_status; no read, IAM narrowed file:external@0 3e70d7771753e6ca68e5d057fdbcf4b41ff463e671dc817b923468119aac8b3c |
| +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;rev3=census-ruling-close-direct-s3-fleet-writes;basis=deployment_bucket_arn now validated to be empty; adds access_key_status (Active|Inactive, default Active); no read file:external@0 60615245522d28230b590c5b5839d1bbc9c5c4c96b878b2b5d4429e7f94ba984 |
| +infra/modules/region-remote-host/tests/no_deployment_bucket.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-close-direct-s3-fleet-writes;basis=new tofu test with a mock provider: own-bucket-only policy, deployment_bucket_arn refused, key status; no read file:external@0 59dca4eb8bed18219bb22d4a5a3016fe92523d740b7397b22570c1e4d25b0838 |
| +@coverage infra/modules/region-remote-host 4d697952b38b79d2862652499419d5e5efec83d3406c4e21254f95ed4185544d |
| +@coverage infra/modules/region-remote-host/tests 6bb867c17012b3c98e6bc98c068235a25bdc9a09750273c3fe9b88d741ff92b2 |
| +@coverage internal/host 5144ac29579fea13c16f97f9cc4240e6f5ca3c5b8755652d346f9840fae0c453 |