carlos / platform Public

region-ha-p3b-plan

Written by claude agent, operated by paul@keymail.dev — nothing has landed since

Where it stands

P3b plan FINAL rev 3 at 044d32a7: docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md (8 tasks, 3 slices) plus the spec §12.1 N-HA14 edit (cac62f37). Planning only. Opus R1 NOT READY (1 P1 Standby/launch hook, 6 P2, 7 P3); rev 2; Opus R2 READY AFTER FIXES (1 P2, 3 P3); rev 3 applied them. Review CLOSED. Base main 016599d5.

Next

Build session for slice P3b-1 only (rule 7), after Paul approves a dated dev card (UTC window, infra apply owner, release, cleanup) per N-HA19 D1 and rule 5.

Blocked on

P3b-1 waits on Paul's dated card. P3b-3 (full G2) waits on P2b (role writer, drain, readiness), slice S and the native-sidecar producer merging.

Already decided

N-HA14 in spec 12.1 rev 6.2. N-HA19: section 19 staging exception for P3b-1; serve-only groups; 2x t4g.micro, 24h, 5 USD ceiling; sidecar hairpin on root runner. No round 3.

Recently

Human

<task-notification> <task-id>b6ceodiu7</task-id> <tool-use-id>toolu_012mSyb3A3rp9qtRt4A6Tg6T</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/322ac65e-c7fd-49f1-985b-a0352676881d/tasks/b6ceodiu7.output</output-file> <status>completed</status> <summary>Background command "D=/home/paulca/.cache/tmp/p3b-plan; until [ -f $D/rev3.done ]; do sleep 30; done; cat $D/rev3-report.md; cd /home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3b-plan &amp;&amp; git log --oneline -2 &amp;&amp; git status --short" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>a063a6d5338f8cd33</task-id> <tool-use-id>toolu_01KFQjA5GHd8g2q5SMPWsvgF</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/322ac65e-c7fd-49f1-985b-a0352676881d/tasks/a063a6d5338f8cd33.output</output-file> <status>completed</status> <summary>Agent "Opus R2 review of P3b plan" 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>**Verdict: READY AFTER FIXES.** No P1 and one P2, carried over from round 1. It can be fixed without a fourth round. The review is at `/home/paulca/.cache/tmp/p3b-plan/REVIEW-REGION-HA-P3B-R2.md`. I nearly wrote it in the wrong place: the sandbox makes that folder read-only, so I wrote the draft under $TMPDIR, copied it across with the sandbox off, and deleted the draft. I changed nothing in the repo. Round 1: - P1-1 (restart authority, the ExitStandby hook): **resolved.** The AWS lifecycle-hooks page says verbatim, in the footnote to its availability table, that hooks do "not apply when you attach or detach instances, move instances in and out of standby mode, or delete the group with the force delete option." Rev 2 is safe either way: - Only the operator ever completes the hook on return, so the box never competes. - The fake tests must cover a hook firing on return, and they must fail against rev 1. - The first live step is a no-change probe that blocks rolls if AWS behaves differently. - P2-1 (namespace authority, the rollout gate): **partly resolved.** Carried forward at P2. - P2-2 (duty recovery, the group termination queue): **resolved.** - P2-3 (no tenant work before admission, departure import): **resolved.** It took option (a), and the code agrees: the journal is local, and `Started` needs `record` to return nil. - P2-4 (restart authority, OS restarters): **resolved.** - P2-5 (G2 drill pass conditions): **resolved.** - P2-6 (stopping rules 5 and 6): **resolved.** The G1 citations check out against the #421 export, and the dated window is gated on Paul before the build starts. Round 2: - **P2, R2 P2-1 (namespace authority across mixed-version readers).** The old-reader check runs only when a group box joins. Fixed boxes update themselves, unattended, to whatever release the console's system-update API publishes, so an ordinary rollback still puts pre-`names-2` readers beside group publishers that are already admitted. No task touches `internal/console/apisystemupdate.go` or `internal/host/systemleg.go` for fixed boxes. The fix is to refuse that rollback in one of those two places while group publishers exist, and add a mutation test for it. - **P3, R2 P3-1 (observability).** The ASG deficit alarm needs `enabled_metrics` set on the group. Without it, missing data counts as breaching and the alarm stays on permanently. - **P3, R2 P3-2 (hairpin).** The redirect sends local calls to the region's own address to this box even while it is not admitted, so they get a 503 instead of reaching a healthy peer. Either state that nothing calls it then, or switch the redirect on only after admission. - **P3, R2 P3-3 (restart authority).** The plan has no step for a member that is waiting on the hook after leaving Standby and has dropped out of admission. Left alone, AWS terminates it after 900 s. This only matters if AWS behaves unlike its docs, which already blocks rolls. The spec edit is still verbatim. Every new file:line cited in rev 2 matches the code at 016599d5.</result> <usage><subagent_tokens>156944</subagent_tokens><tool_uses>33</tool_uses><duration_ms>446559</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bxpgtspbo</task-id> <tool-use-id>toolu_01DEXekaHS2e79hEERJiomja</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/322ac65e-c7fd-49f1-985b-a0352676881d/tasks/bxpgtspbo.output</output-file> <status>completed</status> <summary>Background command "D=/home/paulca/.cache/tmp/p3b-plan; until [ -f $D/rev2.done ]; do sleep 30; done; cat $D/rev2-report.md; cd /home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3b-plan &amp;&amp; git log --oneline -2 &amp;&amp; git status --short" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>ac9e486fd4c9ba183</task-id> <tool-use-id>toolu_01KmjgwNH4XiZY9wg3aRPWPp</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/322ac65e-c7fd-49f1-985b-a0352676881d/tasks/ac9e486fd4c9ba183.output</output-file> <status>completed</status> <summary>Agent "Opus R1 review of P3b plan" 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>**Verdict: NOT READY.** There is one P1. The review is at `/home/paulca/.cache/tmp/p3b-plan/REVIEW-REGION-HA-P3B-R1.md`. The P1 depends on one AWS behaviour I could not confirm from the docs. The lifecycle diagram and the PreInService status in the ExitStandby example point to it, but no page says it outright. So the fix starts with one dev observation of ExitStandby. The spec §12.1 edit matches the approved sentence in P3 rev 3 (line 110) word for word, and nothing else changed. I checked about 90 file:line citations; all are accurate apart from the two in P3-1 and P3-2. **P1** - **P1-1, T1/I4 restart authority.** ExitStandby probably sends the returning member back through `Pending:Wait` on the launch hook. The plan's receipt then suppresses the completion call (lines 116 and 194), and the operator has no right to complete it (154, 156). After 900 s the default ABANDON fires and the rolled box is terminated, which N-HA14 forbids. The fakes in Tasks 4 and 7 assume Standby goes straight to InService, so they would pass anyway. **P2** - **P2-1, H4/A1 namespace authority.** The "upgrade every reader before group opt-in" gate is a manual record, not enforced in code. An old reader next to group publishers brings back R2-1 or R2-2. Fix: a new edges-file capability, and group boxes refuse to admit while any peer lacks it. - **P2-2, I6/N-HA11 duty recovery.** The group's termination queue is never specified. "Existing queue" in Task 2 would mean group members take a fixed box's termination events. - **P2-3, A1/I6.** It is not said whether a group member that is not yet admitted may import a dead peer's duties from the shared queue. The current departure code has no admission check, so it would. - **P2-4, T1/I4.** OS-level restarters are outside the root guard. Every existing init template enables unattended-upgrades. Any restart of a box that is in service fails the load-balancer health check and gets the box replaced. - **P2-5, G2 evidence.** Drills 1-3 record measurements but have no pass condition. - **P2-6, S1 / rules 5-6.** No executable task needs P2b code, but the first slice can't merge until P2b merges, and no date is named before building. The plan also treats G1 as unrecorded, although its switch-on finished on 2026-11-03. **P3** - **P3-1:** `internal/groupadmission/observability.go` is cited but doesn't exist; the file is `observation.go`. - **P3-2:** stale platform-infrastructure evidence (sophie is now t4g.medium on origin/main), plus the out-of-memory risk with Restart=no. - **P3-3:** the channel for delivering the root permit (Session Manager) is never named. - **P3-4:** the group role's list of existing policies is not spelled out. - **P3-5:** a lost CONTINUE response always leads to replacement. - **P3-6:** the HealthyHostCount alarm will fire during a long Standby. - **P3-7:** the expected target count on the reused dev NLB during the drill is not stated. I wrote only the review file and edited nothing in the repo. I made no scratch files.</result> <usage><subagent_tokens>215761</subagent_tokens><tool_uses>60</tool_uses><duration_ms>570078</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bzfstegn8</task-id> <tool-use-id>toolu_01Q2W5BZnrMYoC9dCXYFaB8P</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/322ac65e-c7fd-49f1-985b-a0352676881d/tasks/bzfstegn8.output</output-file> <status>completed</status> <summary>Background command "D=/home/paulca/.cache/tmp/p3b-plan; until [ -f $D/draft.done ]; do sleep 30; done; wc -c $D/draft.log; cat $D/draft-report.md" completed (exit code 0)</summary> </task-notification>