carlos / platform Public

census: fleet record labels m1 after the review fix wave

Re-proposed with the fix wave's units: cleanupFailedWake, reapUnprovenWake, abandonCheckpointsAtExit, closeFailedWakeRep, failedWakeProvenCloser, Replicator.provenEmpty, and unlabelledFleetRow's kind check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 35dfd5abc5c72525d1db8143ef57750cdd2064a6 parent 431220e
3 files changed, +35 −15
  • docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md +13 −5
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv +21 −9

CI failed — run details

Intent

Human

<task-notification> <task-id>a33f5d4310c5c5cee</task-id> <tool-use-id>toolu_01H5zb9x48j5aCN8VgUxhyzZ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ac77363b-5830-422c-9f38-d7f2540dd398/tasks/a33f5d4310c5c5cee.output</output-file> <status>completed</status> <summary>Agent "M1 fix wave (3 P1, 4 P2)" 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 review items (1–7) are fixed. The census fails as expected because root units changed (15 discrepancies), so it needs your re-run. - **Commits:** - 534312d4 activator: R1 fence skips sidecar rows (M1 review P1) - a0de4b15 console: stateless moves need the runtime floor (M1 review P1) - 3ab3fb82 lease: a non-HA teardown is terminal before any sync (M1 review P2) - ed2c0e88 lease: a proven-empty fleet checkpoint releases (M1 review P1) - 562113a4 activator: fence pacing is apart from crash backoff (M1 review P2) - 3b43211a activator: Shutdown names every abandoned checkpoint (M1 review P2) - 134ab80c activator: failed fleet wakes prove their checkpoint (M1 review P2) - 431220ed activator: fix a witness comment (M1 review P2) - **Tests:** every new witness failed for the expected reason and then passed. Each passed `-count=3`, and the lease and activator ones also under `-race`. The activator, lease, console and host neighbour runs pass, and the darwin build compiles. No new copy keys: C44 and C45 are reused. - **Concerns:** - Item 3's proof that a database was never created costs up to 10 bucket LISTs per stop, only when the local file is missing. - Item 2 adds the v0.34 floor only for always-on binaries. A rootfs stateless record can still move to a v0.33 box, as before this branch; this needs a ruling. - `CloseProven` and `SyncAndWait` now answer `ErrSpent` while another close is syncing or after teardown. - The item 3 witness removes the fake app's leftover socket between wakes. Without that, a second wake fails in this test rig even with a database present. - **Report:** /home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-record-labels/.superpowers/sdd/2026-11-14-fleet-record-labels/m1-fixwave-report.md</result> <usage><subagent_tokens>333979</subagent_tokens><tool_uses>143</tool_uses><duration_ms>2405191</duration_ms></usage> </task-notification>

