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.
29 files changed,
+4,286
−229
docs/fleet-runbook.md+34 −0docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md+41 −0docs/superpowers/plans/2026-11-14-fleet-record-labels.md+443 −0docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m1.md+70 −0docs/superpowers/specs/2026-11-14-fleet-record-labels-design.md+419 −0internal/activator/activator.go+305 −14internal/activator/checkpointshutdown_linux_test.go+364 −0internal/activator/maintenance.go+44 −1internal/activator/opset.go+53 −2internal/activator/pendingwake_linux_test.go+1,154 −11internal/activator/rootfsworkers.go+34 −4internal/activator/startrule.go+22 −8internal/activator/startrule_test.go+49 −2internal/activator/stateless_test.go+36 −0internal/activator/wakeidentity.go+103 −7internal/console/fleetbox.go+31 −1internal/console/fleetrelabel.go+38 −57internal/console/fleetrelabel_test.go+273 −57internal/console/jobs_test.go+1 −1internal/console/replicaplacement_fix_test.go+20 −4internal/host/fleetidentity.go+3 −2internal/host/fleettwobox_e2e_test.go+42 −40internal/host/fleetwake_test.go+3 −0internal/lease/lease.go+321 −18internal/lease/locktest/fixture.go+40 −0internal/lease/release_test.go+219 −0internal/lease/teardown_linux_test.go+90 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv+33 −0
CI passed — run details
docs/fleet-runbook.mdLoading diff…
docs/superpowers/notes/census-proposal-fleet-record-labels-m1.mdLoading diff…
docs/superpowers/plans/2026-11-14-fleet-record-labels.mdLoading diff…
docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m1.mdLoading diff…
docs/superpowers/specs/2026-11-14-fleet-record-labels-design.mdLoading diff…
internal/activator/activator.goLoading diff…
internal/activator/checkpointshutdown_linux_test.goLoading diff…
internal/activator/maintenance.goLoading diff…
internal/activator/opset.goLoading diff…
internal/activator/pendingwake_linux_test.goLoading diff…
internal/activator/rootfsworkers.goLoading diff…
internal/activator/startrule.goLoading diff…
internal/activator/startrule_test.goLoading diff…
internal/activator/stateless_test.goLoading diff…
internal/activator/wakeidentity.goLoading diff…
internal/console/fleetbox.goLoading diff…
internal/console/fleetrelabel.goLoading diff…
internal/console/fleetrelabel_test.goLoading diff…
internal/console/jobs_test.goLoading diff…
internal/console/replicaplacement_fix_test.goLoading diff…
internal/host/fleetidentity.goLoading diff…
internal/host/fleettwobox_e2e_test.goLoading diff…
internal/host/fleetwake_test.goLoading diff…
internal/lease/lease.goLoading diff…
internal/lease/locktest/fixture.goLoading diff…
internal/lease/release_test.goLoading diff…
internal/lease/teardown_linux_test.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsvLoading diff…