fleet record labels M2 (release B): owner labels and D1 creates
The switch-on for owner-authorized fleet record labels (#1008 option B).
Box-side safety (M1, release A, v0.35.4) is already on main; the door
requires every active fleet box and the console at v0.35.4.
- carlos instances label: the account owner ties an unlabelled fleet
instance to the box serving it now. Dry run by default; the binding
and the hub row must agree on an active, fresh, eligible box. Unknown
outcomes print C38 and exit non-zero.
- The door (POST .../instances/{host}/label): owner only, empty service
role set, linked apps refused, host-claim consoles answer C33. Writes
mark, then provision.SetRecordFirstFleetBox (FleetBox, FleetBoxAt,
FleetBoxMoved, every refusal re-checked inside the CAS), then serial.
- D1: a process create on a multi-box fleet is labelled at create from
the verified manifest, or refused (503 C39, Retry-After 30; C42 for
unplaceable records) before any write.
- A system unit is never movable (door, D1, relabel and drain).
- Copy: CLI and refusals Luna-reviewed under Paul's delegation; the
docs/site/cli.md section approved by Paul. Census m2 approved by
Astra (#280).
Reviews: Astra per task; whole-branch Astra and Fable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Squashed from fleet-record-labels-m2 into main.
52 files changed,
+5,108
−110
approved_fleet_record_labels_copy_test.go+183 −0approved_stateless_replicas_copy_test.go+6 −1cli.go+1 −0docs/drafts/fleet-record-labels/LUNA-COPY-BRIEF.md+84 −0docs/drafts/fleet-record-labels/README.md+170 −0docs/drafts/fleet-record-labels/paul-review/strings.json+77 −0docs/drafts/fleet-record-labels/strings.json+573 −0docs/parity.md+3 −2docs/site/cli.md+35 −0docs/superpowers/notes/census-proposal-fleet-record-labels-m2.md+11 −0docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md+2 −2docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m2.md+107 −0instances_cli.go+427 −0instances_cli_label_test.go+571 −0instances_label_copy_keys_test.go+118 −0internal/activator/activator.go+3 −3internal/activator/pendingwake_linux_test.go+2 −2internal/activator/startrule.go+1 −1internal/console/apiinstances.go+64 −23internal/console/apiinstances_test.go+427 −0internal/console/appcopies.go+6 −4internal/console/appcopies_test.go+4 −2internal/console/claim_invariant_fixtures_test.go+10 −0internal/console/claim_invariant_test.go+3 −0internal/console/copysince_paths_test.go+8 −1internal/console/fleetbox.go+17 −6internal/console/fleetbox_test.go+29 −22internal/console/fleetcreate.go+146 −0internal/console/fleetrelabel_test.go+30 −0internal/console/instancelabel.go+539 −0internal/console/instancelabel_test.go+793 −0internal/console/linkedpolicy.go+1 −0internal/console/replicaplacement_fix_test.go+4 −2internal/console/rootfs.go+25 −6internal/console/routedecls.go+4 −0internal/console/server.go+10 −0internal/console/stateless_floor_test.go+7 −5internal/console/svcroutes_test.go+6 −2internal/console/testdata/claim-routes.txt+1 −0internal/host/fleettwobox_e2e_test.go+28 −8internal/provision/fleet_record_labels_census_test.go+105 −0internal/provision/fleetbox.go+101 −0internal/provision/fleetbox_first_test.go+311 −0internal/provision/plan9_b8_census_test.go+2 −2internal/provision/provision.go+3 −2internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-fleet-record-labels-m2.tsv+6 −0internal/release/layoutintent.go+12 −0internal/release/layoutintent_test.go+13 −0parity/cli.tsv+1 −0parity/parity.tsv+1 −0testdata/clireg-golden.jsonl+16 −14
CI passed — run details
approved_fleet_record_labels_copy_test.goLoading diff…
approved_stateless_replicas_copy_test.goLoading diff…
cli.goLoading diff…
docs/drafts/fleet-record-labels/LUNA-COPY-BRIEF.mdLoading diff…
docs/drafts/fleet-record-labels/README.mdLoading diff…
docs/drafts/fleet-record-labels/paul-review/strings.jsonLoading diff…
docs/drafts/fleet-record-labels/strings.jsonLoading diff…
docs/parity.mdLoading diff…
docs/site/cli.mdLoading diff…
docs/superpowers/notes/census-proposal-fleet-record-labels-m2.mdLoading diff…
docs/superpowers/plans/2026-11-01-stateless-replicas-copy.mdLoading diff…
docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m2.mdLoading diff…
instances_cli.goLoading diff…
instances_cli_label_test.goLoading diff…
instances_label_copy_keys_test.goLoading diff…
internal/activator/activator.goLoading diff…
internal/activator/pendingwake_linux_test.goLoading diff…
internal/activator/startrule.goLoading diff…
internal/console/apiinstances.goLoading diff…
internal/console/apiinstances_test.goLoading diff…
internal/console/appcopies.goLoading diff…
internal/console/appcopies_test.goLoading diff…
internal/console/claim_invariant_fixtures_test.goLoading diff…
internal/console/claim_invariant_test.goLoading diff…
internal/console/copysince_paths_test.goLoading diff…
internal/console/fleetbox.goLoading diff…
internal/console/fleetbox_test.goLoading diff…
internal/console/fleetcreate.goLoading diff…
internal/console/fleetrelabel_test.goLoading diff…
internal/console/instancelabel.goLoading diff…
internal/console/instancelabel_test.goLoading diff…
internal/console/linkedpolicy.goLoading diff…
internal/console/replicaplacement_fix_test.goLoading diff…
internal/console/rootfs.goLoading diff…
internal/console/routedecls.goLoading diff…
internal/console/server.goLoading diff…
internal/console/stateless_floor_test.goLoading diff…
internal/console/svcroutes_test.goLoading diff…
internal/console/testdata/claim-routes.txtLoading diff…
internal/host/fleettwobox_e2e_test.goLoading diff…
internal/provision/fleet_record_labels_census_test.goLoading diff…
internal/provision/fleetbox.goLoading diff…
internal/provision/fleetbox_first_test.goLoading diff…
internal/provision/plan9_b8_census_test.goLoading diff…
internal/provision/provision.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-fleet-record-labels-m2.tsvLoading diff…
internal/release/layoutintent.goLoading diff…
internal/release/layoutintent_test.goLoading diff…
parity/cli.tsvLoading diff…
parity/parity.tsvLoading diff…
testdata/clireg-golden.jsonlLoading diff…