carlos / platform Public

fleet record labels M1 (release A): R1 fence, R2 checkpoint, R3, D2

Box-side safety for owner-authorized fleet record labels (#1008 option B),
merged ahead of the labelling door. Release A is this slice's console
rollback floor (spec D2, docs/fleet-runbook.md).

- R1: an unlabelled fleet-placed instance row's wake, stateless start
  and worker start read the record once under the lease and refuse when
  it names a box, has an assignment, or is retired or unreadable.
  Sidecar rows are exempt. Fence refusals pace workers apart from crash
  backoff.
- R2: a fleet stop releases its lease only over a proven final
  checkpoint (lease.Replicator.CloseProven). Unproven stops and failed
  wakes stay pending and retry. A lost lease is abandoned to its TTL. A
  never-created database releases as proven-empty. Shutdown only names
  unproven hosts (C45) and leaves the lease to its TTL (8a3d302 ruling).
- R3: relabel and drain verify always-on stateless records and move
  them only to boxes at the stateless runtime floor.
- D2: the relabel worker no longer writes first labels.

Spec rev 3 and plan land with it. Reviews: Astra per task, Fable on T1
and T2, whole-branch Astra and Fable. Census m1 approved by Astra (#280).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from design-fleet-record-labels into main.
claude agent, operated by paul@keymail.dev 5b9f77a9d1d5411ac3b9d7495f24f0475d88ad57 parent b9eaea9
29 files changed, +4,286 −229
  • docs/fleet-runbook.md +34 −0
  • docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md +41 −0
  • docs/superpowers/plans/2026-11-14-fleet-record-labels.md +443 −0
  • docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m1.md +70 −0
  • docs/superpowers/specs/2026-11-14-fleet-record-labels-design.md +419 −0
  • internal/activator/activator.go +305 −14
  • internal/activator/checkpointshutdown_linux_test.go +364 −0
  • internal/activator/maintenance.go +44 −1
  • internal/activator/opset.go +53 −2
  • internal/activator/pendingwake_linux_test.go +1,154 −11
  • internal/activator/rootfsworkers.go +34 −4
  • internal/activator/startrule.go +22 −8
  • internal/activator/startrule_test.go +49 −2
  • internal/activator/stateless_test.go +36 −0
  • internal/activator/wakeidentity.go +103 −7
  • internal/console/fleetbox.go +31 −1
  • internal/console/fleetrelabel.go +38 −57
  • internal/console/fleetrelabel_test.go +273 −57
  • internal/console/jobs_test.go +1 −1
  • internal/console/replicaplacement_fix_test.go +20 −4
  • internal/host/fleetidentity.go +3 −2
  • internal/host/fleettwobox_e2e_test.go +42 −40
  • internal/host/fleetwake_test.go +3 −0
  • internal/lease/lease.go +321 −18
  • internal/lease/locktest/fixture.go +40 −0
  • internal/lease/release_test.go +219 −0
  • internal/lease/teardown_linux_test.go +90 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv +33 −0

CI passed — run details

docs/fleet-runbook.md

Loading diff…

docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md

Loading diff…

docs/superpowers/plans/2026-11-14-fleet-record-labels.md

Loading diff…

docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m1.md

Loading diff…

docs/superpowers/specs/2026-11-14-fleet-record-labels-design.md

Loading diff…

internal/activator/activator.go

Loading diff…

internal/activator/checkpointshutdown_linux_test.go

Loading diff…

internal/activator/maintenance.go

Loading diff…

internal/activator/opset.go

Loading diff…

internal/activator/pendingwake_linux_test.go

Loading diff…

internal/activator/rootfsworkers.go

Loading diff…

internal/activator/startrule.go

Loading diff…

internal/activator/startrule_test.go

Loading diff…

internal/activator/stateless_test.go

Loading diff…

internal/activator/wakeidentity.go

Loading diff…

internal/console/fleetbox.go

Loading diff…

internal/console/fleetrelabel.go

Loading diff…

internal/console/fleetrelabel_test.go

Loading diff…

internal/console/jobs_test.go

Loading diff…

internal/console/replicaplacement_fix_test.go

Loading diff…

internal/host/fleetidentity.go

Loading diff…

internal/host/fleettwobox_e2e_test.go

Loading diff…

internal/host/fleetwake_test.go

Loading diff…

internal/lease/lease.go

Loading diff…

internal/lease/locktest/fixture.go

Loading diff…

internal/lease/release_test.go

Loading diff…

internal/lease/teardown_linux_test.go

Loading diff…

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

Loading diff…

internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv

Loading diff…