Merge remote-tracking branch 'origin/main' into region-ha-p3b-build
Co-Authored-By: GPT-6 Astra (codex) <noreply@openai.com>
docs/superpowers/notes/census-proposal-stateless-replicas-3.md+55 −0internal/activator/replicaprobe.go+64 −0internal/activator/replicaprobe_test.go+94 −0internal/edge/answered.go+5 −3internal/edge/edge.go+46 −21internal/edge/fleetforward.go+28 −3internal/edge/prober.go+18 −12internal/edge/replica_retry_test.go+361 −0internal/edge/replicaforward_test.go+341 −0internal/edge/replicaprobe.go+100 −0internal/edge/replicaprobe_test.go+326 −0internal/edge/replicaprober.go+434 −0internal/edge/replicaprober_test.go+1,014 −0internal/edge/replicaproxy.go+261 −0internal/edge/replicaproxy_test.go+330 −0internal/edge/replicashutdown_linux_test.go+105 −0internal/edge/reqrecords.go+5 −1internal/edge/reqrecords_test.go+19 −0internal/edge/tunnel.go+79 −7internal/edge/upgrades.go+2 −2internal/host/agent.go+41 −1internal/host/replica_request_budget_test.go+103 −0internal/host/replica_tunnel_e2e_test.go+287 −0internal/host/replicahealth.go+46 −0internal/host/replicahealth_linux.go+109 −0internal/host/replicahealth_linux_test.go+184 −0internal/host/replicahealth_other.go+16 −0internal/host/replicahealth_test.go+47 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv+63 −0internal/replicas/health.go+39 −0internal/replicas/health_test.go+12 −0internal/replicas/retry.go+7 −0internal/replicas/retry_test.go+16 −0internal/reqrec/recorder.go+9 −0internal/reqrec/replica_test.go+48 −0internal/status/snapshot.go+10 −4internal/tunnelclient/tunnelclient.go+3 −0
Intent
<task-notification> <task-id>b2f2cr728</task-id> <tool-use-id>toolu_01Cr1mDXVgvSzHZxVLAEDKLM</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/05c816f1-0a2d-43e3-9285-de8352549786/tasks/b2f2cr728.output</output-file> <status>completed</status> <summary>Background command "D=/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3b-build/.superpowers/sdd/2026-11-04-region-ha-p3b-group; $D/wait-astra.sh f1 $D/census-report.md" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a0d39789a19bc57cf</task-id> <tool-use-id>toolu_01TVbmMbE5kGAGVFgUSehpGS</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/05c816f1-0a2d-43e3-9285-de8352549786/tasks/a0d39789a19bc57cf.output</output-file> <status>completed</status> <summary>Agent "Census review region-ha-p3b" 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>**Delta check at `c898eff7`: APPROVED.** F1 is resolved and there are no new findings. I added a "Delta check at c898eff7" section to `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3b-build/.superpowers/sdd/2026-11-04-region-ha-p3b-group/census-review-r1.md`. **F1 is fixed.** If both floor objects are missing, root now reads `/etc/carlos/group.json` through the protected reader with the current-boot check (`installchannel.go:724-735`). It refuses with main's message unless the file says `floor` is `absent-expected`. - The value is set by the operator in the SSM boot object. The boot script requires `floor` to be `absent-expected` or `required` (`group-init.sh.tftpl:154`) and includes it in `config_digest` (`:226-227`). - `GroupConfig.Validate` refuses a missing or unknown value (`hostenv/group.go:52`). - No box role has `ssm:PutParameter` anywhere in `infra/`, and the group role can only read SSM. - So deleting the floor from the bucket no longer allows a floorless install. A published floor is still always verified. **CI fixes (04ae3dfb).** None of them adds a root read. - **Edge hairpin peer check:** stricter than before. A peer now counts as local only if it is loopback, the snapshot's primary IP, or an ingress IP (`edge/hairpin.go:57`). This runs in the agent. - **`EnableChangeIndex`:** it only acts after writes, and the install store only reads. - **`ReadGroupFileAt`:** only tests call it. Production `ReadGroupFile` still starts from `/`. **Census bookkeeping.** The class counts are unchanged and no disposition or read site changed. The chain seal now ends at `21bc7355…`, linked correctly to the p2b seal. The census tests pass at the tip, and the worktree is clean. **Verdicts on what changed since `6c365b15`:** 9 units approved, none rejected. - One fingerprint change: `group-init.sh.tftpl`. - Eight claim-only changes: `channelInstall.run`, `channelInstall.refreshPrev`, `loadGroupConfigurationAt`, `runHostEnv`, `initializeGroupLaunch`, `carlos-edge-group.conf`, `readGroupFileAt` and `RunWithActivatorReady`. - The 4 re-pinned envelopes are approved: `infra/modules/region-host`, `internal/edge`, `internal/host` and `internal/hostenv`. - Everything else is byte-identical to `6c365b15` and keeps that verdict. **P3s.** All four are addressed in the claims. P3-3 was documented rather than changed in code, which I accept. Overall: **APPROVED** at `c898eff7367a53065f6e8f1e833aee3055a94a6c`. The verdict still needs recording on #280 with the reviewer and this tip.</result> <usage><subagent_tokens>250769</subagent_tokens><tool_uses>9</tool_uses><duration_ms>94600</duration_ms></usage> </task-notification>
<task-notification> <task-id>bf3kl5sw3</task-id> <tool-use-id>toolu_01VQZ1eXR6kaqDBDwpkCgczT</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/05c816f1-0a2d-43e3-9285-de8352549786/tasks/bf3kl5sw3.output</output-file> <status>completed</status> <summary>Background command "echo "- Census F1 fixed fe969395 + refresh c898eff7, pushed; census reviewer delta check requested; CI running on c898eff7." >> .superpowers/sdd/2026-11-04-region-ha-p3b-group/progress.md; until amadan ci status carlos/platform -branch region-ha-p3b-build >/dev/null 2>&1; s=$?; [ $s -ne 2 ] && [ $s -ne 3 ]; do sleep 60; done; amadan ci status carlos/platform -branch region-ha-p3b-build 2>&1 | head -3; amadan ci status carlos/platform -branch region-ha-p3b-build 2>&1 | grep -A60 'Failure summary' | head -60" completed (exit code 0)</summary> </task-notification>
docs/superpowers/notes/census-proposal-stateless-replicas-3.mdLoading diff…
internal/activator/replicaprobe.goLoading diff…
internal/activator/replicaprobe_test.goLoading diff…
internal/edge/answered.goLoading diff…
internal/edge/edge.goLoading diff…
internal/edge/fleetforward.goLoading diff…
internal/edge/prober.goLoading diff…
internal/edge/replica_retry_test.goLoading diff…
internal/edge/replicaforward_test.goLoading diff…
internal/edge/replicaprobe.goLoading diff…
internal/edge/replicaprobe_test.goLoading diff…
internal/edge/replicaprober.goLoading diff…
internal/edge/replicaprober_test.goLoading diff…
internal/edge/replicaproxy.goLoading diff…
internal/edge/replicaproxy_test.goLoading diff…
internal/edge/replicashutdown_linux_test.goLoading diff…
internal/edge/reqrecords.goLoading diff…
internal/edge/reqrecords_test.goLoading diff…
internal/edge/tunnel.goLoading diff…
internal/edge/upgrades.goLoading diff…
internal/host/agent.goLoading diff…
internal/host/replica_request_budget_test.goLoading diff…
internal/host/replica_tunnel_e2e_test.goLoading diff…
internal/host/replicahealth.goLoading diff…
internal/host/replicahealth_linux.goLoading diff…
internal/host/replicahealth_linux_test.goLoading diff…
internal/host/replicahealth_other.goLoading diff…
internal/host/replicahealth_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsvLoading diff…
internal/replicas/health.goLoading diff…
internal/replicas/health_test.goLoading diff…
internal/replicas/retry.goLoading diff…
internal/replicas/retry_test.goLoading diff…
internal/reqrec/recorder.goLoading diff…
internal/reqrec/replica_test.goLoading diff…
internal/status/snapshot.goLoading diff…
internal/tunnelclient/tunnelclient.goLoading diff…