carlos / platform Public

census: fleet record labels m2 after the review fix wave

Re-pins SetRecordFirstFleetBox (typed coordinator error),
Server.handleAPIInstanceLabel (503 reads, labelled_first, changed on CAS
conflict or migration) and instancelabel.go const#1 (labelled_first),
classes and kinds unchanged. Root-read overlay re-proposed: envelopes
. and internal/provision re-pinned, seal unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev bcf13dbe2e08abc8dd789137154bcaafe03ae1bf parent ffcb5d5
2 files changed, +19 −5
  • internal/provision/fleet_record_labels_census_test.go +17 −3
  • internal/provision/testdata/plan14-root-reads-fleet-record-labels-m2.tsv +2 −2

CI failed — run details

Intent

Human

<task-notification> <task-id>a1b6e504dd8c562bc</task-id> <tool-use-id>toolu_01NBRKUvXFcBA9RkhVQMJ9Ka</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ac77363b-5830-422c-9f38-d7f2540dd398/tasks/a1b6e504dd8c562bc.output</output-file> <status>completed</status> <summary>Agent "M2 fix wave (1 P1, 3 P2, 3 P3)" 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>- **Status:** DONE. All seven items are fixed, each shown failing before the fix and passing after. No approved copy changed. - **Commits:** bd71618a (1), a0171bf7 (2), 2b146b67 (3), 68d8aac6 (4), fca077f3 (5), c5483d64 (6), ffcb5d59 (7) on fleet-record-labels-m2. - **Tests:** the console, provision `TestFirstLabel` and root (`go test .`) neighbour runs pass; the census fails as expected (`TestPlan9B8RecordWriteCensus`: 3 sites; `TestPlan14RootReadCensus`: root and internal/provision changed), so it needs your re-run; the darwin and windows builds pass. - **Concern 1 (item 1):** putting the guard in `movable` also feeds the fleet view's `Unmovable` flag, which only the host-claim create path reads. On a host-claim console, one unassigned unit record now stops create labelling for its whole fleet, as HA, addr and demo records already do. I inverted `TestReplicaLegacyUnitMovability`, which pinned the old behaviour. - **Concern 2 (item 6):** if a write lands but its retry still sees a CAS conflict (an SDK retry of a conditional put that hits its own write), the door now says `changed` (C35) where it used to say C38. - **Concern 3 (item 5):** the CLI already printed the body of a 503, so its witness passed on the first run; only the console side went from failing to passing. - **Concern 4 (item 2):** the manifest witness fails only the first read. A manifest that can never be read is already refused earlier, with C08 at 502, before D1. - **Report:** /home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-record-labels/.superpowers/sdd/2026-11-14-fleet-record-labels/m2-fixwave-report.md</result> <usage><subagent_tokens>182346</subagent_tokens><tool_uses>73</tool_uses><duration_ms>1820576</duration_ms></usage> </task-notification>

