carlos / platform Public

Merge remote-tracking branch 'origin/main' into retire-app-lock-407

# Conflicts:
#	internal/provision/plan9_b8_census_test.go
claude agent, operated by paul@keymail.dev e2528643ad518c56c28f7ad131e9664e94d7da3e parent 0cef04bparent fd93024
167 files changed, +17,999 −3,591
  • approved_region_ha_2b_copy_test.go +4 −2
  • cmd/console/haregions_test.go +19 −0
  • cmd/console/main.go +15 −0
  • docs/superpowers/notes/census-proposal-region-ha-p1a.md +185 −0
  • docs/superpowers/notes/census-region-ha-p1a-claims.md +128 −0
  • docs/superpowers/notes/census-region-ha-p1a-delta-r2.md +51 −0
  • docs/superpowers/notes/census-region-ha-p1a-delta-r3.md +10 −0
  • docs/superpowers/notes/census-review-region-ha-p1a-r1.md +131 −0
  • docs/superpowers/notes/census-review-region-ha-p1a-r2.md +54 −0
  • docs/superpowers/notes/census-review-region-ha-p1a-r3.md +37 −0
  • docs/superpowers/notes/reviews/ASTRA-BRIEF-region-ha-no-claims-r1.sh +3 −0
  • docs/superpowers/notes/reviews/ASTRA-BRIEF-region-ha-no-claims-r2.sh +3 −0
  • docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-no-claims-r1.md +71 −0
  • docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-no-claims-r2.md +87 −0
  • docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-no-claims-r3.md +102 −0
  • docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-branch-r1.md +85 −0
  • docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-plan-r1.md +153 −0
  • docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-plan-r2.md +158 −0
  • docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-plan-r3.md +115 −0
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-no-claims-R3.md +48 −0
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-branch-R1.md +40 −0
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-census-R1.md +37 −0
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-census-R2.md +37 −0
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-census-R3.md +37 −0
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R1.md +39 −0
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R2.md +45 −0
  • docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R3.md +45 −0
  • docs/superpowers/notes/reviews/region-ha-p1a-build-ledger-excerpt.md +45 −0
  • docs/superpowers/plans/2026-10-26-region-ha-p1a-first-slice.md +1,165 −0
  • docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md +768 −0
  • internal/activator/activator.go +109 −8
  • internal/activator/admintoken.go +17 −17
  • internal/activator/backend_exec.go +72 −19
  • internal/activator/backend_unit.go +58 −0
  • internal/activator/claim_snapshot.go +3 −1
  • internal/activator/genbackend.go +6 −0
  • internal/activator/hafiles.go +476 −0
  • internal/activator/hafiles_test.go +202 −0
  • internal/activator/harecord.go +129 −0
  • internal/activator/harecord_linux.go +144 −0
  • internal/activator/harecord_linux_test.go +286 −0
  • internal/activator/harecord_other.go +21 −0
  • internal/activator/harelease.go +258 −0
  • internal/activator/harelease_keep_test.go +43 −0
  • internal/activator/harelease_linux_test.go +23 −0
  • internal/activator/harelease_test.go +1,016 −0
  • internal/activator/hasamebox.go +169 −0
  • internal/activator/hasamebox_test.go +276 −0
  • internal/activator/hasecrets.go +371 −0
  • internal/activator/hasecrets_test.go +486 −0
  • internal/activator/hawake.go +647 −0
  • internal/activator/hawake_test.go +897 −0
  • internal/activator/instancekey.go +25 −5
  • internal/activator/maintenance.go +57 −2
  • internal/activator/opset.go +14 −2
  • internal/activator/prepare.go +13 −3
  • internal/console/apiinstanceimport.go +10 −0
  • internal/console/apiinstancemove.go +2 −2
  • internal/console/apiinstancemove_offline.go +1 −1
  • internal/console/apiinstances.go +3 −0
  • internal/console/awsmembership.go +0 −16
  • internal/console/claim_authority_census_test.go +0 −5
  • internal/console/domainattach.go +2 −0
  • internal/console/enrollpass.go +0 −100
  • internal/console/enrollpass_test.go +0 −71
  • internal/console/fleets.go +8 −1
  • internal/console/ha_born_test.go +261 −0
  • internal/console/hostclaimops.go +0 −3
  • internal/console/seedmove.go +73 −9
  • internal/console/server.go +6 −0
  • internal/console/testdata/claim-authority-sites.txt +0 −3
  • internal/hafresh/acquire.go +93 −0
  • internal/hafresh/acquire_test.go +123 −0
  • internal/hafresh/keep.go +105 −0
  • internal/hafresh/keep_test.go +79 −0
  • internal/hafresh/lock.go +103 −0
  • internal/hafresh/owner.go +90 −0
  • internal/hafresh/owner_test.go +56 −0
  • internal/host/agent.go +72 −10
  • internal/host/agententry.go +70 −0
  • internal/host/agententry_test.go +87 −0
  • internal/host/bootstrap.go +6 −3
  • internal/host/boxaddress_test.go +51 −10
  • internal/host/claimcensus.go +12 −0
  • internal/host/claimfiles.go +5 −17
  • internal/host/claimwiring.go +0 −9
  • internal/host/claimwiring_hosting_test.go +0 −58
  • internal/host/edgesclaims.go +0 −291
  • internal/host/edgesclaims_test.go +0 −428
  • internal/host/edgesfile.go +16 −21
  • internal/host/edgesfile_test.go +84 −121
  • internal/host/edgesschedule.go +41 −0
  • internal/host/edgesschedule_test.go +47 −0
  • internal/host/guardparticipation_test.go +19 −17
  • internal/host/hasecrets_test.go +90 −0
  • internal/host/haself.go +99 −0
  • internal/host/haself_test.go +93 −0
  • internal/host/hawake_wiring_test.go +141 −0
  • internal/host/host_test.go +0 −2
  • internal/host/instancekeys.go +22 −1
  • internal/host/joining.go +0 −296
  • internal/host/joining_test.go +0 −412
  • internal/host/joinmode.go +0 −346
  • internal/host/joinmode_test.go +0 −301
  • internal/host/joinroot.go +0 −210
  • internal/host/joinroot_test.go +0 −216
  • internal/host/movesoffline_lifetime_test.go +1 −1
  • internal/host/participation_flagoff_test.go +27 −32
  • internal/host/plan9_a_guard_test.go +3 −3
  • internal/host/retiredunits.go +68 −0
  • internal/host/retiredunits_test.go +58 −0
  • internal/host/rootexecution_update_test.go +0 −1
  • internal/host/schedule_wiring.go +34 −0
  • internal/host/systemapply.go +22 −20
  • internal/host/systemapply_test.go +7 −4
  • internal/host/systemparticipation.go +20 −38
  • internal/host/systemparticipation_test.go +35 −102
  • internal/host/units/carlos-system-join.path +0 −15
  • internal/host/units/carlos-system-join.service +0 −41
  • internal/hostactors/awsmembership/awsmembership.go +0 −104
  • internal/hostactors/awsmembership/awsmembership_test.go +0 −134
  • internal/hostfiles/hostfiles_test.go +87 −0
  • internal/hostfiles/manifest.go +10 −4
  • internal/hostfiles/publisher.go +71 −4
  • internal/hostfiles/restore.go +19 −5
  • internal/hostfiles/sync.go +12 −0
  • internal/hostfiles/sync_unix_test.go +37 −0
  • internal/lease/check.go +29 −0
  • internal/lease/createlease.go +5 −5
  • internal/lease/endpoint.go +27 −0
  • internal/lease/export_test.go +45 −1
  • internal/lease/ha.go +190 −0
  • internal/lease/ha_test.go +398 −0
  • internal/lease/lease.go +62 −11
  • internal/lease/legacytake.go +165 −0
  • internal/lease/locktest/fixture.go +376 −0
  • internal/lease/locktest/fixture_test.go +112 −0
  • internal/lease/owed.go +344 −0
  • internal/lease/release.go +236 −0
  • internal/lease/release_test.go +418 −0
  • internal/lease/self.go +53 −0
  • internal/lease/self_test.go +73 −0
  • internal/provision/lifetimeindex.go +114 −0
  • internal/provision/lifetimeindex_test.go +147 −0
  • internal/provision/provision.go +27 −0
  • internal/provision/reconcile.go +28 −0
  • internal/provision/region_ha_p1a_census_test.go +74 −0
  • internal/provision/retire_app_lock_407_census_test.go +8 −5
  • internal/provision/seed_test.go +24 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-region-ha-p1a.tsv +225 −0
  • internal/registry/ha_test.go +45 −0
  • internal/registry/registry.go +51 −6
  • internal/registry/registry_test.go +1 −0
  • internal/registry/remote_dispatch.go +2 −0
  • internal/release/openers_test.go +1 −1
  • internal/sim/regionha/actions_test.go +976 −0
  • internal/sim/regionha/expected-outcomes.txt +10 −0
  • internal/sim/regionha/invariants_test.go +121 −0
  • internal/sim/regionha/mutate.sh +179 −0
  • internal/sim/regionha/rules_test.go +61 −0
  • internal/sim/regionha/sim_test.go +223 −0
  • internal/sim/regionha/witness_test.go +555 −0
  • internal/sim/regionha/world_test.go +566 −0
  • region_ha_boundary_test.go +1 −7
  • system.go +1 −5
  • system_test.go +9 −3

