carlos / platform Public

ha: add root-runner departure lifecycle witnesses

Exercise partial and completed adopter death with independent registries and real nested scheduled recovery. Retain pending age across reobservation, cover independent queue completion, and correct the sequential-departure simulation setup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 886c66c8ce127db068343936f40d6781ec4e3807 parent 9901393
12 files changed, +711 −54
  • docs/superpowers/notes/census-proposal-region-ha-p1b3b-t.md +11 −5
  • docs/superpowers/notes/census-region-ha-p1b3b-t-claims.md +13 −8
  • internal/host/hadepartures_metrics_test.go +11 −0
  • internal/host/hadepartures_production_test.go +131 −3
  • internal/host/hadepartures_root_linux_test.go +447 −0
  • internal/host/haplacement_root_linux_test.go +15 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-t.tsv +33 −22
  • internal/registry/ha_journal.go +11 −2
  • internal/sim/regionha/duties_model_test.go +30 −10
  • internal/sim/regionha/duties_test.go +8 −0
  • internal/sim/regionha/duty_boundaries_test.go +0 −2

Intent

Human

Check Astra B4 fix round 4 (task-B4-astra-fix4.md/.log) and CI for P1b-3b slice T; ledger progress.md in /home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b3b-duties/.superpowers/sdd/2026-11-03-region-ha-p1b3b-duties/; run Bash with sandbox off (bwrap mount error); continue SDD (scoped re-review r5 via the B4 Opus reviewer).

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

Loading diff…

docs/superpowers/notes/census-region-ha-p1b3b-t-claims.md

Loading diff…

internal/host/hadepartures_metrics_test.go

Loading diff…

internal/host/hadepartures_production_test.go

Loading diff…

internal/host/hadepartures_root_linux_test.go

Loading diff…

internal/host/haplacement_root_linux_test.go

Loading diff…

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

Loading diff…

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

Loading diff…

internal/registry/ha_journal.go

Loading diff…

internal/sim/regionha/duties_model_test.go

Loading diff…

internal/sim/regionha/duties_test.go

Loading diff…

internal/sim/regionha/duty_boundaries_test.go

Loading diff…