carlos / platform Public

docs: add final review follow-ups to the G2 note

Co-Authored-By: GPT-6 Astra <noreply@openai.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev a94d77c4c3a40f5f098bbbca2a8b3cdb3b4e0870 parent 481942f
1 file changed, +31 −0
  • docs/superpowers/notes/2026-11-06-region-ha-g2-follow-ups.md +31 −0

Intent

Human

<task-notification> <task-id>ad53056edaa6a027e</task-id> <tool-use-id>toolu_016u3TAZCw9mL4wxWpZbR1XD</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/5555438b-7fa2-408d-b2c4-9fa87ea89332/tasks/ad53056edaa6a027e.output</output-file> <status>completed</status> <summary>Agent "Final re-review R2 + census delta (Opus)" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Review verdict: READY.** There are no P1 or P2 findings. The activator witnesses wouldn't run in my sandbox, which blocks socket creation, so for those I'm relying on the implementer's reported passes and on reading the test code. The provision census, backoff and retired-scope tests passed when I ran them. **Findings from round 1:** - **P2-1:** ADDRESSED at `internal/activator/haleaseloss.go:103-111`. A box outside the pool now drops only startup-only latches (no old entry, no recovery entry, no running worker). The owed release obligation is untouched and still settled by `retryOwedMarkers`. - **P2-2:** ADDRESSED. One small naming problem is left (N3 below). - **P3-1:** ADDRESSED at `poolwithdrawal.go:259-291`. A fence is lifted only by its own completed job, never while a job runs. The job identity and owner are re-checked under the lock first. - **P3-2:** ADDRESSED at `provision/poolwithdrawal.go:95-107` and `:177-236`. The backoff resets when the row or the served pools change. - **P3-3:** ADDRESSED at `provision/haingress.go:40` and `edge/haingress.go:88-90`. - **P3-4:** ADDRESSED as follow-up item 13. - **P3-5:** ADDRESSED. I confirmed that `ScanHAIngress` has no direct reads of its own. Its reads are covered by the `Reconcile` and `refreshHAIngressAtStart` claims, so there is no gap. - **Controller P2 (scope the pool refusal to HA and Provisioned rows):** ADDRESSED in the activator. The pool boundary holds: - Provisioned is set when the reconciler creates a row, re-saving the row never clears it, and only deleting the row does. - Hand-added rows marked HA are still refused. - The HA lease acquire checks are unchanged. - The duty path treats non-Provisioned rows as legacy before the edge's unscoped snapshot is consulted. Home publication is not scoped yet (N1). **New P1/P2:** none. **New P3s (follow-up):** - **N1:** `internal/host/edgesfile.go:635` still leaves every row outside the box's served pools out of the edges file. So a hand-added row that now serves locally again is invisible to peer edges, which can't route requests for it to this box. Fix: scope that filter with `r.HA || r.Provisioned`. - **N2:** for a hand-added, hibernating, non-HA row, a zero ingress projection still returns the 503 refusal (`edge/haingress.go:88`). - **N3:** the card text calls the same box both "US fixed box" and "US old box". - **N4:** each `PreparePoolWithdrawal` call re-reads the local registry once per completed job. That's only a small extra cost. **Census delta: APPROVED.** All 13 changed units, the 5 new units, the 4 package digests and the group-name hash are approved. None of them opens, runs or follows a path or input that a tenant, app or box agent can create, write or name. New seal: `b40b4f5e…6b6a44a`. The review is at `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-g2-fixes/.superpowers/sdd/2026-11-06-region-ha-g2-fixes/final-review-r2.md`.</result> <usage><subagent_tokens>132387</subagent_tokens><tool_uses>41</tool_uses><duration_ms>393471</duration_ms></usage> </task-notification>

diff --git a/docs/superpowers/notes/2026-11-06-region-ha-g2-follow-ups.md b/docs/superpowers/notes/2026-11-06-region-ha-g2-follow-ups.md
index ba7214bff..ba484de9d 100644
--- a/docs/superpowers/notes/2026-11-06-region-ha-g2-follow-ups.md
+++ b/docs/superpowers/notes/2026-11-06-region-ha-g2-follow-ups.md
@@ -128,3 +128,34 @@ generation sequences. Require fixed seeds and a failing mutation. A new
simulation does not reopen a closed review round.
13. **Startup scan cost (final review P3-4):** retry only the failed scan or alias pass, and skip HA startup scans when region HA is off or no HA records exist; owner: agent manager, trigger: the next startup-cost change.
+
+14. **N1: advertise hand-added rows that serve locally.**
+ Owner: agent manager. Trigger: the next edges-file filter change.
+ Evidence: final whole-branch review round 2 (controller ledger);
+ `internal/host/edgesfile.go:635`.
+ The served-pool filter still omits hand-added rows outside those pools.
+ A row that serves locally is therefore invisible to peers.
+ Finish: scope the filter to `r.HA || r.Provisioned`. Verify that peers
+ can see hand-added rows that serve locally.
+
+15. **N2: preserve hand-added non-HA wake behavior.**
+ Owner: agent manager. Trigger: the next ingress refusal change.
+ Evidence: final whole-branch review round 2 (controller ledger);
+ `internal/edge/haingress.go:88`.
+ A hand-added hibernating non-HA row still gets the 503 refusal when
+ the local ingress projection is zero.
+ Finish: preserve legacy wake behavior for that case, with a witness
+ that also preserves HA and provisioned pool refusals.
+
+16. **N3: use consistent G3 card wording.**
+ Owner: G3 card owner. Trigger: the next G3 card update.
+ Evidence: final whole-branch review round 2 (controller ledger).
+ Finish: use "the US old box" consistently throughout the G3 card.
+
+17. **N4: measure repeated withdrawal registry reads.**
+ Owner: agent manager. Trigger: the next withdrawal-cost change.
+ Evidence: final whole-branch review round 2 (controller ledger);
+ `PreparePoolWithdrawal` in `internal/activator/poolwithdrawal.go`.
+ It re-reads the local registry once per completed job. The cost is small.
+ Finish: measure the cost and reduce repeated reads if needed while
+ preserving the completion checks.