CI passed — run details

approved_region_ha_2b_copy_test.go

Loading diff…

cmd/console/haregions_test.go

Loading diff…

cmd/console/main.go

Loading diff…

docs/superpowers/notes/census-proposal-region-ha-p1a.md

Loading diff…

docs/superpowers/notes/census-region-ha-p1a-claims.md

Loading diff…

docs/superpowers/notes/census-region-ha-p1a-delta-r2.md

Loading diff…

docs/superpowers/notes/census-region-ha-p1a-delta-r3.md

Loading diff…

docs/superpowers/notes/census-review-region-ha-p1a-r1.md

Loading diff…

docs/superpowers/notes/census-review-region-ha-p1a-r2.md

Loading diff…

docs/superpowers/notes/census-review-region-ha-p1a-r3.md

Loading diff…

docs/superpowers/notes/reviews/ASTRA-BRIEF-region-ha-no-claims-r1.sh

Loading diff…

docs/superpowers/notes/reviews/ASTRA-BRIEF-region-ha-no-claims-r2.sh

Loading diff…

docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-no-claims-r1.md

Loading diff…

docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-no-claims-r2.md

Loading diff…

docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-no-claims-r3.md

Loading diff…

docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-branch-r1.md

Loading diff…

docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-plan-r1.md

