Nearest-region never-reuse, merge B: offline activation and the refusals
Plan Tasks 5-10 and 13 as cut by Paul on 2026-10-26 (#404). A hostname that has held data is never created again once the history is active (S1-S4), static and service records exempt. Activation and invalidation are offline commands on the console binary (console hosts-used roster / activate / invalidate), run with the console stopped: they take the serve lock that 'console serve' holds for its life, read the console database directly, and refuse on anything unsettled, unscanned or changed since the roster was taken. On start the console serves no data-kind create, and keeps app regions off, until its start-up check passes. Refusals: 'apps place' on an existing app; 'carlos accounts migrate' never creates a data-kind record; a fleet in the history takes no new or reactivated box; a box joining a scanned region blocks that region's creates until the history is completed again. README runbook. Copy approved by delegated Luna pass. Astra: per-task reviews, then two whole-branch rounds (round 2 READY AFTER FIXES, fixes applied); census approved by the reviewer on #280. Nearest-region stays off until the offline activation is run (plan Tasks 11, 12, 14, 15). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from nearest-region-b into main.
README.md+68 −2accounts.go+17 −11accounts_hostsused.go+172 −0accounts_record_sequence_test.go+273 −0cmd/console/hostsused.go+154 −0cmd/console/main.go+26 −1cmd/console/servelock_test.go+144 −0cmd/console/servelock_unix.go+42 −0cmd/console/servelock_windows.go+17 −0docs/superpowers/notes/census-proposal-nearest-region-b.md+19 −0docs/superpowers/notes/copy/nearest-region-never-reuse-b.md+225 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-branch-r1.md+60 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-branch-r2.md+49 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task10-r1.md+23 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task5-r1.md+26 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task5-r2.md+23 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task5-r3.md+35 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task6-r1.md+55 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task6-r2.md+27 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task7-r1.md+17 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task7-r2.md+28 −0docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task8-r1.md+24 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-branch-R2.md+127 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-branch.md+125 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-census-delta.md+36 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task10.md+72 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task5-R2.md+98 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task5-R3.md+103 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task5.md+83 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task6-R2.md+110 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task6.md+91 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task7-R2.md+95 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task7.md+81 −0docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task8.md+73 −0docs/superpowers/plans/2026-10-02-nearest-region-copy.json+1 −1docs/superpowers/plans/2026-10-26-nearest-region-never-reuse.md+6 −0docs/superpowers/specs/2026-10-26-nearest-region-without-claims-design.md+7 −1internal/console/apicli.go+8 −0internal/console/apiinstances.go+14 −0internal/console/apisidecars.go+12 −0internal/console/claim_invariant_fixtures_test.go+1 −1internal/console/fleets.go+22 −0internal/console/fleets_place_cut_test.go+85 −0internal/console/hostsused.go+439 −101internal/console/hostsused_activate.go+487 −0internal/console/hostsused_activate_test.go+362 −0internal/console/hostsused_active_test.go+406 −0internal/console/hostsused_coverage_test.go+253 −0internal/console/hostsused_status.go+57 −0internal/console/hostsused_store.go+26 −0internal/console/hostsused_tripwire.go+106 −0internal/console/hostsused_tripwire_test.go+151 −0internal/console/hostsused_writers_test.go+16 −15internal/console/lifetimes_create.go+26 −5internal/console/lifetimes_recovery.go+2 −2internal/console/regioncandidates.go+11 −1internal/console/regionclaim_test.go+1 −0internal/console/regionconfig.go+4 −2internal/console/regionconfig_test.go+1 −0internal/console/regiondefault_test.go+1 −0internal/console/regionlabels_test.go+1 −0internal/console/testdata/claim-authority-sites.txt+1 −0internal/layout/hostsused.go+158 −0internal/layout/hostsused_test.go+145 −0internal/provision/hostsused.go+51 −20internal/provision/hostsused_map.go+94 −0internal/provision/hostsused_map_test.go+54 −0internal/provision/hostsused_test.go+34 −1internal/provision/nearest_region_b_census_test.go+79 −0internal/provision/plan9_b8_census_test.go+1 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-nearest-region-b.tsv+7 −0system.go+1 −1system_hostsused.go+25 −22system_hostsused_test.go+12 −30
CI passed — run details
README.mdLoading diff…
accounts.goLoading diff…
accounts_hostsused.goLoading diff…
accounts_record_sequence_test.goLoading diff…
cmd/console/hostsused.goLoading diff…
cmd/console/main.goLoading diff…
cmd/console/servelock_test.goLoading diff…
cmd/console/servelock_unix.goLoading diff…
cmd/console/servelock_windows.goLoading diff…
docs/superpowers/notes/census-proposal-nearest-region-b.mdLoading diff…
docs/superpowers/notes/copy/nearest-region-never-reuse-b.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-branch-r1.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-branch-r2.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task10-r1.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task5-r1.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task5-r2.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task5-r3.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task6-r1.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task6-r2.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task7-r1.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task7-r2.mdLoading diff…
docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-task8-r1.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-branch-R2.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-branch.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-census-delta.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task10.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task5-R2.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task5-R3.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task5.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task6-R2.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task6.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task7-R2.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task7.mdLoading diff…
docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-nearest-region-b-task8.mdLoading diff…
docs/superpowers/plans/2026-10-02-nearest-region-copy.jsonLoading diff…
docs/superpowers/plans/2026-10-26-nearest-region-never-reuse.mdLoading diff…
docs/superpowers/specs/2026-10-26-nearest-region-without-claims-design.mdLoading diff…
internal/console/apicli.goLoading diff…
internal/console/apiinstances.goLoading diff…
internal/console/apisidecars.goLoading diff…
internal/console/claim_invariant_fixtures_test.goLoading diff…
internal/console/fleets.goLoading diff…
internal/console/fleets_place_cut_test.goLoading diff…
internal/console/hostsused.goLoading diff…
internal/console/hostsused_activate.goLoading diff…
internal/console/hostsused_activate_test.goLoading diff…
internal/console/hostsused_active_test.goLoading diff…
internal/console/hostsused_coverage_test.goLoading diff…
internal/console/hostsused_status.goLoading diff…
internal/console/hostsused_store.goLoading diff…
internal/console/hostsused_tripwire.goLoading diff…
internal/console/hostsused_tripwire_test.goLoading diff…
internal/console/hostsused_writers_test.goLoading diff…
internal/console/lifetimes_create.goLoading diff…
internal/console/lifetimes_recovery.goLoading diff…
internal/console/regioncandidates.goLoading diff…
internal/console/regionclaim_test.goLoading diff…
internal/console/regionconfig.goLoading diff…
internal/console/regionconfig_test.goLoading diff…
internal/console/regiondefault_test.goLoading diff…
internal/console/regionlabels_test.goLoading diff…
internal/console/testdata/claim-authority-sites.txtLoading diff…
internal/layout/hostsused.goLoading diff…
internal/layout/hostsused_test.goLoading diff…
internal/provision/hostsused.goLoading diff…
internal/provision/hostsused_map.goLoading diff…
internal/provision/hostsused_map_test.goLoading diff…
internal/provision/hostsused_test.goLoading diff…
internal/provision/nearest_region_b_census_test.goLoading diff…
internal/provision/plan9_b8_census_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-nearest-region-b.tsvLoading diff…
system.goLoading diff…
system_hostsused.goLoading diff…
system_hostsused_test.goLoading diff…