carlos / platform Public

Merge origin/main (slice S) into region-ha-g2-prep; re-propose census

claude agent, operated by paul@keymail.dev a9a6ac07cd67eed4d45c2c46f8a7a0764c3b42a7 parent 4521bf9parent 131e896
58 files changed, +2,411 −115
  • docs/superpowers/notes/census-proposal-region-ha-g2-t8.md +1 −1
  • docs/superpowers/notes/census-proposal-region-ha-p1b3b-s.md +63 −0
  • docs/superpowers/notes/census-region-ha-p1b3b-s-claims.tsv +27 −0
  • docs/superpowers/notes/region-ha-followups-p3.md +17 −0
  • docs/superpowers/plans/2026-11-03-region-ha-p1b3b-duties.md +1 −0
  • internal/activator/activator.go +10 −1
  • internal/activator/backend_exec.go +20 −0
  • internal/activator/genbackend.go +6 −0
  • internal/activator/haduties.go +1 −1
  • internal/activator/hawake.go +22 −4
  • internal/activator/layout.go +1 −1
  • internal/activator/prepare.go +1 −1
  • internal/activator/sidecar_ha.go +123 −0
  • internal/activator/sidecar_ha_test.go +269 −0
  • internal/activator/unitproc.go +27 −9
  • internal/console/apisidecars.go +58 −8
  • internal/console/createleftovers.go +8 −3
  • internal/console/ha_born_test.go +9 −9
  • internal/console/hacapacity.go +34 −4
  • internal/console/hacreatecapacity_test.go +15 −2
  • internal/console/hap2_wiring_test.go +3 −4
  • internal/console/hostsused.go +4 −1
  • internal/console/nocapacity.go +2 −2
  • internal/console/sidecar_enable_ha_test.go +291 −0
  • internal/console/sidecar_ha_test.go +139 −0
  • internal/edge/homemap.go +7 −5
  • internal/edge/sidecar_ha_test.go +129 −0
  • internal/edge/wakeplacement.go +33 −2
  • internal/edgesfile/servedpools.go +53 −0
  • internal/edgesfile/servedpools_test.go +33 −0
  • internal/edgesfile/snapshot.go +6 −5
  • internal/host/agent.go +31 −1
  • internal/host/edgesfile.go +20 −3
  • internal/host/group_names_test.go +14 −11
  • internal/host/hadepartures.go +10 −4
  • internal/host/hadepartures_root_linux_test.go +18 −0
  • internal/host/hadepartures_wiring.go +3 −3
  • internal/host/haplacement_root_linux_test.go +7 −10
  • internal/host/sidecar_departure_root_linux_test.go +216 −0
  • internal/host/sidecar_ha_test.go +240 −0
  • internal/provision/departure_inventory.go +3 −2
  • internal/provision/lifetimeindex.go +35 −3
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/region_ha_sidecars_census_test.go +37 −0
  • internal/provision/run_keys_test.go +5 −0
  • internal/provision/sidecar.go +21 −0
  • internal/provision/sidecar_ha_test.go +55 −0
  • internal/provision/sidecar_reconcile.go +28 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +2 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-g2-t8.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-s.tsv +62 −0
  • internal/registry/ha_departures.go +4 −3
  • internal/registry/ha_duties.go +3 −1
  • internal/sim/regionha/duties_model_test.go +21 −7
  • internal/sim/regionha/rules_test.go +3 −0
  • internal/sim/regionha/sidecar_duties_test.go +147 −0
  • internal/sim/regionha/witness_test.go +3 −0
  • internal/sim/regionha/world_test.go +8 −0

CI passed — run details

Intent

Human

