carlos / platform Public

P1a census review round 2 (Astra, scoped): READY, unedited

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 6800daba5347a65597d0ca04a72afd9b433c9919 parent 6932dae
1 file changed, +54 −0
  • docs/superpowers/notes/census-review-region-ha-p1a-r2.md +54 −0
diff --git a/docs/superpowers/notes/census-review-region-ha-p1a-r2.md b/docs/superpowers/notes/census-review-region-ha-p1a-r2.md
new file mode 100644
index 000000000..ef7520bb9
--- /dev/null
+++ b/docs/superpowers/notes/census-review-region-ha-p1a-r2.md
@@ -0,0 +1,54 @@
+Reviewed **36d55fb731ba25ad960a6689fb25e835de3e557d**, census round 2, restricted to the specified delta. Round-1 approvals remain unchanged.
+
+All 20 current scoped declaration hashes match. The three envelope hashes match the recorded base scope plus branch additions. Chain seals and frozen-row fingerprints match. All eight record-write re-pins preserve their classes and site kinds.
+
+Targeted census tests could not start: the read-only sandbox refused Go’s work-directory creation. This is static review approval, not a test-pass claim. No files edited, subagents spawned, or full suites run.
+
+Paths below are relative to `internal/`. Classes describe changes since the approved round-1 proposal.
+
+| Unit or envelope | Class | Verdict | Lines read |
+|---|---|---|---|
+| `activator/admintoken.go:ensureAdminToken` | body / legacy | APPROVE | 151–255 |
+| `activator/instancekey.go:ensureInstanceKey` | body / legacy | APPROVE | 439–564 |
+| `activator/harelease.go:Service.releaseHAClean` | body / legacy | APPROVE | 168–225 |
+| `activator/activator.go:Service.doWake` | sites / legacy | APPROVE | 2600–2657 |
+| `activator/backend_exec.go:ExecBackend.seedChild` | sites / legacy | APPROVE | 1045–1115 |
+| `activator/backend_exec.go:ExecBackend.spawnChildFrom` | sites / legacy | APPROVE | 2154–2220 |
+| `activator/claim_snapshot.go:ExecBackend.EnsureClaimAdminToken` | sites / legacy | APPROVE | 61–127 |
+| `activator/hasecrets.go:ExecBackend.haSecretsReady` | sites / legacy | APPROVE | 195–266 |
+| `activator/instancekey.go:ExecBackend.BackfillInstanceKey` | sites / legacy | APPROVE | 266–292 |
+| `activator/instancekey.go:ExecBackend.ensureInstanceKeyAt` | sites / legacy | APPROVE | 279–292; 212–220 |
+| `activator/maintenance.go:Service.cleanupFailedWake` | sites / legacy | APPROVE | 361–471 |
+| `activator/opset.go:Service.reapUnprovenWake` | sites / legacy | APPROVE | 851–954 |
+| `activator/prepare.go:ExecBackend.prepareKeyedAt` | sites / legacy | APPROVE | 59–185 |
+| `activator/harelease.go:Service.haHostEmpty` | new / legacy, accepted-legacy | APPROVE | 123–136; backend proof 54–69 |
+| `activator/hasecrets.go:ExecBackend.captureLaunchEnv` | new / legacy, accepted-legacy | APPROVE | 134–153; `hawake.go` 124–135, 278–344 |
+| `activator/hasecrets.go:ExecBackend.ensureAdminTokenFor` | new / legacy, accepted-legacy | APPROVE | 114–120; `admintoken.go` 151–255 |
+| `activator/hasecrets.go:ExecBackend.haMintGuard` | new / legacy, accepted-legacy | APPROVE | 64–110, 195–205 |
+| `activator/hasecrets.go:ExecBackend.launchEnvLayer` | new / legacy, accepted-legacy | APPROVE | 161–180, 217–266 |
+| `activator/maintenance.go:Service.giveBackAfterStart` | new / legacy, accepted-legacy | APPROVE | 478–489; `activator.go` 2630–2657 |
+| `activator/maintenance.go:Service.retainUnprovenWake` | new / legacy, accepted-legacy | APPROVE | 494–501; `opset.go` 851–954 |
+| `activator/hasecrets.go:ExecBackend.haMintGate` | removed branch-only predecessor | APPROVE | At `48a6412a`: 59–91; replacement 86–120 and producer guards |
+| `internal/activator` | envelope | APPROVE | Rows above; `hasecrets.go` 50–55, 124–128, 253–266; `harelease.go` 138–146; `opset.go` 775–790 |
+| `internal/lease` | envelope | APPROVE | `owed.go` 158–174; all `ProcessStateForTest` references |
+| `internal/provision` | envelope | APPROVE | `provision.go` 1008–1045, 1078–1142 |
+| `console/apiinstanceimport.go:Server.handleAPIImportStopped` | record-writer / re-pin | APPROVE | 713–754 |
+| `console/apiinstancemove.go:Server.handleAPIInstanceMoveRequest` | record-writer / re-pin | APPROVE | 563–582, 660–735; branch diff |
+| `console/domainattach.go:Server.attachDomainAs` | record-writer / re-pin | APPROVE | 248–278; `seedmove.go` 40–45 |
+| `console/fleets.go:Server.placeAppTarget` | record-writer / re-pin | APPROVE | 601–632, 680–720; `seedmove.go` 94–131 |
+| `host/bootstrap.go:bootstrapWith` | key-site / re-pin | APPROVE | 400–419, 512–539; branch diff |
+| `hostfiles/publisher.go:Publisher.Commit` | nonrecord / re-pin | APPROVE | 273–329 |
+| `provision/provision.go:SetRecordRegion` | record-writer / re-pin | APPROVE | 1011–1038, 1078–1142 |
+| `provision/reconcile.go:Reconcile` | key-site / re-pin | APPROVE | 1194–1223; branch diff |
+
+The new units retain agent-side responsibilities and introduce no new root authority. Nested environment reads remain bounded to 1 MiB through `instancefs`; HA acquisition and spawn admission retain the nested-only requirement. The flat `ReadFile` arm does not expand root’s access. `prepareKeyedAt` now supplies the 30-second context to the key reader, whose existing 10-second timeout remains. The launch hooks have no production assignments, and `ProcessStateForTest` has only test callers.
+
+The removed `haMintGate` is explicitly replaced by the pinned `haMintGuard` and producer guards; this is not an unaccounted relocation. The record-write layer at `provision/region_ha_p1a_census_test.go:45–72` checks that every replacement preserves class and kinds.
+
+**P1:** None found.
+
+**P2:** None found.
+
+**P3:** None newly identified in this scoped delta. The round-1 wording follow-up remains unchanged.
+
+**READY**
\ No newline at end of file