region-ha-p1b3-placement
Region HA P1b-3a: cold-wake placement (plan docs/superpowers/plans/2026-11-01-region-ha-p1b3-placement.md rev 3; spec region-ha-without-claims §6.3, §11).
What changes: a request for an asleep born-HA host that reaches the other box can now wake the host on the chosen box, through the existing signed forward, with one writer and one owner of request accounting.
- Boxes publish live awake app counts in headroom (additive
appsfield, rides the timed publication, zero new S3). - The edge projects a wake snapshot from the cached fold (same region/store/key, fresh generation, primary host membership, mirrored signing key for peers; self adopts via its local route).
- One pure rule, activator.DecidePlacement, decides Base / Recovery / Place / Refuse: switch off, missing evidence, self-owned or unknown locks all keep main's local HA acquire; expired peers get a Recovery hint only while in view; free hosts prefer an eligible clean releaser, else the roomiest box (ChooseRoomiest). Only AcquireHA authorizes a writer.
- N-HA12: a target that has not woken the host is excluded for 10 s, in one per-box suspect list (placementPeers); only success or a holder-naming answer clears it; visitor-cancelled forwards are ignored (ruling R7).
- Front door (N-HA10): a placement peer lost after projection answers 503 Retry-After 10 with no ingress accounting; hops never re-choose.
- Operator page when no box has headroom (warning, once/region/hour/process).
- Copy (Luna pass, approved by delegation): C1 "This instance cannot wake right now. Please try again shortly." C2 "Region %s needs more capacity" / "Region %s is short on spare capacity. Instance %s is waking on %s. Add capacity to the region."
Testing: unit and targeted tests per task; regionha simulation with 27 mutations, each caught (placement-refusal-clears-suspect by I5 alone); production witnesses in child processes; 10 root witnesses (nested launch, sealed wake, competing views, expired-owner recovery, switch off, dead/unusable choice, new host before fold, request budget) PASS on the designated root runner, run 20261101T203709-7b77cf. CI green at 62fc43f7.
Review: Astra implemented; Opus per-task reviews on Tasks 2-4 (Task 3 and 4 one fix round each), whole-branch review READY AFTER FIXES (one P2, fixed in 3e08575b, confirmed). Census: Astra APPROVED at 62fc43f7 (#280). Follow-ups: docs/superpowers/notes/region-ha-p1b3a-followups.md, plus: a cancelled only-request to a dead peer leaves its dial failure unrecorded (one extra dial per window).
Not done here: release, dev drill (Task 5A on sophie/leo, needs Paul's go), P1b-3b.
Region HA P1b-3a: cold-wake placement. When no box holds a born-HA host's lease, exactly one box wakes it, and the others forward to it over P1b-2's front-door hop. The waking box is the clean releaser if eligible, otherwise ChooseRoomiest, with app spread from headroom.apps. Outside one applicability rule a box behaves exactly as main does: switch off, expired owner (Recovery hop to the owner), self adoption, missing view. N-HA12 adds that a placement target that hasn't woken the host is excluded for 10 s. Plan rev 3 is final (Opus R1 NOT READY, R2 READY AFTER FIXES, review closed). Next: build subagent-driven, with Astra implementing and Opus reviewing, then the Task 5A dev drill on sophie and leo (pool hapair). P1b-3b (duties and departed-box scan, N-HA11 SQS consumer) is outlined only and gets its own plan after 3a merges.
Discussions
- No discussions on this branch yet.
Tasks 9/9 done
- Task 1: publish awake app counts, pure cold-wake choice Done
- Task 2: project wake snapshot from cached fold (Opus review) Done
- Copy: Luna pass on HA3-C1 and HA3-C2 subject/body Done
- Task 3: one applicability rule at the front door (Opus review) Done
- Task 4: production witnesses, simulation, landing gate (Opus review; fix round 1) Done
Activity
- task updated: Task 5A drill PASSED (1/2/4a/4b; 3 refused by F5), 4b rerun with N-HA15 (#421)
- task updated: CI green on tip; Paul's merge go
- claude agent, operated by paul@keymail.dev pushed 62fc43f78 Merge remote-tracking branch 'origin/main' into region-ha-p1b3-placement
- task updated: Census: card, CLAIMS, propose region-ha-p1b3a; Astra verdict on #280
- task updated: Whole-branch Opus review (max 3 rounds)
- claude agent, operated by paul@keymail.dev pushed 377be7747 Merge remote-tracking branch 'origin/main' into region-ha-p1b3-placement
- claude agent, operated by paul@keymail.dev pushed 3e08575b9 Ignore cancelled placement forwards in peer reachability
- task updated: Task 4: production witnesses, simulation, landing gate (Opus review; fix round 1)
- claude agent, operated by paul@keymail.dev pushed ef4ffcb7c Publish placement witness evidence through the S3 transport
- claude agent, operated by paul@keymail.dev pushed 3869cf458 Fix cold placement fixture certificates and gate credentials
- claude agent, operated by paul@keymail.dev pushed e848535f7 Bootstrap service directories before opening the runner registry
- claude agent, operated by paul@keymail.dev pushed 1cace98c6 Complete cold-placement runner environment and control transport
- claude agent, operated by paul@keymail.dev pushed d9952700b Install real executors after seeding cold-placement migration
- claude agent, operated by paul@keymail.dev pushed 0c1d9e9f0 Fix cold-placement root fixture bootstrap and HA assertions
- claude agent, operated by paul@keymail.dev pushed e4837e4fd region-ha p1b-3a: complete cold-wake production witnesses
- claude agent, operated by paul@keymail.dev pushed 4638c916b region-ha p1b-3a: model placement and add wake test harnesses
- task updated: Task 3: one applicability rule at the front door (Opus review)
- claude agent, operated by paul@keymail.dev pushed 4cf3b5dca region-ha p1b-3a: retain slow placement outcomes
- claude agent, operated by paul@keymail.dev pushed ffc659c97 region-ha p1b-3a: route cold wakes through front-door choice
- task updated: Task 2: project wake snapshot from cached fold (Opus review)
- claude agent, operated by paul@keymail.dev pushed fd1bc1561 region-ha p1b-3a: derive cold placement from cached fold
- task updated: Task 1: publish awake app counts, pure cold-wake choice
- claude agent, operated by paul@keymail.dev pushed 095e25db0 region-ha p1b-3a: publish awake app counts and define cold choice
- task updated: Copy: Luna pass on HA3-C1 and HA3-C2 subject/body
- claude agent, operated by paul@keymail.dev added task Task 5A drill PASSED (1/2/4a/4b; 3 refused by F5), 4b rerun with N-HA15 (#421)
- claude agent, operated by paul@keymail.dev added task CI green on tip; Paul's merge go
- claude agent, operated by paul@keymail.dev added task Census: card, CLAIMS, propose region-ha-p1b3a; Astra verdict on #280
- claude agent, operated by paul@keymail.dev added task Whole-branch Opus review (max 3 rounds)
- claude agent, operated by paul@keymail.dev added task Task 3: one applicability rule at the front door (Opus review)
- claude agent, operated by paul@keymail.dev added task Task 4: production witnesses, simulation, landing gate (Opus review; fix round 1)