Attributed to this commit: 10.6 g CO₂e (1,285,615 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on fleet-record-labels-m2, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/internal/provision/fleet_record_labels_census_test.go b/internal/provision/fleet_record_labels_census_test.go
index d66e18618..bb06c8034 100644
--- a/internal/provision/fleet_record_labels_census_test.go
+++ b/internal/provision/fleet_record_labels_census_test.go
@@ -50,6 +50,20 @@ package provision
//
// No other unit: with the key added, the census at b1f135f8 rejects these
// seven alone.
+//
+// The M2 review fix wave (bd71618a..ffcb5d59) re-digests three of the new
+// units; no record write is added and no class or kind changes:
+// - SetRecordFirstFleetBox: the live-coordinator refusal returns a
+// *FleetBoxCoordinatedError naming the coordinator's box (it unwraps to
+// ErrFleetBoxCoordinated). Still inside the updateRecord mutation; it
+// still only refuses or sets FleetBox, FleetBoxAt and FleetBoxMoved.
+// - Server.handleAPIInstanceLabel: read failures answer 503 with C37
+// (was 502); the writer's ErrFleetBoxNotFirst answers labelled_first;
+// a coordinated refusal names the box from the typed error; a CAS
+// conflict or ErrRecordMigrating answers changed. Refusal mapping only;
+// the one write is still provision.SetRecordFirstFleetBox.
+// - const#1: one more why_not code, labelled_first; codes only.
+// key-site / lit:sidecars, as before.
func fleetRecordLabelsM2WriteCensusInventory() []censusEntry {
entries := append([]censusEntry(nil), g6PoolWriteCensusInventory()...)
repins := []censusEntry{
@@ -71,9 +85,9 @@ func fleetRecordLabelsM2WriteCensusInventory() []censusEntry {
}
}
return append(entries,
- censusEntry{"internal/provision/fleetbox.go", "SetRecordFirstFleetBox", "record-writer", "key:SetRecordFirstFleetBox,key:updateRecord", "98584c87143a82bf2c304b7fc4c879c5fe06c3203c4571363e20bc704a901b18"},
- censusEntry{"internal/console/instancelabel.go", "Server.handleAPIInstanceLabel", "record-writer", "key:SetRecordFirstFleetBox", "fc941b5a704dfdead0e0fea0ff02a5b3b013b5cb4adadd9d7ebaa70a1874fd66"},
- censusEntry{"internal/console/instancelabel.go", "const#1", "key-site", "lit:sidecars", "84a93e0b27d9c4d25d3817f3e056db64fe336274ec32b7d2e10bd6b50c0dfdde"},
+ censusEntry{"internal/provision/fleetbox.go", "SetRecordFirstFleetBox", "record-writer", "key:SetRecordFirstFleetBox,key:updateRecord", "b0435a1118ed0030924cf9f7c2237b69da81c2812a8143b54b4bbe3a3504d846"},
+ censusEntry{"internal/console/instancelabel.go", "Server.handleAPIInstanceLabel", "record-writer", "key:SetRecordFirstFleetBox", "e589e5f20eba046091999f4b456d5a4d853978131b03553d8b9ef094da7304d3"},
+ censusEntry{"internal/console/instancelabel.go", "const#1", "key-site", "lit:sidecars", "334bfd116a2d382aaa5e888a4aa2e886e5cbe594258f75f9a8391389d713fc9d"},
censusEntry{"instances_cli.go", "apiSession.instanceLabel", "key-site", "lit:instances", "a992fad34e129b61a6f0cd2d8ce3d9076afb2f6321b2dea6baacc6a5b6702a9b"},
censusEntry{"instances_cli.go", "labelRefusal", "key-site", "lit:sidecars", "9a35dc620c892fa05d3b17e9fd8fff189c1fe0f716b6aad0df1317c64cf4c996"},
)
diff --git a/internal/provision/testdata/plan14-root-reads-fleet-record-labels-m2.tsv b/internal/provision/testdata/plan14-root-reads-fleet-record-labels-m2.tsv
index fe7220dc4..a25a0e211 100644
--- a/internal/provision/testdata/plan14-root-reads-fleet-record-labels-m2.tsv
+++ b/internal/provision/testdata/plan14-root-reads-fleet-record-labels-m2.tsv
@@ -1,6 +1,6 @@
# Census overlay fleet-record-labels-m2, written by census-propose (#369). census-ruling-fleet-record-labels-m2, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-fleet-record-labels-m2.md.
# 0 body, 0 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-@coverage . 0ab68a5bc431dd851eafe39985d7fb115813a4d5815ca5d97a17fd53c513a66a
+@coverage . 759e976518ceadd42262cf3d2071bfc0f24e4eda394e085ec98c3bcb94ad1fee
@coverage internal/activator 80de324fa6e417e5bd2a192691e1990795f1043ee2552e3f086e824f2ca8dbd8
-@coverage internal/provision ffe77e34bd6049083353650d7d6a45979050f433e78e6eff2aee23a3acbee374
+@coverage internal/provision 401b85fb3f62196dac79407c07e7a1cd6195ea30bc503e0a44a0b75cc55d3934
@coverage internal/release 31f384ef2ecc0d2e3f12582c4dc60b1a967a93f2534589d9e20da465a19b8656