carlos / platform Public

Re-propose P3b-2 census after the return-hook cut

The operator policy output drops CompleteLifecycleAction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 623126dc9119f3b2086aa92234f751182e6c0383 parent e38fbb9
3 files changed, +8 −8
  • docs/superpowers/notes/census-proposal-region-ha-p3b2.md +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-p3b2.tsv +6 −6

Intent

Human

<task-notification> <task-id>b41u9nw4e</task-id> <tool-use-id>toolu_014BAB3HFv7i7QZtkztLDtc6</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/e47280e8-3e59-4dc1-95d2-11de7237d34c/tasks/b41u9nw4e.output</output-file> <status>completed</status> <summary>Background command ".superpowers/sdd/2026-11-04-region-ha-p3b-group/run-astra.sh cut" completed (exit code 0)</summary> </task-notification>

diff --git a/docs/superpowers/notes/census-proposal-region-ha-p3b2.md b/docs/superpowers/notes/census-proposal-region-ha-p3b2.md
index 62092083b..e441b10e6 100644
--- a/docs/superpowers/notes/census-proposal-region-ha-p3b2.md
+++ b/docs/superpowers/notes/census-proposal-region-ha-p3b2.md
@@ -44,6 +44,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/host/group_maintenance_verbs_linux.go:replaceMaintenancePermit`: reads +file:Openat2, +file:Read; written legacy, accepted-legacy, frozen
- quiet `internal/host/group_maintenance.go:systemApplier.requireGroupMaintenance`: reads nothing now; retired while it reads nothing (or its row keeps no sites)
-Seal: `1daafee8030f9d370adf5541b5e87313523073c4afdc022d4238c3a7bc1a60ba` → `3dc0ae0c747b7e631ac6fd43899bb05842b10273ed4d48bb7c02f7c99615dd3f`.
+Seal: `1daafee8030f9d370adf5541b5e87313523073c4afdc022d4238c3a7bc1a60ba` → `1b5ef39b210f3c7db69e589da8a467ac4d4a4f218e1d97fb4706cd277a27eae1`.
Overlay: `internal/provision/testdata/plan14-root-reads-region-ha-p3b2.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index a4857c61e..ac4c915f6 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -93,4 +93,4 @@ plan14-root-reads-static-markdown-twins.tsv ec831d3206622f34511bfbc2ec0cccb131fb
plan14-root-reads-agent-start-demo-1-followups.tsv ec831d3206622f34511bfbc2ec0cccb131fbd3861ec4c6a33a2dc6dff9a1791e
plan14-root-reads-region-ha-p3b1-f4.tsv 71bbbf68863266ffab90211a00aff2f1b694bf39bb4bd62ea565c168ba884564
plan14-root-reads-agent-start-demo-2.tsv 1daafee8030f9d370adf5541b5e87313523073c4afdc022d4238c3a7bc1a60ba
-plan14-root-reads-region-ha-p3b2.tsv 3dc0ae0c747b7e631ac6fd43899bb05842b10273ed4d48bb7c02f7c99615dd3f
+plan14-root-reads-region-ha-p3b2.tsv 1b5ef39b210f3c7db69e589da8a467ac4d4a4f218e1d97fb4706cd277a27eae1
diff --git a/internal/provision/testdata/plan14-root-reads-region-ha-p3b2.tsv b/internal/provision/testdata/plan14-root-reads-region-ha-p3b2.tsv
index a6afc50f3..018d64848 100644
--- a/internal/provision/testdata/plan14-root-reads-region-ha-p3b2.tsv
+++ b/internal/provision/testdata/plan14-root-reads-region-ha-p3b2.tsv
@@ -4,8 +4,8 @@
@legacy b74af161130fabfd0fcd478c545f50b6ec6c12eb5a1ae040d1f9324978134930 infra/modules/region-host/group-init.sh.tftpl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=New root user-data boot: operator Terraform/SSM supply scoped bootstrap object version/hash, queue, reader inventory and ingress; hash-verified bootstrap verifies signed IMDS identity. Root exclusively writes /etc/carlos/group.json, group-identity.json, region-config.json and group-ingress.json with current kernel boot ID; public address comes from protected IMDSv2, not signed document or headers. Install IMDS denial, chrony, dormant hairpin fence and protected drop-ins before bootstrap/install/start. No agent receipt is read by root; restart authority is separate maintenance permit. F1: operator-seeded SSM boot/bootstrap-object requires floor=absent-expected or required beside key/version/known_readers/deployment_aws_region; root copies it into group.json before config_digest. Missing or invalid floor refuses before bootstrap fetch; Terraform only names this SSM key and does not write the object. Agent and instance-control gain AF_NETLINK in their address-family allowlists, with no CAP_NET_ADMIN grant.;rev3=census-ruling-region-ha-p3b1-f4;basis=Move bootstrap and chrony staging to root:root 0700 /var/lib/carlos-group-boot through the existing O_NOFOLLOW walker; refuse unsafe preexisting directory. Bootstrap 0700; retain initial hash verification and rehash against a root-only captured SSM digest immediately before all three execs; named noexec refusal. Root reads only its own helper/hash and verified binary; no tenant/app/agent writable input or authority added. Final removal preserved. Round 5 adds /etc/sysctl.d to the same root-owned, non-writable, O_NOFOLLOW directory walker before its existing exclusive sysctl file write; missing directory is created, unsafe ancestors refuse. Round 6 scopes umask 022 to the verified host-env install exec in a subshell; its bootstrap/install-channel children create traversable install directories and readable unit files, matching fixed boxes. Parent umask remains 077; verify-identity is read-only and hairpin install creates only 0700/0600 private state. Explicitly chmod the freshly created instance-control drop-in directory 0755. host.env remains explicitly chmodded 0600 in unchanged released Go. No new input/read or write authority; all verification and directory trust checks remain.;rev3=census-ruling-region-ha-p3b2;basis=Group boot installs and enables amazon-ssm-agent from the regional AWS bucket (scanner/pdf pattern) after the IMDS fence, apt masks, Restart=no drop-in and protected staging, before chrony and any bootstrap fetch/exec; a failed install exits under set -eu before edge start (initial hook keeps its 900 s ABANDON). No new root read of a tenant/app/agent-writable path; bootstrap digest checks unchanged. file:external@0 5523079bb5f48e46bb0442589bf3e32d8809cec50ba396cd830744a27cb36dcd
@legacy 472d0958cbbbe67b05f37fffa787efc044f65f8844a456b8f4ca76db78b1d54d infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add mock regression for the unchanged fixed instance/profile/SG/root-volume wiring and legacy outputs; no root runtime reads.;rev3=census-ruling-region-ha-p3b;basis=Update fixed mock assertions for counted addresses and deterministic region while retaining fixed resource settings. Test-only Terraform input, never executed by root on a box.;rev3=census-ruling-region-ha-p3b2;basis=Test-only: asserts the new group_operator_policy_json output is empty in fixed mode. No runtime reads. file:external@0 25100c697e19ba06cc200d87f3c645ea1b5fad7f8b76a52baae4a3893db14f89
@legacy 74743df740a1391f0b0789e0758b290d91b172e99cb4c62a5b00dfc1ac092e27 infra/modules/region-host/tests/group_user_data.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b1-fixes;basis=Add mock plans with the saved real dev inputs, exact gzip/templatefile equality and 13107-byte limit, plus an existing release input inflated to prove the launch precondition refuses oversize data. Test-only Terraform; no runtime reads. Round 1 adds comments explaining that OpenTofu expect_failures selects the launch-template resource, not either individual precondition; test behavior unchanged.;rev3=census-ruling-region-ha-p3b2;basis=Test-only: asserts the rendered group user data installs and enables the SSM agent in order. No runtime reads. file:external@0 00ac4ad75fa9e5ef1fe45ef2ff92dab1ab3cc7c389f6b3805b1d6bcea316b1af
-@legacy a728a416b1fa53d397c9e31c7683a05479270a5248204a6573b84e13555770bf infra/modules/region-host/group_operator.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=New output only (no resource): IAM policy JSON for the attended roll operator (UpdateASG/EnterStandby/ExitStandby/CompleteLifecycleAction on the exact group ARN+tags, describes, StartSession on group-tagged instances with one approved document, own-session Terminate/Resume, OpenDataChannel, s3:GetObject on control/edges/*). Never read or executed by root on a box. file:external@0 b538fbe81e51e89ed33752f57743d801944c7944a2430e627179a7cd9448e843
-@legacy 6cb712690b8fac8ea3674f7faf8595ae38ebfaed0a033941ce7724be90317543 infra/modules/region-host/tests/group_operator.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Test-only mock assertions of the exact operator policy set and document precondition. No runtime reads. file:external@0 339e10f55fd0c2c912fd29fca029e88de2cef9e24019834affc9e687bd9c4801
+@legacy c7f2007528d6586fe6d811daf7988f73d85a8a1b55970dfec00108adc20d3ee2 infra/modules/region-host/group_operator.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=New output only (no resource): IAM policy JSON for the attended roll operator. UpdateASG/EnterStandby/ExitStandby on the exact group ARN+tags (CompleteLifecycleAction removed per Paul 2026-11-05: the tool never completes lifecycle actions), describes, StartSession on group-tagged instances with one approved document, own-session Terminate/Resume, OpenDataChannel, s3:GetObject on control/edges/*. Never read or executed by root on a box. file:external@0 7ca75e0002a34b39e6ba6f55f7bd53b06c73c9633586f8596ea8904cfb73b4f4
+@legacy 45db3329045337147df0711eeecec97879ec1e96951cd229824410a3d2cb622a infra/modules/region-host/tests/group_operator.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Test-only mock assertions of the exact operator policy set and document precondition. No runtime reads. file:external@0 c23087ee1cfdbd332975bcb406706ca77439eb92e5487bc6ead8e56ae0e47d48
@legacy 2764e24f2a8b1285f611942e365a034a73ff273d66d5b2839c703a26eda67563 internal/host/group_maintenance.go systemApplier.maintenanceUnconsumed legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=The guard's existing used-<tx>-<action> Lstat moved verbatim out of requireGroupMaintenance so the permit writer shares it; same root-owned 0700 directory. file:Lstat@141 7fea484460d41555b2b9ced36a455571ecbe22af944837840b2d081af9064616
@legacy 1ca0c04b4afdc3a121069ec046824a5c0a550772bd912ce0332bdbb90dfb1eb0 internal/host/group_maintenance_clock.go maintenanceReadProc legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Reads fixed kernel paths /proc/stat (btime), /proc/self/auxv (AT_CLKTCK) and /proc/<edge pid>/stat for status edge.started_at; observational only. file:Open@80,file:ReadAll@160 f4a59cb75453af6dd40930c7dc24c1bedeef85b6c892993af95260a42e42639e
@legacy 0d9c7a99f37d068f9dca3b59e4529685399613741667e6b93ecf4e7062647e73 internal/host/group_maintenance_prepare.go sweepMaintenancePreparation legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Lists root's own apply directory under the apply lock to remove stale .prepare-<uint32> scratch it created; skips symlinks; no agent-writable path. file:ReadDir@71 ba02dc10a5fb838a36fce101056e870a0d85bfa267870175e6e6a733546e6197
@@ -24,8 +24,8 @@ internal/host/systemapply.go systemApplier.Run authority D,F,J4 rev3=PROPOSED-cl
internal/host/systemapply.go systemApplier.runWithRelease authority D,F,J4 rev3=PROPOSED-p3;run=15;identity=root update/recovery uid 0;basis=retained floor identity permits restricted acquisition recovery; participating execution holds release exclusion; no-census effect is main Run directly;rev3=census-ruling-region-ha-p3b2;basis=Internal helper extracted for the release wrapper shared by Run and the group verbs; no read added. 586fed35d40a5d3df935f4e5c2c2a9393680975aa4064fa6ea54a14c5bd0a199
system.go runSystem authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops the claims case (host.RunSystemClaims, deleted); every other branch unchanged; no read added;rev3=census-ruling-nearest-region-a;basis=adds the hosts-used family to the system dispatch (carlos system hosts-used status, one GET of a console door as the operator); every existing command branch unchanged; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops the "join" case (host.RunSystemJoin, deleted with internal/host/joinroot.go, its only caller) and its line in the usage text; every other branch unchanged; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the system verb dispatch gains named-units, routed to host.RunSystemNamedUnits; no read of its own;rev3=census-ruling-design-pdf-service;basis=add dispatch for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Adds managed-fleets operator CLI dispatch; no direct read added; existing root command branches unchanged.;rev3=census-ruling-agent-start-demo-2;basis=system.go:62-66 adds the demos family dispatch to the console-only operator client (system_demos.go:19, system_demos_api.go:23); no direct read added and other root commands are unchanged.;rev3=census-ruling-region-ha-p3b2;basis=Dispatches carlos system group-maintenance {status|permit|revoke|prepare|apply|rollback} to internal/host; no read of its own. 2bc7c7e9526cf17de237a185defc5c0aecadacf6fb6aa1af3f43c145b3ec71b0
system.go systemVerb authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops "claims" from the verb list, so it now falls to the unknown-verb message; no read added;rev3=census-ruling-nearest-region-a;basis=adds "hosts-used" to the verb list, routed to runSystemHostsUsedVerb; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops "join" from the verb list, so `carlos system join` now falls to the unknown-verb message; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the known-verb list gains named-units; no read of its own;rev3=census-ruling-design-pdf-service;basis=add recognition for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Recognizes managed-fleets as a CLI family; no read added.;rev3=census-ruling-agent-start-demo-2;basis=system.go:43-57 recognizes demos; parsing only, no direct read added.;rev3=census-ruling-region-ha-p3b2;basis=Recognizes group-maintenance as a system verb; parsing only. c553d228e53518585ae7fca5980e9a9feb2d13959d00d244fed761de85bcad70
-infra/modules/region-host/group_operator.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=New output only (no resource): IAM policy JSON for the attended roll operator (UpdateASG/EnterStandby/ExitStandby/CompleteLifecycleAction on the exact group ARN+tags, describes, StartSession on group-tagged instances with one approved document, own-session Terminate/Resume, OpenDataChannel, s3:GetObject on control/edges/*). Never read or executed by root on a box. file:external@0 b538fbe81e51e89ed33752f57743d801944c7944a2430e627179a7cd9448e843
-infra/modules/region-host/tests/group_operator.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Test-only mock assertions of the exact operator policy set and document precondition. No runtime reads. file:external@0 339e10f55fd0c2c912fd29fca029e88de2cef9e24019834affc9e687bd9c4801
+infra/modules/region-host/group_operator.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=New output only (no resource): IAM policy JSON for the attended roll operator. UpdateASG/EnterStandby/ExitStandby on the exact group ARN+tags (CompleteLifecycleAction removed per Paul 2026-11-05: the tool never completes lifecycle actions), describes, StartSession on group-tagged instances with one approved document, own-session Terminate/Resume, OpenDataChannel, s3:GetObject on control/edges/*. Never read or executed by root on a box. file:external@0 7ca75e0002a34b39e6ba6f55f7bd53b06c73c9633586f8596ea8904cfb73b4f4
+infra/modules/region-host/tests/group_operator.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Test-only mock assertions of the exact operator policy set and document precondition. No runtime reads. file:external@0 c23087ee1cfdbd332975bcb406706ca77439eb92e5487bc6ead8e56ae0e47d48
internal/host/group_maintenance.go systemApplier.maintenanceUnconsumed legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=The guard's existing used-<tx>-<action> Lstat moved verbatim out of requireGroupMaintenance so the permit writer shares it; same root-owned 0700 directory. file:Lstat@141 7fea484460d41555b2b9ced36a455571ecbe22af944837840b2d081af9064616
internal/host/group_maintenance_clock.go maintenanceReadProc legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Reads fixed kernel paths /proc/stat (btime), /proc/self/auxv (AT_CLKTCK) and /proc/<edge pid>/stat for status edge.started_at; observational only. file:Open@80,file:ReadAll@160 f4a59cb75453af6dd40930c7dc24c1bedeef85b6c892993af95260a42e42639e
internal/host/group_maintenance_prepare.go sweepMaintenancePreparation legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Lists root's own apply directory under the apply lock to remove stale .prepare-<uint32> scratch it created; skips symlinks; no agent-writable path. file:ReadDir@71 ba02dc10a5fb838a36fce101056e870a0d85bfa267870175e6e6a733546e6197
@@ -39,6 +39,6 @@ internal/host/group_maintenance_verbs_linux.go replaceMaintenancePermit legacy a
@remove internal/host/group_maintenance.go systemApplier.requireGroupMaintenance
@removed internal/host/group_maintenance.go systemApplier.requireGroupMaintenance H3 census-ruling-region-ha-p3b2;basis=Its field checks, artifact check and used-marker Lstat moved verbatim into validateMaintenancePermit / validateMaintenanceArtifact / maintenanceUnconsumed (shared with the permit writer); acceptance, order and errors unchanged; it now reads nothing directly.
@coverage . 4fb8f09da2bf4cbc701f049ea47d2d6fc3e7a045b1c869d938dd4c4216de183c
-@coverage infra/modules/region-host 22808206d904c1f402dea8515f5aafcc3d1d1eb966d65188df4c0ddb0640578c
-@coverage infra/modules/region-host/tests b5fb37fea582e28b204fd233d5b35a3e8839aafe64bf3bcb9ad677b9d08cc8e2
+@coverage infra/modules/region-host 2620a08b6d27984923c39383ec0e0904f4e6e3158efdbeac271a34102cf57ecd
+@coverage infra/modules/region-host/tests c09ade29dece44b7a20b602abfd53c3a0e4bc1ae5d5f79efbfcb6c56a24f2c81
@coverage internal/host a2b161cc27eedecc823db97bfe8670c8916d08e2aacdfb50af6ffebe0fce7599