Merge origin/main into stateless-coordinator-route
Resolve the sole census-chain conflict by keeping main's order and appending this branch's overlay. Re-seal against main's last overlay. Old seal: b129397d033dff1da950da3c6879132d003191c81d282de250ff72dff7444020 New seal: 7974cb078e82272605cbc8ef6809c9ae5e0b02edc22ca843cd2ef4b38d9e44e9
Co-Authored-By: Codex (gpt-6-astra) <noreply@openai.com>
README.md+2 −0cmd/console/member.go+31 −1cmd/console/member_demo_test.go+131 −0docs/superpowers/notes/census-claims-stateless-coordinator-route.tsv+1 −1docs/superpowers/notes/census-proposal-region-ha-p3a.md+111 −0docs/superpowers/notes/census-proposal-stateless-coordinator-route.md+4 −4docs/superpowers/notes/census-region-ha-p3a-claims.tsv+60 −0docs/superpowers/plans/2026-11-01-region-ha-p3-group.md+405 −0docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3-R1.md+80 −0docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3-R2.md+104 −0docs/superpowers/plans/REVIEW-REGION-HA-P3-R1.md+107 −0docs/superpowers/plans/REVIEW-REGION-HA-P3-R2.md+118 −0docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P3A-BRANCH.md+61 −0docs/superpowers/reviews/REVIEW-REGION-HA-P3A-BRANCH-R1.md+177 −0docs/superpowers/specs/LUNA-COPY-RESULT-DEMO-HOLDING.md+20 −0infra/modules/region-host/group_alarms.tf+24 −0infra/modules/region-host/ingress/alarms.tf+89 −0infra/modules/region-host/ingress/main.tf+127 −0infra/modules/region-host/ingress/outputs.tf+19 −0infra/modules/region-host/ingress/tests/fixed-targets/main.tf+33 −0infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hcl+61 −0infra/modules/region-host/ingress/tests/fixed-targets/variables.tf+56 −0infra/modules/region-host/ingress/tests/fixed-targets/versions.tf+9 −0infra/modules/region-host/ingress/tests/group_ingress.tftest.hcl+282 −0infra/modules/region-host/ingress/variables.tf+79 −0infra/modules/region-host/ingress/versions.tf+9 −0infra/modules/region-host/tests/fixed_state_unchanged.tftest.hcl+97 −0infra/modules/region-host/tests/group_alarms.tftest.hcl+106 −0internal/activator/activator.go+57 −2internal/activator/backend_exec.go+28 −0internal/activator/backend_rootfs.go+2 −0internal/activator/claimwake.go+1 −1internal/activator/cmd.go+3 −0internal/activator/cmdunit.go+7 −0internal/activator/containment.go+1 −0internal/activator/genbackend.go+4 −1internal/activator/genservice.go+6 −0internal/activator/group_admission.go+80 −0internal/activator/group_admission_test.go+138 −0internal/activator/hawake.go+3 −0internal/activator/rootfsworkers.go+2 −2internal/activator/swapadmit.go+1 −1internal/activator/wakeplan.go+1 −1internal/activator/workerbuild.go+3 −0internal/boxroles/roles.go+136 −0internal/boxroles/roles_test.go+82 −0internal/console/apiplacements.go+1 −1internal/console/boxroles_test.go+48 −0internal/console/demo_members.go+131 −0internal/console/instancesplacement.go+4 −1internal/console/member_demo_test.go+300 −0internal/edge/admission_exact_test.go+126 −0internal/edge/admission_export_test.go+112 −0internal/edge/boxroles_test.go+62 −0internal/edge/edge.go+19 −2internal/edge/group_admission.go+52 −0internal/edge/group_admission_external_test.go+50 −0internal/edge/homemap.go+10 −4internal/edge/lbhealth.go+10 −0internal/edge/wakeplacement.go+1 −1internal/edge/wakeplacement_test.go+6 −1internal/edgesfile/admission.go+27 −0internal/edgesfile/admission_test.go+45 −0internal/edgesfile/edgesfile.go+1 −0internal/edgesfile/homeelect.go+3 −2internal/edgesfile/snapshot.go+2 −1internal/groupadmission/observation.go+10 −0internal/groupadmission/state.go+101 −0internal/groupadmission/state_test.go+141 −0internal/host/agent.go+29 −11internal/host/booting_publication_test.go+128 −0internal/host/boxroles.go+148 −0internal/host/boxroles_config.go+39 −0internal/host/boxroles_config_linux.go+32 −0internal/host/boxroles_config_other.go+9 −0internal/host/boxroles_config_test.go+55 −0internal/host/boxroles_test.go+559 −0internal/host/edgesfile.go+31 −10internal/host/group_admission.go+246 −0internal/host/group_admission_fix_test.go+300 −0internal/host/group_admission_test.go+362 −0internal/host/group_metrics.go+128 −0internal/host/group_metrics_test.go+234 −0internal/host/memwatch.go+25 −4internal/host/schedule_wiring.go+17 −6internal/host/startup_largebox_linux_test.go+12 −2internal/hostenv/boxroles_test.go+9 −0internal/hostenv/hostenv.go+2 −0internal/provision/testdata/plan14-root-reads-chain.tsv+2 −1internal/provision/testdata/plan14-root-reads-region-ha-p3a.tsv+128 −0internal/provision/testdata/plan14-root-reads-stateless-coordinator-route.tsv+6 −5internal/release/boxroles_test.go+11 −0internal/release/changeindex.go+1 −1scripts/check-region-group-plan.py+425 −0scripts/check_region_group_plan_test.py+390 −0scripts/group_alarm_plan_test.py+72 −0scripts/testdata/region-group-plan/fixed-eip-reassociation.json+25 −0scripts/testdata/region-group-plan/fixed-identities.json+74 −0scripts/testdata/region-group-plan/fixed-identity-probes.json+191 −0scripts/testdata/region-group-plan/new-ingress.json+26 −0scripts/testdata/region-group-plan/regional-alarms.json+477 −0scripts/testdata/region-group-plan/targeted-fixed-user-data.json+41 −0scripts/testdata/region-group-plan/unchanged-move.json+26 −0
CI passed — run details
Intent
<task-notification> <task-id>b0k1qlx2y</task-id> <tool-use-id>toolu_01KwmHyepR6BkFcZwgfcVUuc</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/7c5a7d70-0e28-42b9-896c-5d73b2d2a05d/tasks/b0k1qlx2y.output</output-file> <status>completed</status> <summary>Background command "Wait for the coordinator-route fix round" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a0f77aab818303732</task-id> <tool-use-id>toolu_01Pr2pZWrDsG22eLbeeTX3k8</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/7c5a7d70-0e28-42b9-896c-5d73b2d2a05d/tasks/a0f77aab818303732.output</output-file> <status>completed</status> <summary>Agent "Re-review coordinator-route fix round" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>### Item verdicts - **(a) ADDRESSED.** `internal/host/replicacoordinator.go:100` now treats only these as `ErrConsoleUnreachable`: a status of 500 or higher, a response without `X-Carlos-Version`, or a transport error (line 97). A marked 404 falls through to `ErrFenced` (line 116). In the table test at `internal/host/replicacoordinator_test.go:564-565`, an unmarked "hub 404" gives unreachable and a marked "console 404" gives `ErrFenced`. The real-console test at `replicacoordinator_test.go:92-95` sends a wrong fleet token and asserts the marked 404 comes back `ErrFenced` and not unreachable. Marked 409 and the 429/408 transient cases are unchanged. - **(b) ADDRESSED.** `internal/edge/edge.go:1931` forwards only when all of these hold: the method is POST, `RawPath == ""`, `path.Clean(p) == p`, and the path has the `/api/fleet/replicas/` prefix. Anything else falls through to the hub branch as before. `internal/edge/replicaconsole_test.go:58-62` covers all five requested paths, each expecting a 404 and no console hit. The guard only narrows the old condition, so nothing that previously stayed on the hub is forwarded now. - **(c) ADDRESSED.** `SwapResult.Err` (`internal/activator/swap.go:74`) is set by `abandon`/`failSwap` (lines 116-121). Both classifications in `internal/rollout/scheduler.go:350` and `:426` use `errors.Is(res.Err, replicas.ErrConsoleUnreachable)`. `swap_error_test.go` proves two things: a wrapped sentinel survives, and an error with the same text but a different identity does not match. `status_test.go:375` now drives recovery with a wrapped cause. Status still emits the canonical text from typed state (`status.go:136-137`). - **(d) ADDRESSED.** SR-1-C14 is in `docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md:33`. It points at `internal/replicas/types.go`, where the literal is defined (line 44), with the text `console unreachable` and status "approved provisionally (controller ruling P25; for Paul's copy review)". It is in `statelessReplicaBuiltCopy`, so the built, applied and no-em-dash gates cover it. The deck has no em dashes (grep count 0). It still needs Paul's copy review before it counts as fully approved. ### New breakage in the fix diff None found. - Every `SwapResult` literal built in the scheduler (`scheduler.go:118/137/154/164/204`) leaves `Err` nil. None of them carried console-unreachable before (the reasons are fixed strings, or a staging `resolve` error), so moving off text matching loses no case. - Tenant-chosen text equal to "console unreachable" can no longer set the flag, which is a small improvement. - Wrapped causes, for example through `prepareStatelessEscrow`'s `refuse` wrapper, are now classified as intended. - I found no JSON or wire use of `SwapResult`, so the new interface field cannot break a serialised shape. ### Census | unit / envelope | change | verdict | |---|---|---| | `internal/edge/edge.go` `Edge.ServeHTTP` | body: a stricter guard before forwarding | Approve. It reads only the parsed request path. It is narrower than the approved P24 body, adds no read sites, and opens, runs, queries or follows nothing a tenant, app or box agent can name. | | `internal/rollout/scheduler.go` `scheduler.done` | body: `errors.Is` on an in-memory error | Approve. It adds no read sites and gets no new failure-book authority. Diagnostic text, which a tenant can influence, no longer grants the classification. | | envelope `internal/activator` (new) | `abandon`/`failSwap` keep the error; one struct field | Approve. Only an in-memory value is carried. There are no reads. | | envelopes `internal/edge`, `internal/host`, `internal/rollout` (re-pinned) | the changes above, plus the host fix for item (a) (status and header checks on a response) | Approve. No new reads. | | envelopes `.`, `internal/replicas` | unchanged pins | Approve. | | `internal/edge/replicaconsole.go` `Edge.serveReplicaConsole` | unchanged since the approved 7d072d77 (same fingerprint) | Approval stands. | On the chain: the branch's `plan14-root-reads-chain.tsv` equals origin/main's file (merge base f18da984) plus one final line for this overlay, after main's last `region-ha-followups` line. The seal moves from `cfb026f1…c387` to `b129397d033dff1da950da3c6879132d003191c81d282de250ff72dff7444020`. My focused run of `TestPlan14RootReadCensus$` passed. Census: APPROVED at 92b24a7d (seal `b129397d033dff1da950da3c6879132d003191c81d282de250ff72dff7444020`) I could not re-run the root-package copy tests myself. The test harness refuses a TMPDIR under home, and the sandbox makes `/tmp/g` read-only. I relied on the report's passing run and on reading the gate code, which does cover the new row. ### Verdict **Ready to merge?** Yes. All four P25 items are fixed and the census is approved; SR-1-C14 still waits on Paul's copy review.</result> <usage><subagent_tokens>71282</subagent_tokens><tool_uses>19</tool_uses><duration_ms>161209</duration_ms></usage> </task-notification>
<task-notification> <task-id>bf58xp5bc</task-id> <tool-use-id>toolu_01MXbJAhiV384Nkd3kJiRHA4</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/7c5a7d70-0e28-42b9-896c-5d73b2d2a05d/tasks/bf58xp5bc.output</output-file> <status>completed</status> <summary>Background command "Wait for CI on 92b24a7d" completed (exit code 0)</summary> </task-notification>
<paseo-system version="1" kind="agent-message" source-agent-id="335399d5-3ec5-4e92-ae37-08e6aaae74c8" message-id="1698aadc-81dd-4932-8ec1-d2dab447666d"> From Paul (2026-11-04 ~01:05Z, relayed by platform-83): 'Go.' Merge Plan 2 as you proposed. Right before merging, re-check that origin/main is still an ancestor of e9cd5fc7; if main moved, merge it in and wait for CI first. Then: amadan branch merge carlos/platform stateless-replicas-2-placement -squash -expect e9cd5fc752037804690ac8fa0a002b2a4252663f with a short subject and a body. Not released. Record the go as a ledger ruling, then carry on with the Plan 1 dev smoke (v0.34.0 is on dev since 21:06:21Z) and Plan 3. </paseo-system>
README.mdLoading diff…
cmd/console/member.goLoading diff…
cmd/console/member_demo_test.goLoading diff…
docs/superpowers/notes/census-claims-stateless-coordinator-route.tsvLoading diff…
docs/superpowers/notes/census-proposal-region-ha-p3a.mdLoading diff…
docs/superpowers/notes/census-proposal-stateless-coordinator-route.mdLoading diff…
docs/superpowers/notes/census-region-ha-p3a-claims.tsvLoading diff…
docs/superpowers/plans/2026-11-01-region-ha-p3-group.mdLoading diff…
docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3-R1.mdLoading diff…
docs/superpowers/plans/REVIEW-BRIEF-REGION-HA-P3-R2.mdLoading diff…
docs/superpowers/plans/REVIEW-REGION-HA-P3-R1.mdLoading diff…
docs/superpowers/plans/REVIEW-REGION-HA-P3-R2.mdLoading diff…
docs/superpowers/reviews/REVIEW-BRIEF-REGION-HA-P3A-BRANCH.mdLoading diff…
docs/superpowers/reviews/REVIEW-REGION-HA-P3A-BRANCH-R1.mdLoading diff…
docs/superpowers/specs/LUNA-COPY-RESULT-DEMO-HOLDING.mdLoading diff…
infra/modules/region-host/group_alarms.tfLoading diff…
infra/modules/region-host/ingress/alarms.tfLoading diff…
infra/modules/region-host/ingress/main.tfLoading diff…
infra/modules/region-host/ingress/outputs.tfLoading diff…
infra/modules/region-host/ingress/tests/fixed-targets/main.tfLoading diff…
infra/modules/region-host/ingress/tests/fixed-targets/tests/targets.tftest.hclLoading diff…
infra/modules/region-host/ingress/tests/fixed-targets/variables.tfLoading diff…
infra/modules/region-host/ingress/tests/fixed-targets/versions.tfLoading diff…
infra/modules/region-host/ingress/tests/group_ingress.tftest.hclLoading diff…
infra/modules/region-host/ingress/variables.tfLoading diff…
infra/modules/region-host/ingress/versions.tfLoading diff…
infra/modules/region-host/tests/fixed_state_unchanged.tftest.hclLoading diff…
infra/modules/region-host/tests/group_alarms.tftest.hclLoading diff…
internal/activator/activator.goLoading diff…
internal/activator/backend_exec.goLoading diff…
internal/activator/backend_rootfs.goLoading diff…
internal/activator/claimwake.goLoading diff…
internal/activator/cmd.goLoading diff…
internal/activator/cmdunit.goLoading diff…
internal/activator/containment.goLoading diff…
internal/activator/genbackend.goLoading diff…
internal/activator/genservice.goLoading diff…
internal/activator/group_admission.goLoading diff…
internal/activator/group_admission_test.goLoading diff…
internal/activator/hawake.goLoading diff…
internal/activator/rootfsworkers.goLoading diff…
internal/activator/swapadmit.goLoading diff…
internal/activator/wakeplan.goLoading diff…
internal/activator/workerbuild.goLoading diff…
internal/boxroles/roles.goLoading diff…
internal/boxroles/roles_test.goLoading diff…
internal/console/apiplacements.goLoading diff…
internal/console/boxroles_test.goLoading diff…
internal/console/demo_members.goLoading diff…
internal/console/instancesplacement.goLoading diff…
internal/console/member_demo_test.goLoading diff…
internal/edge/admission_exact_test.goLoading diff…
internal/edge/admission_export_test.goLoading diff…
internal/edge/boxroles_test.goLoading diff…
internal/edge/edge.goLoading diff…
internal/edge/group_admission.goLoading diff…
internal/edge/group_admission_external_test.goLoading diff…
internal/edge/homemap.goLoading diff…
internal/edge/lbhealth.goLoading diff…
internal/edge/wakeplacement.goLoading diff…
internal/edge/wakeplacement_test.goLoading diff…
internal/edgesfile/admission.goLoading diff…
internal/edgesfile/admission_test.goLoading diff…
internal/edgesfile/edgesfile.goLoading diff…
internal/edgesfile/homeelect.goLoading diff…
internal/edgesfile/snapshot.goLoading diff…
internal/groupadmission/observation.goLoading diff…
internal/groupadmission/state.goLoading diff…
internal/groupadmission/state_test.goLoading diff…
internal/host/agent.goLoading diff…
internal/host/booting_publication_test.goLoading diff…
internal/host/boxroles.goLoading diff…
internal/host/boxroles_config.goLoading diff…
internal/host/boxroles_config_linux.goLoading diff…
internal/host/boxroles_config_other.goLoading diff…
internal/host/boxroles_config_test.goLoading diff…
internal/host/boxroles_test.goLoading diff…
internal/host/edgesfile.goLoading diff…
internal/host/group_admission.goLoading diff…
internal/host/group_admission_fix_test.goLoading diff…
internal/host/group_admission_test.goLoading diff…
internal/host/group_metrics.goLoading diff…
internal/host/group_metrics_test.goLoading diff…
internal/host/memwatch.goLoading diff…
internal/host/schedule_wiring.goLoading diff…
internal/host/startup_largebox_linux_test.goLoading diff…
internal/hostenv/boxroles_test.goLoading diff…
internal/hostenv/hostenv.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-region-ha-p3a.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-stateless-coordinator-route.tsvLoading diff…
internal/release/boxroles_test.goLoading diff…
internal/release/changeindex.goLoading diff…
scripts/check-region-group-plan.pyLoading diff…
scripts/check_region_group_plan_test.pyLoading diff…
scripts/group_alarm_plan_test.pyLoading diff…
scripts/testdata/region-group-plan/fixed-eip-reassociation.jsonLoading diff…
scripts/testdata/region-group-plan/fixed-identities.jsonLoading diff…
scripts/testdata/region-group-plan/fixed-identity-probes.jsonLoading diff…
scripts/testdata/region-group-plan/new-ingress.jsonLoading diff…
scripts/testdata/region-group-plan/regional-alarms.jsonLoading diff…
scripts/testdata/region-group-plan/targeted-fixed-user-data.jsonLoading diff…
scripts/testdata/region-group-plan/unchanged-move.jsonLoading diff…