Attributed to this commit: 31.6 g CO₂e (3,586,676 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-fleet-record-labels, 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/docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md b/docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md
index 08ff06543..524f9f4b9 100644
--- a/docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md
+++ b/docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md
@@ -1,13 +1,15 @@
# Census approval: fleet-record-labels-m1
-Ruling `census-ruling-fleet-record-labels-m1`. The independent reviewer approves or rejects every change below, 3 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-fleet-record-labels-m1`. The independent reviewer approves or rejects every change below, 7 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
| `internal/activator/activator.go` `Service.finishStop` | body | unchanged (5) | fleet record labels R2: a non-HA replica of a fleet-placed row releases through closeFleetCheckpoint (CloseProven) instead of Close; an unproven final checkpoint keeps the stop pending (keepPendingLocked) with the lease held and renewing, or abandons to TTL at Shutdown or over a lost lease; never releases over an unproven checkpoint; platform-region rows unchanged; the same five read sites, no read added |
-| `internal/activator/activator.go` `type Service` | body | unchanged (0) | fleet record labels R2: actEntry gains checkpointCancel, checkpointUnproven, checkpointAbandoned (in-memory, under a.mu); Service gains three test seams nil in production (checkpointKept, checkpointStarted, checkpointContext); declarations only, no read |
+| `internal/activator/activator.go` `type Service` | body | unchanged (0) | fleet record labels R1/R2: actEntry gains checkpointCancel, checkpointUnproven, checkpointAbandoned and the once-only C45 ownership state (in-memory, under a.mu); the worker gains fence pacing apart from crash backoff; Service gains test seams nil in production (checkpointKept, checkpointStarted, checkpointContext); declarations only, no read |
| `internal/activator/startrule.go` `ExecBackend.startAllowed` | body | unchanged (7) | fleet record labels R2: refusal wording only (C43 draft copy, set-aside paths named); the same refusals, still wrapping ErrNothingToRestore; read sites unchanged, no read added |
-| `internal/activator/rootfsworkers.go` `Service.runWorkerStart` | sites | +whole:Route ×2 | fleet record labels R1: the existing route/record recheck at a worker start now also runs for an unlabelled stateless fleet-placed row (unlabelledFleetRow), the same currentWakeRoute gate the wake uses; a fence refusal doubles the worker backoff up to sidecarRestartMax without noting a crash; +whole:Route reads are of the in-memory route row the entry already holds; only refuses, no new kind of read |
+| `internal/activator/maintenance.go` `Service.cleanupFailedWake` | sites | +registry:Host, +whole:Route ×3 | fleet record labels R2 (M1 review): a failed wake of a fleet-placed non-HA row tears its replica down through closeFailedWakeRep (proven close) instead of Close; unproven, it is kept as an unproven wake for the reaper, or abandoned to TTL at Shutdown; the added reads are of the entry's own in-memory route row; only holds a release back |
+| `internal/activator/opset.go` `Service.reapUnprovenWake` | sites | +whole:Route | fleet record labels R2 (M1 review): the reaper's replica close goes through closeFailedWakeRep for fleet-placed non-HA rows; unproven, the wake stays for the next reap; +whole:Route is the entry's in-memory route; only holds a release back |
+| `internal/activator/rootfsworkers.go` `Service.runWorkerStart` | sites | +whole:Route ×2 | fleet record labels R1: the existing route/record recheck at a worker start also runs for an unlabelled stateless fleet-placed instance row (unlabelledFleetRow); a fence refusal paces the retry on its own backoff (cleared on install), never the crash backoff; only refuses; read sites unchanged |
| `internal/activator/wakeidentity.go` `Service.currentWakeRoute` | sites | +whole:Route | fleet record labels R1: an unlabelled fleet-placed row on a fleet box (FleetWakeCheck or FleetWakeUnknown) now goes through unlabelledFleetFence (one record GET through the existing FleetRecordFrom reader, the same reader labelled wakes use) and is refused when the record names a box, has a replica assignment, or is retired/unreadable; only refuses; no new kind of read |
Envelopes re-pinned: `internal/activator`, `internal/host`, `internal/lease`.
@@ -19,15 +21,21 @@ Recorded dispositions, which each change must still satisfy:
- `internal/activator/activator.go` `Service.finishStop`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a forgotten entry's stop is noted for its resident (noteResidentStopLocked: crash or lost lease backs off, any other stop restarts on the next tick) and its ownerDone channel is closed; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: while the host has a release command's record (a.releaseOps[e.host], running or not proven stopped), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the record's proof; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: while a rootfs worker may run or is a stray (rootfsWorkersLiveLocked, in-memory, read under a.mu), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the workers are proven stopped; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1 (Astra P1): beside the worker check, under the same lock, a stop with a lease stop of its commands outstanding (e.leaseStops) is kept pending, the replica and lease held, and the sweep finishes it once they have returned; the entry is never released while a kill captured for it may still reach its unit; the same five read sites, no read added Task 9 (PF-3): the count is pendingLeaseStopsLocked(e), the sum of e.leaseStops over both one-shot roles (now a map per role, cmd and tty), so a session's lease stop of the tty unit keeps the stop pending, the replica and lease held, as a run's does; the same five read sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Retain command, worker, release and cgroup proofs. For an actual stateless generation no replica needs closing; close local lifecycle ownership only once those proofs finish.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) under a.mu just before the entry is deleted; it only calls the legs' context cancel functions. No read added, none removed.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch HA loss if release leaves an obligation; stopping proofs still precede entry removal; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5 fix 1: records the finished stop's release outcome (marker written, clean) in the drain transaction's in-memory release log while a drain records (noteDrainReleaseLocked); memory only; no read added
- `internal/activator/activator.go` `type Service`: authority, task B,C,D,F,J4. Basis: rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added;rev3=census-ruling-held-move-speed;basis=the agent as carlos: one new field, moveStreams (per-host in-memory set of edge.StreamEnd for requests in flight, own mutex), for the move's early stream cut; actEntry gains drainRelease (bool, under a.mu), set by DrainStop; declarations only, no read added;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: two fields, wakeFailMu and wakeFailLogged (per-host in-memory note of the last journalled wake failure); declaration only, no read;rev3=census-ruling-w6-ingress-drain;basis=new field TenantStartsClosed func() bool; when it answers true tenantStartRefusal refuses every start, exempt routes included. Wired only by fixedAdmission.bind to the ingress drain's closed flag. Struct field only; no read added.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: one field, replicaPolicies (host to the newest observed replica deploy and this box label, under mu), set only by SetReplicaDeploy; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task2-fix1;basis=Task 2 fix round 1: one more in-memory field, replicaFailed (host to the permit whose successor failed here, under mu), so that step only proves what it kept; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix round 3 (#511 F11): two hook fields, MarkReplicaRelease and ReplicaReleaseMark (the failure book's per-host release mark on this box's disk). No read site.;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 first commit (#511 F11): one in-memory field, heldSeen (host to the last held release attempt, error class and when it was met), under the existing wakeFailMu. Declaration only, no read.;rev3=census-ruling-stateless-replicas-4-merge-main;basis=Merge of main 5fac2ff1: both sides changed it. Main (27d3f501) adds the background atomic.Int64 field that tests wait on; this branch keeps its replica fields. Both kept as-is; no read added.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 final wave item 3: adds replicaSwitched, an in-memory map of the permit each set row switched under (host -> permit key, time, resident flag); no read added; #511 micro-fix P1b: adds replicaNoGen, an in-memory map (host -> permit key and when first seen) that is only the bound's clock for a restarted permit holder with no generation; no read added;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 bound (round 1: clock with start and last seen): one in-memory field, releaseConfigWaits (per host, a stateless release's config wait), under mu; no read;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 review round 2 (#511): one field, retiringCopy, an atomic pointer to the edge's in-memory retired-copy check, handed over by edge.New (SetRetiringCopy); no read, no root decision;rev3=census-ruling-g6-fence;basis=G6 F-C Task 3, the agent as carlos: four fields, fenceWatchers (sync.WaitGroup of running write-fence watchers) and three test seams nil in production (fenceWatchStarted, retainDB, wakeReturned). Declaration only, no read.
- `internal/activator/startrule.go` `ExecBackend.startAllowed`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-managed-fleets-1b;basis=new (Task 3, rule 6): the start rule: an unlabelled or restored start is allowed; a kept local copy must match rt.Assigned in its marker; an empty start of a labelled row is refused (ErrNothingToRestore) when a set-aside entry exists for the host or rt.Moved is set. Only refuses. Agent, not root.;rev3=census-ruling-stateless-replicas-2;basis=A set projection refuses this SQLite empty-start rule; does not turn a route hint into bypass authority. Legacy rule unchanged.
+- `internal/activator/maintenance.go` `Service.cleanupFailedWake`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when #292's whole proof holds for an aborted legacy start (legacyRunGone: the unit stopped and its cgroup empty) this wake's uncertainty is discharged and the stages it never reached (no sidecar, no replica) are recorded as held; when the proof fails the start is retained exactly as before, now named as the owner of this wake's uncertainty (owedBy). Read sites unchanged; the proof still only decides release-or-keep; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: takes the wake's entry e as a new first argument and, when it is not nil, stops and joins the entry's HA files publisher (stopFiles) before anything else. Final fix F1: once the process's own proof has passed, an HA wake (haHeld(lease, w.rep)) is released only when haHostEmpty(rt) reads the host slice empty; otherwise it logs, marks the stop uncertain and retains the wake as unproven (retainUnprovenWake, with owedBy for a legacy start), keeping the lease and replica for the reaper. A non-HA wake's stop, proofs and give-back are unchanged. New sites +registry:Host (the log line) and +whole:Route x3 (rt to haHostEmpty and in the retained unprovenWake); no file read; only holds an HA release back;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.1]: when the wake's own release ended with its unit not proven stopped, the wake's lease is handed to the release record (oweWakeLeaseToRelease) and nothing is given back here; the record gives the lease back only after the unit is proven gone; the same 15 read sites, no read added; only holds a lease back;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Retain all existing termination proofs and unproven-wake obligations. A proven stateless failed wake has no replica or lease to release; use its actual generation mode, not the refreshed route projection.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 P1b after start (final re-review 2, concern 2): when a stateless wake's failed generation is proven stopped by the proof that already ran here (failedWakeStopped), the stateless branch also records the stop as complete (main stopped and exited, uncertainty cleared, sidecar stages held when the wake started none), as the reaper does for a retained one; an unproven stop, a legacy start left unproven, or a wake with nothing proven keeps its uncertainty. The same 15 read sites; no read added; no root decision
+- `internal/activator/opset.go` `Service.reapUnprovenWake`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when the retried proof holds for a retained legacy start and the host's stop history is uncertain only because of that start (owedBy), the uncertainty is discharged and the stages the failed wake never reached are recorded as held; any other uncertainty is kept through rememberStopLocked as before. Read sites unchanged; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, the sweep's retry of a retained failed wake: a wake retained by giveBackAfterStart (sliceOnly) counts as proven by its process alone, and then, final fix F1, any retained HA wake (haHeld(u.lease, u.rep)) is proven only if haHostEmpty(u.rt) also reads the host slice empty (+whole:Route); unproven, it stays retained with its lease; the legacy and generation proofs are unchanged; only holds an HA release back;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: After the existing generation termination proof, discharge a stateless local obligation without inventing a lease or replica. No proof is weakened.
- `internal/activator/rootfsworkers.go` `Service.runWorkerStart`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray;rev3=census-ruling-stateless-replicas-2;basis=Declared stateless set workers use the instance route and existing wake record recheck at actual launch, between two existing local worker gates. No read on a tick without a start, no new reads for stateful or unset assignments. Sidecar entry-point refusal remains.
- `internal/activator/wakeidentity.go` `Service.currentWakeRoute`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing registry and labelled fleet record recheck for reuse without a serving lease; return the observed row and record and refuse a nil record. No writer or new path.;rev3=census-ruling-agent-start-demo-1;basis=Agent-process unit. Compares demo identity/shape whenever either the route or its already-read record carries demo identity; refuses mismatches before restore or replication. No extra record request.;rev3=census-ruling-stateless-replicas-2;basis=Existing registry/record recheck validates canonical set, membership, lifetime, revision, owner and managed stateless shape. Reuses the one wake record read; unknown fleet and malformed projection refuse. merge of origin/main 6be08467: Check main demo record identity before the replica early return and explicitly refuse demo records or rows from the set branch; same existing registry/record reads.
New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+- new `internal/activator/activator.go:Service.abandonCheckpointsAtExit`: reads +registry:Host, +whole:Route ×3; written legacy, accepted-legacy, frozen
+- new `internal/activator/activator.go:Service.closeFailedWakeRep`: reads +registry:Host ×4, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/activator/activator.go:Service.fleetProvenCloser`: reads +registry:Region, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/activator/activator.go:failedWakeProvenCloser`: reads +registry:Region; written legacy, accepted-legacy, frozen
- new `internal/activator/wakeidentity.go:Service.unlabelledFleetFence`: reads +registry:Host ×5, +whole:Route ×2; written legacy, accepted-legacy, frozen
-- new `internal/activator/wakeidentity.go:unlabelledFleetRow`: reads +registry:Assigned, +registry:FleetBoxes, +registry:Region; written legacy, accepted-legacy, frozen
+- new `internal/activator/wakeidentity.go:unlabelledFleetRow`: reads +registry:Assigned, +registry:FleetBoxes, +registry:Kind, +registry:Region; written legacy, accepted-legacy, frozen
+- new `internal/lease/lease.go:Replicator.provenEmpty`: reads +file:Stat; written legacy, accepted-legacy, frozen
-Seal: `94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167` → `7a21ed5422154588ed8c4b22e01da649b12ba8da759ab2ccfcd452234141da01`.
+Seal: `94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167` → `24afaa00ead21e049aca6812b3c07cbd6c23f33c36a45702ceff73cbe7ebdf89`.
Overlay: `internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index c86396cf8..cfb0add9a 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -213,4 +213,4 @@ plan14-root-reads-fleet-tunnel-tls-state.tsv 846d1f22e6eb6b2cd8b3086fa554f15deba
plan14-root-reads-replica-console-account.tsv 87e151a55efb12fb84e9c5939f2ead9058527d8213e2eb16ee6c0f109787bb16
plan14-root-reads-offline-move-pool-target-413.tsv f79b455e32eb0f63e19ba8b5c67129e1af9315b8650c9e0807e83ec630a82182
plan14-root-reads-probe-burst-block.tsv 94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167
-plan14-root-reads-fleet-record-labels-m1.tsv 7a21ed5422154588ed8c4b22e01da649b12ba8da759ab2ccfcd452234141da01
+plan14-root-reads-fleet-record-labels-m1.tsv 24afaa00ead21e049aca6812b3c07cbd6c23f33c36a45702ceff73cbe7ebdf89
diff --git a/internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv b/internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv
index 091649acf..777875e9d 100644
--- a/internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv
+++ b/internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv
@@ -1,21 +1,33 @@
# Census overlay fleet-record-labels-m1, written by census-propose (#369). census-ruling-fleet-record-labels-m1, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md.
-# 3 body, 2 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 3 new dispositions: 0 reads re-frozen at their disposition with the claim, 3 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+# 3 body, 4 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 7 new dispositions: 0 reads re-frozen at their disposition with the claim, 7 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
@legacy ed455458ad261166f67a036426039b82f134b54e183f4a2c2f208b8c143b229d internal/activator/activator.go Service.finishStop legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a forgotten entry's stop is noted for its resident (noteResidentStopLocked: crash or lost lease backs off, any other stop restarts on the next tick) and its ownerDone channel is closed; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: while the host has a release command's record (a.releaseOps[e.host], running or not proven stopped), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the record's proof; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: while a rootfs worker may run or is a stray (rootfsWorkersLiveLocked, in-memory, read under a.mu), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the workers are proven stopped; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1 (Astra P1): beside the worker check, under the same lock, a stop with a lease stop of its commands outstanding (e.leaseStops) is kept pending, the replica and lease held, and the sweep finishes it once they have returned; the entry is never released while a kill captured for it may still reach its unit; the same five read sites, no read added Task 9 (PF-3): the count is pendingLeaseStopsLocked(e), the sum of e.leaseStops over both one-shot roles (now a map per role, cmd and tty), so a session's lease stop of the tty unit keeps the stop pending, the replica and lease held, as a run's does; the same five read sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Retain command, worker, release and cgroup proofs. For an actual stateless generation no replica needs closing; close local lifecycle ownership only once those proofs finish.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) under a.mu just before the entry is deleted; it only calls the legs' context cancel functions. No read added, none removed.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch HA loss if release leaves an obligation; stopping proofs still precede entry removal; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5 fix 1: records the finished stop's release outcome (marker written, clean) in the drain transaction's in-memory release log while a drain records (noteDrainReleaseLocked); memory only; no read added;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2: a non-HA replica of a fleet-placed row releases through closeFleetCheckpoint (CloseProven) instead of Close; an unproven final checkpoint keeps the stop pending (keepPendingLocked) with the lease held and renewing, or abandons to TTL at Shutdown or over a lost lease; never releases over an unproven checkpoint; platform-region rows unchanged; the same five read sites, no read added registry:Socket@4882,registry:Socket@4987,whole:Route@4832,whole:Route@4884,whole:Route@4989 18e88e0c55fd79e6b80c764d5d8ce46468f23bc1b752368655cea05417898d21
@legacy 36a8277768d7554fa1f1fa4faa9806e1d0d08c11ddeedc07a9133122c93b45cb internal/activator/startrule.go ExecBackend.startAllowed legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-1b;basis=new (Task 3, rule 6): the start rule: an unlabelled or restored start is allowed; a kept local copy must match rt.Assigned in its marker; an empty start of a labelled row is refused (ErrNothingToRestore) when a set-aside entry exists for the host or rt.Moved is set. Only refuses. Agent, not root.;rev3=census-ruling-stateless-replicas-2;basis=A set projection refuses this SQLite empty-start rule; does not turn a route hint into bypass authority. Legacy rule unchanged.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2: refusal wording only (C43 draft copy, set-aside paths named); the same refusals, still wrapping ErrNothingToRestore; read sites unchanged, no read added registry:Assigned@244,registry:Assigned@701,registry:Assigned@853,registry:FleetBoxes@196,registry:Host@301,registry:Moved@1389,whole:Route@348 bbec2a743f3dd4a1c5154dfcb6786d7fe6919beb78600c396a63e89ef284f491
+@legacy ad9aeceeaf5b1d260f96887585c8093fba52fafe72e7b1c80a848fec61f2c68e internal/activator/activator.go Service.abandonCheckpointsAtExit legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2: at the end of Shutdown's budget, for every entry with a fleet checkpoint in flight or kept pending (in-memory, under a.mu), abandons the replicator (no release, lease to TTL) and logs C45 naming the host; reads only in-memory entries and route rows; no store or tenant-path read registry:Host@1206,whole:Route@1109,whole:Route@1208,whole:Route@926 055eb27fb1b7fc68e3b56f0a2f9116cbd1aa2a2582054ea15af53784cee54525
+@legacy 1239d23e962ba9131e7f3a0c701405bcf963b7233d530506d6aed624debecb7a internal/activator/activator.go Service.closeFailedWakeRep legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2: a failed or reaped wake's replica close; fleet-placed non-HA rows go through CloseProven (unproven: kept or abandoned to TTL), others call Close as before; reads only the entry's in-memory route; no new kind of read registry:Host@456,registry:Host@585,registry:Host@620,registry:Host@728,whole:Route@177 afb749fcfe5f405b194f150902357fbef49a9ea36967f7c9bf2b688f90d80f2c
@legacy 5e7dcc3d20bf21923d376723d2f9a632610f2c9585899d51b15d3fef03052896 internal/activator/activator.go Service.fleetProvenCloser legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2: reads the entry's in-memory route region under a.mu and asserts the replica to provenCloser (lease *Replicator); no I/O, no store or tenant-path read registry:Region@101,whole:Route@103 ee201b379aae1a65eec88d728824c2d8cb90564ecf944e82f91d446861f19e85
+@legacy c48c3e308e1c52b4ba3f3661da55634e017ba842dca95127f578571574490d7b internal/activator/activator.go failedWakeProvenCloser legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2: pure check of the in-memory route region (registry.FleetPlacement) and an interface assertion on the replica; no I/O registry:Region@186 3bd7d6b172a652570b303527a424994da29265d31a68a49ccccedd225600238a
@legacy 0ed5f267319db7b8255a33e2d454a7c6702b4941fedde108bcb071022be47c93 internal/activator/wakeidentity.go Service.unlabelledFleetFence legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R1: for an unlabelled fleet-placed row reads its record once through a.Fleet.Record (FleetRecordFrom: provision.GetRecord of the row's own account/app/host in the deployment store), then only refuses (errRouteChangedUnderLease) on any FleetBox, ReplicaAssignment, retired, nil or unreadable record; never opens, runs or follows a path from the record registry:Host@1020,registry:Host@250,registry:Host@444,registry:Host@622,registry:Host@808,whole:Route@111,whole:Route@367 41447a6dbfdea163044c65c8bfc3597661ff823b10fb7cb0de53e2a0598eeb9b
-@legacy 89ab644da8d53a5a0e616a7d2a4c970020c7ff01f8d51b0cbdf7a5545ea17539 internal/activator/wakeidentity.go unlabelledFleetRow legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R1: pure predicate on the in-memory route row (Assigned and FleetBoxes empty, Region a fleet placement); no I/O registry:Assigned@54,registry:FleetBoxes@75,registry:Region@149 eb9ef1897911dab2e94a5c968833bbd1ab8d26223a12d91e64384c191ca1ec9c
-@legacy e30148d91dd81d2216214ed1db44c4709238127af2bf7b4982b212c773fdd0a0 internal/activator/rootfsworkers.go Service.runWorkerStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray;rev3=census-ruling-stateless-replicas-2;basis=Declared stateless set workers use the instance route and existing wake record recheck at actual launch, between two existing local worker gates. No read on a tick without a start, no new reads for stateful or unset assignments. Sidecar entry-point refusal remains.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1: the existing route/record recheck at a worker start now also runs for an unlabelled stateless fleet-placed row (unlabelledFleetRow), the same currentWakeRoute gate the wake uses; a fence refusal doubles the worker backoff up to sidecarRestartMax without noting a crash; +whole:Route reads are of the in-memory route row the entry already holds; only refuses, no new kind of read registry:FleetBoxes@2912,registry:Host@2707,registry:Host@3570,registry:Host@3761,registry:Host@4187,whole:Route@2392,whole:Route@2954,whole:Route@3107,whole:Route@3158,whole:Route@3332,whole:Route@3839,whole:Route@4251 b9d90bde56c52d4a50010a49ea7b46c8e4b144cb6f5c37e2766a3c757400722c
+@legacy ce24fea156150966fc2ad7f924ddd0e7b72bb9156154487943bb379b9b49e024 internal/activator/wakeidentity.go unlabelledFleetRow legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1: pure predicate on the in-memory route row: instance kind only (sidecar rows excluded, M1 review), Assigned and FleetBoxes empty, Region a fleet placement; +registry:Kind is the in-memory row field; no I/O registry:Assigned@79,registry:FleetBoxes@100,registry:Kind@54,registry:Region@174 285ec1725f05d962ef93d11ce5b646e90b85b0923033ce39f8f1f7efb3be2470
+@legacy 5646480b5a350194c4cb943e0a65608aad3b2981787ea5f9bcbf0a159af745c3 internal/lease/lease.go Replicator.provenEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2 (M1 review): os.Stat of the replicator's own local database path (configured by the agent, the instance's data dir) for not-exist only, then LISTs the instance's own replica prefix in the fleet data bucket for any LTX file; true only when the file is absent and the replica holds nothing; it only lets an empty instance's stop release; it opens, runs or follows nothing file:Stat@84 09a36d37327d2bb6e3d4bad713e64a05685109543fc38635e46cde62f82e9e89
+@legacy 7e201d9898b8e579067281f30fd685c2ee722b9a59bca041686435732eddb561 internal/activator/maintenance.go Service.cleanupFailedWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when #292's whole proof holds for an aborted legacy start (legacyRunGone: the unit stopped and its cgroup empty) this wake's uncertainty is discharged and the stages it never reached (no sidecar, no replica) are recorded as held; when the proof fails the start is retained exactly as before, now named as the owner of this wake's uncertainty (owedBy). Read sites unchanged; the proof still only decides release-or-keep; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: takes the wake's entry e as a new first argument and, when it is not nil, stops and joins the entry's HA files publisher (stopFiles) before anything else. Final fix F1: once the process's own proof has passed, an HA wake (haHeld(lease, w.rep)) is released only when haHostEmpty(rt) reads the host slice empty; otherwise it logs, marks the stop uncertain and retains the wake as unproven (retainUnprovenWake, with owedBy for a legacy start), keeping the lease and replica for the reaper. A non-HA wake's stop, proofs and give-back are unchanged. New sites +registry:Host (the log line) and +whole:Route x3 (rt to haHostEmpty and in the retained unprovenWake); no file read; only holds an HA release back;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.1]: when the wake's own release ended with its unit not proven stopped, the wake's lease is handed to the release record (oweWakeLeaseToRelease) and nothing is given back here; the record gives the lease back only after the unit is proven gone; the same 15 read sites, no read added; only holds a lease back;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Retain all existing termination proofs and unproven-wake obligations. A proven stateless failed wake has no replica or lease to release; use its actual generation mode, not the refreshed route projection.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 P1b after start (final re-review 2, concern 2): when a stateless wake's failed generation is proven stopped by the proof that already ran here (failedWakeStopped), the stateless branch also records the stop as complete (main stopped and exited, uncertainty cleared, sidecar stages held when the wake started none), as the reaper does for a retained one; an unproven stop, a legacy start left unproven, or a wake with nothing proven keeps its uncertainty. The same 15 read sites; no read added; no root decision;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2 (M1 review): a failed wake of a fleet-placed non-HA row tears its replica down through closeFailedWakeRep (proven close) instead of Close; unproven, it is kept as an unproven wake for the reaper, or abandoned to TTL at Shutdown; the added reads are of the entry's own in-memory route row; only holds a release back registry:Host@2332,registry:Host@2845,registry:Host@3816,registry:Host@4156,registry:Host@4848,registry:Host@6144,registry:Host@7230,whole:Route@2199,whole:Route@2438,whole:Route@2442,whole:Route@3498,whole:Route@4181,whole:Route@4185,whole:Route@4751,whole:Route@4884,whole:Route@4888,whole:Route@5812,whole:Route@5816,whole:Route@5987 2dd13c19ec4f3162d43b6e12790971c34b45da3645cce36546f0ae85a25fdf8a
+@legacy 791f5e1a27e59ddbf02648d9bc1560a0c66d64df3ebe0ec6cdd32e76bf88465d internal/activator/opset.go Service.reapUnprovenWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when the retried proof holds for a retained legacy start and the host's stop history is uncertain only because of that start (owedBy), the uncertainty is discharged and the stages the failed wake never reached are recorded as held; any other uncertainty is kept through rememberStopLocked as before. Read sites unchanged; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, the sweep's retry of a retained failed wake: a wake retained by giveBackAfterStart (sliceOnly) counts as proven by its process alone, and then, final fix F1, any retained HA wake (haHeld(u.lease, u.rep)) is proven only if haHostEmpty(u.rt) also reads the host slice empty (+whole:Route); unproven, it stays retained with its lease; the legacy and generation proofs are unchanged; only holds an HA release back;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: After the existing generation termination proof, discharge a stateless local obligation without inventing a lease or replica. No proof is weakened.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2 (M1 review): the reaper's replica close goes through closeFailedWakeRep for fleet-placed non-HA rows; unproven, the wake stays for the next reap; +whole:Route is the entry's in-memory route; only holds a release back whole:Route@1451,whole:Route@568,whole:Route@622,whole:Route@833 d75d2b78cf194d17fe2e42d5dc4461b0135e1c94d81d7534dd6f2ba29570c3e4
+@legacy 9072f5f3bcdc13144af39c9ade0f056d61dc9f2a37eccc32fbeae76bec84f373 internal/activator/rootfsworkers.go Service.runWorkerStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray;rev3=census-ruling-stateless-replicas-2;basis=Declared stateless set workers use the instance route and existing wake record recheck at actual launch, between two existing local worker gates. No read on a tick without a start, no new reads for stateful or unset assignments. Sidecar entry-point refusal remains.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1: the existing route/record recheck at a worker start also runs for an unlabelled stateless fleet-placed instance row (unlabelledFleetRow); a fence refusal paces the retry on its own backoff (cleared on install), never the crash backoff; only refuses; read sites unchanged registry:FleetBoxes@3007,registry:Host@2802,registry:Host@3665,registry:Host@3856,registry:Host@4282,whole:Route@2487,whole:Route@3049,whole:Route@3202,whole:Route@3253,whole:Route@3427,whole:Route@3934,whole:Route@4346 f2cad4d033eb65d3932a0735fab939a2456f8b0c7a677fbc962519639a3e19bb
@legacy 1af21a9abd19bc3326d8b72c43a5478afae4543c08bcf0ba6b0493f441e3d1cd internal/activator/wakeidentity.go Service.currentWakeRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing registry and labelled fleet record recheck for reuse without a serving lease; return the observed row and record and refuse a nil record. No writer or new path.;rev3=census-ruling-agent-start-demo-1;basis=Agent-process unit. Compares demo identity/shape whenever either the route or its already-read record carries demo identity; refuses mismatches before restore or replication. No extra record request.;rev3=census-ruling-stateless-replicas-2;basis=Existing registry/record recheck validates canonical set, membership, lifetime, revision, owner and managed stateless shape. Reuses the one wake record read; unknown fleet and malformed projection refuse. merge of origin/main 6be08467: Check main demo record identity before the replica early return and explicitly refuse demo records or rows from the set branch; same existing registry/record reads.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1: an unlabelled fleet-placed row on a fleet box (FleetWakeCheck or FleetWakeUnknown) now goes through unlabelledFleetFence (one record GET through the existing FleetRecordFrom reader, the same reader labelled wakes use) and is refused when the record names a box, has a replica assignment, or is retired/unreadable; only refuses; no new kind of read registry:Account@2070,registry:App@2095,registry:Assigned@3045,registry:Assigned@3255,registry:Assigned@510,registry:Channel@2239,registry:Copies@2631,registry:Environment@2301,registry:FleetBoxes@1713,registry:FleetBoxes@2581,registry:FleetBoxes@531,registry:FleetBoxes@727,registry:Host@1057,registry:Host@1200,registry:Host@1329,registry:Host@1496,registry:Host@2117,registry:Host@281,registry:Host@3180,registry:Host@379,registry:Kind@1816,registry:Region@2142,registry:Region@2173,registry:ReplicaIncarnation@2547,registry:ReplicaRevision@2678,registry:Runtime@2268,whole:Route@1413,whole:Route@1664,whole:Route@229,whole:Route@2975,whole:Route@3280,whole:Route@427,whole:Route@431,whole:Route@488,whole:Route@499,whole:Route@593,whole:Route@649,whole:Route@807 d348c8c7ba554d8a3e6f349cdb516f0301ff4d64d777d55b76fc51f67420af7b
internal/activator/activator.go Service.finishStop legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a forgotten entry's stop is noted for its resident (noteResidentStopLocked: crash or lost lease backs off, any other stop restarts on the next tick) and its ownerDone channel is closed; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: while the host has a release command's record (a.releaseOps[e.host], running or not proven stopped), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the record's proof; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: while a rootfs worker may run or is a stray (rootfsWorkersLiveLocked, in-memory, read under a.mu), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the workers are proven stopped; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1 (Astra P1): beside the worker check, under the same lock, a stop with a lease stop of its commands outstanding (e.leaseStops) is kept pending, the replica and lease held, and the sweep finishes it once they have returned; the entry is never released while a kill captured for it may still reach its unit; the same five read sites, no read added Task 9 (PF-3): the count is pendingLeaseStopsLocked(e), the sum of e.leaseStops over both one-shot roles (now a map per role, cmd and tty), so a session's lease stop of the tty unit keeps the stop pending, the replica and lease held, as a run's does; the same five read sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Retain command, worker, release and cgroup proofs. For an actual stateless generation no replica needs closing; close local lifecycle ownership only once those proofs finish.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) under a.mu just before the entry is deleted; it only calls the legs' context cancel functions. No read added, none removed.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch HA loss if release leaves an obligation; stopping proofs still precede entry removal; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5 fix 1: records the finished stop's release outcome (marker written, clean) in the drain transaction's in-memory release log while a drain records (noteDrainReleaseLocked); memory only; no read added;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2: a non-HA replica of a fleet-placed row releases through closeFleetCheckpoint (CloseProven) instead of Close; an unproven final checkpoint keeps the stop pending (keepPendingLocked) with the lease held and renewing, or abandons to TTL at Shutdown or over a lost lease; never releases over an unproven checkpoint; platform-region rows unchanged; the same five read sites, no read added registry:Socket@4882,registry:Socket@4987,whole:Route@4832,whole:Route@4884,whole:Route@4989 18e88e0c55fd79e6b80c764d5d8ce46468f23bc1b752368655cea05417898d21
-internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added;rev3=census-ruling-held-move-speed;basis=the agent as carlos: one new field, moveStreams (per-host in-memory set of edge.StreamEnd for requests in flight, own mutex), for the move's early stream cut; actEntry gains drainRelease (bool, under a.mu), set by DrainStop; declarations only, no read added;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: two fields, wakeFailMu and wakeFailLogged (per-host in-memory note of the last journalled wake failure); declaration only, no read;rev3=census-ruling-w6-ingress-drain;basis=new field TenantStartsClosed func() bool; when it answers true tenantStartRefusal refuses every start, exempt routes included. Wired only by fixedAdmission.bind to the ingress drain's closed flag. Struct field only; no read added.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: one field, replicaPolicies (host to the newest observed replica deploy and this box label, under mu), set only by SetReplicaDeploy; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task2-fix1;basis=Task 2 fix round 1: one more in-memory field, replicaFailed (host to the permit whose successor failed here, under mu), so that step only proves what it kept; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix round 3 (#511 F11): two hook fields, MarkReplicaRelease and ReplicaReleaseMark (the failure book's per-host release mark on this box's disk). No read site.;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 first commit (#511 F11): one in-memory field, heldSeen (host to the last held release attempt, error class and when it was met), under the existing wakeFailMu. Declaration only, no read.;rev3=census-ruling-stateless-replicas-4-merge-main;basis=Merge of main 5fac2ff1: both sides changed it. Main (27d3f501) adds the background atomic.Int64 field that tests wait on; this branch keeps its replica fields. Both kept as-is; no read added.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 final wave item 3: adds replicaSwitched, an in-memory map of the permit each set row switched under (host -> permit key, time, resident flag); no read added; #511 micro-fix P1b: adds replicaNoGen, an in-memory map (host -> permit key and when first seen) that is only the bound's clock for a restarted permit holder with no generation; no read added;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 bound (round 1: clock with start and last seen): one in-memory field, releaseConfigWaits (per host, a stateless release's config wait), under mu; no read;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 review round 2 (#511): one field, retiringCopy, an atomic pointer to the edge's in-memory retired-copy check, handed over by edge.New (SetRetiringCopy); no read, no root decision;rev3=census-ruling-g6-fence;basis=G6 F-C Task 3, the agent as carlos: four fields, fenceWatchers (sync.WaitGroup of running write-fence watchers) and three test seams nil in production (fenceWatchStarted, retainDB, wakeReturned). Declaration only, no read.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2: actEntry gains checkpointCancel, checkpointUnproven, checkpointAbandoned (in-memory, under a.mu); Service gains three test seams nil in production (checkpointKept, checkpointStarted, checkpointContext); declarations only, no read 507c3b8fdb19c7dc57bfb55eedd51c52f2b03ee84f0144e6c507406c363df359
+internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added;rev3=census-ruling-held-move-speed;basis=the agent as carlos: one new field, moveStreams (per-host in-memory set of edge.StreamEnd for requests in flight, own mutex), for the move's early stream cut; actEntry gains drainRelease (bool, under a.mu), set by DrainStop; declarations only, no read added;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: two fields, wakeFailMu and wakeFailLogged (per-host in-memory note of the last journalled wake failure); declaration only, no read;rev3=census-ruling-w6-ingress-drain;basis=new field TenantStartsClosed func() bool; when it answers true tenantStartRefusal refuses every start, exempt routes included. Wired only by fixedAdmission.bind to the ingress drain's closed flag. Struct field only; no read added.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: one field, replicaPolicies (host to the newest observed replica deploy and this box label, under mu), set only by SetReplicaDeploy; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task2-fix1;basis=Task 2 fix round 1: one more in-memory field, replicaFailed (host to the permit whose successor failed here, under mu), so that step only proves what it kept; declaration only, no read.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix round 3 (#511 F11): two hook fields, MarkReplicaRelease and ReplicaReleaseMark (the failure book's per-host release mark on this box's disk). No read site.;rev3=census-ruling-stateless-replicas-4-task5;basis=Task 5 first commit (#511 F11): one in-memory field, heldSeen (host to the last held release attempt, error class and when it was met), under the existing wakeFailMu. Declaration only, no read.;rev3=census-ruling-stateless-replicas-4-merge-main;basis=Merge of main 5fac2ff1: both sides changed it. Main (27d3f501) adds the background atomic.Int64 field that tests wait on; this branch keeps its replica fields. Both kept as-is; no read added.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 final wave item 3: adds replicaSwitched, an in-memory map of the permit each set row switched under (host -> permit key, time, resident flag); no read added; #511 micro-fix P1b: adds replicaNoGen, an in-memory map (host -> permit key and when first seen) that is only the bound's clock for a restarted permit holder with no generation; no read added;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 bound (round 1: clock with start and last seen): one in-memory field, releaseConfigWaits (per host, a stateless release's config wait), under mu; no read;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 review round 2 (#511): one field, retiringCopy, an atomic pointer to the edge's in-memory retired-copy check, handed over by edge.New (SetRetiringCopy); no read, no root decision;rev3=census-ruling-g6-fence;basis=G6 F-C Task 3, the agent as carlos: four fields, fenceWatchers (sync.WaitGroup of running write-fence watchers) and three test seams nil in production (fenceWatchStarted, retainDB, wakeReturned). Declaration only, no read.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1/R2: actEntry gains checkpointCancel, checkpointUnproven, checkpointAbandoned and the once-only C45 ownership state (in-memory, under a.mu); the worker gains fence pacing apart from crash backoff; Service gains test seams nil in production (checkpointKept, checkpointStarted, checkpointContext); declarations only, no read db6daeb46bafb0e14d44017e50b4e5e45c905dec2e683e911b10a218ffed7f07
internal/activator/startrule.go ExecBackend.startAllowed legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-1b;basis=new (Task 3, rule 6): the start rule: an unlabelled or restored start is allowed; a kept local copy must match rt.Assigned in its marker; an empty start of a labelled row is refused (ErrNothingToRestore) when a set-aside entry exists for the host or rt.Moved is set. Only refuses. Agent, not root.;rev3=census-ruling-stateless-replicas-2;basis=A set projection refuses this SQLite empty-start rule; does not turn a route hint into bypass authority. Legacy rule unchanged.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2: refusal wording only (C43 draft copy, set-aside paths named); the same refusals, still wrapping ErrNothingToRestore; read sites unchanged, no read added registry:Assigned@244,registry:Assigned@701,registry:Assigned@853,registry:FleetBoxes@196,registry:Host@301,registry:Moved@1389,whole:Route@348 bbec2a743f3dd4a1c5154dfcb6786d7fe6919beb78600c396a63e89ef284f491
+internal/activator/activator.go Service.abandonCheckpointsAtExit legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2: at the end of Shutdown's budget, for every entry with a fleet checkpoint in flight or kept pending (in-memory, under a.mu), abandons the replicator (no release, lease to TTL) and logs C45 naming the host; reads only in-memory entries and route rows; no store or tenant-path read registry:Host@1206,whole:Route@1109,whole:Route@1208,whole:Route@926 055eb27fb1b7fc68e3b56f0a2f9116cbd1aa2a2582054ea15af53784cee54525
+internal/activator/activator.go Service.closeFailedWakeRep legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2: a failed or reaped wake's replica close; fleet-placed non-HA rows go through CloseProven (unproven: kept or abandoned to TTL), others call Close as before; reads only the entry's in-memory route; no new kind of read registry:Host@456,registry:Host@585,registry:Host@620,registry:Host@728,whole:Route@177 afb749fcfe5f405b194f150902357fbef49a9ea36967f7c9bf2b688f90d80f2c
internal/activator/activator.go Service.fleetProvenCloser legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2: reads the entry's in-memory route region under a.mu and asserts the replica to provenCloser (lease *Replicator); no I/O, no store or tenant-path read registry:Region@101,whole:Route@103 ee201b379aae1a65eec88d728824c2d8cb90564ecf944e82f91d446861f19e85
+internal/activator/activator.go failedWakeProvenCloser legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2: pure check of the in-memory route region (registry.FleetPlacement) and an interface assertion on the replica; no I/O registry:Region@186 3bd7d6b172a652570b303527a424994da29265d31a68a49ccccedd225600238a
internal/activator/wakeidentity.go Service.unlabelledFleetFence legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R1: for an unlabelled fleet-placed row reads its record once through a.Fleet.Record (FleetRecordFrom: provision.GetRecord of the row's own account/app/host in the deployment store), then only refuses (errRouteChangedUnderLease) on any FleetBox, ReplicaAssignment, retired, nil or unreadable record; never opens, runs or follows a path from the record registry:Host@1020,registry:Host@250,registry:Host@444,registry:Host@622,registry:Host@808,whole:Route@111,whole:Route@367 41447a6dbfdea163044c65c8bfc3597661ff823b10fb7cb0de53e2a0598eeb9b
-internal/activator/wakeidentity.go unlabelledFleetRow legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R1: pure predicate on the in-memory route row (Assigned and FleetBoxes empty, Region a fleet placement); no I/O registry:Assigned@54,registry:FleetBoxes@75,registry:Region@149 eb9ef1897911dab2e94a5c968833bbd1ab8d26223a12d91e64384c191ca1ec9c
-internal/activator/rootfsworkers.go Service.runWorkerStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray;rev3=census-ruling-stateless-replicas-2;basis=Declared stateless set workers use the instance route and existing wake record recheck at actual launch, between two existing local worker gates. No read on a tick without a start, no new reads for stateful or unset assignments. Sidecar entry-point refusal remains.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1: the existing route/record recheck at a worker start now also runs for an unlabelled stateless fleet-placed row (unlabelledFleetRow), the same currentWakeRoute gate the wake uses; a fence refusal doubles the worker backoff up to sidecarRestartMax without noting a crash; +whole:Route reads are of the in-memory route row the entry already holds; only refuses, no new kind of read registry:FleetBoxes@2912,registry:Host@2707,registry:Host@3570,registry:Host@3761,registry:Host@4187,whole:Route@2392,whole:Route@2954,whole:Route@3107,whole:Route@3158,whole:Route@3332,whole:Route@3839,whole:Route@4251 b9d90bde56c52d4a50010a49ea7b46c8e4b144cb6f5c37e2766a3c757400722c
+internal/activator/wakeidentity.go unlabelledFleetRow legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1: pure predicate on the in-memory route row: instance kind only (sidecar rows excluded, M1 review), Assigned and FleetBoxes empty, Region a fleet placement; +registry:Kind is the in-memory row field; no I/O registry:Assigned@79,registry:FleetBoxes@100,registry:Kind@54,registry:Region@174 285ec1725f05d962ef93d11ce5b646e90b85b0923033ce39f8f1f7efb3be2470
+internal/lease/lease.go Replicator.provenEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-record-labels-m1;basis=new, fleet record labels R2 (M1 review): os.Stat of the replicator's own local database path (configured by the agent, the instance's data dir) for not-exist only, then LISTs the instance's own replica prefix in the fleet data bucket for any LTX file; true only when the file is absent and the replica holds nothing; it only lets an empty instance's stop release; it opens, runs or follows nothing file:Stat@84 09a36d37327d2bb6e3d4bad713e64a05685109543fc38635e46cde62f82e9e89
+internal/activator/maintenance.go Service.cleanupFailedWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when #292's whole proof holds for an aborted legacy start (legacyRunGone: the unit stopped and its cgroup empty) this wake's uncertainty is discharged and the stages it never reached (no sidecar, no replica) are recorded as held; when the proof fails the start is retained exactly as before, now named as the owner of this wake's uncertainty (owedBy). Read sites unchanged; the proof still only decides release-or-keep; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: takes the wake's entry e as a new first argument and, when it is not nil, stops and joins the entry's HA files publisher (stopFiles) before anything else. Final fix F1: once the process's own proof has passed, an HA wake (haHeld(lease, w.rep)) is released only when haHostEmpty(rt) reads the host slice empty; otherwise it logs, marks the stop uncertain and retains the wake as unproven (retainUnprovenWake, with owedBy for a legacy start), keeping the lease and replica for the reaper. A non-HA wake's stop, proofs and give-back are unchanged. New sites +registry:Host (the log line) and +whole:Route x3 (rt to haHostEmpty and in the retained unprovenWake); no file read; only holds an HA release back;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.1]: when the wake's own release ended with its unit not proven stopped, the wake's lease is handed to the release record (oweWakeLeaseToRelease) and nothing is given back here; the record gives the lease back only after the unit is proven gone; the same 15 read sites, no read added; only holds a lease back;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Retain all existing termination proofs and unproven-wake obligations. A proven stateless failed wake has no replica or lease to release; use its actual generation mode, not the refreshed route projection.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 P1b after start (final re-review 2, concern 2): when a stateless wake's failed generation is proven stopped by the proof that already ran here (failedWakeStopped), the stateless branch also records the stop as complete (main stopped and exited, uncertainty cleared, sidecar stages held when the wake started none), as the reaper does for a retained one; an unproven stop, a legacy start left unproven, or a wake with nothing proven keeps its uncertainty. The same 15 read sites; no read added; no root decision;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2 (M1 review): a failed wake of a fleet-placed non-HA row tears its replica down through closeFailedWakeRep (proven close) instead of Close; unproven, it is kept as an unproven wake for the reaper, or abandoned to TTL at Shutdown; the added reads are of the entry's own in-memory route row; only holds a release back registry:Host@2332,registry:Host@2845,registry:Host@3816,registry:Host@4156,registry:Host@4848,registry:Host@6144,registry:Host@7230,whole:Route@2199,whole:Route@2438,whole:Route@2442,whole:Route@3498,whole:Route@4181,whole:Route@4185,whole:Route@4751,whole:Route@4884,whole:Route@4888,whole:Route@5812,whole:Route@5816,whole:Route@5987 2dd13c19ec4f3162d43b6e12790971c34b45da3645cce36546f0ae85a25fdf8a
+internal/activator/opset.go Service.reapUnprovenWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): census ruling 292's body; when the retried proof holds for a retained legacy start and the host's stop history is uncertain only because of that start (owedBy), the uncertainty is discharged and the stages the failed wake never reached are recorded as held; any other uncertainty is kept through rememberStopLocked as before. Read sites unchanged; no new read and no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, the sweep's retry of a retained failed wake: a wake retained by giveBackAfterStart (sliceOnly) counts as proven by its process alone, and then, final fix F1, any retained HA wake (haHeld(u.lease, u.rep)) is proven only if haHostEmpty(u.rt) also reads the host slice empty (+whole:Route); unproven, it stays retained with its lease; the legacy and generation proofs are unchanged; only holds an HA release back;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: After the existing generation termination proof, discharge a stateless local obligation without inventing a lease or replica. No proof is weakened.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R2 (M1 review): the reaper's replica close goes through closeFailedWakeRep for fleet-placed non-HA rows; unproven, the wake stays for the next reap; +whole:Route is the entry's in-memory route; only holds a release back whole:Route@1451,whole:Route@568,whole:Route@622,whole:Route@833 d75d2b78cf194d17fe2e42d5dc4461b0135e1c94d81d7534dd6f2ba29570c3e4
+internal/activator/rootfsworkers.go Service.runWorkerStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray;rev3=census-ruling-stateless-replicas-2;basis=Declared stateless set workers use the instance route and existing wake record recheck at actual launch, between two existing local worker gates. No read on a tick without a start, no new reads for stateful or unset assignments. Sidecar entry-point refusal remains.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1: the existing route/record recheck at a worker start also runs for an unlabelled stateless fleet-placed instance row (unlabelledFleetRow); a fence refusal paces the retry on its own backoff (cleared on install), never the crash backoff; only refuses; read sites unchanged registry:FleetBoxes@3007,registry:Host@2802,registry:Host@3665,registry:Host@3856,registry:Host@4282,whole:Route@2487,whole:Route@3049,whole:Route@3202,whole:Route@3253,whole:Route@3427,whole:Route@3934,whole:Route@4346 f2cad4d033eb65d3932a0735fab939a2456f8b0c7a677fbc962519639a3e19bb
internal/activator/wakeidentity.go Service.currentWakeRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing registry and labelled fleet record recheck for reuse without a serving lease; return the observed row and record and refuse a nil record. No writer or new path.;rev3=census-ruling-agent-start-demo-1;basis=Agent-process unit. Compares demo identity/shape whenever either the route or its already-read record carries demo identity; refuses mismatches before restore or replication. No extra record request.;rev3=census-ruling-stateless-replicas-2;basis=Existing registry/record recheck validates canonical set, membership, lifetime, revision, owner and managed stateless shape. Reuses the one wake record read; unknown fleet and malformed projection refuse. merge of origin/main 6be08467: Check main demo record identity before the replica early return and explicitly refuse demo records or rows from the set branch; same existing registry/record reads.;rev3=census-ruling-fleet-record-labels-m1;basis=fleet record labels R1: an unlabelled fleet-placed row on a fleet box (FleetWakeCheck or FleetWakeUnknown) now goes through unlabelledFleetFence (one record GET through the existing FleetRecordFrom reader, the same reader labelled wakes use) and is refused when the record names a box, has a replica assignment, or is retired/unreadable; only refuses; no new kind of read registry:Account@2070,registry:App@2095,registry:Assigned@3045,registry:Assigned@3255,registry:Assigned@510,registry:Channel@2239,registry:Copies@2631,registry:Environment@2301,registry:FleetBoxes@1713,registry:FleetBoxes@2581,registry:FleetBoxes@531,registry:FleetBoxes@727,registry:Host@1057,registry:Host@1200,registry:Host@1329,registry:Host@1496,registry:Host@2117,registry:Host@281,registry:Host@3180,registry:Host@379,registry:Kind@1816,registry:Region@2142,registry:Region@2173,registry:ReplicaIncarnation@2547,registry:ReplicaRevision@2678,registry:Runtime@2268,whole:Route@1413,whole:Route@1664,whole:Route@229,whole:Route@2975,whole:Route@3280,whole:Route@427,whole:Route@431,whole:Route@488,whole:Route@499,whole:Route@593,whole:Route@649,whole:Route@807 d348c8c7ba554d8a3e6f349cdb516f0301ff4d64d777d55b76fc51f67420af7b
-@coverage internal/activator 74e6172c90d5c758ce096cdcc6845b5a655b1923b55bf13e323a7065728db809
+@coverage internal/activator a335d314c7c54136cc07692cf75e0046a978f9c266f39414f9c2a04850855ca9
@coverage internal/host ae6ea41aa57f35b6ba252d1af7d4d30f8c483232192845f3e216ff29d5b3e954
-@coverage internal/lease fef01320bc136b8e26b298177b3c56df61e39ac83b12eb58526aa225da967266
+@coverage internal/lease 5f8d23288ec99d81929186acaa7d95b0403419a00e0e5026f8a716ee7b712223