carlos / platform Public

census: re-propose stateless-replicas-4-drill1 (#511)

Same NAME, rewritten over the R21b and bound changes. Added claims:
type Service (releaseConfigSince), doStatelessWake (secretsRefusal on
its refusals), followerEscrowEnv and prepareStatelessEscrow
(escrowComplete), escrowChanged and publishEscrowLocked (absence
markers); updated: replicaRestartedFailure, noteResidentWakeLocked and
prepareStatelessRelease. The hostfiles envelope is re-pinned. make
census-card is clean. The record-write census is unchanged (no record
writer changed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev f32f470440de985732ef6c222193445f69944d02 parent 3dc323f
3 files changed, +38 −16
  • docs/superpowers/notes/census-proposal-stateless-replicas-4-drill1.md +16 −6
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-stateless-replicas-4-drill1.tsv +21 −9

CI failed — run details

Intent

Attributed to this commit: 102 g CO₂e (13,310,272 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-4, 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-stateless-replicas-4-drill1.md b/docs/superpowers/notes/census-proposal-stateless-replicas-4-drill1.md
index 791444e8d..366784cc4 100644
--- a/docs/superpowers/notes/census-proposal-stateless-replicas-4-drill1.md
+++ b/docs/superpowers/notes/census-proposal-stateless-replicas-4-drill1.md
@@ -1,28 +1,36 @@
# Census approval: stateless-replicas-4-drill1
-Ruling `census-ruling-stateless-replicas-4-drill1`. The independent reviewer approves or rejects every change below, 6 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-stateless-replicas-4-drill1`. The independent reviewer approves or rejects every change below, 8 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.ConvergeAdopted` | body | unchanged (2) | #511 drill 1 F4: first calls adoptReplicaRow(host), so a copy that woke at copies 1 and whose row is now a set row is refused here like any set row; the refusal and every other check unchanged; no new read of its own |
+| `internal/activator/activator.go` `type Service` | body | unchanged (0) | #511 drill 1 R20 bound: one in-memory field, releaseConfigSince (per host, when a stateless release first waited for its config file), under mu; no read |
+| `internal/activator/escrow_authority.go` `ExecBackend.prepareStatelessEscrow` | body | unchanged (9) | #511 drill 1 R21b: its completeness check is escrowComplete (published or recorded absent) over the manifest it already loads; otherwise unchanged |
| `internal/activator/replicadeploy.go` `Service.ReplicaSwap` | body | unchanged (6) | #511 drill 1 F4: after the permit check, calls adoptReplicaRow(at.Host) so a copy that woke at copies 1 is judged on its row's assignment (its permitted step proves the running generation instead of refusing it as fenced); the permit, start gates, proofs and Swap are unchanged; no new read of its own |
-| `internal/activator/replicadeploy.go` `Service.replicaRestartedFailure` | body | unchanged (4) | #511 drill 1 R21: also reads, under a.mu, the host's in-memory resident state (secrets: its last wake was refused for the instance's shared secrets); with that set, the proven answer is kept (Proven, not WebFailed, reason SR-4-C83) instead of switched-failed; same bound, fence, stop proof and lift; no store, file or root call added |
+| `internal/activator/replicadeploy.go` `Service.replicaRestartedFailure` | body | unchanged (4) | #511 drill 1 R21: also reads, under a.mu, the host's in-memory resident state (secretsSince: its wakes have been refused for the instance's shared secrets); with that set, the proven answer is kept (Proven, not WebFailed, reason SR-4-C83) instead of switched-failed; same bound, fence, stop proof and lift; no store, file or root call added |
| `internal/activator/replicaprobe.go` `Service.ProbeCopy` | body | unchanged (24) | #511 drill 1 F4: first calls adoptReplicaRow(host); the probe's own checks, reads and evidence are unchanged |
-| `internal/activator/rootfs_service.go` `Service.noteResidentWakeLocked` | sites | +whole:Route | #511 drill 1 R21: records on the host's resident state whether this wake was refused for the instance's shared secrets (errors.Is errStatelessSecretsWaiting), cleared by any other outcome; the new whole:Route site is the entry's route already held (Resident); in-memory state only |
-| `internal/activator/statelessrelease.go` `Service.prepareStatelessRelease` | sites | +whole:Route | #511 drill 1 R20: before acquiring the term, a rootfs row asks the backend's releaseConfigWait (the config file's presence, else whether the configuration renders an environment) and returns its deferral with no attempt begun; adoption, gates, term, writer and run unchanged; the new whole:Route site passes the route already held |
+| `internal/activator/escrow_authority.go` `ExecBackend.followerEscrowEnv` | sites | +registry:Host | #511 drill 1 R21b: the escrow is complete when every sealed item is published or recorded absent by the coordinator (escrowComplete over the manifest it already read); only published items are read, restored and held to the local copy; a listed item that cannot be read still refuses; no new store or file read |
+| `internal/activator/rootfs_service.go` `Service.noteResidentWakeLocked` | sites | +whole:Route | #511 drill 1 R21/R21b: records on the host's resident state since when its wakes have been refused for the instance's shared secrets (errors.Is errStatelessSecretsWaiting), cleared by any other outcome; the new whole:Route site is the entry's route already held (Resident); in-memory state only |
+| `internal/activator/stateless.go` `Service.doStatelessWake` | sites | +registry:Host ×2 | #511 drill 1 R21b bound: its two refusal returns pass through secretsRefusal, which past replicaRestartBound of shared-secrets refusals (in-memory resident state) says the same refusal as SR-4-C83, wrapping it; no new read, start or write |
+| `internal/activator/statelessrelease.go` `Service.prepareStatelessRelease` | sites | +registry:Host ×3, +whole:Route | #511 drill 1 R20: before acquiring the term, a rootfs row asks the backend's releaseConfigWait (the config file's presence, else whether the configuration renders an environment) and returns its deferral with no attempt begun; past releaseConfigBound (residentPoll + workerStartBound, in-memory per host) it begins the attempt through the same writer and records it failed with nothing run (errReleaseConfigHeld); adoption, gates, term and run unchanged; the new sites pass the route and its host already held |
| `internal/provision/reconcile.go` `Reconcile` | sites | +registry:FleetBoxes, +whole:Route ×3 | #511 drill 1 F4: for a stateless row with a copy assignment (record or row), the binding callback gets the row as convergeOwned left it: one local registry Get of the same host after the pass's own writes; a row that cannot be read is bound next pass; no record read or write added |
-Envelopes re-pinned: `internal/activator`, `internal/appconfig`, `internal/host`, `internal/provision`.
+Envelopes re-pinned: `internal/activator`, `internal/appconfig`, `internal/host`, `internal/hostfiles`, `internal/provision`.
Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
Recorded dispositions, which each change must still satisfy:
- `internal/activator/activator.go` `Service.ConvergeAdopted`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: refuses (returns false) for a set row (route FleetBoxes) before any other check, so a repointed link never cycles a copy; a refusal only.
+- `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
+- `internal/activator/escrow_authority.go` `ExecBackend.prepareStatelessEscrow`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3b round 1 I2 / R20: for the matching released stateless attempt, validate route identity and reuse exact-lifetime held authority. Otherwise check readiness/conflict/layout and read the existing files manifest without a publisher. A complete trio stays read-only; missing trio calls the existing assignment/lifetime-judged Coordination.Acquire, whose RetryAt cache prevents early contention retries. Errors retain the approved waiting sentinel; no mint, publish, new paths, timer, release rerun or process stop. Existing launch preparation retains sealed restore, divergence, mint and first-publish checks.
- `internal/activator/replicadeploy.go` `Service.ReplicaSwap`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: new. Checks the permit (box label, phase released, not halted, ActiveBox, build), refuses a hold, asks tenantStartRefusal on the in-memory entry route, then either re-proves an existing switch (replicaSettle) or runs the existing Swap as a canary and checks replicaStepProven. Reads the in-memory entry route only; no store, file or root call of its own.;rev3=census-ruling-stateless-replicas-4-task2-fix1;basis=Task 2 fix round 1: proof-only steps (an already switched copy, a halted permit, a permit whose successor failed here) skip the start gates because nothing starts; a failed successor answers kept only after replicaKeptProven (its stop proven, an empty operation set). Reads only the in-memory entry route; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-task2-fix2;basis=Task 2 fix round 2: the switch proof is replicaSwitchProof, which also reports WorkersFailed (switched, the new workers crashed or did not start within the settle window) so the step answers instead of staying open. Reads only the in-memory entry; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-task2-fix3;basis=Task 2 fix round 3: replicaSwitchProof keeps the step open while a worker start is in flight or a gate-refused start waits for its retry, and judges a never-started worker only after residentPoll + workerStartBound from registration (Service clock); a crash or restart still answers workers failed. Reads only the in-memory entry; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 final wave item 3: records the switch per permit (noteReplicaSwitch) and, for a later step of that permit, replicaSwitchFailure may stop the switched generation with proof (FenceAndStopAs, LiftFenceAs) and answer switched-failed; the two new whole:Route sites pass the entry's route (already held) to noteReplicaSwitch for its Resident flag; no new path, file or input read; #511 micro-fix: clears replicaNoGen while the copy is awake; with no switch evidence and no entry, asks replicaRestartedFailure; a ProofOnly attempt (a sleeping copy's step) abandons before Swap or any start gate; no new read site
- `internal/activator/replicadeploy.go` `Service.replicaRestartedFailure`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-4-final;basis=#511 micro-fix P1b (new): for an always-on set row holding this box's permit with no entry and no switch evidence, reads the host's registry row (Routes.Get: Resident, FleetBoxes, ReplicaIncarnation) and stats at.StagedPath (the root-staged release.VersionPath the rollout named; metadata only, never opened, read or run); past replicaRestartBound it fences (FenceAndStopAs), checks releaseOps and StopUncertain, lifts its own fence (LiftFenceAs) and answers switched-failed; starts nothing
- `internal/activator/replicaprobe.go` `Service.ProbeCopy`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: read the local registry assignment and the already-awake entry's launch/worker evidence under the held-leg predicate; compare account, app, fleet, box membership and lifetime; no bucket call, wake, authority acquisition or activity update. Added registry field and whole Route reads are the existing local projection, not tenant-selected paths.
+- `internal/activator/escrow_authority.go` `ExecBackend.followerEscrowEnv`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: require a readable complete sealed trio from the existing files manifest, restore missing local files through the existing beneath/no-replace helper, capture env and compare local trio/minted variables against escrow before returning it. Local reads remain under the classified host data directory with ReadBeneathLimit; same sealed bucket keys, no mint, publisher or remote write. Conflict refusal uses the existing marker.
- `internal/activator/rootfs_service.go` `Service.noteResidentWakeLocked`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a proactive wake gives back its reservation; a resident's failed wake backs off only when it is the build's failure (residentFailure), otherwise retries on the next tick, waiting out another owner's lease when the error says so; state only
+- `internal/activator/stateless.go` `Service.doStatelessWake`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Run the selected stateless identity without Acquire, Restore, Seed, placeholder/assignment/first-boot markers or Replicate. Prove stale local processes, prepare the durable release, and gate the actual spawn on current placement/lifetime/configuration. Retain actual mode and failed-start obligations; register workers through the existing supervisor.
- `internal/activator/statelessrelease.go` `Service.prepareStatelessRelease`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-4-task1;basis=The former PrepareStatelessRelease body. R9: adopts the record's attempt for this lifetime and target in every phase before any coordination; otherwise acquires the term first and only then selects the ID (R1); a begin carries RetryOf only when consuming a durable retry. Same calls (ObserveReplicaRelease, coordinator, escrow initializer, actEntry, runReleaseAdmitted); same gates, proof and SafeUntil checks; no new store read or writer.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: refuses with provision.ErrReplicaSwitchOpen (SR-4-C31) before term acquisition when the observed record already has an unresolved copy-switch permit, instead of a begin the writer refuses and that read as an unknown result. Refusal only; same calls, no read added.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix rounds 1-3 (#511 F11): R9 adoption moves into adoptDurable. A begin, or the unknown close of an observed releasing attempt, that does not go through goes to refusedStep: a writer refusal (replicas.ReleaseRefused, record read by the adapter in the same call) re-runs adoptDurable once with no read of its own; anything else maps through stepError. Fix round 3: before the releasing write it saves this box's mark (MarkReplicaRelease: attempt ID and term), and after it, just before the exec, Started; a close or an in-call unknown of an attempt this box knows never started returns errReplicaReleaseNotStarted (SR-4-C59) and saves Closed. The record still closes as unknown. The marks are this box's own failure-book file (no store read or write); the exec's fresh record check stays the final gate.
- `internal/provision/reconcile.go` `Reconcile`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: collect validated instance records from the existing scan before pool filtering; report source completeness separately. Record reads, writes, scope and removal authority unchanged.;rev3=census-ruling-agent-start-demo-1;basis=Keeps local demo rows for signed cleanup instead of deleting the binding on record absence or trash; normal/hub paths unchanged. Merge integration against origin/main 9bd45488 retains main's HA departure inventory scan and family-completeness reporting alongside the early local-demo retention guard; existing record reads retained.;rev3=census-ruling-stateless-replicas-2;basis=Final fix I1: legacy records now reach the legacy ownership/removal judgement for former set rows; a greater local incarnation remains protected. Current set-record lifetime and membership checks remain. Same record/registry reads and removal writers. TestReplicaReconcileLegacySuccessor covers both boxes with and without the judge; P11 newer/unknown set protections remain covered. merge of origin/main 6be08467: Retain main signed demo retirement ownership alongside replica set retirement and legacy successor recovery; merge-only body change, unchanged read sources.;rev3=census-ruling-agent-start-demo-3;basis=Install durable source claim holds and reconcile fresh destination seed gates; preserve owned pending routes and stop orphan seeds before cleanup. Census read-site delta: +registry:Account, +registry:App, +registry:Host, +registry:ImportGate ×2, +registry:SeedSource ×2, +whole:Route ×4.;rev3=census-ruling-region-ha-g2-fixes;basis=Run guarded pool withdrawal, extract the unchanged judged collection rules into scanInstanceRecords, and publish pre-pool HA ingress including stale refusal names. Existing direct route reads remain; indirect withdrawal reads and deletion are separately claimed.;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 2: where a forward row holds an in-scope record's host, a link-placed one (registry.LinkPlacement over the listed row's Region) gets its own log line saying no pass here retires it; the record is still not applied, as before; one +registry:Region read of the listed row, no write added
@@ -34,7 +42,9 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/appconfig/instancekey.go:ConfiguredEnv`: reads +registry:App, +registry:Environment, +registry:Host, +whole:Route ×2; written legacy, accepted-legacy, frozen
- new `internal/host/replicahomekeys.go:configuredRead`: reads +whole:Route; written legacy, accepted-legacy, frozen
- quiet `internal/host/replicahomekeys.go:configuredKey`: reads nothing now; retired while it reads nothing (or its row keeps no sites)
+- reads `internal/activator/escrow.go:ExecBackend.escrowChanged`: +registry:Stateless, +whole:Route; keeps legacy, task accepted-legacy
+- reads `internal/activator/escrow.go:ExecBackend.publishEscrowLocked`: +registry:Stateless; keeps legacy, task accepted-legacy
-Seal: `52cf21b091a6a5a0c954bd92f60401dbd335806712024c2b736d50c532438564` → `d798a6082a6e893fa8b1a59d5b4f3c56d1be76b43f693d59db39c13bc16c4d5b`.
+Seal: `52cf21b091a6a5a0c954bd92f60401dbd335806712024c2b736d50c532438564` → `b6cf4311e4e3404f15ff72f4b2a39362ce127e076fd027f7d5b1d476a3f6af4d`.
Overlay: `internal/provision/testdata/plan14-root-reads-stateless-replicas-4-drill1.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 12c9fdd1c..58825ddcb 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -186,4 +186,4 @@ plan14-root-reads-stateless-replicas-4-task3f.tsv 2b9fbe8fe47f96f2f5fc54665c851d
plan14-root-reads-stateless-replicas-4-task5.tsv 76928a781fc03ae001dce640d4e7543f09a0e51a9a70312d716999a086b1353c
plan14-root-reads-stateless-replicas-4-merge-main.tsv 93c4edaeb1b8b692499da65ae7649217787cf996e9739ea0bf9ad0f229885ec7
plan14-root-reads-stateless-replicas-4-final.tsv 52cf21b091a6a5a0c954bd92f60401dbd335806712024c2b736d50c532438564
-plan14-root-reads-stateless-replicas-4-drill1.tsv d798a6082a6e893fa8b1a59d5b4f3c56d1be76b43f693d59db39c13bc16c4d5b
+plan14-root-reads-stateless-replicas-4-drill1.tsv b6cf4311e4e3404f15ff72f4b2a39362ce127e076fd027f7d5b1d476a3f6af4d
diff --git a/internal/provision/testdata/plan14-root-reads-stateless-replicas-4-drill1.tsv b/internal/provision/testdata/plan14-root-reads-stateless-replicas-4-drill1.tsv
index 985651783..dba1c146f 100644
--- a/internal/provision/testdata/plan14-root-reads-stateless-replicas-4-drill1.tsv
+++ b/internal/provision/testdata/plan14-root-reads-stateless-replicas-4-drill1.tsv
@@ -1,33 +1,45 @@
# Census overlay stateless-replicas-4-drill1, written by census-propose (#369). census-ruling-stateless-replicas-4-drill1, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-stateless-replicas-4-drill1.md.
-# 4 body, 3 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 6 new dispositions: 0 reads re-frozen at their disposition with the claim, 5 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
+# 6 body, 5 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 8 new dispositions: 2 reads re-frozen at their disposition with the claim, 5 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
@legacy b7e60137e9fbfdfece9cd4af809ff15e1ebc019bf3a66847fb827487970532b3 internal/activator/activator.go Service.ConvergeAdopted legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: refuses (returns false) for a set row (route FleetBoxes) before any other check, so a repointed link never cycles a copy; a refusal only.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4: first calls adoptReplicaRow(host), so a copy that woke at copies 1 and whose row is now a set row is refused here like any set row; the refusal and every other check unchanged; no new read of its own registry:FleetBoxes@458,whole:Route@460 072c475e29602ca57e5deecce7d9a898dfd545c7d337d3e33dd4db2e022a140a
+@legacy e68886571f382c3656294bed0fff873f9b4ecc19da821e20aa60ca903ba344e3 internal/activator/escrow_authority.go ExecBackend.prepareStatelessEscrow legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3b round 1 I2 / R20: for the matching released stateless attempt, validate route identity and reuse exact-lifetime held authority. Otherwise check readiness/conflict/layout and read the existing files manifest without a publisher. A complete trio stays read-only; missing trio calls the existing assignment/lifetime-judged Coordination.Acquire, whose RetryAt cache prevents early contention retries. Errors retain the approved waiting sentinel; no mint, publish, new paths, timer, release rerun or process stop. Existing launch preparation retains sealed restore, divergence, mint and first-publish checks.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b: its completeness check is escrowComplete (published or recorded absent) over the manifest it already loads; otherwise unchanged registry:Account@248,registry:App@272,registry:Host@293,registry:Host@539,registry:Host@745,registry:Host@832,registry:Stateless@218,whole:Route@469,whole:Route@619 f55a4de47fbc5820933c4bcdfd8f3decbb7b59e7103c6284261f821b4346d8dd
@legacy db5499dde41fccbd32f9b3f397df51fc578bb8ff8965000e31d3df92374a9029 internal/activator/replicadeploy.go Service.ReplicaSwap legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: new. Checks the permit (box label, phase released, not halted, ActiveBox, build), refuses a hold, asks tenantStartRefusal on the in-memory entry route, then either re-proves an existing switch (replicaSettle) or runs the existing Swap as a canary and checks replicaStepProven. Reads the in-memory entry route only; no store, file or root call of its own.;rev3=census-ruling-stateless-replicas-4-task2-fix1;basis=Task 2 fix round 1: proof-only steps (an already switched copy, a halted permit, a permit whose successor failed here) skip the start gates because nothing starts; a failed successor answers kept only after replicaKeptProven (its stop proven, an empty operation set). Reads only the in-memory entry route; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-task2-fix2;basis=Task 2 fix round 2: the switch proof is replicaSwitchProof, which also reports WorkersFailed (switched, the new workers crashed or did not start within the settle window) so the step answers instead of staying open. Reads only the in-memory entry; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-task2-fix3;basis=Task 2 fix round 3: replicaSwitchProof keeps the step open while a worker start is in flight or a gate-refused start waits for its retry, and judges a never-started worker only after residentPoll + workerStartBound from registration (Service clock); a crash or restart still answers workers failed. Reads only the in-memory entry; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 final wave item 3: records the switch per permit (noteReplicaSwitch) and, for a later step of that permit, replicaSwitchFailure may stop the switched generation with proof (FenceAndStopAs, LiftFenceAs) and answer switched-failed; the two new whole:Route sites pass the entry's route (already held) to noteReplicaSwitch for its Resident flag; no new path, file or input read; #511 micro-fix: clears replicaNoGen while the copy is awake; with no switch evidence and no entry, asks replicaRestartedFailure; a ProofOnly attempt (a sleeping copy's step) abandons before Swap or any start gate; no new read site;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4: after the permit check, calls adoptReplicaRow(at.Host) so a copy that woke at copies 1 is judged on its row's assignment (its permitted step proves the running generation instead of refusing it as fenced); the permit, start gates, proofs and Swap are unchanged; no new read of its own registry:FleetBoxes@1932,whole:Route@2294,whole:Route@2828,whole:Route@3073,whole:Route@652,whole:Route@662 55bd44137ef636a70ed64bcf739b41c6a1d5d1b5db58265c4009a24950cda6b1
-@legacy e918a7ceff3e00ffcc008a865ff8435a0a4c38695fb68e000146fdd557fe9896 internal/activator/replicadeploy.go Service.replicaRestartedFailure legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-final;basis=#511 micro-fix P1b (new): for an always-on set row holding this box's permit with no entry and no switch evidence, reads the host's registry row (Routes.Get: Resident, FleetBoxes, ReplicaIncarnation) and stats at.StagedPath (the root-staged release.VersionPath the rollout named; metadata only, never opened, read or run); past replicaRestartBound it fences (FenceAndStopAs), checks releaseOps and StopUncertain, lifts its own fence (LiftFenceAs) and answers switched-failed; starts nothing;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21: also reads, under a.mu, the host's in-memory resident state (secrets: its last wake was refused for the instance's shared secrets); with that set, the proven answer is kept (Proven, not WebFailed, reason SR-4-C83) instead of switched-failed; same bound, fence, stop proof and lift; no store, file or root call added file:Stat@483,registry:FleetBoxes@367,registry:ReplicaIncarnation@390,whole:Route@336 c251da00af992b7845dcfb7bc4b1a5b5774928d698ba010dfe4d5494bf579662
+@legacy da92c0084bc0b3a5b0a486529426c22e920af75b1b2950f0f36f00eafdbad2ae internal/activator/replicadeploy.go Service.replicaRestartedFailure legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-final;basis=#511 micro-fix P1b (new): for an always-on set row holding this box's permit with no entry and no switch evidence, reads the host's registry row (Routes.Get: Resident, FleetBoxes, ReplicaIncarnation) and stats at.StagedPath (the root-staged release.VersionPath the rollout named; metadata only, never opened, read or run); past replicaRestartBound it fences (FenceAndStopAs), checks releaseOps and StopUncertain, lifts its own fence (LiftFenceAs) and answers switched-failed; starts nothing;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21: also reads, under a.mu, the host's in-memory resident state (secretsSince: its wakes have been refused for the instance's shared secrets); with that set, the proven answer is kept (Proven, not WebFailed, reason SR-4-C83) instead of switched-failed; same bound, fence, stop proof and lift; no store, file or root call added file:Stat@483,registry:FleetBoxes@367,registry:ReplicaIncarnation@390,whole:Route@336 e54bca87787170a78dab71d21269c51f898e6e377c9d8f08ee6e856fbfe4cd73
@legacy d040296cbc08ac22aec1bb2c75f9ed8cacc5c30546df2b6ae8f462adae8a09db internal/activator/replicaprobe.go Service.ProbeCopy legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: read the local registry assignment and the already-awake entry's launch/worker evidence under the held-leg predicate; compare account, app, fleet, box membership and lifetime; no bucket call, wake, authority acquisition or activity update. Added registry field and whole Route reads are the existing local projection, not tenant-selected paths.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4: first calls adoptReplicaRow(host); the probe's own checks, reads and evidence are unchanged registry:Account@1589,registry:App@1606,registry:FleetBoxes@331,registry:HA@427,registry:HA@916,registry:Hibernate@411,registry:Hibernate@899,registry:Incarnation@844,registry:Incarnation@863,registry:Kind@386,registry:Region@1160,registry:Region@817,registry:Region@831,registry:ReplicaIncarnation@1683,registry:ReplicaIncarnation@766,registry:ReplicaIncarnation@792,registry:ReplicaRevision@1728,registry:Stateless@882,whole:Route@1108,whole:Route@1114,whole:Route@321,whole:Route@708,whole:Route@739,whole:Route@744 c6b3e4389f32829612e7343c8fc49ee769b83855b30469a10bf35b61f703f831
@legacy deb8a525a86e2210708b3f6129bf4a9db3fce524253c04244222d0d6af5585fe internal/activator/backend_rootfs.go ExecBackend.releaseConfigWait legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 (new): for a nested rootfs row, Lstat of the instance's own config file (pathsFor: <instance dir>/<host>.config.env; metadata only, never opened); if absent, MkdirAll of the instance directory (0700, as ReleaseEnv already does) and the ConfiguredEnv hook (the agent's bucket read of the app configuration); returns a deferral only; never runs, opens or follows anything file:Lstat@277,whole:Route@166,whole:Route@464 84a36678eaa1b0051b28a3920266663e21809b8ace31b71964e4db195310de10
@legacy a190651002bfcf07181864d79bb26ab8997e0509aeb94c10b73d2195dfbef520 internal/activator/backend_unit.go SplitBackend.releaseConfigWait legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 (new): forwards to the picked backend's releaseConfigWait, as ReleaseEnv forwards; no read of its own whole:Route@109,whole:Route@173 c30f9cbbb920b187d6fad9fc44c981461a8fb71607793dba9b14d1d9b71757cc
@legacy 0078a559d24eaa567cd5dc011694eebfe3775bc8ca6662c9e008bbf1f2b98ed4 internal/activator/replicaprobe.go Service.adoptReplicaRow legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4 (new): for an awake stateless entry whose route has no assignment, one local registry Get of the same host; if the row is the same row lifetime (wakeRouteChanged, Incarnation, Kind, Region, Socket, DBPath, Hibernate, HA) and now a valid set projection, copies only the assignment columns into the entry's route; starts, stops and runs nothing registry:Copies@889,registry:Copies@960,registry:DBPath@783,registry:DBPath@796,registry:FleetBox@1017,registry:FleetBox@1060,registry:FleetBoxes@173,registry:FleetBoxes@339,registry:FleetBoxes@531,registry:FleetBoxes@874,registry:FleetBoxes@944,registry:FleetLabel@1030,registry:FleetLabel@1074,registry:HA@843,registry:HA@852,registry:Hibernate@810,registry:Hibernate@826,registry:Incarnation@669,registry:Incarnation@687,registry:Kind@706,registry:Kind@717,registry:Region@729,registry:Region@742,registry:ReplicaIncarnation@201,registry:ReplicaIncarnation@559,registry:ReplicaIncarnation@920,registry:ReplicaIncarnation@993,registry:ReplicaRevision@900,registry:ReplicaRevision@972,registry:Socket@756,registry:Socket@769,registry:Stateless@1045,registry:Stateless@397,whole:Route@1098,whole:Route@1106,whole:Route@175,whole:Route@203,whole:Route@325,whole:Route@533,whole:Route@561,whole:Route@615,whole:Route@642,whole:Route@647 0414fb4ace920c21b5ff263276ea5d75be1873e0cc557a897bdc85bc77fc7fcf
@legacy 9fd6809cc3031b84d7a8cbbdcbe0e802119b673f4b409414f0d1ccf33f00d645 internal/appconfig/instancekey.go ConfiguredEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 (new): the same merged configuration read and renderer as ConfiguredKeyDigest (LoadMergedHostVersions, RenderEnv) for the row's account, app, environment and host; returns only whether the render is non-empty; the values never leave it registry:App@186,registry:Environment@194,registry:Host@210,whole:Route@181,whole:Route@321 f3d969920953bedfcd194fe6fbc0a8990072c46d86b004216cd3a28da814a141
@legacy 1d167aca100db63f3e7977afc6a83d100c3ecc1d9ff7e5236957fee7a240376f internal/host/replicahomekeys.go configuredRead legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 (new): configuredKey's former body made generic: the same store open, secrets key parse and no-source rule, then the given read (ConfiguredKeyDigest or ConfiguredEnv); no new source whole:Route@1005 c6d8646b55564419b11840639e79363403a8c6677a48c55ad1135a5e2690f225
-@legacy ebf2836dff4bb2d9c71c4afb82260fbde32e6a229fc9acb9acb73ac1aa9fe6c6 internal/activator/rootfs_service.go Service.noteResidentWakeLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a proactive wake gives back its reservation; a resident's failed wake backs off only when it is the build's failure (residentFailure), otherwise retries on the next tick, waiting out another owner's lease when the error says so; state only;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21: records on the host's resident state whether this wake was refused for the instance's shared secrets (errors.Is errStatelessSecretsWaiting), cleared by any other outcome; the new whole:Route site is the entry's route already held (Resident); in-memory state only whole:Route@187,whole:Route@356 e74544a2d66b9feeb2c7dddd09eb5cf809bae1e360eab8b4fd8b9f7d2664eb33
-@legacy ed2c7420d88b7d37c2053bb42d4856a7b094a49c465b392ff7c61a0ae986c523 internal/activator/statelessrelease.go Service.prepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-task1;basis=The former PrepareStatelessRelease body. R9: adopts the record's attempt for this lifetime and target in every phase before any coordination; otherwise acquires the term first and only then selects the ID (R1); a begin carries RetryOf only when consuming a durable retry. Same calls (ObserveReplicaRelease, coordinator, escrow initializer, actEntry, runReleaseAdmitted); same gates, proof and SafeUntil checks; no new store read or writer.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: refuses with provision.ErrReplicaSwitchOpen (SR-4-C31) before term acquisition when the observed record already has an unresolved copy-switch permit, instead of a begin the writer refuses and that read as an unknown result. Refusal only; same calls, no read added.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix rounds 1-3 (#511 F11): R9 adoption moves into adoptDurable. A begin, or the unknown close of an observed releasing attempt, that does not go through goes to refusedStep: a writer refusal (replicas.ReleaseRefused, record read by the adapter in the same call) re-runs adoptDurable once with no read of its own; anything else maps through stepError. Fix round 3: before the releasing write it saves this box's mark (MarkReplicaRelease: attempt ID and term), and after it, just before the exec, Started; a close or an in-call unknown of an attempt this box knows never started returns errReplicaReleaseNotStarted (SR-4-C59) and saves Closed. The record still closes as unknown. The marks are this box's own failure-book file (no store read or write); the exec's fresh record check stays the final gate.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20: before acquiring the term, a rootfs row asks the backend's releaseConfigWait (the config file's presence, else whether the configuration renders an environment) and returns its deferral with no attempt begun; adoption, gates, term, writer and run unchanged; the new whole:Route site passes the route already held registry:Account@634,registry:App@664,registry:GoodDemand@4910,registry:GoodDigest@4895,registry:GoodVersion@4879,registry:Host@1252,registry:Host@301,registry:Host@4966,registry:Host@5024,registry:Host@5240,registry:Host@5308,registry:Host@691,whole:Route@1603,whole:Route@3794,whole:Route@4694,whole:Route@5033,whole:Route@5040,whole:Route@569,whole:Route@5737,whole:Route@860 6a53028f70d5a63fd048f0fda53bfdfe5d8506f4c498a6ecdcc645029653eec6
+@legacy 1e21f178b82319f99fb20818c4ba0a7693325ecd7724856881147c5fc0ffc840 internal/activator/escrow.go ExecBackend.escrowChanged legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: compares each escrowed file's stamp (stampAt, beneath the row's data directory) with the last kept one; reads no bytes Fix round 1 (P1-4): the stamps are copied under the escrow mutex, entry by entry, before they are compared; the same opens, no read added.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b: a stateless host whose escrow does not yet record its absent trio files, on the box holding its authority (holdsEscrowAuthority), counts as changed so the sweep publishes it once; reads only this process's escrow state; the stamp checks are unchanged registry:Host@122,registry:Host@707,registry:Stateless@589,whole:Route@640 8867ea421e945d57ee26d5cb954f9b7f23fbcd4f7129e3c990d673fc28c844e6
+@legacy 654332889a63db778de24deb2e5ba681217a8648620cc306e4a4930f33d2b946 internal/activator/escrow.go ExecBackend.publishEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). Fix round 4: only a commit that wrote (the baseline's ETag moved) feeds what this process knows (learnBucket) and writes the ledger; a no-op commit on a ledger-opened publisher feeds nothing; the same reads and writes. Durability 3a Task 5: on the held baseline before staging and DropRawSecrets, noteRawSecrets(rt.Host, m). Reads only manifests this process already holds (no request, no file opened); calls the detector, which logs and calls ExecBackend.OnRawSecret; nothing else changes. The +registry:Host site is that call's argument. Branch fix R1 P1-1: every failed manifest commit drops the publisher, stamps, preparation read and bucket knowledge; the next operation opens the bucket and repeats divergence checks before staging. No new root input or read site. Branch fix R1 P1-4: a CommitRecoveryReadError from the existing CAS-recovery GET wraps errEscrowUnreadable, so the launch refuses rather than using the later-launch write-failure fallback. No new read. Branch fix R1 P1-3: select sealed escrow against Route.Incarnation before decrypting, restoring, minting or checking divergence: lower non-zero escrow is retired in the selected view, higher refuses, equal and zero-stamped retain behavior. Publication stamps the current lifetime atomically, drops prior-lifetime cached stamps, and never treats retired escrow as a committed successor. Same storage paths; historical objects retained. Branch fix R2: remove incarnation selection and stamping per Paul's ruling; restore pre-030ce7f9 hostname-scoped escrow behavior. No read added. Same-key hostname reuse can inherit predecessor secrets; a changed key refuses. Keep the uncertain-commit and CAS-recovery read-failure refusals. Branch fix R2 P1-3: delegate the existing baseline, divergence and StageSealed operations to stageEscrowReads, shared with HA. Same bucket objects and reads; lease gating, uncertain-commit state drop, and typed CAS-recovery refusal retained.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: recheck mode-specific authority before manifest commit; drop staged state on loss; preserve write-once divergence, bucket knowledge, CAS recovery and file-read protections.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b: for a stateless host, the publish also opens the escrow once per process to record absent trio files: for each trio file absent here with no item and no marker in the baseline, StageSealedAbsent (a plaintext marker, never a secret); for an item staged now whose marker exists, StagePlatformDelete of the marker; then the same authority check and commit; the absence is noted only when no read was refused registry:Host@2472,registry:Host@2736,registry:Host@4358,registry:Host@5628,registry:Host@574,registry:Stateless@1860,whole:Route@2663,whole:Route@2891,whole:Route@4398 fe6a6c3095457ece63f44b378000c291f43a67bea26586dee946b963de965d7c
+@legacy 7c1a61b6a1a1b1a8b6aed164fdb8d7d432913c19f23951bb017f2df2c676a197 internal/activator/escrow_authority.go ExecBackend.followerEscrowEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: require a readable complete sealed trio from the existing files manifest, restore missing local files through the existing beneath/no-replace helper, capture env and compare local trio/minted variables against escrow before returning it. Local reads remain under the classified host data directory with ReadBeneathLimit; same sealed bucket keys, no mint, publisher or remote write. Conflict refusal uses the existing marker.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b: the escrow is complete when every sealed item is published or recorded absent by the coordinator (escrowComplete over the manifest it already read); only published items are read, restored and held to the local copy; a listed item that cannot be read still refuses; no new store or file read registry:Host@1018,registry:Host@1113,registry:Host@1253,registry:Host@1539,registry:Host@392,whole:Route@1373,whole:Route@1448,whole:Route@1997,whole:Route@2120,whole:Route@322,whole:Route@479,whole:Route@599,whole:Route@709 7a8f9d17e66d53a490bd179aa29d39e1f11a6de2c438ff90e486f6a275681b82
+@legacy 98fe437066244505dc0c615f62f21b9a7a879beeddd8b975023388dbea5e62f4 internal/activator/rootfs_service.go Service.noteResidentWakeLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a proactive wake gives back its reservation; a resident's failed wake backs off only when it is the build's failure (residentFailure), otherwise retries on the next tick, waiting out another owner's lease when the error says so; state only;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21/R21b: records on the host's resident state since when its wakes have been refused for the instance's shared secrets (errors.Is errStatelessSecretsWaiting), cleared by any other outcome; the new whole:Route site is the entry's route already held (Resident); in-memory state only whole:Route@187,whole:Route@471 55b950e04b9d25c0595b98c4b66c0a49b594a797a01051014a5bf225760385ee
+@legacy c75aaf32e45b5d62098375cffdd3338c4edfd406f40e16bba9899eeef09199e9 internal/activator/stateless.go Service.doStatelessWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Run the selected stateless identity without Acquire, Restore, Seed, placeholder/assignment/first-boot markers or Replicate. Prove stale local processes, prepare the durable release, and gate the actual spawn on current placement/lifetime/configuration. Retain actual mode and failed-start obligations; register workers through the existing supervisor.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b bound: its two refusal returns pass through secretsRefusal, which past replicaRestartBound of shared-secrets refusals (in-memory resident state) says the same refusal as SR-4-C83, wrapping it; no new read, start or write registry:Host@2134,registry:Host@2170,registry:Host@424,registry:Host@502,registry:Stateless@968,whole:Route@1061,whole:Route@1238,whole:Route@1737,whole:Route@1967,whole:Route@2231,whole:Route@2306,whole:Route@2408,whole:Route@245,whole:Route@2537,whole:Route@290,whole:Route@369,whole:Route@909 09f2fd396179c054fe69b1c4179b2a1170fc297453fce194364d653c5c806ac3
+@legacy bc53deea0014cc99076e2b40aed21e4cab0eb13358522218b1034529406f2069 internal/activator/statelessrelease.go Service.prepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-task1;basis=The former PrepareStatelessRelease body. R9: adopts the record's attempt for this lifetime and target in every phase before any coordination; otherwise acquires the term first and only then selects the ID (R1); a begin carries RetryOf only when consuming a durable retry. Same calls (ObserveReplicaRelease, coordinator, escrow initializer, actEntry, runReleaseAdmitted); same gates, proof and SafeUntil checks; no new store read or writer.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: refuses with provision.ErrReplicaSwitchOpen (SR-4-C31) before term acquisition when the observed record already has an unresolved copy-switch permit, instead of a begin the writer refuses and that read as an unknown result. Refusal only; same calls, no read added.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix rounds 1-3 (#511 F11): R9 adoption moves into adoptDurable. A begin, or the unknown close of an observed releasing attempt, that does not go through goes to refusedStep: a writer refusal (replicas.ReleaseRefused, record read by the adapter in the same call) re-runs adoptDurable once with no read of its own; anything else maps through stepError. Fix round 3: before the releasing write it saves this box's mark (MarkReplicaRelease: attempt ID and term), and after it, just before the exec, Started; a close or an in-call unknown of an attempt this box knows never started returns errReplicaReleaseNotStarted (SR-4-C59) and saves Closed. The record still closes as unknown. The marks are this box's own failure-book file (no store read or write); the exec's fresh record check stays the final gate.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20: before acquiring the term, a rootfs row asks the backend's releaseConfigWait (the config file's presence, else whether the configuration renders an environment) and returns its deferral with no attempt begun; past releaseConfigBound (residentPoll + workerStartBound, in-memory per host) it begins the attempt through the same writer and records it failed with nothing run (errReleaseConfigHeld); adoption, gates, term and run unchanged; the new sites pass the route and its host already held registry:Account@634,registry:App@664,registry:GoodDemand@5576,registry:GoodDigest@5561,registry:GoodVersion@5545,registry:Host@1252,registry:Host@1831,registry:Host@1897,registry:Host@301,registry:Host@5348,registry:Host@5632,registry:Host@5690,registry:Host@5906,registry:Host@5974,registry:Host@691,whole:Route@1744,whole:Route@4112,whole:Route@5012,whole:Route@569,whole:Route@5699,whole:Route@5706,whole:Route@6403,whole:Route@860 5d927326083af0dd8298afd9001902990cc9cf8846de2e852219958b85771934
@legacy bfb10e46c79fc38c97f88aff2cc05c0e224b1d1dc87e9b3e7f6a0ed911d4e562 internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: collect validated instance records from the existing scan before pool filtering; report source completeness separately. Record reads, writes, scope and removal authority unchanged.;rev3=census-ruling-agent-start-demo-1;basis=Keeps local demo rows for signed cleanup instead of deleting the binding on record absence or trash; normal/hub paths unchanged. Merge integration against origin/main 9bd45488 retains main's HA departure inventory scan and family-completeness reporting alongside the early local-demo retention guard; existing record reads retained.;rev3=census-ruling-stateless-replicas-2;basis=Final fix I1: legacy records now reach the legacy ownership/removal judgement for former set rows; a greater local incarnation remains protected. Current set-record lifetime and membership checks remain. Same record/registry reads and removal writers. TestReplicaReconcileLegacySuccessor covers both boxes with and without the judge; P11 newer/unknown set protections remain covered. merge of origin/main 6be08467: Retain main signed demo retirement ownership alongside replica set retirement and legacy successor recovery; merge-only body change, unchanged read sources.;rev3=census-ruling-agent-start-demo-3;basis=Install durable source claim holds and reconcile fresh destination seed gates; preserve owned pending routes and stop orphan seeds before cleanup. Census read-site delta: +registry:Account, +registry:App, +registry:Host, +registry:ImportGate ×2, +registry:SeedSource ×2, +whole:Route ×4.;rev3=census-ruling-region-ha-g2-fixes;basis=Run guarded pool withdrawal, extract the unchanged judged collection rules into scanInstanceRecords, and publish pre-pool HA ingress including stale refusal names. Existing direct route reads remain; indirect withdrawal reads and deletion are separately claimed.;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 2: where a forward row holds an in-scope record's host, a link-placed one (registry.LinkPlacement over the listed row's Region) gets its own log line saying no pass here retires it; the record is still not applied, as before; one +registry:Region read of the listed row, no write added;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4: for a stateless row with a copy assignment (record or row), the binding callback gets the row as convergeOwned left it: one local registry Get of the same host after the pass's own writes; a row that cannot be read is bound next pass; no record read or write added registry:Account@26723,registry:Account@28593,registry:Account@47818,registry:Account@47864,registry:Account@49493,registry:Account@49870,registry:Account@50096,registry:Account@50163,registry:Account@50209,registry:Account@50302,registry:Account@50344,registry:Account@50992,registry:Account@51250,registry:Account@52152,registry:Account@52200,registry:Account@52609,registry:Account@52655,registry:Account@52900,registry:Account@53325,registry:Account@53813,registry:Account@54157,registry:Account@54759,registry:Account@54952,registry:Account@55364,registry:Account@55543,registry:Account@55867,registry:Account@56432,registry:App@26696,registry:App@28566,registry:App@47838,registry:App@47876,registry:App@49505,registry:App@49882,registry:App@50108,registry:App@50183,registry:App@50221,registry:App@50322,registry:App@51004,registry:App@51262,registry:App@52164,registry:App@52212,registry:App@52629,registry:App@52667,registry:App@52912,registry:App@53337,registry:App@53825,registry:App@54169,registry:App@54771,registry:App@54964,registry:App@55376,registry:App@55555,registry:App@55879,registry:App@56444,registry:Canary@48331,registry:ClaimOwnership@27310,registry:DBPath@37220,registry:DBPath@37235,registry:DBPath@37481,registry:DBPath@38084,registry:DBPath@38097,registry:EgressAllow@25809,registry:FleetBoxes@38580,registry:FleetBoxes@48292,registry:FleetBoxes@48440,registry:FleetBoxes@55152,registry:Gate@33117,registry:Gate@33257,registry:Gate@33544,registry:Hibernate@31789,registry:Hibernate@31987,registry:Hibernate@32052,registry:Hibernate@32391,registry:Hibernate@32742,registry:Hibernate@33052,registry:HoldOp@17800,registry:HoldOp@54504,registry:HoldOp@54595,registry:HoldOp@54730,registry:HoldOp@55106,registry:Host@15299,registry:Host@18203,registry:Host@18343,registry:Host@47797,registry:Host@48391,registry:Host@49469,registry:Host@49846,registry:Host@50010,registry:Host@50116,registry:Host@51012,registry:Host@51218,registry:Host@52492,registry:Host@52764,registry:Host@52879,registry:Host@53202,registry:Host@53299,registry:Host@53690,registry:Host@53787,registry:Host@54001,registry:Host@54203,registry:Host@54586,registry:Host@54721,registry:Host@54925,registry:Host@54998,registry:Host@55097,registry:Host@55337,registry:Host@55516,registry:Host@55595,registry:Host@55682,registry:Host@55841,registry:Host@55916,registry:Host@56002,registry:Host@56409,registry:ImportGate@34696,registry:ImportGate@34995,registry:Incarnation@17976,registry:Incarnation@48509,registry:Kind@18188,registry:Kind@18328,registry:Kind@27452,registry:Kind@27818,registry:Kind@28100,registry:Kind@28320,registry:Kind@37138,registry:Kind@37151,registry:Kind@37261,registry:Kind@37274,registry:Kind@37995,registry:Kind@38006,registry:Kind@46921,registry:Kind@53992,registry:Kind@54712,registry:Kind@55088,registry:Kind@55328,registry:Kind@55673,registry:Kind@55832,registry:Kind@55993,registry:Platform@48316,registry:PolicyExpiresAt@25834,registry:Pool@47007,registry:Provisioned@26672,registry:Provisioned@28542,registry:Provisioned@46966,registry:RateLimit@33630,registry:RateLimit@33781,registry:RateLimit@34068,registry:Region@17167,registry:Region@46996,registry:ReplicaIncarnation@17684,registry:ReplicaIncarnation@17721,registry:Replication@32476,registry:Replication@32603,registry:Runtime@19372,registry:Runtime@19550,registry:Runtime@21857,registry:Runtime@31156,registry:Runtime@31210,registry:Runtime@31414,registry:Seed@35618,registry:SeedSource@34654,registry:SeedSource@34974,registry:SeedSource@35101,registry:Size@25825,registry:Socket@37186,registry:Socket@37201,registry:Socket@37498,registry:Socket@38054,registry:Socket@38067,registry:Stateless@38155,registry:Unit@37104,registry:Unit@37117,registry:Unit@38021,registry:Unit@38032,whole:ClaimOwnership@27313,whole:ClaimOwnership@27330,whole:Route@15281,whole:Route@15292,whole:Route@15310,whole:Route@16591,whole:Route@17576,whole:Route@17787,whole:Route@18102,whole:Route@18388,whole:Route@18402,whole:Route@18415,whole:Route@18438,whole:Route@19867,whole:Route@19874,whole:Route@19914,whole:Route@20275,whole:Route@20430,whole:Route@20715,whole:Route@21162,whole:Route@21213,whole:Route@21250,whole:Route@22922,whole:Route@23131,whole:Route@23470,whole:Route@23479,whole:Route@23525,whole:Route@25758,whole:Route@26317,whole:Route@26788,whole:Route@26798,whole:Route@27155,whole:Route@27162,whole:Route@27230,whole:Route@27593,whole:Route@27649,whole:Route@27719,whole:Route@27730,whole:Route@28158,whole:Route@29191,whole:Route@32142,whole:Route@34803,whole:Route@37330,whole:Route@38531,whole:Route@38614,whole:Route@38658,whole:Route@38721,whole:Route@39614,whole:Route@39659,whole:Route@39669,whole:Route@40539,whole:Route@41566,whole:Route@47032,whole:Route@47180,whole:Route@48277,whole:Route@48647,whole:Route@49421,whole:Route@49803,whole:Route@51654,whole:Route@54095,whole:Route@55243,whole:Route@55754,whole:Route@56339,whole:Route@56389 e111129f5efcec76dd564146450f182719e4b98cf60c5383e9d9156e6f30d6dc
internal/activator/activator.go Service.ConvergeAdopted legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: refuses (returns false) for a set row (route FleetBoxes) before any other check, so a repointed link never cycles a copy; a refusal only.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4: first calls adoptReplicaRow(host), so a copy that woke at copies 1 and whose row is now a set row is refused here like any set row; the refusal and every other check unchanged; no new read of its own registry:FleetBoxes@458,whole:Route@460 072c475e29602ca57e5deecce7d9a898dfd545c7d337d3e33dd4db2e022a140a
+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: one in-memory field, releaseConfigSince (per host, when a stateless release first waited for its config file), under mu; no read 85e336a92dce269f74f34c2d41dc194fb3a246e3eea1930cb3a45cc097965889
+internal/activator/escrow_authority.go ExecBackend.prepareStatelessEscrow legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3b round 1 I2 / R20: for the matching released stateless attempt, validate route identity and reuse exact-lifetime held authority. Otherwise check readiness/conflict/layout and read the existing files manifest without a publisher. A complete trio stays read-only; missing trio calls the existing assignment/lifetime-judged Coordination.Acquire, whose RetryAt cache prevents early contention retries. Errors retain the approved waiting sentinel; no mint, publish, new paths, timer, release rerun or process stop. Existing launch preparation retains sealed restore, divergence, mint and first-publish checks.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b: its completeness check is escrowComplete (published or recorded absent) over the manifest it already loads; otherwise unchanged registry:Account@248,registry:App@272,registry:Host@293,registry:Host@539,registry:Host@745,registry:Host@832,registry:Stateless@218,whole:Route@469,whole:Route@619 f55a4de47fbc5820933c4bcdfd8f3decbb7b59e7103c6284261f821b4346d8dd
internal/activator/replicadeploy.go Service.ReplicaSwap legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: new. Checks the permit (box label, phase released, not halted, ActiveBox, build), refuses a hold, asks tenantStartRefusal on the in-memory entry route, then either re-proves an existing switch (replicaSettle) or runs the existing Swap as a canary and checks replicaStepProven. Reads the in-memory entry route only; no store, file or root call of its own.;rev3=census-ruling-stateless-replicas-4-task2-fix1;basis=Task 2 fix round 1: proof-only steps (an already switched copy, a halted permit, a permit whose successor failed here) skip the start gates because nothing starts; a failed successor answers kept only after replicaKeptProven (its stop proven, an empty operation set). Reads only the in-memory entry route; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-task2-fix2;basis=Task 2 fix round 2: the switch proof is replicaSwitchProof, which also reports WorkersFailed (switched, the new workers crashed or did not start within the settle window) so the step answers instead of staying open. Reads only the in-memory entry; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-task2-fix3;basis=Task 2 fix round 3: replicaSwitchProof keeps the step open while a worker start is in flight or a gate-refused start waits for its retry, and judges a never-started worker only after residentPoll + workerStartBound from registration (Service clock); a crash or restart still answers workers failed. Reads only the in-memory entry; no store, file or root call.;rev3=census-ruling-stateless-replicas-4-final;basis=#511 final wave item 3: records the switch per permit (noteReplicaSwitch) and, for a later step of that permit, replicaSwitchFailure may stop the switched generation with proof (FenceAndStopAs, LiftFenceAs) and answer switched-failed; the two new whole:Route sites pass the entry's route (already held) to noteReplicaSwitch for its Resident flag; no new path, file or input read; #511 micro-fix: clears replicaNoGen while the copy is awake; with no switch evidence and no entry, asks replicaRestartedFailure; a ProofOnly attempt (a sleeping copy's step) abandons before Swap or any start gate; no new read site;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4: after the permit check, calls adoptReplicaRow(at.Host) so a copy that woke at copies 1 is judged on its row's assignment (its permitted step proves the running generation instead of refusing it as fenced); the permit, start gates, proofs and Swap are unchanged; no new read of its own registry:FleetBoxes@1932,whole:Route@2294,whole:Route@2828,whole:Route@3073,whole:Route@652,whole:Route@662 55bd44137ef636a70ed64bcf739b41c6a1d5d1b5db58265c4009a24950cda6b1
-internal/activator/replicadeploy.go Service.replicaRestartedFailure legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-final;basis=#511 micro-fix P1b (new): for an always-on set row holding this box's permit with no entry and no switch evidence, reads the host's registry row (Routes.Get: Resident, FleetBoxes, ReplicaIncarnation) and stats at.StagedPath (the root-staged release.VersionPath the rollout named; metadata only, never opened, read or run); past replicaRestartBound it fences (FenceAndStopAs), checks releaseOps and StopUncertain, lifts its own fence (LiftFenceAs) and answers switched-failed; starts nothing;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21: also reads, under a.mu, the host's in-memory resident state (secrets: its last wake was refused for the instance's shared secrets); with that set, the proven answer is kept (Proven, not WebFailed, reason SR-4-C83) instead of switched-failed; same bound, fence, stop proof and lift; no store, file or root call added file:Stat@483,registry:FleetBoxes@367,registry:ReplicaIncarnation@390,whole:Route@336 c251da00af992b7845dcfb7bc4b1a5b5774928d698ba010dfe4d5494bf579662
+internal/activator/replicadeploy.go Service.replicaRestartedFailure legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-final;basis=#511 micro-fix P1b (new): for an always-on set row holding this box's permit with no entry and no switch evidence, reads the host's registry row (Routes.Get: Resident, FleetBoxes, ReplicaIncarnation) and stats at.StagedPath (the root-staged release.VersionPath the rollout named; metadata only, never opened, read or run); past replicaRestartBound it fences (FenceAndStopAs), checks releaseOps and StopUncertain, lifts its own fence (LiftFenceAs) and answers switched-failed; starts nothing;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21: also reads, under a.mu, the host's in-memory resident state (secretsSince: its wakes have been refused for the instance's shared secrets); with that set, the proven answer is kept (Proven, not WebFailed, reason SR-4-C83) instead of switched-failed; same bound, fence, stop proof and lift; no store, file or root call added file:Stat@483,registry:FleetBoxes@367,registry:ReplicaIncarnation@390,whole:Route@336 e54bca87787170a78dab71d21269c51f898e6e377c9d8f08ee6e856fbfe4cd73
internal/activator/replicaprobe.go Service.ProbeCopy legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: read the local registry assignment and the already-awake entry's launch/worker evidence under the held-leg predicate; compare account, app, fleet, box membership and lifetime; no bucket call, wake, authority acquisition or activity update. Added registry field and whole Route reads are the existing local projection, not tenant-selected paths.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4: first calls adoptReplicaRow(host); the probe's own checks, reads and evidence are unchanged registry:Account@1589,registry:App@1606,registry:FleetBoxes@331,registry:HA@427,registry:HA@916,registry:Hibernate@411,registry:Hibernate@899,registry:Incarnation@844,registry:Incarnation@863,registry:Kind@386,registry:Region@1160,registry:Region@817,registry:Region@831,registry:ReplicaIncarnation@1683,registry:ReplicaIncarnation@766,registry:ReplicaIncarnation@792,registry:ReplicaRevision@1728,registry:Stateless@882,whole:Route@1108,whole:Route@1114,whole:Route@321,whole:Route@708,whole:Route@739,whole:Route@744 c6b3e4389f32829612e7343c8fc49ee769b83855b30469a10bf35b61f703f831
internal/activator/backend_rootfs.go ExecBackend.releaseConfigWait legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 (new): for a nested rootfs row, Lstat of the instance's own config file (pathsFor: <instance dir>/<host>.config.env; metadata only, never opened); if absent, MkdirAll of the instance directory (0700, as ReleaseEnv already does) and the ConfiguredEnv hook (the agent's bucket read of the app configuration); returns a deferral only; never runs, opens or follows anything file:Lstat@277,whole:Route@166,whole:Route@464 84a36678eaa1b0051b28a3920266663e21809b8ace31b71964e4db195310de10
internal/activator/backend_unit.go SplitBackend.releaseConfigWait legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 (new): forwards to the picked backend's releaseConfigWait, as ReleaseEnv forwards; no read of its own whole:Route@109,whole:Route@173 c30f9cbbb920b187d6fad9fc44c981461a8fb71607793dba9b14d1d9b71757cc
internal/activator/replicaprobe.go Service.adoptReplicaRow legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4 (new): for an awake stateless entry whose route has no assignment, one local registry Get of the same host; if the row is the same row lifetime (wakeRouteChanged, Incarnation, Kind, Region, Socket, DBPath, Hibernate, HA) and now a valid set projection, copies only the assignment columns into the entry's route; starts, stops and runs nothing registry:Copies@889,registry:Copies@960,registry:DBPath@783,registry:DBPath@796,registry:FleetBox@1017,registry:FleetBox@1060,registry:FleetBoxes@173,registry:FleetBoxes@339,registry:FleetBoxes@531,registry:FleetBoxes@874,registry:FleetBoxes@944,registry:FleetLabel@1030,registry:FleetLabel@1074,registry:HA@843,registry:HA@852,registry:Hibernate@810,registry:Hibernate@826,registry:Incarnation@669,registry:Incarnation@687,registry:Kind@706,registry:Kind@717,registry:Region@729,registry:Region@742,registry:ReplicaIncarnation@201,registry:ReplicaIncarnation@559,registry:ReplicaIncarnation@920,registry:ReplicaIncarnation@993,registry:ReplicaRevision@900,registry:ReplicaRevision@972,registry:Socket@756,registry:Socket@769,registry:Stateless@1045,registry:Stateless@397,whole:Route@1098,whole:Route@1106,whole:Route@175,whole:Route@203,whole:Route@325,whole:Route@533,whole:Route@561,whole:Route@615,whole:Route@642,whole:Route@647 0414fb4ace920c21b5ff263276ea5d75be1873e0cc557a897bdc85bc77fc7fcf
internal/appconfig/instancekey.go ConfiguredEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 (new): the same merged configuration read and renderer as ConfiguredKeyDigest (LoadMergedHostVersions, RenderEnv) for the row's account, app, environment and host; returns only whether the render is non-empty; the values never leave it registry:App@186,registry:Environment@194,registry:Host@210,whole:Route@181,whole:Route@321 f3d969920953bedfcd194fe6fbc0a8990072c46d86b004216cd3a28da814a141
internal/host/replicahomekeys.go configuredRead legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20 (new): configuredKey's former body made generic: the same store open, secrets key parse and no-source rule, then the given read (ConfiguredKeyDigest or ConfiguredEnv); no new source whole:Route@1005 c6d8646b55564419b11840639e79363403a8c6677a48c55ad1135a5e2690f225
-internal/activator/rootfs_service.go Service.noteResidentWakeLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a proactive wake gives back its reservation; a resident's failed wake backs off only when it is the build's failure (residentFailure), otherwise retries on the next tick, waiting out another owner's lease when the error says so; state only;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21: records on the host's resident state whether this wake was refused for the instance's shared secrets (errors.Is errStatelessSecretsWaiting), cleared by any other outcome; the new whole:Route site is the entry's route already held (Resident); in-memory state only whole:Route@187,whole:Route@356 e74544a2d66b9feeb2c7dddd09eb5cf809bae1e360eab8b4fd8b9f7d2664eb33
-internal/activator/statelessrelease.go Service.prepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-task1;basis=The former PrepareStatelessRelease body. R9: adopts the record's attempt for this lifetime and target in every phase before any coordination; otherwise acquires the term first and only then selects the ID (R1); a begin carries RetryOf only when consuming a durable retry. Same calls (ObserveReplicaRelease, coordinator, escrow initializer, actEntry, runReleaseAdmitted); same gates, proof and SafeUntil checks; no new store read or writer.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: refuses with provision.ErrReplicaSwitchOpen (SR-4-C31) before term acquisition when the observed record already has an unresolved copy-switch permit, instead of a begin the writer refuses and that read as an unknown result. Refusal only; same calls, no read added.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix rounds 1-3 (#511 F11): R9 adoption moves into adoptDurable. A begin, or the unknown close of an observed releasing attempt, that does not go through goes to refusedStep: a writer refusal (replicas.ReleaseRefused, record read by the adapter in the same call) re-runs adoptDurable once with no read of its own; anything else maps through stepError. Fix round 3: before the releasing write it saves this box's mark (MarkReplicaRelease: attempt ID and term), and after it, just before the exec, Started; a close or an in-call unknown of an attempt this box knows never started returns errReplicaReleaseNotStarted (SR-4-C59) and saves Closed. The record still closes as unknown. The marks are this box's own failure-book file (no store read or write); the exec's fresh record check stays the final gate.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20: before acquiring the term, a rootfs row asks the backend's releaseConfigWait (the config file's presence, else whether the configuration renders an environment) and returns its deferral with no attempt begun; adoption, gates, term, writer and run unchanged; the new whole:Route site passes the route already held registry:Account@634,registry:App@664,registry:GoodDemand@4910,registry:GoodDigest@4895,registry:GoodVersion@4879,registry:Host@1252,registry:Host@301,registry:Host@4966,registry:Host@5024,registry:Host@5240,registry:Host@5308,registry:Host@691,whole:Route@1603,whole:Route@3794,whole:Route@4694,whole:Route@5033,whole:Route@5040,whole:Route@569,whole:Route@5737,whole:Route@860 6a53028f70d5a63fd048f0fda53bfdfe5d8506f4c498a6ecdcc645029653eec6
+internal/activator/escrow.go ExecBackend.escrowChanged legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: compares each escrowed file's stamp (stampAt, beneath the row's data directory) with the last kept one; reads no bytes Fix round 1 (P1-4): the stamps are copied under the escrow mutex, entry by entry, before they are compared; the same opens, no read added.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b: a stateless host whose escrow does not yet record its absent trio files, on the box holding its authority (holdsEscrowAuthority), counts as changed so the sweep publishes it once; reads only this process's escrow state; the stamp checks are unchanged registry:Host@122,registry:Host@707,registry:Stateless@589,whole:Route@640 8867ea421e945d57ee26d5cb954f9b7f23fbcd4f7129e3c990d673fc28c844e6
+internal/activator/escrow.go ExecBackend.publishEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). Fix round 4: only a commit that wrote (the baseline's ETag moved) feeds what this process knows (learnBucket) and writes the ledger; a no-op commit on a ledger-opened publisher feeds nothing; the same reads and writes. Durability 3a Task 5: on the held baseline before staging and DropRawSecrets, noteRawSecrets(rt.Host, m). Reads only manifests this process already holds (no request, no file opened); calls the detector, which logs and calls ExecBackend.OnRawSecret; nothing else changes. The +registry:Host site is that call's argument. Branch fix R1 P1-1: every failed manifest commit drops the publisher, stamps, preparation read and bucket knowledge; the next operation opens the bucket and repeats divergence checks before staging. No new root input or read site. Branch fix R1 P1-4: a CommitRecoveryReadError from the existing CAS-recovery GET wraps errEscrowUnreadable, so the launch refuses rather than using the later-launch write-failure fallback. No new read. Branch fix R1 P1-3: select sealed escrow against Route.Incarnation before decrypting, restoring, minting or checking divergence: lower non-zero escrow is retired in the selected view, higher refuses, equal and zero-stamped retain behavior. Publication stamps the current lifetime atomically, drops prior-lifetime cached stamps, and never treats retired escrow as a committed successor. Same storage paths; historical objects retained. Branch fix R2: remove incarnation selection and stamping per Paul's ruling; restore pre-030ce7f9 hostname-scoped escrow behavior. No read added. Same-key hostname reuse can inherit predecessor secrets; a changed key refuses. Keep the uncertain-commit and CAS-recovery read-failure refusals. Branch fix R2 P1-3: delegate the existing baseline, divergence and StageSealed operations to stageEscrowReads, shared with HA. Same bucket objects and reads; lease gating, uncertain-commit state drop, and typed CAS-recovery refusal retained.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: recheck mode-specific authority before manifest commit; drop staged state on loss; preserve write-once divergence, bucket knowledge, CAS recovery and file-read protections.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b: for a stateless host, the publish also opens the escrow once per process to record absent trio files: for each trio file absent here with no item and no marker in the baseline, StageSealedAbsent (a plaintext marker, never a secret); for an item staged now whose marker exists, StagePlatformDelete of the marker; then the same authority check and commit; the absence is noted only when no read was refused registry:Host@2472,registry:Host@2736,registry:Host@4358,registry:Host@5628,registry:Host@574,registry:Stateless@1860,whole:Route@2663,whole:Route@2891,whole:Route@4398 fe6a6c3095457ece63f44b378000c291f43a67bea26586dee946b963de965d7c
+internal/activator/escrow_authority.go ExecBackend.followerEscrowEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: require a readable complete sealed trio from the existing files manifest, restore missing local files through the existing beneath/no-replace helper, capture env and compare local trio/minted variables against escrow before returning it. Local reads remain under the classified host data directory with ReadBeneathLimit; same sealed bucket keys, no mint, publisher or remote write. Conflict refusal uses the existing marker.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b: the escrow is complete when every sealed item is published or recorded absent by the coordinator (escrowComplete over the manifest it already read); only published items are read, restored and held to the local copy; a listed item that cannot be read still refuses; no new store or file read registry:Host@1018,registry:Host@1113,registry:Host@1253,registry:Host@1539,registry:Host@392,whole:Route@1373,whole:Route@1448,whole:Route@1997,whole:Route@2120,whole:Route@322,whole:Route@479,whole:Route@599,whole:Route@709 7a8f9d17e66d53a490bd179aa29d39e1f11a6de2c438ff90e486f6a275681b82
+internal/activator/rootfs_service.go Service.noteResidentWakeLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a proactive wake gives back its reservation; a resident's failed wake backs off only when it is the build's failure (residentFailure), otherwise retries on the next tick, waiting out another owner's lease when the error says so; state only;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21/R21b: records on the host's resident state since when its wakes have been refused for the instance's shared secrets (errors.Is errStatelessSecretsWaiting), cleared by any other outcome; the new whole:Route site is the entry's route already held (Resident); in-memory state only whole:Route@187,whole:Route@471 55b950e04b9d25c0595b98c4b66c0a49b594a797a01051014a5bf225760385ee
+internal/activator/stateless.go Service.doStatelessWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Run the selected stateless identity without Acquire, Restore, Seed, placeholder/assignment/first-boot markers or Replicate. Prove stale local processes, prepare the durable release, and gate the actual spawn on current placement/lifetime/configuration. Retain actual mode and failed-start obligations; register workers through the existing supervisor.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R21b bound: its two refusal returns pass through secretsRefusal, which past replicaRestartBound of shared-secrets refusals (in-memory resident state) says the same refusal as SR-4-C83, wrapping it; no new read, start or write registry:Host@2134,registry:Host@2170,registry:Host@424,registry:Host@502,registry:Stateless@968,whole:Route@1061,whole:Route@1238,whole:Route@1737,whole:Route@1967,whole:Route@2231,whole:Route@2306,whole:Route@2408,whole:Route@245,whole:Route@2537,whole:Route@290,whole:Route@369,whole:Route@909 09f2fd396179c054fe69b1c4179b2a1170fc297453fce194364d653c5c806ac3
+internal/activator/statelessrelease.go Service.prepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-4-task1;basis=The former PrepareStatelessRelease body. R9: adopts the record's attempt for this lifetime and target in every phase before any coordination; otherwise acquires the term first and only then selects the ID (R1); a begin carries RetryOf only when consuming a durable retry. Same calls (ObserveReplicaRelease, coordinator, escrow initializer, actEntry, runReleaseAdmitted); same gates, proof and SafeUntil checks; no new store read or writer.;rev3=census-ruling-stateless-replicas-4-task2;basis=Task 2: refuses with provision.ErrReplicaSwitchOpen (SR-4-C31) before term acquisition when the observed record already has an unresolved copy-switch permit, instead of a begin the writer refuses and that read as an unknown result. Refusal only; same calls, no read added.;rev3=census-ruling-stateless-replicas-4-task3f;basis=Task 3F fix rounds 1-3 (#511 F11): R9 adoption moves into adoptDurable. A begin, or the unknown close of an observed releasing attempt, that does not go through goes to refusedStep: a writer refusal (replicas.ReleaseRefused, record read by the adapter in the same call) re-runs adoptDurable once with no read of its own; anything else maps through stepError. Fix round 3: before the releasing write it saves this box's mark (MarkReplicaRelease: attempt ID and term), and after it, just before the exec, Started; a close or an in-call unknown of an attempt this box knows never started returns errReplicaReleaseNotStarted (SR-4-C59) and saves Closed. The record still closes as unknown. The marks are this box's own failure-book file (no store read or write); the exec's fresh record check stays the final gate.;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20: before acquiring the term, a rootfs row asks the backend's releaseConfigWait (the config file's presence, else whether the configuration renders an environment) and returns its deferral with no attempt begun; past releaseConfigBound (residentPoll + workerStartBound, in-memory per host) it begins the attempt through the same writer and records it failed with nothing run (errReleaseConfigHeld); adoption, gates, term and run unchanged; the new sites pass the route and its host already held registry:Account@634,registry:App@664,registry:GoodDemand@5576,registry:GoodDigest@5561,registry:GoodVersion@5545,registry:Host@1252,registry:Host@1831,registry:Host@1897,registry:Host@301,registry:Host@5348,registry:Host@5632,registry:Host@5690,registry:Host@5906,registry:Host@5974,registry:Host@691,whole:Route@1744,whole:Route@4112,whole:Route@5012,whole:Route@569,whole:Route@5699,whole:Route@5706,whole:Route@6403,whole:Route@860 5d927326083af0dd8298afd9001902990cc9cf8846de2e852219958b85771934
internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: collect validated instance records from the existing scan before pool filtering; report source completeness separately. Record reads, writes, scope and removal authority unchanged.;rev3=census-ruling-agent-start-demo-1;basis=Keeps local demo rows for signed cleanup instead of deleting the binding on record absence or trash; normal/hub paths unchanged. Merge integration against origin/main 9bd45488 retains main's HA departure inventory scan and family-completeness reporting alongside the early local-demo retention guard; existing record reads retained.;rev3=census-ruling-stateless-replicas-2;basis=Final fix I1: legacy records now reach the legacy ownership/removal judgement for former set rows; a greater local incarnation remains protected. Current set-record lifetime and membership checks remain. Same record/registry reads and removal writers. TestReplicaReconcileLegacySuccessor covers both boxes with and without the judge; P11 newer/unknown set protections remain covered. merge of origin/main 6be08467: Retain main signed demo retirement ownership alongside replica set retirement and legacy successor recovery; merge-only body change, unchanged read sources.;rev3=census-ruling-agent-start-demo-3;basis=Install durable source claim holds and reconcile fresh destination seed gates; preserve owned pending routes and stop orphan seeds before cleanup. Census read-site delta: +registry:Account, +registry:App, +registry:Host, +registry:ImportGate ×2, +registry:SeedSource ×2, +whole:Route ×4.;rev3=census-ruling-region-ha-g2-fixes;basis=Run guarded pool withdrawal, extract the unchanged judged collection rules into scanInstanceRecords, and publish pre-pool HA ingress including stale refusal names. Existing direct route reads remain; indirect withdrawal reads and deletion are separately claimed.;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 2: where a forward row holds an in-scope record's host, a link-placed one (registry.LinkPlacement over the listed row's Region) gets its own log line saying no pass here retires it; the record is still not applied, as before; one +registry:Region read of the listed row, no write added;rev3=census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 F4: for a stateless row with a copy assignment (record or row), the binding callback gets the row as convergeOwned left it: one local registry Get of the same host after the pass's own writes; a row that cannot be read is bound next pass; no record read or write added registry:Account@26723,registry:Account@28593,registry:Account@47818,registry:Account@47864,registry:Account@49493,registry:Account@49870,registry:Account@50096,registry:Account@50163,registry:Account@50209,registry:Account@50302,registry:Account@50344,registry:Account@50992,registry:Account@51250,registry:Account@52152,registry:Account@52200,registry:Account@52609,registry:Account@52655,registry:Account@52900,registry:Account@53325,registry:Account@53813,registry:Account@54157,registry:Account@54759,registry:Account@54952,registry:Account@55364,registry:Account@55543,registry:Account@55867,registry:Account@56432,registry:App@26696,registry:App@28566,registry:App@47838,registry:App@47876,registry:App@49505,registry:App@49882,registry:App@50108,registry:App@50183,registry:App@50221,registry:App@50322,registry:App@51004,registry:App@51262,registry:App@52164,registry:App@52212,registry:App@52629,registry:App@52667,registry:App@52912,registry:App@53337,registry:App@53825,registry:App@54169,registry:App@54771,registry:App@54964,registry:App@55376,registry:App@55555,registry:App@55879,registry:App@56444,registry:Canary@48331,registry:ClaimOwnership@27310,registry:DBPath@37220,registry:DBPath@37235,registry:DBPath@37481,registry:DBPath@38084,registry:DBPath@38097,registry:EgressAllow@25809,registry:FleetBoxes@38580,registry:FleetBoxes@48292,registry:FleetBoxes@48440,registry:FleetBoxes@55152,registry:Gate@33117,registry:Gate@33257,registry:Gate@33544,registry:Hibernate@31789,registry:Hibernate@31987,registry:Hibernate@32052,registry:Hibernate@32391,registry:Hibernate@32742,registry:Hibernate@33052,registry:HoldOp@17800,registry:HoldOp@54504,registry:HoldOp@54595,registry:HoldOp@54730,registry:HoldOp@55106,registry:Host@15299,registry:Host@18203,registry:Host@18343,registry:Host@47797,registry:Host@48391,registry:Host@49469,registry:Host@49846,registry:Host@50010,registry:Host@50116,registry:Host@51012,registry:Host@51218,registry:Host@52492,registry:Host@52764,registry:Host@52879,registry:Host@53202,registry:Host@53299,registry:Host@53690,registry:Host@53787,registry:Host@54001,registry:Host@54203,registry:Host@54586,registry:Host@54721,registry:Host@54925,registry:Host@54998,registry:Host@55097,registry:Host@55337,registry:Host@55516,registry:Host@55595,registry:Host@55682,registry:Host@55841,registry:Host@55916,registry:Host@56002,registry:Host@56409,registry:ImportGate@34696,registry:ImportGate@34995,registry:Incarnation@17976,registry:Incarnation@48509,registry:Kind@18188,registry:Kind@18328,registry:Kind@27452,registry:Kind@27818,registry:Kind@28100,registry:Kind@28320,registry:Kind@37138,registry:Kind@37151,registry:Kind@37261,registry:Kind@37274,registry:Kind@37995,registry:Kind@38006,registry:Kind@46921,registry:Kind@53992,registry:Kind@54712,registry:Kind@55088,registry:Kind@55328,registry:Kind@55673,registry:Kind@55832,registry:Kind@55993,registry:Platform@48316,registry:PolicyExpiresAt@25834,registry:Pool@47007,registry:Provisioned@26672,registry:Provisioned@28542,registry:Provisioned@46966,registry:RateLimit@33630,registry:RateLimit@33781,registry:RateLimit@34068,registry:Region@17167,registry:Region@46996,registry:ReplicaIncarnation@17684,registry:ReplicaIncarnation@17721,registry:Replication@32476,registry:Replication@32603,registry:Runtime@19372,registry:Runtime@19550,registry:Runtime@21857,registry:Runtime@31156,registry:Runtime@31210,registry:Runtime@31414,registry:Seed@35618,registry:SeedSource@34654,registry:SeedSource@34974,registry:SeedSource@35101,registry:Size@25825,registry:Socket@37186,registry:Socket@37201,registry:Socket@37498,registry:Socket@38054,registry:Socket@38067,registry:Stateless@38155,registry:Unit@37104,registry:Unit@37117,registry:Unit@38021,registry:Unit@38032,whole:ClaimOwnership@27313,whole:ClaimOwnership@27330,whole:Route@15281,whole:Route@15292,whole:Route@15310,whole:Route@16591,whole:Route@17576,whole:Route@17787,whole:Route@18102,whole:Route@18388,whole:Route@18402,whole:Route@18415,whole:Route@18438,whole:Route@19867,whole:Route@19874,whole:Route@19914,whole:Route@20275,whole:Route@20430,whole:Route@20715,whole:Route@21162,whole:Route@21213,whole:Route@21250,whole:Route@22922,whole:Route@23131,whole:Route@23470,whole:Route@23479,whole:Route@23525,whole:Route@25758,whole:Route@26317,whole:Route@26788,whole:Route@26798,whole:Route@27155,whole:Route@27162,whole:Route@27230,whole:Route@27593,whole:Route@27649,whole:Route@27719,whole:Route@27730,whole:Route@28158,whole:Route@29191,whole:Route@32142,whole:Route@34803,whole:Route@37330,whole:Route@38531,whole:Route@38614,whole:Route@38658,whole:Route@38721,whole:Route@39614,whole:Route@39659,whole:Route@39669,whole:Route@40539,whole:Route@41566,whole:Route@47032,whole:Route@47180,whole:Route@48277,whole:Route@48647,whole:Route@49421,whole:Route@49803,whole:Route@51654,whole:Route@54095,whole:Route@55243,whole:Route@55754,whole:Route@56339,whole:Route@56389 e111129f5efcec76dd564146450f182719e4b98cf60c5383e9d9156e6f30d6dc
@remove internal/host/replicahomekeys.go configuredKey
@removed internal/host/replicahomekeys.go configuredKey H3 census-ruling-stateless-replicas-4-drill1;basis=#511 drill 1 R20: now delegates to configuredRead with ConfiguredKeyDigest; same behaviour
-@coverage internal/activator fd3703a8840f01a32f48aeabc19e2417822aa083e7b33ce5a46049861a52553a
+@coverage internal/activator 470553b1eb123c1e044fe90dc80fd94fa7bea6132885464f85448e91f81d7330
@coverage internal/appconfig 60db554f83957a220059daae4e6551ccfec992fc04f3a56e72c66210544995c7
@coverage internal/host 5443b22f7536032d23dfe32b1e443d4a95fddcdd52aed36904e0412254616065
+@coverage internal/hostfiles 2e8eba4cdb0740c4379557ea9309a6cd902276dfce59a64b8aa345622036e449
@coverage internal/provision 572e9ed1567e0bd3e3bcf7afec4fc17a25c15e77d15cbb34b886f6356272678c