carlos / platform Public

docs: fleet runbook (shutdown with a failing bucket, rollback floor)

Release manager 8a3d302's ruling asked for the runbook note beside the spec: a shutdown during a wedged bucket leaves the pending hosts unavailable until their lease TTL. Also records release A as the console rollback floor (spec D2), and corrects two m1 census claims the shutdown cut made stale.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c674d21da2b9c9b9162b5487b133ca73ea690c78 parent ac2dca8
4 files changed, +41 −7
  • docs/fleet-runbook.md +34 −0
  • docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md +3 −3
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-fleet-record-labels-m1.tsv +3 −3

CI failed — run details

Intent

Attributed to this commit: 61.7 g CO₂e (7,657,131 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/fleet-runbook.md b/docs/fleet-runbook.md
new file mode 100644
index 000000000..0fb04539a
--- /dev/null
+++ b/docs/fleet-runbook.md
@@ -0,0 +1,34 @@
+# Fleet operator runbook
+
+Notes for operators of managed fleets. Region HA has its own runbook
+(`docs/region-ha-runbook.md`).
+
+## Restarting an agent while the fleet's bucket is failing
+
+When a fleet box stops an instance, it releases the instance's lease
+only after its final checkpoint has reached the fleet's data bucket.
+If the bucket is failing, the stop stays pending: the process is
+already stopped, the box keeps the lease and retries the checkpoint,
+and it logs `final checkpoint for <host> failed. keeping its lease
+until the checkpoint succeeds`.
+
+If the agent shuts down while any of these are pending, it does not
+release those leases and does not wait for the bucket. For each one it
+logs an ERROR naming the host, then exits. Each lease then runs out on
+its own TTL.
+
+**What this costs:** those hosts are unavailable until their lease TTL
+passes. No other box can wake them before then, and that is the point:
+a box that takes over must restore from a checkpoint that is known to
+be complete.
+
+**What to do:** fix the bucket first. Once the TTL has passed, the next
+request wakes each host as usual. Restarting the agent again does not
+make it faster.
+
+## Rollback floor for fleet record labels
+
+The release that turned off the relabel worker's automatic first
+labelling (release A of fleet record labels, #1008) is the rollback
+floor for consoles. Never roll a console back below it: an older
+console labels records without their owner's say.
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 a8196613d..73f87b490 100644
--- a/docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md
+++ b/docs/superpowers/notes/census-proposal-fleet-record-labels-m1.md
@@ -4,8 +4,8 @@ Ruling `census-ruling-fleet-record-labels-m1`. The independent reviewer approves
| 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 R1/R2: actEntry gains checkpoint state (in-flight cancel, unproven, named-once flag for C45), in-memory under a.mu; the worker gains fence pacing apart from crash backoff; Service gains test seams nil in production; declarations only, no read |
+| `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 ends unclean without a release over a lost lease (ErrCheckpointAbandoned); at Shutdown it is only named (C45) and the lease runs to its TTL; 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 R1/R2: actEntry gains checkpoint state (busy while CloseProven runs, unproven, named-once flag for C45), in-memory under a.mu; the worker gains fence pacing apart from crash backoff; Service gains test seams nil in production; declarations only, no read |
| `internal/activator/opset.go` `Service.reapUnprovenWake` | body | unchanged (3) | 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; one fewer route read; only holds a release back |
| `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/maintenance.go` `Service.cleanupFailedWake` | sites | +registry:Host ×5, +whole:Route ×3 | fleet record labels R2 (M1 review + 8a3d302 cut): a failed wake of a fleet-placed non-HA row is registered in memory before its proven close, then closed through closeFailedWakeRep; unproven, it is kept for the reaper; the added registry:Host reads are the in-memory route row's host for logging and registration; only holds a release back |
@@ -36,6 +36,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- 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` → `3a248a2e43e08bf56239650c7e4a3d8c2283d746bdee050099c9c4547d0ce015`.
+Seal: `94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167` → `7facd8a26c9e2fe859e953d279603adc4d8a2d58e842f8c622c5ecb9ae387738`.
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 ca9f92d24..febee4e1f 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 3a248a2e43e08bf56239650c7e4a3d8c2283d746bdee050099c9c4547d0ce015
+plan14-root-reads-fleet-record-labels-m1.tsv 7facd8a26c9e2fe859e953d279603adc4d8a2d58e842f8c622c5ecb9ae387738
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 65c8fe294..e65513f9c 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,7 +1,7 @@
# 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.
# 4 body, 3 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 c9002c9674e8b20edc36cab55c586c2b77228d0931500347e466137209087036 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 ends unclean without a release over a lost lease (ErrCheckpointAbandoned); at Shutdown it is only named (C45) and the lease runs to its TTL; 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 8b1b5cfcc8960d8fb7315d3bfc3586b81f0a48dda3947510b5e6cde3bed68dee 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; one fewer route read; only holds a release back whole:Route@568,whole:Route@622,whole:Route@833 732228477555186312146d85fa83c6334eab608cb57cbe473645f58792e650e4
@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 06f51210495b498b3434b418c60351a72db52289a0e48d08a2e20fd4a6feac25 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 for the reaper; Shutdown only names it), others call Close as before; reads only the wake's in-memory route row; no new kind of read registry:Host@340,registry:Host@548,registry:Host@602,whole:Route@136,whole:Route@342,whole:Route@550,whole:Route@604 6217cf12d8aea1d04b4ef970e679bd3083bd274dac2ab9b22de0dfb4012333c7
@@ -14,8 +14,8 @@
@legacy 3b68c80308ce2d8978a04f4b9c0d2dc7d9003c16c462a19944d116aac8e5e0be 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 + 8a3d302 cut): a failed wake of a fleet-placed non-HA row is registered in memory before its proven close, then closed through closeFailedWakeRep; unproven, it is kept for the reaper; the added registry:Host reads are the in-memory route row's host for logging and registration; only holds a release back registry:Host@2332,registry:Host@2845,registry:Host@3816,registry:Host@4156,registry:Host@4848,registry:Host@6416,registry:Host@6546,registry:Host@6592,registry:Host@6769,registry:Host@6870,registry:Host@7956,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@6067,whole:Route@6071,whole:Route@6233 4ed78821e72997e696fea67349ac4b2d05cebad49fe45ee93599d4c62eab3c97
@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 R1/R2: actEntry gains checkpoint state (in-flight cancel, unproven, named-once flag for C45), in-memory under a.mu; the worker gains fence pacing apart from crash backoff; Service gains test seams nil in production; declarations only, no read e9054717da9a0c1ffc0fab8a106580463b484276028c709caae58e2ecac39bd5
+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 ends unclean without a release over a lost lease (ErrCheckpointAbandoned); at Shutdown it is only named (C45) and the lease runs to its TTL; 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 R1/R2: actEntry gains checkpoint state (busy while CloseProven runs, unproven, named-once flag for C45), in-memory under a.mu; the worker gains fence pacing apart from crash backoff; Service gains test seams nil in production; declarations only, no read e9054717da9a0c1ffc0fab8a106580463b484276028c709caae58e2ecac39bd5
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; one fewer route read; only holds a release back whole:Route@568,whole:Route@622,whole:Route@833 732228477555186312146d85fa83c6334eab608cb57cbe473645f58792e650e4
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.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 for the reaper; Shutdown only names it), others call Close as before; reads only the wake's in-memory route row; no new kind of read registry:Host@340,registry:Host@548,registry:Host@602,whole:Route@136,whole:Route@342,whole:Route@550,whole:Route@604 6217cf12d8aea1d04b4ef970e679bd3083bd274dac2ab9b22de0dfb4012333c7