carlos / platform Public

infra: Task 8 review fixes (Fable P2-1..P2-3, P3s)

P2-1: the mailer's send statement also grants
tenant/carlos-*/* in the mail region. The mailer passes TenantName for a
sender with a TenantARN, and the console's own policy grants its tenant
because SES checks it on a tenant-attributed send; AWS's service
reference lists only identity and configuration-set, and §9.0 never sent
with TenantName, so the runbook adds one tenant-attributed raw send
through this exact policy, to the mailbox simulator, before the first
switch-on. Both tests that pin the resource list are updated.

P2-2: TestMailerInfraGrantsOnlyTheUser pins the six resource strings
exactly, and refuses any other SES or deployment-bucket ARN in mailer.tf,
since CI does not run the tofu tests. Widening the sender pattern to the
whole bucket, or the SES region to *, now fails it.

P2-3: runbook section 4: neither region name may also exist in the
shared scope, since AssembleGroup's ErrConflict would stop every group
box in the region building host.env; with the check to run.

P3: mailer.tf notes IAM's * matches /; the runbook keeps the secret out
of scrollback (a shell variable and the clipboard); the README, the test
file and the runbook say the module tests need Terraform 1.14.

Census: the mailer.tf claim updated, overlay re-proposed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 903aa0127d249787314874bd495962cfb15ef9f8 parent 7497c57
9 files changed, +125 −28
  • docs/mailer-runbook.md +68 −13
  • docs/superpowers/notes/census-claims-platform-mail-submission.tsv +1 −1
  • docs/superpowers/notes/census-proposal-platform-mail-submission.md +1 −1
  • infra/modules/region-host/README.md +5 −3
  • infra/modules/region-host/mailer.tf +14 −1
  • infra/modules/region-host/tests/mailer.tftest.hcl +5 −2
  • internal/awsmanaged/mailer_infra_test.go +24 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv +6 −6

CI failed — run details

diff --git a/docs/mailer-runbook.md b/docs/mailer-runbook.md
index 8ac70cd16..3a4bf53ad 100644
--- a/docs/mailer-runbook.md
+++ b/docs/mailer-runbook.md
@@ -61,7 +61,8 @@ In the deployment's infrastructure repository (the flagship's is
It should add, per region: `aws_iam_user.mailer` (`carlos-mailer-<region>`,
path `/carlos-mailer/`) and `aws_iam_user_policy.mailer` with exactly two
statements (three with a KMS key): `ses:SendRawEmail` on
- `identity/*` and `configuration-set/carlos-*` in `ses_region`, and
+ `identity/*`, `configuration-set/carlos-*` and `tenant/carlos-*/*` in
+ `ses_region`, and
`s3:GetObject` on `apps/*/*/email/senders/*`, `apps/*/*/instances/*` and
`accounts/*/email/domains/*` in the deployment bucket. On a group region it
also adds two String parameters, `/carlos/<deployment>/<region>/CARLOS_MAIL_REGION`
@@ -75,16 +76,22 @@ tofu output mailer_user_name # carlos-mailer-<region>
## 2. Create the access key
-Still under the approval, from your own terminal:
+Still under the approval, from your own terminal. Do not let the secret land
+in your scrollback: capture it into a shell variable, and copy it to the
+clipboard for the paste in step 3 rather than printing it:
```sh
-aws iam create-access-key --user-name carlos-mailer-<region> \
- --query 'AccessKey.[AccessKeyId,SecretAccessKey,CreateDate]' --output text
+KEYLINE=$(aws iam create-access-key --user-name carlos-mailer-<region> \
+ --query 'AccessKey.[AccessKeyId,SecretAccessKey,CreateDate]' --output text)
+printf '%s\n' "$KEYLINE" | pbcopy # macOS; xclip -selection clipboard on Linux
+echo "${KEYLINE%% *}" # the key id only
```
-That prints `<key id> <secret> <created>`. Keep it in your terminal only: never
-in a file in a repository, an SSM parameter, the bucket, `user_data`, a ticket
-or a chat. You paste it into each box in step 3, then let it go.
+`KEYLINE` is `<key id> <secret> <created>`, tab-separated, which the key file
+accepts. Keep it in that shell only: never in a file in a repository, an SSM
+parameter, the bucket, `user_data`, a ticket or a chat. Paste it into each
+box in step 3, then `unset KEYLINE` and clear the clipboard. If you print it
+instead, clear the terminal's scrollback afterwards.
The key file holds one line per key:
@@ -97,6 +104,31 @@ user); the mailer signs with the one whose `created` is newest.
## 3. Arm each box that hosts the apps' routes
+**Before the first switch-on, prove a tenant-attributed send.** AWS's
+service reference lists only identity and configuration-set as resources of
+`ses:SendRawEmail`, the policy also grants `tenant/carlos-*/*` (as the
+console's own does), and §9.0's spike never sent with `TenantName`. So, under
+the same approval, send one message through this exact policy, with this
+key, from a sender whose record has a `TenantARN`, to the SES mailbox
+simulator:
+
+```sh
+AWS_ACCESS_KEY_ID=<key id> AWS_SECRET_ACCESS_KEY=<secret> AWS_REGION=<ses region> \
+aws sesv2 send-email \
+ --from-email-address <from>@<a domain verified in ses_region> \
+ --destination ToAddresses=success@simulator.amazonses.com \
+ --content 'Raw={Data='"$(printf 'From: <from>@<domain>\r\nTo: success@simulator.amazonses.com\r\nSubject: mailer tenant check\r\n\r\nok\r\n' | base64)"'}' \
+ --configuration-set-name carlos-<acct> \
+ --tenant-name carlos-<acct> \
+ --email-tags Name=account,Value=<acct> Name=app,Value=<app> Name=sender,Value=app
+```
+
+It must answer a `MessageId`. An `AccessDenied` naming a tenant ARN means
+the policy's tenant resource is wrong; one naming nothing else means the
+policy needs another resource. Fix the module and re-apply before any
+switch-on; do not widen the policy by hand. Use the key from a shell
+variable as in step 2, not typed, so it stays out of history.
+
Fixed boxes, and every current group box.
1. Open an **interactive** Session Manager shell, not Run Command: a Run
@@ -151,6 +183,20 @@ region with `carlos system host-env seed`: the module owns those two
parameters, and a seed would overwrite them as SecureStrings and fight the
next `tofu apply`.
+**Neither name may also exist in the shared scope**
+(`/carlos/<deployment>/shared/`). The module writes them per region, and
+`host-env write --group` (`hostenv.AssembleGroup`) refuses a name present in
+both scopes with `ErrConflict`, which stops **every** group box in the
+region building its `host.env`, so none of them boots. Check before the
+apply and after any seed:
+
+```sh
+aws ssm get-parameters-by-path --path /carlos/<deployment>/shared \
+ --query "Parameters[?ends_with(Name, '/CARLOS_MAIL_REGION') || ends_with(Name, '/CARLOS_DEPLOYMENT_REGION')].Name"
+```
+
+It must print an empty list.
+
## 5. Rotation
IAM allows two keys per user, and the mailer reads both and signs with the
@@ -223,9 +269,18 @@ rule rather than state it: that is on the plan's follow-up list.
- No `ses:TenantName` condition yet: added only once the tenant association
backfill (spec §9 item 3) has landed, because before it an untenanted send
would be refused.
-- **No `tenant/*` resource.** The console's own send policy grants
- `tenant/carlos-bab/*` because SES checks the tenant on a tenant-attributed
- send. The mailer passes `TenantName` for a sender with a `TenantARN`, so
- until the policy grants `tenant/carlos-*/*` such a sender's sends are
- likely refused (`503 MAILER_UNAVAILABLE`). Check before switching on an app
- whose sender has a `TenantARN`.
+- The tenant resource is `tenant/carlos-*/*`, every CARLOS account's tenant
+ in the account: the mailer passes `TenantName` for a sender with a
+ `TenantARN`, and SES checks the tenant on such a send (the console's own
+ policy grants its tenant for the same reason). It grants nothing beyond
+ `SendRawEmail`. Step 3 tests it before the first switch-on.
+
+## Testing the module
+
+The module's plan-only tests (`tests/mailer.tftest.hcl`,
+`tests/mailer_group.tftest.hcl`) run with Terraform 1.14:
+`terraform init -backend=false && terraform test -filter=tests/mailer.tftest.hcl
+-filter=tests/mailer_group.tftest.hcl`. OpenTofu 1.12.3 refuses the keyed
+`override_data` targets the module's other test files use, and so fails the
+whole directory. CI does not run these; `TestMailerInfraGrantsOnlyTheUser`
+(`internal/awsmanaged`) pins the policy's resources in the Go gate.
diff --git a/docs/superpowers/notes/census-claims-platform-mail-submission.tsv b/docs/superpowers/notes/census-claims-platform-mail-submission.tsv
index d8a38d1b1..138e282f8 100644
--- a/docs/superpowers/notes/census-claims-platform-mail-submission.tsv
+++ b/docs/superpowers/notes/census-claims-platform-mail-submission.tsv
@@ -50,7 +50,7 @@ internal/mailer/keys.go:loadKeys Task 5, new: reads /etc/carlos-mailer/keys (a c
internal/mailer/keys.go:KeyFile.Changed Task 5, new: a stat of the same constant key path, compared with the loaded file's mtime, size and inode, so a rotation reloads with no restart. carlos-mailer only.
#
# Task 8 (infra: the mailer's IAM user and policy, the group region parameters).
-infra/modules/region-host/mailer.tf:external Task 8, new: with var.mailer set (default null: nothing), aws_iam_user.mailer carlos-mailer-<region> at path /carlos-mailer/ (precondition: ses_account_id is the module's own account) and aws_iam_user_policy.mailer with ses:SendRawEmail on identity/* and configuration-set/carlos-* in ses_region, and s3:GetObject on apps/*/*/email/senders/*, apps/*/*/instances/* and accounts/*/email/domains/* (plus kms:Decrypt via S3 only when a bucket KMS key is given). No s3:ListBucket, no write, no IAM action, no access key resource (the key never enters state). The host role gains nothing. In group mode two String region parameters, CARLOS_MAIL_REGION and CARLOS_DEPLOYMENT_REGION, under the region's existing /carlos/<deployment>/<region>/ path, which host-env write --group already reads and validates against hostenv's allowlist. References no sibling script; nothing a box's root runs or reads beyond those two plain values.
+infra/modules/region-host/mailer.tf:external Task 8, new: with var.mailer set (default null: nothing), aws_iam_user.mailer carlos-mailer-<region> at path /carlos-mailer/ (precondition: ses_account_id is the module's own account) and aws_iam_user_policy.mailer with ses:SendRawEmail on identity/*, configuration-set/carlos-* and tenant/carlos-*/* in ses_region (the tenant per Task 8 review P2-1, as the console's own policy grants its tenant), and s3:GetObject on apps/*/*/email/senders/*, apps/*/*/instances/* and accounts/*/email/domains/* (plus kms:Decrypt via S3 only when a bucket KMS key is given). No s3:ListBucket, no write, no IAM action, no access key resource (the key never enters state). The host role gains nothing. In group mode two String region parameters, CARLOS_MAIL_REGION and CARLOS_DEPLOYMENT_REGION, under the region's existing /carlos/<deployment>/<region>/ path, which host-env write --group already reads and validates against hostenv's allowlist. References no sibling script; nothing a box's root runs or reads beyond those two plain values.
infra/modules/region-host/variables.tf:external 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).
infra/modules/region-host/outputs.tf:external Task 8: output "mailer_user_name", the user's name or null. Read-only.
infra/modules/region-host/tests/mailer.tftest.hcl:external Task 8, new: plan-only runs under mock_provider: off by default; the user's name and path; the policy's two statements exactly; no ListBucket, Put, delete, SendEmail, IAM or wildcard action; KMS adds decrypt through S3 only; another account refused; a bad region refused; the host role gains no SES. Test-only.
diff --git a/docs/superpowers/notes/census-proposal-platform-mail-submission.md b/docs/superpowers/notes/census-proposal-platform-mail-submission.md
index 8dc5f0592..d299b2583 100644
--- a/docs/superpowers/notes/census-proposal-platform-mail-submission.md
+++ b/docs/superpowers/notes/census-proposal-platform-mail-submission.md
@@ -79,6 +79,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/mailsubmit/forward.go:SocketForwarder.Send`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
- new `internal/mailsubmit/verb.go:Mount`: reads +registry:App, +registry:Host, +whole:Route; written legacy, accepted-legacy, frozen
-Seal: `07b748a749084fdaf61c5087a6edfca8a79273962822ce551dd4d42b0d20c063` → `cbec0f013ddb418a2bb7dafb8d540d28cfd41670e02e26d52bd56821bf13edda`.
+Seal: `07b748a749084fdaf61c5087a6edfca8a79273962822ce551dd4d42b0d20c063` → `c915bf95eacc847237f7f61d7564358d2f0013b6cc5be3eb36b6ee3e6e537677`.
Overlay: `internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/infra/modules/region-host/README.md b/infra/modules/region-host/README.md
index c2de81cc6..43e788b06 100644
--- a/infra/modules/region-host/README.md
+++ b/infra/modules/region-host/README.md
@@ -180,8 +180,8 @@ mailer = {
}
```
-The user's inline policy grants `ses:SendRawEmail` on `identity/*` and
-`configuration-set/carlos-*` in `ses_region`, and `s3:GetObject` on the
+The user's inline policy grants `ses:SendRawEmail` on `identity/*`,
+`configuration-set/carlos-*` and `tenant/carlos-*/*` in `ses_region`, and `s3:GetObject` on the
sender, instance and domain records of the deployment bucket. Nothing else:
no `s3:ListBucket`, no write, no IAM. With `deployment_bucket_kms_key_arn` set
it adds `kms:Decrypt` on that key, through S3 in the bucket's region only.
@@ -195,7 +195,9 @@ The module creates **no access key**, and must never: the key would sit in
tofu state. The operator creates it and arms each box by hand, and no other
user or role in the account may be named `carlos-mailer-*`. Both are in
`docs/mailer-runbook.md` in the platform repository. `mailer_user_name` is
-the user to create the key for.
+the user to create the key for. Its tests (`tests/mailer*.tftest.hcl`) need
+Terraform 1.14: OpenTofu 1.12.3 refuses the keyed `override_data` targets
+this directory's other tests use.
## Attended group maintenance
diff --git a/infra/modules/region-host/mailer.tf b/infra/modules/region-host/mailer.tf
index cba67b21d..b5a5e02f0 100644
--- a/infra/modules/region-host/mailer.tf
+++ b/infra/modules/region-host/mailer.tf
@@ -48,19 +48,32 @@ resource "aws_iam_user_policy" "mailer" {
# StringLike carlos-* condition is added only once the tenant
# association backfill (spec §9 item 3) has landed, because before
# it an untenanted send would be refused.
+ #
+ # The tenant resource (review P2-1): the mailer passes TenantName for
+ # a sender with a TenantARN, and the console's own send policy grants
+ # its tenant because SES checks it on a tenant-attributed send. AWS's
+ # service reference lists only identity and configuration-set for
+ # SendRawEmail, and §9.0 never sent with TenantName, so the runbook
+ # tests one such send through this policy before the first
+ # switch-on. It grants nothing beyond SendRawEmail.
Sid = "MailerSendRaw"
Effect = "Allow"
Action = ["ses:SendRawEmail"]
Resource = [
"arn:aws:ses:${var.mailer.ses_region}:${var.mailer.ses_account_id}:identity/*",
"arn:aws:ses:${var.mailer.ses_region}:${var.mailer.ses_account_id}:configuration-set/carlos-*",
+ "arn:aws:ses:${var.mailer.ses_region}:${var.mailer.ses_account_id}:tenant/carlos-*/*",
]
},
{
# The three record classes the mailer reads, by key. No
# s3:ListBucket (plan round 1 P2-4): a missing object answers 403
# AccessDenied, which the mailer reads as absent, and absent always
- # refuses. No write of any kind.
+ # refuses. No write of any kind. IAM's `*` also matches `/` (as
+ # main.tf's analytics prune notes), so these patterns reach any key
+ # with those segments at any depth below apps/ or accounts/; every
+ # key there is a CARLOS record the mailer may read, and it refuses a
+ # record body that disagrees with its key.
Sid = "MailerReadRecords"
Effect = "Allow"
Action = ["s3:GetObject"]
diff --git a/infra/modules/region-host/tests/mailer.tftest.hcl b/infra/modules/region-host/tests/mailer.tftest.hcl
index c92a8ea62..12098d3c4 100644
--- a/infra/modules/region-host/tests/mailer.tftest.hcl
+++ b/infra/modules/region-host/tests/mailer.tftest.hcl
@@ -1,6 +1,8 @@
# Plan-time tests for the box-local mailer's IAM user (platform mail
# submission plan, Task 8). mock_provider: no AWS account, no credentials.
-# These assert what the module WOULD create.
+# These assert what the module WOULD create. Run them with Terraform 1.14
+# (`terraform test`): OpenTofu 1.12.3 refuses the keyed override_data
+# targets the module's other test files use, and fails the whole directory.
mock_provider "aws" {}
override_data {
@@ -76,8 +78,9 @@ run "mailer_on" {
condition = jsondecode(aws_iam_user_policy.mailer[0].policy).Statement[0].Action == ["ses:SendRawEmail"] && toset(jsondecode(aws_iam_user_policy.mailer[0].policy).Statement[0].Resource) == toset([
"arn:aws:ses:eu-west-1:271376211898:identity/*",
"arn:aws:ses:eu-west-1:271376211898:configuration-set/carlos-*",
+ "arn:aws:ses:eu-west-1:271376211898:tenant/carlos-*/*",
])
- error_message = "statement 1 is ses:SendRawEmail only, on identity/* and configuration-set/carlos-* in the mail region"
+ error_message = "statement 1 is ses:SendRawEmail only, on identity/*, configuration-set/carlos-* and tenant/carlos-*/* in the mail region"
}
assert {
condition = !can(jsondecode(aws_iam_user_policy.mailer[0].policy).Statement[0].Condition)
diff --git a/internal/awsmanaged/mailer_infra_test.go b/internal/awsmanaged/mailer_infra_test.go
index 0873d5c5f..7ad3c6694 100644
--- a/internal/awsmanaged/mailer_infra_test.go
+++ b/internal/awsmanaged/mailer_infra_test.go
@@ -4,6 +4,7 @@ import (
"os"
"path/filepath"
"regexp"
+ "slices"
"strings"
"testing"
)
@@ -51,6 +52,29 @@ func TestMailerInfraGrantsOnlyTheUser(t *testing.T) {
t.Errorf("mailer.tf lacks %s", want)
}
}
+ // The resource strings, exactly (review P2-2): CI does not run the
+ // module's tofu tests, so a widened pattern (the whole bucket, any
+ // region) must fail here. Every quoted ARN in the file must be one
+ // of these, and each must be present.
+ resources := []string{
+ `"arn:aws:ses:${var.mailer.ses_region}:${var.mailer.ses_account_id}:identity/*"`,
+ `"arn:aws:ses:${var.mailer.ses_region}:${var.mailer.ses_account_id}:configuration-set/carlos-*"`,
+ `"arn:aws:ses:${var.mailer.ses_region}:${var.mailer.ses_account_id}:tenant/carlos-*/*"`,
+ `"${var.deployment_bucket_arn}/apps/*/*/email/senders/*"`,
+ `"${var.deployment_bucket_arn}/apps/*/*/instances/*"`,
+ `"${var.deployment_bucket_arn}/accounts/*/email/domains/*"`,
+ }
+ for _, r := range resources {
+ if strings.Count(src, r) != 1 {
+ t.Errorf("mailer.tf grants %s %d times, want once", r, strings.Count(src, r))
+ }
+ }
+ quoted := regexp.MustCompile(`"(arn:aws:ses:[^"]*|\$\{var\.deployment_bucket_arn\}[^"]*)"`)
+ for _, m := range quoted.FindAllString(src, -1) {
+ if !slices.Contains(resources, m) {
+ t.Errorf("mailer.tf grants an unpinned resource %s", m)
+ }
+ }
}
if !sawMailer {
t.Fatal("no mailer.tf in the module")
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 0585eb57e..684587263 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -204,4 +204,4 @@ plan14-root-reads-static-site-geo-962.tsv 5e8a72175700a3e60c1e283b133c1ee25e36f2
plan14-root-reads-member-backups-drill-nodb.tsv 07b748a749084fdaf61c5087a6edfca8a79273962822ce551dd4d42b0d20c063
plan14-root-reads-spread-every-schedule-ticks.tsv 07b748a749084fdaf61c5087a6edfca8a79273962822ce551dd4d42b0d20c063
plan14-root-reads-member-backups-2b.tsv 07b748a749084fdaf61c5087a6edfca8a79273962822ce551dd4d42b0d20c063
-plan14-root-reads-platform-mail-submission.tsv cbec0f013ddb418a2bb7dafb8d540d28cfd41670e02e26d52bd56821bf13edda
+plan14-root-reads-platform-mail-submission.tsv c915bf95eacc847237f7f61d7564358d2f0013b6cc5be3eb36b6ee3e6e537677
diff --git a/internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv b/internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv
index 94a07a82d..564acf24b 100644
--- a/internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv
+++ b/internal/provision/testdata/plan14-root-reads-platform-mail-submission.tsv
@@ -19,8 +19,8 @@
@legacy 0a4d139cf9839189f90e09f4c57e29ddacc5eb320287a237770a080167db91df internal/host/units/carlos-instance-tty@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5, new: the binary tty template, carlos-instance-cmd@.service outside six named lines held by TestTTYTemplateEqualsCmdOutsideTheNamedLines: Description (tty), ExecStart/ExecStopPost instance-exec/instance-exit tty %I (the same root binary as every template), StandardInput=file:/run/carlos/logs/%I.tty.sock replacing the cmd StandardOutput socket (PID 1 opens it as root on the nosymfollow logs mount, as the cmd streams), StandardOutput=journal, StandardError=journal, and BindReadOnlyPaths sources tty-app/tty-live under /run/carlos-control/exe/%I (root-only exe layout, as cmd-app/cmd-live). Same namespace block byte for byte, runs as carlos. Task 6: POST /tty (handleOneShot(RoleTTY), claimAwareLegacy) starts it, after the role lock, the loaded-state refusal and refuseStagedExe; the tty-app/tty-live sources are laid out by ensureCmdExeAt(RoleTTY) and removed by removeCmdExe(RoleTTY) at /stop role=tty and /sweep;rev3=census-ruling-instance-syscall-filter;basis=the tenant syscall filter (#527 Q5): three [Service] lines after SystemCallArchitectures=native (SystemCallFilter=@system-service; SystemCallFilter=~@keyring io_uring_setup io_uring_enter io_uring_register userfaultfd; SystemCallErrorNumber=ENOSYS), applied by PID 1 as a seccomp filter on the unit's own process as carlos; no bind source, Exec line, user, mount or path read by root added, with its comment, inside the shared namespace block (byte-identical across the binary templates);rev3=census-ruling-w6-ingress-drain;basis=adds Before=carlos-edge-drain.service (with a comment). Ordering only; no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: InaccessiblePaths= gains -/run/carlos-mailer -/etc/carlos-mailer (optional). Only hides more; no read added. file:external@0 a316b14b25091ff3ed3dc2186378cc0b88bc23471d6ad45ede8302f278668034
@legacy 1d51de12094b335de855b3620973b88ae3938185b243b820641dbd5adf48a875 internal/host/units/carlos-instance@.service external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5: one namespace-block line added after TemporaryFileSystem=/dev/mqueue:ro, TemporaryFileSystem=/dev/pts:ro (with its comment): PID 1 mounts an empty read-only tmpfs over the private /dev/pts, hiding the host devpts PrivateDevices= binds in; no bind source, Exec line, user or path read by root added; the block stays byte-identical across the binary templates (TestInstanceTemplatesShareOneNamespace);rev3=census-ruling-instance-syscall-filter;basis=the tenant syscall filter (#527 Q5): three [Service] lines after SystemCallArchitectures=native (SystemCallFilter=@system-service; SystemCallFilter=~@keyring io_uring_setup io_uring_enter io_uring_register userfaultfd; SystemCallErrorNumber=ENOSYS), applied by PID 1 as a seccomp filter on the unit's own process as carlos; no bind source, Exec line, user, mount or path read by root added, with its comment, inside the shared namespace block (byte-identical across the binary templates);rev3=census-ruling-instance-stop-execstop-528;basis=one line added after ExecStart=, ExecStop=-+/opt/carlos/carlos instance-stop $MAINPID (#528, Paul's option 2), plus TimeoutStopFailureMode=kill after TimeoutStopSec=20: PID 1 runs the platform binary's instance-stop as root (the + prefix) at a stop with $MAINPID, a value systemd supplies; instance-stop reads only that argument, /proc/self/cgroup and /proc/<MAINPID>/cgroup (kernel-written), and acts only through a pidfd on the unit's own main process (refused unless in the unit's own cgroup); no bind source, user, mount or tenant-writable path read added;rev3=census-ruling-w6-ingress-drain;basis=adds Before=carlos-edge-drain.service (with a comment). Ordering only; no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: InaccessiblePaths= gains -/run/carlos-mailer -/etc/carlos-mailer (optional). Only hides more; no read added. file:external@0 348dd223f7f1bcd8cb2db90c7acb25f4cf3e9b29568c0b4b63ce13d6d1ab3af9
@legacy 5a4d8a4a9ea0e00aa0186c84c18f49f5ae434c340651f4bbe636d3311cf39dfd internal/status/snapshot.go CollectBox legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-alerts-1;basis=copies Probes.DiskFullETAHours into BoxMetrics.DiskFullETAHours (json disk_full_eta_hours, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-edge-held-streams;basis=copies Probes.HeldStreams into BoxMetrics.HeldStreams (json held_streams, omitempty, additive) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: carry already-supplied ReplicaCopies into a separate optional private BoxMetrics replica_copies field; allow copy evidence alone to create the metrics block. Upstreams retains address probes only. Existing 28 Route read sites unchanged; no filesystem, bucket, console or CLI read.;rev3=census-ruling-agent-start-demo-3;basis=Report claim-seed protocol capability only when explicitly configured and runtime moved readiness only when armed; dormant status keeps its original JSON shape. Census read-site delta: unchanged (28).;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 (#511 R16 and its amendment): copies Probes.PrevRelease and Probes.ApplyFinished into BoxMetrics (json prev_release and apply_finished, omitempty; private, like Release) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: copies Probes.MailerArmed into BoxMetrics.MailerArmed (json mailer_armed, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added. registry:Alias@4543,registry:CertExpiresAt@3160,registry:CertExpiresAt@3396,registry:CertExpiresAt@4658,registry:DBPath@2495,registry:DBPath@2553,registry:DNSCheckedAt@3365,registry:DNSCheckedAt@4627,registry:DNSStatus@3139,registry:DNSStatus@3334,registry:DNSStatus@4597,registry:Hibernate@3853,registry:Host@2295,registry:Host@2437,registry:Host@2666,registry:Host@3280,registry:Host@3315,registry:Host@4578,registry:Kind@2473,registry:Kind@3807,registry:Platform@2152,registry:ServingVersion@2324,registry:ServingVersion@2447,registry:Socket@4066,registry:Version@2186,registry:Version@2305,whole:Route@1581,whole:RouteAlias@4440 b2a6b68d0c028970efee40812263bf1e4a6214b90c568d8275deb81b61ff1e66
-@legacy 7dd2ac1e8007cd5670495d4fe0268fdff6abd3b3ec6a25de497181558a470992 infra/modules/region-host/mailer.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: with var.mailer set (default null: nothing), aws_iam_user.mailer carlos-mailer-<region> at path /carlos-mailer/ (precondition: ses_account_id is the module's own account) and aws_iam_user_policy.mailer with ses:SendRawEmail on identity/* and configuration-set/carlos-* in ses_region, and s3:GetObject on apps/*/*/email/senders/*, apps/*/*/instances/* and accounts/*/email/domains/* (plus kms:Decrypt via S3 only when a bucket KMS key is given). No s3:ListBucket, no write, no IAM action, no access key resource (the key never enters state). The host role gains nothing. In group mode two String region parameters, CARLOS_MAIL_REGION and CARLOS_DEPLOYMENT_REGION, under the region's existing /carlos/<deployment>/<region>/ path, which host-env write --group already reads and validates against hostenv's allowlist. References no sibling script; nothing a box's root runs or reads beyond those two plain values. file:external@0 6c125b6d72321a058bdb99de2401a394f07d7ce415fe833f36356c26fbaacae2
-@legacy 27c4785ed8816a60169e5b6247891f48fef431874e177ff3b85f3962bedebb3b infra/modules/region-host/tests/mailer.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: plan-only runs under mock_provider: off by default; the user's name and path; the policy's two statements exactly; no ListBucket, Put, delete, SendEmail, IAM or wildcard action; KMS adds decrypt through S3 only; another account refused; a bad region refused; the host role gains no SES. Test-only. file:external@0 057b2449a3da8a5883b782d9d4ba0e12c17b2fa227e0b22c2f34bd3b34a7de2e
+@legacy 683a26c2185a385d210ce4b376f13740422e0e405a09e402953a0457ca608508 infra/modules/region-host/mailer.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: with var.mailer set (default null: nothing), aws_iam_user.mailer carlos-mailer-<region> at path /carlos-mailer/ (precondition: ses_account_id is the module's own account) and aws_iam_user_policy.mailer with ses:SendRawEmail on identity/*, configuration-set/carlos-* and tenant/carlos-*/* in ses_region (the tenant per Task 8 review P2-1, as the console's own policy grants its tenant), and s3:GetObject on apps/*/*/email/senders/*, apps/*/*/instances/* and accounts/*/email/domains/* (plus kms:Decrypt via S3 only when a bucket KMS key is given). No s3:ListBucket, no write, no IAM action, no access key resource (the key never enters state). The host role gains nothing. In group mode two String region parameters, CARLOS_MAIL_REGION and CARLOS_DEPLOYMENT_REGION, under the region's existing /carlos/<deployment>/<region>/ path, which host-env write --group already reads and validates against hostenv's allowlist. References no sibling script; nothing a box's root runs or reads beyond those two plain values. file:external@0 a48c782bf4f63f5121c6ccae7d19793f0af4c9f9856127319f6bb9014357890f
+@legacy 1dfce6c598f867f9f8e3251758ab91e9a1d16656d9831806b5fab5b8c5421952 infra/modules/region-host/tests/mailer.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: plan-only runs under mock_provider: off by default; the user's name and path; the policy's two statements exactly; no ListBucket, Put, delete, SendEmail, IAM or wildcard action; KMS adds decrypt through S3 only; another account refused; a bad region refused; the host role gains no SES. Test-only. file:external@0 d8f1e5acb446a2e33848958b3ea036ab81c1f17565ab8df5409883b0afb39164
@legacy e22f1e9844d61fe949ab40748b17135bde43efa378e310b484c471ffbce7eed9 infra/modules/region-host/tests/mailer_group.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: plan-only runs under mock_provider with group.tftest.hcl's fixtures (plus an AMI override): the two region parameters' names and values with mailer set, none without. Test-only. file:external@0 c36b70fc72d0b317db438c66a7e669a49a92ddce904ae8307f3503031c53f73f
@legacy 5cd628b73d71ab551cb5451e3b7ca0cfa184638efa4b210e2dbef51e32c30b91 internal/activator/backend_exec.go ExecBackend.controlMount legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 4, new: the one composer of a control socket's verbs, for both bind sites. Mounts the schedule verbs and GET /updates exactly as the two inline copies did (same conditions, same host, token reader and write fence), and POST /v1/mail (mailsubmit.Mount) under its own condition, b.Mail != nil. Reads rt.Host and passes the route to Mount; returns nil when nothing is mounted. The agent (carlos-edge.service, user carlos), not root. registry:Host@292,registry:Host@347,registry:Host@426,whole:Route@515 827650c1147231c19b6da7e41f3fc97fa4c28e3eda76961dfa788bc9c25f536e
@legacy bce32b49d764738f9b80e81a4b6473b446149bb1e62062886297d1431cc4cc4e internal/activator/backend_exec.go ExecBackend.mailSubmits legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 4, new: the CARLOS_MAIL rule. Reads rt.App, rt.Host, rt.Provisioned and RouteAccount(rt) from the agent's own registry row, and asks b.MailSwitch (the agent's cache of the console-written app sender record, internal/host/mailswitch.go: one bounded Get of apps/<acct>/<app>/email/senders/app.json through the agent's deploy store). Logs once per host at error level for an unprovisioned route of a switched app. Agent, not root; no file read. registry:App@213,registry:App@526,registry:Host@317,registry:Host@511,registry:Provisioned@246,whole:Route@185 cfd7494b38dc64c2710233dbc2da850eb7b89fc9aecfa648cd7affd5e9a354d0
@@ -59,8 +59,8 @@ internal/host/units/carlos-instance-sidecar@.service external legacy accepted-le
internal/host/units/carlos-instance-tty@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5, new: the binary tty template, carlos-instance-cmd@.service outside six named lines held by TestTTYTemplateEqualsCmdOutsideTheNamedLines: Description (tty), ExecStart/ExecStopPost instance-exec/instance-exit tty %I (the same root binary as every template), StandardInput=file:/run/carlos/logs/%I.tty.sock replacing the cmd StandardOutput socket (PID 1 opens it as root on the nosymfollow logs mount, as the cmd streams), StandardOutput=journal, StandardError=journal, and BindReadOnlyPaths sources tty-app/tty-live under /run/carlos-control/exe/%I (root-only exe layout, as cmd-app/cmd-live). Same namespace block byte for byte, runs as carlos. Task 6: POST /tty (handleOneShot(RoleTTY), claimAwareLegacy) starts it, after the role lock, the loaded-state refusal and refuseStagedExe; the tty-app/tty-live sources are laid out by ensureCmdExeAt(RoleTTY) and removed by removeCmdExe(RoleTTY) at /stop role=tty and /sweep;rev3=census-ruling-instance-syscall-filter;basis=the tenant syscall filter (#527 Q5): three [Service] lines after SystemCallArchitectures=native (SystemCallFilter=@system-service; SystemCallFilter=~@keyring io_uring_setup io_uring_enter io_uring_register userfaultfd; SystemCallErrorNumber=ENOSYS), applied by PID 1 as a seccomp filter on the unit's own process as carlos; no bind source, Exec line, user, mount or path read by root added, with its comment, inside the shared namespace block (byte-identical across the binary templates);rev3=census-ruling-w6-ingress-drain;basis=adds Before=carlos-edge-drain.service (with a comment). Ordering only; no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: InaccessiblePaths= gains -/run/carlos-mailer -/etc/carlos-mailer (optional). Only hides more; no read added. file:external@0 a316b14b25091ff3ed3dc2186378cc0b88bc23471d6ad45ede8302f278668034
internal/host/units/carlos-instance@.service external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 5: one namespace-block line added after TemporaryFileSystem=/dev/mqueue:ro, TemporaryFileSystem=/dev/pts:ro (with its comment): PID 1 mounts an empty read-only tmpfs over the private /dev/pts, hiding the host devpts PrivateDevices= binds in; no bind source, Exec line, user or path read by root added; the block stays byte-identical across the binary templates (TestInstanceTemplatesShareOneNamespace);rev3=census-ruling-instance-syscall-filter;basis=the tenant syscall filter (#527 Q5): three [Service] lines after SystemCallArchitectures=native (SystemCallFilter=@system-service; SystemCallFilter=~@keyring io_uring_setup io_uring_enter io_uring_register userfaultfd; SystemCallErrorNumber=ENOSYS), applied by PID 1 as a seccomp filter on the unit's own process as carlos; no bind source, Exec line, user, mount or path read by root added, with its comment, inside the shared namespace block (byte-identical across the binary templates);rev3=census-ruling-instance-stop-execstop-528;basis=one line added after ExecStart=, ExecStop=-+/opt/carlos/carlos instance-stop $MAINPID (#528, Paul's option 2), plus TimeoutStopFailureMode=kill after TimeoutStopSec=20: PID 1 runs the platform binary's instance-stop as root (the + prefix) at a stop with $MAINPID, a value systemd supplies; instance-stop reads only that argument, /proc/self/cgroup and /proc/<MAINPID>/cgroup (kernel-written), and acts only through a pidfd on the unit's own main process (refused unless in the unit's own cgroup); no bind source, user, mount or tenant-writable path read added;rev3=census-ruling-w6-ingress-drain;basis=adds Before=carlos-edge-drain.service (with a comment). Ordering only; no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: InaccessiblePaths= gains -/run/carlos-mailer -/etc/carlos-mailer (optional). Only hides more; no read added. file:external@0 348dd223f7f1bcd8cb2db90c7acb25f4cf3e9b29568c0b4b63ce13d6d1ab3af9
internal/status/snapshot.go CollectBox legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-2;basis=copies Probes.RootfsReady and RootfsBlocked into BoxMetrics (private, like Layout); the same 28 sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 11 and #329 plan 3 Task 7: copies Probes.Egress and Probes.SizeCommittedMiB into BoxMetrics (private, like Layout) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate count is left as is (display);rev3=census-ruling-regional-domains-447;basis=#447 Task 7: copies Probes.AliasesRead into BoxMetrics.AliasesRead (json aliases_read, omitempty) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-fleet-alerts-1;basis=copies Probes.DiskFullETAHours into BoxMetrics.DiskFullETAHours (json disk_full_eta_hours, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added;rev3=census-ruling-edge-held-streams;basis=copies Probes.HeldStreams into BoxMetrics.HeldStreams (json held_streams, omitempty, additive) and counts it in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-stateless-replicas-3;basis=Fix round 1 Q20: carry already-supplied ReplicaCopies into a separate optional private BoxMetrics replica_copies field; allow copy evidence alone to create the metrics block. Upstreams retains address probes only. Existing 28 Route read sites unchanged; no filesystem, bucket, console or CLI read.;rev3=census-ruling-agent-start-demo-3;basis=Report claim-seed protocol capability only when explicitly configured and runtime moved readiness only when armed; dormant status keeps its original JSON shape. Census read-site delta: unchanged (28).;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 (#511 R16 and its amendment): copies Probes.PrevRelease and Probes.ApplyFinished into BoxMetrics (json prev_release and apply_finished, omitempty; private, like Release) and counts them in the condition that builds Metrics; the same 28 sites, no read added.;rev3=census-ruling-platform-mail-submission;basis=Task 3: copies Probes.MailerArmed into BoxMetrics.MailerArmed (json mailer_armed, omitempty; private, like Layout) and counts it in the condition that builds Metrics; the same 28 sites, no read added. registry:Alias@4543,registry:CertExpiresAt@3160,registry:CertExpiresAt@3396,registry:CertExpiresAt@4658,registry:DBPath@2495,registry:DBPath@2553,registry:DNSCheckedAt@3365,registry:DNSCheckedAt@4627,registry:DNSStatus@3139,registry:DNSStatus@3334,registry:DNSStatus@4597,registry:Hibernate@3853,registry:Host@2295,registry:Host@2437,registry:Host@2666,registry:Host@3280,registry:Host@3315,registry:Host@4578,registry:Kind@2473,registry:Kind@3807,registry:Platform@2152,registry:ServingVersion@2324,registry:ServingVersion@2447,registry:Socket@4066,registry:Version@2186,registry:Version@2305,whole:Route@1581,whole:RouteAlias@4440 b2a6b68d0c028970efee40812263bf1e4a6214b90c568d8275deb81b61ff1e66
-infra/modules/region-host/mailer.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: with var.mailer set (default null: nothing), aws_iam_user.mailer carlos-mailer-<region> at path /carlos-mailer/ (precondition: ses_account_id is the module's own account) and aws_iam_user_policy.mailer with ses:SendRawEmail on identity/* and configuration-set/carlos-* in ses_region, and s3:GetObject on apps/*/*/email/senders/*, apps/*/*/instances/* and accounts/*/email/domains/* (plus kms:Decrypt via S3 only when a bucket KMS key is given). No s3:ListBucket, no write, no IAM action, no access key resource (the key never enters state). The host role gains nothing. In group mode two String region parameters, CARLOS_MAIL_REGION and CARLOS_DEPLOYMENT_REGION, under the region's existing /carlos/<deployment>/<region>/ path, which host-env write --group already reads and validates against hostenv's allowlist. References no sibling script; nothing a box's root runs or reads beyond those two plain values. file:external@0 6c125b6d72321a058bdb99de2401a394f07d7ce415fe833f36356c26fbaacae2
-infra/modules/region-host/tests/mailer.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: plan-only runs under mock_provider: off by default; the user's name and path; the policy's two statements exactly; no ListBucket, Put, delete, SendEmail, IAM or wildcard action; KMS adds decrypt through S3 only; another account refused; a bad region refused; the host role gains no SES. Test-only. file:external@0 057b2449a3da8a5883b782d9d4ba0e12c17b2fa227e0b22c2f34bd3b34a7de2e
+infra/modules/region-host/mailer.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: with var.mailer set (default null: nothing), aws_iam_user.mailer carlos-mailer-<region> at path /carlos-mailer/ (precondition: ses_account_id is the module's own account) and aws_iam_user_policy.mailer with ses:SendRawEmail on identity/*, configuration-set/carlos-* and tenant/carlos-*/* in ses_region (the tenant per Task 8 review P2-1, as the console's own policy grants its tenant), and s3:GetObject on apps/*/*/email/senders/*, apps/*/*/instances/* and accounts/*/email/domains/* (plus kms:Decrypt via S3 only when a bucket KMS key is given). No s3:ListBucket, no write, no IAM action, no access key resource (the key never enters state). The host role gains nothing. In group mode two String region parameters, CARLOS_MAIL_REGION and CARLOS_DEPLOYMENT_REGION, under the region's existing /carlos/<deployment>/<region>/ path, which host-env write --group already reads and validates against hostenv's allowlist. References no sibling script; nothing a box's root runs or reads beyond those two plain values. file:external@0 a48c782bf4f63f5121c6ccae7d19793f0af4c9f9856127319f6bb9014357890f
+infra/modules/region-host/tests/mailer.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: plan-only runs under mock_provider: off by default; the user's name and path; the policy's two statements exactly; no ListBucket, Put, delete, SendEmail, IAM or wildcard action; KMS adds decrypt through S3 only; another account refused; a bad region refused; the host role gains no SES. Test-only. file:external@0 d8f1e5acb446a2e33848958b3ea036ab81c1f17565ab8df5409883b0afb39164
infra/modules/region-host/tests/mailer_group.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 8, new: plan-only runs under mock_provider with group.tftest.hcl's fixtures (plus an AMI override): the two region parameters' names and values with mailer set, none without. Test-only. file:external@0 c36b70fc72d0b317db438c66a7e669a49a92ddce904ae8307f3503031c53f73f
internal/activator/backend_exec.go ExecBackend.controlMount legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 4, new: the one composer of a control socket's verbs, for both bind sites. Mounts the schedule verbs and GET /updates exactly as the two inline copies did (same conditions, same host, token reader and write fence), and POST /v1/mail (mailsubmit.Mount) under its own condition, b.Mail != nil. Reads rt.Host and passes the route to Mount; returns nil when nothing is mounted. The agent (carlos-edge.service, user carlos), not root. registry:Host@292,registry:Host@347,registry:Host@426,whole:Route@515 827650c1147231c19b6da7e41f3fc97fa4c28e3eda76961dfa788bc9c25f536e
internal/activator/backend_exec.go ExecBackend.mailSubmits legacy accepted-legacy accepted-legacy;rev3=census-ruling-platform-mail-submission;basis=Task 4, new: the CARLOS_MAIL rule. Reads rt.App, rt.Host, rt.Provisioned and RouteAccount(rt) from the agent's own registry row, and asks b.MailSwitch (the agent's cache of the console-written app sender record, internal/host/mailswitch.go: one bounded Get of apps/<acct>/<app>/email/senders/app.json through the agent's deploy store). Logs once per host at error level for an unprovisioned route of a switched app. Agent, not root; no file read. registry:App@213,registry:App@526,registry:Host@317,registry:Host@511,registry:Provisioned@246,whole:Route@185 cfd7494b38dc64c2710233dbc2da850eb7b89fc9aecfa648cd7affd5e9a354d0
@@ -79,8 +79,8 @@ internal/activator/backend_exec.go ExecBackend.agentOwnedVars legacy accepted-le
internal/activator/backend_exec.go ExecBackend.spawnChildFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos (the flat start body): the same change as seedChild: ensureAdminTokenFor(ctx, rt, paths) for the token (the same flat path), the key's producer carrying the HA mint decision, and launchEnvLayer(ctx, rt) for the env and key layer the replica gate reads; a non-HA host's token, key and env are produced and read as before; +whole:Route; only adds refusals for HA hosts;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=the control listener is now built with the whole route (edge.ListenControl(controlSocket, rt, ...)), the +whole:Route site; it computes the launch inputs once from the build it execs by path (a staged exe's caller-named build, or the gate-resolved pinned version; "" for an unpinned live link) and fileEnv it already read, keeps them on the childProc, and for a live-link spawn publishes them to the in-memory cache (NoteProcessInputs) beside the existing purge; no new file read;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source. Merge2 e8a1ddde: retain main build parameter, pinned live identity, launchInputs from captured build/environment, and current-process input publication. edge.ListenControl now receives the whole Route as main requires (+whole:Route); no new filesystem or storage input. Branch sandboxLaunch remains before preparation and spawn; existing direct primitive gate unchanged.;rev3=census-ruling-security-review-mitigations;basis=Enforce the unchanged never-served resident refusal once at the shared flat/foreign primary binary spawn sink, before placement, live-link/token/env/control preparation or execution. Covers plain, generation and staged Service wakes; existing served/explicit-flat exemptions and other gates retained. No new filesystem/store source.;rev3=census-ruling-platform-mail-submission;basis=Task 4: the inline mount (Timers, UpdatesReader) is replaced by b.controlMount(rt, tokenReader, n): the same verbs under the same conditions, plus the mail verb when b.Mail is set. The three rt.Host reads move into controlMount; the route is passed whole. Agent, not root; nothing else changes. file:Command@11030,registry:Host@12313,registry:Host@12674,registry:Host@12768,registry:Host@258,registry:Host@4236,registry:Stateless@10961,whole:Route@10853,whole:Route@11002,whole:Route@11410,whole:Route@13065,whole:Route@13157,whole:Route@1527,whole:Route@189,whole:Route@1944,whole:Route@2305,whole:Route@287,whole:Route@4091,whole:Route@4119,whole:Route@4430,whole:Route@476,whole:Route@6501,whole:Route@8766 dacd2d37b38491f11ba1be34795d5fe40915aa044d6732ccf2bae467c733f80e
internal/activator/prepare.go ExecBackend.listenControl legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-page-cache-1;basis=passes the whole route to edge.ListenControl instead of rt.Host (the -registry:Host +whole:Route change); nothing else;rev3=census-ruling-platform-mail-submission;basis=Task 4: the same replacement as spawnChildFrom, with gen as the write fence's generation, so the nested and rootfs listener mounts exactly what the flat one does. Agent, not root. registry:Host@508,whole:Route@361,whole:Route@389 f6534861cdbeef80dbcfaf6b07df685e4ac2f2a86650db54f174871526a50aff
@coverage . 0fbf394b006de2e22e2236a2f0b29bfa959412ddb04068a7c67000d1021e1b06
-@coverage infra/modules/region-host 4823934495827cea60e94da67efac04e8f587ccdbd44aa3b502d0a8bef4bce27
-@coverage infra/modules/region-host/tests 9b7fb791859eb447bc8a6aba08f92cc8ddf9e71972cff7e8fe5e3407f5f881b4
+@coverage infra/modules/region-host d1a978ca67367880d0940ae7aa460f311addd4335c196a279d86caa6fe1e1721
+@coverage infra/modules/region-host/tests 1aa5c549b79e7d8b19a266a2aeae8e4e2bb22b40072f36362da95bcf2c439a07
@coverage internal/activator 2fe6860f1b7ef4f5644e17f59fe3cf75759ec2ffe597994c1478edd0512cbc38
@coverage internal/host 0a61b32acb9b181dcc50356db2370ebabe81a66e12096a07526764d0216c792e
@coverage internal/host/demo_units 3a34238356068c6176879f3ee189c81af8e08bfcc0246c5feba80d7169f7af6a