carlos / platform Public

census: refresh rootfs-apps-3 after fix wave 2

Claims for doWake, rootfsFirstBoot, Reconcile and the two new
WriteRootfsMarker units; the seven pending-record units are gone (never on
main). census-propose re-run (seal 26a84c1f); hand sections restored with
a 'Changes since round 2' section; card counts corrected (census r2 P3:
150 now). Record-write: Reconcile re-pinned, the marker Put moves to
WriteRootfsMarker.

PROPOSED, not approved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev e7479e5b8fc034db33f2d320f04259a6a245fe61 parent ee8c160
5 files changed, +55 −55
  • docs/superpowers/notes/census-proposal-rootfs-apps-3.md +30 −16
  • docs/superpowers/notes/census-rootfs-apps-3-claims.md +5 −10
  • internal/provision/rootfs_apps_4_census_test.go +6 −5
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-rootfs-apps-3.tsv +13 −23
diff --git a/docs/superpowers/notes/census-proposal-rootfs-apps-3.md b/docs/superpowers/notes/census-proposal-rootfs-apps-3.md
index 3c15206b8..ec894a1ab 100644
--- a/docs/superpowers/notes/census-proposal-rootfs-apps-3.md
+++ b/docs/superpowers/notes/census-proposal-rootfs-apps-3.md
@@ -1,8 +1,27 @@
# Census approval: rootfs-apps-3
-Ruling `census-ruling-rootfs-apps-3`. The independent reviewer approves or rejects every change below, 83 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-rootfs-apps-3`. The independent reviewer approves or rejects every change below, 78 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
-## Changes since round 1 (fix wave 1)
+## Changes since round 2 (fix wave 2)
+
+Round 2 reviewed this card at seal `e1631e8f`. Paul ruled on the database-continuity family on 2026-10-27 (stopping rule 2): refuse interrupted init. Fix wave 2 applied that ruling and the whole-branch round 2 P1 and P2. The chain's seal is now `26a84c1f`. Every row not named here is as round 2 saw it.
+
+Root-read units, in the tables below:
+
+- `internal/activator/rootfsmarker.go`: the local pending record is gone. Removed (never on main): `ExecBackend.rootfsPendingPath`, `ExecBackend.BeginRootfsFirstBoot`, `ExecBackend.SettleRootfsFirstBoot`, `syncDirBestEffort`, `SplitBackend.BeginRootfsFirstBoot`, `SplitBackend.SettleRootfsFirstBoot`, `Service.settleRootfsFirstBoot`. New: `ExecBackend.WriteRootfsMarker` (the create-only PUT alone, returning the store's answer) and `SplitBackend.WriteRootfsMarker` (its forwarder). So the file has 7 units, down from 12.
+- `internal/activator/rootfsmarker.go` `Service.rootfsFirstBoot` (new): read the marker, write it create-only, read it back, and only then place the database. A write conflict is never taken as the marker; only the read back confirms it (census r2 P1-1). Nothing is placed before the marker is confirmed, so no pending record is needed (census r2 P1-2).
+- `internal/activator/activator.go` `Service.doWake` (sites): the settleRootfsFirstBoot call on a warm wake and its whole:Route site are gone. A warm wake does nothing with the marker.
+- `internal/provision/reconcile.go` `Reconcile` (body): the kind-marker read and its refusal apply only to a socket-backed record (DerivesPaths). A static or upstream-backed record of a rootfs app is minted as before, with no read (whole-branch r2 P1).
+
+Interrupted init: an agent that stops after the confirmed marker and before the first replica upload leaves an instance that refuses every fresh wake, until an operator deletes the marker. The recipe is in `rootfsmarker.go`'s header and `docs/superpowers/notes/rootfs-first-boot-marker.md`.
+
+Outside the census scope: `internal/console/rootfs.go` `rootfsReadyRefusal` names a box below the floor with its release (RFS-4-C139 for a fleet, C140 for a region, approved by copy review 2026-10-27; whole-branch r2 P2).
+
+Record-write census (section "Record-write re-pins" below): `Reconcile` re-pinned again (`14f504ff` to `d49386f8`). The nonrecord marker Put moves from `ExecBackend.SettleRootfsFirstBoot` to `ExecBackend.WriteRootfsMarker` (`4cdcb1a6` to `77c23906`).
+
+Class counts: now 150 (31 body, 41 sites, 60 new, 17 reads, 1 quiet). The same 17 envelopes are re-pinned.
+
+## Changes in round 2 (fix wave 1)
Round 1 reviewed this card at seal `05388abc` (proposal d03a931c, record-write re-pins 78fd0d8a). Fix wave 1 then changed the units below (commits d35fcb1f, 6189a9db, 3c087d8e, ceea6353). The seal is now `e1631e8f`. Every other row is as round 1 saw it, so the reviewer can focus here. Fix reports: `.superpowers/sdd/2026-10-24-rootfs-apps-3-lifecycle/fixwave-1-activator.md` and `fixwave-1-console.md`.
@@ -22,7 +41,7 @@ Envelope-only changes (no root-read row; re-pinned `internal/activator`, `intern
Record-write census (section "Record-write re-pins" below): `Reconcile` re-pinned again (`403b806f` to `14f504ff`); `ExecBackend.SettleRootfsFirstBoot` added as a new nonrecord `sel:Put` entry.
-Class counts: round 1 had 141 units (29 body, 41 sites, 53 new, 17 reads, 1 quiet). Now 153 (31 body, 41 sites, 65 new, 17 reads, 1 quiet). The same 17 envelopes are re-pinned. The console-side changes (`internal/console`) are outside the census scope.
+Class counts: round 1 had 141 units (29 body, 41 sites, 53 new, 17 reads, 1 quiet). Round 2 had 155 (31 body, 41 sites, 65 new, 17 reads, 1 quiet; the card said 153, census r2 P3). The same 17 envelopes are re-pinned. The console-side changes (`internal/console`) are outside the census scope.
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -222,17 +241,12 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/activator/rootfsdb.go:writeBeneathExcl`: reads +file:Stat; written legacy, accepted-legacy, frozen
- new `internal/activator/rootfsenv.go:ExecBackend.rootfsCmdVars`: reads +registry:Socket, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/activator/rootfsmarker.go:Config.rootfsMarkerKey`: reads +registry:Host, +registry:Incarnation; written legacy, accepted-legacy, frozen
-- new `internal/activator/rootfsmarker.go:ExecBackend.BeginRootfsFirstBoot`: reads +file:OpenFile, +whole:Route ×2; written legacy, accepted-legacy, frozen
- new `internal/activator/rootfsmarker.go:ExecBackend.RootfsInitialized`: reads +whole:Route; written legacy, accepted-legacy, frozen
-- new `internal/activator/rootfsmarker.go:ExecBackend.SettleRootfsFirstBoot`: reads +file:Lstat, +registry:Account, +registry:App, +registry:Host ×2, +registry:Incarnation, +whole:Route ×2; written legacy, accepted-legacy, frozen
-- new `internal/activator/rootfsmarker.go:ExecBackend.rootfsPendingPath`: reads +registry:Host ×3, +registry:Incarnation; written legacy, accepted-legacy, frozen
-- new `internal/activator/rootfsmarker.go:Service.rootfsFirstBoot`: reads +registry:Host ×7, +registry:Incarnation, +whole:Route ×4; written legacy, accepted-legacy, frozen
-- new `internal/activator/rootfsmarker.go:Service.settleRootfsFirstBoot`: reads +registry:Host, +whole:Route; written legacy, accepted-legacy, frozen
-- new `internal/activator/rootfsmarker.go:SplitBackend.BeginRootfsFirstBoot`: reads +registry:Host, +whole:Route ×2; written legacy, accepted-legacy, frozen
+- new `internal/activator/rootfsmarker.go:ExecBackend.WriteRootfsMarker`: reads +registry:Account, +registry:App, +registry:Host, +registry:Incarnation, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/activator/rootfsmarker.go:Service.rootfsFirstBoot`: reads +registry:Host ×8, +registry:Incarnation, +whole:Route ×4; written legacy, accepted-legacy, frozen
- new `internal/activator/rootfsmarker.go:SplitBackend.RootfsInitialized`: reads +registry:Host, +whole:Route ×2; written legacy, accepted-legacy, frozen
-- new `internal/activator/rootfsmarker.go:SplitBackend.SettleRootfsFirstBoot`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
+- new `internal/activator/rootfsmarker.go:SplitBackend.WriteRootfsMarker`: reads +registry:Host, +whole:Route ×2; written legacy, accepted-legacy, frozen
- new `internal/activator/rootfsmarker.go:SplitBackend.execMarker`: reads +file:Exec, +registry:Backing; written legacy, accepted-legacy, frozen
-- new `internal/activator/rootfsmarker.go:syncDirBestEffort`: reads +file:Open; written legacy, accepted-legacy, frozen
- new `internal/activator/swap.go:Service.genHealthy`: reads +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/host/socket_advice.go:socketAdvice`: reads +data-literal, +registry:Host ×3, +registry:Socket ×2; written legacy, accepted-legacy, frozen
- new `internal/layout/pass.go:Pass.Held`: reads +registry:Host, +whole:Route; written legacy, accepted-legacy, frozen
@@ -248,7 +262,7 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- quiet `internal/host/schedule_wiring.go:activatorDeliverer.managedByGenerations`: reads nothing now; retired while it reads nothing (or its row keeps no sites)
- reads `cli.go:addMintsNested`: +registry:Runtime; keeps legacy, task accepted-legacy
- reads `cli.go:runRouteHibernate`: +registry:Host, +registry:Runtime; keeps legacy, task accepted-legacy
-- reads `internal/activator/activator.go:Service.doWake`: +registry:GoodVersion, +whole:Route ×11; keeps legacy, task accepted-legacy
+- reads `internal/activator/activator.go:Service.doWake`: +registry:GoodVersion, +whole:Route ×10; keeps legacy, task accepted-legacy
- reads `internal/activator/backend_exec.go:ExecBackend.HasSidecar`: +registry:Runtime; keeps legacy, task accepted-legacy
- reads `internal/activator/genbackend.go:ExecBackend.EmptyHost`: +whole:Route; keeps legacy, task accepted-legacy
- reads `internal/activator/genbackend.go:ExecBackend.KillHost`: +whole:Route; keeps legacy, task accepted-legacy
@@ -264,7 +278,7 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/registry/registry.go:Registry.SetPlacement`: +registry:Runtime, +whole:Route; keeps legacy, task accepted-legacy
- reads `internal/registry/registry.go:normalizeRoute`: +registry:Runtime; keeps authority, task E3
-Seal: `f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7` → `e1631e8f6d13bdd8bd4bea2fbc91b46d57a410ef55d6991e8150b6fdbf1019f6`.
+Seal: `f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7` → `26a84c1f1ebe399aaec718e4057b3103496eb44fcdcda8a44665fe12a1553c63`.
Overlay: `internal/provision/testdata/plan14-root-reads-rootfs-apps-3.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
@@ -282,11 +296,11 @@ Added by hand at Gate A (Plan 3 Task 16). census-propose does not write this sec
| `internal/console/lifetimes_create.go:Server.createRecordWithLifetimeLocked` (key-site) | `f18477b4` | `27810c60` | 953a6494 (Plan 4 Task 2/3) | Runs firstKindRecheck under the caller's app lock before anything is read or persisted. | Adds a refusal before the create. The record key and write are unchanged. |
| `internal/console/hostsused.go:Server.createRecordMarked` (record-writer) | `1c2b1885` | `9b39448c` | 953a6494 | Runs firstKindRecheck under the app lock, before the mark and the create. | Adds a refusal before the write. CreateRecord is unchanged. |
| `internal/provision/record_sequence.go:WriteRecord` (record-primitive) | `d58d1106` | `5b0f8b68` | f5620882, 5773b78b (Plan 3 Task 3) | A create ({} before) with an etag is refused. runtimeFixed refuses a write that changes the runtime, or a rootfs record's hibernation. It checks the body it is handed and again the bytes Put stores. | The one primitive refuses more and writes nothing new. The key check, sequencing, kind guard and Put are unchanged. |
-| `internal/provision/reconcile.go:Reconcile` (key-site) | `7a88f0f9` | `14f504ff` (round 1: `403b806f`) | d35af56b, 5b166658 (Plan 3 Tasks 2 and 4); ceea6353 (fix wave 1, whole-branch P1-2) | A seeded record over a row with a runtime is skipped. A row with a runtime takes no seed. Runtime and a rootfs row's hibernation are never converged from a record, and a record that claims a runtime its row lacks is not applied. Fix wave 1: before minting a row for a record with no runtime and no row, the pass reads the app's kind marker (release.ReadAppKindMarker, one GET per app per pass). A rootfs app's record is left unminted and logged, and a marker that cannot be read defers the mint. This is a refusal before minting. | The box writes less. No record key use or record write changes. |
+| `internal/provision/reconcile.go:Reconcile` (key-site) | `7a88f0f9` | `d49386f8` (round 1: `403b806f`; round 2: `14f504ff`) | d35af56b, 5b166658 (Plan 3 Tasks 2 and 4); ceea6353 (fix wave 1, whole-branch P1-2); fix wave 2 (whole-branch r2 P1) | A seeded record over a row with a runtime is skipped. A row with a runtime takes no seed. Runtime and a rootfs row's hibernation are never converged from a record, and a record that claims a runtime its row lacks is not applied. Fix wave 1: before minting a row for a record with no runtime and no row, the pass reads the app's kind marker (release.ReadAppKindMarker, one GET per app per pass). A rootfs app's record is left unminted and logged, and a marker that cannot be read defers the mint. This is a refusal before minting. Fix wave 2: only for a socket-backed record (DerivesPaths); static and upstream-backed records mint as before. | The box writes less. No record key use or record write changes. |
| `internal/ops/litestream.go:FleetDBsWithSkipped` (key-site) | `f62291df` | `1289226c` | d1474316 (Plan 3 Task 5) | The box-wide litestream exclusion is Route.ActivatorLeased instead of Hibernate, so the activator alone replicates a resident rootfs database. | Same `instances` literal, no record write. One database is never streamed by two writers. |
-New record-write entry at fix wave 1, appended to `rootfsApps4WriteCensusInventory`:
+New record-write entry at fix wave 1 (moved at fix wave 2), appended to `rootfsApps4WriteCensusInventory`:
| site | digest | commit | what it writes | why it is safe |
|---|---|---|---|---|
-| `internal/activator/rootfsmarker.go:ExecBackend.SettleRootfsFirstBoot` (nonrecord, `sel:Put`) | `4cdcb1a6` | 6189a9db (fix wave 1, branch review P1-1) | One create-only Put of a rootfs lifetime's first-boot marker, `<hibernate prefix>/rootfs-initialized/<incarnation>.json`, through the hibernate FilesStore, only when this box has that first boot pending. The body is a small JSON note (host, account, app, incarnation, time). | Not an instance or sidecar record and no record key. Create-only, so it never overwrites a marker; nothing parses the body. |
+| `internal/activator/rootfsmarker.go:ExecBackend.WriteRootfsMarker` (nonrecord, `sel:Put`) | `77c23906` (round 2: `4cdcb1a6` as `SettleRootfsFirstBoot`) | 6189a9db (fix wave 1, branch review P1-1); fix wave 2 | One create-only Put of a rootfs lifetime's first-boot marker, `<hibernate prefix>/rootfs-initialized/<incarnation>.json`, through the hibernate FilesStore, on a fresh first boot before the database is placed. The body is a small JSON note (host, account, app, incarnation, time). | Not an instance or sidecar record and no record key. Create-only, so it never overwrites a marker; nothing parses the body. |
diff --git a/docs/superpowers/notes/census-rootfs-apps-3-claims.md b/docs/superpowers/notes/census-rootfs-apps-3-claims.md
index 142ed1739..eb9ea68ab 100644
--- a/docs/superpowers/notes/census-rootfs-apps-3-claims.md
+++ b/docs/superpowers/notes/census-rootfs-apps-3-claims.md
@@ -128,7 +128,7 @@ internal/registry/runtime.go:Route.Rootfs rootfs Plan 3: runtime is rootfs-v1; r
internal/host/schedule_wiring.go:activatorDeliverer.managedByGenerations rootfs Plan 3 Task 5: Kind and Hibernate inline become Route.ActivatorOwned, a method call the census does not count as a site; same fields plus Runtime
cli.go:addMintsNested rootfs Plan 3 Task 5: a row with a runtime is not evidence the box moved to nested (it is minted nested everywhere), so only binary rows count; adds a Runtime read that narrows the test
cli.go:runRouteHibernate rootfs Plan 3 Task 2: carlos route hibernate refuses a row with a runtime first (its hibernation is fixed at mint), before any dry run or other rail; reads Host and Runtime of the row already read; a refusal only
-internal/activator/activator.go:Service.doWake rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 (6189a9db, branch review P1-1): a fresh rootfs first boot now goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), records a pending first boot in the agent's DataDir, places the database, then writes and confirms the marker before the start; a rootfs row that is not fresh first settles a first boot this box left pending (settleRootfsFirstBoot: a local Lstat, and a PUT only if pending), refusing and giving the lease back if the marker write fails; one new whole:Route site (rt handed to settleRootfsFirstBoot); adds refusals only, binary rows unchanged
+internal/activator/activator.go:Service.doWake rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 and 2 (6189a9db, then the r2 ruling "refuse interrupted init"): a fresh rootfs first boot goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), writes it create-only, reads it back (only a read back that finds it confirms it; a write conflict proves nothing), and only then places the database; a warm wake does nothing with the marker (fix wave 1's settleRootfsFirstBoot call and its whole:Route site are gone, no local pending record); adds refusals only, binary rows unchanged
internal/activator/backend_exec.go:ExecBackend.HasSidecar rootfs Plan 3 N1: a row with a runtime has no binary sidecar, answered before the sidecar env Stat; reads Runtime; Stats less
internal/activator/genbackend.go:ExecBackend.EmptyHost rootfs Plan 3 N1: refuses a row with a runtime first (refuseHostCgroupProof); the cgroup open moves into openHostCgroup (same delegation check and OpenCleanup, with the test seam); reads Runtime
internal/activator/genbackend.go:ExecBackend.KillHost rootfs Plan 3 N1: refuses a row with a runtime first (refuseHostCgroupProof); the cgroup open moves into openHostCgroup (same delegation check and OpenCleanup); reads Runtime
@@ -136,7 +136,7 @@ internal/activator/genbackend.go:ExecBackend.StartStaged rootfs Plan 3 N1: refus
internal/activator/wakeidentity.go:wakeRouteChanged rootfs Plan 3 Task 7: a runtime change between the wake's start and now refuses the wake, like the other identity changes; reads Runtime of both rows; a refusal only
internal/host/layoutleg.go:nestedRowsPresent rootfs Plan 3 Task 5: only binary rows count as evidence the box is nested (a rootfs row is minted nested everywhere); adds a Runtime read that narrows the test
internal/layout/pass.go:Pass.recheck rootfs Plan 3 Task 5: a host whose listed row has a runtime is never plantable ("rootfs instances are always nested"), before the plan read; reads Host and Runtime of the listed rows
-internal/provision/reconcile.go:Reconcile 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
+internal/provision/reconcile.go:Reconcile 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
internal/provision/reconcile.go:RouteFor rootfs Plan 3 Task 2: the row is minted with the record's Runtime (the console-written instance record, guarded by WriteRecord's runtimeFixed); a rootfs row always gets the nested socket and db path under dataDir and no seed or seed source; the paths are computed from the host, not read from the record
internal/provision/reconcile.go:everywhereRoute rootfs Plan 3: a row with any runtime is home-boxed, never an everywhere route; reads Runtime; narrows
internal/provision/reconcile.go:shapeMismatch rootfs Plan 3 Task 2: a hand-added row is never adopted across runtimes; reads Runtime of both; a refusal only
@@ -149,16 +149,11 @@ internal/activator/rootfs.go:ExecBackend.spawnRootfs rootfs Plan 3 fix wave 1 (d
internal/activator/rootfs.go:ExecBackend.startRootfs rootfs Plan 3 fix wave 1 (d35fcb1f, census P1-1): passes a zero tier to spawnRootfs, which is GenTier's as before; it records GenTier afterwards as it did; no read added
internal/activator/rootfsmarker.go:Config.rootfsMarkerKey rootfs Plan 3 fix wave 1 (6189a9db, branch review P1-1): the first-boot marker's bucket key, <hibernate prefix>/rootfs-initialized/<Incarnation>.json, computed from the row's Host and Incarnation (the record lifetime); reads Host and Incarnation
internal/activator/rootfsmarker.go:ExecBackend.RootfsInitialized rootfs Plan 3 fix wave 1 (6189a9db): the marker read, one GET of rootfsMarkerKey through ExecBackend.FilesStore (the hibernate bucket, the replica's bucket and credentials); true for any object, false only on a definite not-found, any other answer an error (the wake refuses); the body is never parsed; no FilesStore is errNoRootfsMarker
-internal/activator/rootfsmarker.go:ExecBackend.rootfsPendingPath rootfs Plan 3 fix wave 1 (6189a9db): the pending first-boot record's path, DataDir/.rootfs-first-boot/<host>@<incarnation> (the agent's data directory, which no tenant writes); refuses an empty host or a name that is not a single path element; reads Host and Incarnation
-internal/activator/rootfsmarker.go:ExecBackend.BeginRootfsFirstBoot rootfs Plan 3 fix wave 1 (6189a9db): as the agent, creates the pending record (MkdirAll 0700, OpenFile O_CREATE|O_TRUNC 0600 under rootfsPendingPath), writes the marker key into it, syncs it and its directory; writes only the agent's own file, reads nothing back
-internal/activator/rootfsmarker.go:ExecBackend.SettleRootfsFirstBoot rootfs Plan 3 fix wave 1 (6189a9db): Lstat of this box's pending record (nothing pending: nil, the bucket not asked); otherwise a create-only PUT of the marker (host, account, app, incarnation, time) through FilesStore, a CAS conflict counting as confirmed, then removes the pending record; reads Host, Account, App and Incarnation of the row and only whether the agent's own pending file exists
-internal/activator/rootfsmarker.go:syncDirBestEffort rootfs Plan 3 fix wave 1 (6189a9db): opens a directory the caller named (the pending record's, in the agent's DataDir) and syncs it, errors ignored; reads nothing
+internal/activator/rootfsmarker.go:ExecBackend.WriteRootfsMarker rootfs Plan 3 fix wave 2 (r2 ruling "refuse interrupted init"): as the agent, one create-only PUT of the marker (host, account, app, incarnation, time) through FilesStore at rootfsMarkerKey, returning the store's answer as it is (a conflict is release.ErrCASConflict); confirms nothing, reads nothing back (the caller reads the key back); errNoRootfsMarker without a FilesStore; reads Host, Account, App and Incarnation of the row
+internal/activator/rootfsmarker.go:SplitBackend.WriteRootfsMarker rootfs Plan 3 fix wave 2: forwards the marker write to the exec backend for a non-unit row (execMarker); a unit-backed row is errNoRootfsMarker; reads Host
internal/activator/rootfsmarker.go:SplitBackend.RootfsInitialized rootfs Plan 3 fix wave 1 (6189a9db): forwards the marker read to the exec backend for a non-unit row (execMarker); a unit-backed row is errNoRootfsMarker; reads Host
-internal/activator/rootfsmarker.go:SplitBackend.BeginRootfsFirstBoot rootfs Plan 3 fix wave 1 (6189a9db): forwards the pending record to the exec backend for a non-unit row; a unit-backed row is errNoRootfsMarker; reads Host
-internal/activator/rootfsmarker.go:SplitBackend.SettleRootfsFirstBoot rootfs Plan 3 fix wave 1 (6189a9db): forwards the settle to the exec backend for a non-unit row; a unit-backed row has nothing pending (nil)
internal/activator/rootfsmarker.go:SplitBackend.execMarker rootfs Plan 3 fix wave 1 (6189a9db): the exec side's marker capability for a row that is not unit-backed; reads Backing; its file:Exec site is the SplitBackend.Exec field (the exec backend, a type assertion), no file is opened or run
-internal/activator/rootfsmarker.go:Service.rootfsFirstBoot rootfs Plan 3 fix wave 1 (6189a9db): doWake's step 2a for a fresh rootfs row with no good version, under the lease: checks both capabilities, reads the marker (present refuses as errRootfsReplicaMissing, unreadable refuses), records the pending first boot, places the empty database (placeRootfsDB, unchanged), then writes and confirms the marker before the start; every failure is a rootfs refusal; reads Host and Incarnation for messages and passes the row on
-internal/activator/rootfsmarker.go:Service.settleRootfsFirstBoot rootfs Plan 3 fix wave 1 (6189a9db): doWake's step 2a for a rootfs row that is not fresh: settles a first boot this box left pending (SettleRootfsFirstBoot) before anything starts, a failure a rootfs refusal; a backend without the marker has nothing pending; reads Host
+internal/activator/rootfsmarker.go:Service.rootfsFirstBoot rootfs Plan 3 fix wave 1 and 2 (6189a9db; r2 ruling "refuse interrupted init"): doWake's step 2a for a fresh rootfs row with no good version, under the lease: checks both capabilities, reads the marker (present refuses as errRootfsReplicaMissing, unreadable refuses), writes it create-only (WriteRootfsMarker; a CAS conflict is let through to the read back, any other error refuses), reads it back (RootfsInitialized: an error or not-found refuses, errRootfsMarkerUnconfirmed), and only then places the empty database (placeRootfsDB, unchanged); every failure is a rootfs refusal with nothing placed; reads Host and Incarnation for messages and passes the row on
# Release units the fix wave changed. They carry no root-read row (the census sees them only as the re-pinned internal/release envelope) and census-propose refuses a claim it does not see, so they are kept here as comments for the reviewer.
# internal/release/rootfs_ship.go:ReadAppKindMarker rootfs Plan 3 fix wave 1 (ceea6353, whole-branch P1-2): exported wrapper over readAppKindMarker for provision's Reconcile: one GET of the app's create-only kind marker from the release store it is handed, strictly decoded and validated (schema, account, app, kind, version); (nil, nil) when absent
# internal/release/systempointer.go:PrepareSystemPromotion rootfs Plan 3 fix wave 1 (3c087d8e, whole-branch P1-3): an optional expected ETag binds the preparation to the pointer snapshot the caller judged ("" means no pointer); a moved pointer is ErrCASConflict before the old pointer is verified or anything signed; without it, the former body; adds a refusal only
diff --git a/internal/provision/rootfs_apps_4_census_test.go b/internal/provision/rootfs_apps_4_census_test.go
index 17f1d5d6f..928cfc19d 100644
--- a/internal/provision/rootfs_apps_4_census_test.go
+++ b/internal/provision/rootfs_apps_4_census_test.go
@@ -48,8 +48,9 @@ package provision
// record-key sites unchanged.
// - FleetDBsWithSkipped: the exclusion is Route.ActivatorLeased (d1474316).
//
-// New at fix wave 1 (6189a9db), PROPOSED-rootfs-apps-3:
-// - ExecBackend.SettleRootfsFirstBoot (activator): the one Put of a rootfs
+// New at fix wave 1 (6189a9db), moved at fix wave 2 (the r2 ruling "refuse
+// interrupted init" took the local pending record out), PROPOSED-rootfs-apps-3:
+// - ExecBackend.WriteRootfsMarker (activator): the one Put of a rootfs
// lifetime's first-boot marker, <hibernate prefix>/rootfs-initialized/
// <incarnation>.json, create-only, through the hibernate FilesStore.
// The body is a small JSON note (host, account, app, incarnation,
@@ -65,7 +66,7 @@ func rootfsApps4WriteCensusInventory() []censusEntry {
{"internal/ops/litestream.go", "FleetDBsWithSkipped", "key-site", "lit:instances", "1289226caab31a729646c35ad702aaf7f3917552f7e088022080bc3f022d4c39"},
{"internal/provision/provision.go", "SetRecordRegion", "record-writer", "key:SetRecordRegion,key:updateRecord", "70d7e6b1b39ece28c795c801f67cd019720de0b000c056a65d75bef3d1a59909"},
{"internal/provision/record_sequence.go", "WriteRecord", "record-primitive", "key:IsRecordKey,key:WriteRecord,key:preparedRecordKey,sel:Put", "5b0f8b687e0b134117f4a82d38aca6ef067fa0bbb37c1cac922734169f56d610"},
- {"internal/provision/reconcile.go", "Reconcile", "key-site", "key:ParseRecordKey,key:RecordKey,lit:instances", "14f504ff102a8b0f37c8a88f1bdcdc65c87599d30c12ea70fb1aec19157475ae"},
+ {"internal/provision/reconcile.go", "Reconcile", "key-site", "key:ParseRecordKey,key:RecordKey,lit:instances", "d49386f8c2cc28946146f9c0be3123def5db95a649687f20e5b17e07a60edd5b"},
{"internal/console/fleets.go", "Server.placeAppTarget", "record-writer", "key:RecordsPrefix,key:SetRecordRegion", "3dca2e95b42ae382c9ec3ce81fae9b61159b20275920b7128f784c3ee0eca293"},
{"internal/console/lifetimes_create.go", "Server.createRecordWithLifetimeLocked", "key-site", "key:RecordKey", "27810c6055d86dea23f51f5bd352a6b714720572efc6ed589b51b7c548890742"},
{"internal/console/hostsused.go", "Server.createRecordMarked", "record-writer", "key:CreateRecord,key:RecordKey", "9b39448ce817867c94e51d5feeff6dd24e4458cb452284ffa637b42c250b28fd"},
@@ -84,7 +85,7 @@ func rootfsApps4WriteCensusInventory() []censusEntry {
return append(entries,
censusEntry{"internal/console/fleetowner.go", "Server.writeFleetOwner", "nonrecord", "sel:Put", "e955cfd3b9f4af9b216a499152971f59403aa3bbb498a9107ea38a11e97e2111"},
censusEntry{"internal/hostops/fleetowner_classifier.go", "classifyFleetOwner", "reference", "str:Put", "79d7cac1ec85dbe45908ada0ffb7d862e594b369817958c7e23ed37d0c6af96f"},
- // Fix wave 1 (PROPOSED-rootfs-apps-3).
- censusEntry{"internal/activator/rootfsmarker.go", "ExecBackend.SettleRootfsFirstBoot", "nonrecord", "sel:Put", "4cdcb1a664271fdf24629a145190aab8b469815328aec2a3938bc16c4686a5f5"},
+ // Fix wave 1, moved at fix wave 2 (PROPOSED-rootfs-apps-3).
+ censusEntry{"internal/activator/rootfsmarker.go", "ExecBackend.WriteRootfsMarker", "nonrecord", "sel:Put", "77c23906c61725a441c5f7f83890454d9448d22f339a7f927e1472094e936e51"},
)
}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index fd064e731..d08dc4eb8 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -15,4 +15,4 @@ plan14-root-reads-alias-wake-338.tsv deeddee1bf22a18562acda97cc34c6d73ee0dff1825
plan14-root-reads-analytics-onramp.tsv f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7
plan14-root-reads-nearest-region-scan.tsv f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7
plan14-root-reads-plans-6b-checkout-flow.tsv f5afdacd495705841fcc8441eaefe0efb9db7056de281bb06d1714960a5575b7
-plan14-root-reads-rootfs-apps-3.tsv e1631e8f6d13bdd8bd4bea2fbc91b46d57a410ef55d6991e8150b6fdbf1019f6
+plan14-root-reads-rootfs-apps-3.tsv 26a84c1f1ebe399aaec718e4057b3103496eb44fcdcda8a44665fe12a1553c63
diff --git a/internal/provision/testdata/plan14-root-reads-rootfs-apps-3.tsv b/internal/provision/testdata/plan14-root-reads-rootfs-apps-3.tsv
index fb707cf02..3859ca49f 100644
--- a/internal/provision/testdata/plan14-root-reads-rootfs-apps-3.tsv
+++ b/internal/provision/testdata/plan14-root-reads-rootfs-apps-3.tsv
@@ -1,6 +1,6 @@
# Census overlay rootfs-apps-3, written by census-propose (#369). census-ruling-rootfs-apps-3, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-rootfs-apps-3.md.
# 31 body, 41 sites, 17 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 83 new dispositions: 17 reads re-frozen at their disposition with the claim, 65 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
+# 78 new dispositions: 17 reads re-frozen at their disposition with the claim, 60 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
@legacy 8a4584f14d5cbf19c23a936cf5ef31fceb7a88ac01b2db1edba7c1a637d9d4a6 internal/activator/activator.go Service.finishStop legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a forgotten entry's stop is noted for its resident (noteResidentStopLocked: crash or lost lease backs off, any other stop restarts on the next tick) and its ownerDone channel is closed; no read added registry:Socket@2595,registry:Socket@2700,whole:Route@2545,whole:Route@2597,whole:Route@2702 891ba19c5c70bc47ee8c3b4861c27f369dbdbded15a284edea78dd539e370593
@legacy b1846c80393a65745c7f8c1442b5826ed5339ae74fac48fc29f963cfbab0ea50 internal/activator/recoveryprobe.go Service.finishRecoveryProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: installs the probed proc and generation through installProcLocked instead of assigning them inline; same values, no read added whole:Route@808 ae736b6a1121902f262b4ef68d2533396fe8abb09ef077ab4164ead807be80b6
@legacy eac9b5b895d4e3a1320a6a8150597fc47af43a42a30208d5f864849c8c8a8f64 internal/activator/rootfs.go ExecBackend.rootfsGateCheck legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-route (J1, as nestedGate): new (rootfs Plan 2 Tasks 8 and 9): every refusal a rootfs start makes before it touches anything: nestedReady, a row that is not nested (RFS-2-C01), the rootfs probe (RootfsOK), the placement rules (RootfsPlacement), claim control armed, a control channel with no rootfs half; its sites are the row's host for error text and the route handed to pathsFor and RootfsPlacement; it only refuses; no root decision;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: takes the caller's ctx and passes it to RootfsOK and RootfsPlacement so a shutdown ends the asks; same checks, no read added registry:Host@289,registry:Host@348,registry:Host@464,registry:Host@603,registry:Host@720,registry:Host@834,registry:Host@999,whole:Route@111,whole:Route@169,whole:Route@786 616809c5d54613a50bb65946c9618f8b055c3347b622e18dcb354380ffb32da8
@@ -61,17 +61,12 @@
@legacy 6a6519ebcb42b2ba161dd83e73925977515c72e3ba3090e477c17997b2f45734 internal/activator/rootfsdb.go writeBeneathExcl legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: creates name beneath dir exclusively (instancefs.OpenBeneath, O_CREATE|O_EXCL, 0600), writes, syncs and returns the file's own Stat for later identity checks file:Stat@259 f36a8e9f65ade58bc91bdaccdc8a3e5f3394da5ad6a470458f4f70e7c6cdd127
@legacy 45c39556074b07bf583269830a1cd6a83784939a04f2ff74ee40702d8871fac3 internal/activator/rootfsenv.go ExecBackend.rootfsCmdVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 6: a rootfs cmd's environment is the binary cmdVars composed through rootfsVars (the image's socket and database paths); reads Socket registry:Socket@198,whole:Route@161 bd669651d1214e229b138437bc94e464b6f953102a68f909950eb99580c77a7b
@legacy c337cc4ac4cdae9a3f45054db37dd3f38e0eee01778f1e32511c5dcbdfac90ea internal/activator/rootfsmarker.go Config.rootfsMarkerKey legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db, branch review P1-1): the first-boot marker's bucket key, <hibernate prefix>/rootfs-initialized/<Incarnation>.json, computed from the row's Host and Incarnation (the record lifetime); reads Host and Incarnation registry:Host@86,registry:Incarnation@146 84efa170588d79aac2691b75d50a3b320c05557da26d1ca96067f42430d93232
-@legacy 9d8ff82e62ce1017208498e1c18ac620cc4c7412edd045daaa82cb61a03f80bf internal/activator/rootfsmarker.go ExecBackend.BeginRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): as the agent, creates the pending record (MkdirAll 0700, OpenFile O_CREATE|O_TRUNC 0600 under rootfsPendingPath), writes the marker key into it, syncs it and its directory; writes only the agent's own file, reads nothing back file:OpenFile@294,whole:Route@157,whole:Route@434 a115adbff53f0f451fcc51a06e988faf2b9ff4448fad083d0945b20bc515da80
@legacy a8ea03625acdb9f47fd0ef8a312b2293808c6a0846edd1ce9581241d03c629bd internal/activator/rootfsmarker.go ExecBackend.RootfsInitialized legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): the marker read, one GET of rootfsMarkerKey through ExecBackend.FilesStore (the hibernate bucket, the replica's bucket and credentials); true for any object, false only on a definite not-found, any other answer an error (the wake refuses); the body is never parsed; no FilesStore is errNoRootfsMarker whole:Route@217 697f5accc6b70e3ce4d044a07b8796cd9c42eae72ab926e610dba5a134510687
-@legacy d7a788e030461106e723bcaea7195ebe4c5d91b2a3ba79da676e8cd07997a214 internal/activator/rootfsmarker.go ExecBackend.SettleRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): Lstat of this box's pending record (nothing pending: nil, the bucket not asked); otherwise a create-only PUT of the marker (host, account, app, incarnation, time) through FilesStore, a CAS conflict counting as confirmed, then removes the pending record; reads Host, Account, App and Incarnation of the row and only whether the agent's own pending file exists file:Lstat@174,registry:Account@393,registry:App@410,registry:Host@375,registry:Host@847,registry:Incarnation@431,whole:Route@123,whole:Route@554 4cdcb1a664271fdf24629a145190aab8b469815328aec2a3938bc16c4686a5f5
-@legacy cff6b40d881361d9c27df61195e0fafb65b94f9ae202ed3ac51da448c4e50653 internal/activator/rootfsmarker.go ExecBackend.rootfsPendingPath legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): the pending first-boot record's path, DataDir/.rootfs-first-boot/<host>@<incarnation> (the agent's data directory, which no tenant writes); refuses an empty host or a name that is not a single path element; reads Host and Incarnation registry:Host@142,registry:Host@201,registry:Host@327,registry:Incarnation@177 4193c41eff17236553a4ab5f41c9ac64ead14ce98e43be96046d4a7fea2cdcbb
-@legacy c87cdb76a333fb7ab58f8cd5aca3b059224601916ad7c499b190bc4ea5da7f5d internal/activator/rootfsmarker.go Service.rootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): doWake's step 2a for a fresh rootfs row with no good version, under the lease: checks both capabilities, reads the marker (present refuses as errRootfsReplicaMissing, unreadable refuses), records the pending first boot, places the empty database (placeRootfsDB, unchanged), then writes and confirms the marker before the start; every failure is a rootfs refusal; reads Host and Incarnation for messages and passes the row on registry:Host@1081,registry:Host@172,registry:Host@297,registry:Host@462,registry:Host@643,registry:Host@711,registry:Host@867,registry:Incarnation@652,whole:Route@370,whole:Route@783,whole:Route@917,whole:Route@991 afc9d8c8ae94027750f412a756fa1ab4c3d470b33a1b9a42cc818dc6768e475a
-@legacy c4eb691030e221e41c29372cdadfb8f079e39c793448c721ffc9cd2134c6d50e internal/activator/rootfsmarker.go Service.settleRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): doWake's step 2a for a rootfs row that is not fresh: settles a first boot this box left pending (SettleRootfsFirstBoot) before anything starts, a failure a rootfs refusal; a backend without the marker has nothing pending; reads Host registry:Host@288,whole:Route@198 f949f5afc703b530f926d6b51e456d1141c5913e18e05aad6df188fdcf93c85d
-@legacy 3d59ded1fbd323323f0f264335f5e449c0c31ea9cea2cdbdd3f190fc90c47aed internal/activator/rootfsmarker.go SplitBackend.BeginRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): forwards the pending record to the exec backend for a non-unit row; a unit-backed row is errNoRootfsMarker; reads Host registry:Host@175,whole:Route@139,whole:Route@97 31ce080f63adfa5dda1198957a83dfea4d10a5dc20e0e91dbf2a2ab10fa57e7c
+@legacy 1af1b8ddb18edcac25d94ab5276d7cdea36e073c5afcad9f244e42e37cadf3c4 internal/activator/rootfsmarker.go ExecBackend.WriteRootfsMarker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 2 (r2 ruling "refuse interrupted init"): as the agent, one create-only PUT of the marker (host, account, app, incarnation, time) through FilesStore at rootfsMarkerKey, returning the store's answer as it is (a conflict is release.ErrCASConflict); confirms nothing, reads nothing back (the caller reads the key back); errNoRootfsMarker without a FilesStore; reads Host, Account, App and Incarnation of the row registry:Account@208,registry:App@225,registry:Host@190,registry:Incarnation@246,whole:Route@393 77c23906c61725a441c5f7f83890454d9448d22f339a7f927e1472094e936e51
+@legacy 812eac83d91d39bbb9ae5cbb147e5e43fe48f9e64582730dc9e7ab1adaebf04c internal/activator/rootfsmarker.go Service.rootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 and 2 (6189a9db; r2 ruling "refuse interrupted init"): doWake's step 2a for a fresh rootfs row with no good version, under the lease: checks both capabilities, reads the marker (present refuses as errRootfsReplicaMissing, unreadable refuses), writes it create-only (WriteRootfsMarker; a CAS conflict is let through to the read back, any other error refuses), reads it back (RootfsInitialized: an error or not-found refuses, errRootfsMarkerUnconfirmed), and only then places the empty database (placeRootfsDB, unchanged); every failure is a rootfs refusal with nothing placed; reads Host and Incarnation for messages and passes the row on registry:Host@1041,registry:Host@1198,registry:Host@1276,registry:Host@172,registry:Host@297,registry:Host@462,registry:Host@643,registry:Host@711,registry:Incarnation@652,whole:Route@1103,whole:Route@1346,whole:Route@370,whole:Route@908 8130bf4b3c24093381dfee832e275fc838bb916ed09ec995c2ec994d22f66405
@legacy a7f4adadf0ef68acd4656dd303ab5c1198647f2d2edfba7357971d1efd2478cc internal/activator/rootfsmarker.go SplitBackend.RootfsInitialized legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): forwards the marker read to the exec backend for a non-unit row (execMarker); a unit-backed row is errNoRootfsMarker; reads Host registry:Host@210,whole:Route@123,whole:Route@167 bb639b0452b7d6d70c56a7a3d159b146179647d5d54d4b6410b3377717ad4347
-@legacy ce8ddb720e3765d1f589514bfc7d33b40d12cdbfbd4d1b9f10f9cb6a0c478a9b internal/activator/rootfsmarker.go SplitBackend.SettleRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): forwards the settle to the exec backend for a non-unit row; a unit-backed row has nothing pending (nil) whole:Route@119,whole:Route@167 d238ec5afc02cb7efbec359896c9a2df394de82b5ff1dcc4635df460869f97d2
+@legacy 476feba284748cc5bbbf4a2c95c05f17cafaf3643d453c5d483e592a6c3adcf4 internal/activator/rootfsmarker.go SplitBackend.WriteRootfsMarker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 2: forwards the marker write to the exec backend for a non-unit row (execMarker); a unit-backed row is errNoRootfsMarker; reads Host registry:Host@195,whole:Route@115,whole:Route@159 f5674dae016c819bedf79a3461b86f22277490496e357db6ab9c7c04b2ffb516
@legacy 0a1f8d9f4c693a805f19abb976db834b4eaea8df3c5f0079d43a5bc0bf7702e5 internal/activator/rootfsmarker.go SplitBackend.execMarker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): the exec side's marker capability for a row that is not unit-backed; reads Backing; its file:Exec site is the SplitBackend.Exec field (the exec backend, a type assertion), no file is opened or run file:Exec@159,registry:Backing@89 999577c1bd61b6ed11822b81663b96aeb91d057143c44e9f840d482470d6bbe3
-@legacy d7799dbbda5262e6372708b9b85785755236e0368cdf4074077a9618d9f41604 internal/activator/rootfsmarker.go syncDirBestEffort legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): opens a directory the caller named (the pending record's, in the agent's DataDir) and syncs it, errors ignored; reads nothing file:Open@51 bb2040e7e0eafcbd0ed25894880cb69b1de0d86a7add91f51f3d8250a74ce12c
@legacy 15f724b4599bed9038d7c79c0bc45ae60f533c45ddb0a6a06694b11a3a28cbfa internal/activator/swap.go Service.genHealthy legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: takes the route so the health wait is healthBoundFor(rt) instead of the binary constant; same check whole:Route@266 e86f90e197834d7c677047091ddf5593d9a40f1889608664fc95a8faa6411d93
@legacy f4f8632ca9301473983ea41ba40e06c12f1308f1f7ff17a0137481c0e3e06eb7 internal/host/socket_advice.go socketAdvice legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the two advisory log lines socketAdvisoryLoop wrote inline, chosen by Route.ActivatorLeased instead of Hibernate; log text only data-literal@381,registry:Host@338,registry:Host@713,registry:Host@733,registry:Socket@347,registry:Socket@722 6da9ff4ff6c34a480d18d9aa2f5c077b7ab215f0a376f733a7595bfecacdd34a
@legacy d10b6f81aee6231260164070232ada7a5419e69b102cc7d201fd92c99a1a84a7 internal/layout/pass.go Pass.Held legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: takes the whole route and answers not held for a row with a runtime (LayoutExempt) before the existing kept-fence check registry:Host@120,whole:Route@83 0a136240aed9d9dc7eccffa1ef864952ff8978e09f395f2027c44645ec6806bf
@@ -86,7 +81,7 @@
@legacy db3dd606d9b54c534479da3bfb98dbd61d71fb42f074b614fbe1d8a2602cf319 internal/registry/runtime.go Route.Rootfs legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: runtime is rootfs-v1; reads Runtime registry:Runtime@38 3b0819618fb8b69c34c8e4457108d59a64c4d27f0234d3a6233b2dc4bc7e3872
@legacy 15edcc813d9bace944d6b12a4f69ddeb6aac6ffd646d91e7599aa405129910f6 cli.go addMintsNested legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: a row with a runtime is not evidence the box moved to nested (it is minted nested everywhere), so only binary rows count; adds a Runtime read that narrows the test registry:Runtime@642,whole:Route@594,whole:Route@635,whole:Route@688 96af07e923ed6f3b04cc45a0d493cc8ebe81e47809a2606af38d174ec8f6521b
@legacy ab72ccabe8df38a113612a3216bc89232a5cc2e7344c8856c55630094d19a331 cli.go runRouteHibernate legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos route hibernate refuses a row with a runtime first (its hibernation is fixed at mint), before any dry run or other rail; reads Host and Runtime of the row already read; a refusal only registry:App@2812,registry:Hibernate@3464,registry:Hibernate@3751,registry:Host@1052,registry:Host@2748,registry:Host@3134,registry:Host@3227,registry:Host@3553,registry:Host@3619,registry:Host@3742,registry:Host@525,registry:Provisioned@1086,registry:Replication@4374,registry:Replication@4545,registry:Runtime@345,whole:Route@2807,whole:Route@2968,whole:Route@2973,whole:Route@3314,whole:Route@564 6b1ef36f22e6308fb6ddf3df2a704d37cc0d9c9c2d6acff55dcc49481f3874ea
-@legacy 36030e0854ade00c828af0138440ef618decb71c693c60ba7ea6e1c79f2d7934 internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e; (5) final fix F1: the two start-error arms that gave the lease straight back (a start its pre-exec gate refused with nothing started, and the default arm) now call giveBackAfterStart(ctx, rt, w, lease), which gives a legacy lease back exactly as before and an HA one only over an empty host slice. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x6 (rt handed to restoredReplication, openEntryFiles, the cleanup calls and giveBackAfterStart); no file read in this body; only adds a condition before an HA release, no check removed;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 (6189a9db, branch review P1-1): a fresh rootfs first boot now goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), records a pending first boot in the agent's DataDir, places the database, then writes and confirms the marker before the start; a rootfs row that is not fresh first settles a first boot this box left pending (settleRootfsFirstBoot: a local Lstat, and a PUT only if pending), refusing and giving the lease back if the marker write fails; one new whole:Route site (rt handed to settleRootfsFirstBoot); adds refusals only, binary rows unchanged registry:DBPath@1703,registry:DBPath@1719,registry:DBPath@1846,registry:DBPath@1857,registry:DBPath@26862,registry:GoodVersion@13097,registry:Host@1532,registry:Host@1607,registry:Host@1685,registry:Host@1837,registry:Host@2171,registry:Host@4121,registry:Host@577,registry:Host@6096,registry:Replication@11536,registry:Replication@11665,registry:Replication@11684,registry:Replication@11765,registry:Replication@26765,registry:Replication@26897,registry:Seed@16655,registry:Socket@1732,registry:Socket@1748,registry:Socket@1871,registry:Socket@1882,whole:Route@10638,whole:Route@11516,whole:Route@11767,whole:Route@12961,whole:Route@13300,whole:Route@14589,whole:Route@14781,whole:Route@15471,whole:Route@1630,whole:Route@16756,whole:Route@16827,whole:Route@19243,whole:Route@2066,whole:Route@2071,whole:Route@21101,whole:Route@2125,whole:Route@2131,whole:Route@21747,whole:Route@2197,whole:Route@2205,whole:Route@23054,whole:Route@23208,whole:Route@23564,whole:Route@23658,whole:Route@24377,whole:Route@24808,whole:Route@25016,whole:Route@25070,whole:Route@25999,whole:Route@26184,whole:Route@26974,whole:Route@27386,whole:Route@27435,whole:Route@27813,whole:Route@29035,whole:Route@29130,whole:Route@29737,whole:Route@3156,whole:Route@3250,whole:Route@3317,whole:Route@357,whole:Route@4011,whole:Route@5465,whole:Route@562,whole:Route@5724,whole:Route@5986,whole:Route@5991,whole:Route@6048,whole:Route@6054,whole:Route@6123,whole:Route@6131,whole:Route@6447,whole:Route@6508,whole:Route@6606,whole:Route@7430,whole:Route@8498,whole:Route@8687,whole:Route@9757 4ec483129187ca5eddae88ff7bf70316504d47d6bacd7d2fb82d2b638f04cc1b
+@legacy 8e63a045e6f521ae979f625bd7424bfafd489a39fc6b91d27bb985f9eaf87a19 internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e; (5) final fix F1: the two start-error arms that gave the lease straight back (a start its pre-exec gate refused with nothing started, and the default arm) now call giveBackAfterStart(ctx, rt, w, lease), which gives a legacy lease back exactly as before and an HA one only over an empty host slice. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x6 (rt handed to restoredReplication, openEntryFiles, the cleanup calls and giveBackAfterStart); no file read in this body; only adds a condition before an HA release, no check removed;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 and 2 (6189a9db, then the r2 ruling "refuse interrupted init"): a fresh rootfs first boot goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), writes it create-only, reads it back (only a read back that finds it confirms it; a write conflict proves nothing), and only then places the database; a warm wake does nothing with the marker (fix wave 1's settleRootfsFirstBoot call and its whole:Route site are gone, no local pending record); adds refusals only, binary rows unchanged registry:DBPath@1703,registry:DBPath@1719,registry:DBPath@1846,registry:DBPath@1857,registry:DBPath@26678,registry:GoodVersion@12913,registry:Host@1532,registry:Host@1607,registry:Host@1685,registry:Host@1837,registry:Host@2171,registry:Host@4121,registry:Host@577,registry:Host@6096,registry:Replication@11536,registry:Replication@11665,registry:Replication@11684,registry:Replication@11765,registry:Replication@26581,registry:Replication@26713,registry:Seed@16471,registry:Socket@1732,registry:Socket@1748,registry:Socket@1871,registry:Socket@1882,whole:Route@10638,whole:Route@11516,whole:Route@11767,whole:Route@13116,whole:Route@14405,whole:Route@14597,whole:Route@15287,whole:Route@1630,whole:Route@16572,whole:Route@16643,whole:Route@19059,whole:Route@2066,whole:Route@2071,whole:Route@20917,whole:Route@2125,whole:Route@2131,whole:Route@21563,whole:Route@2197,whole:Route@2205,whole:Route@22870,whole:Route@23024,whole:Route@23380,whole:Route@23474,whole:Route@24193,whole:Route@24624,whole:Route@24832,whole:Route@24886,whole:Route@25815,whole:Route@26000,whole:Route@26790,whole:Route@27202,whole:Route@27251,whole:Route@27629,whole:Route@28851,whole:Route@28946,whole:Route@29553,whole:Route@3156,whole:Route@3250,whole:Route@3317,whole:Route@357,whole:Route@4011,whole:Route@5465,whole:Route@562,whole:Route@5724,whole:Route@5986,whole:Route@5991,whole:Route@6048,whole:Route@6054,whole:Route@6123,whole:Route@6131,whole:Route@6447,whole:Route@6508,whole:Route@6606,whole:Route@7430,whole:Route@8498,whole:Route@8687,whole:Route@9757 001d444e4c360f8ba306900593dd1bf104ac44984641b513b8410272417bb9f0
@legacy 9f6f3bdc0ab9fc1c4b151d38efd54bbbde8da6cd27fa90d8855fbaebb526318e internal/activator/backend_exec.go ExecBackend.HasSidecar legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: a row with a runtime has no binary sidecar, answered before the sidecar env Stat; reads Runtime; Stats less file:Stat@111,registry:Runtime@63,whole:Route@130 455705cdfd899bfe06c893e09f50e4f44337237ddf6e7d4116458abcd5560516
@legacy afd589d40185e3906687a48da15ab55d077c091b5f0fab06565ea8e09f02820f internal/activator/genbackend.go ExecBackend.EmptyHost legacy accepted-legacy accepted-legacy;rev3=fix1-merge-review;basis=Checks agent-owned host cleanup before lease release; no root authority is derived from it.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: refuses a row with a runtime first (refuseHostCgroupProof); the cgroup open moves into openHostCgroup (same delegation check and OpenCleanup, with the test seam); reads Runtime registry:Host@175,registry:Host@425,whole:Route@113 84e9410c89478fb18c2740ca8fedf01a5bfb218348eb2423fb8e05ec9da2a45e
@legacy 86f7194062928ba9c3168f526d55133e8a9bef3a187f12629061d060beb25b12 internal/activator/genbackend.go ExecBackend.KillHost legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: refuses a row with a runtime first (refuseHostCgroupProof); the cgroup open moves into openHostCgroup (same delegation check and OpenCleanup); reads Runtime registry:Host@174,whole:Route@112 46ce2f055a9975f6c83489b30c0205386ae623fad527b3ec7d0d042f296d89e7
@@ -94,7 +89,7 @@
@legacy 2483e8c72ef96277d620794abe5aed1ea67119b25b13d4c2ce8e03145d9ebe49 internal/activator/wakeidentity.go wakeRouteChanged legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): doWake's refusal when the registry row changed under a wake the edge admitted on its cached row; the agent refuses its own wake; no root decision;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: a runtime change between the wake's start and now refuses the wake, like the other identity changes; reads Runtime of both rows; a refusal only registry:Account@657,registry:Account@674,registry:Account@818,registry:Account@840,registry:Addr@1008,registry:Addr@872,registry:Addr@886,registry:Addr@998,registry:App@689,registry:App@702,registry:App@831,registry:App@855,registry:Host@1148,registry:Host@1311,registry:Host@202,registry:Host@351,registry:Host@613,registry:Host@808,registry:Host@988,registry:ImportGate@1026,registry:ImportGate@1046,registry:Runtime@367,registry:Runtime@384,registry:Runtime@623,registry:Runtime@636,registry:SeedSource@1174,registry:SeedSource@1205,registry:SeedSource@1331,registry:SeedSource@1358,whole:Route@241,whole:Route@248 14db3c61a17fb5f59a84e879eedd7874f3d7488d68e17073abf6f094446bcfcc
@legacy f307bb87d509511d02831b61910d4b52188042d7758a4361e578b79e0f22c677 internal/host/layoutleg.go nestedRowsPresent legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: only binary rows count as evidence the box is nested (a rootfs row is minted nested everywhere); adds a Runtime read that narrows the test registry:Runtime@165,whole:Route@119,whole:Route@158,whole:Route@211 56486e871eb7fdca0873f487d7e6938425187dbb405f8cb17a78c8ba41781cd8
@legacy f42164d99db6e0c0a1e309312aaa4ae7a910775bae9c03552932bd86948221f1 internal/layout/pass.go Pass.recheck legacy accepted-legacy accepted-legacy;rev3=J1,J2,J4;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: a host whose listed row has a runtime is never plantable ("rootfs instances are always nested"), before the plan read; reads Host and Runtime of the listed rows registry:Host@129,whole:Route@115,whole:Route@171,whole:Route@400,whole:Route@602 deb937f7584007d13c6ade75cf3d73643fbe5834ca400f0e9e428664af9a229f
-@legacy 2dc421300dea4bd7550b22e2de2b4542ca9e739cb76cd1766a8859296518c0e4 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 registry:Account@30762,registry:Account@32027,registry:Account@49906,registry:Account@49952,registry:Account@50770,registry:Account@51147,registry:Account@51373,registry:Account@51440,registry:Account@51486,registry:Account@51579,registry:Account@51621,registry:Account@52269,registry:Account@52527,registry:Account@53067,registry:Account@53115,registry:Account@53488,registry:Account@53534,registry:Account@53779,registry:Account@54267,registry:Account@55003,registry:Account@55196,registry:Account@55542,registry:Account@56107,registry:App@30735,registry:App@32000,registry:App@49926,registry:App@49964,registry:App@50782,registry:App@51159,registry:App@51385,registry:App@51460,registry:App@51498,registry:App@51599,registry:App@52281,registry:App@52539,registry:App@53079,registry:App@53127,registry:App@53508,registry:App@53546,registry:App@53791,registry:App@54279,registry:App@55015,registry:App@55208,registry:App@55554,registry:App@56119,registry:ClaimOwnership@31349,registry:DBPath@40206,registry:DBPath@40221,registry:DBPath@40467,registry:DBPath@41070,registry:DBPath@41083,registry:EgressAllow@29848,registry:Gate@36551,registry:Gate@36691,registry:Gate@36978,registry:Hibernate@35223,registry:Hibernate@35421,registry:Hibernate@35486,registry:Hibernate@35825,registry:Hibernate@36176,registry:Hibernate@36486,registry:HoldOp@54748,registry:HoldOp@54839,registry:HoldOp@54974,registry:HoldOp@55350,registry:Host@21741,registry:Host@49885,registry:Host@50746,registry:Host@51123,registry:Host@51287,registry:Host@51393,registry:Host@52289,registry:Host@52495,registry:Host@53371,registry:Host@53643,registry:Host@53758,registry:Host@54144,registry:Host@54241,registry:Host@54455,registry:Host@54830,registry:Host@54965,registry:Host@55169,registry:Host@55242,registry:Host@55341,registry:Host@55516,registry:Host@55591,registry:Host@55677,registry:Host@56084,registry:Kind@31491,registry:Kind@31754,registry:Kind@40124,registry:Kind@40137,registry:Kind@40247,registry:Kind@40260,registry:Kind@40981,registry:Kind@40992,registry:Kind@49028,registry:Kind@54446,registry:Kind@54956,registry:Kind@55332,registry:Kind@55507,registry:Kind@55668,registry:PolicyExpiresAt@29873,registry:Pool@49095,registry:Provisioned@30711,registry:Provisioned@31976,registry:Provisioned@49054,registry:RateLimit@37064,registry:RateLimit@37215,registry:RateLimit@37502,registry:Region@49084,registry:Replication@35910,registry:Replication@36037,registry:Runtime@23513,registry:Runtime@23691,registry:Runtime@25896,registry:Runtime@34590,registry:Runtime@34644,registry:Runtime@34848,registry:Seed@38604,registry:SeedSource@38087,registry:Size@29864,registry:Socket@40172,registry:Socket@40187,registry:Socket@40484,registry:Socket@41040,registry:Socket@41053,registry:Unit@40090,registry:Unit@40103,registry:Unit@41007,registry:Unit@41018,whole:ClaimOwnership@31352,whole:ClaimOwnership@31369,whole:Route@21723,whole:Route@21734,whole:Route@21752,whole:Route@22931,whole:Route@24008,whole:Route@24015,whole:Route@24055,whole:Route@24416,whole:Route@24754,whole:Route@25201,whole:Route@25252,whole:Route@25289,whole:Route@26961,whole:Route@27170,whole:Route@27509,whole:Route@27518,whole:Route@27564,whole:Route@29797,whole:Route@30356,whole:Route@30827,whole:Route@30837,whole:Route@31194,whole:Route@31201,whole:Route@31269,whole:Route@31592,whole:Route@32625,whole:Route@35576,whole:Route@40316,whole:Route@41902,whole:Route@41947,whole:Route@41957,whole:Route@42827,whole:Route@43854,whole:Route@49120,whole:Route@49268,whole:Route@50339,whole:Route@50698,whole:Route@51080,whole:Route@55429,whole:Route@56014,whole:Route@56064 14f504ff102a8b0f37c8a88f1bdcdc65c87599d30c12ea70fb1aec19157475ae
+@legacy 7ca3fd837538b496795c7cb79fb0fc3c17a392a22c3f76d81584ced83450b12c 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 registry:Account@31067,registry:Account@32332,registry:Account@50211,registry:Account@50257,registry:Account@51075,registry:Account@51452,registry:Account@51678,registry:Account@51745,registry:Account@51791,registry:Account@51884,registry:Account@51926,registry:Account@52574,registry:Account@52832,registry:Account@53372,registry:Account@53420,registry:Account@53793,registry:Account@53839,registry:Account@54084,registry:Account@54572,registry:Account@55308,registry:Account@55501,registry:Account@55847,registry:Account@56412,registry:App@31040,registry:App@32305,registry:App@50231,registry:App@50269,registry:App@51087,registry:App@51464,registry:App@51690,registry:App@51765,registry:App@51803,registry:App@51904,registry:App@52586,registry:App@52844,registry:App@53384,registry:App@53432,registry:App@53813,registry:App@53851,registry:App@54096,registry:App@54584,registry:App@55320,registry:App@55513,registry:App@55859,registry:App@56424,registry:ClaimOwnership@31654,registry:DBPath@40511,registry:DBPath@40526,registry:DBPath@40772,registry:DBPath@41375,registry:DBPath@41388,registry:EgressAllow@30153,registry:Gate@36856,registry:Gate@36996,registry:Gate@37283,registry:Hibernate@35528,registry:Hibernate@35726,registry:Hibernate@35791,registry:Hibernate@36130,registry:Hibernate@36481,registry:Hibernate@36791,registry:HoldOp@55053,registry:HoldOp@55144,registry:HoldOp@55279,registry:HoldOp@55655,registry:Host@22046,registry:Host@50190,registry:Host@51051,registry:Host@51428,registry:Host@51592,registry:Host@51698,registry:Host@52594,registry:Host@52800,registry:Host@53676,registry:Host@53948,registry:Host@54063,registry:Host@54449,registry:Host@54546,registry:Host@54760,registry:Host@55135,registry:Host@55270,registry:Host@55474,registry:Host@55547,registry:Host@55646,registry:Host@55821,registry:Host@55896,registry:Host@55982,registry:Host@56389,registry:Kind@31796,registry:Kind@32059,registry:Kind@40429,registry:Kind@40442,registry:Kind@40552,registry:Kind@40565,registry:Kind@41286,registry:Kind@41297,registry:Kind@49333,registry:Kind@54751,registry:Kind@55261,registry:Kind@55637,registry:Kind@55812,registry:Kind@55973,registry:PolicyExpiresAt@30178,registry:Pool@49400,registry:Provisioned@31016,registry:Provisioned@32281,registry:Provisioned@49359,registry:RateLimit@37369,registry:RateLimit@37520,registry:RateLimit@37807,registry:Region@49389,registry:Replication@36215,registry:Replication@36342,registry:Runtime@23818,registry:Runtime@23996,registry:Runtime@26201,registry:Runtime@34895,registry:Runtime@34949,registry:Runtime@35153,registry:Seed@38909,registry:SeedSource@38392,registry:Size@30169,registry:Socket@40477,registry:Socket@40492,registry:Socket@40789,registry:Socket@41345,registry:Socket@41358,registry:Unit@40395,registry:Unit@40408,registry:Unit@41312,registry:Unit@41323,whole:ClaimOwnership@31657,whole:ClaimOwnership@31674,whole:Route@22028,whole:Route@22039,whole:Route@22057,whole:Route@23236,whole:Route@24313,whole:Route@24320,whole:Route@24360,whole:Route@24721,whole:Route@25059,whole:Route@25506,whole:Route@25557,whole:Route@25594,whole:Route@27266,whole:Route@27475,whole:Route@27814,whole:Route@27823,whole:Route@27869,whole:Route@30102,whole:Route@30661,whole:Route@31132,whole:Route@31142,whole:Route@31499,whole:Route@31506,whole:Route@31574,whole:Route@31897,whole:Route@32930,whole:Route@35881,whole:Route@40621,whole:Route@42207,whole:Route@42252,whole:Route@42262,whole:Route@43132,whole:Route@44159,whole:Route@49425,whole:Route@49573,whole:Route@50644,whole:Route@51003,whole:Route@51385,whole:Route@55734,whole:Route@56319,whole:Route@56369 d49386f8c2cc28946146f9c0be3123def5db95a649687f20e5b17e07a60edd5b
@legacy 3bbaef029e96ed6183ec8b7fcf6589b4cec3d4d6f5d3564b1000e3fbd995df79 internal/provision/reconcile.go everywhereRoute legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: a row with any runtime is home-boxed, never an everywhere route; reads Runtime; narrows registry:Backing@459,registry:Caps@498,registry:Hibernate@443,registry:Kind@536,registry:Replica@391,registry:Runtime@148,registry:Tunnel@479,registry:Unit@426 0c66cebe309f9f087986b36b6d6739719e1cf13ca676bdcda9bb732d07e3745d
@legacy 8a6feea4d0e74eaa1e5060da6907f47eaf4bfed3d6ef5743495579f8fb350d43 internal/provision/reconcile.go shapeMismatch legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: a hand-added row is never adopted across runtimes; reads Runtime of both; a refusal only registry:Account@1225,registry:Account@1245,registry:Account@1297,registry:Account@1315,registry:Addr@1675,registry:Addr@1692,registry:Addr@1738,registry:Addr@1753,registry:Addrs@1770,registry:Addrs@1788,registry:Addrs@1836,registry:Addrs@1852,registry:App@1135,registry:App@1151,registry:App@1195,registry:App@1209,registry:Backing@176,registry:Backing@75,registry:Canary@521,registry:Caps@322,registry:Caps@417,registry:DBPath@2470,registry:DBPath@2489,registry:DBPath@2535,registry:DBPath@2552,registry:Health@1870,registry:Health@1889,registry:Health@1939,registry:Health@1956,registry:Kind@1335,registry:Kind@1352,registry:Kind@1398,registry:Kind@1413,registry:Platform@438,registry:Pool@2165,registry:Pool@2182,registry:Pool@2228,registry:Pool@2243,registry:Region@2260,registry:Region@2279,registry:Region@2329,registry:Region@2346,registry:Runtime@1565,registry:Runtime@1585,registry:Runtime@1637,registry:Runtime@1655,registry:Slug@2070,registry:Slug@2087,registry:Slug@2133,registry:Slug@2148,registry:Socket@2365,registry:Socket@2384,registry:Socket@2434,registry:Socket@2451,registry:Tunnel@200,registry:Tunnel@299,registry:Unit@1975,registry:Unit@1992,registry:Unit@2038,registry:Unit@2053 f0847cd535b02824f99f1b0485585f1731cc9becefaf53ae15635f94016185e7
@legacy 853c6ba5c0870846b6e9ff52a8c553cdebcea7d2910226d3ae713f6e585decef internal/registry/registry.go Registry.SetHibernate legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: both updates add AND runtime = '' so a row with a runtime keeps its hibernation; when nothing matched, a Get tells a rootfs row (ErrRuntimeFixed) from no row (the old silent no-op); the follow-up read changes only the error file:Exec@254,file:Exec@379,registry:Runtime@715,registry:remote@66,registry:remote@96,registry:sql@254,registry:sql@379,whole:Route@702,whole:remoteClient@68,whole:remoteClient@98 47344cd6be0343f83e5e13346e7e6c0fc30d48ce1df3be8629905bf411f9a36a
@@ -204,17 +199,12 @@ internal/activator/rootfsdb.go buildEmptySQLiteDB legacy accepted-legacy accepte
internal/activator/rootfsdb.go writeBeneathExcl legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: creates name beneath dir exclusively (instancefs.OpenBeneath, O_CREATE|O_EXCL, 0600), writes, syncs and returns the file's own Stat for later identity checks file:Stat@259 f36a8e9f65ade58bc91bdaccdc8a3e5f3394da5ad6a470458f4f70e7c6cdd127
internal/activator/rootfsenv.go ExecBackend.rootfsCmdVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 6: a rootfs cmd's environment is the binary cmdVars composed through rootfsVars (the image's socket and database paths); reads Socket registry:Socket@198,whole:Route@161 bd669651d1214e229b138437bc94e464b6f953102a68f909950eb99580c77a7b
internal/activator/rootfsmarker.go Config.rootfsMarkerKey legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db, branch review P1-1): the first-boot marker's bucket key, <hibernate prefix>/rootfs-initialized/<Incarnation>.json, computed from the row's Host and Incarnation (the record lifetime); reads Host and Incarnation registry:Host@86,registry:Incarnation@146 84efa170588d79aac2691b75d50a3b320c05557da26d1ca96067f42430d93232
-internal/activator/rootfsmarker.go ExecBackend.BeginRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): as the agent, creates the pending record (MkdirAll 0700, OpenFile O_CREATE|O_TRUNC 0600 under rootfsPendingPath), writes the marker key into it, syncs it and its directory; writes only the agent's own file, reads nothing back file:OpenFile@294,whole:Route@157,whole:Route@434 a115adbff53f0f451fcc51a06e988faf2b9ff4448fad083d0945b20bc515da80
internal/activator/rootfsmarker.go ExecBackend.RootfsInitialized legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): the marker read, one GET of rootfsMarkerKey through ExecBackend.FilesStore (the hibernate bucket, the replica's bucket and credentials); true for any object, false only on a definite not-found, any other answer an error (the wake refuses); the body is never parsed; no FilesStore is errNoRootfsMarker whole:Route@217 697f5accc6b70e3ce4d044a07b8796cd9c42eae72ab926e610dba5a134510687
-internal/activator/rootfsmarker.go ExecBackend.SettleRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): Lstat of this box's pending record (nothing pending: nil, the bucket not asked); otherwise a create-only PUT of the marker (host, account, app, incarnation, time) through FilesStore, a CAS conflict counting as confirmed, then removes the pending record; reads Host, Account, App and Incarnation of the row and only whether the agent's own pending file exists file:Lstat@174,registry:Account@393,registry:App@410,registry:Host@375,registry:Host@847,registry:Incarnation@431,whole:Route@123,whole:Route@554 4cdcb1a664271fdf24629a145190aab8b469815328aec2a3938bc16c4686a5f5
-internal/activator/rootfsmarker.go ExecBackend.rootfsPendingPath legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): the pending first-boot record's path, DataDir/.rootfs-first-boot/<host>@<incarnation> (the agent's data directory, which no tenant writes); refuses an empty host or a name that is not a single path element; reads Host and Incarnation registry:Host@142,registry:Host@201,registry:Host@327,registry:Incarnation@177 4193c41eff17236553a4ab5f41c9ac64ead14ce98e43be96046d4a7fea2cdcbb
-internal/activator/rootfsmarker.go Service.rootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): doWake's step 2a for a fresh rootfs row with no good version, under the lease: checks both capabilities, reads the marker (present refuses as errRootfsReplicaMissing, unreadable refuses), records the pending first boot, places the empty database (placeRootfsDB, unchanged), then writes and confirms the marker before the start; every failure is a rootfs refusal; reads Host and Incarnation for messages and passes the row on registry:Host@1081,registry:Host@172,registry:Host@297,registry:Host@462,registry:Host@643,registry:Host@711,registry:Host@867,registry:Incarnation@652,whole:Route@370,whole:Route@783,whole:Route@917,whole:Route@991 afc9d8c8ae94027750f412a756fa1ab4c3d470b33a1b9a42cc818dc6768e475a
-internal/activator/rootfsmarker.go Service.settleRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): doWake's step 2a for a rootfs row that is not fresh: settles a first boot this box left pending (SettleRootfsFirstBoot) before anything starts, a failure a rootfs refusal; a backend without the marker has nothing pending; reads Host registry:Host@288,whole:Route@198 f949f5afc703b530f926d6b51e456d1141c5913e18e05aad6df188fdcf93c85d
-internal/activator/rootfsmarker.go SplitBackend.BeginRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): forwards the pending record to the exec backend for a non-unit row; a unit-backed row is errNoRootfsMarker; reads Host registry:Host@175,whole:Route@139,whole:Route@97 31ce080f63adfa5dda1198957a83dfea4d10a5dc20e0e91dbf2a2ab10fa57e7c
+internal/activator/rootfsmarker.go ExecBackend.WriteRootfsMarker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 2 (r2 ruling "refuse interrupted init"): as the agent, one create-only PUT of the marker (host, account, app, incarnation, time) through FilesStore at rootfsMarkerKey, returning the store's answer as it is (a conflict is release.ErrCASConflict); confirms nothing, reads nothing back (the caller reads the key back); errNoRootfsMarker without a FilesStore; reads Host, Account, App and Incarnation of the row registry:Account@208,registry:App@225,registry:Host@190,registry:Incarnation@246,whole:Route@393 77c23906c61725a441c5f7f83890454d9448d22f339a7f927e1472094e936e51
+internal/activator/rootfsmarker.go Service.rootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 and 2 (6189a9db; r2 ruling "refuse interrupted init"): doWake's step 2a for a fresh rootfs row with no good version, under the lease: checks both capabilities, reads the marker (present refuses as errRootfsReplicaMissing, unreadable refuses), writes it create-only (WriteRootfsMarker; a CAS conflict is let through to the read back, any other error refuses), reads it back (RootfsInitialized: an error or not-found refuses, errRootfsMarkerUnconfirmed), and only then places the empty database (placeRootfsDB, unchanged); every failure is a rootfs refusal with nothing placed; reads Host and Incarnation for messages and passes the row on registry:Host@1041,registry:Host@1198,registry:Host@1276,registry:Host@172,registry:Host@297,registry:Host@462,registry:Host@643,registry:Host@711,registry:Incarnation@652,whole:Route@1103,whole:Route@1346,whole:Route@370,whole:Route@908 8130bf4b3c24093381dfee832e275fc838bb916ed09ec995c2ec994d22f66405
internal/activator/rootfsmarker.go SplitBackend.RootfsInitialized legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): forwards the marker read to the exec backend for a non-unit row (execMarker); a unit-backed row is errNoRootfsMarker; reads Host registry:Host@210,whole:Route@123,whole:Route@167 bb639b0452b7d6d70c56a7a3d159b146179647d5d54d4b6410b3377717ad4347
-internal/activator/rootfsmarker.go SplitBackend.SettleRootfsFirstBoot legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): forwards the settle to the exec backend for a non-unit row; a unit-backed row has nothing pending (nil) whole:Route@119,whole:Route@167 d238ec5afc02cb7efbec359896c9a2df394de82b5ff1dcc4635df460869f97d2
+internal/activator/rootfsmarker.go SplitBackend.WriteRootfsMarker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 2: forwards the marker write to the exec backend for a non-unit row (execMarker); a unit-backed row is errNoRootfsMarker; reads Host registry:Host@195,whole:Route@115,whole:Route@159 f5674dae016c819bedf79a3461b86f22277490496e357db6ab9c7c04b2ffb516
internal/activator/rootfsmarker.go SplitBackend.execMarker legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): the exec side's marker capability for a row that is not unit-backed; reads Backing; its file:Exec site is the SplitBackend.Exec field (the exec backend, a type assertion), no file is opened or run file:Exec@159,registry:Backing@89 999577c1bd61b6ed11822b81663b96aeb91d057143c44e9f840d482470d6bbe3
-internal/activator/rootfsmarker.go syncDirBestEffort legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (6189a9db): opens a directory the caller named (the pending record's, in the agent's DataDir) and syncs it, errors ignored; reads nothing file:Open@51 bb2040e7e0eafcbd0ed25894880cb69b1de0d86a7add91f51f3d8250a74ce12c
internal/activator/swap.go Service.genHealthy legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: takes the route so the health wait is healthBoundFor(rt) instead of the binary constant; same check whole:Route@266 e86f90e197834d7c677047091ddf5593d9a40f1889608664fc95a8faa6411d93
internal/host/socket_advice.go socketAdvice legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the two advisory log lines socketAdvisoryLoop wrote inline, chosen by Route.ActivatorLeased instead of Hibernate; log text only data-literal@381,registry:Host@338,registry:Host@713,registry:Host@733,registry:Socket@347,registry:Socket@722 6da9ff4ff6c34a480d18d9aa2f5c077b7ab215f0a376f733a7595bfecacdd34a
internal/layout/pass.go Pass.Held legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: takes the whole route and answers not held for a row with a runtime (LayoutExempt) before the existing kept-fence check registry:Host@120,whole:Route@83 0a136240aed9d9dc7eccffa1ef864952ff8978e09f395f2027c44645ec6806bf
@@ -229,7 +219,7 @@ internal/registry/runtime.go Route.Resident legacy accepted-legacy accepted-lega
internal/registry/runtime.go Route.Rootfs legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: runtime is rootfs-v1; reads Runtime registry:Runtime@38 3b0819618fb8b69c34c8e4457108d59a64c4d27f0234d3a6233b2dc4bc7e3872
cli.go addMintsNested legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: a row with a runtime is not evidence the box moved to nested (it is minted nested everywhere), so only binary rows count; adds a Runtime read that narrows the test registry:Runtime@642,whole:Route@594,whole:Route@635,whole:Route@688 96af07e923ed6f3b04cc45a0d493cc8ebe81e47809a2606af38d174ec8f6521b
cli.go runRouteHibernate legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos route hibernate refuses a row with a runtime first (its hibernation is fixed at mint), before any dry run or other rail; reads Host and Runtime of the row already read; a refusal only registry:App@2812,registry:Hibernate@3464,registry:Hibernate@3751,registry:Host@1052,registry:Host@2748,registry:Host@3134,registry:Host@3227,registry:Host@3553,registry:Host@3619,registry:Host@3742,registry:Host@525,registry:Provisioned@1086,registry:Replication@4374,registry:Replication@4545,registry:Runtime@345,whole:Route@2807,whole:Route@2968,whole:Route@2973,whole:Route@3314,whole:Route@564 6b1ef36f22e6308fb6ddf3df2a704d37cc0d9c9c2d6acff55dcc49481f3874ea
-internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e; (5) final fix F1: the two start-error arms that gave the lease straight back (a start its pre-exec gate refused with nothing started, and the default arm) now call giveBackAfterStart(ctx, rt, w, lease), which gives a legacy lease back exactly as before and an HA one only over an empty host slice. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x6 (rt handed to restoredReplication, openEntryFiles, the cleanup calls and giveBackAfterStart); no file read in this body; only adds a condition before an HA release, no check removed;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 (6189a9db, branch review P1-1): a fresh rootfs first boot now goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), records a pending first boot in the agent's DataDir, places the database, then writes and confirms the marker before the start; a rootfs row that is not fresh first settles a first boot this box left pending (settleRootfsFirstBoot: a local Lstat, and a PUT only if pending), refusing and giving the lease back if the marker write fails; one new whole:Route site (rt handed to settleRootfsFirstBoot); adds refusals only, binary rows unchanged registry:DBPath@1703,registry:DBPath@1719,registry:DBPath@1846,registry:DBPath@1857,registry:DBPath@26862,registry:GoodVersion@13097,registry:Host@1532,registry:Host@1607,registry:Host@1685,registry:Host@1837,registry:Host@2171,registry:Host@4121,registry:Host@577,registry:Host@6096,registry:Replication@11536,registry:Replication@11665,registry:Replication@11684,registry:Replication@11765,registry:Replication@26765,registry:Replication@26897,registry:Seed@16655,registry:Socket@1732,registry:Socket@1748,registry:Socket@1871,registry:Socket@1882,whole:Route@10638,whole:Route@11516,whole:Route@11767,whole:Route@12961,whole:Route@13300,whole:Route@14589,whole:Route@14781,whole:Route@15471,whole:Route@1630,whole:Route@16756,whole:Route@16827,whole:Route@19243,whole:Route@2066,whole:Route@2071,whole:Route@21101,whole:Route@2125,whole:Route@2131,whole:Route@21747,whole:Route@2197,whole:Route@2205,whole:Route@23054,whole:Route@23208,whole:Route@23564,whole:Route@23658,whole:Route@24377,whole:Route@24808,whole:Route@25016,whole:Route@25070,whole:Route@25999,whole:Route@26184,whole:Route@26974,whole:Route@27386,whole:Route@27435,whole:Route@27813,whole:Route@29035,whole:Route@29130,whole:Route@29737,whole:Route@3156,whole:Route@3250,whole:Route@3317,whole:Route@357,whole:Route@4011,whole:Route@5465,whole:Route@562,whole:Route@5724,whole:Route@5986,whole:Route@5991,whole:Route@6048,whole:Route@6054,whole:Route@6123,whole:Route@6131,whole:Route@6447,whole:Route@6508,whole:Route@6606,whole:Route@7430,whole:Route@8498,whole:Route@8687,whole:Route@9757 4ec483129187ca5eddae88ff7bf70316504d47d6bacd7d2fb82d2b638f04cc1b
+internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e; (5) final fix F1: the two start-error arms that gave the lease straight back (a start its pre-exec gate refused with nothing started, and the default arm) now call giveBackAfterStart(ctx, rt, w, lease), which gives a legacy lease back exactly as before and an HA one only over an empty host slice. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x6 (rt handed to restoredReplication, openEntryFiles, the cleanup calls and giveBackAfterStart); no file read in this body; only adds a condition before an HA release, no check removed;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 and 2 (6189a9db, then the r2 ruling "refuse interrupted init"): a fresh rootfs first boot goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), writes it create-only, reads it back (only a read back that finds it confirms it; a write conflict proves nothing), and only then places the database; a warm wake does nothing with the marker (fix wave 1's settleRootfsFirstBoot call and its whole:Route site are gone, no local pending record); adds refusals only, binary rows unchanged registry:DBPath@1703,registry:DBPath@1719,registry:DBPath@1846,registry:DBPath@1857,registry:DBPath@26678,registry:GoodVersion@12913,registry:Host@1532,registry:Host@1607,registry:Host@1685,registry:Host@1837,registry:Host@2171,registry:Host@4121,registry:Host@577,registry:Host@6096,registry:Replication@11536,registry:Replication@11665,registry:Replication@11684,registry:Replication@11765,registry:Replication@26581,registry:Replication@26713,registry:Seed@16471,registry:Socket@1732,registry:Socket@1748,registry:Socket@1871,registry:Socket@1882,whole:Route@10638,whole:Route@11516,whole:Route@11767,whole:Route@13116,whole:Route@14405,whole:Route@14597,whole:Route@15287,whole:Route@1630,whole:Route@16572,whole:Route@16643,whole:Route@19059,whole:Route@2066,whole:Route@2071,whole:Route@20917,whole:Route@2125,whole:Route@2131,whole:Route@21563,whole:Route@2197,whole:Route@2205,whole:Route@22870,whole:Route@23024,whole:Route@23380,whole:Route@23474,whole:Route@24193,whole:Route@24624,whole:Route@24832,whole:Route@24886,whole:Route@25815,whole:Route@26000,whole:Route@26790,whole:Route@27202,whole:Route@27251,whole:Route@27629,whole:Route@28851,whole:Route@28946,whole:Route@29553,whole:Route@3156,whole:Route@3250,whole:Route@3317,whole:Route@357,whole:Route@4011,whole:Route@5465,whole:Route@562,whole:Route@5724,whole:Route@5986,whole:Route@5991,whole:Route@6048,whole:Route@6054,whole:Route@6123,whole:Route@6131,whole:Route@6447,whole:Route@6508,whole:Route@6606,whole:Route@7430,whole:Route@8498,whole:Route@8687,whole:Route@9757 001d444e4c360f8ba306900593dd1bf104ac44984641b513b8410272417bb9f0
internal/activator/backend_exec.go ExecBackend.HasSidecar legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: a row with a runtime has no binary sidecar, answered before the sidecar env Stat; reads Runtime; Stats less file:Stat@111,registry:Runtime@63,whole:Route@130 455705cdfd899bfe06c893e09f50e4f44337237ddf6e7d4116458abcd5560516
internal/activator/genbackend.go ExecBackend.EmptyHost legacy accepted-legacy accepted-legacy;rev3=fix1-merge-review;basis=Checks agent-owned host cleanup before lease release; no root authority is derived from it.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: refuses a row with a runtime first (refuseHostCgroupProof); the cgroup open moves into openHostCgroup (same delegation check and OpenCleanup, with the test seam); reads Runtime registry:Host@175,registry:Host@425,whole:Route@113 84e9410c89478fb18c2740ca8fedf01a5bfb218348eb2423fb8e05ec9da2a45e
internal/activator/genbackend.go ExecBackend.KillHost legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: refuses a row with a runtime first (refuseHostCgroupProof); the cgroup open moves into openHostCgroup (same delegation check and OpenCleanup); reads Runtime registry:Host@174,whole:Route@112 46ce2f055a9975f6c83489b30c0205386ae623fad527b3ec7d0d042f296d89e7
@@ -237,7 +227,7 @@ internal/activator/genbackend.go ExecBackend.StartStaged legacy accepted-legacy
internal/activator/wakeidentity.go wakeRouteChanged legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): doWake's refusal when the registry row changed under a wake the edge admitted on its cached row; the agent refuses its own wake; no root decision;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: a runtime change between the wake's start and now refuses the wake, like the other identity changes; reads Runtime of both rows; a refusal only registry:Account@657,registry:Account@674,registry:Account@818,registry:Account@840,registry:Addr@1008,registry:Addr@872,registry:Addr@886,registry:Addr@998,registry:App@689,registry:App@702,registry:App@831,registry:App@855,registry:Host@1148,registry:Host@1311,registry:Host@202,registry:Host@351,registry:Host@613,registry:Host@808,registry:Host@988,registry:ImportGate@1026,registry:ImportGate@1046,registry:Runtime@367,registry:Runtime@384,registry:Runtime@623,registry:Runtime@636,registry:SeedSource@1174,registry:SeedSource@1205,registry:SeedSource@1331,registry:SeedSource@1358,whole:Route@241,whole:Route@248 14db3c61a17fb5f59a84e879eedd7874f3d7488d68e17073abf6f094446bcfcc
internal/host/layoutleg.go nestedRowsPresent legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: only binary rows count as evidence the box is nested (a rootfs row is minted nested everywhere); adds a Runtime read that narrows the test registry:Runtime@165,whole:Route@119,whole:Route@158,whole:Route@211 56486e871eb7fdca0873f487d7e6938425187dbb405f8cb17a78c8ba41781cd8
internal/layout/pass.go Pass.recheck legacy accepted-legacy accepted-legacy;rev3=J1,J2,J4;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: a host whose listed row has a runtime is never plantable ("rootfs instances are always nested"), before the plan read; reads Host and Runtime of the listed rows registry:Host@129,whole:Route@115,whole:Route@171,whole:Route@400,whole:Route@602 deb937f7584007d13c6ade75cf3d73643fbe5834ca400f0e9e428664af9a229f
-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 registry:Account@30762,registry:Account@32027,registry:Account@49906,registry:Account@49952,registry:Account@50770,registry:Account@51147,registry:Account@51373,registry:Account@51440,registry:Account@51486,registry:Account@51579,registry:Account@51621,registry:Account@52269,registry:Account@52527,registry:Account@53067,registry:Account@53115,registry:Account@53488,registry:Account@53534,registry:Account@53779,registry:Account@54267,registry:Account@55003,registry:Account@55196,registry:Account@55542,registry:Account@56107,registry:App@30735,registry:App@32000,registry:App@49926,registry:App@49964,registry:App@50782,registry:App@51159,registry:App@51385,registry:App@51460,registry:App@51498,registry:App@51599,registry:App@52281,registry:App@52539,registry:App@53079,registry:App@53127,registry:App@53508,registry:App@53546,registry:App@53791,registry:App@54279,registry:App@55015,registry:App@55208,registry:App@55554,registry:App@56119,registry:ClaimOwnership@31349,registry:DBPath@40206,registry:DBPath@40221,registry:DBPath@40467,registry:DBPath@41070,registry:DBPath@41083,registry:EgressAllow@29848,registry:Gate@36551,registry:Gate@36691,registry:Gate@36978,registry:Hibernate@35223,registry:Hibernate@35421,registry:Hibernate@35486,registry:Hibernate@35825,registry:Hibernate@36176,registry:Hibernate@36486,registry:HoldOp@54748,registry:HoldOp@54839,registry:HoldOp@54974,registry:HoldOp@55350,registry:Host@21741,registry:Host@49885,registry:Host@50746,registry:Host@51123,registry:Host@51287,registry:Host@51393,registry:Host@52289,registry:Host@52495,registry:Host@53371,registry:Host@53643,registry:Host@53758,registry:Host@54144,registry:Host@54241,registry:Host@54455,registry:Host@54830,registry:Host@54965,registry:Host@55169,registry:Host@55242,registry:Host@55341,registry:Host@55516,registry:Host@55591,registry:Host@55677,registry:Host@56084,registry:Kind@31491,registry:Kind@31754,registry:Kind@40124,registry:Kind@40137,registry:Kind@40247,registry:Kind@40260,registry:Kind@40981,registry:Kind@40992,registry:Kind@49028,registry:Kind@54446,registry:Kind@54956,registry:Kind@55332,registry:Kind@55507,registry:Kind@55668,registry:PolicyExpiresAt@29873,registry:Pool@49095,registry:Provisioned@30711,registry:Provisioned@31976,registry:Provisioned@49054,registry:RateLimit@37064,registry:RateLimit@37215,registry:RateLimit@37502,registry:Region@49084,registry:Replication@35910,registry:Replication@36037,registry:Runtime@23513,registry:Runtime@23691,registry:Runtime@25896,registry:Runtime@34590,registry:Runtime@34644,registry:Runtime@34848,registry:Seed@38604,registry:SeedSource@38087,registry:Size@29864,registry:Socket@40172,registry:Socket@40187,registry:Socket@40484,registry:Socket@41040,registry:Socket@41053,registry:Unit@40090,registry:Unit@40103,registry:Unit@41007,registry:Unit@41018,whole:ClaimOwnership@31352,whole:ClaimOwnership@31369,whole:Route@21723,whole:Route@21734,whole:Route@21752,whole:Route@22931,whole:Route@24008,whole:Route@24015,whole:Route@24055,whole:Route@24416,whole:Route@24754,whole:Route@25201,whole:Route@25252,whole:Route@25289,whole:Route@26961,whole:Route@27170,whole:Route@27509,whole:Route@27518,whole:Route@27564,whole:Route@29797,whole:Route@30356,whole:Route@30827,whole:Route@30837,whole:Route@31194,whole:Route@31201,whole:Route@31269,whole:Route@31592,whole:Route@32625,whole:Route@35576,whole:Route@40316,whole:Route@41902,whole:Route@41947,whole:Route@41957,whole:Route@42827,whole:Route@43854,whole:Route@49120,whole:Route@49268,whole:Route@50339,whole:Route@50698,whole:Route@51080,whole:Route@55429,whole:Route@56014,whole:Route@56064 14f504ff102a8b0f37c8a88f1bdcdc65c87599d30c12ea70fb1aec19157475ae
+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 registry:Account@31067,registry:Account@32332,registry:Account@50211,registry:Account@50257,registry:Account@51075,registry:Account@51452,registry:Account@51678,registry:Account@51745,registry:Account@51791,registry:Account@51884,registry:Account@51926,registry:Account@52574,registry:Account@52832,registry:Account@53372,registry:Account@53420,registry:Account@53793,registry:Account@53839,registry:Account@54084,registry:Account@54572,registry:Account@55308,registry:Account@55501,registry:Account@55847,registry:Account@56412,registry:App@31040,registry:App@32305,registry:App@50231,registry:App@50269,registry:App@51087,registry:App@51464,registry:App@51690,registry:App@51765,registry:App@51803,registry:App@51904,registry:App@52586,registry:App@52844,registry:App@53384,registry:App@53432,registry:App@53813,registry:App@53851,registry:App@54096,registry:App@54584,registry:App@55320,registry:App@55513,registry:App@55859,registry:App@56424,registry:ClaimOwnership@31654,registry:DBPath@40511,registry:DBPath@40526,registry:DBPath@40772,registry:DBPath@41375,registry:DBPath@41388,registry:EgressAllow@30153,registry:Gate@36856,registry:Gate@36996,registry:Gate@37283,registry:Hibernate@35528,registry:Hibernate@35726,registry:Hibernate@35791,registry:Hibernate@36130,registry:Hibernate@36481,registry:Hibernate@36791,registry:HoldOp@55053,registry:HoldOp@55144,registry:HoldOp@55279,registry:HoldOp@55655,registry:Host@22046,registry:Host@50190,registry:Host@51051,registry:Host@51428,registry:Host@51592,registry:Host@51698,registry:Host@52594,registry:Host@52800,registry:Host@53676,registry:Host@53948,registry:Host@54063,registry:Host@54449,registry:Host@54546,registry:Host@54760,registry:Host@55135,registry:Host@55270,registry:Host@55474,registry:Host@55547,registry:Host@55646,registry:Host@55821,registry:Host@55896,registry:Host@55982,registry:Host@56389,registry:Kind@31796,registry:Kind@32059,registry:Kind@40429,registry:Kind@40442,registry:Kind@40552,registry:Kind@40565,registry:Kind@41286,registry:Kind@41297,registry:Kind@49333,registry:Kind@54751,registry:Kind@55261,registry:Kind@55637,registry:Kind@55812,registry:Kind@55973,registry:PolicyExpiresAt@30178,registry:Pool@49400,registry:Provisioned@31016,registry:Provisioned@32281,registry:Provisioned@49359,registry:RateLimit@37369,registry:RateLimit@37520,registry:RateLimit@37807,registry:Region@49389,registry:Replication@36215,registry:Replication@36342,registry:Runtime@23818,registry:Runtime@23996,registry:Runtime@26201,registry:Runtime@34895,registry:Runtime@34949,registry:Runtime@35153,registry:Seed@38909,registry:SeedSource@38392,registry:Size@30169,registry:Socket@40477,registry:Socket@40492,registry:Socket@40789,registry:Socket@41345,registry:Socket@41358,registry:Unit@40395,registry:Unit@40408,registry:Unit@41312,registry:Unit@41323,whole:ClaimOwnership@31657,whole:ClaimOwnership@31674,whole:Route@22028,whole:Route@22039,whole:Route@22057,whole:Route@23236,whole:Route@24313,whole:Route@24320,whole:Route@24360,whole:Route@24721,whole:Route@25059,whole:Route@25506,whole:Route@25557,whole:Route@25594,whole:Route@27266,whole:Route@27475,whole:Route@27814,whole:Route@27823,whole:Route@27869,whole:Route@30102,whole:Route@30661,whole:Route@31132,whole:Route@31142,whole:Route@31499,whole:Route@31506,whole:Route@31574,whole:Route@31897,whole:Route@32930,whole:Route@35881,whole:Route@40621,whole:Route@42207,whole:Route@42252,whole:Route@42262,whole:Route@43132,whole:Route@44159,whole:Route@49425,whole:Route@49573,whole:Route@50644,whole:Route@51003,whole:Route@51385,whole:Route@55734,whole:Route@56319,whole:Route@56369 d49386f8c2cc28946146f9c0be3123def5db95a649687f20e5b17e07a60edd5b
internal/provision/reconcile.go RouteFor authority C,E3 rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos); also root, in the claim root's landing registration (ClaimRootHTTP.rootLandingRoute) and the relocation install (relocationRecord): census-ruling-seeded-instances's body with two more fields from the record: the row's lifetime pair (rec.Incarnation, rec.MoveSeq), so a row minted outside a move takes the record's lifetime and its last move's sequence (0, 0 for a fieldless record with no move history); every caller gets it, the root ones included: the root callers (ClaimRootHTTP.rootLandingRoute, relocationRecord) now mint (0, move_seq) on a claims-on record, a non-zero sequence once that record has had an offline move (move_seq advances on claims-on offline moves too), which moves Fingerprint and SnapshotFingerprint once for that row; main's C,E3 authority retained; self-serve moves 1 Task 7 (fix round 1: root callers named);rev3=census-ruling-region-ha-p1a;basis=the agent's reconcile passes, and also root's callers (rootupdates.go, rootinventory_install.go and relocationinstall.go on HEAD): one more field copied from the record, HA: rec.HA, so a row minted from a record stamped HA carries the sticky born-HA mark; the record is the console-written instance record each caller already read; root's own code reads nothing of Route.HA, and Fingerprint does not include it (SnapshotFingerprint does, for a set mark); the same nine sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: the row is minted with the record's Runtime (the console-written instance record, guarded by WriteRecord's runtimeFixed); a rootfs row always gets the nested socket and db path under dataDir and no seed or seed source; the paths are computed from the host, not read from the record registry:Addr@2312,registry:Addrs@2321,registry:DBPath@1506,registry:DBPath@1808,registry:DBPath@2230,registry:Health@2331,registry:Hibernate@1752,registry:Seed@2276,registry:SeedSource@2285,registry:Socket@1468,registry:Socket@1770,registry:Socket@2193,whole:Route@2369 35b3cb710edfd024482000ff5a71dd19350a35bdaa1f2b98f4d89aabc9ddd198
internal/provision/reconcile.go everywhereRoute legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: a row with any runtime is home-boxed, never an everywhere route; reads Runtime; narrows registry:Backing@459,registry:Caps@498,registry:Hibernate@443,registry:Kind@536,registry:Replica@391,registry:Runtime@148,registry:Tunnel@479,registry:Unit@426 0c66cebe309f9f087986b36b6d6739719e1cf13ca676bdcda9bb732d07e3745d
internal/provision/reconcile.go shapeMismatch legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: a hand-added row is never adopted across runtimes; reads Runtime of both; a refusal only registry:Account@1225,registry:Account@1245,registry:Account@1297,registry:Account@1315,registry:Addr@1675,registry:Addr@1692,registry:Addr@1738,registry:Addr@1753,registry:Addrs@1770,registry:Addrs@1788,registry:Addrs@1836,registry:Addrs@1852,registry:App@1135,registry:App@1151,registry:App@1195,registry:App@1209,registry:Backing@176,registry:Backing@75,registry:Canary@521,registry:Caps@322,registry:Caps@417,registry:DBPath@2470,registry:DBPath@2489,registry:DBPath@2535,registry:DBPath@2552,registry:Health@1870,registry:Health@1889,registry:Health@1939,registry:Health@1956,registry:Kind@1335,registry:Kind@1352,registry:Kind@1398,registry:Kind@1413,registry:Platform@438,registry:Pool@2165,registry:Pool@2182,registry:Pool@2228,registry:Pool@2243,registry:Region@2260,registry:Region@2279,registry:Region@2329,registry:Region@2346,registry:Runtime@1565,registry:Runtime@1585,registry:Runtime@1637,registry:Runtime@1655,registry:Slug@2070,registry:Slug@2087,registry:Slug@2133,registry:Slug@2148,registry:Socket@2365,registry:Socket@2384,registry:Socket@2434,registry:Socket@2451,registry:Tunnel@200,registry:Tunnel@299,registry:Unit@1975,registry:Unit@1992,registry:Unit@2038,registry:Unit@2053 f0847cd535b02824f99f1b0485585f1731cc9becefaf53ae15635f94016185e7
@@ -288,7 +278,7 @@ internal/rollout/policy.go Managed legacy accepted-legacy accepted-legacy;rev3=J
@remove internal/host/schedule_wiring.go activatorDeliverer.managedByGenerations
@removed internal/host/schedule_wiring.go activatorDeliverer.managedByGenerations H3 census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: Kind and Hibernate inline become Route.ActivatorOwned, a method call the census does not count as a site; same fields plus Runtime
@coverage . 96d08337a2c4776fa713eb4b3f79785a37b0d4a08617b978b7dd0db082b9bab4
-@coverage internal/activator e45f81e9ac5e6d53d9f3dd57190d7059607a1c5c7454ffe82ad3ca48bf0b4281
+@coverage internal/activator b94534751fad3c8928cfae3446a587c354bd96113276eeaaf4468ae41bf39453
@coverage internal/appconfig d265db3d58bf5b223018cae52d7dced43a0a5f508fec84500fc2957f845ae81e
@coverage internal/caps 43407c22a68cc404036c23b395d87c7dc772816bcc8aa74c4a2f4e3b1a1439d6
@coverage internal/edge 38c3f4d20377cfec57c4e59158c30c740f743c4c679488e375ecc02c0388b881
@@ -297,7 +287,7 @@ internal/rollout/policy.go Managed legacy accepted-legacy accepted-legacy;rev3=J
@coverage internal/instancectl 5e047d367f276df24ee985079d9efeb94ad0da19152a51e1740954d5bc1673f3
@coverage internal/layout f8c8d0e5b550b0ae2d74667b7c6157407a97e1ab56654d88aa9e4be3a52f99d5
@coverage internal/ops 483fd528e83b7224168245d7656181b4ab38d80face3e05dd92bbb811bf643b0
-@coverage internal/provision b7a86662be4a61966114f9711905724f312d8c99b53a968175cf2e9f275113ec
+@coverage internal/provision 63638e28bab3252e194dcb26be93d3c2c2d1f7f66cd455125df49aa8e1c54ebc
@coverage internal/registry 43e283c9640cc19a2e858300a247ef5b5eb57a7b4a61bfd3870c1b8b9bde4ace
@coverage internal/release 9a51bcc87653ce4d57272cc16f340bbea66bd36b3f53558ec9a7f6cd14ac9a2c
@coverage internal/rollout c20fadd1ff9782417333e63feffbca91a37f3ec027aa3a510cd24ae4e1cd55bc