Loading diff…

docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-plan-r2.md

Loading diff…

docs/superpowers/notes/reviews/ASTRA-FINDINGS-region-ha-p1a-plan-r3.md

Loading diff…

docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-no-claims-R3.md

Loading diff…

docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-branch-R1.md

Loading diff…

docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-census-R1.md

Loading diff…

docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-census-R2.md

Loading diff…

docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-census-R3.md

Loading diff…

docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R1.md

Loading diff…

docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R2.md

Loading diff…

docs/superpowers/notes/reviews/CODEX-REVIEW-BRIEF-region-ha-p1a-plan-R3.md

Loading diff…

docs/superpowers/notes/reviews/region-ha-p1a-build-ledger-excerpt.md

Loading diff…

docs/superpowers/plans/2026-10-26-region-ha-p1a-first-slice.md

Loading diff…

docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md

Loading diff…

internal/activator/activator.go

Loading diff…

internal/activator/admintoken.go

Loading diff…

internal/activator/backend_exec.go

Loading diff…

internal/activator/backend_unit.go

Loading diff…

internal/activator/claim_snapshot.go

Loading diff…

internal/activator/genbackend.go

Loading diff…

internal/activator/hafiles.go

Loading diff…

internal/activator/hafiles_test.go

Loading diff…

internal/activator/harecord.go

Loading diff…

internal/activator/harecord_linux.go

Loading diff…

internal/activator/harecord_linux_test.go

Loading diff…

internal/activator/harecord_other.go

Loading diff…

internal/activator/harelease.go

Loading diff…

internal/activator/harelease_keep_test.go

Loading diff…

internal/activator/harelease_linux_test.go

Loading diff…

internal/activator/harelease_test.go

Loading diff…

internal/activator/hasamebox.go

Loading diff…

internal/activator/hasamebox_test.go

Loading diff…

internal/activator/hasecrets.go

Loading diff…

internal/activator/hasecrets_test.go

Loading diff…

internal/activator/hawake.go

Loading diff…

internal/activator/hawake_test.go

Loading diff…

internal/activator/instancekey.go

Loading diff…

internal/activator/maintenance.go

Loading diff…

internal/activator/opset.go

Loading diff…

internal/activator/prepare.go

Loading diff…

internal/console/apiinstanceimport.go

Loading diff…

internal/console/apiinstancemove.go

Loading diff…

internal/console/apiinstancemove_offline.go

Loading diff…

internal/console/apiinstances.go

Loading diff…

internal/console/awsmembership.go

Loading diff…

internal/console/claim_authority_census_test.go

Loading diff…

internal/console/domainattach.go

Loading diff…

internal/console/enrollpass.go

Loading diff…

internal/console/enrollpass_test.go

Loading diff…

internal/console/fleets.go

Loading diff…

internal/console/ha_born_test.go

Loading diff…

internal/console/hostclaimops.go

Loading diff…

internal/console/seedmove.go

Loading diff…

internal/console/server.go

Loading diff…

internal/console/testdata/claim-authority-sites.txt

Loading diff…

internal/hafresh/acquire.go

Loading diff…

internal/hafresh/acquire_test.go

Loading diff…

internal/hafresh/keep.go

Loading diff…

internal/hafresh/keep_test.go

Loading diff…

internal/hafresh/lock.go

Loading diff…

internal/hafresh/owner.go

Loading diff…

internal/hafresh/owner_test.go

Loading diff…

internal/host/agent.go

