carlos / platform Public

Region HA P1b-2 plan rev 4 (final): round 3 refusals applied with no fourth round (Paul): headerless 503 drops the holder; view requires the same data bucket and secrets-key fingerprint; HA-only refusal mapping incl. the fence; full one-owner tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev c01c4d4e7d24c8e8bd925ed1ef5d34092cdbd86f parent 4be8e90
2 files changed, +88 −12
  • docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md +24 −12
  • docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R3.md +64 −0

CI failed — run details

Intent

Human

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

Attributed to this commit: 66.7 g CO₂e (8,388,230 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 3855d6d9f..ad4839893 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,7 @@
**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 3, for Astra round 3 of 3 (final). A P1 in round 3 goes to Paul as a cut; no fourth round.**
+**Status: rev 4, final. Astra round 3 NOT READY (2 P1, 2 P2), each P1 closed by a refusal up front; Paul (2026-10-30): apply as rev 4 with no fourth round, then build subagent-driven. Review closed.**
## Rulings
@@ -26,6 +26,14 @@
|---|---|---|
| 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 |
+| 3 | `CODEX-PLAN-REGION-HA-P1B2-R3.md` | NOT READY: 2 P1, 2 P2; applied as rev 4 (Paul), no fourth round |
+
+| Round 3 finding | Disposition in rev 4 |
+|---|---|
+| r3.1 P1 a headerless 503 from the holder never invalidates the cache | Refusal up front: a forwarded response with status 503 and no `X-Carlos-Holder` drops the entry (`Holder` reported as ""); the next request reads the lock. Task 3 test `TestHolderCacheDroppedOnHeaderless503`; Task 2 test `TestForwardHAHolderLostHost`. |
+| r3.2 P1 the view admits a box with another data store | Refusal up front: a box is in view only when its published `data_bucket` is non-empty and equals this box's, and its `secrets_key_fp` equals this box's (both empty counts as equal: a deployment without a key; one empty and one set is a mismatch). Task 1. |
+| r3.3 P2 the diagnostic mapping misses the early fence refusal and changes legacy hops | The mapping applies only to HA routes, and to every refusal exit of an HA hop, `maintenanceResponse` included. Legacy hops keep today's answers. Task 3. |
+| r3.4 P2 the accounting test does not prove the fixes | Task 2's one-owner test uses an ungated asset route with catching on, and asserts requests and delivered bytes for HEAD, range, conditional and coalesced requests, watched and 404 request records, and observe-mode rate-limit counters. |
| Finding | Disposition in rev 3 |
|---|---|
@@ -57,14 +65,14 @@ Visible result on dev: with `hapair-a1` awake on leo, a request through sophie's
- **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.
+- **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, and its `data_bucket` is non-empty and equals this box's, and its `secrets_key_fp` equals this box's (both empty is equal; one empty is a mismatch). 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`.
+ - Dropped when this box takes the lease, when the named box is not in view, when a forward fails to connect, on `X-Carlos-Holder: none`, and on a forwarded 503 that carries no `X-Carlos-Holder` (the holder's existing no-route refusal).
- One lock read in flight per host (concurrent misses wait for it).
- **Answers.**
- 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`.
+ - A forwarded request for an HA route that the receiving box cannot serve (legacy routes keep today's answers): 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, from every refusal exit (`serveWakeError` and the early `maintenanceResponse` fence refusal alike): 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 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.
@@ -89,11 +97,11 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3). Task 5 is the dev drill an
**Interfaces:**
- Produces:
- - `edgesFileView` gains `Generation string \`json:"generation"\`` (`internal/edgesfile/snapshot.go:86-88`).
+ - `edgesFileView` gains `Generation string \`json:"generation"\``, `DataBucket string \`json:"data_bucket"\`` and `SecretsKeyFP string \`json:"secrets_key_fp"\`` (the writer's names, `internal/host/edgesfile.go:284, 336`; `internal/edgesfile/snapshot.go:48, 66, 86`).
- `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 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; peer `data_bucket` empty out; peer bucket differs out; `secrets_key_fp` differs out; peer empty and own set out; both empty in), `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.
@@ -107,13 +115,14 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3). Task 5 is the dev drill an
- Consumes: `boxInView` (Task 1); the hop signing and admission `backhaulTo` uses (`edge.go:3398-3445`, `backhaulProxy` `:3589`).
- Produces:
- `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).
+ - `type ForwardOutcome int` (`ForwardNotInView`, `ForwardUnreachable`, `ForwardDone`); `type ForwardResult struct { Outcome ForwardOutcome; Status int; Holder string }` (`Status` is the upstream's status; `Holder` is its `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.
+ - `TestFrontForwardRunsNoLocalStep`: (a) a gated HA route on both edges: a visitor with a valid gate cookie at annie gets betty's 200; without one, betty's login page. (b) An ungated HA route with asset catching on: a GET, a HEAD, a range request, a conditional request (304) and two coalesced concurrent GETs for one asset path. For each, annie runs no asset fill and records nothing (usage requests and bytes, analytics, request records); betty records exactly one request each with the bytes the client received. (c) A watched guard match and a 404: one Match record and one not-found record, both on betty. (d) Observe-mode rate limiting: betty's counter moves by one per request, annie's not at all.
+ - `TestForwardHAHolderLostHost`: betty stays in view but no longer serves the host; annie forwards, betty answers its existing no-route 503 (`Retry-After: 2`, no `X-Carlos-Holder`); `NoteForward` gets `{ForwardDone, ""}` with status 503.
- `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).
@@ -132,11 +141,11 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3). Task 5 is the dev drill an
- Consumes: `edge.HAForwarder`, `edge.ForwardResult`, `edge.HopVerified`; `lease.ReadLock` (`internal/lease/ha.go:169`); `hafresh.ParseOwner`; `lease.CurrentSelf().Ref`.
- Produces:
- `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.
+ - `func (a *Service) NoteForward(host string, res edge.ForwardResult)`: `ForwardUnreachable`, `ForwardNotInView`, `Holder "none"`, and `Status` 503 with `Holder` "" 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`.
+ - For an HA route (`rt.HA`) and a request with `edge.HopVerified(r)`, at every refusal exit (`serveWakeError` and the early fence refusal at `activator.go:~5966`): `errLeaseHeld` → 503, `Retry-After: 1`, `X-Carlos-Holder: <ref of errLeaseHeld.holder>`, the existing body; every other refusal → today's answer plus `X-Carlos-Holder: none`. Cancellation keeps today's behaviour. Legacy routes are unchanged.
- [ ] **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.
@@ -144,9 +153,11 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3). Task 5 is the dev drill an
- `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`.
+ - `TestHoppedOtherRefusalsSayNone`: an HA verified hop with a config refusal, a lease refusal, a wake timeout and the early fence refusal → today's status and `Retry-After`, plus `X-Carlos-Holder: none`.
+ - `TestLegacyHopUnchanged`: a legacy verified hop held elsewhere → today's 503 and `Retry-After`, no `X-Carlos-Holder`.
+ - `TestHolderCacheDroppedOnHeaderless503`: `NoteForward` with `{ForwardDone, 503, ""}` drops the entry; `{ForwardDone, 200, ""}` keeps it.
- `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 2: Run** `nice -n 19 go test ./internal/activator -run 'TestForwardTarget|TestHolderCache|TestTakingTheLeaseDrops|TestHopped|TestScheduledTickNeverForwards|TestLegacyHopUnchanged' -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 names a holder to forward to`.
@@ -163,6 +174,7 @@ Tasks 2 and 3 are **[own review]** (stopping rule 3). Task 5 is the dev drill an
Release dev-only as the README and the roll-order rule say. Log UTC times.
+- [ ] **Step 0: Pre-check the view.** leo's and sophie's edges files carry the same non-empty `data_bucket` and the same `secrets_key_fp`. In mid-October leo had no `CARLOS_SECRETS_KEY` while sophie did; if they still differ, copying the dev secrets key to leo as dennis got it (2026-10-15, SSM path) needs Paul's go, and forwarding stays refused until then.
- [ ] **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).
diff --git a/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R3.md b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R3.md
new file mode 100644
index 000000000..838fefcde
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-PLAN-REGION-HA-P1B2-R3.md
@@ -0,0 +1,64 @@
+- **r2.1 P1 — Resolved:** forwarding before asset handling preserves the visitor request and puts delivery accounting on the holder.
+- **r2.2 P2 — Partly:** placement removes duplicate observers, but the prescribed tests omit watched/404 records and rate-limit counters.
+- **r2.3 P2 — Partly:** the response mapping is consistent now, but some activator refusals bypass its proposed implementation.
+- **r2.4 P2 — Resolved:** the commands select the named tests; regional exclusions are covered by `TestFrontForwardSkips`.
+
+1. **P1 — Tasks 2–3: A cached holder’s existing “not served here” answer never invalidates the cache.**
+
+ **Evidence:** [The planned invalidation rules](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:135) drop entries on connection failure, exclusion from view, or `Holder: none`. A verified hop whose route is absent exits through [the lookup-miss branch](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/edge/edge.go:1731). Its [existing response](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/edge/homemap.go:1351) is 503, `Retry-After: 2`, without `X-Carlos-Holder`.
+
+ **Failure scenario:** A caches B. B stops serving H and releases its lease, while continuing to publish a fresh edges file for other hosts. A forwards to B, receives that headerless 503, and reports `{ForwardDone, ""}`. Nothing drops the entry. Requests through A continue failing for up to an hour instead of discovering the released lock and waking locally. Removing a route already retires its instance through [the existing activator path](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/activator/activator.go:5646).
+
+ **Fix:** Preserve the existing no-route response, but carry sufficient response information into the cache decision to invalidate this case. Conservatively dropping the holder on a headerless 503 would suffice. Add a two-edge test where B loses H but remains in view.
+
+ **Fault family:** A stale holder must not prevent rediscovery.
+
+2. **P1 — Task 1: The view test permits forwarding across different data stores.**
+
+ **Evidence:** [The plan’s view rule](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:60) compares age, region and placement. [Spec §4.3](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md:145) also requires the same data bucket and deployment secrets-key fingerprint. Both are [already published](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/host/edgesfile.go:1030), but the proposed reader gains only `Generation`.
+
+ **Failure scenario:** A retains B as holder while B restarts with a different hibernation bucket. B’s fresh file still matches region and placement, so A forwards. B acquires against [its own configured bucket](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/activator/hawake.go:318), where H’s lock and data can be absent, and starts H from an empty store rather than A’s authoritative replica.
+
+ **Fix:** Decode and validate the published bucket and fingerprint evidence before accepting a peer. Reject missing or mismatched evidence. Add mismatch tests to `TestHolderViewRules`.
+
+ **Fault family:** Forwarding peers share the authoritative storage and configuration boundary.
+
+3. **P2 — Task 3: The diagnostic mapping misses early refusals and changes legacy hops.**
+
+ **Evidence:** [Task 3](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:139) changes `serveWakeError` whenever `HopVerified` is true. However, [the initial fence refusal](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/activator/activator.go:5966) calls `maintenanceResponse` directly. That [response helper](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/activator/maintenance.go:344) supplies no holder diagnostic. Conversely, the proposed condition lacks an HA check.
+
+ **Failure scenario:** A forwarded HA request refused by the initial fence lacks the promised `Holder: none`, retaining its sender’s stale entry. A legacy held-lease hop receives the new one-second retry despite the HA-only scope.
+
+ **Fix:** Scope the mapping to HA hops and enforce it consistently across activator refusal exits, preserving cancellation behavior. Add fenced-HA and legacy-hop regression cases.
+
+ **Fault family:** Forwarded refusal semantics are consistent.
+
+4. **P2 — Task 2: The regression test specification does not prove the earlier accounting fixes.**
+
+ **Evidence:** [The proposed test](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/docs/superpowers/plans/2026-10-29-region-ha-p1b2-forwarding.md:116) specifies a gated route, request counts, and HEAD/range asset requests. [Asset catching explicitly excludes gated routes](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b2/internal/edge/assetcatch.go:267). It also omits delivered-byte assertions, conditional responses, coalesced fills, watched/404 records and observe-mode rate-limit counters.
+
+ **Failure scenario:** The test passes without exercising asset catching or detecting duplicate Match records and rate-limit counts.
+
+ **Fix:** Use a separate ungated asset route with catching enabled. Assert aggregate requests and delivered bytes for HEAD, range, conditional and coalesced requests. Add watched/404 record and observe-mode limiter assertions.
+
+ **Fault family:** One request has one accounting owner.
+
+The `ServeHTTP` audit confirms that, before the insertion point, the forwarding box has already:
+
+- Split the host and captured GeoIP headers.
+- Checked reserved door, steering, tunnel and store-door branches.
+- Accepted or rejected the hop and scrubbed internal asset headers.
+- Computed GeoIP metadata and attached the forwarding-proof key.
+- Resolved the route and evaluated regional, exact-home and lookup-miss branches.
+
+For a request reaching the new forward, login parsing, policy gates, observers, guards, assets, compression, caching and rate limits have not run. The shared backhaul path preserves Host, cookies and the unread body, carries the client address, and sends the GeoIP result for adoption by the holder.
+
+Separate transports can preserve the existing five-second backhaul behavior while providing the new two-second dial timeout. The existing HTTP/1.1 proxy path supports WebSocket upgrades. A positive cache hit avoids discovery GETs; a discovery miss costs one GET. The extra acquire GET for a local cold wake is explicitly accepted by N-HA10.
+
+Task 5 is mechanically runnable as a crash/restart drill: `carlos-edge.service` specifies `Restart=always` and `RestartSec=1`. Live dev configuration was not checked, and the short connection-failure window may escape sampling.
+
+No P3 findings. Reviewed the requested commit; no files changed, subagents spawned, or tests run.
+
+The two P1s have separate causes: incomplete peer qualification and incomplete cache invalidation. Rejecting mismatched peers up front removes the first storage hazard. Dropping cached targets on the existing no-route refusal removes the cache failure. Cutting inter-box forwarding removes both exposures. This is round 3 of 3; no fourth round is proposed.
+
+NOT READY
\ No newline at end of file