| index 7d28286c7..dce9f7b7f 100644 |
| --- a/docs/superpowers/notes/managed-fleets-1b-ledger.md |
| +++ b/docs/superpowers/notes/managed-fleets-1b-ledger.md |
| @@ -1,5 +1,7 @@ |
| # Managed fleets 1b: build rulings and deferred minors (from the SDD ledger) |
| |
| +Later rulings supersede earlier ones on the same point; the drain rule and Task 6a records were removed by the final ruling (option 2). |
| + |
| | T1 self | test "SetRecordRegion ... keep FleetBoxMoved as is" reads muddled | Ruling: SetRecordRegion clears FleetBox and FleetBoxAt and leaves FleetBoxMoved unchanged (a placement change between fleets is cut after hostname-history activation anyway) — cost if wrong: one field | |
| | T6 self | spans box side (heartbeat fields, durable failed-final-sync record in activator/host/status) and console side (worker, drain, detach, CLI, docs, registry columns) | Ruling: split into T6a (box side) and T6b (console side, consumes T6a's heartbeat fields) — two review surfaces, same plan text — cost if wrong: one extra dispatch | |
| Task 1: Ruling: TestPlan14RootReadCensus envelope drift (internal/provision) is left for Task 8 Step 1 (one census-propose for the whole branch) — every later task moves the envelope again — cost if wrong: CI red on intermediate pushes only |
| @@ -47,3 +49,5 @@ Task 7: minor (deferred): lost-box test should assert acquisition happens only a |
| Task 7: minor (deferred): restore runs emit Litestream diagnostics in test output |
| Task 7: minor (deferred): GOOS=darwin vet of internal/host fails on hawake_wiring_test.go:34 claimsOnEnv (reported pre-existing) |
| Task 8: Ruling: Luna D4 drops "after 20 minutes" (the lost-box threshold) — accepted verbatim per the copy precedent; the vaguer sentence is still true — cost if wrong: the docs omit a timing detail |
| +Final: Ruling (Paul, 2026-10-31, option 2): fix the pending-wake case centrally; replace the drain-completion evidence with terminate-confirmed detach (a box that ever held labelled records detaches only with --terminated); remove drainDone and Task 6a's box-side records and heartbeat fields (no remaining consumer; the wake refusal on record I/O errors would be behaviour with no purpose); the pre-existing Litestream SyncAndWait error discard becomes a follow-up discussion — cost: an unreplicated tail on a box terminated without a clean drain is lost |
| +Final: Ruling: after a fleet box acquires the lease for a labelled route it re-reads the instance RECORD from the bucket (through the store door) and refuses unless the record names this box with the same FleetBoxAt; one GET per cold wake of a labelled fleet route, no polling — the registry-only re-read misses a box whose reconcile lags, which could boot and then overwrite newer data — cost: one bucket GET per wake on labelled fleets |