carlos / platform Public

census: store write credential proposal; code review round 2 brief

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev a246a44b68d375e37149f501c9ba670ca72a38e7 parent edd2852
5 files changed, +142 −1
  • docs/superpowers/notes/census-proposal-store-write-credential.md +34 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code.md +15 −1
  • docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R1.md +63 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-store-write-credential.tsv +29 −0
diff --git a/docs/superpowers/notes/census-proposal-store-write-credential.md b/docs/superpowers/notes/census-proposal-store-write-credential.md
new file mode 100644
index 000000000..00bc5e5b9
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-store-write-credential.md
@@ -0,0 +1,34 @@
+# Census approval: store-write-credential
+
+Ruling `census-ruling-store-write-credential`. The independent reviewer approves or rejects every change below, 6 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `infra/modules/deployment-buckets/main.tf` `external` | body | unchanged (1) | the deployment bucket policy gains ConsoleFloorsAreCreateOnly (Deny s3:PutObject without If-None-Match) and ConsoleFloorsAreNeverDeleted (Deny s3:DeleteObject and s3:DeleteObjectVersion), both Principal * on control/console-floors/* only, the same shape as the box evidence statements; nothing wider is named. tofu only, run on an operator machine; no read is added and nothing on a box reads the file |
+| `infra/modules/region-host/main.tf` `external` | body | unchanged (1) | store_write_credentials (default false): the store user boundary gains the multipart pair (also with store_conversion) and sts:GetFederationToken on federated-user/carlos-write-* in this account when the switch is on; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file |
+| `infra/modules/region-host/variables.tf` `external` | body | unchanged (1) | new variable store_write_credentials (bool, default false) driving the boundary statements above; operator Terraform input only; no box runtime read |
+| `internal/release/adopt.go` `adoptHost` | sites | +whole:Route | one more site: before D3's bindProof, consoleFloorAdmits (consolefloor.go) for the selected version's staged path and the D2 program it already read; it can only refuse (print, point nothing live, retry next pass), never admit or widen; same root identity, same staging, guard and rollback |
+
+Envelopes re-pinned: `.`, `infra/modules/deployment-buckets`, `infra/modules/deployment-buckets/tests`, `infra/modules/region-host`, `infra/modules/region-host/tests`, `internal/objstore`, `internal/release`.
+
+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/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;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;rev3=census-ruling-media-results-cleanup;basis=two lifecycle rules for media-results/ (media-results-expire: current objects after 1 day, noncurrent versions 1 day after they become noncurrent, multipart aborts after 1 day; media-results-delete-markers: expired delete markers) join the existing rules in aws_s3_bucket_lifecycle_configuration.deployment; comment only otherwise; existing rules unchanged; no read, no IAM change
+- `infra/modules/region-host/main.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-console-invite-delivery;basis=tofu on an operator's machine with the operator's AWS credentials (no box unit; no binary embeds the file): main's module with one optional aws_iam_role_policy, host_console_mail, count 0 unless console_mail_from is set; it grants the host role ses:SendEmail on the one sending identity, the carlos-bab configuration set and its tenants, conditioned on ses:FromAddress equal to console_mail_from; no read is added and nothing on a box reads the file;rev3=census-ruling-sec-host-imdsv2-module;basis=aws_instance.host gains metadata_options (IMDSv2 required, hop limit 1, endpoint enabled), matching scanner-host; tofu configuration only, run on an operator's machine; no read, file or record write is added; applies in place on a running instance with no restart;rev3=census-ruling-hunt-account-root-hardening;basis=adds aws_iam_role_policy host_release_key_deny (count from deny_release_key_reads, default true): an explicit Deny on ssm:GetParameter, GetParameters and GetParameterHistory for parameter/carlos/release-key, and on GetParametersByPath for its ancestor paths; tofu only, run on an operator's machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-host-store-deny;basis=host_store policy: the explicit Deny on the deployment's own buckets drops s3:DeleteObject and keeps s3:DeleteBucket and s3:CreateBucket (lease release, retention and prune are DeleteObject); tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Select default fixed resources through counted addresses and explicit moves; group mode selects scoped bucket/SSM policy, partition-aware ARNs and refuses fixed-only settings. Operator Terraform controls the instance role that can read boot parameters and write runtime bucket objects; release-key Deny and fixed-mode policy remain.;rev3=census-ruling-region-ha-g3-fixes;basis=Enable the fixed-host memory alarm with either alert input and use the selected topic for alarm and recovery notifications. Preserve module topic/subscription creation for alerts_email only. No new root runtime read or box authority.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: aws_iam_policy.store_user_boundary is now counted when store_bucket_prefix is set or managed_fleets_enabled is true; its statements are concat of the unchanged object-storage pair (only with a store prefix, moved into local.store_boundary_statements byte for byte) and local.managed_boundary_statements (only with managed fleets: the fleet-data Allows on <managed_fleet_bucket_prefix>* buckets); name unchanged, description conditional on store prefix with lifecycle ignore_changes on description so a later feature switch never replaces the policy; tofu only, run on an operator's machine with the operator's AWS credentials; no box unit, user_data or binary reads the file; no read is added; default (both features off) plans no change;rev3=census-ruling-fixedbox-health-alarms;basis=Fixed host EC2 status-check alarms: auto-recover gains SNS alarm/ok actions (ec2:recover kept); new host_instance_check alarm (StatusCheckFailed_Instance 3 of 3 x 60 s -> ec2:reboot + SNS). tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-fixed-host-ignore-user-data;basis=aws_instance.host lifecycle ignore_changes gains user_data (was [ami]): a user_data edit no longer plans an in-place update (stop/start) of a live fixed host; a new box still boots with the given script. tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-w6-ingress-drain;basis=new aws_iam_role_policy.host_ingress_drain, count 1 only in fixed mode with ingress_target_group_arns non-empty: Allow elasticloadbalancing:DescribeTargetGroupAttributes and elasticloadbalancing:DescribeTargetHealth on Resource "*" (neither action takes a resource type). Read-only; no ELB write right. aws_iam_role.host's group-mode precondition gains length(var.ingress_target_group_arns) == 0, so group mode refuses the input. New AWS read right for the box role (the agent's drain reads); nothing a tenant or app can name.;rev3=census-ruling-stats-prune-400;basis=new aws_iam_role_policy for the console host role, count 1 only when enable_analytics_version_prune is true (default false, refused in group mode): s3:ListBucketVersions on the deployment bucket conditioned on s3:prefix apps/*, and s3:DeleteObjectVersion on deployment_bucket_arn/apps/*/*/analytics/*/days/* only; existing grants and denies unchanged; tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-media-conversion;basis=store_conversion (bool, default false) adds the customer-managed policy host_store_conversion attached to the host role: nine bucket-configuration actions (Get/PutBucketCORS, Get/PutLifecycleConfiguration, Get/PutBucketTagging, GetBucketPolicy, GetEncryptionConfiguration, GetBucketVersioning) on arn:aws:s3:::<store_bucket_prefix>* only, with an explicit Deny of the three writes on the deployment and data buckets; preconditions refuse it unless the prefix is a dedicated literal lower-case prefix ending in -store-, no deployment, data or sibling staging bucket starts with it, and it does not overlap a configured fleet prefix whatever managed_fleets_enabled says. The store user boundary gains s3:AbortMultipartUpload and s3:ListMultipartUploadParts only when the switch is on (off renders byte for byte as before). host_analytics_prune moves from inline to a customer-managed attached policy with identical statements and switch. Default plans no change apart from that policy's type.;rev3=census-ruling-store-versioning;basis=store_versioning (bool, default false) adds the customer-managed policy host_store_versioning attached to the host role: s3:GetBucketVersioning, PutBucketVersioning, GetLifecycleConfiguration, PutLifecycleConfiguration and ListBucketVersions on arn:aws:s3:::<store_bucket_prefix>*, and s3:DeleteObjectVersion, GetObjectVersion and PutObject on arn:aws:s3:::<store_bucket_prefix>*/*, with an explicit Deny of PutBucketVersioning and PutLifecycleConfiguration on the deployment and data buckets; the same four dedicated-prefix preconditions as store_conversion (prefix set, literal lower-case ending in -store-, no deployment, data or sibling staging bucket under it, no overlap with managed_fleet_bucket_prefix). The store user boundary does not change. Default plans no change. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. The console never suspends a bucket (no off, Astra round 1); s3:PutBucketVersioning stays because enabling needs it
+- `infra/modules/region-host/variables.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-console-invite-delivery;basis=tofu on an operator's machine with the operator's AWS credentials (no box unit; no binary embeds the file): main's variables with console_mail_from (validated as one lowercase address) and console_mail_region, both empty by default; no read is added and nothing on a box reads the file;rev3=census-ruling-hunt-account-root-hardening;basis=adds deny_release_key_reads (bool, default true); no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Add default-fixed mode and validated group count, zones, pinned image/release/template, ingress, configuration key and transaction-open refusal. Operator-supplied Terraform values select root boot inputs; no direct box runtime read and no group activation by default.;rev3=census-ruling-region-ha-g2-fixes;basis=Add an empty-default set of additional alert topic ARNs, validating concrete SNS topic syntax and excluding wildcards/subscriptions; operator Terraform input, no box runtime read.;rev3=census-ruling-region-ha-g3-fixes;basis=Add optional alerts_topic_arn with concrete same-region SNS ARN validation and mutual exclusion with alerts_email. The caller owns the existing topic policy and subscriptions; no runtime sink is configured and no new root read is added.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: five variables, managed_fleets_enabled (bool, default false, refused unless mode is fixed), managed_fleets_deployment, managed_fleets_regions (concrete ami/subnet/sg IDs, arm64 types, no ID in two regions), managed_fleet_bucket_prefix (1-24 chars, no reserved prefix, must not cover the deployment, data or staging buckets, disjoint from store_bucket_prefix) and managed_fleet_user_path (literal IAM path, disjoint from store_user_path); store_bucket_prefix and store_user_path gain a validation refusing *, ? or ${ only when managed fleets and object storage are both on; operator Terraform input only; no box runtime read and nothing on a box reads the file;rev3=census-ruling-fixedbox-health-alarms;basis=Add optional health_alerts_topic_arn (concrete same-region SNS ARN validation, empty default); enable_auto_recovery description covers both status alarms. Operator Terraform input; no box runtime read.;rev3=census-ruling-w6-ingress-drain;basis=new variable ingress_target_group_arns (list(string), default [], non-nullable) validated as distinct ELB target group ARNs (arn:aws(-x)*:elasticloadbalancing:<region>:<12 digits>:targetgroup/<name>/<16 hex>); drives the IAM policy and output above. No read added.;rev3=census-ruling-stats-prune-400;basis=new variable enable_analytics_version_prune (bool, default false) driving the policy above; operator Terraform input; no box runtime read;rev3=census-ruling-platform-mail-submission;basis=Task 8: variable "mailer", an object {ses_region, ses_account_id, deployment_bucket_region, optional deployment_bucket_kms_key_arn} defaulting to null, which creates nothing; validated (AWS region shapes, 12-digit account, KMS ARN or empty).;rev3=census-ruling-media-conversion;basis=two variables: store_conversion (bool, default false) and managed_fleets_inline_retired (bool, default false, temporary); operator Terraform input only; no box runtime read. Copy pass 5 changes only the two descriptions' text.;rev3=census-ruling-store-versioning;basis=new variable store_versioning (bool, default false) driving the policy above; operator Terraform input only; no box runtime read. The copy pass (Astra round 1) changes only its description text
+- `internal/release/adopt.go` `adoptHost`: authority, task B3,E1,E2,E3,E4,J1. Basis: E16: root first-registration creation evidence under release exclusion; exact installation identity is required for first-program adoption and is consumed before an attempt. Installed-program history comes from the verified claim launch. Fixtures: TestPlan14FreshInstallRegistration, TestPlan14FreshInstallProgramGate, TestPlan14FreshInstallCanonicalIdentity, TestPlan14FreshInstallLaunchObservation, TestPlan14InstalledLaunchProgramEvidence, TestPlan14FreshInstallProcessCrash, TestPlan14FreshInstallVisibleSync, TestClaimControlUnitInstallers. E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=applies root settings to canonically resolved routes including named units while legacy settings eligibility remains unchanged;rev3=PROPOSED-p3;run=16;basis=P3-R11 approved punctuation edit only; authority and reads unchanged;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=a non-root agent pass hands a route its named unit serves (unitServed) to root through the stage relay before staging or repointing; root adopt reads unchanged;rev3=census-ruling-rootfs-apps-2;identity=the root adopt pass (carlos adopt, carlos-adopt.service, root);basis=the row's runtime (Runtime) rides on a copy of the stage check, so stageFrom stages only the kind the row runs (runtimeMatches) before any download, and the manifest the pass ends up holding is checked again; the artifact sha comes from Manifest.BoxArtifact (the rootfs key for an image); the new kind is registry:Runtime, two sites, and one more Host site in the refusal's line. A runtime the agent forges can make the pass refuse a release, and can also admit a rootfs release to staging for a row it marks rootfs. The evidence paths that can then hand back a staged identity, exhaustively: (1) the signed channel pointer with a manifest digest (ensureStagedDigest, then stageFrom: a fresh download or the staged copy reused); (2) a signed pointer with no digest (the digest marker off), through ensureStagedChecked: with the manifest fetched, stageFrom as in (1); with the fetch failing, a binary's sibling on disk is handed back as before, and a rootfs sibling is refused (controller ruling R-a, task 11 fix E5); (3) a signed promotion record's manifest digest (stageAuthorized, then ensureStagedDigest and stageFrom); (4) retained-copy recovery when (3) fails (stageAuthorized, RetainedStaged: the copy's bytes must hash to its sibling's digest). For a rootfs version every path that hands back an identity yields a sibling byte-equal to the manifest just authorised: stageFrom reads the sibling back after a fresh stage or a reuse and refuses otherwise; (2)'s fallback never yields one; recovery refuses a sibling whose bytes do not hash to the digest a readable record names (retainedRootfsAuthorised, task 11 fix E1), and with no record readable takes the copy root itself verified, as for a binary. Every path is for the row's own account and app. The held stage (materializeheld.go) and signedhead.go stage through ensureStagedDigest with a zero stage check (a binary row's), so they never stage a rootfs release, and their no-digest fallback refuses a rootfs sibling too;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: reuse the manifest verified by existing staging and signed selection; within withReleaseWork after history, proof and staging gates, seed or unseed the exec mode before PointLive (R24), under the same full-row compare and no ServingVersion/GoodVersion/running build guard. Version stamps staging and is not serving evidence. All existing root admission, credentials, quotas, proof, restart and rollback checks retained; no additional manifest or bucket read.;rev3=census-ruling-dr1-left-link;basis=the up-to-date return is skipped for an unstamped planned row (unstampedPlannedRow), which takes the existing install path with all its gates; on that repair (cur == ver) the D2 history is not seeded from the candidate path, the stamp keeps PrevVersion, and the refusal clear keeps the up-to-date rule. No new read kind;rev3=census-ruling-sr-followups;basis=#1061 Task 4, print only: on a repoint failure the "repoint failed" line is skipped when the stage relay below is about to run (cfg.stageBlocked set and stageBlocked(err)) and the caps were not converged, the relay condition is computed once into relay and reused, otherwise identical. cfg.stageBlocked is set only by the non-root agent passes (OnStageBlocked, user carlos), the root adopt pass (carlos adopt, carlos-adopt.service, root) has no relay and is unchanged, every line still printing. Same reads, guard (withReleaseWork), relay and rollback, no read, file, store, bucket or root call added
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `infra/modules/deployment-buckets/tests/console_floors.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/region-host/tests/store_write_credentials.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `internal/objstore/aws_writecred.go:federatedName`: reads +file:Read; written legacy, accepted-legacy, frozen
+- new `internal/release/consolefloor.go:consoleFloorAdmits`: reads +registry:App, +registry:Host, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/release/consolefloor.go:fileContains`: reads +file:OpenFile, +file:Read; written legacy, accepted-legacy, frozen
+- new `store_credential.go:runStoreCredential`: reads +file:Access; written legacy, accepted-legacy, frozen
+
+Seal: `892cf87db700600490e3ec9e944f9dbe7151e43bc5471090634f1735bcb9a7bd` → `9e36d3d53d453d26c24e1b0b7ea55ae676a121d5f94f45369332aaf856604fa3`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-store-write-credential.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code.md
index 41222c916..b07aa1a42 100644
--- a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code.md
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code.md
@@ -1,4 +1,4 @@
-# Review brief: store write credential, code, round 1 of 3
+# Review brief: store write credential, code, round 2 of 3
Repo carlos/platform, branch `store-write-credential`, at the commit named in
your prompt. Under review: the diff `origin/main...HEAD` (main is merged in,
@@ -77,6 +77,20 @@ Review these three parts separately and say which part each finding is in.
11. The MinIO contract (`.amadan/ci.d/30-minio-contract`,
`contract_writecred_test.go`) and `TestMinioFixtureTracksWriterPolicy`.
+## Round 2
+
+Earlier rounds: round 1, `docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R1.md`
+(NOT READY: P1s 1 to 5, P2 6). The fixes are in commit `edd2852d` and the
+census proposal after it. Finding 1 is in the same fault family as design
+round 3's P1 ("version changes must preserve credential retirement and
+storage enforcement"): if a fix produces another finding in that family,
+say so plainly, because under the stopping rules there is no further fix.
+
+First give one line per round 1 finding: resolved, partly, or not. Carry
+every unresolved or partly resolved finding forward at its current
+severity, then add new findings, including any the fixes introduced. The
+verdict covers everything outstanding.
+
## Severity
- **P1**: unsafe, would not compile, a test fails, or it would not work.
diff --git a/docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R1.md b/docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R1.md
new file mode 100644
index 000000000..0ecb9889a
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R1.md
@@ -0,0 +1,63 @@
+Reviewed `7002d13231f02e53bb1b17ffab84f1901926a05a` against local `origin/main` (`02fa02e3`). No network calls, edits, subagents or full suites. The targeted offline tests could not start because Go’s work directory is read-only.
+
+1. **P1 — A: Deleting the floor re-enables writer-unaware rollback.**
+
+ **Evidence:** [consolefloor.go:72](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/release/consolefloor.go:72) admits every console when the floor is absent. Region hosts have `s3:DeleteObject` over the deployment bucket at [main.tf:191](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/infra/modules/region-host/main.tf:191). There is no durable local floor, and subsequent mints with existing state do not restore the object.
+
+ **Failure scenario:** After a writer exists, a deployment-bucket writer deletes the floor. A subsequent promotion of a valid, older console passes this gate. That console can purge the store while leaving its writer behind—the rollback failure this change must prevent.
+
+ **Fix:** Protect the floor against deletion by deployment-bucket writers, including deletion through versioning or lifecycle rules, or enforce a durable floor through trusted state. Test floor removal after issuance.
+
+ **Fault family:** Version changes must preserve credential retirement and storage enforcement.
+
+2. **P1 — A: A forged floor can exhaust the adopting process’s memory.**
+
+ **Evidence:** [consolefloor.go:72](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/release/consolefloor.go:72) calls `Store.Get` even though it only needs existence. Production `S3Store.Get` uses unbounded `io.ReadAll` at [store.go:987](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/release/store.go:987).
+
+ **Failure scenario:** A region host writes a sufficiently large floor object. The next console adoption loads the entire object into memory, potentially killing the root or agent process and interrupting unrelated adoption work. Its effect exceeds refusing an old console.
+
+ **Fix:** Use a streaming existence check without buffering the body, preserving refusal on read errors. Add an oversized-object test that verifies bounded consumption.
+
+ **Fault family:** Lower-trust bucket input must not control root’s memory consumption.
+
+3. **P1 — C: Legacy name collisions can share a writer and undo revocation.**
+
+ **Evidence:** [writeStore:370](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/objstore/writecred.go:370) validates record coordinates but never checks ownership or colliding stores. [claimRawConvergeWriterIn:345](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/objstore/writecred.go:345) then overwrites the deterministic writer’s policy. Existing grants explicitly reject these collisions at [nameclaim.go:243](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/objstore/nameclaim.go:243).
+
+ **Failure scenario:** Legacy stores `bab/shop-eu` and `bab/shop`, environment `eu`, both resolve to `carlos-w-bab-shop-eu`. Store A mints and revokes. Store B’s first mint uses its separate, unrevoked state and overwrites the shared writer policy, removing A’s revocation. Teardown also deletes this writer unconditionally, despite the shared-user handling immediately above it ([walk.go:823](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/objstore/walk.go:823)).
+
+ **Fix:** Enforce exclusive store-name ownership before writer creation or policy mutation, including legacy collisions. Make teardown respect writer ownership. Extend the existing shared-user fixture to cover mint, revoke and teardown.
+
+ **Fault family:** One store must not rewrite or destroy another store’s credential authority.
+
+4. **P1 — C: The root-read census has not been updated.**
+
+ **Evidence:** The chain still ends with `release-copy-across-consoles` at [plan14-root-reads-chain.tsv:293](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/provision/testdata/plan14-root-reads-chain.tsv:293). The changed infrastructure remains pinned to the previous fingerprints at [plan14-root-reads-store-versioning.tsv:11](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/provision/testdata/plan14-root-reads-store-versioning.tsv:11).
+
+ **Failure scenario:** `TestPlan14RootReadCensus` rejects this tip. I independently calculated both region-host directory fingerprints in memory; neither matches its effective census entry. The new root reads also have no branch proposal card.
+
+ **Fix:** Generate the complete census proposal and card, obtain independent disposition approval, and verify the census after the security fixes.
+
+ **Fault family:** Changes to root authority must match the reviewed census.
+
+5. **P1 — C: The new command is missing from the CLI projection and parity table.**
+
+ **Evidence:** [store.go:125](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/store.go:125) registers `store credential`. Neither parity file contains it. [TestCLIProjection:54](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/cli_projection_test.go:54) requires the checked-in projection to match the command tree.
+
+ **Failure scenario:** `TestCLIProjection` fails. Regenerating only the projection then exposes the missing parity row through `TestParityCLIPaths` and `TestParityCLIAudience`.
+
+ **Fix:** Add the customer command’s parity row and regenerate the projection and parity page.
+
+ **Fault family:** Every runnable command must appear in the enforced command inventory.
+
+6. **P2 — B: The implementation still claims the write-then-validate guarantee rejected in design round 3.**
+
+ **Evidence:** [writecred.go:338](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/objstore/writecred.go:338) says an older-input write is “always followed” by a newer one. Yet validation failure returns immediately at line 356, and retries stop after three attempts. [TestWriterPolicySurvivesRacingRevoke:431](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/store-write-credential/internal/objstore/writecred_test.go:431) covers successful validation only.
+
+ **Failure scenario:** A policy write succeeds and its validation read fails; no corrective write follows. The ordinary callers’ locks supply the safety argument, but the implementation comment attributes it to retries.
+
+ **Fix:** Document the single-console and caller-lock requirements here, describe validation as retry assistance, and test failure after a successful policy write. This is not a demonstrated ordinary same-process revocation race.
+
+ **Fault family:** Security policy convergence must remain safe when a writer fails.
+
+**NOT READY**
\ No newline at end of file
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 78c7ff501..ea447a867 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -291,3 +291,4 @@ plan14-root-reads-console-addr-from-install.tsv f273b5cb7bbf37b6dca4bb964a9293cb
plan14-root-reads-instance-ready-before-wake.tsv aa953b1a43009c8208e44c67f5b8127ae1914b15d8b8822bcf16b19a6abdf121
plan14-root-reads-media-results-cleanup.tsv 6921575b59564ed947e30c02e314dd429016c6c11a85db9b8af50b2f31d5a5db
plan14-root-reads-release-copy-across-consoles.tsv 892cf87db700600490e3ec9e944f9dbe7151e43bc5471090634f1735bcb9a7bd
+plan14-root-reads-store-write-credential.tsv 9e36d3d53d453d26c24e1b0b7ea55ae676a121d5f94f45369332aaf856604fa3
diff --git a/internal/provision/testdata/plan14-root-reads-store-write-credential.tsv b/internal/provision/testdata/plan14-root-reads-store-write-credential.tsv
new file mode 100644
index 000000000..76df8ff99
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-store-write-credential.tsv
@@ -0,0 +1,29 @@
+# Census overlay store-write-credential, written by census-propose (#369). census-ruling-store-write-credential, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-store-write-credential.md.
+# 3 body, 1 sites, 7 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 6 new dispositions: 0 reads re-frozen at their disposition with the claim, 6 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 13dfbcb41e68de8d2b4f651334897b61ac66adaf0710083c3acf9b7515d62e6f 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;rev3=census-ruling-media-results-cleanup;basis=two lifecycle rules for media-results/ (media-results-expire: current objects after 1 day, noncurrent versions 1 day after they become noncurrent, multipart aborts after 1 day; media-results-delete-markers: expired delete markers) join the existing rules in aws_s3_bucket_lifecycle_configuration.deployment; comment only otherwise; existing rules unchanged; no read, no IAM change;rev3=census-ruling-store-write-credential;basis=the deployment bucket policy gains ConsoleFloorsAreCreateOnly (Deny s3:PutObject without If-None-Match) and ConsoleFloorsAreNeverDeleted (Deny s3:DeleteObject and s3:DeleteObjectVersion), both Principal * on control/console-floors/* only, the same shape as the box evidence statements; nothing wider is named. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 116bb6de926d8c3dacc7be19bdba0d9ce2d189ccc797a7b1629fbc7554bdddbc
+@legacy e6b14d89a83c25bd846ffb9b1bcd6c0959f6215a8b672c0b0975aa82fa31d76e infra/modules/region-host/main.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-console-invite-delivery;basis=tofu on an operator's machine with the operator's AWS credentials (no box unit; no binary embeds the file): main's module with one optional aws_iam_role_policy, host_console_mail, count 0 unless console_mail_from is set; it grants the host role ses:SendEmail on the one sending identity, the carlos-bab configuration set and its tenants, conditioned on ses:FromAddress equal to console_mail_from; no read is added and nothing on a box reads the file;rev3=census-ruling-sec-host-imdsv2-module;basis=aws_instance.host gains metadata_options (IMDSv2 required, hop limit 1, endpoint enabled), matching scanner-host; tofu configuration only, run on an operator's machine; no read, file or record write is added; applies in place on a running instance with no restart;rev3=census-ruling-hunt-account-root-hardening;basis=adds aws_iam_role_policy host_release_key_deny (count from deny_release_key_reads, default true): an explicit Deny on ssm:GetParameter, GetParameters and GetParameterHistory for parameter/carlos/release-key, and on GetParametersByPath for its ancestor paths; tofu only, run on an operator's machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-host-store-deny;basis=host_store policy: the explicit Deny on the deployment's own buckets drops s3:DeleteObject and keeps s3:DeleteBucket and s3:CreateBucket (lease release, retention and prune are DeleteObject); tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Select default fixed resources through counted addresses and explicit moves; group mode selects scoped bucket/SSM policy, partition-aware ARNs and refuses fixed-only settings. Operator Terraform controls the instance role that can read boot parameters and write runtime bucket objects; release-key Deny and fixed-mode policy remain.;rev3=census-ruling-region-ha-g3-fixes;basis=Enable the fixed-host memory alarm with either alert input and use the selected topic for alarm and recovery notifications. Preserve module topic/subscription creation for alerts_email only. No new root runtime read or box authority.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: aws_iam_policy.store_user_boundary is now counted when store_bucket_prefix is set or managed_fleets_enabled is true; its statements are concat of the unchanged object-storage pair (only with a store prefix, moved into local.store_boundary_statements byte for byte) and local.managed_boundary_statements (only with managed fleets: the fleet-data Allows on <managed_fleet_bucket_prefix>* buckets); name unchanged, description conditional on store prefix with lifecycle ignore_changes on description so a later feature switch never replaces the policy; tofu only, run on an operator's machine with the operator's AWS credentials; no box unit, user_data or binary reads the file; no read is added; default (both features off) plans no change;rev3=census-ruling-fixedbox-health-alarms;basis=Fixed host EC2 status-check alarms: auto-recover gains SNS alarm/ok actions (ec2:recover kept); new host_instance_check alarm (StatusCheckFailed_Instance 3 of 3 x 60 s -> ec2:reboot + SNS). tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-fixed-host-ignore-user-data;basis=aws_instance.host lifecycle ignore_changes gains user_data (was [ami]): a user_data edit no longer plans an in-place update (stop/start) of a live fixed host; a new box still boots with the given script. tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-w6-ingress-drain;basis=new aws_iam_role_policy.host_ingress_drain, count 1 only in fixed mode with ingress_target_group_arns non-empty: Allow elasticloadbalancing:DescribeTargetGroupAttributes and elasticloadbalancing:DescribeTargetHealth on Resource "*" (neither action takes a resource type). Read-only; no ELB write right. aws_iam_role.host's group-mode precondition gains length(var.ingress_target_group_arns) == 0, so group mode refuses the input. New AWS read right for the box role (the agent's drain reads); nothing a tenant or app can name.;rev3=census-ruling-stats-prune-400;basis=new aws_iam_role_policy for the console host role, count 1 only when enable_analytics_version_prune is true (default false, refused in group mode): s3:ListBucketVersions on the deployment bucket conditioned on s3:prefix apps/*, and s3:DeleteObjectVersion on deployment_bucket_arn/apps/*/*/analytics/*/days/* only; existing grants and denies unchanged; tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-media-conversion;basis=store_conversion (bool, default false) adds the customer-managed policy host_store_conversion attached to the host role: nine bucket-configuration actions (Get/PutBucketCORS, Get/PutLifecycleConfiguration, Get/PutBucketTagging, GetBucketPolicy, GetEncryptionConfiguration, GetBucketVersioning) on arn:aws:s3:::<store_bucket_prefix>* only, with an explicit Deny of the three writes on the deployment and data buckets; preconditions refuse it unless the prefix is a dedicated literal lower-case prefix ending in -store-, no deployment, data or sibling staging bucket starts with it, and it does not overlap a configured fleet prefix whatever managed_fleets_enabled says. The store user boundary gains s3:AbortMultipartUpload and s3:ListMultipartUploadParts only when the switch is on (off renders byte for byte as before). host_analytics_prune moves from inline to a customer-managed attached policy with identical statements and switch. Default plans no change apart from that policy's type.;rev3=census-ruling-store-versioning;basis=store_versioning (bool, default false) adds the customer-managed policy host_store_versioning attached to the host role: s3:GetBucketVersioning, PutBucketVersioning, GetLifecycleConfiguration, PutLifecycleConfiguration and ListBucketVersions on arn:aws:s3:::<store_bucket_prefix>*, and s3:DeleteObjectVersion, GetObjectVersion and PutObject on arn:aws:s3:::<store_bucket_prefix>*/*, with an explicit Deny of PutBucketVersioning and PutLifecycleConfiguration on the deployment and data buckets; the same four dedicated-prefix preconditions as store_conversion (prefix set, literal lower-case ending in -store-, no deployment, data or sibling staging bucket under it, no overlap with managed_fleet_bucket_prefix). The store user boundary does not change. Default plans no change. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. The console never suspends a bucket (no off, Astra round 1); s3:PutBucketVersioning stays because enabling needs it;rev3=census-ruling-store-write-credential;basis=store_write_credentials (default false): the store user boundary gains the multipart pair (also with store_conversion) and sts:GetFederationToken on federated-user/carlos-write-* in this account when the switch is on; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 2ac2d1f1bf5dd99de1cae4a7b0cdb39197a5f69294704a00967b102a39da1784
+@legacy 1f1833709eaf4e3b489ea4401c676a30c4d0e77cfd347b260b57f7cee5c00a88 infra/modules/region-host/variables.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-console-invite-delivery;basis=tofu on an operator's machine with the operator's AWS credentials (no box unit; no binary embeds the file): main's variables with console_mail_from (validated as one lowercase address) and console_mail_region, both empty by default; no read is added and nothing on a box reads the file;rev3=census-ruling-hunt-account-root-hardening;basis=adds deny_release_key_reads (bool, default true); no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Add default-fixed mode and validated group count, zones, pinned image/release/template, ingress, configuration key and transaction-open refusal. Operator-supplied Terraform values select root boot inputs; no direct box runtime read and no group activation by default.;rev3=census-ruling-region-ha-g2-fixes;basis=Add an empty-default set of additional alert topic ARNs, validating concrete SNS topic syntax and excluding wildcards/subscriptions; operator Terraform input, no box runtime read.;rev3=census-ruling-region-ha-g3-fixes;basis=Add optional alerts_topic_arn with concrete same-region SNS ARN validation and mutual exclusion with alerts_email. The caller owns the existing topic policy and subscriptions; no runtime sink is configured and no new root read is added.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: five variables, managed_fleets_enabled (bool, default false, refused unless mode is fixed), managed_fleets_deployment, managed_fleets_regions (concrete ami/subnet/sg IDs, arm64 types, no ID in two regions), managed_fleet_bucket_prefix (1-24 chars, no reserved prefix, must not cover the deployment, data or staging buckets, disjoint from store_bucket_prefix) and managed_fleet_user_path (literal IAM path, disjoint from store_user_path); store_bucket_prefix and store_user_path gain a validation refusing *, ? or ${ only when managed fleets and object storage are both on; operator Terraform input only; no box runtime read and nothing on a box reads the file;rev3=census-ruling-fixedbox-health-alarms;basis=Add optional health_alerts_topic_arn (concrete same-region SNS ARN validation, empty default); enable_auto_recovery description covers both status alarms. Operator Terraform input; no box runtime read.;rev3=census-ruling-w6-ingress-drain;basis=new variable ingress_target_group_arns (list(string), default [], non-nullable) validated as distinct ELB target group ARNs (arn:aws(-x)*:elasticloadbalancing:<region>:<12 digits>:targetgroup/<name>/<16 hex>); drives the IAM policy and output above. No read added.;rev3=census-ruling-stats-prune-400;basis=new variable enable_analytics_version_prune (bool, default false) driving the policy above; operator Terraform input; no box runtime read;rev3=census-ruling-platform-mail-submission;basis=Task 8: variable "mailer", an object {ses_region, ses_account_id, deployment_bucket_region, optional deployment_bucket_kms_key_arn} defaulting to null, which creates nothing; validated (AWS region shapes, 12-digit account, KMS ARN or empty).;rev3=census-ruling-media-conversion;basis=two variables: store_conversion (bool, default false) and managed_fleets_inline_retired (bool, default false, temporary); operator Terraform input only; no box runtime read. Copy pass 5 changes only the two descriptions' text.;rev3=census-ruling-store-versioning;basis=new variable store_versioning (bool, default false) driving the policy above; operator Terraform input only; no box runtime read. The copy pass (Astra round 1) changes only its description text;rev3=census-ruling-store-write-credential;basis=new variable store_write_credentials (bool, default false) driving the boundary statements above; operator Terraform input only; no box runtime read file:external@0 af51c93eb1ae2141a0c5927a9452cc43fe66182c7259b8c9932ba46f4bd4240b
+@legacy aace4deee2c73593077ba048b13271bc0fa46019e240db12873a12657a8b4f19 infra/modules/deployment-buckets/tests/console_floors.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new plan-time tofu test, mock provider only; read by tofu test, never by a box file:external@0 8765496e4bd9445638e2b098be3082f509828b95f4c2122396e708cafa49122d
+@legacy 48eed9554e09cf5e1f6a1b66af9fa562625cb19f6de33f0f26ad5ab10893e28e infra/modules/region-host/tests/store_write_credentials.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new plan-time tofu test, mock provider only; read by tofu test, never by a box file:external@0 8437ce2ca6a69c86660a9f10116711c644cff3f381daa8d3b8bb8ae985906e90
+@legacy 8770240373f50dc37908face5040616e0ca9d7c2f5b580448b21491ac31dbb2b internal/objstore/aws_writecred.go federatedName legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: crypto/rand Read of 8 bytes for an STS session name; console-side (MintSession), never run by root file:Read@68 2af5da8db9c9bf67847c4e429ab02ef9afcb02cf989c4a4d107313b2442a7ec6
+@legacy 1b3d6c25aac67a1182dfa46fd748956c866caef8927b1c08608eac3ba47a5168 internal/release/consolefloor.go consoleFloorAdmits legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: only for a staged build whose Go program (read by D2, FileProgram) is the console: checks the deployment-bucket key control/console-floors/store-writers.json exists with a one-key bounded listing (ListPage, limit 1; List for a store without one), never reading its body (written create-only by the console; the bucket policy denies every principal its deletion or replacement; a forged one can only make boxes refuse pre-floor console builds) and scans the staged file at VersionPath for a fixed marker string; refuses on a read error; never opens, runs, queries or follows anything else registry:App@200,registry:Host@402,whole:Route@190 0344b6f1d4ec3b1f44e79250007268d457b06a33ffcfbfd55dd1666e0d6f4a44
+@legacy 92ad48c91e8fa10e65a01acf672b6c3cc42db6f1ed0207dfb9e20c112d4d419e internal/release/consolefloor.go fileContains legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: reads the staged release file at a path adoptHost computes (VersionPath of the route's own account, version and app, the file D2 already parses with buildinfo) through safefile.OpenFile, read-only, in 1 MiB chunks, looking for a fixed byte string; returns a bool file:OpenFile@73,file:Read@259 09541764bc853a6d161835a4856313ef1d69f8877d1f31957783ecba137dee50
+@legacy 00b78eff43839b3e66f005addf0d38fe1b8ed04713f8887232c599128e94ca86 store_credential.go runStoreCredential legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new CLI verb carlos store credential: flag parsing and console API calls as the invoking user; no root path file:Access@1714 9e34fb887f720eb7dce38984e7d2e2b41a8d8168ee1727fb40e88bebfd54a621
+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;rev3=census-ruling-media-results-cleanup;basis=two lifecycle rules for media-results/ (media-results-expire: current objects after 1 day, noncurrent versions 1 day after they become noncurrent, multipart aborts after 1 day; media-results-delete-markers: expired delete markers) join the existing rules in aws_s3_bucket_lifecycle_configuration.deployment; comment only otherwise; existing rules unchanged; no read, no IAM change;rev3=census-ruling-store-write-credential;basis=the deployment bucket policy gains ConsoleFloorsAreCreateOnly (Deny s3:PutObject without If-None-Match) and ConsoleFloorsAreNeverDeleted (Deny s3:DeleteObject and s3:DeleteObjectVersion), both Principal * on control/console-floors/* only, the same shape as the box evidence statements; nothing wider is named. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 116bb6de926d8c3dacc7be19bdba0d9ce2d189ccc797a7b1629fbc7554bdddbc
+infra/modules/region-host/main.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-console-invite-delivery;basis=tofu on an operator's machine with the operator's AWS credentials (no box unit; no binary embeds the file): main's module with one optional aws_iam_role_policy, host_console_mail, count 0 unless console_mail_from is set; it grants the host role ses:SendEmail on the one sending identity, the carlos-bab configuration set and its tenants, conditioned on ses:FromAddress equal to console_mail_from; no read is added and nothing on a box reads the file;rev3=census-ruling-sec-host-imdsv2-module;basis=aws_instance.host gains metadata_options (IMDSv2 required, hop limit 1, endpoint enabled), matching scanner-host; tofu configuration only, run on an operator's machine; no read, file or record write is added; applies in place on a running instance with no restart;rev3=census-ruling-hunt-account-root-hardening;basis=adds aws_iam_role_policy host_release_key_deny (count from deny_release_key_reads, default true): an explicit Deny on ssm:GetParameter, GetParameters and GetParameterHistory for parameter/carlos/release-key, and on GetParametersByPath for its ancestor paths; tofu only, run on an operator's machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-host-store-deny;basis=host_store policy: the explicit Deny on the deployment's own buckets drops s3:DeleteObject and keeps s3:DeleteBucket and s3:CreateBucket (lease release, retention and prune are DeleteObject); tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Select default fixed resources through counted addresses and explicit moves; group mode selects scoped bucket/SSM policy, partition-aware ARNs and refuses fixed-only settings. Operator Terraform controls the instance role that can read boot parameters and write runtime bucket objects; release-key Deny and fixed-mode policy remain.;rev3=census-ruling-region-ha-g3-fixes;basis=Enable the fixed-host memory alarm with either alert input and use the selected topic for alarm and recovery notifications. Preserve module topic/subscription creation for alerts_email only. No new root runtime read or box authority.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: aws_iam_policy.store_user_boundary is now counted when store_bucket_prefix is set or managed_fleets_enabled is true; its statements are concat of the unchanged object-storage pair (only with a store prefix, moved into local.store_boundary_statements byte for byte) and local.managed_boundary_statements (only with managed fleets: the fleet-data Allows on <managed_fleet_bucket_prefix>* buckets); name unchanged, description conditional on store prefix with lifecycle ignore_changes on description so a later feature switch never replaces the policy; tofu only, run on an operator's machine with the operator's AWS credentials; no box unit, user_data or binary reads the file; no read is added; default (both features off) plans no change;rev3=census-ruling-fixedbox-health-alarms;basis=Fixed host EC2 status-check alarms: auto-recover gains SNS alarm/ok actions (ec2:recover kept); new host_instance_check alarm (StatusCheckFailed_Instance 3 of 3 x 60 s -> ec2:reboot + SNS). tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-fixed-host-ignore-user-data;basis=aws_instance.host lifecycle ignore_changes gains user_data (was [ami]): a user_data edit no longer plans an in-place update (stop/start) of a live fixed host; a new box still boots with the given script. tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-w6-ingress-drain;basis=new aws_iam_role_policy.host_ingress_drain, count 1 only in fixed mode with ingress_target_group_arns non-empty: Allow elasticloadbalancing:DescribeTargetGroupAttributes and elasticloadbalancing:DescribeTargetHealth on Resource "*" (neither action takes a resource type). Read-only; no ELB write right. aws_iam_role.host's group-mode precondition gains length(var.ingress_target_group_arns) == 0, so group mode refuses the input. New AWS read right for the box role (the agent's drain reads); nothing a tenant or app can name.;rev3=census-ruling-stats-prune-400;basis=new aws_iam_role_policy for the console host role, count 1 only when enable_analytics_version_prune is true (default false, refused in group mode): s3:ListBucketVersions on the deployment bucket conditioned on s3:prefix apps/*, and s3:DeleteObjectVersion on deployment_bucket_arn/apps/*/*/analytics/*/days/* only; existing grants and denies unchanged; tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-media-conversion;basis=store_conversion (bool, default false) adds the customer-managed policy host_store_conversion attached to the host role: nine bucket-configuration actions (Get/PutBucketCORS, Get/PutLifecycleConfiguration, Get/PutBucketTagging, GetBucketPolicy, GetEncryptionConfiguration, GetBucketVersioning) on arn:aws:s3:::<store_bucket_prefix>* only, with an explicit Deny of the three writes on the deployment and data buckets; preconditions refuse it unless the prefix is a dedicated literal lower-case prefix ending in -store-, no deployment, data or sibling staging bucket starts with it, and it does not overlap a configured fleet prefix whatever managed_fleets_enabled says. The store user boundary gains s3:AbortMultipartUpload and s3:ListMultipartUploadParts only when the switch is on (off renders byte for byte as before). host_analytics_prune moves from inline to a customer-managed attached policy with identical statements and switch. Default plans no change apart from that policy's type.;rev3=census-ruling-store-versioning;basis=store_versioning (bool, default false) adds the customer-managed policy host_store_versioning attached to the host role: s3:GetBucketVersioning, PutBucketVersioning, GetLifecycleConfiguration, PutLifecycleConfiguration and ListBucketVersions on arn:aws:s3:::<store_bucket_prefix>*, and s3:DeleteObjectVersion, GetObjectVersion and PutObject on arn:aws:s3:::<store_bucket_prefix>*/*, with an explicit Deny of PutBucketVersioning and PutLifecycleConfiguration on the deployment and data buckets; the same four dedicated-prefix preconditions as store_conversion (prefix set, literal lower-case ending in -store-, no deployment, data or sibling staging bucket under it, no overlap with managed_fleet_bucket_prefix). The store user boundary does not change. Default plans no change. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. The console never suspends a bucket (no off, Astra round 1); s3:PutBucketVersioning stays because enabling needs it;rev3=census-ruling-store-write-credential;basis=store_write_credentials (default false): the store user boundary gains the multipart pair (also with store_conversion) and sts:GetFederationToken on federated-user/carlos-write-* in this account when the switch is on; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 2ac2d1f1bf5dd99de1cae4a7b0cdb39197a5f69294704a00967b102a39da1784
+infra/modules/region-host/variables.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-console-invite-delivery;basis=tofu on an operator's machine with the operator's AWS credentials (no box unit; no binary embeds the file): main's variables with console_mail_from (validated as one lowercase address) and console_mail_region, both empty by default; no read is added and nothing on a box reads the file;rev3=census-ruling-hunt-account-root-hardening;basis=adds deny_release_key_reads (bool, default true); no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Add default-fixed mode and validated group count, zones, pinned image/release/template, ingress, configuration key and transaction-open refusal. Operator-supplied Terraform values select root boot inputs; no direct box runtime read and no group activation by default.;rev3=census-ruling-region-ha-g2-fixes;basis=Add an empty-default set of additional alert topic ARNs, validating concrete SNS topic syntax and excluding wildcards/subscriptions; operator Terraform input, no box runtime read.;rev3=census-ruling-region-ha-g3-fixes;basis=Add optional alerts_topic_arn with concrete same-region SNS ARN validation and mutual exclusion with alerts_email. The caller owns the existing topic policy and subscriptions; no runtime sink is configured and no new root read is added.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: five variables, managed_fleets_enabled (bool, default false, refused unless mode is fixed), managed_fleets_deployment, managed_fleets_regions (concrete ami/subnet/sg IDs, arm64 types, no ID in two regions), managed_fleet_bucket_prefix (1-24 chars, no reserved prefix, must not cover the deployment, data or staging buckets, disjoint from store_bucket_prefix) and managed_fleet_user_path (literal IAM path, disjoint from store_user_path); store_bucket_prefix and store_user_path gain a validation refusing *, ? or ${ only when managed fleets and object storage are both on; operator Terraform input only; no box runtime read and nothing on a box reads the file;rev3=census-ruling-fixedbox-health-alarms;basis=Add optional health_alerts_topic_arn (concrete same-region SNS ARN validation, empty default); enable_auto_recovery description covers both status alarms. Operator Terraform input; no box runtime read.;rev3=census-ruling-w6-ingress-drain;basis=new variable ingress_target_group_arns (list(string), default [], non-nullable) validated as distinct ELB target group ARNs (arn:aws(-x)*:elasticloadbalancing:<region>:<12 digits>:targetgroup/<name>/<16 hex>); drives the IAM policy and output above. No read added.;rev3=census-ruling-stats-prune-400;basis=new variable enable_analytics_version_prune (bool, default false) driving the policy above; operator Terraform input; no box runtime read;rev3=census-ruling-platform-mail-submission;basis=Task 8: variable "mailer", an object {ses_region, ses_account_id, deployment_bucket_region, optional deployment_bucket_kms_key_arn} defaulting to null, which creates nothing; validated (AWS region shapes, 12-digit account, KMS ARN or empty).;rev3=census-ruling-media-conversion;basis=two variables: store_conversion (bool, default false) and managed_fleets_inline_retired (bool, default false, temporary); operator Terraform input only; no box runtime read. Copy pass 5 changes only the two descriptions' text.;rev3=census-ruling-store-versioning;basis=new variable store_versioning (bool, default false) driving the policy above; operator Terraform input only; no box runtime read. The copy pass (Astra round 1) changes only its description text;rev3=census-ruling-store-write-credential;basis=new variable store_write_credentials (bool, default false) driving the boundary statements above; operator Terraform input only; no box runtime read file:external@0 af51c93eb1ae2141a0c5927a9452cc43fe66182c7259b8c9932ba46f4bd4240b
+infra/modules/deployment-buckets/tests/console_floors.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new plan-time tofu test, mock provider only; read by tofu test, never by a box file:external@0 8765496e4bd9445638e2b098be3082f509828b95f4c2122396e708cafa49122d
+infra/modules/region-host/tests/store_write_credentials.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new plan-time tofu test, mock provider only; read by tofu test, never by a box file:external@0 8437ce2ca6a69c86660a9f10116711c644cff3f381daa8d3b8bb8ae985906e90
+internal/objstore/aws_writecred.go federatedName legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: crypto/rand Read of 8 bytes for an STS session name; console-side (MintSession), never run by root file:Read@68 2af5da8db9c9bf67847c4e429ab02ef9afcb02cf989c4a4d107313b2442a7ec6
+internal/release/consolefloor.go consoleFloorAdmits legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: only for a staged build whose Go program (read by D2, FileProgram) is the console: checks the deployment-bucket key control/console-floors/store-writers.json exists with a one-key bounded listing (ListPage, limit 1; List for a store without one), never reading its body (written create-only by the console; the bucket policy denies every principal its deletion or replacement; a forged one can only make boxes refuse pre-floor console builds) and scans the staged file at VersionPath for a fixed marker string; refuses on a read error; never opens, runs, queries or follows anything else registry:App@200,registry:Host@402,whole:Route@190 0344b6f1d4ec3b1f44e79250007268d457b06a33ffcfbfd55dd1666e0d6f4a44
+internal/release/consolefloor.go fileContains legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: reads the staged release file at a path adoptHost computes (VersionPath of the route's own account, version and app, the file D2 already parses with buildinfo) through safefile.OpenFile, read-only, in 1 MiB chunks, looking for a fixed byte string; returns a bool file:OpenFile@73,file:Read@259 09541764bc853a6d161835a4856313ef1d69f8877d1f31957783ecba137dee50
+store_credential.go runStoreCredential legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new CLI verb carlos store credential: flag parsing and console API calls as the invoking user; no root path file:Access@1714 9e34fb887f720eb7dce38984e7d2e2b41a8d8168ee1727fb40e88bebfd54a621
+internal/release/adopt.go adoptHost authority B3,E1,E2,E3,E4,J1 E16: root first-registration creation evidence under release exclusion; exact installation identity is required for first-program adoption and is consumed before an attempt. Installed-program history comes from the verified claim launch. Fixtures: TestPlan14FreshInstallRegistration, TestPlan14FreshInstallProgramGate, TestPlan14FreshInstallCanonicalIdentity, TestPlan14FreshInstallLaunchObservation, TestPlan14InstalledLaunchProgramEvidence, TestPlan14FreshInstallProcessCrash, TestPlan14FreshInstallVisibleSync, TestClaimControlUnitInstallers. E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=applies root settings to canonically resolved routes including named units while legacy settings eligibility remains unchanged;rev3=PROPOSED-p3;run=16;basis=P3-R11 approved punctuation edit only; authority and reads unchanged;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=a non-root agent pass hands a route its named unit serves (unitServed) to root through the stage relay before staging or repointing; root adopt reads unchanged;rev3=census-ruling-rootfs-apps-2;identity=the root adopt pass (carlos adopt, carlos-adopt.service, root);basis=the row's runtime (Runtime) rides on a copy of the stage check, so stageFrom stages only the kind the row runs (runtimeMatches) before any download, and the manifest the pass ends up holding is checked again; the artifact sha comes from Manifest.BoxArtifact (the rootfs key for an image); the new kind is registry:Runtime, two sites, and one more Host site in the refusal's line. A runtime the agent forges can make the pass refuse a release, and can also admit a rootfs release to staging for a row it marks rootfs. The evidence paths that can then hand back a staged identity, exhaustively: (1) the signed channel pointer with a manifest digest (ensureStagedDigest, then stageFrom: a fresh download or the staged copy reused); (2) a signed pointer with no digest (the digest marker off), through ensureStagedChecked: with the manifest fetched, stageFrom as in (1); with the fetch failing, a binary's sibling on disk is handed back as before, and a rootfs sibling is refused (controller ruling R-a, task 11 fix E5); (3) a signed promotion record's manifest digest (stageAuthorized, then ensureStagedDigest and stageFrom); (4) retained-copy recovery when (3) fails (stageAuthorized, RetainedStaged: the copy's bytes must hash to its sibling's digest). For a rootfs version every path that hands back an identity yields a sibling byte-equal to the manifest just authorised: stageFrom reads the sibling back after a fresh stage or a reuse and refuses otherwise; (2)'s fallback never yields one; recovery refuses a sibling whose bytes do not hash to the digest a readable record names (retainedRootfsAuthorised, task 11 fix E1), and with no record readable takes the copy root itself verified, as for a binary. Every path is for the row's own account and app. The held stage (materializeheld.go) and signedhead.go stage through ensureStagedDigest with a zero stage check (a binary row's), so they never stage a rootfs release, and their no-digest fallback refuses a rootfs sibling too;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: reuse the manifest verified by existing staging and signed selection; within withReleaseWork after history, proof and staging gates, seed or unseed the exec mode before PointLive (R24), under the same full-row compare and no ServingVersion/GoodVersion/running build guard. Version stamps staging and is not serving evidence. All existing root admission, credentials, quotas, proof, restart and rollback checks retained; no additional manifest or bucket read.;rev3=census-ruling-dr1-left-link;basis=the up-to-date return is skipped for an unstamped planned row (unstampedPlannedRow), which takes the existing install path with all its gates; on that repair (cur == ver) the D2 history is not seeded from the candidate path, the stamp keeps PrevVersion, and the refusal clear keeps the up-to-date rule. No new read kind;rev3=census-ruling-sr-followups;basis=#1061 Task 4, print only: on a repoint failure the "repoint failed" line is skipped when the stage relay below is about to run (cfg.stageBlocked set and stageBlocked(err)) and the caps were not converged, the relay condition is computed once into relay and reused, otherwise identical. cfg.stageBlocked is set only by the non-root agent passes (OnStageBlocked, user carlos), the root adopt pass (carlos adopt, carlos-adopt.service, root) has no relay and is unchanged, every line still printing. Same reads, guard (withReleaseWork), relay and rollback, no read, file, store, bucket or root call added;rev3=census-ruling-store-write-credential;basis=one more site: before D3's bindProof, consoleFloorAdmits (consolefloor.go) for the selected version's staged path and the D2 program it already read; it can only refuse (print, point nothing live, retry next pass), never admit or widen; same root identity, same staging, guard and rollback registry:App@11580,registry:App@11734,registry:App@13088,registry:App@14336,registry:App@15934,registry:App@21676,registry:App@27743,registry:App@3144,registry:App@35523,registry:App@6791,registry:App@8092,registry:App@8286,registry:Backing@21392,registry:GoodVersion@21431,registry:Hibernate@36996,registry:Host@10517,registry:Host@11460,registry:Host@11493,registry:Host@11593,registry:Host@11747,registry:Host@11843,registry:Host@11875,registry:Host@11940,registry:Host@12390,registry:Host@12730,registry:Host@12854,registry:Host@13301,registry:Host@13410,registry:Host@13612,registry:Host@14426,registry:Host@15212,registry:Host@15687,registry:Host@15920,registry:Host@16262,registry:Host@17144,registry:Host@20852,registry:Host@20960,registry:Host@2105,registry:Host@21644,registry:Host@22464,registry:Host@2294,registry:Host@23248,registry:Host@23675,registry:Host@23727,registry:Host@2375,registry:Host@23874,registry:Host@23961,registry:Host@25067,registry:Host@25311,registry:Host@25971,registry:Host@26356,registry:Host@26497,registry:Host@27711,registry:Host@27838,registry:Host@29180,registry:Host@29830,registry:Host@3157,registry:Host@33063,registry:Host@33681,registry:Host@34006,registry:Host@34080,registry:Host@34327,registry:Host@34478,registry:Host@35695,registry:Host@35980,registry:Host@36093,registry:Host@36531,registry:Host@36587,registry:Host@36691,registry:Host@36838,registry:Host@37697,registry:Host@37823,registry:Host@37911,registry:Host@4469,registry:Host@4616,registry:Host@5579,registry:Host@5684,registry:Host@6903,registry:Host@6951,registry:Host@7068,registry:Host@7100,registry:Host@7978,registry:Host@8146,registry:Host@8272,registry:Host@8391,registry:Host@8869,registry:Host@9256,registry:Host@9482,registry:Host@9578,registry:Host@9669,registry:Kind@21348,registry:Kind@554,registry:PrevVersion@35882,registry:Runtime@11244,registry:Runtime@12648,registry:ServingVersion@21455,registry:Socket@21373,registry:Stateless@21332,registry:Stateless@21583,registry:Tunnel@21412,registry:Unit@34226,registry:Unit@579,whole:Route@10106,whole:Route@10460,whole:Route@11575,whole:Route@11729,whole:Route@13078,whole:Route@14326,whole:Route@15902,whole:Route@16665,whole:Route@16714,whole:Route@17120,whole:Route@18320,whole:Route@18623,whole:Route@18779,whole:Route@21109,whole:Route@21253,whole:Route@21529,whole:Route@21666,whole:Route@2206,whole:Route@24796,whole:Route@25195,whole:Route@27733,whole:Route@3139,whole:Route@32634,whole:Route@35671,whole:Route@3595,whole:Route@4347,whole:Route@4587,whole:Route@6786 5b30e71d48c656d76e592d3fe67a8036edca501fb00f7b095f5ffd0ad64f02da
+@coverage . 4d9d53df9674b8f40239842aa51df4c0e63f0d517f4dc2b03224e590714124e4
+@coverage infra/modules/deployment-buckets e5df5b86a4159e619f4eaee9bc9c6aceff76aaaa88ef5f293cea2e4ffa709ebe
+@coverage infra/modules/deployment-buckets/tests e6d44047919b2a4b78077285eb8d84c8adecb2bbfdbbf80c9f5b71fe20366707
+@coverage infra/modules/region-host 31d9c2cda1bcf84a0492b682d9b181e92da4d7508e4011ffc11b4241b08ca622
+@coverage infra/modules/region-host/tests a3c3b3f0a056857f2f94588421f3cab3dd2c3088913bdecdc9838b0b3fc87e38
+@coverage internal/objstore 1e3c85d573a900e6efbb08cf447fd878d63ba0b9979f0994d1527a0350984c3f
+@coverage internal/release b137c5530137d70b492cf7dff768cfd7a1ca3523f3d9a28919e52f59e6d83c8a