Loading diff…

internal/host/agententry.go

Loading diff…

internal/host/agententry_test.go

Loading diff…

internal/host/bootstrap.go

Loading diff…

internal/host/boxaddress_test.go

Loading diff…

internal/host/claimcensus.go

Loading diff…

internal/host/claimfiles.go

Loading diff…

internal/host/claimwiring.go

Loading diff…

internal/host/claimwiring_hosting_test.go

Loading diff…

internal/host/edgesclaims.go

Loading diff…

internal/host/edgesclaims_test.go

Loading diff…

internal/host/edgesfile.go

Loading diff…

internal/host/edgesfile_test.go

Loading diff…

internal/host/edgesschedule.go

Loading diff…

internal/host/edgesschedule_test.go

Loading diff…

internal/host/guardparticipation_test.go

Loading diff…

internal/host/hasecrets_test.go

Loading diff…

internal/host/haself.go

Loading diff…

internal/host/haself_test.go

Loading diff…

internal/host/hawake_wiring_test.go

Loading diff…

internal/host/host_test.go

Loading diff…

internal/host/instancekeys.go

Loading diff…

internal/host/joining.go

Loading diff…

internal/host/joining_test.go

Loading diff…

internal/host/joinmode.go

Loading diff…

internal/host/joinmode_test.go

Loading diff…

internal/host/joinroot.go

Loading diff…

internal/host/joinroot_test.go

Loading diff…

internal/host/movesoffline_lifetime_test.go

Loading diff…

internal/host/participation_flagoff_test.go

Loading diff…

internal/host/plan9_a_guard_test.go

Loading diff…

internal/host/retiredunits.go

Loading diff…

internal/host/retiredunits_test.go

Loading diff…

internal/host/rootexecution_update_test.go

Loading diff…

internal/host/schedule_wiring.go

Loading diff…

internal/host/systemapply.go

Loading diff…

internal/host/systemapply_test.go

Loading diff…

internal/host/systemparticipation.go

Loading diff…

internal/host/systemparticipation_test.go

Loading diff…

internal/host/units/carlos-system-join.path

Loading diff…

internal/host/units/carlos-system-join.service

Loading diff…

internal/hostactors/awsmembership/awsmembership.go

Loading diff…

internal/hostactors/awsmembership/awsmembership_test.go

Loading diff…

internal/hostfiles/hostfiles_test.go

Loading diff…

internal/hostfiles/manifest.go

Loading diff…

internal/hostfiles/publisher.go

Loading diff…

internal/hostfiles/restore.go

Loading diff…

internal/hostfiles/sync.go

Loading diff…

internal/hostfiles/sync_unix_test.go

Loading diff…

internal/lease/check.go

Loading diff…

internal/lease/createlease.go

Loading diff…

internal/lease/endpoint.go

Loading diff…

internal/lease/export_test.go

Loading diff…

internal/lease/ha.go

Loading diff…

internal/lease/ha_test.go

Loading diff…

internal/lease/lease.go

Loading diff…

internal/lease/legacytake.go

Loading diff…

internal/lease/locktest/fixture.go

Loading diff…

internal/lease/locktest/fixture_test.go

Loading diff…

internal/lease/owed.go

Loading diff…

internal/lease/release.go

Loading diff…

internal/lease/release_test.go

Loading diff…

internal/lease/self.go

Loading diff…

internal/lease/self_test.go

Loading diff…

internal/provision/lifetimeindex.go

Loading diff…

internal/provision/lifetimeindex_test.go

Loading diff…

internal/provision/provision.go

Loading diff…

internal/provision/reconcile.go

Loading diff…

internal/provision/region_ha_p1a_census_test.go

Loading diff…

internal/provision/retire_app_lock_407_census_test.go

Loading diff…

internal/provision/seed_test.go

Loading diff…

internal/provision/testdata/plan14-root-reads-chain.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-region-ha-p1a.tsv

Loading diff…

internal/registry/ha_test.go

Loading diff…

internal/registry/registry.go

Loading diff…

internal/registry/registry_test.go

Loading diff…

internal/registry/remote_dispatch.go

Loading diff…

internal/release/openers_test.go

Loading diff…

internal/sim/regionha/actions_test.go

Loading diff…

internal/sim/regionha/expected-outcomes.txt

Loading diff…

internal/sim/regionha/invariants_test.go

Loading diff…

internal/sim/regionha/mutate.sh

Loading diff…

internal/sim/regionha/rules_test.go

Loading diff…

internal/sim/regionha/sim_test.go

Loading diff…

internal/sim/regionha/witness_test.go

Loading diff…

internal/sim/regionha/world_test.go

Loading diff…

region_ha_boundary_test.go

Loading diff…

system.go

Loading diff…

system_test.go

Loading diff…