carlos / platform Public

Region HA P1b-2 plan rev 2: round 1 fixes (gate cookie, holder-owned accounting, visitor-only, regional refused, own transport, hop retry 1, nil activator); round 2 brief

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 50a843dfa2a3a3ec1c4fedc32ea3ffbedf374bc4 parent 2a6a483
3 files changed, +127 −6
  • docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md +30 −6
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-2.md +50 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R1.md +47 −0

CI passed — run details

Intent

Human

<task-notification> <task-id>byi975xgp</task-id> <tool-use-id>toolu_01TqTxuHguZJ4EHgrXNe43bd</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/953e7524-2e06-4308-b9ce-fd1b38579971/tasks/byi975xgp.output</output-file> <status>completed</status> <summary>Background command "Run the Astra round 1 review of the P1b-2 plan" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 37.8 g CO₂e (4,729,457 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p1b2-forwarding, 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.

diff --git a/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md b/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md
index a2958c427..4b646bdb8 100644
--- a/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md
+++ b/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md
@@ -13,7 +13,19 @@
**Spec:** `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` §6.2, §6.4, §6.6, §4.3 (views), on main.
-**Status: rev 1, for Astra round 1 of 3. A P1 in round 3 goes to Paul as a cut.**
+**Status: rev 2, for Astra round 2 of 3. A P1 in round 3 goes to Paul as a cut.**
+
+## Round 1 dispositions (`CODEX-PLAN-REGION-HA-P1B2-R1.md`, NOT READY: 4 P1, 3 P2)
+
+| Finding | Disposition |
+|---|---|
+| r1.1 P1 the gate cookie is stripped before the forward | Accepted. For a gated route the edge captures the request's original `Cookie` lines before `gate.Admit` (a context value); `ForwardHA` restores them on the outbound hop, so the holder's gate checks the visitor itself, as cross-region backhaul already does. Task 2. |
+| r1.2 P1 a forwarded request is billed twice | Accepted. The holder owns accounting. `ForwardHA` marks a request it relayed (`ForwardDone`) as forwarded, beside `MarkAnswered`; the deferred observers at `edge.go:1898-1909` skip the usage meter, analytics and the edge-error emit for it. A request A answered itself (unreachable, not in view) is recorded by A as today. Task 2. |
+| r1.3 P1 scheduled ticks would forward | Accepted. Only visitor requests forward: the decision runs only when `serve` is called with `stamp` true. `ServeScheduled` (`stamp` false) keeps today's local behaviour until the duties slice. Task 3. |
+| r1.4 P1 regional names refuse every hop | Accepted as a refusal up front. A route reached through a regional name (`up.regional != regionalNone`) never forwards; it keeps today's 503. No production region is HA, so no regional name is affected yet. Same-region forwarding for regional names is a follow-up. Task 3, with the edge telling the activator through a context value it already sets for regional rows. |
+| r1.5 P2 transport timeout isolation | Accepted. `ForwardHA` uses its own transport cache with a 2 s dial timeout, separate from `backhaulTo`'s 5 s cache, and a dial seam for tests. Task 2. |
+| r1.6 P2 same-box held lease on a forwarded request | Accepted. Every held-lease refusal of a verified hop answers `Retry-After: 1`, with `X-Carlos-Holder` naming the holder's reference, this box's own included. Task 3. |
+| r1.7 P2 nil activator | Accepted. Task 4 wires only when the activator exists. |
## Scope (slicing, 2026-10-29)
@@ -34,13 +46,16 @@ Visible result on dev: with `hapair-a1` awake on leo, a request through sophie's
## Global Constraints
- **Only born-HA hosts forward.** A host forwards only when its route row is HA (`registry.Route.HA`). Legacy hosts behave exactly as today.
+- **Visitor requests only.** Scheduled ticks (`ServeScheduled`) never forward in this slice. Routes reached through a regional name never forward.
+- **The holder owns accounting.** A relayed request is recorded by the holder's edge only: the forwarding edge skips its usage meter, analytics and edge-error emit for it.
+- **The gate:** a gated route's visitor cookie travels on the forward and is checked by the holder.
- **One hop, ever (§6.4).** A request that arrived as a verified hop is never forwarded again, by any path. The edge's existing structural rule (`homemap.go:58-63`, `edge.go:3375-3402`) stays; the activator adds its own check before it forwards.
- **View (§4.3):** box `ref` is in view only when its edges file is in the current fold, `ref` is not this box, the file's `generation` is no older than `boxchoice.MaxEdgesAge` (15 min) and no more than 1 min in the future, and its `region` and `placement` equal this box's own file's. If this box's own file is not in the fold, nothing is in view (fail closed).
- **Holder cache (§6.6):** host to box reference; at most 50,000 entries; an entry lives at most 1 hour. It costs no S3 request.
- Set from a held-lease answer naming an HA box-format owner (`hafresh.ParseOwner`, `HA` true), and from a forward's `X-Carlos-Holder: <ref>`.
- Dropped when this box takes the lease, when the named box is not in view, when a forward fails to connect, and when the holder answers `X-Carlos-Holder: none`.
- **Answers.**
- - A forwarded request this box cannot serve (held by another box, not acquirable): 503, `Retry-After: 1`, `X-Carlos-Holder: <ref>` naming the live holder this box saw, or `X-Carlos-Holder: none`. Body: the existing "instance is waking elsewhere; retry shortly".
+ - A forwarded request this box cannot serve (held, by another box or by this box's previous process, or not acquirable): 503, `Retry-After: 1`, `X-Carlos-Holder: <ref>` naming the holder this box saw (its own reference included), or `X-Carlos-Holder: none`. Body: the existing "instance is waking elsewhere; retry shortly".
- A forward that cannot connect within 2 s: 503, `Retry-After: 10`, body "instance is waking elsewhere; retry shortly". Not the backhaul's 502.
- Everything else is today's answer.
- **S3 budget:** a request for a host held elsewhere costs 0 S3 requests on a holder-cache hit, and today's one lock GET on a miss. No new polling.
@@ -55,6 +70,7 @@ Visible result on dev: with `hapair-a1` awake on leo, a request through sophie's
3. **A forwarded request at a box that is not the holder.** It is never forwarded on. Task 3: `TestHoppedRequestIsNeverForwarded`.
4. **A WebSocket upgrade for a host held elsewhere.** It rides the forward and switches protocols end to end. Task 2: `TestForwardHAUpgradeSwitchesProtocols`.
5. **A box out of view** (stale file, other region, other placement). Never a forward target. Task 1: `TestHolderViewRules`.
+6. **A password-gated host held elsewhere.** The visitor's cookie reaches the holder; one login, not a loop. Task 2: `TestForwardHAGatedHostKeepsTheCookie`.
---
@@ -96,7 +112,8 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3): they decide where a reques
- `func (e *Edge) ForwardHA(w http.ResponseWriter, r *http.Request, host, ref string) ForwardResult`:
- `HopVerified(r)` true: writes nothing, returns `ForwardNotInView` (the caller answers; the edge never forwards a hop).
- `boxInView(ref)` false: writes nothing, `ForwardNotInView`.
- - Otherwise signs the hop for `host` and proxies to the dial address through the same admission (`backhaulAdmit`) and transport as `backhaulTo`, with a 2 s connect timeout. A connect failure writes 503, `Retry-After: 10`, "instance is waking elsewhere; retry shortly", marks the request answered (`MarkAnswered`), and returns `ForwardUnreachable`. Any upstream response is relayed as is and returns `ForwardDone` with `Holder` read in `ModifyResponse`.
+ - Otherwise signs the hop for `host`, restores the original `Cookie` lines the edge captured before gate admission (gated routes only), and proxies to the dial address through the same admission (`backhaulAdmit`) as `backhaulTo`, over its own transport cache whose dialer times out at 2 s (`forwardDialTimeout = 2 * time.Second`; a `forwardDial` seam for tests). `backhaulTo`'s 5 s transports are untouched. A connect failure writes 503, `Retry-After: 10`, "instance is waking elsewhere; retry shortly", marks the request answered (`MarkAnswered`), and returns `ForwardUnreachable`. Any upstream response is relayed as is, the request is marked forwarded (`markForwarded`, beside `MarkAnswered`, so the deferred observers skip usage, analytics and the edge-error emit), and it returns `ForwardDone` with `Holder` read in `ModifyResponse`.
+ - The edge, before `gate.Admit` on a gated route, stores the request's `Cookie` header lines in the request context (`withGateCookies`); and it stores whether the route was reached through a regional name (`up.regional != regionalNone`) as `edge.RegionalRequest(r) bool`, read by Task 3.
- A missing mesh key: writes nothing, returns `ForwardNotInView` (as `backhaulTo` returns false today).
- [ ] **Step 1: Write the failing tests** in `forwardha_test.go` with the two-edge scene (box "annie" forwards to box "betty", both region "ie", same placement):
@@ -106,6 +123,9 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3): they decide where a reques
- `TestForwardHADialFailureIs503RetryTen`: betty's file names a closed port → 503, `Retry-After: 10`, the body above, `ForwardUnreachable`, within 3 s.
- `TestForwardHAReadsHolderHeader`: betty answers 503 with `X-Carlos-Holder: carol` → client gets that 503; result `{ForwardDone, "carol"}`; with `X-Carlos-Holder: none` → `Holder "none"`.
- `TestForwardHAUpgradeSwitchesProtocols`: a WebSocket upgrade forwarded to betty gets 101 and echoes one message.
+ - `TestForwardHAGatedHostKeepsTheCookie`: a gated route on both edges; a visitor with a valid gate cookie at annie is forwarded and betty's gate admits it (200, betty's body); without the cookie, betty answers the login page.
+ - `TestForwardHABillsOnlyTheHolder`: one forwarded request: betty's usage meter counts 1 request and the response bytes, annie's counts 0; annie's analytics observer sees nothing. An unreachable forward is counted once, by annie.
+ - `TestForwardHADialTimeoutIsItsOwn`: with a stalling `forwardDial`, `ForwardHA` gives up at 2 s; an ordinary `backhaulTo` to the same address afterwards still uses the 5 s transport (both call orders).
- [ ] **Step 2: Run** `nice -n 19 go test ./internal/edge -run 'TestForwardHA' -count=1`. Expected: FAIL.
- [ ] **Step 3: Implement** `forwardha.go`. Share code with `backhaulTo` rather than copying it: extract the common sign-admit-proxy part into one unexported helper that both call, with the error answer and response hook as parameters.
- [ ] **Step 4: Run** the Step 2 command, then `nice -n 19 go test ./internal/edge -run 'Backhaul|Hop|Home' -count=1` (the existing backhaul tests still pass). Expected: PASS.
@@ -124,12 +144,12 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3): they decide where a reques
- `type Forwarder interface { ForwardHA(w http.ResponseWriter, r *http.Request, host, ref string) edge.ForwardResult }`.
- `func (a *Service) SetForwarder(f Forwarder)`. Nil: no forwarding (today).
- `type holderCache struct { /* mutex, map host -> {ref, at}, max 50000, ttl 1h, now func() time.Time */ }` with `get(host) (string, bool)`, `set(host, ref)`, `drop(host)`. At the cap, `set` evicts the oldest entry.
- - **The decision, for an HA route (`rt.HA`) with a forwarder set:**
+ - **The decision, for a visitor request (`serve` called with `stamp` true) to an HA route (`rt.HA`) with a forwarder set, not reached through a regional name (`!edge.RegionalRequest(r)`):**
1. Awake or waking here (the same live-entry check `begin` makes first): serve, as today.
2. Not a verified hop and the cache names `ref`: `ForwardHA`. `ForwardDone`: done (apply `Holder`: a ref sets the entry, "none" drops it). `ForwardUnreachable`: drop the entry; done (the edge answered). `ForwardNotInView`: drop the entry, go to 3.
3. `begin` (the HA acquire). Success: drop the entry, serve. `errLeaseHeld` whose owner parses as an HA box owner with a `Ref` other than this box's:
- not a hop: set the entry, `ForwardHA` as in 2; on `ForwardNotInView`, today's 503.
- - a verified hop: 503, `Retry-After: 1`, `X-Carlos-Holder: <ref>`, the existing body.
+ - a verified hop: 503, `Retry-After: 1`, `X-Carlos-Holder: <ref>`, the existing body. This applies to every held-lease refusal of a verified hop, including an owner naming this box's own reference (a previous process's unexpired lease).
4. Any other error: today's answer; for a verified hop that is not served, add `X-Carlos-Holder: none`.
- This box's own reference is `lease.CurrentSelf().Ref` (what P1a's owner uses).
@@ -141,6 +161,9 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3): they decide where a reques
- `TestHolderCacheDroppedOnUnreachable`: forwarder returns `ForwardUnreachable` → entry dropped; the next request runs the acquire.
- `TestHolderCacheFollowsHolderHeader`: forwarder returns `{ForwardDone, "c"}` → entry is "c"; `{ForwardDone, "none"}` → dropped.
- `TestLegacyHostNeverForwards`: a non-HA route held elsewhere → today's 503, forwarder not called.
+ - `TestScheduledTickNeverForwards`: `ServeScheduled` for an HA host held by "b" → forwarder not called; today's answer.
+ - `TestRegionalRequestNeverForwards`: a request marked regional → forwarder not called; today's 503.
+ - `TestHoppedSameBoxHeldRetriesInOne`: a verified hop, the lock held by this box's previous process (same ref, other pid, unexpired) → 503, `Retry-After: 1`, `X-Carlos-Holder: <own ref>`.
- `TestHolderCacheBounds`: 50,001 sets keep 50,000 entries, the oldest evicted; an entry 61 minutes old reads as absent.
- `TestTakingTheLeaseDropsTheEntry`: cache names "b", the acquire succeeds (the lock was a marker) → served here, entry dropped.
- [ ] **Step 2: Run** `nice -n 19 go test ./internal/activator -run 'TestHA.*Forward|TestHolderCache|TestHopped|TestLegacyHostNeverForwards|TestTakingTheLeaseDrops' -count=1`. Expected: FAIL.
@@ -159,7 +182,7 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3): they decide where a reques
- [ ] **Step 1: Write the failing test** `TestAgentWiresTheForwarder`: after the ready callback runs, the activator's forwarder is the edge (through whatever seam the existing wiring tests use).
- [ ] **Step 2: Run** it. Expected: FAIL.
-- [ ] **Step 3: Implement** `svc.SetForwarder(e)` in the ready callback, on every box (it acts only for HA routes).
+- [ ] **Step 3: Implement** `svc.SetForwarder(e)` in the ready callback, only when the activator exists (`svc != nil`; a box without hibernation has none). Test both the armed and the unarmed start.
- [ ] **Step 4: Run** it, then the three builds (`go build ./...`, `GOOS=darwin`, `GOOS=windows`) and the linux/arm64 size (ceiling 64,000,000). Expected: PASS.
- [ ] **Step 5: Commit** `region-ha p1b-2: the agent wires the edge into the activator`.
@@ -180,5 +203,6 @@ Agent-run changes only. Run `make census-card`, CLAIMS, `make census-propose`; a
- §6.3 placement (proven reuse, `ChooseRoomiest`) and the over-capacity alert: P1b-3.
- §6.5's one retry by the first box: a later slice.
+- Same-region forwarding for regional names (r1.4): a later slice; until then they keep today's 503 on a box that is not the holder.
- Roles, `booting`, the serving latch, the lifecycle hook and hairpin: P3.
- **Cross-region requests** for an HA host backhaul to whichever box the fold elects as home (both boxes publish the host). If that box is not the holder, the backhauled request is a hop, so it gets 503 `Retry-After: 1` with `X-Carlos-Holder` (§6.4) and is not forwarded on. That is no worse than today's 503. Letting the far edge retry to the named holder, or feed its own holder cache, is the §6.5 slice.
diff --git a/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-2.md b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-2.md
new file mode 100644
index 000000000..eacdcfe5c
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-2.md
@@ -0,0 +1,50 @@
+# Review brief: Region HA P1b-2 plan (forwarding between boxes), round 2 of 3
+
+Repo carlos/platform, branch `region-ha-p1b2-forwarding`, the commit that adds this brief (rev 2).
+Under review: `docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md`.
+Authorities: `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` (§6, §4.3; rulings N-HA8, N-HA9), P1a and P1b-1
+as merged on main, and the code on this branch. Do not review against unmerged branches.
+
+You are an independent reviewer. Read the plan, then the code it names, and check every claim against that code.
+
+## Fixed: do not re-argue
+
+- The slicing in the plan's "Scope" table (Paul, 2026-10-29: pick up region HA, small slices). Report only mechanisms in this slice that
+ fail, not the absence of deferred pieces, unless a deferred piece makes this slice unsafe.
+- N-HA9 and the lease rules from P1a/P1b-1 are unchanged by this slice.
+
+## What to check
+
+1. **Single writer and loops.** Can forwarding ever cause a second wake, a wake on a box that should not wake, or a forwarding loop?
+ Check the activator's decision order against `Service.serve`/`begin` (`internal/activator/activator.go` ~5943-6070), the edge's one-hop
+ rule (`internal/edge/homemap.go:58-63`, `edge.go:3375-3402`) and how a verified hop reaches the activator.
+2. **The view test.** Is `boxInView` sound given how `homeMap` folds files (`homemap.go:440-530`, `:783-800`) and the writer's
+ `generation` (`internal/edgesfile/snapshot.go:86`)? Can a box out of region, stale, or self be chosen?
+3. **The forward.** Does sharing `backhaulTo`'s sign/admit/proxy path (`edge.go:3398-3445`, `:3589-3636`) with a 2 s connect timeout,
+ a 503 `Retry-After: 10` on connect failure, and a `ModifyResponse` reading `X-Carlos-Holder` work without changing `backhaulTo`'s own
+ behaviour? WebSocket upgrades through it?
+4. **The holder cache.** Are its set/drop rules enough to stop a stale entry from black-holing a host? Is its bound and TTL right?
+5. **S3 budget.** Does a cache hit really skip the lock GET, and a miss cost at most today's one GET?
+6. **Tests and the drill.** Do the named tests prove the claims? Is Task 5 runnable on dev (pool `hapair` on leo and sophie)?
+
+## Round 2
+
+Earlier round: `docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R1.md` (NOT READY: 4 P1, 3 P2). The plan's "Round 1 dispositions"
+table says how each was handled; r1.4 is answered by refusing regional names up front (no production region is HA). First give one line
+per P1 and P2 from round 1: resolved, partly, or not. Carry every unresolved finding forward at its severity, then add new findings, in
+particular any other edge path that runs once per request on BOTH boxes now that both serve the route (the class r1.1-r1.4 came from):
+look for every observer, gate, guard, rate limit, cache, asset or analytics step between route lookup and the activator in
+`internal/edge/edge.go` ServeHTTP and say whether a forwarded request double-runs it harmfully.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Follow-up list.
+
+A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3, each with the task, problem, evidence (file:line), failure scenario, fix and fault family. End with exactly one
+verdict: READY, READY AFTER FIXES, or NOT READY. Do not edit files, spawn subagents of your own, or run full suites.
diff --git a/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R1.md b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R1.md
new file mode 100644
index 000000000..0e2545194
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R1.md
@@ -0,0 +1,47 @@
+Reviewed round 1 at `2a6a483508a3e5bb0c0edbf5fc4d8e1865614d04`. No files changed, subagents spawned, or tests run.
+
+1. **P1 — Tasks 2–3: Forwarding breaks password-protected hosts.**
+ **Evidence:** The proposed insertion is after password admission ([plan:118](docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:118)). Admission runs at [edge.go:1970](internal/edge/edge.go:1970) and removes the gate cookie at [gate.go:121](internal/gate/gate.go:121).
+ **Failure scenario:** A visitor presents a valid cookie to A. A strips it, then forwards to holder B. B runs its gate without the cookie and returns 401. Logging in again repeats this indefinitely. WebSocket handshakes fail too.
+ **Fix:** Preserve the cookie privately for the outbound mesh request so B can validate it, while still stripping it before the app. Add a two-edge test through both actual gate paths.
+ **Fault family:** Authentication evidence survives forwarding.
+
+2. **P1 — Tasks 2–3: Every forwarded request is billed twice.**
+ **Evidence:** The activator runs underneath the usage observer. Both A and B execute [edge.go:1902](internal/edge/edge.go:1902); `UsageMeter.Record` adds requests and bytes unconditionally ([usagemeter.go:37](internal/edge/usagemeter.go:37)). Its hop counters are subsets, not deductions.
+ **Failure scenario:** A forwards one response from B. Both boxes record one billable request and its response bytes. HTML responses also reach both analytics observers. Existing backhaul avoids this because its sending edge has no local route; this slice gives both edges one.
+ **Fix:** Define which edge owns accounting and suppress the duplicate usage and analytics observation. Cover successful forwarding, forwarding failures, and locally served cache hits with aggregate-counter assertions.
+ **Fault family:** One request has one accounting owner.
+
+3. **P1 — Task 3: The forwarding decision also forwards scheduled ticks.**
+ **Evidence:** `ServeScheduled` calls the same `serve` function with `stamp=false` ([activator.go:5940](internal/activator/activator.go:5940)). The planned decision checks HA and the forwarder, with no scheduled-delivery exclusion ([plan:127](docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:127)). Scheduled-token replacement happens inside the local proxy wrapper ([activator.go:5930](internal/activator/activator.go:5930)), which forwarding bypasses.
+ **Failure scenario:** A scheduled tick on A encounters cached holder B. It leaves through B’s public edge with A’s potentially missing or stale token. With a valid token, B treats it as visitor activity and resets the idle clock. A recurring schedule present on both boxes can now deliver through both runners.
+ **Fix:** Restrict this slice’s forwarding to visitor requests; preserve `ServeScheduled`’s existing local behavior until duties are implemented. Test that scheduled delivery never calls the forwarder.
+ **Fault family:** Scheduled delivery stays local and activity-invisible.
+
+4. **P1 — Tasks 2–3: Regional custom domains reject the new forward.**
+ **Evidence:** Regional aliases retain the target route, including HA ([regional.go:140](internal/edge/regional.go:140)), but `regionalGate` rejects every verified hop ([regional.go:76](internal/edge/regional.go:76)), before the activator. HA instances remain eligible regional targets ([regionaltarget.go:17](internal/release/regionaltarget.go:17)).
+ **Failure scenario:** A and B serve an HA instance behind a regional domain; B holds its lease. A forwards the domain’s request as required. B rejects it with 503 despite being the holder in the correct region. The response has no holder update, so A retains B and repeats the failure.
+ **Fix:** Specify how same-region HA forwarding passes this boundary while preserving cross-region refusal. Add regional apex and wildcard tests through two edges, including a cross-region negative case.
+ **Fault family:** Regional isolation permits legitimate same-region forwarding.
+
+5. **P2 — Task 2: The transport-sharing instructions omit timeout isolation.**
+ **Evidence:** The plan requires the same transport with a two-second connect timeout ([plan:99](docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:99)). Existing transports use five seconds and are cached solely by address ([edge.go:3510](internal/edge/edge.go:3510)). The prescribed extraction names only error and response hooks.
+ **Failure scenario:** Reusing an existing transport retains five seconds; changing the shared transport changes ordinary backhaul behavior. A closed-port test fails immediately and proves neither timeout.
+ **Fix:** Specify separate transport profiles or caches. Test both call orders with a controlled stalled dial, preserving ordinary backhaul’s timeout.
+ **Fault family:** Transport configuration cannot depend on cache population order.
+
+6. **P2 — Task 3: Same-box held leases miss the forwarded retry contract.**
+ **Evidence:** The special forwarded answer applies only when the owner reference differs from this box ([plan:130](docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:130)). Otherwise today’s held response uses the remaining lease lifetime ([activator.go:6064](internal/activator/activator.go:6064)).
+ **Failure scenario:** B restarts with its previous process’s unexpired lease. A forwards to B, which cannot acquire yet. B returns a potentially fifteen-minute retry instead of the required `Retry-After: 1`.
+ **Fix:** Apply the one-second retry to every forwarded held-lease refusal, including same-box ownership, with the appropriate holder diagnostic. Add that restart case.
+ **Fault family:** Forwarded refusal semantics are consistent.
+
+7. **P2 — Task 4: Wiring must handle an absent activator.**
+ **Evidence:** Task 4 requires `svc.SetForwarder(e)` on every box ([plan:162](docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:162)), but `svc` exists only when `cfg != nil` ([agent.go:415](internal/host/agent.go:415)); the ready callback runs outside that condition.
+ **Failure scenario:** A box without hibernation calls the setter on a nil service and panics unless the new setter explicitly supports nil receivers.
+ **Fix:** Require `if svc != nil` around the wiring and test both armed and unarmed cases.
+ **Fault family:** Optional activator wiring preserves startup.
+
+No P3 findings.
+
+NOT READY
\ No newline at end of file