carlos / platform Public

Gate fixed-box tenant admission on local startup acknowledgments

Install opt-in admission from environment, complete regional reconcile,
booting publication and the real termination consumer Started signal.
Keep tenant HTTP, leases and launches closed until local health is ready,
with fixed platform and unit exemptions and closure before shutdown.

Add transport, launch, publication and shared-outage witnesses and refresh
the branch census proposal. Focused/race checks, cross-builds and census
pass; the full host suite retains the 21 recorded claim/lifecycle failures.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 7474bd98a10bad9d2c5a0b830824deca8c055adc parent 3dd6772
32 files changed, +1,531 −25
  • docs/superpowers/notes/census-proposal-region-ha-p3a.md +70 −5
  • docs/superpowers/notes/census-region-ha-p3a-claims.tsv +39 −1
  • internal/activator/activator.go +52 −2
  • internal/activator/backend_exec.go +28 −0
  • internal/activator/backend_rootfs.go +2 −0
  • internal/activator/claimwake.go +1 −1
  • internal/activator/cmd.go +3 −0
  • internal/activator/cmdunit.go +7 −0
  • internal/activator/containment.go +1 −0
  • internal/activator/genbackend.go +4 −1
  • internal/activator/genservice.go +6 −0
  • internal/activator/group_admission.go +73 −0
  • internal/activator/group_admission_test.go +138 −0
  • internal/activator/hawake.go +3 −0
  • internal/activator/rootfsworkers.go +2 −2
  • internal/activator/swapadmit.go +1 −1
  • internal/activator/wakeplan.go +1 −1
  • internal/activator/workerbuild.go +3 −0
  • internal/edge/admission_export_test.go +112 −0
  • internal/edge/edge.go +11 −2
  • internal/edge/group_admission.go +42 −0
  • internal/edge/group_admission_external_test.go +50 −0
  • internal/edge/lbhealth.go +10 −0
  • internal/groupadmission/state.go +100 −0
  • internal/groupadmission/state_test.go +141 −0
  • internal/host/agent.go +21 −1
  • internal/host/edgesfile.go +1 −0
  • internal/host/group_admission.go +168 −0
  • internal/host/group_admission_test.go +362 −0
  • internal/hostenv/hostenv.go +1 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-p3a.tsv +77 −7

Intent

Human

<task-notification> <task-id>b7uamg6pf</task-id> <tool-use-id>toolu_01BJXxCJKYhpVCTo9BuKZiWr</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6cb8c43c-d494-478a-8f04-1067486903df/tasks/b7uamg6pf.output</output-file> <status>completed</status> <summary>Background command "W=/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3/.superpowers/sdd/2026-11-03-region-ha-p3a; while true; do if [ -s $W/task-2-astra-fix1b.md ]; then cat $W/task-2-astra-fix1b.md; exit 0; fi; if ! pgrep -f "task-2-astra-fix1b" &gt;/dev/null; then echo DEAD; tail -c 400 $W/task-2-astra-fix1b.log; exit 1; fi; sleep 60; done" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>aa75a4a31718fac73</task-id> <tool-use-id>toolu_01NxHoG31X4cCRR8ZXsix9RG</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6cb8c43c-d494-478a-8f04-1067486903df/tasks/aa75a4a31718fac73.output</output-file> <status>completed</status> <summary>Agent "Opus review P3a Task 2" 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>**Re-review R1 of fix 3dd6772f: READY AFTER FIXES. No new P1, one new P2.** I re-ran both overlay probes against the new code. - **F1 (closed box's exact name taken by another app's catch-all, P1): ADDRESSED for route names.** Drain, platform and booting entries now get no home or owner and no star fallback; `ServeHTTP` answers 503 with Retry-After. Legacy and admitted boxes behave as before. - **F2 (booting box turns catch-all aliases into routes, P1): ADDRESSED.** Only real routes get the new `route` bit. `DeploymentRoutesComplete` now gives catch-all=false, cert-only=false, real=true, alias=false. - **F3 (ack doesn't say what was published, P2): ADDRESSED.** The role is read once per pass, and the ack carries the tuple that was actually written. - **P3s 1, 3, 4, 5, 7: ADDRESSED.** That is jitter, apply-on-success as ruled with the GET budget kept, `ValidateRegion` removed, the log throttle, and the db-forward/steering audit. - **Over-refusal checks:** - An admitted box's own names are not refused. - Switch-off deployments behave as before. - A deleted name stays reserved until its box is admitted. The old code also kept it, by dialing the dead box. - **Holder leak:** the 503 path does not expose the holder. The body is fixed, and no box or holder header is set. - **New N1 (P2, H4/P3-3):** a closed box's plain alias names still fall through to another app's catch-all. Probe: drain, platform and booting all give Home and Owner to `z-wild` (acct-w). It only bites when no admitted peer holds the same alias, for example on fixed boxes. Fix: add a separate "held" bit that stops the fallback without counting as a route or blocking peer aliases. Appended under "Re-review R1" in `.superpowers/sdd/2026-11-03-region-ha-p3a/task-2-review-opus.md`.</result> <usage><subagent_tokens>224984</subagent_tokens><tool_uses>7</tool_uses><duration_ms>141366</duration_ms></usage> </task-notification>

Attributed to this commit: 10.9 g CO₂e (1,268,297 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p3-group, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

docs/superpowers/notes/census-proposal-region-ha-p3a.md

Loading diff…

docs/superpowers/notes/census-region-ha-p3a-claims.tsv

Loading diff…

internal/activator/activator.go

Loading diff…

internal/activator/backend_exec.go

Loading diff…

internal/activator/backend_rootfs.go

Loading diff…

internal/activator/claimwake.go

Loading diff…

internal/activator/cmd.go

Loading diff…

internal/activator/cmdunit.go

Loading diff…

internal/activator/containment.go

Loading diff…

internal/activator/genbackend.go

Loading diff…

internal/activator/genservice.go

Loading diff…

internal/activator/group_admission.go

Loading diff…

internal/activator/group_admission_test.go

Loading diff…

internal/activator/hawake.go

Loading diff…

internal/activator/rootfsworkers.go

Loading diff…

internal/activator/swapadmit.go

Loading diff…

internal/activator/wakeplan.go

Loading diff…

internal/activator/workerbuild.go

Loading diff…

internal/edge/admission_export_test.go

Loading diff…

internal/edge/edge.go

Loading diff…

internal/edge/group_admission.go

Loading diff…

internal/edge/group_admission_external_test.go

Loading diff…

internal/edge/lbhealth.go

Loading diff…

internal/groupadmission/state.go

Loading diff…

internal/groupadmission/state_test.go

Loading diff…

internal/host/agent.go

Loading diff…

internal/host/edgesfile.go

Loading diff…

internal/host/group_admission.go

Loading diff…

internal/host/group_admission_test.go

Loading diff…

internal/hostenv/hostenv.go

Loading diff…

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

Loading diff…

internal/provision/testdata/plan14-root-reads-region-ha-p3a.tsv

Loading diff…