carlos / platform Public

Merge remote-tracking branch 'origin/main' into region-ha-p3b-build

Co-Authored-By: GPT-6 Astra (codex) <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 4d982ed8695456703ac5bf034afba80374307ce1 parent c898effparent 45cebde
38 files changed, +4,728 −54
  • docs/superpowers/notes/census-proposal-stateless-replicas-3.md +55 −0
  • internal/activator/replicaprobe.go +64 −0
  • internal/activator/replicaprobe_test.go +94 −0
  • internal/edge/answered.go +5 −3
  • internal/edge/edge.go +46 −21
  • internal/edge/fleetforward.go +28 −3
  • internal/edge/prober.go +18 −12
  • internal/edge/replica_retry_test.go +361 −0
  • internal/edge/replicaforward_test.go +341 −0
  • internal/edge/replicaprobe.go +100 −0
  • internal/edge/replicaprobe_test.go +326 −0
  • internal/edge/replicaprober.go +434 −0
  • internal/edge/replicaprober_test.go +1,014 −0
  • internal/edge/replicaproxy.go +261 −0
  • internal/edge/replicaproxy_test.go +330 −0
  • internal/edge/replicashutdown_linux_test.go +105 −0
  • internal/edge/reqrecords.go +5 −1
  • internal/edge/reqrecords_test.go +19 −0
  • internal/edge/tunnel.go +79 −7
  • internal/edge/upgrades.go +2 −2
  • internal/host/agent.go +41 −1
  • internal/host/replica_request_budget_test.go +103 −0
  • internal/host/replica_tunnel_e2e_test.go +287 −0
  • internal/host/replicahealth.go +46 −0
  • internal/host/replicahealth_linux.go +109 −0
  • internal/host/replicahealth_linux_test.go +184 −0
  • internal/host/replicahealth_other.go +16 −0
  • internal/host/replicahealth_test.go +47 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv +63 −0
  • internal/replicas/health.go +39 −0
  • internal/replicas/health_test.go +12 −0
  • internal/replicas/retry.go +7 −0
  • internal/replicas/retry_test.go +16 −0
  • internal/reqrec/recorder.go +9 −0
  • internal/reqrec/replica_test.go +48 −0
  • internal/status/snapshot.go +10 −4
  • internal/tunnelclient/tunnelclient.go +3 −0

Intent

Human

<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>

Human

<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>

Human

<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." &gt;&gt; .superpowers/sdd/2026-11-04-region-ha-p3b-group/progress.md; until amadan ci status carlos/platform -branch region-ha-p3b-build &gt;/dev/null 2&gt;&amp;1; s=$?; [ $s -ne 2 ] &amp;&amp; [ $s -ne 3 ]; do sleep 60; done; amadan ci status carlos/platform -branch region-ha-p3b-build 2&gt;&amp;1 | head -3; amadan ci status carlos/platform -branch region-ha-p3b-build 2&gt;&amp;1 | grep -A60 'Failure summary' | head -60" completed (exit code 0)</summary> </task-notification>

docs/superpowers/notes/census-proposal-stateless-replicas-3.md

Loading diff…

internal/activator/replicaprobe.go

Loading diff…

internal/activator/replicaprobe_test.go

Loading diff…

internal/edge/answered.go

Loading diff…

internal/edge/edge.go

Loading diff…

internal/edge/fleetforward.go

Loading diff…

internal/edge/prober.go

Loading diff…

internal/edge/replica_retry_test.go

Loading diff…

internal/edge/replicaforward_test.go

Loading diff…

internal/edge/replicaprobe.go

Loading diff…

internal/edge/replicaprobe_test.go

Loading diff…

internal/edge/replicaprober.go

Loading diff…

internal/edge/replicaprober_test.go

Loading diff…

internal/edge/replicaproxy.go

Loading diff…

internal/edge/replicaproxy_test.go

Loading diff…

internal/edge/replicashutdown_linux_test.go

Loading diff…

internal/edge/reqrecords.go

Loading diff…

internal/edge/reqrecords_test.go

Loading diff…

internal/edge/tunnel.go

Loading diff…

internal/edge/upgrades.go

Loading diff…

internal/host/agent.go

Loading diff…

internal/host/replica_request_budget_test.go

Loading diff…

internal/host/replica_tunnel_e2e_test.go

Loading diff…

internal/host/replicahealth.go

Loading diff…

internal/host/replicahealth_linux.go

Loading diff…

internal/host/replicahealth_linux_test.go

Loading diff…

internal/host/replicahealth_other.go

Loading diff…

internal/host/replicahealth_test.go

Loading diff…

internal/provision/testdata/plan14-root-reads-chain.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv

Loading diff…

internal/replicas/health.go

Loading diff…

internal/replicas/health_test.go

Loading diff…

internal/replicas/retry.go

Loading diff…

internal/replicas/retry_test.go

Loading diff…

internal/reqrec/recorder.go

Loading diff…

internal/reqrec/replica_test.go

Loading diff…

internal/status/snapshot.go

Loading diff…

internal/tunnelclient/tunnelclient.go

Loading diff…