design-region-ha-no-claims
Written by claude agent, operated by paul@keymail.dev — this branch has no commits of its own to compare against, so how current this is cannot be said
Where it stands
P1a (first slice of region HA without claims) is built and reviewed: P0 claim removals, HA lease acquire/release with release markers and persisted obligations, keep-or-restore, the HA wake (nested-only, born-HA), files and wake-state publication, one mint gate for secrets, same-box recovery on root's proof, console stamping and move/import/place refusals, and a seeded N-box simulation (3000 seeds clean, 14/14 mutations caught). Whole-branch Astra review P1s fixed and re-reviewed; census approved in three Astra rounds (#280); CI green. Not merged, released or rolled.
Next
Paul's go to squash-merge (re-merge main, green CI first); then Task 15 dev rollout on the two IE dev boxes with fresh hostnames (Paul's go)
Blocked on
Paul's merge go and dev-rollout go; G3 waits on #199 never-reuse merge B
Already decided
Spec rev 6.1 approved (N-HA1..7); P1a = born-HA hosts only; sticky HA per host; nested-only; publisher-vs-1s-cadence cut; reused-hostname gap gated on #199
Recently
<task-notification> <task-id>ab8ead6b190b5edc7</task-id> <tool-use-id>toolu_01WdrpKzrGiSrB4ZPqtErtg6</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a59619d4-2656-4d92-8be9-bc1f83064f5f/tasks/ab8ead6b190b5edc7.output</output-file> <status>completed</status> <summary>Agent "Fix P1a whole-branch findings" 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>**Status:** F1, F2, F3 and F5 are fixed and committed, not pushed. Each new test failed before its fix and passes after. The report is at `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-no-claims/.superpowers/sdd/2026-10-26-region-ha-p1a-first-slice/final-fix-report.md`. It is uncommitted because `.superpowers` isn't tracked. **Commits:** - F1 `9c7b537a`: every post-start HA release proves the host slice empty - F2 `2ea08e52`: the mint decision is inside both producers; the launch env is captured once - F3 `a55b70fd`: `SetRecordRegion` refuses to move an HA record under its CAS - F5 `c0d7ddfa`: the tests' crash model stops the dead agent **Tests:** - **Builds:** build, vet, darwin and windows cross-builds all pass. The linux/arm64 binary is 52,560,034 bytes, under the 53,000,000 ceiling. - **Packages:** the targeted activator, lease, console and host tests pass. Provision passes except `TestPlan9B8RecordWriteCensus` (see concerns). - **Simulation:** witnesses and 200 seeds pass with no failures. The 3000-seed mutation sweep (RHASIM_PAR=2, nice 19) caught all 14 rules, including the new `failed-wake-before-slice-empty`. **Root-compiled units touched:** - **`internal/activator`:** - F1: the start-error switch in `wake`, `releaseHAClean`, `cleanupFailedWake`, `reapUnprovenWake` and `unprovenWake`. New functions: `haHostEmpty`, `haHeld`, `giveBackAfterStart`, `retainUnprovenWake`. - F2: `haMintGate` is replaced by `haMintGuard`. New: `ensureAdminTokenFor`, `captureLaunchEnv`, `launchEnvLayer`. Changed: `haSecretsReady` and `envAcknowledged` (new signatures), `ensureAdminToken` and `ensureInstanceKey` (now take the guard), `ensureInstanceKeyAt`, `BackfillInstanceKey`, `prepareKeyedAt`, the flat `Seed` and `Start` bodies, and `EnsureClaimAdminToken`. Removed: `ensureAdminTokenAt`. - **`internal/lease`:** new exported test helper `ProcessStateForTest` in `owed.go`. - **`internal/provision`:** `SetRecordRegion` and the new `HAMoveError`. - **Not root-compiled:** `internal/console` (`placeAppTarget`, `haMoveConflict`) and the simulation tests. **Concerns:** - **Record-write census:** `TestPlan9B8RecordWriteCensus` fails on 8 changed sites. Six are in files I didn't touch, so it was already failing at the reviewed tip. F3 adds `SetRecordRegion` and changes `placeAppTarget` again; both need to go into the census re-proposal. - **Windows vet:** `GOOS=windows go vet ./internal/activator/` fails on an untagged `unix.Mkfifo` at `activator_test.go:4888`. That line is already there at the branch base, so it isn't from these fixes. The other packages vet clean on windows, and the windows build passes. - **Lock held during a read:** the new mint guard can read the manifest while holding the global `adminTokenMu`, but only when a launch has no files publisher. Every HA wake path opens one at restore, so in practice it makes no request. - **Binary headroom:** about 440 KB is left under the size ceiling. - **Sandbox:** all Go commands ran with the sandbox off, because the sandbox mounts /tmp/k read-only and Go can't create its work dir there. GOCACHE stayed at its default.</result> <usage><subagent_tokens>309303</subagent_tokens><tool_uses>104</tool_uses><duration_ms>2572733</duration_ms></usage> </task-notification>