carlos / platform Public

feat: supervise fresh stateless binary residents

Seed a fresh exec row's stateless projection from the verified staging
manifest, with an exact-row transaction and no serving-version claim.
Include stateless binaries in resident exit detection and restart backoff.

Exercise proactive residency, command/session authorization and retirement,
worker readiness and swap proof, and unchanged stateful lease-loss cleanup.
Regenerate the cumulative census proposal for controller-owned review.

The console runtime floor remains pending clarification: promote has no
existing box-version read to reuse under the no-new-bucket-reads rule.
Live dev verification and landing remain controller-owned.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 40b75b004c9103a12a2eb98c9b7a01fb41d40f0e parent eea6bdf
11 files changed, +490 −15
  • docs/superpowers/notes/census-proposal-stateless-replicas-1.md +9 −4
  • internal/activator/rootfs_service.go +6 −2
  • internal/activator/stateless_resident_test.go +270 −0
  • internal/host/stateless_singlecopy_test.go +92 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv +15 −8
  • internal/registry/forward_writers_test.go +12 −0
  • internal/registry/registry.go +34 −0
  • internal/registry/remote_dispatch.go +2 −0
  • internal/registry/stateless_test.go +43 −0
  • internal/release/adopt.go +6 −0

Intent

Human

<task-notification> <task-id>bcs5osq27</task-id> <tool-use-id>toolu_0157DyDWvxDH1uZc2ckeFUGW</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/412bbef6-9468-4e8d-b9fe-5343bad21de8/tasks/bcs5osq27.output</output-file> <status>completed</status> <summary>Background command "Wait for CI fix round" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>af06effea7359ac6a</task-id> <tool-use-id>toolu_01J4hs7SPMsh3mdt7A77ybmn</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/412bbef6-9468-4e8d-b9fe-5343bad21de8/tasks/af06effea7359ac6a.output</output-file> <status>completed</status> <summary>Agent "Review CI fix round" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>All five CI failures are fixed properly. None of the fixes is a weakened gate or test, and I found no new Critical or Important breakage. I reviewed the diff file and compared `Swap` and `storageMode` with the 65420a4d baseline. I ran no tests: I had no specific doubt that needed one, so the report's test output is not independently confirmed. ## Per-failure verdicts **1. Console claim and route census (four tests): FIXED PROPERLY** - Both routes are now classified as doors (the honest class for routes that mutate the instance record), not as read or nonApp: `internal/console/claim_invariant_fixtures_test.go:733-734`. - `internal/console/testdata/claim-routes.txt:327-328` adds both routes in sorted order. - The door fixture is new, in `internal/console/claim_invariant_replicas_test.go:16-96`. It sets up a real fleet box token, the instance record and a matching serving host claim. It then calls the production handlers, both while another operation holds the app and while the app is free. - Its check is strict. Closed must mean nothing changed. Open must keep the coordinator's box and boot ID, and the release's ID, phase and term. - The production handlers did not change. Adding the fixture clears all four gates; none of them needed its own list entry. **2. TestNoUnjudgedRecordReads: FIXED PROPERLY** - `internal/host/replicacoordinator.go:47` now uses `provision.ReadRecordJudged(ctx, s.store, provision.JudgeFrom(ctx), …)`. Nothing was added to `unjudgedReadPermitted`. - Other host code already reads this way (`rootgeneration_requirements.go:55`, `rootgenerations_launch.go:56`). - With no judge in the context it is the same read as before (`ReadRecordJudged` falls back to `GetRecordETag`). With a judge, a stale or retired record reads as not found, so the change is stricter than before. The typed write, app admission and serial bump are unchanged. **3. TestMovesStringsAreRecorded and TestMovesSinksAreSentences: FIXED PROPERLY** - `internal/activator/backend_exec.go:1981-1985` now reads `digest, err := …; if err != nil { return …}; id.Digest = digest`. - This behaves exactly as before. On error the old code also returned an empty identity, so the partly set `id.Digest` never escaped. On success it is the same hash and the same identity. No reads were added. - No copy inventory or analyzer rule was loosened. **4. TestReleaseRefusedWhenTheRowIsNotTheInstance/gone: FIXED PROPERLY** - `internal/activator/swap.go:339-360` records that the row is missing instead of fencing straight away. - It fences with `ErrFenced` before `prepareStateless` and before any start in every other case: - the target build is stateless - the old copy was stateless (which also covers both directions of a mode change) - binary rows - hold mode - rows with the old (foreign) directory layout - Only a stateful-to-stateful rootfs overlap goes on to `releaseBeforeSwap`. That is the path 65420a4d took, which gives "the row changed", with the disabled check still ahead of it. - This narrows the early fence that 923fbd89 added and leaves every stateless gate in place. - The new `TestStatelessSwapMissingRowKeepsRefusalOrder` (`internal/activator/stateless_test.go:640-674`) checks all five cases. For each it asserts the refusal reason, that nothing ran, that no process files were read, and that nothing was admitted. **5. TestStatelessBindingUsesExistingReconcile: FIXED PROPERLY** - The cause is real. In the CI log the decoded `CreatedAt` is in UTC, while `time.Unix` gives a Local time. Comparing `time.Time` values with `!=` also compares the location, so the result depended on the machine's timezone. - `internal/provision/stateless_binding_test.go:18,28` now compares with `Time.Equal`, the correct test of the same instant. The fixture uses a fixed timezone, so every machine now exercises the round trip where the location differs. - The other assertions (host, stateless flag, serving version, counts) are unchanged. ## The other checks - **Activator reorder:** it restores the 65420a4d result for the gone case and weakens no stateless gate (details under 4). - **LiveIdentity restructure:** behaviour-identical (details under 3). - **Second commit (eea6bdf1): a legitimate test-harness fix.** - `controlplane_test.go:641` adds `-buildvcs=false`. That build is a throwaway test module under TMPDIR, so it should not pick up the empty `.git` sitting in /tmp. The version stamp and architecture checks are unchanged. - `plan9_sql_seal_test.go:49-57,64,262` now grows the stack-dump buffer until the whole dump fits. The old fixed 1 MiB buffer could cut the dump off, which could only make the test miss a goroutine and fail. It could never make it pass. The frame matching and deadlines are unchanged, so nothing is masked. ## New breakage None. ## Out of scope (minor) - When a row has disappeared, `swap.go` now runs `storageMode` before the fence. That means hashing the staged file and reading the build's storage declaration (`StorageDeclaration`) first. If that call fails, the refusal reads as a storage-declaration error rather than "fenced". It is still refused before any preparation or start, so this is extra work and a different message, not a hole. - The two new `claimFixtures` entries sit above `"route GET /accounts"`, out of the map's grouping. Cosmetic only. ## Census Approve. The root-scope units changed are `ExecBackend.LiveIdentity`, `Service.Swap` and `replicaCoordinatorStore.releaseState`. - `LiveIdentity` makes the same reads. - `Swap` adds no new read sites. On a missing row it can now reach `VerifyStaged` and `StorageDeclaration` on the attempt's own staged path in the agent's version store. That is the same input those calls already get when the row is present. - `releaseState` reads the same instance-record key as before, now through the lifetime judge. No root read now opens, runs, queries or follows a path or input that a tenant, app or box agent can create, write or name. The seal chain (`49d8b26a…`) was regenerated together with the proposal. **Verdict: all fixed properly**</result> <usage><subagent_tokens>81056</subagent_tokens><tool_uses>10</tool_uses><duration_ms>115733</duration_ms></usage> </task-notification>