<task-notification> <task-id>af5d7fd6f7fff2a06</task-id> <tool-use-id>toolu_01J83FzT2v5EyAk8E2B8ecRJ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/dc71bafb-7376-4e4b-a855-4d32f1eed771/tasks/af5d7fd6f7fff2a06.output</output-file> <status>completed</status> <summary>Agent "Census review region-ha-g2-t8" 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>**APPROVE** for the `internal/host` envelope at tip 4521bf9c. - The only new input is `source`, copied from `p.Current.Source` at systemleg.go:163 and group_maintenance_prepare.go:183. That field lives in the signed `SystemRelease` (internal/release/systempointer.go:69), which `GetSystemPointer` checks with `verifySystemPointer` (systempointer.go:264). A tenant, an app or a box agent cannot write or name it. - The root prepare path at group_maintenance_prepare.go:183 only stores `source` and never calls the gate. Nothing else in the package reads `pending.source` (grep: systemleg.go:366 is the only reader). The digest match, the version check, the scratch dir and the `openBeneath` and `safefile` publish there are unchanged (group_maintenance_prepare.go:174-232). Root opens, runs and follows nothing new. - The gate at systemleg.go:362-375 is the agent-side "can the target read names-2" check. The new branch only allows a signed tag that is `release:`+version, a plain `vX.Y.Z` (publicrelease/feed.go:39) and at or above the v0.34.5 floor. The empty-floor refusal (L361-363) still runs first, and the artifact SHA-256 is still bound by the signed pointer and checked again at fetch. - The new pins at systemleg.go:340-345 are constants, so no runtime input reaches them.</result> <usage><subagent_tokens>50787</subagent_tokens><tool_uses>4</tool_uses><duration_ms>26211</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bjoykc92z</task-id> <tool-use-id>toolu_01SgpPTFhHAZk4EWdkDmLw7s</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/dc71bafb-7376-4e4b-a855-4d32f1eed771/tasks/bjoykc92z.output</output-file> <status>completed</status> <summary>Background command "Wait for addendum CI verdict" completed (exit code 0)</summary> </task-notification>

docs/superpowers/notes/census-proposal-region-ha-g2-t8.md

Loading diff…

docs/superpowers/notes/census-proposal-region-ha-p1b3b-s.md

Loading diff…

docs/superpowers/notes/census-region-ha-p1b3b-s-claims.tsv

Loading diff…

docs/superpowers/notes/region-ha-followups-p3.md

Loading diff…

docs/superpowers/plans/2026-11-03-region-ha-p1b3b-duties.md

Loading diff…

internal/activator/activator.go

Loading diff…

internal/activator/backend_exec.go

Loading diff…

internal/activator/genbackend.go

Loading diff…

internal/activator/haduties.go

Loading diff…

internal/activator/hawake.go

Loading diff…

internal/activator/layout.go

Loading diff…

internal/activator/prepare.go

Loading diff…

internal/activator/sidecar_ha.go

Loading diff…

internal/activator/sidecar_ha_test.go

Loading diff…

internal/activator/unitproc.go

Loading diff…

internal/console/apisidecars.go

Loading diff…

internal/console/createleftovers.go

Loading diff…

internal/console/ha_born_test.go

Loading diff…

internal/console/hacapacity.go

Loading diff…

internal/console/hacreatecapacity_test.go

Loading diff…

internal/console/hap2_wiring_test.go

Loading diff…

internal/console/hostsused.go

Loading diff…

internal/console/nocapacity.go

Loading diff…

internal/console/sidecar_enable_ha_test.go

Loading diff…

internal/console/sidecar_ha_test.go

Loading diff…

internal/edge/homemap.go

Loading diff…

internal/edge/sidecar_ha_test.go

Loading diff…

internal/edge/wakeplacement.go

Loading diff…

internal/edgesfile/servedpools.go

Loading diff…

internal/edgesfile/servedpools_test.go

Loading diff…

internal/edgesfile/snapshot.go

Loading diff…

internal/host/agent.go

Loading diff…

internal/host/edgesfile.go

Loading diff…

internal/host/group_names_test.go

Loading diff…

internal/host/hadepartures.go

Loading diff…

internal/host/hadepartures_root_linux_test.go

Loading diff…

internal/host/hadepartures_wiring.go

Loading diff…

internal/host/haplacement_root_linux_test.go

Loading diff…

internal/host/sidecar_departure_root_linux_test.go

Loading diff…

internal/host/sidecar_ha_test.go

Loading diff…

internal/provision/departure_inventory.go

Loading diff…

internal/provision/lifetimeindex.go

Loading diff…

internal/provision/plan9_b8_census_test.go

Loading diff…

internal/provision/region_ha_sidecars_census_test.go

Loading diff…

internal/provision/run_keys_test.go

Loading diff…

internal/provision/sidecar.go

Loading diff…

internal/provision/sidecar_ha_test.go

Loading diff…

internal/provision/sidecar_reconcile.go

Loading diff…

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

Loading diff…

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

Loading diff…

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

Loading diff…

internal/registry/ha_departures.go

Loading diff…

internal/registry/ha_duties.go

Loading diff…

internal/sim/regionha/duties_model_test.go

Loading diff…

internal/sim/regionha/rules_test.go

Loading diff…

internal/sim/regionha/sidecar_duties_test.go

Loading diff…

internal/sim/regionha/witness_test.go

Loading diff…

internal/sim/regionha/world_test.go

Loading diff…