carlos / platform Public

Region HA P1b-2 plan rev 3: N-HA10 forward at the front (round 2 stopping rule 2); round 3 brief

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 4be8e90f494241f77d2be261383cfbf5e0d1636a parent 50a843d
3 files changed, +243 −148
  • docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md +120 −148
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-3.md +53 −0
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R2.md +70 −0

CI passed — run details

Intent

Human

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

Attributed to this commit: 139 g CO₂e (8,918,641 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 4b646bdb8..3855d6d9f 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
@@ -2,207 +2,179 @@
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
-**Goal:** A request for a born-HA host that reaches a box which does not hold the host's lease is forwarded to the box that does, over the existing signed backhaul hop, instead of answering 503 "instance is waking elsewhere".
+**Goal:** A visitor request for a born-HA host that reaches a box which does not hold the host's lease is forwarded to the box that does, over the existing signed backhaul hop, instead of answering 503 "instance is waking elsewhere".
**Architecture:**
-- **The edge** learns to answer "is box `ref` in my view, and how do I dial it" from the edges files it already folds, and gains one forward call that reuses the backhaul hop with its own failure answers.
-- **The activator** keeps a bounded in-memory holder cache (host to box reference), forwards an HA host's request when the cache or a held-lease answer names a box in view, and never forwards a request that already arrived as a hop.
-- **The agent** wires the edge into the activator. Cold wakes stay where the request lands; nothing about leases changes.
+- **Forward at the front (Paul, 2026-10-30, after Astra round 2; stopping rule 2).** The forwarding box decides right after route lookup, before it runs any per-request step (gate, door scope, import and plan gates, guards, request records, rate limits, assets, compression, cache, usage, analytics). A forwarded request therefore has exactly one box doing every per-request step: the holder, as with cross-region backhaul today.
+- **The activator** answers one question for the edge: "should this request go to another box, and which?", from a bounded in-memory holder cache, or on a miss from one read of `lock.json`. It also answers forwarded requests it cannot serve with a holder diagnostic.
+- **The edge** checks the named box is in its view and forwards over the backhaul hop with its own failure answers.
-**Tech Stack:** Go 1.26, `internal/edge` (backhaul hop, `homeMap`), `internal/activator`, `internal/hafresh` (owner parsing).
+**Tech Stack:** Go 1.26, `internal/edge` (backhaul hop, `homeMap`), `internal/activator`, `internal/lease` (`ReadLock`), `internal/hafresh` (owner parsing).
**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 2, for Astra round 2 of 3. A P1 in round 3 goes to Paul as a cut.**
+**Status: rev 3, for Astra round 3 of 3 (final). A P1 in round 3 goes to Paul as a cut; no fourth round.**
-## Round 1 dispositions (`CODEX-PLAN-REGION-HA-P1B2-R1.md`, NOT READY: 4 P1, 3 P2)
+## Rulings
-| 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. |
+- **N-HA8 slicing (2026-10-29):** P1b-2 is forwarding only; see Scope.
+- **N-HA10 (Paul, 2026-10-30): forward at the front.** Rounds 1 and 2 both found a per-request step that ran on both boxes (the gate cookie, usage, analytics, asset fills, request records, rate-limit counters). Instead of patching each step, the forward happens before all of them. Cost accepted: on a cache miss, a cold wake on the forwarding box reads `lock.json` twice (one extra GET).
+
+## Round history
+
+| Round | File | Verdict |
+|---|---|---|
+| 1 | `CODEX-PLAN-REGION-HA-P1B2-R1.md` | NOT READY: 4 P1, 3 P2 |
+| 2 | `CODEX-PLAN-REGION-HA-P1B2-R2.md` | NOT READY: 1 P1, 3 P2 |
-## Scope (slicing, 2026-10-29)
+| Finding | Disposition in rev 3 |
+|---|---|
+| r1.1 P1 gate cookie | Gone by construction: the forwarding box forwards before `gate.Admit`, so the cookie is never stripped there. The holder's gate checks it. |
+| r1.2, r2.1 P1, r2.2 P2 accounting (usage, analytics, asset fills, records, rate-limit counters) | Gone by construction (N-HA10): none of those steps runs on the forwarding box for a forwarded request. Task 2's tests assert one owner for each. |
+| r1.3 P1 scheduled ticks | Gone by construction: ticks enter the activator through `ServeScheduled`, never through the edge's `ServeHTTP`, so they never meet the front-door decision. Task 3 keeps the witness. |
+| r1.4 P1 regional names | Kept: a route reached through a regional name never forwards (`up.regional != regionalNone`); it keeps today's answer. |
+| r1.5 P2 transport timeout | Kept: the forward has its own transport cache with a 2 s dial timeout. |
+| r1.6 P2, r2.3 P2 refusals of a forwarded request | One mapping (Global Constraints, "Answers"): a held lease of any owner answers `Retry-After: 1` and the holder's reference; every other refusal keeps today's answer and adds `X-Carlos-Holder: none`. |
+| r1.7 P2 nil activator | Gone: the edge discovers the interface on the activator it already has; a box with no activator has nothing to discover. |
+| r2.4 P2 test commands | Fixed: every named test is in its task's `-run` expression. |
-P1b is cut into slices (N-HA8). This slice, P1b-2, is forwarding only:
+## Scope
| Spec | In P1b-2 | Later |
|---|---|---|
-| §6.2 decision | Steps 1, 2, the held-by-owner-in-view and terminated outcomes of step 4 | §6.3's placement step ("free but not for A: forward to the box §6.3 chose") |
-| §6.3 cold-wake placement | Cold wakes happen where the request lands, as today | Proven reuse (forward to the box a clean marker names) and `ChooseRoomiest`: P1b-3. A restore from S3 costs about a second, so this is speed, not correctness. |
+| §6.2 decision | Steps 1, 2 and the held-by-owner-in-view outcome of step 4 | §6.3's placement outcome; the terminated outcome needs nothing new (P1b-1's acquire takes over on the holder's next request) |
+| §6.3 cold-wake placement | Cold wakes happen where the request lands, as today | Proven reuse and `ChooseRoomiest`: P1b-3 |
| §6.4 forwarded requests | All of it | |
-| §6.5 one retry by the first box | | Later slice. The holder cache is fed by every answer, so a stale holder costs one 503 with `Retry-After: 1`. |
-| §6.6 holder cache | All of it | |
-| §4.3 views | The view test: fresh edges file, same region and placement | Roles (`serving(r)` minus drain/platform, `booting`): P3, with the NLB |
-| §7 duties, §10 latch, §12.4 hairpin | | P1b-3 (duties); P3 (latch, hook, hairpin) |
+| §6.5 one retry by the first box | | A later slice |
+| §6.6 holder cache | All of it, plus a 10 s negative entry | |
+| §4.3 views | The view test | Roles, `booting`: P3 |
+| §7 duties, §10 latch, §12.4 hairpin | | P1b-3; P3 |
-Visible result on dev: with `hapair-a1` awake on leo, a request through sophie's address is answered by leo's instance (200), and a request through leo's address is served directly.
+Visible result on dev: with `hapair-a1` awake on leo, a request through sophie's address is answered by leo's instance (200).
## 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`.
+- **Which requests forward:** a request that reaches the front-door decision with a local route (`ok`), not a verified hop, not a door call, not from a tunnel, whose route is HA (`up.route.HA`), activator-managed (`up.hibernating`), and not reached through a regional name. Nothing else changes.
+- **Where:** in `Edge.ServeHTTP`, immediately after the `!ok` block (`internal/edge/edge.go` ~1731-1773) and before the login POST handling (~1774). Nothing between route lookup and that point may move.
+- **One hop, ever (§6.4).** The edge's structural rule stays. The front-door decision refuses verified hops before it asks the activator.
+- **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.
+- **Holder cache (§6.6):** host to box reference; at most 50,000 entries; an entry lives at most 1 hour; a negative entry ("not held elsewhere") lives 10 s. No S3 request on a hit.
+ - Set from a lock read naming an unexpired HA box-format owner (`hafresh.ParseOwner`, `HA` true) whose `Ref` is not this box's, 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 on `X-Carlos-Holder: none`.
+ - One lock read in flight per host (concurrent misses wait for it).
- **Answers.**
- - 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.
+ - A forward that cannot connect within 2 s: the forwarding box answers 503, `Retry-After: 10`, "instance is waking elsewhere; retry shortly".
+ - A forwarded request the receiving box cannot serve: if the acquire answers held (any owner, this box's own previous process included): 503, `Retry-After: 1`, `X-Carlos-Holder: <owner's ref>`, "instance is waking elsewhere; retry shortly". Any other refusal: today's status, `Retry-After` and body, plus `X-Carlos-Holder: none`.
- 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.
-- **Copy:** none new. Every body string above already exists. Headers are diagnostics.
-- **Cross-compile** darwin and windows. **Tests:** touched packages only, with `-run` and `nice -n 19`. Leave `GOCACHE` at its default.
-- **Census:** agent-run packages (`internal/edge`, `internal/activator`, `internal/host` wiring). Expected classes: `body` and `sites`.
+- **S3 budget:** a request for a host held elsewhere costs 0 S3 requests on a hit and one `lock.json` GET on a miss. A cold wake on the forwarding box after a miss costs one GET more than today. The negative entry caps repeated misses at one GET per host per 10 s per box.
+- **Copy:** none new. Headers are diagnostics.
+- **Cross-compile** darwin and windows; linux/arm64 under 64,000,000 bytes. **Tests:** touched packages only, `-run`, `nice -n 19`. `GOCACHE` default.
+- **Census:** agent-run packages. Expected classes: `body` and `sites`.
## Review Focus
-1. **The holder box dies.** A cached holder whose dial fails gets 503 `Retry-After: 10` and the entry is dropped, so the next request runs the acquire (and, after expiry, P1b-1's takeover). Task 2: `TestForwardHADialFailureIs503RetryTen`; Task 3: `TestHolderCacheDroppedOnUnreachable`.
-2. **The holder moved** (slept on B, woken on C). B answers `X-Carlos-Holder: C` or `none`, and A's cache follows. Task 3: `TestHolderCacheFollowsHolderHeader`.
-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`.
+1. **The holder dies.** The cached holder's dial fails: 503 `Retry-After: 10`, entry dropped, and the next request reads the lock again. Task 2: `TestForwardHADialFailureIs503RetryTen`; Task 3: `TestHolderCacheDroppedOnUnreachable`.
+2. **The holder moved.** `X-Carlos-Holder: C` or `none` from B updates A. Task 3: `TestHolderCacheFollowsHolderHeader`.
+3. **A forwarded request at a box that is not the holder.** Never forwarded on; answered with the holder. Task 3: `TestHoppedHeldAnswersWithTheHolder`.
+4. **A password-gated host and an asset request held elsewhere.** One gate check and one billable request, both on the holder. Task 2: `TestFrontForwardRunsNoLocalStep`.
+5. **A burst of requests for a cold host.** One lock read, not one per request. Task 3: `TestForwardTargetSingleFlight`.
---
-Tasks 2 and 3 are **[own review]** (stopping rule 3): they decide where a request is served. Task 5 is the dev drill and needs Paul's go.
+Tasks 2 and 3 are **[own review]** (stopping rule 3). Task 5 is the dev drill and needs Paul's go.
### Task 1: The edge's view of a box
-**Files:**
-- Modify: `internal/edge/homemap.go` (`edgesFileView`, a new method on `*homeMap`)
-- Create: `internal/edge/holderview.go`
-- Test: `internal/edge/holderview_test.go`
+**Files:** Modify `internal/edge/homemap.go`; create `internal/edge/holderview.go`; test `internal/edge/holderview_test.go`.
**Interfaces:**
- Produces:
- - `edgesFileView` gains `Generation string \`json:"generation"\`` (the writer's RFC 3339 write time, `internal/edgesfile/snapshot.go:86-88`).
- - `func (m *homeMap) boxInView(ref string, now time.Time) (dial string, ok bool)`: the rules in Global Constraints. `dial` is what `edgesfile.Reader.Dial` answers for that file, with this box's own file as `Self` and this edge's `privateDial`, exactly as `foldHomes` builds its reader (`homemap.go:796`).
- - `func HopVerified(r *http.Request) bool`: exported wrapper of `hopVerified(r.Context())` (`homemap.go:1218`), for the activator.
-
-- [ ] **Step 1: Write the failing tests** in `holderview_test.go`, building `homeSnapshot`s directly:
- - `TestHolderViewRules`: own file `{Box:"a", Region:"ie", Placement:"p", Generation:now}`; peer `b` same region and placement, generation now-1m → in view with its EIP; `b` generation now-16m → out; now+2m → out; region "uk" → out; placement "q" → out; `ref == "a"` (self) → out; unknown ref → out; own file absent → everything out.
- - `TestHolderViewDialsPrivateWithRegionHA`: `privateDial` true and a matching `PrivateIP`/`PrivateCIDR` → the private address (same answer as `foldHomes`).
- - `TestHopVerifiedExported`: a request whose context carries the verified-hop key answers true; a plain request false.
-- [ ] **Step 2: Run** `nice -n 19 go test ./internal/edge -run 'TestHolderView|TestHopVerifiedExported' -count=1`. Expected: FAIL (undefined).
-- [ ] **Step 3: Implement** the field, `boxInView` and `HopVerified`.
+ - `edgesFileView` gains `Generation string \`json:"generation"\`` (`internal/edgesfile/snapshot.go:86-88`).
+ - `func (m *homeMap) boxInView(ref string, now time.Time) (dial string, ok bool)`: the View rule. `dial` is `edgesfile.Reader.Dial` for that file with this box's own file as `Self` and this edge's `privateDial`, as `foldHomes` builds its reader (`homemap.go:796`).
+ - `func HopVerified(r *http.Request) bool`: exported `hopVerified(r.Context())`.
+
+- [ ] **Step 1: Write the failing tests:** `TestHolderViewRules` (own file `{Box:"a", Region:"ie", Placement:"p", Generation:now}`; peer `b` same region/placement at now-1m in view with its EIP; now-16m out; now+2m out; region "uk" out; placement "q" out; self out; unknown out; own file absent: all out), `TestHolderViewDialsPrivateWithRegionHA`, `TestHopVerifiedExported`.
+- [ ] **Step 2: Run** `nice -n 19 go test ./internal/edge -run 'TestHolderView|TestHopVerifiedExported' -count=1`. Expected: FAIL.
+- [ ] **Step 3: Implement.**
- [ ] **Step 4: Run** the Step 2 command. Expected: PASS.
- [ ] **Step 5: Commit** `region-ha p1b-2: the edge's view of a box`.
-### Task 2: The edge forwards an HA host's request to a named box [own review]
+### Task 2: The front-door forward in the edge [own review]
-**Files:**
-- Create: `internal/edge/forwardha.go`
-- Test: `internal/edge/forwardha_test.go` (reuse `backhaul_e2e_test.go`'s `newBackhaulSceneWith`, `converge`, `publishEdgesEntries`)
+**Files:** Create `internal/edge/forwardha.go`; modify `internal/edge/edge.go` (one call at the insertion point); test `internal/edge/forwardha_test.go` (two-edge scene from `backhaul_e2e_test.go`).
**Interfaces:**
-- Consumes: `boxInView` (Task 1); the backhaul hop signing, admission and proxy that `backhaulTo` uses (`edge.go:3398-3445`, `backhaulProxy` `:3589`).
+- Consumes: `boxInView` (Task 1); the hop signing and admission `backhaulTo` uses (`edge.go:3398-3445`, `backhaulProxy` `:3589`).
- Produces:
- - `type ForwardOutcome int` with `ForwardNotInView`, `ForwardUnreachable`, `ForwardDone`.
- - `type ForwardResult struct { Outcome ForwardOutcome; Holder string }`. `Holder` is the upstream's `X-Carlos-Holder` value when the upstream answered 503 with one ("" when absent; "none" passes through as "none").
- - `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`, 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):
- - `TestForwardHAReachesTheHolder`: betty's activator answers 200 "betty-served"; annie's `ForwardHA(w, r, host, "betty")` returns `ForwardDone`; the client gets 200 and betty's body; betty saw a verified hop for `host`.
- - `TestForwardHARefusesAHop`: a request already marked as a verified hop → `ForwardNotInView`, nothing written, no dial.
- - `TestForwardHANotInView`: ref "carol" with no file → `ForwardNotInView`, nothing written.
- - `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.
-- [ ] **Step 5: Commit** `region-ha p1b-2: the edge forwards an HA host's request to a named box`.
-
-### Task 3: The activator forwards HA hosts held elsewhere; the holder cache [own review]
-
-**Files:**
-- Create: `internal/activator/hacache.go` (the holder cache), `internal/activator/haforward.go` (the decision)
-- Modify: `internal/activator/activator.go` (`Service.serve` before `a.begin`, ~line 6018; `serveWakeError`'s `errLeaseHeld` case, ~line 6064)
-- Test: `internal/activator/haforward_test.go`
+ - `type HAForwarder interface { ForwardTarget(ctx context.Context, rt registry.Route) string; NoteForward(host string, res ForwardResult) }`. The edge finds it with a type assertion on its `Activator`; absent, nothing forwards.
+ - `type ForwardOutcome int` (`ForwardNotInView`, `ForwardUnreachable`, `ForwardDone`); `type ForwardResult struct { Outcome ForwardOutcome; Holder string }` (`Holder` is the upstream's `X-Carlos-Holder`, "" when absent).
+ - `func (e *Edge) frontForwardHA(w http.ResponseWriter, r *http.Request, host string, up upstream, hopped, isDoor bool) bool`: at the insertion point. False (serve here) unless every Global Constraints condition holds and `ForwardTarget` names a box. Then `forwardHA`, `NoteForward`, and true unless the outcome is `ForwardNotInView` (then false: serve here).
+ - `func (e *Edge) forwardHA(w http.ResponseWriter, r *http.Request, host, ref string) ForwardResult`: `boxInView` false or no mesh key: writes nothing, `ForwardNotInView`. Otherwise signs the hop for `host` and proxies through `backhaulAdmit` over its own transport cache (`forwardDialTimeout = 2 * time.Second`, a `forwardDial` seam for tests); `backhaulTo`'s 5 s transports are untouched. Connect failure: the 503 above, `MarkAnswered`, `ForwardUnreachable`. Otherwise the response is relayed as is: `ForwardDone` with `Holder` from `ModifyResponse`.
+
+- [ ] **Step 1: Write the failing tests** (annie forwards to betty, both "ie", same placement; a fake `HAForwarder` on annie naming "betty"):
+ - `TestFrontForwardReachesTheHolder`: 200 with betty's body; betty saw a verified hop.
+ - `TestFrontForwardRunsNoLocalStep`: a gated HA route on both edges. A visitor with a valid gate cookie at annie gets betty's 200; a visitor without one gets betty's login page. After one forwarded request annie's usage meter, analytics observer and request records count 0 and betty's count 1. A HEAD and a range request for an asset path: annie runs no asset fill; betty counts one request each.
+ - `TestFrontForwardSkips`: no forward (the fake is not asked) for a verified hop, a door call, a regional-name route, a non-HA route, a non-activator route, and an activator without the interface.
+ - `TestForwardHANotInView`: ref "carol" with no file → `ForwardNotInView`; annie serves locally.
+ - `TestForwardHADialFailureIs503RetryTen`: a stalling `forwardDial` → 503, `Retry-After: 10`, the body, `ForwardUnreachable` after 2 s; a later `backhaulTo` to the same address still uses its 5 s transport (both call orders).
+ - `TestForwardHAReadsHolderHeader`: betty's 503 with `X-Carlos-Holder: carol` reaches the client; `NoteForward` gets `{ForwardDone, "carol"}`; with `none`, `"none"`.
+ - `TestForwardHAUpgradeSwitchesProtocols`: a WebSocket upgrade gets 101 and echoes one message.
+- [ ] **Step 2: Run** `nice -n 19 go test ./internal/edge -run 'TestFrontForward|TestForwardHA' -count=1`. Expected: FAIL.
+- [ ] **Step 3: Implement.** Share the sign-admit-proxy code with `backhaulTo` through one unexported helper taking the transport, error answer and response hook as parameters.
+- [ ] **Step 4: Run** the Step 2 command and `nice -n 19 go test ./internal/edge -run 'Backhaul|Hop|Home|Regional|Gate' -count=1`. Expected: PASS.
+- [ ] **Step 5: Commit** `region-ha p1b-2: the edge forwards an HA host's request at the front door`.
+
+### Task 3: The activator's answer and its holder cache [own review]
+
+**Files:** Create `internal/activator/hacache.go`, `internal/activator/haforward.go`; modify `internal/activator/activator.go` (`serveWakeError`, ~6026-6070); test `internal/activator/haforward_test.go`.
**Interfaces:**
-- Consumes: `edge.ForwardHA`, `edge.ForwardResult`, `edge.HopVerified` (Tasks 1-2); `hafresh.ParseOwner`; `errLeaseHeld.holder` (the owner string, `activator.go:1168`).
+- Consumes: `edge.HAForwarder`, `edge.ForwardResult`, `edge.HopVerified`; `lease.ReadLock` (`internal/lease/ha.go:169`); `hafresh.ParseOwner`; `lease.CurrentSelf().Ref`.
- Produces:
- - `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 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. 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).
-
-- [ ] **Step 1: Write the failing tests** in `haforward_test.go` with a fake `Forwarder` recording calls and returning scripted results, and the existing HA lease fakes (as `hatakeover_test.go` sets up):
- - `TestHAHeldElsewhereIsForwarded`: lock held by `box/v1;ref=b;iid=i-b;pid=7;ha=1`, unexpired; the request is forwarded once to "b"; no 503 written by the activator; the cache now names "b".
- - `TestHolderCacheHitSkipsTheAcquire`: cache names "b"; the forward happens with zero lock reads (the fake store counts GETs).
- - `TestHoppedRequestIsNeverForwarded`: the same lock, the request marked as a verified hop → no forward; 503, `Retry-After: 1`, `X-Carlos-Holder: b`.
- - `TestHoppedRequestAcquiresAndServes`: a verified hop for a host with a clean release marker → acquired and served here.
- - `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.
-- [ ] **Step 3: Implement** `hacache.go`, `haforward.go`, `SetForwarder`, and the two insertion points. Replace the "mesh seam" comment at `activator.go:~6013` with one line pointing at `haforward.go`.
+ - `func (a *Service) ForwardTarget(ctx context.Context, rt registry.Route) string`: "" when `!rt.HA`, or the host is awake or waking here (the live-entry check `begin` makes first). A positive cache hit: its ref. A negative hit: "". A miss: one `ReadLock` (single-flight per host); an unexpired HA owner with another `Ref` sets the entry and returns it; anything else sets the 10 s negative entry and returns "". A read error returns "" and caches nothing.
+ - `func (a *Service) NoteForward(host string, res edge.ForwardResult)`: `ForwardUnreachable`, `ForwardNotInView` and `Holder "none"` drop the entry; a `Holder` ref sets it.
+ - `var _ edge.HAForwarder = (*Service)(nil)`.
+ - `holderCache` with `get(host) (ref string, positive, found bool)`, `set`, `setNegative`, `drop`; 50,000 entries (oldest evicted), 1 h and 10 s lifetimes, `now` seam.
+ - A successful acquire drops the host's entry.
+ - `serveWakeError`, for a request with `edge.HopVerified(r)`: `errLeaseHeld` → 503, `Retry-After: 1`, `X-Carlos-Holder: <ref of errLeaseHeld.holder>`, the existing body; every other branch → today's answer plus `X-Carlos-Holder: none`.
+
+- [ ] **Step 1: Write the failing tests** (HA lease fakes as in `hatakeover_test.go`, a fake store counting GETs):
+ - `TestForwardTargetNamesTheHolder`: lock held by `box/v1;ref=b;iid=i-b;pid=7;ha=1`, unexpired → "b", one GET; again → "b", no GET.
+ - `TestForwardTargetServesHere`: awake here → ""; a release marker → "" and a negative entry (a second call within 10 s makes no GET; at 11 s one GET); a legacy route → "" with no GET.
+ - `TestForwardTargetSingleFlight`: 20 concurrent misses → one GET.
+ - `TestHolderCacheDroppedOnUnreachable`, `TestHolderCacheFollowsHolderHeader` ("c" sets, "none" drops), `TestHolderCacheBounds` (50,001 sets keep 50,000; 61 min reads absent), `TestTakingTheLeaseDropsTheEntry`.
+ - `TestHoppedHeldAnswersWithTheHolder`: a verified hop, held by "b" → 503, `Retry-After: 1`, `X-Carlos-Holder: b`; held by this box's own ref (previous process) → the same with its own ref.
+ - `TestHoppedOtherRefusalsSayNone`: a verified hop with a config refusal, a lease refusal and a wake timeout → today's status and `Retry-After`, plus `X-Carlos-Holder: none`.
+ - `TestScheduledTickNeverForwards`: `ServeScheduled` for a host held by "b" → today's answer; `ForwardTarget` not called.
+- [ ] **Step 2: Run** `nice -n 19 go test ./internal/activator -run 'TestForwardTarget|TestHolderCache|TestTakingTheLeaseDrops|TestHopped|TestScheduledTickNeverForwards' -count=1`. Expected: FAIL.
+- [ ] **Step 3: Implement.** Replace the "mesh seam" comment at `activator.go:~6013` with one line pointing at `haforward.go`.
- [ ] **Step 4: Run** the Step 2 command and `nice -n 19 go test ./internal/activator -run 'HA|SameBox|Takeover|Lease' -count=1`. Expected: PASS.
-- [ ] **Step 5: Commit** `region-ha p1b-2: the activator forwards HA hosts held elsewhere`.
+- [ ] **Step 5: Commit** `region-ha p1b-2: the activator names a holder to forward to`.
-### Task 4: The agent wires the edge into the activator
+### Task 4: Wiring and builds
-**Files:**
-- Modify: `internal/host/agent.go` (the `RunWithActivatorReady` ready callback, ~line 1025)
-- Test: the nearest existing agent-wiring test in `internal/host`
-
-**Interfaces:**
-- Consumes: `Service.SetForwarder` (Task 3); `*edge.Edge` satisfies `activator.Forwarder` (Task 2).
+**Files:** test `internal/host/` (the nearest agent-wiring test).
-- [ ] **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, 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`.
+- [ ] **Step 1: Write the test** `TestAgentActivatorForwards`: the activator the agent hands the edge (`agent.go:724`, `act = svc`) satisfies `edge.HAForwarder`; with no activator configured, the edge gets none and forwards nothing.
+- [ ] **Step 2: Run** it, then the three builds and the linux/arm64 size. Expected: PASS, under 64,000,000 bytes.
+- [ ] **Step 3: Commit** `region-ha p1b-2: wiring check`.
### Task 5: Dev drill. Needs Paul's go before anything touches dev.
-Release dev-only and roll as the README and the roll-order rule say. Log every step with UTC times.
+Release dev-only as the README and the roll-order rule say. Log UTC times.
-- [ ] **Step 1: Forward.** With `hapair-a1` awake on leo (wake it through leo), send 20 requests through sophie's address (`curl --resolve`). Expected: 20 × 200 with leo's `host=`; sophie's log shows one lock read at most (the first, a cache miss), then none.
-- [ ] **Step 2: Upgrade.** One WebSocket request through sophie, if the test app has an echo path; otherwise note it as covered by `TestForwardHAUpgradeSwitchesProtocols`.
-- [ ] **Step 3: Holder dies.** `systemctl kill -s KILL carlos-edge` on leo with probes through sophie every 2 s. Expected: 503 `Retry-After: 10` (not 502) while leo is down, then 200 again after leo's same-box re-take (P1a), with sophie forwarding to leo again.
-- [ ] **Step 4: Report** on amadan #421: request counts, the S3 reads on sophie, the outage window.
+- [ ] **Step 1: Forward.** `hapair-a1` awake on leo; 20 requests through sophie's address. Expected: 20 × 200 from leo's instance; sophie reads `lock.json` at most once.
+- [ ] **Step 2: One owner.** Leo's usage for the 20 requests counts 20; sophie's counts 0.
+- [ ] **Step 3: Holder dies.** `systemctl kill -s KILL carlos-edge` on leo, probes through sophie every 0.5 s. Record: the 503 `Retry-After: 10` window (the unit restarts in about 1 s), and when 200s resume after leo's same-box re-take (P1a waits for its lease to expire).
+- [ ] **Step 4: Report** on amadan #421.
## Census
-Agent-run changes only. Run `make census-card`, CLAIMS, `make census-propose`; a cross-model reviewer approves. If the record-write census (9B8) reports a changed digest, add a re-pin layer as `fresh_box_446_census_test.go` did.
+Agent-run changes only: `make census-card`, CLAIMS, `make census-propose`, cross-model reviewer. If 9B8 reports a changed digest, add a re-pin layer as `fresh_box_446_census_test.go` did.
## Spec gaps and follow-ups
-- §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.
+- §6.3 placement and the over-capacity alert: P1b-3. §6.5's retry: later.
+- **Regional names** keep today's answer on a box that is not the holder; same-region forwarding for them is a later slice.
+- **Cross-region requests** for an HA host backhaul to the box the fold elects as home. If it is not the holder, the hop is answered 503 `Retry-After: 1` with `X-Carlos-Holder` and not forwarded on: no worse than today. A far edge using the holder is the §6.5 slice.
+- **Roles, `booting`, the serving latch, the lifecycle hook, hairpin:** P3.
diff --git a/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-3.md b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-3.md
new file mode 100644
index 000000000..018a2559e
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-BRIEF-3.md
@@ -0,0 +1,53 @@
+# Review brief: Region HA P1b-2 plan (forwarding between boxes), round 3 of 3 (final)
+
+Repo carlos/platform, branch `region-ha-p1b2-forwarding`, the commit that adds this brief (rev 3).
+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 3 (final)
+
+Earlier rounds: `CODEX-PLAN-REGION-HA-P1B2-R1.md` (NOT READY: 4 P1, 3 P2) and `CODEX-PLAN-REGION-HA-P1B2-R2.md` (NOT READY: 1 P1, 3 P2).
+After round 2, stopping rule 2 applied to the accounting fault family and Paul ruled N-HA10 (in the plan): forward at the front, right
+after route lookup and before every per-request step. N-HA10 is fixed: do not argue for the rev 2 design. Check that the front-door
+placement really runs no per-request step on the forwarding box (walk `Edge.ServeHTTP` from the top to the insertion point and list
+everything that has already run), and that nothing the holder needs is lost by forwarding that early.
+
+First give one line per P1 and P2 from round 2: resolved, partly, or not. Carry every unresolved finding forward at its severity, then add
+new findings. This is round 3: a NOT READY also says whether the P1s share one cause, and whether refusing the case up front or cutting
+the feature would remove them.
+
+## 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-R2.md b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R2.md
new file mode 100644
index 000000000..370db4c48
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R2.md
@@ -0,0 +1,70 @@
+- **r1.1 P1 — Resolved:** capture before gate admission and restore on the outbound hop preserves the visitor’s cookie.
+- **r1.2 P1 — Partly:** ordinary forwarding avoids duplicate usage and analytics, but asset fills still produce incorrect billing; request records also remain duplicated.
+- **r1.3 P1 — Resolved:** forwarding requires `stamp=true`.
+- **r1.4 P1 — Resolved:** regional requests explicitly retain today’s refusal.
+- **r1.5 P2 — Resolved:** separate transport caches preserve timeout isolation.
+- **r1.6 P2 — Resolved:** the instructions explicitly include same-box held leases.
+- **r1.7 P2 — Resolved:** wiring requires `svc != nil`.
+
+1. **P1 — Tasks 2–3: Holder-owned accounting bills internal asset fills as visitor deliveries.**
+
+ **Evidence:** The plan unconditionally suppresses the forwarding edge’s accounting ([plan:115](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:115)). However, `serveAssetLocal` reaches the activator through `fillFromApp` ([assetcatch.go:318](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/edge/assetcatch.go:318), `:586`). The fill inherits the original outcome through its context (`:534`, `:627`), but constructs a new GET without the visitor’s Range or conditional headers (`:644`). A buffered visitor receives its eventual answer separately (`:553`).
+
+ **Failure scenario:** A receives a cold-cache `HEAD` for an asset while B holds the lease. A constructs a GET and forwards it to B. B bills one GET and the full asset body. The forwarded marker suppresses A’s accounting, although A delivers no body to the visitor. A conditional request answered with 304 or a range request has the same problem. `TestForwardHABillsOnlyTheHolder` does not exercise this path.
+
+ **Fix:** Distinguish an internal fill from a visitor delivery before assigning accounting ownership. Add two-edge tests asserting aggregate request counts and actual delivered bytes for HEAD, conditional and range requests, plus coalesced fills.
+
+ **Fault family:** **One request has one accounting owner**, continuing r1.2. This family has findings in two consecutive rounds, so stopping rule 2 applies. The choices are an admission refusal for the unsupported case, cutting HA asset catching, or enforcing the delivery-accounting invariant in one place with guard tests. I recommend the invariant and tests; another isolated observer patch is insufficient.
+
+2. **P2 — Task 2: The forwarding marker leaves request records duplicated.**
+
+ **Evidence:** The plan lists usage, analytics and edge-error emission as the observers to suppress. The same defer also calls `observeRecords` ([edge.go:1909](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/edge/edge.go:1909)). That function excludes tunnel deliveries, but does not exclude forwarding ([reqrecords.go:57](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/edge/reqrecords.go:57)).
+
+ **Failure scenario:** One forwarded 404 produces two request counts and two not-found records. A watched guard match produces two Match records. A can also claim knowledge of a wake that happened elsewhere.
+
+ **Fix:** Include request recording in the ownership decision. Assert one aggregate Response/Match for ordinary, watched and 404 forwarding, while retaining A’s record when A answers locally. Also cover observe-mode rate-limit counters: `noteRateLimited` updates usage immediately on both boxes ([ratelimit.go:145](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/edge/ratelimit.go:145)).
+
+ **Fault family:** One request has one accounting owner.
+
+3. **P2 — Task 3: Non-held refusals contradict the forwarded-response contract.**
+
+ **Evidence:** Global Constraints require an unservable forwarded request to receive 503, `Retry-After: 1`, and a holder diagnostic ([plan:58](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:58)). Decision step 4 instead preserves today’s answer and adds only `X-Carlos-Holder: none` (`:153`). Today’s config refusal returns 30 seconds; lease refusal returns 10 seconds ([activator.go:6046](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/activator/activator.go:6046)).
+
+ **Failure scenario:** A forwarded request reaches B, whose acquisition is refused. It receives `Holder: none` with the wrong retry interval and body.
+
+ **Fix:** Specify one response mapping for unservable HA hops, preserving cancellation behavior. Test config refusal, lease refusal and wake timeout.
+
+ **Fault family:** Forwarded refusal semantics are consistent.
+
+4. **P2 — Task 3: Both prescribed test commands omit two required regression tests.**
+
+ **Evidence:** Neither expression at [plan:169](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:169) or `:171` selects `TestScheduledTickNeverForwards` or `TestRegionalRequestNeverForwards`.
+
+ **Failure scenario:** Both commands pass while the tests protecting r1.3 and r1.4 never run.
+
+ **Fix:** Add both names to the targeted expression.
+
+ **Fault family:** Required regression witnesses execute.
+
+The remaining request-path audit is:
+
+| Path between lookup and activator | Effect on forwarding |
+|---|---|
+| Regional gate; exact-home and lookup-miss branches | Existing hop refusals remain intact. The activator’s additional hop check prevents onward forwarding. |
+| Login POST parsing and password gate | Login answers return before forwarding. Admitted visitor requests retain their cookies under the revision. |
+| Door ownership and signed door exemption | Rechecking ownership is safe; the shared backhaul path preserves the receiving limiter’s door exemption. |
+| Import and plan-disabled gates | Recheck local policy without waking anything. Their refusals return before the activator. |
+| Guard checks and request recording | Blocking returns locally; watched matches reach both observers. Duplicate records are finding 2. |
+| Upgrade tracking and admission | Both edges can track their own connection leg. The existing HTTP/1.1 proxy and hijackable writer path support upgrades. |
+| Plan throttle and instance rate limit | Each edge consults its separate local limiter. Refusals stop forwarding; observe-mode counters need the ownership treatment in finding 2. |
+| Local assets and generated fills | Internal request conversion breaks delivery accounting: finding 1. Verified-hop context survives conversion, so it does not open a forwarding loop. |
+| Compression and shared response cache | Existing encoding prevents double compression. Local hits return before forwarding; generation-managed forwarded responses lack local generation provenance and are refused storage by `maybeStore`. |
+| Usage, analytics and edge errors | Ordinary relayed responses are covered by the proposed marker; locally answered failures remain observable. |
+
+The view rules use the retained files’ generation timestamps, so carrying a last-good file forward does not refresh its age. The specified region, placement, self-exclusion and reader-specific dial checks are consistent with the existing fold. Cache invalidation permits a later acquire after dial failure or `Holder: none`; an uncontended held-lock miss retains today’s one GET.
+
+Task 5 is mechanically a dev crash/restart drill. The unit restarts automatically after one second, so two-second probes may miss the dial-failure window. Recovery can still wait for the previous lease’s expiry. Record those times explicitly; no live dev state was checked.
+
+Reviewed commit `50a843dfa2a3a3ec1c4fedc32ea3ffbedf374bc4`. No files changed, subagents spawned, or Go suites run. No P3 findings.
+
+NOT READY
\ No newline at end of file