Attributed to this commit: 17.8 g CO₂e (2,262,709 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-1-runtime, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/notes/census-proposal-stateless-replicas-1.md b/docs/superpowers/notes/census-proposal-stateless-replicas-1.md
index 9a63098b5..3cf3bff49 100644
--- a/docs/superpowers/notes/census-proposal-stateless-replicas-1.md
+++ b/docs/superpowers/notes/census-proposal-stateless-replicas-1.md
@@ -1,6 +1,6 @@
# Census approval: stateless-replicas-1
-Ruling `census-ruling-stateless-replicas-1`. The independent reviewer approves or rejects every change below, 58 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-stateless-replicas-1`. The independent reviewer approves or rejects every change below, 61 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -40,12 +40,13 @@ Ruling `census-ruling-stateless-replicas-1`. The independent reviewer approves o
| `internal/activator/escrow.go` `ExecBackend.publishEscrowAt` | sites | -registry:Host, +whole:Route | Task 3b: replace the serving-lease-only gate with the mode-specific escrow authority gate; conflict, readiness, paths and operation lock unchanged. |
| `internal/activator/escrow.go` `ExecBackend.publishEscrowLocked` | sites | -registry:Host, +whole:Route | Task 3b: recheck mode-specific authority before manifest commit; drop staged state on loss; preserve write-once divergence, bucket knowledge, CAS recovery and file-read protections. |
| `internal/activator/rootfs.go` `ExecBackend.spawnRootfs` | sites | +whole:Route | Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. |
+| `internal/activator/rootfs_service.go` `Service.rootfsTick` | sites | +whole:Route | Task 4: supervise stateless binary exits through the existing StopExited, termination proof and resident backoff. Preserve rootfs lease-loss checks and worker supervision; no new polling or root path. |
| `internal/activator/rootfsenv.go` `ExecBackend.rootfsCmdVars` | sites | +whole:Route | Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. |
| `internal/activator/rootfsenv.go` `ExecBackend.rootfsTTYVars` | sites | +whole:Route | Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. |
| `internal/activator/rootfsrelease.go` `Service.runRelease` | sites | -registry:Host, -whole:Route ×10 | Delegate unchanged stateful admission and stop/proof behavior to runReleaseAdmitted with no durable admission hook; reads moved to that method. |
| `internal/activator/swap.go` `Service.spawnSuccessor` | sites | +whole:Route ×5 | Task 3a: Carry verified target mode on the actual generation and add the stateless current-record gate at the real launch boundary; preserve the existing lifecycle, publication and placement gates. Fix 3a round 1 I2: attach single final record check on stateless overlap spawn; repeated surrounding gates remain registry/observation-only, preserving local ownership checks. |
| `internal/activator/wakeidentity.go` `Service.routeCurrentUnderLease` | sites | -registry:Assigned ×3, -registry:Host ×7, -whole:Route ×2 | Delegate the existing placement and record recheck to currentWakeRoute without taking an additional lease or reading records twice. |
-| `internal/registry/remote_dispatch.go` `Registry.dispatchRemote` | sites | +registry:Host, +registry:On, +registry:Ver | Task 3a: Add SetServingMode dispatch using the existing remote request Host, Ver and On fields; the same local narrow writer handles it. No new transport or root path. |
+| `internal/registry/remote_dispatch.go` `Registry.dispatchRemote` | sites | +registry:Host, +registry:Observed, +registry:On, +registry:Ver, +whole:Route | Task 3a: Add SetServingMode dispatch using the existing remote request Host, Ver and On fields; the same local narrow writer handles it. No new transport or root path. Task 4 R19: dispatch SeedStateless with the existing Observed Route carrier to its guarded local method. No new transport; the existing read-only service gate still refuses writes. |
| `internal/rollout/manager.go` `Manager.resolve` | sites | +whole:Route | Task 3a: Carry demand, artifact identity, stateless verdict and canonical digest from one verified RuntimeSelection into the attempt; unreadable selection refuses. |
| `internal/rollout/wakeplan.go` `Manager.planRow` | sites | +whole:Route | Task 3a: Carry each selection read by the existing planner on its WakePlan so wake uses that same canonical verdict/digest, including selected fallbacks. |
@@ -91,6 +92,7 @@ Recorded dispositions, which each change must still satisfy:
- `internal/activator/escrow.go` `ExecBackend.publishEscrowAt`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: escrowReady and the layout checked, then publishEscrowLocked under the host's lock Fix round 1: refuses while the conflict marker exists or while this box does not hold the host's lease (P1-2), before anything is read.
- `internal/activator/escrow.go` `ExecBackend.publishEscrowLocked`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). Fix round 4: only a commit that wrote (the baseline's ETag moved) feeds what this process knows (learnBucket) and writes the ledger; a no-op commit on a ledger-opened publisher feeds nothing; the same reads and writes. Durability 3a Task 5: on the held baseline before staging and DropRawSecrets, noteRawSecrets(rt.Host, m). Reads only manifests this process already holds (no request, no file opened); calls the detector, which logs and calls ExecBackend.OnRawSecret; nothing else changes. The +registry:Host site is that call's argument. Branch fix R1 P1-1: every failed manifest commit drops the publisher, stamps, preparation read and bucket knowledge; the next operation opens the bucket and repeats divergence checks before staging. No new root input or read site. Branch fix R1 P1-4: a CommitRecoveryReadError from the existing CAS-recovery GET wraps errEscrowUnreadable, so the launch refuses rather than using the later-launch write-failure fallback. No new read. Branch fix R1 P1-3: select sealed escrow against Route.Incarnation before decrypting, restoring, minting or checking divergence: lower non-zero escrow is retired in the selected view, higher refuses, equal and zero-stamped retain behavior. Publication stamps the current lifetime atomically, drops prior-lifetime cached stamps, and never treats retired escrow as a committed successor. Same storage paths; historical objects retained. Branch fix R2: remove incarnation selection and stamping per Paul's ruling; restore pre-030ce7f9 hostname-scoped escrow behavior. No read added. Same-key hostname reuse can inherit predecessor secrets; a changed key refuses. Keep the uncertain-commit and CAS-recovery read-failure refusals. Branch fix R2 P1-3: delegate the existing baseline, divergence and StageSealed operations to stageEscrowReads, shared with HA. Same bucket objects and reads; lease gating, uncertain-commit state drop, and typed CAS-recovery refusal retained.
- `internal/activator/rootfs.go` `ExecBackend.spawnRootfs`: legacy, task accepted-legacy. Basis: 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 spawnUnitFrom, whose shape it has): new (rootfs Plan 2 Tasks 5 and 9): prepareKeyedAt (the instance's own directories, environment and listeners, unchanged), the schema-2 tenant launch file (environment only, CARLOS_SOCKET and CARLOS_DB set by the agent), the caller's exec gate, then StartRootfs over the control socket naming the image and web; root resolves the command from its own staged manifest (C4) and the tenant file may name no command (the trampoline refuses one); the failure handling is spawnUnitFrom's; its sites are the row's host and route; no root decision; final fix I1: root's answers that guarantee no start (ErrStartRefused: 503 not ready or claim-armed, 501 unconfigured, 400, 409, 507), like its 403, are marked a refusal (refuseRootfs), so verdictOf and classifyStep record no failure of the build and no stop is asked; a 502 and a transport failure still may have run; the same nineteen sites, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (d35fcb1f, census P1-1): takes the tier root is asked for as an argument; a zero tier means GenTier's (the former body), so a caller that chose a limit has it kept, as spawnChildFrom and spawnUnitFrom keep theirs; the same nineteen sites, no read added
+- `internal/activator/rootfs_service.go` `Service.rootfsTick`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: per activator tick, lists residents (Registry.ResidentInstances through the DueStore), and for each rootfs entry kills generations whose replica reports a lost lease with no watch installed, stops an exited rootfs process (StopExited), and supervises; then drops forgotten residents and reserves proactive starts (residentJob) for resident-shaped, unheld rows within the start ceiling after the locked admission;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.10: when the tick kills a lost-lease resident's generations it also starts stopRootfsWorkersAtLoss(e) beside them; superviseRootfsLocked (a no-op in Group A) is now the worker supervision; the same 15 read sites, no read added; stops more, starts nothing new on its own;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a: the no-signal fallback also covers a hibernating rootfs entry with a one-shot unit that may run (oneShotHoldsLocked); it latches ownerKilled and runs each one-shot kill func (KillOneShot to root's existing /stop) with go off a.mu, beside a resident's killResidentGens and stopRootfsWorkersAtLoss as before; new site +whole:Route is e.route.Rootfs(); stops more, starts nothing
- `internal/activator/rootfsenv.go` `ExecBackend.rootfsCmdVars`: legacy, task accepted-legacy. Basis: 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
- `internal/activator/rootfsenv.go` `ExecBackend.rootfsTTYVars`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 8, new: a rootfs session environment: ttyVars over the generation launch environment, then rootfsVars with the row canonical socket and dbPath set after the file environment, as rootfsCmdVars does; map composition only
- `internal/activator/rootfsrelease.go` `Service.runRelease`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R1: new; the one place a release command runs. Refuses while any record of the host is open; skips the row's good build (releaseRan); reads the declared processes (declaredProcesses: the existing staged-manifest read) and refuses on a read error, never treating it as no release; runs only when releaseDue; needs a lease watch and a ReleaseBackend; its gate is the caller's plus the lease's Err and its safety deadline more than releaseStopLead (cmdStopBound, 2 min) away; creates the record under a.mu after releaseAdmitLocked; publishes the generations file and the build state (recordBuild) before anything runs; times out at the manifest's timeout_sec (default, capped at runs.MaxTimeout); ReleaseEnv; a supervisor stops the unit ahead of the lease's safety deadline; StartRelease under the exec gate; polls the unit (root's existing cmd status); stops and settles it (the existing cmd hold's stop, cmdStopBound); only a non-zero exit, a signal or the timeout with the unit proven gone is the build's failure (*ReleaseError); registry:Host sites are the record key and log lines;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 9: newCmdHold takes the hold's role; a release command's hold is instancectl.RoleCmd, the unit it runs in; nothing else changed, no read added
@@ -110,6 +112,7 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/activator/escrow_authority.go:SplitBackend.prepareStatelessEscrow`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
- new `internal/activator/hasecrets.go:ExecBackend.launchEnvLayerForMode`: reads +registry:Host ×3, +whole:Route ×6; written legacy, accepted-legacy, frozen
- new `internal/activator/replicaobservation.go:ObservedReplicaRelease`: reads +registry:Account, +registry:App, +registry:Host; written legacy, accepted-legacy, frozen
+- new `internal/activator/rootfs_service.go:statelessResident`: reads +registry:Hibernate, +registry:Kind, +registry:Runtime, +registry:Stateless; written legacy, accepted-legacy, frozen
- new `internal/activator/rootfsrelease.go:Service.runReleaseAdmitted`: reads +registry:Host, +whole:Route ×11; written legacy, accepted-legacy, frozen
- new `internal/activator/stateless.go:ExecBackend.statelessLaunchEnv`: reads +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/activator/stateless.go:Service.doStatelessWake`: reads +registry:Host ×2, +registry:Stateless, +whole:Route ×12; written legacy, accepted-legacy, frozen
@@ -129,6 +132,7 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/host/agent.go:replicaRecordFacts`: reads +registry:App, +registry:Host, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/host/agent.go:storageDeclaration`: reads +registry:App, +registry:Stateless ×2, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/host/fleetbind.go:statelessBindingPublisher.publish`: reads +registry:Account, +registry:App, +registry:Assigned, +registry:Host, +registry:Provisioned, +registry:ServingVersion, +registry:Stateless, +registry:Status; written legacy, accepted-legacy, frozen
+- new `internal/registry/registry.go:Registry.SeedStateless`: reads +file:Exec, +file:QueryRow, +registry:Backing, +registry:Host ×2, +registry:Kind, +registry:ServingVersion, +registry:Socket, +registry:Tunnel, +registry:Version, +registry:remote ×2, +registry:sql, +whole:Route ×4, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
- new `internal/registry/registry.go:Registry.SetServingMode`: reads +file:Exec, +registry:remote ×2, +registry:sql, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
- new `internal/replicas/coordinator.go:ChangeCoordinator`: reads +file:Read; written legacy, accepted-legacy, frozen
- other `changed registry schema`: closed only if it is the registry schema (re-pinned)
@@ -145,7 +149,7 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/activator/escrow.go:ExecBackend.restoreEscrowIfMissing`: +registry:Stateless; keeps legacy, task accepted-legacy
- reads `internal/activator/genbackend.go:ExecBackend.StartStaged`: +registry:Stateless; keeps legacy, task accepted-legacy
- reads `internal/activator/hasecrets.go:ExecBackend.launchEnvLayer`: -registry:Host ×3, +registry:Stateless, -whole:Route ×4; keeps legacy, task accepted-legacy
-- reads `internal/activator/rootfs_service.go:residentShaped`: +registry:Stateless; keeps legacy, task accepted-legacy
+- reads `internal/activator/rootfs_service.go:residentShaped`: +whole:Route; keeps legacy, task accepted-legacy
- reads `internal/activator/rootfsenv.go:ExecBackend.rootfsWorkerVars`: +registry:Stateless, +whole:Route; keeps legacy, task accepted-legacy
- reads `internal/activator/swaphold.go:Service.startPinnedAt`: +registry:Stateless ×3, +whole:Route ×4; keeps legacy, task accepted-legacy
- reads `internal/host/fleetbind.go:fleetBindingHook`: +registry:Stateless; keeps legacy, task accepted-legacy
@@ -160,7 +164,8 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/registry/registry.go:scanRoute`: +registry:Stateless; keeps legacy, task accepted-legacy
- reads `internal/registry/runtime.go:Route.ActivatorOwned`: +registry:Stateless; keeps legacy, task accepted-legacy
- reads `internal/registry/runtime.go:Route.Resident`: +registry:Runtime, +registry:Stateless; keeps legacy, task accepted-legacy
+- reads `internal/release/adopt.go:adoptHost`: +registry:Backing, +registry:Kind, +registry:ServingVersion, +registry:Socket, +registry:Stateless ×2, +registry:Tunnel, +registry:Version, +whole:Route; keeps authority, task B3,E1,E2,E3,E4,J1
-Seal: `5f805400717bad7726bd9d62744b8103a40eb5f5823b0ab7c960a5c0965cb3bc` → `49d8b26abf726f8ed349ff191452ab1e55490ab3b906797597145c6734c34db2`.
+Seal: `5f805400717bad7726bd9d62744b8103a40eb5f5823b0ab7c960a5c0965cb3bc` → `2dc64e66fd1323bd90c04eecdf0be69eb9ef442cdb22f425f5513312d13d0bbc`.
Overlay: `internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/activator/rootfs_service.go b/internal/activator/rootfs_service.go
index 8b5080526..0566bbd9c 100644
--- a/internal/activator/rootfs_service.go
+++ b/internal/activator/rootfs_service.go
@@ -588,8 +588,12 @@ func (a *Service) residentWaitingLocked(st *residentState) bool {
// instance with a runtime that does not hibernate. A rootfs-v1 row is a
// resident; any other runtime is refused by rootfsRefusalLocked, so it is
// reported and never started.
+func statelessResident(rt registry.Route) bool {
+ return rt.Kind == "instance" && rt.Stateless && !rt.Hibernate && (rt.Runtime == "" || rt.Rootfs())
+}
+
func residentShaped(rt registry.Route) bool {
- return rt.Kind == "instance" && !rt.Hibernate && (rt.Runtime != "" || rt.Stateless)
+ return rt.Kind == "instance" && !rt.Hibernate && (rt.Runtime != "" || statelessResident(rt))
}
// errResidentNotRunnable refuses a proactive wake whose row, read again
@@ -685,7 +689,7 @@ func (a *Service) rootfsTick() {
return
}
for _, e := range a.entries {
- if !e.route.Rootfs() {
+ if !e.route.Rootfs() && !statelessResident(e.route) {
continue
}
// The second line under the lease watch, for a resident, or a
diff --git a/internal/activator/stateless_resident_test.go b/internal/activator/stateless_resident_test.go
new file mode 100644
index 000000000..9007672a3
--- /dev/null
+++ b/internal/activator/stateless_resident_test.go
@@ -0,0 +1,270 @@
+package activator
+
+import (
+ "context"
+ "crypto/ed25519"
+ "crypto/rand"
+ "errors"
+ "path/filepath"
+ "runtime"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/provision"
+ "github.com/carlosframework/platform/internal/registry"
+ "github.com/carlosframework/platform/internal/release"
+)
+
+func TestStatelessBinaryResidentRestarts(t *testing.T) {
+ r := newWakeRelRig(t)
+ wireStatelessRig(r)
+ reg, err := registry.Open(filepath.Join(t.TempDir(), "registry.db"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer reg.Close()
+ // Start from the record writer's fresh row, with no serving projection.
+ hibernate := false
+ rec := provision.Record{Account: "bab", App: "shop", Host: "shop.example.com", Channel: "canary/test", Hibernate: &hibernate, CreatedAt: time.Unix(1, 0)}
+ r.rt = provision.RouteFor(rec, t.TempDir(), "", true, nil)
+ if r.rt.Stateless || r.rt.ActivatorOwned() {
+ t.Fatal("fresh binary already activator-owned")
+ }
+ r.rt.Socket = filepath.Join(t.TempDir(), "app.sock")
+ if err := reg.Upsert(r.rt); err != nil {
+ t.Fatal(err)
+ }
+ sleeper := r.rt
+ sleeper.Host, sleeper.Hibernate = "sleep.example.com", true
+ if err := reg.Upsert(sleeper); err != nil {
+ t.Fatal(err)
+ }
+ store := release.NewDirStore(t.TempDir())
+ pub, priv, err := ed25519.GenerateKey(rand.Reader)
+ if err != nil {
+ t.Fatal(err)
+ }
+ platform := runtime.GOOS + "-" + runtime.GOARCH
+ manifest := release.Manifest{App: "shop", Version: "v1", Kind: "binary", Stateless: true, Artifacts: map[string]release.Artifact{platform: {File: "shop"}}}
+ ctx := context.Background()
+ if err := release.Ship(ctx, store, "bab", manifest, map[string][]byte{platform: []byte("binary")}); err != nil {
+ t.Fatal(err)
+ }
+ if err := release.Promote(ctx, store, priv, "bab", "shop", "canary/test", "v1"); err != nil {
+ t.Fatal(err)
+ }
+ opt := t.TempDir()
+ if err := release.Pass(ctx, reg, store, pub, opt, nil); err != nil {
+ t.Fatal(err)
+ }
+ fresh, err := reg.Get(r.rt.Host)
+ if err != nil || fresh == nil {
+ t.Fatalf("staged row: %v %v", fresh, err)
+ }
+ r.rt = *fresh
+ if !r.rt.Stateless || !r.rt.Resident() || r.rt.ServingVersion != "" {
+ t.Fatalf("staging did not seed residency alone: %+v", r.rt)
+ }
+ selection, err := release.CanonicalRuntimeSelection(ctx, store, "bab", "shop", "v1", release.VersionPath(opt, "bab", "v1", "shop"), true)
+ if err != nil {
+ t.Fatal(err)
+ }
+ r.setPlan(WakePlan{Boot: selection.Identity, Mode: ModeHold, Declarations: []release.RuntimeSelection{selection}})
+ r.a.Routes, r.a.residentLister = reg, reg
+ r.a.residentJitter = func() float64 { return 0 }
+ startResident(t, r.a, r.rt.Host)
+ if r.a.hasEntry(sleeper.Host) {
+ t.Fatal("resident tick woke hibernating binary")
+ }
+ r.a.awakeEntry(r.rt.Host).proc.(*fakeProc).exit()
+ r.a.rootfsTick()
+ waitFor(t, "binary stopped", func() bool { return !r.a.hasEntry(r.rt.Host) })
+ delay := retryIn(r.a, r.clk, r.rt.Host)
+ if delay <= 0 {
+ t.Fatal("crash had no backoff")
+ }
+ tickSettled(t, r.a)
+ if r.a.hasEntry(r.rt.Host) {
+ t.Fatal("restarted during backoff")
+ }
+ r.clk.advance(delay)
+ startResident(t, r.a, r.rt.Host)
+ starts, acquireCalls, requests := len(r.b.started()), r.b.acquireCount(), 0
+ // TestStatelessBinaryResidentRestarts
+ if starts != 2 || acquireCalls != 0 || requests != 0 {
+ t.Fatal("binary residency required traffic or a lease")
+ }
+ if r.a.hasEntry(sleeper.Host) {
+ t.Fatal("resident probe woke hibernating binary")
+ }
+ r.a.Shutdown(ctx)
+}
+
+type statelessCommandBackend struct {
+ *wakeRelBackend
+ commands *cmdFakeBackend
+}
+
+func (b *statelessCommandBackend) StartCmd(ctx context.Context, rt registry.Route, spec CmdSpec) (CmdUnit, error) {
+ if !rt.Stateless {
+ return nil, errors.New("command lost generation mode")
+ }
+ if err := runExecGate(ctx); err != nil {
+ return nil, err
+ }
+ return b.commands.StartCmd(ctx, rt, spec)
+}
+
+func TestStatelessRunAndInteractive(t *testing.T) {
+ for _, stop := range []string{"retire", "shutdown"} {
+ t.Run(stop, func(t *testing.T) {
+ r := newWakeRelRig(t)
+ coordinator := wireStatelessRig(r)
+ r.setPlan(WakePlan{Boot: r.good, Mode: ModeOverlap})
+ commands := &cmdFakeBackend{fakeBackend: r.b.fakeBackend, unit: &fakeCmdUnit{}, ttyUnit: &fakeCmdUnit{term: &fakeTerminal{}}}
+ r.a.backend = &statelessCommandBackend{r.b, commands}
+ if err := waitErr(t, r.wake(r.a)); err != nil {
+ t.Fatal(err)
+ }
+ denied := errors.New("authorization refused")
+ if _, err := r.a.RunCmd(context.Background(), r.rt, CmdSpec{RunID: "denied", Prepare: func(context.Context) error { return denied }}); !errors.Is(err, denied) {
+ t.Fatalf("authorization: %v", err)
+ }
+ badSession := sessionSpec("bad-session")
+ badSession.Incarnation = r.rt.Incarnation + 1
+ if _, err := r.a.RunCmd(context.Background(), r.rt, badSession); !errors.Is(err, ErrCmdIncarnation) {
+ t.Fatalf("session lifetime: %v", err)
+ }
+ run, err := r.a.RunCmd(context.Background(), r.rt, CmdSpec{RunID: "run_a"})
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer run.Release()
+ spec := sessionSpec("session_a")
+ spec.Incarnation = r.rt.Incarnation
+ session, err := r.a.RunCmd(context.Background(), r.rt, spec)
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer session.Release()
+ coordinator.held.lose(errors.New("coordinator lost"))
+ r.a.rootfsTick()
+ r.a.sweepOnce()
+ if n, _ := commands.unit.stopped(); n != 0 {
+ t.Fatal("coordination loss stopped run")
+ }
+ if n, _ := commands.ttyUnit.stopped(); n != 0 {
+ t.Fatal("coordination loss stopped session")
+ }
+ if !r.a.HoldsAwake(r.rt.Host) {
+ t.Fatal("stateless local ownership was lost")
+ }
+ commands.cmdMu.Lock()
+ starts, sessions := commands.cmdStarts, commands.ttyStarts
+ commands.cmdMu.Unlock()
+ if starts != 2 || sessions != 1 {
+ t.Fatalf("starts=%d sessions=%d", starts, sessions)
+ }
+ if stop == "retire" {
+ r.a.RetireExcept(map[string]bool{})
+ } else {
+ r.a.Shutdown(context.Background())
+ }
+ waitFor(t, "commands stopped", func() bool {
+ n, _ := commands.unit.stopped()
+ m, _ := commands.ttyUnit.stopped()
+ return n > 0 && m > 0
+ })
+ if r.a.HoldsAwake(r.rt.Host) {
+ t.Fatal("retired service still owns commands")
+ }
+ })
+ }
+}
+
+func TestStatelessWorkersFollowSwap(t *testing.T) {
+ r := newWakeRelRig(t)
+ wireStatelessRig(r)
+ workers := &fakeWorkerBackend{killBackend: &killBackend{fakeBackend: r.b.fakeBackend}}
+ r.a.backend = &statelessWakeBackend{r.b, workers}
+ for _, v := range []string{"v1", "v2"} {
+ r.b.procs[v] = map[string]release.Process{release.ProcessWeb: {Command: []string{"serve"}}, "jobs": {Command: []string{"jobs"}}}
+ }
+ r.setPlan(WakePlan{Boot: r.good, Mode: ModeOverlap})
+ ready, nextReady := make(chan struct{}), make(chan struct{})
+ r.a.genHealth = func(ctx context.Context, g Gen) error {
+ gate := ready
+ if g.Build == r.next.Version {
+ gate = nextReady
+ }
+ select {
+ case <-gate:
+ return nil
+ case <-ctx.Done():
+ return ctx.Err()
+ }
+ }
+ wake := r.wake(r.a)
+ waitFor(t, "web started", func() bool { return len(r.b.started()) == 1 })
+ r.a.rootfsTick()
+ if workers.launchCount("jobs") != 0 {
+ t.Fatal("worker started before web readiness")
+ }
+ close(ready)
+ if err := waitErr(t, wake); err != nil {
+ t.Fatal(err)
+ }
+ r.a.rootfsTick()
+ waitFor(t, "first worker", func() bool { return workers.alive() == 1 })
+ old := workers.lastWorker(t, "jobs")
+ results := make(chan SwapResult, 1)
+ go func() {
+ results <- r.a.Swap(context.Background(), Attempt{Host: r.rt.Host, Build: r.next.Version, StagedPath: r.next.StagedPath, Digest: r.next.Digest, Mode: ModeOverlap, SchedRev: 1}, func(string) uint64 { return 1 })
+ }()
+ waitFor(t, "successor web", func() bool { return len(r.b.started()) == 2 })
+ r.a.rootfsTick()
+ if workers.launchCount("jobs") != 1 || old.Exited() {
+ t.Fatal("workers moved before successor readiness")
+ }
+ close(nextReady)
+ var result SwapResult
+ select {
+ case result = <-results:
+ case <-time.After(5 * time.Second):
+ t.Fatal("swap did not finish")
+ }
+ if result.Outcome != SwapDone {
+ t.Fatalf("swap: %+v", result)
+ }
+ r.a.rootfsTick()
+ waitFor(t, "replacement worker", func() bool { return workers.launchCount("jobs") == 2 && workers.alive() == 1 })
+ if !old.Released() || workers.count("proven jobs") == 0 {
+ t.Fatal("old worker not proven stopped")
+ }
+ for range 3 {
+ r.a.rootfsTick()
+ }
+ if workers.launchCount("jobs") != 2 {
+ t.Fatal("workers switched more than once")
+ }
+}
+
+func TestStatefulLeasePathsUnchanged(t *testing.T) {
+ a, b, _, _ := testActivator(t, time.Hour)
+ rt := testRoute("shop.example.com")
+ done, err := a.beginRequest(context.Background(), rt)
+ if err != nil {
+ t.Fatal(err)
+ }
+ done()
+ acquire, restore, starts := b.counts()
+ if acquire != 1 || restore != 1 || starts != 1 || b.lastRep() == nil {
+ t.Fatalf("stateful machinery: %d %d %d", acquire, restore, starts)
+ }
+ b.lastRep().setErr(errors.New("lease renewal failed"))
+ a.sweepOnce()
+ waitFor(t, "lease loss stop", func() bool { return a.entryCount() == 0 })
+ if !b.lastProc().isStopped() || !b.lastRep().isClosed() {
+ t.Fatal("stateful lease loss did not stop and close replication")
+ }
+}
diff --git a/internal/host/stateless_singlecopy_test.go b/internal/host/stateless_singlecopy_test.go
new file mode 100644
index 000000000..e5e55ad0c
--- /dev/null
+++ b/internal/host/stateless_singlecopy_test.go
@@ -0,0 +1,92 @@
+//go:build linux
+
+package host
+
+import (
+ "context"
+ "crypto/ed25519"
+ "crypto/rand"
+ "testing"
+ "time"
+
+ "github.com/carlosframework/platform/internal/activator"
+ "github.com/carlosframework/platform/internal/instancectl"
+ "github.com/carlosframework/platform/internal/interactive"
+ "github.com/carlosframework/platform/internal/provision"
+ "github.com/carlosframework/platform/internal/registry"
+ "github.com/carlosframework/platform/internal/release"
+ "github.com/carlosframework/platform/internal/runs"
+)
+
+func TestStatelessRunAndInteractive(t *testing.T) {
+ t.Run("run", func(t *testing.T) {
+ store := release.NewDirStore(t.TempDir())
+ rec, req := pickedRun(t, store, 60)
+ handle := &fakeHandle{polls: make(chan instancectl.CmdStatus, 1)}
+ handle.polls <- instancectl.CmdStatus{State: instancectl.CmdDone, InvocationID: "inv1", Code: "exited", Status: "0", Result: "success"}
+ launcher := &fakeLauncher{handle: handle}
+ w := execWorker(t, store, launcher, "boot-1")
+ w.routes = func(host string) (*registry.Route, error) {
+ rt, _ := runOwnedRoute(runHost)(host)
+ if rt != nil {
+ rt.Stateless = true
+ rt.Hibernate = false
+ }
+ return rt, nil
+ }
+ rt, ok := w.owned(rec)
+ if !ok {
+ t.Fatal("stateless run was not owned")
+ }
+ run := newRunHandle()
+ w.active[req.ID] = run
+ w.execute(context.Background(), rec, req, rt, run)
+ result, err := runs.ReadResult(context.Background(), store, rec.Account, rec.App, req.ID)
+ if err != nil || result.Exit != 0 || launcher.started() != 1 || !handle.released || handle.stops == 0 {
+ t.Fatalf("run result=%+v err=%v starts=%d", result, err, launcher.started())
+ }
+ rec.Account = "other"
+ if _, ok := w.owned(rec); ok {
+ t.Fatal("stateless bypassed account ownership")
+ }
+ })
+ t.Run("session", func(t *testing.T) {
+ wd := newIxWorld(t)
+ rt := ixRoute(ixHost)
+ rt.Stateless = true
+ rt.Hibernate = false
+ wd.w.routes = ixRoutes(rt)
+ ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
+ defer cancel()
+ defer wd.w.shutdown(ctx)
+ _, foreign, err := ed25519.GenerateKey(rand.Reader)
+ if err != nil {
+ t.Fatal(err)
+ }
+ forged := ixRecord(ixID(t), time.Now().Add(time.Minute))
+ wd.grant(forged, foreign, nil)
+ wd.w.note(forged)
+ wd.w.pass(context.Background())
+ wd.wait()
+ if len(wd.launch.calls()) != 0 || wd.dialed.Load() != 0 {
+ t.Fatal("stateless bypassed signed grant")
+ }
+ wd.session()
+ wd.door.wantStatus(t, interactive.StateStarting)
+ wd.door.wantStatus(t, interactive.StateStarted)
+ if len(wd.launch.calls()) != 1 {
+ t.Fatal("session did not execute once")
+ }
+ wd.w.shutdown(ctx)
+ end := wd.door.wantEnd(t)
+ if end.Reason != interactive.EndInterrupted || end.Detail != activator.StopShutdown {
+ t.Fatalf("end=%+v", end)
+ }
+ if stops, releases := wd.launch.handle.stopped(); len(stops) == 0 || releases != 1 {
+ t.Fatalf("stops=%d releases=%d", len(stops), releases)
+ }
+ if _, ok := wd.w.owned(provision.Record{Host: ixHost, Account: "other", App: "shop"}); ok {
+ t.Fatal("stateless bypassed session ownership")
+ }
+ })
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 1c106a667..5c73d38fa 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -56,4 +56,4 @@ plan14-root-reads-fix-set-aside-exdev.tsv f9d3016cc6803338f9db19311f3f598e20c37c
plan14-root-reads-durability-3a-escrow.tsv 03a92257beb9b8aac421559e247d191bd69f28a0b26243397a1344a90d59fc2a
plan14-root-reads-rootfs-default-home.tsv 7a0a3da3d6fe7e3c77abb22676db000af2a276c3d13ccae0f038190f51287ed5
plan14-root-reads-probe-burst-limit.tsv 5f805400717bad7726bd9d62744b8103a40eb5f5823b0ab7c960a5c0965cb3bc
-plan14-root-reads-stateless-replicas-1.tsv 49d8b26abf726f8ed349ff191452ab1e55490ab3b906797597145c6734c34db2
+plan14-root-reads-stateless-replicas-1.tsv 2dc64e66fd1323bd90c04eecdf0be69eb9ef442cdb22f425f5513312d13d0bbc
diff --git a/internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv b/internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv
index ce8aa902f..02f92720d 100644
--- a/internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv
+++ b/internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv
@@ -1,6 +1,6 @@
# Census overlay stateless-replicas-1, written by census-propose (#369). census-ruling-stateless-replicas-1, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-stateless-replicas-1.md.
-# 27 body, 17 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 58 new dispositions: 28 reads re-frozen at their disposition with the claim, 29 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other.
+# 27 body, 18 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 61 new dispositions: 29 reads re-frozen at their disposition with the claim, 31 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other.
@legacy 8532ad0b6523e01bb6548e7a0ff565615b99e39a8921c338db522812368899a3 cli.go runShip legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-1;basis=rootfs Plan 1 Task 9: takes --rootfs, --processes, --hibernate, --jit and --check and hands a rootfs ship to runShipRootfs (ship_rootfs.go) before the binary path; the --notes-file ReadFile moved into shipNoteText (its own row, the same read of the file the person named) and the direct-mode version mint into mintDirectVersion; one read site fewer, none added; Task 12: the --hibernate flag help is RFS-1-C32's new text, the same reads;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets (repeatable), checks the folders with checkShipAssets (release.ValidAssetPaths; refused on a static site) before the mode split, carries them into the API meta (sess.shipAssets) and the direct-mode manifest (shipAssetsBlock), and passes them to runShipRootfs (rootfsShipOpts.assets), which runs the same check and carries them the same two ways; after a direct-mode ship has stored a release declaring folders, directShipAssetGens runs the console ship door's backfill (provision.MintMissingAssetGens: lists the app's record keys and gives each record without an asset generation one, a CAS write in the deployment bucket as the person running the CLI) and fails naming any record it could not mint; read sites unchanged (2), none added;rev3=census-ruling-rootfs-apps-4;basis=adds the repeatable --env flag and refuses it before anything else unless --check is given (shipEnvRefusal, parseShipCheckEnv); the parsed values go into rootfsShipOpts.checkEnv. --env values reach the check's local container runtime as -e argv only, never root, never a box. No read added; read sites unchanged (2).;rev3=census-ruling-stateless-replicas-1;basis=Carry --stateless into binary/API and rootfs ship options; same two read sites, no new read. file:ReadFile@7899,file:ReadFile@8123 d6f244d2c3bcae95eb8ec0fa7e57c52e9b50c7e9e2e00dda85f930b643731a51
@legacy 1f47559b0957d7c9358e4b2356a4bbd3047410b8894c48a1391504dea17902e4 internal/activator/activator.go Service.BeginSidecarRequest legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. 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-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O. registry:Host@259,registry:Host@333 4413ca4112799b0fd5bf3e7bb90adf9b92ef0f1efd16c6e1f4164eff24882b9a
@legacy 50d43e71d0b8c228ecca6ac62ec46cc7bdc8b07bc4150fec05874cdf5a7793ec internal/activator/activator.go Service.WakeWorker 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-remote-instance-metrics;basis=the entries-map insertion goes through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O. registry:Host@1249,registry:Host@1658,registry:Host@834,registry:Host@864,whole:Route@1225 c8f9ba372d9d1795f3bfeb40f2ac2994db92b74819f2082ef5fcb54cae5bfe98
@@ -31,6 +31,7 @@
@legacy 4c4464a8a499b9b1b96472e9055f9edd99759b7ee345875fb3c9270104849fcf internal/activator/escrow_authority.go SplitBackend.prepareStatelessEscrow legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3b round 1 I2: forward the released-deploy escrow initializer to the backend selected by existing Backing routing; refuse if unavailable. No new read or write of persistent state in the adapter. whole:Route@141,whole:Route@224 e3bf2400a7a80493430868303e6e03e8ef038655fb34fa7d8092d0b72a00cb5e
@legacy e7c73a24f3a56f6df354a3908f91399aad917fd70dc6f56ef83b839740dbb6da internal/activator/hasecrets.go ExecBackend.launchEnvLayerForMode legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: The unchanged former launchEnvLayer body under a private helper: existing HA/escrow/captured-file reads retained. The wrapper selects post-merge environment stripping for a verified stateless launch. registry:Host@252,registry:Host@506,registry:Host@651,whole:Route@161,whole:Route@301,whole:Route@342,whole:Route@378,whole:Route@415,whole:Route@556 6ce4a91ce90cd179ca8ff69a1554e6cf9643a466e42705699119f52d46fe297c
@legacy 6d1e960297f78cd109abb5310aef1af00618baf7f938c405e603d6e027ca7afa internal/activator/replicaobservation.go ObservedReplicaRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read route Account, App and Host only to match the attempt-local observation carrier; refuse absent/stateful/incomplete/mismatched evidence, return copied deploy state and canonical target. No store or filesystem read, no authority granted. registry:Account@283,registry:App@307,registry:Host@328 17cf71ccf92a913a42bef47ea461888ab0045b2ed7acabc81648e55cca322bbb
+@legacy 9fe10d96f05fbc26d2b874f47ffe1bdbb4d30ae07daf1e5d6da3c4604d8de132 internal/activator/rootfs_service.go statelessResident legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 4: classify an always-on verified stateless instance for the existing resident tick; rootfs or binary only. No I/O and hibernating rows excluded. registry:Hibernate@99,registry:Kind@57,registry:Runtime@116,registry:Stateless@82 09e165d91779c77874469994b25a6f5d301a66171b4237d518723409a2dd9bbb
@legacy bf907111a6526f31ed49ab718b90896b8f33a48ba63f26f47f3889a521e82bb9 internal/activator/rootfsrelease.go Service.runReleaseAdmitted legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing runner unchanged except optional pre-exec durable release transition after local admission and before any command; same staged process reads, stop/proof and exec gates, no new filesystem path. registry:Host@216,whole:Route@3085,whole:Route@3314,whole:Route@3802,whole:Route@3831,whole:Route@5879,whole:Route@621,whole:Route@6347,whole:Route@6624,whole:Route@7054,whole:Route@849,whole:Route@934 de8d9d6b31ac2b8cf2c34aaca32ecfbdd2c8966f75def906e3baef5bb409d109
@legacy 6a423a989d2fb621dfe97d577036bb4658b12a06d0fbc05bf7f7927a9e6e5c92 internal/activator/stateless.go ExecBackend.statelessLaunchEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the existing secrets/escrow launch composition, then delete CARLOS_DB; verify a supplied staged identity. No new secret writer or authority rule; 3b retains escrow ownership. whole:Route@331 3cb8d3f5af2087e92de51830e828c3a1de0c2220526b7bdc217e0bd66c996cbe
@legacy d184b95a49511bf2b2f76d8e40dc28962f6f48ffe0449179dc8af48a5d91656a internal/activator/stateless.go Service.doStatelessWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Run the selected stateless identity without Acquire, Restore, Seed, placeholder/assignment/first-boot markers or Replicate. Prove stale local processes, prepare the durable release, and gate the actual spawn on current placement/lifetime/configuration. Retain actual mode and failed-start obligations; register workers through the existing supervisor. registry:Host@2116,registry:Host@424,registry:Stateless@941,whole:Route@1034,whole:Route@1211,whole:Route@1710,whole:Route@1940,whole:Route@2177,whole:Route@2252,whole:Route@2354,whole:Route@245,whole:Route@2483,whole:Route@290,whole:Route@369,whole:Route@882 83920637ef673f1cff2357f62b09ed6d6a4203938ca44d2d5884b9326a8cf380
@@ -50,6 +51,7 @@
@legacy c97a6c678604ecf30de5c58dfb6f017999395a331afc6f85dd7a706aa8f71f1b internal/host/agent.go replicaRecordFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3a round 1 I2: read existing in-memory reconcile snapshot for release preparation, require account/app/host match, derive RecordFacts. Missing snapshot refuses until reconciliation; fresh final record check still required. registry:App@283,registry:Host@208,whole:Route@265 d7e2210647a05add1e7cf815a0cb27100f4b879c5c8143eb60a196c8411204c6
@legacy 5ac6a0cde576df2085e0f23ebc876d9adc8fe592582d334ee58e38c59da704ad internal/host/agent.go storageDeclaration legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3a round 1 I3b/R18: open deploy store lazily under mutex, retain only successful opens, retry transient open failure. Stateful missing evidence falls back; stateless projection refuses. Canonical selection verifies staged digest. registry:App@629,registry:Stateless@431,registry:Stateless@664,whole:Route@624 d63e67011a951f6f10cba11c2cfed0695bfddd1f94ca9cc43691337d8b0bf200
@legacy edbf463069228bbafd3264dbb31e5a112c891f411b56438df1cbd809ccc9e824 internal/host/fleetbind.go statelessBindingPublisher.publish legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: consume the applied record and serving route already read by reconcile, check instance/account/app/assignment/status/fleet/box and exact held coordinator lifetime, then publish the existing binding key. A per-host state cache excludes expiry-only renewals and avoids unchanged binding I/O. No instance-record scan or root exec; no typed record writer added. registry:Account@273,registry:App@302,registry:Assigned@323,registry:Host@250,registry:Provisioned@208,registry:ServingVersion@1012,registry:Stateless@155,registry:Status@226 80eedea2f893c34d9e9ce3711299871fd291f339f35f17c6736df0b5abe3a3be
+@legacy 282d6973418bcdb8a339dfb6f96a1c08d21808cc6f6f31c32a283a54902f85a9 internal/registry/registry.go Registry.SeedStateless legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: transaction reads the existing local registry row and compares the entire observed row before setting only stateless=1. Accept only a fresh socket-backed instance with no installed or serving version, backing or tunnel; refuse forward rows and stale observations. No serving version claim, bucket read or filesystem path introduced. file:Exec@791,file:QueryRow@552,registry:Backing@170,registry:Host@613,registry:Host@867,registry:Kind@114,registry:ServingVersion@247,registry:Socket@145,registry:Tunnel@196,registry:Version@221,registry:remote@315,registry:remote@345,registry:sql@457,whole:Route@403,whole:Route@413,whole:Route@723,whole:Route@734,whole:remoteClient@317,whole:remoteClient@347 bed3ada221993cb1330a92dba080ab0e38da989bd23c932b379849a33eef20b9
@legacy 946d4be489d2c872cf10c7746423e31d8ece0caa7b632a5c13512ca780869536 internal/registry/registry.go Registry.SetServingMode legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: A narrow service-user SQL UPDATE projects serving_version and stateless together and excludes forward rows. Remote form dispatches to the same method; it grants no launch authority. file:Exec@247,registry:remote@114,registry:remote@84,registry:sql@247,whole:remoteClient@116,whole:remoteClient@86 15b731f3d6e5fb0d7cad3194b035624fc99d7b24d923b27bbe71d32f6fa072f3
@legacy 1861ee20fec27c99526b8095d2b82598367595db4fcdbf2bc47ba40a269ec37f internal/replicas/coordinator.go ChangeCoordinator legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Generate a fresh 128-bit coordinator term using crypto/rand.Read; no file path or process input added. file:Read@472 e50ce5a352b3022a1ee6375fbfee315a5d2fcaeb4f4a25f4e33a5a10e3000a67
@legacy 7cf61a9c73df53cead9ed723d069fb9d501537cdd0faa59b7829c038fbc20193 internal/activator/activator.go Service.startSidecar legacy accepted-legacy accepted-legacy;rev3=fix1-merge-review;basis=Uses the sidecar's own fallback after a flag decline; agent lifecycle remains legacy.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Propagate the actual parent generation storage mode to its legacy sidecar environment; preserve existing ownership, build and termination gates. registry:Host@1830,registry:Host@282,registry:Stateless@121,whole:Route@1315,whole:Route@1378,whole:Route@1777,whole:Route@1968,whole:Route@487,whole:Route@550,whole:Route@609,whole:Route@651,whole:Route@781 0cea2de8439b8a5adabfd95524f76641946c6def8a80609291514c657a8ef487
@@ -65,7 +67,7 @@
@legacy d5b707b46a9dce5745edae486772a569c0c7b1699859f37288ad8373bff581f8 internal/activator/escrow.go ExecBackend.restoreEscrowIfMissing legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: checks each escrowed file with instancefs.OpenBeneathOrAbsent beneath the row's data directory; when one is absent, hostfiles.Open of the host's manifest, ReadSealed of each missing item, and writeIfAbsent (instancefs.WriteAtomic of a temp, then RenameBetweenNoReplace, so a present file is never replaced; EnsureDirBeneath for the files directory, 0700); on a box that is not ready it refuses unless the ledger shows the host escrowed and the env file is here; the agent as carlos (carlos-edge.service), no root caller Fix round 0 (controller readiness ruling): with no files store it does nothing (logged once); with no sealing key it restores nothing: a ledger here and an env file here go on, otherwise keylessEscrowed refuses when the bucket holds an escrow and goes on as before 3a when it holds none. Fix round 1: the conflict marker first, then the mode (P2-5): no files store, nothing; no key, the preparation's keyless read before any file check. With a key, each trio file is checked with OpenBeneathOrAbsent (a link or FIFO is not missing); the bucket is read (bucketManifest, the preparation's one GET) only for a missing env file, or a missing trio file the ledger says was escrowed, or with no ledger once per agent start (P2-6); the same writes. Fix round 2: the ledger is read through ledgerFor, and while it is untrusted (its write and the stale ledger's removal both failed) a missing trio file always reads the bucket; the same reads and writes. Fix round 3: the ledger no longer decides a restore: a missing trio file reads the bucket unless this process itself saw the bucket's manifest for the host (its read or its commit, escrowState.known) without the item; the same reads and writes otherwise. Branch fix R1 P1-3: select sealed escrow against Route.Incarnation before decrypting, restoring, minting or checking divergence: lower non-zero escrow is retired in the selected view, higher refuses, equal and zero-stamped retain behavior. Publication stamps the current lifetime atomically, drops prior-lifetime cached stamps, and never treats retired escrow as a committed successor. Same storage paths; historical objects retained. Branch fix R2: remove incarnation selection and stamping per Paul's ruling; restore pre-030ce7f9 hostname-scoped escrow behavior. No read added. Same-key hostname reuse can inherit predecessor secrets; a changed key refuses. Keep the uncertain-commit and CAS-recovery read-failure refusals.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: wrap stateless restore errors with the approved shared-secrets waiting sentinel. Existing safe restore reads and writes are unchanged. registry:Host@1155,registry:Host@1273,registry:Host@1981,registry:Host@266,registry:Host@2849,registry:Host@699,registry:Host@780,registry:Host@826,registry:Host@929,registry:Stateless@137,whole:Route@1782,whole:Route@1878,whole:Route@328,whole:Route@369,whole:Route@442,whole:Route@488,whole:Route@605 84c7d7c504ec557a2610830fc1e7c478c1d2072fca8c174a24daebf51eb3523b
@legacy 38373850c0f5d2d2491679ec4eac2db579a92fbd50297009261ab792c1bb6a29 internal/activator/genbackend.go ExecBackend.StartStaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr4;basis=Census ruling zddr4: changed legacy row; the same layout switch goes through genLayout on the same row's Host, so an over-long flat host takes the existing foreign arm on its canonical socket. Boundary: agent-side, running as carlos; generation socket directories under the agent's own /run/carlos tree; no root decision; no registry, /data, release or claim read beyond what the unit read before.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: refuses an unknown runtime; a rootfs-v1 row runs the HA containment check (its refusal a rootfs refusal) and then starts through startStagedRootfs; binary rows unchanged; reads Runtime;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Host@1440,registry:Host@2243,registry:Host@763,registry:Host@818,registry:Host@940,registry:Runtime@208,registry:Socket@1351,registry:Socket@1502,registry:Socket@1609,registry:Socket@1620,registry:Stateless@103,whole:Route@1498,whole:Route@162,whole:Route@2009,whole:Route@475,whole:Route@567,whole:Route@602,whole:Route@698,whole:Route@731,whole:Route@998 a4540b06d137b9e4bbb9f1a556c23595b819b000bcc822584649ab77863b0e7b
@legacy 9212263af3576d80c9bee59f7f7a1c41235508e3bb34db88df8370991ce093d1 internal/activator/hasecrets.go ExecBackend.launchEnvLayer legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos: a launch's env and key layer: classifies the host (haHostNow; an error fails the launch), instanceEnvLayer unchanged for a non-HA host; for an HA host captureLaunchEnv once, haSecretsReady over those bytes, a test seam (haLaunchHooks.afterPublish, nil in production), and returns the env parsed from the captured bytes, never a later read; +registry:Host x3 (the error messages), +whole:Route x4;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: for a host that is not HA and is eligible for escrow, escrowedLaunchEnv (a new unit on this card) instead of instanceEnvLayer; the HA and other paths unchanged; +whole:Route x2; the agent as carlos (carlos-edge.service), no root caller;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Dispatch stateless environment composition to statelessLaunchEnv; the existing HA/escrow/file-read body moved to launchEnvLayerForMode. No new secret authority or storage source. registry:Stateless@129,whole:Route@179,whole:Route@249 e2f050571164c85352de22451144fa9b958c89b73518749626ac3f5b4df3730f
-@legacy 9b2c7e84587c1ac436bb850896ed8842f78ceaf9d13b586ff7253a54ee3eaa10 internal/activator/rootfs_service.go residentShaped legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: an instance with a runtime that does not hibernate; reads Kind, Hibernate, Runtime;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Include projected stateless binary instances in local lifecycle/residency selection. Launch still requires the selected build canonical declaration; this flag never bypasses database preparation by itself. registry:Hibernate@80,registry:Kind@54,registry:Runtime@97,registry:Stateless@117 498cd49f9495c5400db1d3d55404c0c9e7ffe91579bd562f41a28c73a117e3e2
+@legacy 78b6c502861faf89755e409d9896305a60de057b9d0f2f3b80155911299bfbe3 internal/activator/rootfs_service.go residentShaped legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: an instance with a runtime that does not hibernate; reads Kind, Hibernate, Runtime;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Include projected stateless binary instances in local lifecycle/residency selection. Launch still requires the selected build canonical declaration; this flag never bypasses database preparation by itself. Task 4: use statelessResident for binary residency; retain unknown-runtime admission refusal and hibernation exclusion. registry:Hibernate@80,registry:Kind@54,registry:Runtime@97,whole:Route@135 596f3bfe578c72521a02bf8f4ada30d5278f68f154a6f2925d67cffe23cb467a
@legacy f3252acdc459835f8bd43bd31b162081c9462415855358999c4cad765be6756a internal/activator/rootfsenv.go ExecBackend.rootfsWorkerVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, D1: a worker's launch environment is web's launch environment for the generation (the handle's LaunchEnv, the agent-owned variables as web got them), with the generation's control socket only when web's listener bound, then rootfsVars with the row's canonical socket and database path; nothing from a tenant or app is added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Socket@261,registry:Stateless@145,whole:Route@192,whole:Route@224 2a5dd1174a0c08155c5b231184531d65f66f2f8cb5145ba8dacd981921620841
@legacy 6dc14a0f3c2471052c8c30ce12fad51b5fbeb26dca35e3bc46bfbfa5fcd17c00 internal/activator/swaphold.go Service.startPinnedAt legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-wake-latency-2;basis=times record, staged start and health with time.Now() and logs them with rt.Host after a healthy start (the new registry:Host site is that log line); no read added or moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: genHealthy takes rt, so the health window is the route's runtime bound; same check;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Verify each actual pinned or fallback identity and its own canonical declaration. A mode mismatch returns to the full wake path instead of sharing another mode database setup; carry the verified selection to avoid a second canonical read. Fix 3a round 1 I2/R18: attach final record check to stateless backend launch only, and treat the pinned generation stateless bit as requiring a verified declaration. Preserve stateful gates and record ordering. registry:Host@1718,registry:Host@2560,registry:Stateless@469,registry:Stateless@498,registry:Stateless@662,whole:Route@1856,whole:Route@1920,whole:Route@2421,whole:Route@2735,whole:Route@465,whole:Route@573,whole:Route@870,whole:Route@970 fe1cf0376eb1276dcf4604942809de62c321b8af0f663c7a3cbef4caa167246e
@legacy db1df8208d98e287b9628d7138759097d0428ed39b2b2d6c96ea36b1f57a50c7 internal/host/fleetbind.go fleetBindingHook legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: stateless wake skips direct binding I/O and signals the existing reconcile full pass; stateful hook unchanged. registry:Host@341,registry:Host@521,registry:Stateless@127 f4bb473406cdac144f9c8606aa553e136d9ef5352d0388f671a5459876bd1a71
@@ -87,6 +89,7 @@
@legacy 5eac8b33b0e6034c247182f05408eef5a3111a4b374ca260a41148adbdb965d7 internal/activator/escrow.go ExecBackend.publishEscrowAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: escrowReady and the layout checked, then publishEscrowLocked under the host's lock Fix round 1: refuses while the conflict marker exists or while this box does not hold the host's lease (P1-2), before anything is read.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: replace the serving-lease-only gate with the mode-specific escrow authority gate; conflict, readiness, paths and operation lock unchanged. registry:Host@223,registry:Host@269,registry:Host@340,registry:Host@440,registry:Host@561,registry:Host@658,whole:Route@157,whole:Route@386,whole:Route@738 46104b1555879bade018485b2ae1d6542feec6381c948cc226b0bc54b80fef8c
@legacy 3f35825d26934e7e85e7ebe0cc27d86013179d4447839dcbd4bea950db3201a4 internal/activator/escrow.go ExecBackend.publishEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). Fix round 4: only a commit that wrote (the baseline's ETag moved) feeds what this process knows (learnBucket) and writes the ledger; a no-op commit on a ledger-opened publisher feeds nothing; the same reads and writes. Durability 3a Task 5: on the held baseline before staging and DropRawSecrets, noteRawSecrets(rt.Host, m). Reads only manifests this process already holds (no request, no file opened); calls the detector, which logs and calls ExecBackend.OnRawSecret; nothing else changes. The +registry:Host site is that call's argument. Branch fix R1 P1-1: every failed manifest commit drops the publisher, stamps, preparation read and bucket knowledge; the next operation opens the bucket and repeats divergence checks before staging. No new root input or read site. Branch fix R1 P1-4: a CommitRecoveryReadError from the existing CAS-recovery GET wraps errEscrowUnreadable, so the launch refuses rather than using the later-launch write-failure fallback. No new read. Branch fix R1 P1-3: select sealed escrow against Route.Incarnation before decrypting, restoring, minting or checking divergence: lower non-zero escrow is retired in the selected view, higher refuses, equal and zero-stamped retain behavior. Publication stamps the current lifetime atomically, drops prior-lifetime cached stamps, and never treats retired escrow as a committed successor. Same storage paths; historical objects retained. Branch fix R2: remove incarnation selection and stamping per Paul's ruling; restore pre-030ce7f9 hostname-scoped escrow behavior. No read added. Same-key hostname reuse can inherit predecessor secrets; a changed key refuses. Keep the uncertain-commit and CAS-recovery read-failure refusals. Branch fix R2 P1-3: delegate the existing baseline, divergence and StageSealed operations to stageEscrowReads, shared with HA. Same bucket objects and reads; lease gating, uncertain-commit state drop, and typed CAS-recovery refusal retained.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: recheck mode-specific authority before manifest commit; drop staged state on loss; preserve write-once divergence, bucket knowledge, CAS recovery and file-read protections. registry:Host@2078,registry:Host@2342,registry:Host@3307,registry:Host@4499,registry:Host@574,whole:Route@2269,whole:Route@2497,whole:Route@3347 5eee45f81032f236f3ecd86f4862e8814134f5c9a9a2aa3a79a27b473bf3d3c1
@legacy b4e1f299283f9f266dd378eb8c04d54eced70a5436a26bbd913ef4ab363559a5 internal/activator/rootfs.go ExecBackend.spawnRootfs 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 spawnUnitFrom, whose shape it has): new (rootfs Plan 2 Tasks 5 and 9): prepareKeyedAt (the instance's own directories, environment and listeners, unchanged), the schema-2 tenant launch file (environment only, CARLOS_SOCKET and CARLOS_DB set by the agent), the caller's exec gate, then StartRootfs over the control socket naming the image and web; root resolves the command from its own staged manifest (C4) and the tenant file may name no command (the trampoline refuses one); the failure handling is spawnUnitFrom's; its sites are the row's host and route; no root decision; final fix I1: root's answers that guarantee no start (ErrStartRefused: 503 not ready or claim-armed, 501 unconfigured, 400, 409, 507), like its 403, are marked a refusal (refuseRootfs), so verdictOf and classifyStep record no failure of the build and no stop is asked; a 502 and a transport failure still may have run; the same nineteen sites, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (d35fcb1f, census P1-1): takes the tier root is asked for as an argument; a zero tier means GenTier's (the former body), so a caller that chose a limit has it kept, as spawnChildFrom and spawnUnitFrom keep theirs; the same nineteen sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Host@1229,registry:Host@1402,registry:Host@1702,registry:Host@2436,registry:Host@2766,registry:Host@2893,registry:Host@304,registry:Host@3218,registry:Host@3308,registry:Host@3412,registry:Host@3885,registry:Host@3979,whole:Route@1019,whole:Route@1051,whole:Route@1796,whole:Route@2599,whole:Route@3488,whole:Route@416,whole:Route@516,whole:Route@646 041071ed7b9cb9ee993ae2191e2e0fcde08910ca02427941a6e6814c316ca14b
+@legacy be11f633875a9bd1f550b087e15c01eea8aac5735c368702b4e16bc457951a1c internal/activator/rootfs_service.go Service.rootfsTick legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: per activator tick, lists residents (Registry.ResidentInstances through the DueStore), and for each rootfs entry kills generations whose replica reports a lost lease with no watch installed, stops an exited rootfs process (StopExited), and supervises; then drops forgotten residents and reserves proactive starts (residentJob) for resident-shaped, unheld rows within the start ceiling after the locked admission;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.10: when the tick kills a lost-lease resident's generations it also starts stopRootfsWorkersAtLoss(e) beside them; superviseRootfsLocked (a no-op in Group A) is now the worker supervision; the same 15 read sites, no read added; stops more, starts nothing new on its own;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a: the no-signal fallback also covers a hibernating rootfs entry with a one-shot unit that may run (oneShotHoldsLocked); it latches ownerKilled and runs each one-shot kill func (KillOneShot to root's existing /stop) with go off a.mu, beside a resident's killResidentGens and stopRootfsWorkersAtLoss as before; new site +whole:Route is e.route.Rootfs(); stops more, starts nothing;rev3=census-ruling-stateless-replicas-1;basis=Task 4: supervise stateless binary exits through the existing StopExited, termination proof and resident backoff. Preserve rootfs lease-loss checks and worker supervision; no new polling or root path. registry:Host@1873,registry:Host@2102,registry:Host@2458,whole:Route@113,whole:Route@1231,whole:Route@1826,whole:Route@1855,whole:Route@2024,whole:Route@2055,whole:Route@2137,whole:Route@2302,whole:Route@2351,whole:Route@2496,whole:Route@397,whole:Route@436,whole:Route@834,whole:Route@855 646408ad87d9385f5f870e0cd7793a4b7121dbd9343feb208a688170676e78a6
@legacy ef6c315b6e23dd34f9b7db24aea36698e5ce35fcd828ee36afef34c43bf873b4 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;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Socket@214,whole:Route@152,whole:Route@177 35b1ae0ecefdf8fcbc115a7ac84339f0d6cbf46fe85cabe8bf0591b0ebdfd25f
@legacy ab59c2d926c26e07bd919071b7a37b051b604dec7edc6bac5031b23b62346b0f internal/activator/rootfsenv.go ExecBackend.rootfsTTYVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 8, new: a rootfs session environment: ttyVars over the generation launch environment, then rootfsVars with the row canonical socket and dbPath set after the file environment, as rootfsCmdVars does; map composition only;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Socket@218,whole:Route@154,whole:Route@179 3c5a23d82f2a88910a32276448636d98920ac820eb241e786cdb3c699ed5608a
@legacy e022f83d4f2fe0524efad7d2e7acc9cc44a0510f14016131edc162dc02242142 internal/activator/rootfsrelease.go Service.runRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R1: new; the one place a release command runs. Refuses while any record of the host is open; skips the row's good build (releaseRan); reads the declared processes (declaredProcesses: the existing staged-manifest read) and refuses on a read error, never treating it as no release; runs only when releaseDue; needs a lease watch and a ReleaseBackend; its gate is the caller's plus the lease's Err and its safety deadline more than releaseStopLead (cmdStopBound, 2 min) away; creates the record under a.mu after releaseAdmitLocked; publishes the generations file and the build state (recordBuild) before anything runs; times out at the manifest's timeout_sec (default, capped at runs.MaxTimeout); ReleaseEnv; a supervisor stops the unit ahead of the lease's safety deadline; StartRelease under the exec gate; polls the unit (root's existing cmd status); stops and settles it (the existing cmd hold's stop, cmdStopBound); only a non-zero exit, a signal or the timeout with the unit proven gone is the build's failure (*ReleaseError); registry:Host sites are the record key and log lines;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 9: newCmdHold takes the hold's role; a release command's hold is instancectl.RoleCmd, the unit it runs in; nothing else changed, no read added;rev3=census-ruling-stateless-replicas-1;basis=Delegate unchanged stateful admission and stop/proof behavior to runReleaseAdmitted with no durable admission hook; reads moved to that method. whole:Route@212 45130d20bc0a8f9dcc30908479ce0189e39ee9e68d44e95a9aa6b8e84e0bc20f
@@ -129,6 +132,7 @@ internal/activator/escrow_authority.go ExecBackend.prepareStatelessEscrow legacy
internal/activator/escrow_authority.go SplitBackend.prepareStatelessEscrow legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3b round 1 I2: forward the released-deploy escrow initializer to the backend selected by existing Backing routing; refuse if unavailable. No new read or write of persistent state in the adapter. whole:Route@141,whole:Route@224 e3bf2400a7a80493430868303e6e03e8ef038655fb34fa7d8092d0b72a00cb5e
internal/activator/hasecrets.go ExecBackend.launchEnvLayerForMode legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: The unchanged former launchEnvLayer body under a private helper: existing HA/escrow/captured-file reads retained. The wrapper selects post-merge environment stripping for a verified stateless launch. registry:Host@252,registry:Host@506,registry:Host@651,whole:Route@161,whole:Route@301,whole:Route@342,whole:Route@378,whole:Route@415,whole:Route@556 6ce4a91ce90cd179ca8ff69a1554e6cf9643a466e42705699119f52d46fe297c
internal/activator/replicaobservation.go ObservedReplicaRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read route Account, App and Host only to match the attempt-local observation carrier; refuse absent/stateful/incomplete/mismatched evidence, return copied deploy state and canonical target. No store or filesystem read, no authority granted. registry:Account@283,registry:App@307,registry:Host@328 17cf71ccf92a913a42bef47ea461888ab0045b2ed7acabc81648e55cca322bbb
+internal/activator/rootfs_service.go statelessResident legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 4: classify an always-on verified stateless instance for the existing resident tick; rootfs or binary only. No I/O and hibernating rows excluded. registry:Hibernate@99,registry:Kind@57,registry:Runtime@116,registry:Stateless@82 09e165d91779c77874469994b25a6f5d301a66171b4237d518723409a2dd9bbb
internal/activator/rootfsrelease.go Service.runReleaseAdmitted legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing runner unchanged except optional pre-exec durable release transition after local admission and before any command; same staged process reads, stop/proof and exec gates, no new filesystem path. registry:Host@216,whole:Route@3085,whole:Route@3314,whole:Route@3802,whole:Route@3831,whole:Route@5879,whole:Route@621,whole:Route@6347,whole:Route@6624,whole:Route@7054,whole:Route@849,whole:Route@934 de8d9d6b31ac2b8cf2c34aaca32ecfbdd2c8966f75def906e3baef5bb409d109
internal/activator/stateless.go ExecBackend.statelessLaunchEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the existing secrets/escrow launch composition, then delete CARLOS_DB; verify a supplied staged identity. No new secret writer or authority rule; 3b retains escrow ownership. whole:Route@331 3cb8d3f5af2087e92de51830e828c3a1de0c2220526b7bdc217e0bd66c996cbe
internal/activator/stateless.go Service.doStatelessWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Run the selected stateless identity without Acquire, Restore, Seed, placeholder/assignment/first-boot markers or Replicate. Prove stale local processes, prepare the durable release, and gate the actual spawn on current placement/lifetime/configuration. Retain actual mode and failed-start obligations; register workers through the existing supervisor. registry:Host@2116,registry:Host@424,registry:Stateless@941,whole:Route@1034,whole:Route@1211,whole:Route@1710,whole:Route@1940,whole:Route@2177,whole:Route@2252,whole:Route@2354,whole:Route@245,whole:Route@2483,whole:Route@290,whole:Route@369,whole:Route@882 83920637ef673f1cff2357f62b09ed6d6a4203938ca44d2d5884b9326a8cf380
@@ -148,6 +152,7 @@ internal/activator/wakeidentity.go Service.currentWakeRoute legacy accepted-lega
internal/host/agent.go replicaRecordFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3a round 1 I2: read existing in-memory reconcile snapshot for release preparation, require account/app/host match, derive RecordFacts. Missing snapshot refuses until reconciliation; fresh final record check still required. registry:App@283,registry:Host@208,whole:Route@265 d7e2210647a05add1e7cf815a0cb27100f4b879c5c8143eb60a196c8411204c6
internal/host/agent.go storageDeclaration legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3a round 1 I3b/R18: open deploy store lazily under mutex, retain only successful opens, retry transient open failure. Stateful missing evidence falls back; stateless projection refuses. Canonical selection verifies staged digest. registry:App@629,registry:Stateless@431,registry:Stateless@664,whole:Route@624 d63e67011a951f6f10cba11c2cfed0695bfddd1f94ca9cc43691337d8b0bf200
internal/host/fleetbind.go statelessBindingPublisher.publish legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: consume the applied record and serving route already read by reconcile, check instance/account/app/assignment/status/fleet/box and exact held coordinator lifetime, then publish the existing binding key. A per-host state cache excludes expiry-only renewals and avoids unchanged binding I/O. No instance-record scan or root exec; no typed record writer added. registry:Account@273,registry:App@302,registry:Assigned@323,registry:Host@250,registry:Provisioned@208,registry:ServingVersion@1012,registry:Stateless@155,registry:Status@226 80eedea2f893c34d9e9ce3711299871fd291f339f35f17c6736df0b5abe3a3be
+internal/registry/registry.go Registry.SeedStateless legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: transaction reads the existing local registry row and compares the entire observed row before setting only stateless=1. Accept only a fresh socket-backed instance with no installed or serving version, backing or tunnel; refuse forward rows and stale observations. No serving version claim, bucket read or filesystem path introduced. file:Exec@791,file:QueryRow@552,registry:Backing@170,registry:Host@613,registry:Host@867,registry:Kind@114,registry:ServingVersion@247,registry:Socket@145,registry:Tunnel@196,registry:Version@221,registry:remote@315,registry:remote@345,registry:sql@457,whole:Route@403,whole:Route@413,whole:Route@723,whole:Route@734,whole:remoteClient@317,whole:remoteClient@347 bed3ada221993cb1330a92dba080ab0e38da989bd23c932b379849a33eef20b9
internal/registry/registry.go Registry.SetServingMode legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: A narrow service-user SQL UPDATE projects serving_version and stateless together and excludes forward rows. Remote form dispatches to the same method; it grants no launch authority. file:Exec@247,registry:remote@114,registry:remote@84,registry:sql@247,whole:remoteClient@116,whole:remoteClient@86 15b731f3d6e5fb0d7cad3194b035624fc99d7b24d923b27bbe71d32f6fa072f3
internal/replicas/coordinator.go ChangeCoordinator legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Generate a fresh 128-bit coordinator term using crypto/rand.Read; no file path or process input added. file:Read@472 e50ce5a352b3022a1ee6375fbfee315a5d2fcaeb4f4a25f4e33a5a10e3000a67
internal/activator/activator.go Service.startSidecar legacy accepted-legacy accepted-legacy;rev3=fix1-merge-review;basis=Uses the sidecar's own fallback after a flag decline; agent lifecycle remains legacy.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Propagate the actual parent generation storage mode to its legacy sidecar environment; preserve existing ownership, build and termination gates. registry:Host@1830,registry:Host@282,registry:Stateless@121,whole:Route@1315,whole:Route@1378,whole:Route@1777,whole:Route@1968,whole:Route@487,whole:Route@550,whole:Route@609,whole:Route@651,whole:Route@781 0cea2de8439b8a5adabfd95524f76641946c6def8a80609291514c657a8ef487
@@ -163,7 +168,7 @@ internal/activator/escrow.go ExecBackend.escrowedLaunchEnv legacy accepted-legac
internal/activator/escrow.go ExecBackend.restoreEscrowIfMissing legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: checks each escrowed file with instancefs.OpenBeneathOrAbsent beneath the row's data directory; when one is absent, hostfiles.Open of the host's manifest, ReadSealed of each missing item, and writeIfAbsent (instancefs.WriteAtomic of a temp, then RenameBetweenNoReplace, so a present file is never replaced; EnsureDirBeneath for the files directory, 0700); on a box that is not ready it refuses unless the ledger shows the host escrowed and the env file is here; the agent as carlos (carlos-edge.service), no root caller Fix round 0 (controller readiness ruling): with no files store it does nothing (logged once); with no sealing key it restores nothing: a ledger here and an env file here go on, otherwise keylessEscrowed refuses when the bucket holds an escrow and goes on as before 3a when it holds none. Fix round 1: the conflict marker first, then the mode (P2-5): no files store, nothing; no key, the preparation's keyless read before any file check. With a key, each trio file is checked with OpenBeneathOrAbsent (a link or FIFO is not missing); the bucket is read (bucketManifest, the preparation's one GET) only for a missing env file, or a missing trio file the ledger says was escrowed, or with no ledger once per agent start (P2-6); the same writes. Fix round 2: the ledger is read through ledgerFor, and while it is untrusted (its write and the stale ledger's removal both failed) a missing trio file always reads the bucket; the same reads and writes. Fix round 3: the ledger no longer decides a restore: a missing trio file reads the bucket unless this process itself saw the bucket's manifest for the host (its read or its commit, escrowState.known) without the item; the same reads and writes otherwise. Branch fix R1 P1-3: select sealed escrow against Route.Incarnation before decrypting, restoring, minting or checking divergence: lower non-zero escrow is retired in the selected view, higher refuses, equal and zero-stamped retain behavior. Publication stamps the current lifetime atomically, drops prior-lifetime cached stamps, and never treats retired escrow as a committed successor. Same storage paths; historical objects retained. Branch fix R2: remove incarnation selection and stamping per Paul's ruling; restore pre-030ce7f9 hostname-scoped escrow behavior. No read added. Same-key hostname reuse can inherit predecessor secrets; a changed key refuses. Keep the uncertain-commit and CAS-recovery read-failure refusals.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: wrap stateless restore errors with the approved shared-secrets waiting sentinel. Existing safe restore reads and writes are unchanged. registry:Host@1155,registry:Host@1273,registry:Host@1981,registry:Host@266,registry:Host@2849,registry:Host@699,registry:Host@780,registry:Host@826,registry:Host@929,registry:Stateless@137,whole:Route@1782,whole:Route@1878,whole:Route@328,whole:Route@369,whole:Route@442,whole:Route@488,whole:Route@605 84c7d7c504ec557a2610830fc1e7c478c1d2072fca8c174a24daebf51eb3523b
internal/activator/genbackend.go ExecBackend.StartStaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr4;basis=Census ruling zddr4: changed legacy row; the same layout switch goes through genLayout on the same row's Host, so an over-long flat host takes the existing foreign arm on its canonical socket. Boundary: agent-side, running as carlos; generation socket directories under the agent's own /run/carlos tree; no root decision; no registry, /data, release or claim read beyond what the unit read before.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: haSpawnGate(rt) first (+whole:Route); otherwise unchanged; only adds a refusal;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: refuses an unknown runtime; a rootfs-v1 row runs the HA containment check (its refusal a rootfs refusal) and then starts through startStagedRootfs; binary rows unchanged; reads Runtime;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Host@1440,registry:Host@2243,registry:Host@763,registry:Host@818,registry:Host@940,registry:Runtime@208,registry:Socket@1351,registry:Socket@1502,registry:Socket@1609,registry:Socket@1620,registry:Stateless@103,whole:Route@1498,whole:Route@162,whole:Route@2009,whole:Route@475,whole:Route@567,whole:Route@602,whole:Route@698,whole:Route@731,whole:Route@998 a4540b06d137b9e4bbb9f1a556c23595b819b000bcc822584649ab77863b0e7b
internal/activator/hasecrets.go ExecBackend.launchEnvLayer legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new (final fix F2), the agent as carlos: a launch's env and key layer: classifies the host (haHostNow; an error fails the launch), instanceEnvLayer unchanged for a non-HA host; for an HA host captureLaunchEnv once, haSecretsReady over those bytes, a test seam (haLaunchHooks.afterPublish, nil in production), and returns the env parsed from the captured bytes, never a later read; +registry:Host x3 (the error messages), +whole:Route x4;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: for a host that is not HA and is eligible for escrow, escrowedLaunchEnv (a new unit on this card) instead of instanceEnvLayer; the HA and other paths unchanged; +whole:Route x2; the agent as carlos (carlos-edge.service), no root caller;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Dispatch stateless environment composition to statelessLaunchEnv; the existing HA/escrow/file-read body moved to launchEnvLayerForMode. No new secret authority or storage source. registry:Stateless@129,whole:Route@179,whole:Route@249 e2f050571164c85352de22451144fa9b958c89b73518749626ac3f5b4df3730f
-internal/activator/rootfs_service.go residentShaped legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: an instance with a runtime that does not hibernate; reads Kind, Hibernate, Runtime;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Include projected stateless binary instances in local lifecycle/residency selection. Launch still requires the selected build canonical declaration; this flag never bypasses database preparation by itself. registry:Hibernate@80,registry:Kind@54,registry:Runtime@97,registry:Stateless@117 498cd49f9495c5400db1d3d55404c0c9e7ffe91579bd562f41a28c73a117e3e2
+internal/activator/rootfs_service.go residentShaped legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: an instance with a runtime that does not hibernate; reads Kind, Hibernate, Runtime;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Include projected stateless binary instances in local lifecycle/residency selection. Launch still requires the selected build canonical declaration; this flag never bypasses database preparation by itself. Task 4: use statelessResident for binary residency; retain unknown-runtime admission refusal and hibernation exclusion. registry:Hibernate@80,registry:Kind@54,registry:Runtime@97,whole:Route@135 596f3bfe578c72521a02bf8f4ada30d5278f68f154a6f2925d67cffe23cb467a
internal/activator/rootfsenv.go ExecBackend.rootfsWorkerVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, D1: a worker's launch environment is web's launch environment for the generation (the handle's LaunchEnv, the agent-owned variables as web got them), with the generation's control socket only when web's listener bound, then rootfsVars with the row's canonical socket and database path; nothing from a tenant or app is added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Socket@261,registry:Stateless@145,whole:Route@192,whole:Route@224 2a5dd1174a0c08155c5b231184531d65f66f2f8cb5145ba8dacd981921620841
internal/activator/swaphold.go Service.startPinnedAt legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-wake-latency-2;basis=times record, staged start and health with time.Now() and logs them with rt.Host after a healthy start (the new registry:Host site is that log line); no read added or moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 N1: genHealthy takes rt, so the health window is the route's runtime bound; same check;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Verify each actual pinned or fallback identity and its own canonical declaration. A mode mismatch returns to the full wake path instead of sharing another mode database setup; carry the verified selection to avoid a second canonical read. Fix 3a round 1 I2/R18: attach final record check to stateless backend launch only, and treat the pinned generation stateless bit as requiring a verified declaration. Preserve stateful gates and record ordering. registry:Host@1718,registry:Host@2560,registry:Stateless@469,registry:Stateless@498,registry:Stateless@662,whole:Route@1856,whole:Route@1920,whole:Route@2421,whole:Route@2735,whole:Route@465,whole:Route@573,whole:Route@870,whole:Route@970 fe1cf0376eb1276dcf4604942809de62c321b8af0f663c7a3cbef4caa167246e
internal/host/fleetbind.go fleetBindingHook legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: stateless wake skips direct binding I/O and signals the existing reconcile full pass; stateful hook unchanged. registry:Host@341,registry:Host@521,registry:Stateless@127 f4bb473406cdac144f9c8606aa553e136d9ef5352d0388f671a5459876bd1a71
@@ -178,6 +183,7 @@ internal/registry/registry.go routeArgs authority E3 rev3=census-ruling-seeded-i
internal/registry/registry.go scanRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the two new columns scanned;rev3=census-ruling-design-edge-rate-limit-358;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the rate_limit column scanned into Route.RateLimit; the new kind is registry:RateLimit, one site; no other read;rev3=census-ruling-rootfs-apps-2;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=main's body with the runtime column scanned into Route.Runtime, before rate_limit; the new kind is registry:Runtime, one site; no other read; re-digested at the merge of origin/main 3c33f2eb: main's assets_off and asset_gen (edge asset cache plan 1) scanned beside runtime and rate_limit; routeColCount 59; re-digested again at the merge of origin/main 953b9fda: main's incarnation and serving_seq (self-serve moves plan 1) scanned after asset_gen; routeColCount 61;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=#328/#329 plan 1 Task 4: main's body with egress_allow, size and policy_expires_at scanned into Route.EgressAllow, Route.Size and Route.PolicyExpiresAt after serving_seq; the new kinds are registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each; routeColCount 64; no other read;rev3=census-ruling-region-ha-p1a;basis=scans one more column, ha, into Route.HA (+registry:HA); routeColCount 64 to 65; keeps legacy;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 5): scans three more columns, fleet_assigned, fleet_moved and fleet_label, into Route.Assigned, Moved and FleetLabel. Any root caller of Registry.Get sees three more fields, which no root decision reads (grep: only the activator start rule, edge, provision and registry read them).;rev3=census-ruling-stateless-replicas-1;basis=Decode the additive stateless registry column; no launch authority. registry:Account@426,registry:Addr@194,registry:Addrs@516,registry:App@269,registry:Args@575,registry:AssetGen@885,registry:AssetsOff@1097,registry:Assigned@981,registry:Backing@351,registry:BuildState@800,registry:Canary@1151,registry:Caps@456,registry:CertExpiresAt@408,registry:Channel@299,registry:ClaimIncarnation@637,registry:ClaimOwner@673,registry:ClaimRowID@688,registry:ClaimStamp@658,registry:CreatedAt@559,registry:DBPath@230,registry:DNSCheckedAt@391,registry:DNSStatus@377,registry:EgressAllow@931,registry:Environment@440,registry:FleetBox@501,registry:FleetLabel@1002,registry:Gate@550,registry:GoodDemand@747,registry:GoodDigest@732,registry:GoodVersion@716,registry:HA@1059,registry:Health@526,registry:Hibernate@1127,registry:HoldOp@703,registry:Host@156,registry:IdleSeconds@584,registry:ImportGate@832,registry:Incarnation@898,registry:Kind@174,registry:LastError@216,registry:MaxRunSeconds@600,registry:Moved@1075,registry:NextDue@339,registry:Platform@1197,registry:PolicyExpiresAt@956,registry:Pool@277,registry:PrevVersion@253,registry:Provisioned@1221,registry:RateLimit@859,registry:Region@288,registry:Replica@1248,registry:Replicas@618,registry:Replication@323,registry:Runtime@847,registry:Seed@483,registry:SeedSource@817,registry:ServingSeq@914,registry:ServingVersion@762,registry:Size@947,registry:Slug@165,registry:Socket@183,registry:Stateless@1029,registry:Status@203,registry:StatusNamed@1172,registry:Steering@537,registry:Tunnel@465,registry:Unit@492,registry:UpdateSettings@781,registry:Version@241,whole:Route@1277 9d963b1c26c40211fbca564fcfcb3da8c077c6b09902f6f8eae75b8c9e255bc2
internal/registry/runtime.go Route.ActivatorOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator manages this instance: it hibernates or has any runtime; reads Kind, Hibernate, Runtime;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Include projected stateless binary instances in local lifecycle/residency selection. Launch still requires the selected build canonical declaration; this flag never bypasses database preparation by itself. registry:Hibernate@72,registry:Kind@47,registry:Runtime@87,registry:Stateless@106 3dbd1801c0a3c370a249b9108c2f56c6ef716ad482207245cbf1130ad5351d2b
internal/registry/runtime.go Route.Resident legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: an always-on rootfs instance (an instance with runtime rootfs-v1 that does not hibernate); reads Kind, Runtime, Hibernate;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Include projected stateless binary instances in local lifecycle/residency selection. Launch still requires the selected build canonical declaration; this flag never bypasses database preparation by itself. registry:Hibernate@118,registry:Kind@41,registry:Runtime@81,registry:Stateless@100 4d9d7df1e8cb21f72ee403391e29bbd1839f29cc8d259557f2ff02dbe20faa8d
+internal/release/adopt.go adoptHost authority B3,E1,E2,E3,E4,J1 E16: root first-registration creation evidence under release exclusion; exact installation identity is required for first-program adoption and is consumed before an attempt. Installed-program history comes from the verified claim launch. Fixtures: TestPlan14FreshInstallRegistration, TestPlan14FreshInstallProgramGate, TestPlan14FreshInstallCanonicalIdentity, TestPlan14FreshInstallLaunchObservation, TestPlan14InstalledLaunchProgramEvidence, TestPlan14FreshInstallProcessCrash, TestPlan14FreshInstallVisibleSync, TestClaimControlUnitInstallers. E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=applies root settings to canonically resolved routes including named units while legacy settings eligibility remains unchanged;rev3=PROPOSED-p3;run=16;basis=P3-R11 approved punctuation edit only; authority and reads unchanged;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=a non-root agent pass hands a route its named unit serves (unitServed) to root through the stage relay before staging or repointing; root adopt reads unchanged;rev3=census-ruling-rootfs-apps-2;identity=the root adopt pass (carlos adopt, carlos-adopt.service, root);basis=the row's runtime (Runtime) rides on a copy of the stage check, so stageFrom stages only the kind the row runs (runtimeMatches) before any download, and the manifest the pass ends up holding is checked again; the artifact sha comes from Manifest.BoxArtifact (the rootfs key for an image); the new kind is registry:Runtime, two sites, and one more Host site in the refusal's line. A runtime the agent forges can make the pass refuse a release, and can also admit a rootfs release to staging for a row it marks rootfs. The evidence paths that can then hand back a staged identity, exhaustively: (1) the signed channel pointer with a manifest digest (ensureStagedDigest, then stageFrom: a fresh download or the staged copy reused); (2) a signed pointer with no digest (the digest marker off), through ensureStagedChecked: with the manifest fetched, stageFrom as in (1); with the fetch failing, a binary's sibling on disk is handed back as before, and a rootfs sibling is refused (controller ruling R-a, task 11 fix E5); (3) a signed promotion record's manifest digest (stageAuthorized, then ensureStagedDigest and stageFrom); (4) retained-copy recovery when (3) fails (stageAuthorized, RetainedStaged: the copy's bytes must hash to its sibling's digest). For a rootfs version every path that hands back an identity yields a sibling byte-equal to the manifest just authorised: stageFrom reads the sibling back after a fresh stage or a reuse and refuses otherwise; (2)'s fallback never yields one; recovery refuses a sibling whose bytes do not hash to the digest a readable record names (retainedRootfsAuthorised, task 11 fix E1), and with no record readable takes the copy root itself verified, as for a binary. Every path is for the row's own account and app. The held stage (materializeheld.go) and signedhead.go stage through ensureStagedDigest with a zero stage check (a binary row's), so they never stage a rootfs release, and their no-digest fallback refuses a rootfs sibling too;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: reuse the manifest verified by existing staging and signed selection; within withReleaseWork after history, proof and staging gates, seed only a fresh stateless exec instance before PointLive. All existing root admission, credentials, quotas, proof, restart and rollback checks retained; no additional manifest or bucket read. registry:App@11547,registry:App@11701,registry:App@13055,registry:App@13981,registry:App@15579,registry:App@21034,registry:App@26510,registry:App@3144,registry:App@34290,registry:App@6758,registry:App@8059,registry:App@8253,registry:Backing@20791,registry:Hibernate@35265,registry:Host@10484,registry:Host@11427,registry:Host@11460,registry:Host@11560,registry:Host@11714,registry:Host@11810,registry:Host@11842,registry:Host@11907,registry:Host@12357,registry:Host@12697,registry:Host@12821,registry:Host@13268,registry:Host@13377,registry:Host@13579,registry:Host@14071,registry:Host@14857,registry:Host@15332,registry:Host@15565,registry:Host@15907,registry:Host@16542,registry:Host@20250,registry:Host@20358,registry:Host@21002,registry:Host@2105,registry:Host@21822,registry:Host@21980,registry:Host@22442,registry:Host@22494,registry:Host@22641,registry:Host@22728,registry:Host@2294,registry:Host@2375,registry:Host@23834,registry:Host@24078,registry:Host@24738,registry:Host@25123,registry:Host@25264,registry:Host@26478,registry:Host@26605,registry:Host@27947,registry:Host@28597,registry:Host@3157,registry:Host@31830,registry:Host@32448,registry:Host@32773,registry:Host@32847,registry:Host@33094,registry:Host@33245,registry:Host@34462,registry:Host@34629,registry:Host@34736,registry:Host@34964,registry:Host@35107,registry:Host@35966,registry:Host@36092,registry:Host@36180,registry:Host@4469,registry:Host@4583,registry:Host@5546,registry:Host@5651,registry:Host@6870,registry:Host@6918,registry:Host@7035,registry:Host@7067,registry:Host@7945,registry:Host@8113,registry:Host@8239,registry:Host@8358,registry:Host@8836,registry:Host@9223,registry:Host@9449,registry:Host@9545,registry:Host@9636,registry:Kind@20747,registry:Kind@554,registry:Runtime@11211,registry:Runtime@12615,registry:ServingVersion@20850,registry:Socket@20772,registry:Stateless@20731,registry:Stateless@20948,registry:Tunnel@20811,registry:Unit@32993,registry:Unit@579,registry:Version@20830,whole:Route@10073,whole:Route@10427,whole:Route@11542,whole:Route@11696,whole:Route@13045,whole:Route@13971,whole:Route@15547,whole:Route@16112,whole:Route@16518,whole:Route@17718,whole:Route@18021,whole:Route@18177,whole:Route@20507,whole:Route@20651,whole:Route@20907,whole:Route@21024,whole:Route@2206,whole:Route@23563,whole:Route@23962,whole:Route@26500,whole:Route@3139,whole:Route@31401,whole:Route@34438,whole:Route@3595,whole:Route@4347,whole:Route@6753 add804300a72fb39eb2a074b8ec4bacaf8e6650af54ac99a6259045061ad6630
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;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R3: (1) refuses (errWakeUnproven) while another entry's release record of the host is open; (2) a rootfs row with a plan or a pin reads its declared processes before the lease (declaredProcesses(rt, g): the existing staged-manifest read of ExecBackend.Processes, the manifest root's staging wrote, checked against the identity's path and digest) and refuses before Acquire on an error; (3) the staged-identity start runs releaseInWake(ctx, e, rt, id, lease) before startGenExe, under this wake's lease, and a release that did not pass fails the wake; (4) a rootfs row with no plan, no pin and no staged identity is refused, the lease given back, nothing started; (5) a start error whose release is not proven stopped hands the lease to the release record (oweWakeLeaseToRelease) instead of giving it back. New sites +whole:Route x2 (rt to declaredProcesses and releaseInWake); no new file read beyond the existing staged-manifest read; binary rows unchanged;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: step 7 no longer calls rootfsProcessesHook (log only); it calls declareRootfsWorkers(e, rt, w), which registers the workers the wake's generation declares as pending and starts nothing (the resident tick starts them once the entry is awake under its lease watch); a worker is never a failure of the wake; the read of the declaration is the existing staged-manifest read (see registerRootfsWorkers); the same read sites in this body, no new read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: a successful acquire drops the host's holder-cache entry; same reads;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1 and the controller ruling after it): after the lease, doWake asks routeCurrentUnderLease(ctx, rt, e.worker) (the +whole:Route site), which re-reads the host's row from the box's own registry and, for a labelled row on a fleet box, reads the instance record once; a row that is not this box's and current gives the lease back and refuses the wake, nothing restored or started. Its checks up to the spawn ask wakeGoesOn(e), which adds the entry's in-memory retired mark (set by RetireExcept) to the fence test. Task 6a's awake record call is removed. Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Keep the original entrypoint at its existing census path. Run doWakeOnce, and retry a selected fallback only after the failed generation is proven stopped, no release or stray obligation remains, and a stateful lease was returned. Carry the fallback canonical selection and original outcome metadata. whole:Route@423 942fe545a6b3bcd1f3dfc5469e8e6ef2850766046ab151f748075bfbc44feff2
internal/activator/backend_exec.go ExecBackend.LiveIdentity legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-stateless-replicas-1;basis=Fix 3a round 2 N3: resolve the same live-link chain and hash the captured path with the existing agent digest cache; later VerifyStaged calls reuse that digest for an unchanged settled file. Existing settle window, file-identity invalidation and root uncached verification stay intact. Host is read again only to retain the hash error context. No new path or exec authority. CI fix 1: assign the cached hash to a local, check its error, then set Digest. Same hash, error and returned identity; no new read. registry:Host@142,registry:Host@253,registry:Host@335,registry:Host@490 e52059b30d12e06b5985f051e5312fb256c023a7d92a1b16fe5f13ff4bb48d2f
internal/activator/backend_exec.go ExecBackend.StartWorkerStaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. file:Command@3507,registry:Args@227,registry:Args@378,registry:Host@1388,registry:Host@2610,registry:Host@3646,registry:Host@369,registry:Host@4532,registry:Host@473,registry:Host@589,registry:Host@685,whole:Route@1148,whole:Route@1692,whole:Route@2238,whole:Route@3459,whole:Route@3577,whole:Route@3607,whole:Route@4373,whole:Route@4463 064ad933d522ffbbf1cb335abafc545af7f81ee7b30a905425de32ca9a882aa2
@@ -187,21 +193,22 @@ internal/activator/escrow.go ExecBackend.EscrowSweep legacy accepted-legacy acce
internal/activator/escrow.go ExecBackend.publishEscrowAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: escrowReady and the layout checked, then publishEscrowLocked under the host's lock Fix round 1: refuses while the conflict marker exists or while this box does not hold the host's lease (P1-2), before anything is read.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: replace the serving-lease-only gate with the mode-specific escrow authority gate; conflict, readiness, paths and operation lock unchanged. registry:Host@223,registry:Host@269,registry:Host@340,registry:Host@440,registry:Host@561,registry:Host@658,whole:Route@157,whole:Route@386,whole:Route@738 46104b1555879bade018485b2ae1d6542feec6381c948cc226b0bc54b80fef8c
internal/activator/escrow.go ExecBackend.publishEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). Fix round 4: only a commit that wrote (the baseline's ETag moved) feeds what this process knows (learnBucket) and writes the ledger; a no-op commit on a ledger-opened publisher feeds nothing; the same reads and writes. Durability 3a Task 5: on the held baseline before staging and DropRawSecrets, noteRawSecrets(rt.Host, m). Reads only manifests this process already holds (no request, no file opened); calls the detector, which logs and calls ExecBackend.OnRawSecret; nothing else changes. The +registry:Host site is that call's argument. Branch fix R1 P1-1: every failed manifest commit drops the publisher, stamps, preparation read and bucket knowledge; the next operation opens the bucket and repeats divergence checks before staging. No new root input or read site. Branch fix R1 P1-4: a CommitRecoveryReadError from the existing CAS-recovery GET wraps errEscrowUnreadable, so the launch refuses rather than using the later-launch write-failure fallback. No new read. Branch fix R1 P1-3: select sealed escrow against Route.Incarnation before decrypting, restoring, minting or checking divergence: lower non-zero escrow is retired in the selected view, higher refuses, equal and zero-stamped retain behavior. Publication stamps the current lifetime atomically, drops prior-lifetime cached stamps, and never treats retired escrow as a committed successor. Same storage paths; historical objects retained. Branch fix R2: remove incarnation selection and stamping per Paul's ruling; restore pre-030ce7f9 hostname-scoped escrow behavior. No read added. Same-key hostname reuse can inherit predecessor secrets; a changed key refuses. Keep the uncertain-commit and CAS-recovery read-failure refusals. Branch fix R2 P1-3: delegate the existing baseline, divergence and StageSealed operations to stageEscrowReads, shared with HA. Same bucket objects and reads; lease gating, uncertain-commit state drop, and typed CAS-recovery refusal retained.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: recheck mode-specific authority before manifest commit; drop staged state on loss; preserve write-once divergence, bucket knowledge, CAS recovery and file-read protections. registry:Host@2078,registry:Host@2342,registry:Host@3307,registry:Host@4499,registry:Host@574,whole:Route@2269,whole:Route@2497,whole:Route@3347 5eee45f81032f236f3ecd86f4862e8814134f5c9a9a2aa3a79a27b473bf3d3c1
internal/activator/rootfs.go ExecBackend.spawnRootfs 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 spawnUnitFrom, whose shape it has): new (rootfs Plan 2 Tasks 5 and 9): prepareKeyedAt (the instance's own directories, environment and listeners, unchanged), the schema-2 tenant launch file (environment only, CARLOS_SOCKET and CARLOS_DB set by the agent), the caller's exec gate, then StartRootfs over the control socket naming the image and web; root resolves the command from its own staged manifest (C4) and the tenant file may name no command (the trampoline refuses one); the failure handling is spawnUnitFrom's; its sites are the row's host and route; no root decision; final fix I1: root's answers that guarantee no start (ErrStartRefused: 503 not ready or claim-armed, 501 unconfigured, 400, 409, 507), like its 403, are marked a refusal (refuseRootfs), so verdictOf and classifyStep record no failure of the build and no stop is asked; a 502 and a transport failure still may have run; the same nineteen sites, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (d35fcb1f, census P1-1): takes the tier root is asked for as an argument; a zero tier means GenTier's (the former body), so a caller that chose a limit has it kept, as spawnChildFrom and spawnUnitFrom keep theirs; the same nineteen sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Host@1229,registry:Host@1402,registry:Host@1702,registry:Host@2436,registry:Host@2766,registry:Host@2893,registry:Host@304,registry:Host@3218,registry:Host@3308,registry:Host@3412,registry:Host@3885,registry:Host@3979,whole:Route@1019,whole:Route@1051,whole:Route@1796,whole:Route@2599,whole:Route@3488,whole:Route@416,whole:Route@516,whole:Route@646 041071ed7b9cb9ee993ae2191e2e0fcde08910ca02427941a6e6814c316ca14b
+internal/activator/rootfs_service.go Service.rootfsTick legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: per activator tick, lists residents (Registry.ResidentInstances through the DueStore), and for each rootfs entry kills generations whose replica reports a lost lease with no watch installed, stops an exited rootfs process (StopExited), and supervises; then drops forgotten residents and reserves proactive starts (residentJob) for resident-shaped, unheld rows within the start ceiling after the locked admission;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.10: when the tick kills a lost-lease resident's generations it also starts stopRootfsWorkersAtLoss(e) beside them; superviseRootfsLocked (a no-op in Group A) is now the worker supervision; the same 15 read sites, no read added; stops more, starts nothing new on its own;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a: the no-signal fallback also covers a hibernating rootfs entry with a one-shot unit that may run (oneShotHoldsLocked); it latches ownerKilled and runs each one-shot kill func (KillOneShot to root's existing /stop) with go off a.mu, beside a resident's killResidentGens and stopRootfsWorkersAtLoss as before; new site +whole:Route is e.route.Rootfs(); stops more, starts nothing;rev3=census-ruling-stateless-replicas-1;basis=Task 4: supervise stateless binary exits through the existing StopExited, termination proof and resident backoff. Preserve rootfs lease-loss checks and worker supervision; no new polling or root path. registry:Host@1873,registry:Host@2102,registry:Host@2458,whole:Route@113,whole:Route@1231,whole:Route@1826,whole:Route@1855,whole:Route@2024,whole:Route@2055,whole:Route@2137,whole:Route@2302,whole:Route@2351,whole:Route@2496,whole:Route@397,whole:Route@436,whole:Route@834,whole:Route@855 646408ad87d9385f5f870e0cd7793a4b7121dbd9343feb208a688170676e78a6
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;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Socket@214,whole:Route@152,whole:Route@177 35b1ae0ecefdf8fcbc115a7ac84339f0d6cbf46fe85cabe8bf0591b0ebdfd25f
internal/activator/rootfsenv.go ExecBackend.rootfsTTYVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 8, new: a rootfs session environment: ttyVars over the generation launch environment, then rootfsVars with the row canonical socket and dbPath set after the file environment, as rootfsCmdVars does; map composition only;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only. registry:Socket@218,whole:Route@154,whole:Route@179 3c5a23d82f2a88910a32276448636d98920ac820eb241e786cdb3c699ed5608a
internal/activator/rootfsrelease.go Service.runRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R1: new; the one place a release command runs. Refuses while any record of the host is open; skips the row's good build (releaseRan); reads the declared processes (declaredProcesses: the existing staged-manifest read) and refuses on a read error, never treating it as no release; runs only when releaseDue; needs a lease watch and a ReleaseBackend; its gate is the caller's plus the lease's Err and its safety deadline more than releaseStopLead (cmdStopBound, 2 min) away; creates the record under a.mu after releaseAdmitLocked; publishes the generations file and the build state (recordBuild) before anything runs; times out at the manifest's timeout_sec (default, capped at runs.MaxTimeout); ReleaseEnv; a supervisor stops the unit ahead of the lease's safety deadline; StartRelease under the exec gate; polls the unit (root's existing cmd status); stops and settles it (the existing cmd hold's stop, cmdStopBound); only a non-zero exit, a signal or the timeout with the unit proven gone is the build's failure (*ReleaseError); registry:Host sites are the record key and log lines;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 9: newCmdHold takes the hold's role; a release command's hold is instancectl.RoleCmd, the unit it runs in; nothing else changed, no read added;rev3=census-ruling-stateless-replicas-1;basis=Delegate unchanged stateful admission and stop/proof behavior to runReleaseAdmitted with no durable admission hook; reads moved to that method. whole:Route@212 45130d20bc0a8f9dcc30908479ce0189e39ee9e68d44e95a9aa6b8e84e0bc20f
internal/activator/swap.go Service.spawnSuccessor legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry verified target mode on the actual generation and add the stateless current-record gate at the real launch boundary; preserve the existing lifecycle, publication and placement gates. Fix 3a round 1 I2: attach single final record check on stateless overlap spawn; repeated surrounding gates remain registry/observation-only, preserving local ownership checks. registry:Host@949,whole:Route@1056,whole:Route@1122,whole:Route@328,whole:Route@451,whole:Route@546,whole:Route@563,whole:Route@610 b49a0c053322869503e7ffeb5506859a114186566eaa6c2d5f62dcb34e359a17
internal/activator/wakeidentity.go Service.routeCurrentUnderLease legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-1b;basis=new (controller ruling after branch review R1, and Paul's R2 ruling): doWake's one decision under the lease of whether rt is still this box's route and current: the box registry's row (a.Routes.Get) checked by leaseRouteChanged; then, only for a labelled row (rt.Assigned set), by the box's fleet state a.Fleet: not on a fleet, nothing more; on a fleet with a known label, one record read that must name the label at rt.Assigned (an unreadable record or a nil reader refuses, errRecordUnreadUnderLease); on a fleet with an invalid identity, or any other state, a refusal naming the identity error (errFleetIdentityUnknown). Answers an error or nil; writes nothing. Agent, not root; it only refuses.;rev3=census-ruling-stateless-replicas-1;basis=Delegate the existing placement and record recheck to currentWakeRoute without taking an additional lease or reading records twice. whole:Route@140 da5dcd2a9471444acad7d06a79926693d03188cad4188e7c82b11478cc551330
-internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census-ruling-self-serve-moves-1;basis=the registry child (carlos __registry-child, the service user a root pass forks): plan14-root-reads-e's mixed declaration (E2 adds only the ArtifactHosts read; every other arm is the local method of the same name), with three more write arms, SetHoldIfSeq, ReleaseHoldSeq and InstallLifetimeIf, each calling the local setter; no read operation added; self-serve moves 1 Task 7;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry child (carlos __registry-child, the service user a root pass forks);basis=#328/#329 plan 1 Task 4: one more write arm, SetPolicy, calling the local Registry.SetPolicy with the request's Host, EgressAllow, Size and PolicyExpiresAt (remoteRequest fields sent by the remote handle's holder); the new kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, plus one more registry:Host site, all of the request; no read operation added; the read-only worker never reaches it (serveRemote's method gate); no production root pass sends SetPolicy;rev3=census-ruling-region-ha-p1a;basis=the registry child (carlos __registry-child, the service user a root pass forks): one more write arm, SetHA, calling the local Registry.SetHA with the request's Host (+registry:Host); no read operation added; only the provision pass sends it;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 8: two new remote methods, UpsertUnlessRootfs (carlos add's guarded write) and ResidentInstances (the residency sweep's list), each calling the same-named Registry method;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: two more methods on the existing remote registry transport, ListRegional and ReplaceRegionalSet (request field RDs, response field Regional), each calling the local method of the same name, which validates its own input; no new kind of read;rev3=census-ruling-fleet-secrets-key;basis=one new case, SetFleetSecretsKey, reading the request's Name, Pub, KeyFP, By and At fields and calling SetFleetSecretsKey;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 1-2: three new cases (SetFleetBoxIf reads the request's Fleet and answers Changed; PutForward reads TValue, a whole Route; DeleteForward reads Host and answers Changed); SetFleetBox gone (+registry:Changed x2, +registry:Fleet, +registry:Host, +registry:TValue, +whole:Route). Each case calls the local writer with its own guards.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 6b): three more remote methods dispatched to their local forms, SetFleetBoxDraining (q.Fleet, q.Label, q.At, answering Number64), MarkFleetBoxLabelled (q.Fleet, q.Label, q.At) and SetFleetAssignment (q.Host, q.Assigned, q.Moved); remoteRequest gains Assigned and Moved. The registry child, not root.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Add SetServingMode dispatch using the existing remote request Host, Ver and On fields; the same local narrow writer handles it. No new transport or root path. registry:A@7589,registry:Account@4416,registry:Accounts@3078,registry:Addr@4993,registry:Addrs@5001,registry:Alias@7637,registry:Alias@7701,registry:Alias@7789,registry:Aliases@7511,registry:Alive@9464,registry:Args@7213,registry:AssetGen@5143,registry:AssetsOff@5130,registry:Assigned@5621,registry:At@2232,registry:At@2621,registry:At@2706,registry:At@6515,registry:At@7720,registry:At@7798,registry:At@9212,registry:Attempts@9234,registry:B@2281,registry:Backing@4812,registry:BuildState@5380,registry:By@2226,registry:Changed@1996,registry:Changed@3501,registry:Changed@3588,registry:Changed@3677,registry:Changed@3748,registry:Changed@3852,registry:Changed@3939,registry:Changed@4032,registry:Changed@4114,registry:Changed@5968,registry:Changed@6105,registry:Changed@9144,registry:Channel@4476,registry:Channel@5811,registry:Channel@6360,registry:CheckedAt@6441,registry:Class@4931,registry:DoneBefore@9473,registry:Due@6914,registry:Due@6978,registry:Due@9256,registry:EgressAllow@5283,registry:Env@5879,registry:Env@6271,registry:Env@6371,registry:ExcludeHosts@8939,registry:ExcludeHosts@9034,registry:ExpectGood@6640,registry:ExpectOp@3556,registry:ExpectOp@3806,registry:ExpectPair@3986,registry:Expected@1250,registry:Expected@289,registry:Expected@762,registry:Expected@939,registry:F@1968,registry:F@2029,registry:Fleet@2054,registry:Fleet@2339,registry:Fleet@2421,registry:Fleet@2502,registry:Fleet@2603,registry:Fleet@2688,registry:Fleet@2777,registry:Fleet@6011,registry:FleetBoxes@2738,registry:Fleets@2112,registry:From@4587,registry:From@4648,registry:FromDB@4723,registry:FromOp@3644,registry:FromSock@4733,registry:Hash@5685,registry:Health@5010,registry:Host@1024,registry:Host@1135,registry:Host@272,registry:Host@3262,registry:Host@3303,registry:Host@3456,registry:Host@3532,registry:Host@3618,registry:Host@3710,registry:Host@3782,registry:Host@3888,registry:Host@3978,registry:Host@4066,registry:Host@4158,registry:Host@4408,registry:Host@4468,registry:Host@4526,registry:Host@4579,registry:Host@4640,registry:Host@4715,registry:Host@4804,registry:Host@4858,registry:Host@4923,registry:Host@4985,registry:Host@5063,registry:Host@5122,registry:Host@5210,registry:Host@5275,registry:Host@5372,registry:Host@5437,registry:Host@5498,registry:Host@5548,registry:Host@5613,registry:Host@5677,registry:Host@5738,registry:Host@5871,registry:Host@5925,registry:Host@6003,registry:Host@6140,registry:Host@6193,registry:Host@6423,registry:Host@6507,registry:Host@6564,registry:Host@6632,registry:Host@6715,registry:Host@6791,registry:Host@6851,registry:Host@6906,registry:Host@6970,registry:Host@7154,registry:Host@7205,registry:Host@7272,registry:Host@7347,registry:Host@7410,registry:Host@8007,registry:Host@8133,registry:Host@8287,registry:Host@8575,registry:Host@8639,registry:Host@8698,registry:Host@8781,registry:Host@8864,registry:Host@9095,registry:Host@9180,registry:Host@9312,registry:Host@9393,registry:Host@9556,registry:Hosts@187,registry:Hosts@3141,registry:Hosts@5802,registry:Hosts@6262,registry:Hosts@6351,registry:Id@1244,registry:Id@1555,registry:Id@1654,registry:Id@1734,registry:Id@1885,registry:IdValue@2897,registry:Idle@7280,registry:Journal@1262,registry:Journal@1561,registry:Journal@1740,registry:Journal@442,registry:Keep@9572,registry:KeyFP@2217,registry:Kind@9401,registry:Kind@9564,registry:Label@2348,registry:Label@2430,registry:Label@2511,registry:Label@2612,registry:Label@2697,registry:Label@6020,registry:Limit@8930,registry:Limit@9025,registry:MaxRun@7288,registry:Method@151,registry:Moved@5633,registry:Ms@9228,registry:Name@1032,registry:Name@1143,registry:Name@2082,registry:Name@2202,registry:Name@2916,registry:Name@8647,registry:Name@8706,registry:Name@8789,registry:Name@9103,registry:Name@9188,registry:Name@9320,registry:Next@301,registry:NextAt@9246,registry:NextGood@6654,registry:NextValue@1814,registry:NextValue@1912,registry:Now@1167,registry:Now@7481,registry:Now@8923,registry:Now@9018,registry:Now@9111,registry:Number64@2561,registry:Number64@3004,registry:Number@9361,registry:Number@9432,registry:Number@9517,registry:Observed@365,registry:ObservedValue@643,registry:Old@1807,registry:Old@1905,registry:On@6730,registry:On@6859,registry:On@7355,registry:On@7418,registry:Op@3474,registry:Op@3550,registry:Op@3718,registry:Op@3800,registry:Op@3896,registry:Op@4074,registry:Op@4166,registry:Owner@280,registry:Owner@377,registry:Owner@660,registry:P@8241,registry:Pair@3818,registry:Pair@3902,registry:Pair@4000,registry:Path@8472,registry:Paths@8169,registry:PolicyExpiresAt@5306,registry:Prefix@8295,registry:Prev@6579,registry:Pub@2210,registry:RDs@8141,registry:RateLimit@5746,registry:Regional@8039,registry:Registration@1040,registry:Registration@1151,registry:Registration@8797,registry:Registration@9196,registry:Replica@5506,registry:Replicas@5445,registry:Retirement@1891,registry:Route@3239,registry:Routes@3197,registry:Routes@4192,registry:Routes@7012,registry:Routes@7079,registry:Routes@7448,registry:Rows@8583,registry:Seed@7162,registry:Size@5298,registry:Sqid@2908,registry:Sqid@2971,registry:Sqid@3050,registry:Status@1056,registry:Status@2520,registry:Status@3464,registry:Status@3540,registry:Status@3626,registry:Status@3790,registry:Status@4534,registry:Status@6431,registry:Status@7710,registry:Status@9218,registry:Status@9328,registry:Steering@5071,registry:StringMap@2814,registry:T@757,registry:T@851,registry:T@8523,registry:T@934,registry:TValue@3344,registry:TValue@3411,registry:TValue@6070,registry:Tags@2439,registry:Target@6201,registry:Targets@453,registry:Text@1460,registry:Text@1607,registry:Text@3018,registry:Text@8328,registry:Text@8391,registry:Timer@709,registry:Timer@8611,registry:Timer@891,registry:Timers@8834,registry:Timers@8893,registry:Timers@8982,registry:Times@9606,registry:To@4595,registry:To@4656,registry:ToDB@4745,registry:ToOp@3636,registry:ToSock@4753,registry:TokenHash@2357,registry:Tunnel@5933,registry:Unit@4866,registry:UpdateSettings@5218,registry:Ver@6572,registry:Ver@6723,registry:Ver@6799,registry:W@7941,registry:Wildcards@7835,whole:Account@3082,whole:ClaimOwnership@282,whole:ClaimOwnership@379,whole:ClaimOwnership@662,whole:ClaimRow@455,whole:ClaimRowArchive@561,whole:ClaimRowArchive@571,whole:ColdRows@1809,whole:ColdRows@1816,whole:ColdRows@1907,whole:ColdRows@1914,whole:Fleet@1970,whole:Fleet@2031,whole:Fleet@2058,whole:Fleet@2116,whole:FleetBox@2283,whole:FleetBox@2742,whole:GoodBuild@6642,whole:GoodBuild@6656,whole:Pair@3820,whole:Pair@3904,whole:Pair@3988,whole:Pair@4002,whole:RegionalDomain@8043,whole:RegionalDomain@8143,whole:Route@3201,whole:Route@3243,whole:Route@3346,whole:Route@3413,whole:Route@367,whole:Route@4196,whole:Route@4351,whole:Route@4357,whole:Route@6072,whole:Route@7016,whole:Route@7083,whole:Route@7452,whole:RouteAlias@7515,whole:RouteAlias@7591,whole:RoutePath@8173,whole:RoutePath@8243,whole:Timer@645,whole:Timer@713,whole:Timer@759,whole:Timer@8525,whole:Timer@853,whole:Timer@8585,whole:Timer@8615,whole:Timer@8838,whole:Timer@8897,whole:Timer@895,whole:Timer@8986,whole:Timer@936,whole:WildcardDomain@7839,whole:WildcardDomain@7943 983246f84446af9e63b74c5017a160030f015ff2ce0c1ee8afa924d9460346c0
+internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census-ruling-self-serve-moves-1;basis=the registry child (carlos __registry-child, the service user a root pass forks): plan14-root-reads-e's mixed declaration (E2 adds only the ArtifactHosts read; every other arm is the local method of the same name), with three more write arms, SetHoldIfSeq, ReleaseHoldSeq and InstallLifetimeIf, each calling the local setter; no read operation added; self-serve moves 1 Task 7;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry child (carlos __registry-child, the service user a root pass forks);basis=#328/#329 plan 1 Task 4: one more write arm, SetPolicy, calling the local Registry.SetPolicy with the request's Host, EgressAllow, Size and PolicyExpiresAt (remoteRequest fields sent by the remote handle's holder); the new kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, plus one more registry:Host site, all of the request; no read operation added; the read-only worker never reaches it (serveRemote's method gate); no production root pass sends SetPolicy;rev3=census-ruling-region-ha-p1a;basis=the registry child (carlos __registry-child, the service user a root pass forks): one more write arm, SetHA, calling the local Registry.SetHA with the request's Host (+registry:Host); no read operation added; only the provision pass sends it;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 8: two new remote methods, UpsertUnlessRootfs (carlos add's guarded write) and ResidentInstances (the residency sweep's list), each calling the same-named Registry method;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: two more methods on the existing remote registry transport, ListRegional and ReplaceRegionalSet (request field RDs, response field Regional), each calling the local method of the same name, which validates its own input; no new kind of read;rev3=census-ruling-fleet-secrets-key;basis=one new case, SetFleetSecretsKey, reading the request's Name, Pub, KeyFP, By and At fields and calling SetFleetSecretsKey;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 1-2: three new cases (SetFleetBoxIf reads the request's Fleet and answers Changed; PutForward reads TValue, a whole Route; DeleteForward reads Host and answers Changed); SetFleetBox gone (+registry:Changed x2, +registry:Fleet, +registry:Host, +registry:TValue, +whole:Route). Each case calls the local writer with its own guards.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 6b): three more remote methods dispatched to their local forms, SetFleetBoxDraining (q.Fleet, q.Label, q.At, answering Number64), MarkFleetBoxLabelled (q.Fleet, q.Label, q.At) and SetFleetAssignment (q.Host, q.Assigned, q.Moved); remoteRequest gains Assigned and Moved. The registry child, not root.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Add SetServingMode dispatch using the existing remote request Host, Ver and On fields; the same local narrow writer handles it. No new transport or root path. Task 4 R19: dispatch SeedStateless with the existing Observed Route carrier to its guarded local method. No new transport; the existing read-only service gate still refuses writes. registry:A@7648,registry:Account@4416,registry:Accounts@3078,registry:Addr@4993,registry:Addrs@5001,registry:Alias@7696,registry:Alias@7760,registry:Alias@7848,registry:Aliases@7570,registry:Alive@9523,registry:Args@7272,registry:AssetGen@5143,registry:AssetsOff@5130,registry:Assigned@5621,registry:At@2232,registry:At@2621,registry:At@2706,registry:At@6515,registry:At@7779,registry:At@7857,registry:At@9271,registry:Attempts@9293,registry:B@2281,registry:Backing@4812,registry:BuildState@5380,registry:By@2226,registry:Changed@1996,registry:Changed@3501,registry:Changed@3588,registry:Changed@3677,registry:Changed@3748,registry:Changed@3852,registry:Changed@3939,registry:Changed@4032,registry:Changed@4114,registry:Changed@5968,registry:Changed@6105,registry:Changed@9203,registry:Channel@4476,registry:Channel@5811,registry:Channel@6360,registry:CheckedAt@6441,registry:Class@4931,registry:DoneBefore@9532,registry:Due@6973,registry:Due@7037,registry:Due@9315,registry:EgressAllow@5283,registry:Env@5879,registry:Env@6271,registry:Env@6371,registry:ExcludeHosts@8998,registry:ExcludeHosts@9093,registry:ExpectGood@6640,registry:ExpectOp@3556,registry:ExpectOp@3806,registry:ExpectPair@3986,registry:Expected@1250,registry:Expected@289,registry:Expected@762,registry:Expected@939,registry:F@1968,registry:F@2029,registry:Fleet@2054,registry:Fleet@2339,registry:Fleet@2421,registry:Fleet@2502,registry:Fleet@2603,registry:Fleet@2688,registry:Fleet@2777,registry:Fleet@6011,registry:FleetBoxes@2738,registry:Fleets@2112,registry:From@4587,registry:From@4648,registry:FromDB@4723,registry:FromOp@3644,registry:FromSock@4733,registry:Hash@5685,registry:Health@5010,registry:Host@1024,registry:Host@1135,registry:Host@272,registry:Host@3262,registry:Host@3303,registry:Host@3456,registry:Host@3532,registry:Host@3618,registry:Host@3710,registry:Host@3782,registry:Host@3888,registry:Host@3978,registry:Host@4066,registry:Host@4158,registry:Host@4408,registry:Host@4468,registry:Host@4526,registry:Host@4579,registry:Host@4640,registry:Host@4715,registry:Host@4804,registry:Host@4858,registry:Host@4923,registry:Host@4985,registry:Host@5063,registry:Host@5122,registry:Host@5210,registry:Host@5275,registry:Host@5372,registry:Host@5437,registry:Host@5498,registry:Host@5548,registry:Host@5613,registry:Host@5677,registry:Host@5738,registry:Host@5871,registry:Host@5925,registry:Host@6003,registry:Host@6140,registry:Host@6193,registry:Host@6423,registry:Host@6507,registry:Host@6564,registry:Host@6632,registry:Host@6774,registry:Host@6850,registry:Host@6910,registry:Host@6965,registry:Host@7029,registry:Host@7213,registry:Host@7264,registry:Host@7331,registry:Host@7406,registry:Host@7469,registry:Host@8066,registry:Host@8192,registry:Host@8346,registry:Host@8634,registry:Host@8698,registry:Host@8757,registry:Host@8840,registry:Host@8923,registry:Host@9154,registry:Host@9239,registry:Host@9371,registry:Host@9452,registry:Host@9615,registry:Hosts@187,registry:Hosts@3141,registry:Hosts@5802,registry:Hosts@6262,registry:Hosts@6351,registry:Id@1244,registry:Id@1555,registry:Id@1654,registry:Id@1734,registry:Id@1885,registry:IdValue@2897,registry:Idle@7339,registry:Journal@1262,registry:Journal@1561,registry:Journal@1740,registry:Journal@442,registry:Keep@9631,registry:KeyFP@2217,registry:Kind@9460,registry:Kind@9623,registry:Label@2348,registry:Label@2430,registry:Label@2511,registry:Label@2612,registry:Label@2697,registry:Label@6020,registry:Limit@8989,registry:Limit@9084,registry:MaxRun@7347,registry:Method@151,registry:Moved@5633,registry:Ms@9287,registry:Name@1032,registry:Name@1143,registry:Name@2082,registry:Name@2202,registry:Name@2916,registry:Name@8706,registry:Name@8765,registry:Name@8848,registry:Name@9162,registry:Name@9247,registry:Name@9379,registry:Next@301,registry:NextAt@9305,registry:NextGood@6654,registry:NextValue@1814,registry:NextValue@1912,registry:Now@1167,registry:Now@7540,registry:Now@8982,registry:Now@9077,registry:Now@9170,registry:Number64@2561,registry:Number64@3004,registry:Number@9420,registry:Number@9491,registry:Number@9576,registry:Observed@365,registry:Observed@6713,registry:ObservedValue@643,registry:Old@1807,registry:Old@1905,registry:On@6789,registry:On@6918,registry:On@7414,registry:On@7477,registry:Op@3474,registry:Op@3550,registry:Op@3718,registry:Op@3800,registry:Op@3896,registry:Op@4074,registry:Op@4166,registry:Owner@280,registry:Owner@377,registry:Owner@660,registry:P@8300,registry:Pair@3818,registry:Pair@3902,registry:Pair@4000,registry:Path@8531,registry:Paths@8228,registry:PolicyExpiresAt@5306,registry:Prefix@8354,registry:Prev@6579,registry:Pub@2210,registry:RDs@8200,registry:RateLimit@5746,registry:Regional@8098,registry:Registration@1040,registry:Registration@1151,registry:Registration@8856,registry:Registration@9255,registry:Replica@5506,registry:Replicas@5445,registry:Retirement@1891,registry:Route@3239,registry:Routes@3197,registry:Routes@4192,registry:Routes@7071,registry:Routes@7138,registry:Routes@7507,registry:Rows@8642,registry:Seed@7221,registry:Size@5298,registry:Sqid@2908,registry:Sqid@2971,registry:Sqid@3050,registry:Status@1056,registry:Status@2520,registry:Status@3464,registry:Status@3540,registry:Status@3626,registry:Status@3790,registry:Status@4534,registry:Status@6431,registry:Status@7769,registry:Status@9277,registry:Status@9387,registry:Steering@5071,registry:StringMap@2814,registry:T@757,registry:T@851,registry:T@8582,registry:T@934,registry:TValue@3344,registry:TValue@3411,registry:TValue@6070,registry:Tags@2439,registry:Target@6201,registry:Targets@453,registry:Text@1460,registry:Text@1607,registry:Text@3018,registry:Text@8387,registry:Text@8450,registry:Timer@709,registry:Timer@8670,registry:Timer@891,registry:Timers@8893,registry:Timers@8952,registry:Timers@9041,registry:Times@9665,registry:To@4595,registry:To@4656,registry:ToDB@4745,registry:ToOp@3636,registry:ToSock@4753,registry:TokenHash@2357,registry:Tunnel@5933,registry:Unit@4866,registry:UpdateSettings@5218,registry:Ver@6572,registry:Ver@6782,registry:Ver@6858,registry:W@8000,registry:Wildcards@7894,whole:Account@3082,whole:ClaimOwnership@282,whole:ClaimOwnership@379,whole:ClaimOwnership@662,whole:ClaimRow@455,whole:ClaimRowArchive@561,whole:ClaimRowArchive@571,whole:ColdRows@1809,whole:ColdRows@1816,whole:ColdRows@1907,whole:ColdRows@1914,whole:Fleet@1970,whole:Fleet@2031,whole:Fleet@2058,whole:Fleet@2116,whole:FleetBox@2283,whole:FleetBox@2742,whole:GoodBuild@6642,whole:GoodBuild@6656,whole:Pair@3820,whole:Pair@3904,whole:Pair@3988,whole:Pair@4002,whole:RegionalDomain@8102,whole:RegionalDomain@8202,whole:Route@3201,whole:Route@3243,whole:Route@3346,whole:Route@3413,whole:Route@367,whole:Route@4196,whole:Route@4351,whole:Route@4357,whole:Route@6072,whole:Route@6715,whole:Route@7075,whole:Route@7142,whole:Route@7511,whole:RouteAlias@7574,whole:RouteAlias@7650,whole:RoutePath@8232,whole:RoutePath@8302,whole:Timer@645,whole:Timer@713,whole:Timer@759,whole:Timer@853,whole:Timer@8584,whole:Timer@8644,whole:Timer@8674,whole:Timer@8897,whole:Timer@895,whole:Timer@8956,whole:Timer@9045,whole:Timer@936,whole:WildcardDomain@7898,whole:WildcardDomain@8002 6117c9c98cbfffb1d960f43ccda2c47f04c902335cb5431ad2f17afcac5245ed
internal/rollout/manager.go Manager.resolve legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry demand, artifact identity, stateless verdict and canonical digest from one verified RuntimeSelection into the attempt; unreadable selection refuses. registry:App@147,registry:GoodDemand@751,registry:GoodDemand@797,registry:GoodDigest@671,registry:GoodDigest@736,registry:GoodVersion@653,registry:Host@400,whole:Route@1212,whole:Route@142,whole:Route@897 a57af8f772817ec1f664c5bc53fc853132936a67d1848bc27d9b9f75fad608ba
internal/rollout/wakeplan.go Manager.planRow legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry each selection read by the existing planner on its WakePlan so wake uses that same canonical verdict/digest, including selected fallbacks. registry:App@164,registry:Host@1062,registry:Version@1221,whole:Route@115,whole:Route@1217,whole:Route@1459,whole:Route@1545,whole:Route@159,whole:Route@234,whole:Route@241,whole:Route@584,whole:Route@804 66e00b7558526beba1dcc97859c002f9c0cf34f1231dd4f9b752f53adcbaa517
@coverage . d8abf32baa39f05d1e9d4e9b8a24e7113c58f42f8735e7a62e217eb39e7a4bf7
-@coverage internal/activator bff59113dca053aab77aa67f0a8a3dcea840c39540d301e8bb2be9a43ad51755
+@coverage internal/activator 4218859f6a7956b54b010f1f4f2a48eec6ed0c0cc9983bd3de5fcedfe6520356
@coverage internal/host 785f628a5994901a1813c347b5265b86cd9bb99c0e113253b13805966cceae02
@coverage internal/ops 67289ea5b95d14e295bc19e855fab6b00ed240b822e75d4be42b9ded59662e4d
@coverage internal/provision 98d437ab5b9838a252b4e8b517926cac9a568571eae6dc817f94f7ed489e19db
-@coverage internal/registry 19a5a1350bc29eb4445afdbfacfa727218b8f0af44762d29bb56a67b2fa14882
-@coverage internal/release 030034d231e1d6fd87044c3823b818d2ae0677d6fd8282a1a722a3c6c3b2a421
+@coverage internal/registry 09ca13b89e733863570c1147f227f14aa8e1435c55f6ef3e4949a3f6b05effbf
+@coverage internal/release 62bf9d23afe7d59d1aa4c8d77051d8dbb2cdca2ecfe3b9e6c36fc79f8ead54ab
@coverage internal/replicas 53b94eb040154539a0a977498b4b8bc1d53d82f67c1c6233667a0b823dd30d8a
@coverage internal/rollout 3eb995849e51ceae6255fed33eb411b61e5d5ce5d6d7d71a37fb53da059e02df
@fields A,Account,Accounts,AddedAt,Addr,Addrs,Alias,Aliases,Alive,AllowAbsent,App,Archives,Args,AssetGen,AssetsOff,Assigned,At,Attempts,B,Backing,Bucket,BuildState,By,Callback,CallbackError,CallbackFailed,Canary,Caps,CertExpiresAt,Changed,Channel,CheckedAt,Claim,ClaimIncarnation,ClaimOwner,ClaimOwnership,ClaimRowID,ClaimStamp,Class,Column,Contents,CreatedAt,DBPath,DNSCheckedAt,DNSStatus,Deadline,Default,Demand,Digest,DoneBefore,DrainingSince,Due,DueAt,EgressAllow,Env,EnvBefore,Environment,Error,ErrorKind,ExcludeHosts,ExpectGood,ExpectOp,ExpectPair,Expected,F,Failed,FenceGen,Field,Fleet,FleetBox,FleetBoxes,FleetLabel,Fleets,From,FromDB,FromOp,FromSock,Gate,GoodDemand,GoodDigest,GoodVersion,HA,Hash,Health,Held,Hibernate,HoldOp,Host,Hosts,ID,Id,IdValue,Idle,IdleSeconds,ImportGate,Incarnation,Journal,Keep,KeyFP,Kind,Label,LabelledAt,LastAt,LastError,LastMs,LastStatus,Limit,MaxRun,MaxRunSeconds,Method,Moved,Ms,Name,Next,NextAt,NextDue,NextGood,NextValue,Now,Number,Number64,Observed,ObservedValue,Old,On,OnConflict,Op,Original,Owner,Ownership,P,Pair,Path,Paths,Platform,PolicyExpiresAt,Pool,Prefix,Prev,PrevVersion,Provisioned,Pub,RDs,RateLimit,RecordKey,Region,Regional,Registration,Replica,Replicas,Replication,Retirement,Route,Routes,Row,Rows,Runtime,SecretsKeyFP,SecretsKeySetAt,SecretsKeySetBy,SecretsPub,Seed,SeedID,SeedSource,ServingSeq,ServingVersion,Size,Slug,Socket,Spec,Sqid,State,Stateless,Status,StatusNamed,Steering,StringMap,T,TValue,Tags,Target,Targets,Text,Timer,Timers,Times,To,ToDB,ToOp,ToSock,TokenHash,Tunnel,Type,Unit,UpdateSettings,Ver,Version,W,WakeIncarnation,Wildcards,closed,conn,connect,ctx,d,dec,done,enc,full,input,mu,output,path,readOnly,remote,sql,wait
diff --git a/internal/registry/forward_writers_test.go b/internal/registry/forward_writers_test.go
index 458cf0911..64b7e0e1e 100644
--- a/internal/registry/forward_writers_test.go
+++ b/internal/registry/forward_writers_test.go
@@ -379,6 +379,18 @@ func routeWriterCases() []writerCase {
errCase("SetGoodBuild", true, nil, func(r *Registry, h string) error {
return r.SetGoodBuild(h, GoodBuild{}, GoodBuild{Version: "v1", Digest: "aa", Demand: "swap"})
}),
+ {name: "SeedStateless", encloses: []string{"SeedStateless"}, refuses: true,
+ setup: func(t *testing.T, r *Registry) (string, writerCall) {
+ host := plainRow(t, r, func(rt *Route) {
+ rt.Version = ""
+ rt.ServingVersion = ""
+ rt.Backing = ""
+ rt.Tunnel = ""
+ rt.Socket = "/run/shop.sock"
+ })
+ observed := mustRoute(t, r, host)
+ return host, func(bool) (bool, error) { return false, r.SeedStateless(observed) }
+ }},
errCase("SetServingMode", false, nil, func(r *Registry, h string) error { return r.SetServingMode(h, "v1", true) }),
errCase("SetServingVersion", false, nil, func(r *Registry, h string) error { return r.SetServingVersion(h, "v1") }),
errCase("SetHibernate", true, nil, func(r *Registry, h string) error { return r.SetHibernate(h, true) }),
diff --git a/internal/registry/registry.go b/internal/registry/registry.go
index 1d501ed07..038d3dfa1 100644
--- a/internal/registry/registry.go
+++ b/internal/registry/registry.go
@@ -3110,6 +3110,40 @@ WHERE host = ? AND kind <> 'forward' AND good_version = ? AND good_digest = ? AN
return fmt.Errorf("%w: %s now holds %+v", ErrGoodBuildChanged, host, cur)
}
+// SeedStateless gives a fresh exec row its verified staged mode before its
+// first wake. It never changes a serving row or claims a serving version.
+func (r *Registry) SeedStateless(observed Route) error {
+ if observed.IsForward() {
+ return ErrForwardRow
+ }
+ if observed.Kind != "instance" || observed.Socket == "" || observed.Backing != "" || observed.Tunnel != "" || observed.Version != "" || observed.ServingVersion != "" {
+ return ErrGoodBuildChanged
+ }
+ if r.remote != nil {
+ _, err := r.remote.call(nil, remoteRequest{Method: "SeedStateless", Observed: observed}, nil)
+ return err
+ }
+ tx, err := r.sql.Begin()
+ if err != nil {
+ return err
+ }
+ defer tx.Rollback()
+ current, err := scanRoute(tx.QueryRow(`SELECT `+routeCols+` FROM routes WHERE host=?`, observed.Host).Scan)
+ if err != nil {
+ return err
+ }
+ if current.IsForward() {
+ return ErrForwardRow
+ }
+ if current != observed {
+ return ErrGoodBuildChanged
+ }
+ if _, err := tx.Exec(`UPDATE routes SET stateless=1 WHERE host=? AND kind <> 'forward'`, observed.Host); err != nil {
+ return err
+ }
+ return tx.Commit()
+}
+
// SetServingMode projects the actual serving generation in one update.
func (r *Registry) SetServingMode(host, version string, stateless bool) error {
if r.remote != nil {
diff --git a/internal/registry/remote_dispatch.go b/internal/registry/remote_dispatch.go
index 3c076b8f7..8989ec281 100644
--- a/internal/registry/remote_dispatch.go
+++ b/internal/registry/remote_dispatch.go
@@ -320,6 +320,8 @@ func (r *Registry) dispatchRemote(ctx context.Context, q remoteRequest, callback
err = r.SetVersions(q.Host, q.Ver, q.Prev)
case "SetGoodBuild":
err = r.SetGoodBuild(q.Host, q.ExpectGood, q.NextGood)
+ case "SeedStateless":
+ err = r.SeedStateless(q.Observed)
case "SetServingMode":
err = r.SetServingMode(q.Host, q.Ver, q.On)
case "SetServingVersion":
diff --git a/internal/registry/stateless_test.go b/internal/registry/stateless_test.go
index 1ff7d0a1d..f3a203220 100644
--- a/internal/registry/stateless_test.go
+++ b/internal/registry/stateless_test.go
@@ -104,3 +104,46 @@ func TestStatelessRegistryMigration(t *testing.T) {
t.Fatalf("migrated route = %+v, %v", got, err)
}
}
+
+func TestStatelessInitialProjection(t *testing.T) {
+ for _, remote := range []bool{false, true} {
+ var r *Registry
+ if remote {
+ r, _ = remoteTestRegistry(t)
+ } else {
+ var err error
+ r, err = Open(filepath.Join(t.TempDir(), "registry.db"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer r.Close()
+ }
+ rt := Route{Host: "shop.example.com", Kind: "instance", Socket: "/run/shop.sock", Account: "bab", App: "shop"}
+ if err := r.Upsert(rt); err != nil {
+ t.Fatal(err)
+ }
+ observed, err := r.Get(rt.Host)
+ if err != nil {
+ t.Fatal(err)
+ }
+ stale := *observed
+ stale.Incarnation++
+ if err := r.SeedStateless(stale); err == nil {
+ t.Fatal("stale lifetime seeded residency")
+ }
+ if err := r.SeedStateless(*observed); err != nil {
+ t.Fatal(err)
+ }
+ got, err := r.Get(rt.Host)
+ if err != nil || !got.Stateless || got.ServingVersion != "" || got.Version != "" {
+ t.Fatalf("seed=%+v %v", got, err)
+ }
+ if err := r.SetServingMode(rt.Host, "v1", false); err != nil {
+ t.Fatal(err)
+ }
+ got, _ = r.Get(rt.Host)
+ if err := r.SeedStateless(*got); err == nil {
+ t.Fatal("serving stateful row was seeded")
+ }
+ }
+}
diff --git a/internal/release/adopt.go b/internal/release/adopt.go
index 287bdcad1..3ded1b48c 100644
--- a/internal/release/adopt.go
+++ b/internal/release/adopt.go
@@ -1841,6 +1841,12 @@ func adoptHost(ctx context.Context, work hostwrite.Work, reg *registry.Registry,
return err
}
}
+ if m != nil && m.Stateless && !rt.Stateless && rt.Kind == "instance" && rt.Socket != "" && rt.Backing == "" && rt.Tunnel == "" && rt.Version == "" && rt.ServingVersion == "" {
+ if err := reg.SeedStateless(rt); err != nil {
+ return err
+ }
+ rt.Stateless = true
+ }
if err := PointLive(optDir, rt.Host, RouteAccount(rt), ver, rt.App, running); err != nil {
return err
}