carlos / platform Public

fix: keep reconcile going and let a lone stateless box initialize escrow

Log binding publication failures and retain applied-record bookkeeping so
reconciliation proceeds normally and the publisher retries next pass.

On a matching released stateless deploy, check the existing escrow before
returning. Reuse held authority, leave published-trio followers read-only,
and acquire through the existing coordinator client when initialization is
missing. Preserve RetryAt contention backoff and every mint, conflict and
first-publication gate without rerunning release or adding a timer.

Add restart/start, contention, follower and reconcile regression witnesses.
Targeted Task 3 tests, 62 existing activator tests, 96 reconcile-file tests,
root and record-write censuses, and three cross-compiles pass. Refresh the
cumulative census proposal; independent approval remains controller-owned.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 09189fdd0ea1a7f59d29c160206efbdd6c249802 parent 9fe9b0d
9 files changed, +322 −14
  • docs/superpowers/notes/census-proposal-stateless-replicas-1.md +5 −3
  • internal/activator/escrow_authority.go +64 −0
  • internal/activator/stateless_escrow_test.go +171 −0
  • internal/activator/statelessrelease.go +3 −0
  • internal/provision/reconcile.go +1 −1
  • internal/provision/stateless_binding_test.go +61 −0
  • internal/provision/stateless_replicas_census_test.go +5 −2
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv +11 −7

CI failed — run details

Intent

Human

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

Attributed to this commit: 14.5 g CO₂e (1,710,047 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 89d941fa9..34094023a 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, 56 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, 58 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -104,6 +104,8 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/activator/escrow.go:ExecBackend.escrowMintGuardWithAuthority`: reads +registry:Host, +whole:Route ×7; written legacy, accepted-legacy, frozen
- new `internal/activator/escrow_authority.go:ExecBackend.followerEscrowEnv`: reads +registry:Host ×4, +whole:Route ×8; written legacy, accepted-legacy, frozen
- new `internal/activator/escrow_authority.go:ExecBackend.holdsEscrowAuthority`: reads +registry:Host ×2, +registry:Stateless; written legacy, accepted-legacy, frozen
+- new `internal/activator/escrow_authority.go:ExecBackend.prepareStatelessEscrow`: reads +registry:Account, +registry:App, +registry:Host ×4, +registry:Stateless, +whole:Route ×2; written legacy, accepted-legacy, frozen
+- 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/rootfsrelease.go:Service.runReleaseAdmitted`: reads +registry:Host, +whole:Route ×11; written legacy, accepted-legacy, frozen
@@ -119,7 +121,7 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/activator/stateless.go:storageVars`: reads +registry:Stateless; written legacy, accepted-legacy, frozen
- new `internal/activator/stateless.go:withDeclarations`: reads +registry:Account, +registry:App; written legacy, accepted-legacy, frozen
- new `internal/activator/stateless.go:withStorageMode`: reads +registry:Account, +registry:App; written legacy, accepted-legacy, frozen
-- new `internal/activator/statelessrelease.go:Service.PrepareStatelessRelease`: reads +registry:Account, +registry:App, +registry:GoodDemand, +registry:GoodDigest, +registry:GoodVersion, +registry:Host ×7, +whole:Route ×4; written legacy, accepted-legacy, frozen
+- new `internal/activator/statelessrelease.go:Service.PrepareStatelessRelease`: reads +registry:Account, +registry:App, +registry:GoodDemand, +registry:GoodDigest, +registry:GoodVersion, +registry:Host ×7, +whole:Route ×5; written legacy, accepted-legacy, frozen
- new `internal/activator/swap.go:Service.Swap`: reads +whole:Route ×10; written legacy, accepted-legacy, frozen
- new `internal/activator/wakeidentity.go:Service.currentWakeRoute`: reads +registry:Assigned ×3, +registry:Host ×7, +whole:Route ×9; written legacy, accepted-legacy, frozen
- new `internal/host/agent.go:replicaRecordFacts`: reads +registry:App, +registry:Host, +whole:Route; written legacy, accepted-legacy, frozen
@@ -157,6 +159,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- 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
-Seal: `5f805400717bad7726bd9d62744b8103a40eb5f5823b0ab7c960a5c0965cb3bc` → `126c5d97766d6d92e6f2e3fc59acf61438e68dbd2304a63270bbc4e936c57640`.
+Seal: `5f805400717bad7726bd9d62744b8103a40eb5f5823b0ab7c960a5c0965cb3bc` → `b483be74268153f4598295152a80f9bf95610233911b373f144e233e2562de18`.
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/escrow_authority.go b/internal/activator/escrow_authority.go
index 8034a1783..1e68af3a5 100644
--- a/internal/activator/escrow_authority.go
+++ b/internal/activator/escrow_authority.go
@@ -10,6 +10,7 @@ import (
"github.com/carlosframework/platform/internal/instancekey"
"github.com/carlosframework/platform/internal/layout/pubclass"
"github.com/carlosframework/platform/internal/registry"
+ "github.com/carlosframework/platform/internal/replicas"
)
// holdsEscrowAuthority separates publication from the serving lifetime.
@@ -94,3 +95,66 @@ func (b *ExecBackend) followerEscrowEnv(ctx context.Context, rt registry.Route)
}
return c.env, c.layer, nil
}
+
+type statelessEscrowInitializer interface {
+ prepareStatelessEscrow(context.Context, registry.Route, replicas.Identity) error
+}
+
+func (b *SplitBackend) prepareStatelessEscrow(ctx context.Context, rt registry.Route, id replicas.Identity) error {
+ if escrow, ok := b.pick(rt).(statelessEscrowInitializer); ok {
+ return escrow.prepareStatelessEscrow(ctx, rt, id)
+ }
+ return replicas.ErrFenced
+}
+
+// prepareStatelessEscrow recovers initialization after a released deploy's
+// first publish failed and its agent restarted. Acquisition uses the existing
+// assignment/lifetime-checked coordinator adapter and its RetryAt cache.
+// A published trio leaves the box a follower; launch preparation still checks
+// and restores its bytes. Nothing here mints, publishes or reruns release.
+func (b *ExecBackend) prepareStatelessEscrow(ctx context.Context, rt registry.Route, id replicas.Identity) error {
+ refuse := func(err error) error { return fmt.Errorf("%w: %w", errStatelessSecretsWaiting, err) }
+ if !rt.Stateless || id.Account != rt.Account || id.App != rt.App || id.Host != rt.Host || id.Incarnation == "" {
+ return refuse(replicas.ErrFenced)
+ }
+ if b.Coordination != nil && b.Coordination.Held(id) != nil {
+ return nil
+ }
+ if err := b.escrowReady(rt); err != nil {
+ return refuse(err)
+ }
+ if err := b.escrowConflict(rt.Host); err != nil {
+ return refuse(err)
+ }
+ lay, ok := pubLayout(b.pathsFor(rt).layout)
+ if !ok {
+ return refuse(ErrEscrowNotReady)
+ }
+ m, found, err := hostfiles.Load(ctx, b.FilesStore, b.filesPrefix(rt.Host))
+ if err != nil {
+ return refuse(err)
+ }
+ complete := found
+ for _, rel := range pubclass.SealedRels(lay, rt.Host) {
+ if _, ok := m.Platform[rel.Item()]; !ok {
+ complete = false
+ }
+ }
+ if complete {
+ return nil
+ }
+ if b.Coordination == nil {
+ return refuse(replicas.ErrFenced)
+ }
+ held, err := b.Coordination.Acquire(ctx, id)
+ if err != nil {
+ return refuse(err)
+ }
+ if held == nil {
+ return refuse(replicas.ErrFenced)
+ }
+ if err := held.Err(); err != nil {
+ return refuse(err)
+ }
+ return nil
+}
diff --git a/internal/activator/stateless_escrow_test.go b/internal/activator/stateless_escrow_test.go
index a8cbb117a..06f61b723 100644
--- a/internal/activator/stateless_escrow_test.go
+++ b/internal/activator/stateless_escrow_test.go
@@ -6,7 +6,9 @@ import (
"os"
"path/filepath"
"testing"
+ "time"
+ "github.com/carlosframework/platform/internal/instancectl"
"github.com/carlosframework/platform/internal/registry"
"github.com/carlosframework/platform/internal/release"
"github.com/carlosframework/platform/internal/replicas"
@@ -198,3 +200,172 @@ func TestStatelessEscrowAuthorityLoss(t *testing.T) {
}
})
}
+
+func prepareReleasedEscrowForTest(t *testing.T, b *ExecBackend, rt registry.Route) error {
+ t.Helper()
+ id := replicas.Identity{Account: rt.Account, App: rt.App, Host: rt.Host, Incarnation: "one"}
+ target := replicas.Build{Version: "v1", Digest: "canonical"}
+ a := &Service{backend: &SplitBackend{Exec: b}, Coordinator: b.Coordination,
+ ObserveReplicaRelease: func(context.Context, registry.Route) (replicas.Identity, replicas.Build, *replicas.Deploy, error) {
+ return id, target, &replicas.Deploy{ID: "deploy", Incarnation: id.Incarnation, Target: target, Phase: "released"}, nil
+ },
+ }
+ return a.PrepareStatelessRelease(context.Background(), rt, release.StagedIdentity{Version: "v1"}, "deploy")
+}
+
+func TestStatelessEscrowRestartAfterFailedFirstPublish(t *testing.T) {
+ b, rt := escrowBackend(t, escrowHost)
+ rt.Stateless = true
+ statelessEscrowCoordinator(t, b, rt)
+ writeFiles(t, b, rt, map[string]string{"instance.key": "ik-secret", "report.token": "rt-secret"})
+ store := &switchingPuts{Store: b.FilesStore}
+ store.failing.Store(true)
+ count := &escrowCountingStore{Store: store}
+ b.FilesStore = count
+ if err := prepareReleasedEscrowForTest(t, b, rt); err != nil {
+ t.Fatal(err)
+ }
+ if err := b.launchForTest(rt); err == nil {
+ t.Fatal("first launch escaped failed publish")
+ }
+ if count.puts.Load() == 0 {
+ t.Fatal("first launch never attempted publication")
+ }
+ original := envFileBytes(t, b, rt)
+ if original == "" {
+ t.Fatal("first launch did not mint")
+ }
+ b.Coordination.Close(context.Background())
+ restarted := restartEscrow(t, b)
+ store.failing.Store(false)
+ calls := 0
+ restarted.Coordination = NewCoordinatorClient("box", "restarted", func(_ context.Context, id replicas.Identity, c replicas.CoordinatorChange) (replicas.CoordinatorReply, error) {
+ if c.Op == "acquire" {
+ calls++
+ }
+ if id.Incarnation != "one" {
+ t.Fatalf("wrong lifetime: %+v", id)
+ }
+ return replicas.CoordinatorReply{Lease: replicas.Coordinator{Term: "next", Box: c.Box, BootID: c.BootID}, RemainingMS: replicas.CoordinatorTTL.Milliseconds()}, nil
+ }, nil)
+ t.Cleanup(func() { restarted.Coordination.Close(context.Background()) })
+ if err := prepareReleasedEscrowForTest(t, restarted, rt); err != nil {
+ t.Fatal(err)
+ }
+ stageLive(t, restarted, rt.Host, "v1")
+ unit := &haUnit{}
+ ctl := haFixOf(restarted).ctl
+ ctl.inv = "restarted-invocation"
+ starts := 0
+ ctl.onStart = func() {
+ starts++
+ unit.started(ctl.inv)
+ t.Cleanup(serveOK(t, rt.Socket))
+ }
+ ctl.stopHook = func(string, instancectl.Role) { unit.stopped() }
+ restarted.Control = haControl{identityControl{ctl}}
+ restarted.UnitState, restarted.CgroupEvents, restarted.ObservePoll = unit.state, unit.events, 20*time.Millisecond
+ proc, _, err := restarted.Start(context.Background(), rt)
+ if err != nil {
+ t.Fatalf("lone restarted box cannot start: %v", err)
+ }
+ if err := proc.Stop(context.Background()); err != nil {
+ t.Fatal(err)
+ }
+ if starts != 1 {
+ t.Fatalf("unit starts=%d", starts)
+ }
+ if calls != 1 {
+ t.Fatalf("initializer acquisitions=%d", calls)
+ }
+ if envFileBytes(t, restarted, rt) != original || platformEnv(t, restarted, rt) != original {
+ t.Fatal("restart changed the first launch secrets")
+ }
+ for _, item := range []string{"env.sealed", "instance.key.sealed", "report.token.sealed"} {
+ if _, ok := loadManifest(t, restarted, rt).Platform[item]; !ok {
+ t.Fatalf("missing published %s", item)
+ }
+ }
+}
+
+func TestStatelessEscrowInitializerContention(t *testing.T) {
+ b, rt := escrowBackend(t, escrowHost)
+ rt.Stateless = true
+ count := &escrowCountingStore{Store: b.FilesStore}
+ b.FilesStore = count
+ now := time.Now()
+ retryAt := now.Add(time.Minute)
+ calls := 0
+ b.Coordination = NewCoordinatorClient("second", "boot", func(_ context.Context, _ replicas.Identity, c replicas.CoordinatorChange) (replicas.CoordinatorReply, error) {
+ if c.Op == "acquire" {
+ calls++
+ if now.Before(retryAt) {
+ return replicas.CoordinatorReply{}, &replicas.CoordinatorHeldError{RetryAt: retryAt}
+ }
+ }
+ return replicas.CoordinatorReply{Lease: replicas.Coordinator{Term: "next", Box: c.Box, BootID: c.BootID}, RemainingMS: replicas.CoordinatorTTL.Milliseconds()}, nil
+ }, nil)
+ b.Coordination.now = func() time.Time { return now }
+ t.Cleanup(func() { b.Coordination.Close(context.Background()) })
+ for i := 0; i < 3; i++ {
+ err := prepareReleasedEscrowForTest(t, b, rt)
+ var held *replicas.CoordinatorHeldError
+ if !errors.Is(err, errStatelessSecretsWaiting) || !errors.As(err, &held) || !held.RetryAt.Equal(retryAt) {
+ t.Fatalf("contention did not wait: %v", err)
+ }
+ }
+ if calls != 1 || count.puts.Load() != 0 || envFileBytes(t, b, rt) != "" {
+ t.Fatalf("waiting follower did work: acquisitions=%d writes=%d", calls, count.puts.Load())
+ }
+ now = retryAt
+ if err := prepareReleasedEscrowForTest(t, b, rt); err != nil {
+ t.Fatal(err)
+ }
+ if calls != 2 {
+ t.Fatalf("wake at RetryAt did not retry: %d", calls)
+ }
+ if err := b.launchForTest(rt); err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestStatelessEscrowPublishedFollowerNeverAcquires(t *testing.T) {
+ for _, scenario := range []string{"published", "failed-read", "divergent"} {
+ t.Run(scenario, func(t *testing.T) {
+ b, rt := escrowBackend(t, escrowHost)
+ writeEnv(t, b, rt, envA)
+ writeFiles(t, b, rt, map[string]string{"instance.key": "ik-secret", "report.token": "rt-secret"})
+ mustPublish(t, b, rt)
+ follower, frt := otherBox(t, b, rt)
+ frt.Stateless = true
+ count := &escrowCountingStore{Store: follower.FilesStore}
+ follower.FilesStore = count
+ calls := 0
+ follower.Coordination = NewCoordinatorClient("second", "boot", func(context.Context, replicas.Identity, replicas.CoordinatorChange) (replicas.CoordinatorReply, error) {
+ calls++
+ return replicas.CoordinatorReply{}, replicas.ErrFenced
+ }, nil)
+ t.Cleanup(func() { follower.Coordination.Close(context.Background()) })
+ if scenario == "failed-read" {
+ follower.FilesStore = &statelessReadFailure{Store: count}
+ }
+ if scenario == "divergent" {
+ writeEnv(t, follower, frt, envA)
+ writeFiles(t, follower, frt, map[string]string{"instance.key": "different"})
+ }
+ err := prepareReleasedEscrowForTest(t, follower, frt)
+ if err == nil {
+ err = follower.launchForTest(frt)
+ }
+ if (err == nil) != (scenario == "published") {
+ t.Fatalf("launch outcome: %v", err)
+ }
+ if calls != 0 || count.puts.Load() != 0 {
+ t.Fatalf("follower acquired or published: %d %d", calls, count.puts.Load())
+ }
+ if scenario == "published" && envFileBytes(t, follower, frt) != envA {
+ t.Fatal("follower changed published env")
+ }
+ })
+ }
+}
diff --git a/internal/activator/statelessrelease.go b/internal/activator/statelessrelease.go
index c61b161cc..58683b248 100644
--- a/internal/activator/statelessrelease.go
+++ b/internal/activator/statelessrelease.go
@@ -38,6 +38,9 @@ func (a *Service) PrepareStatelessRelease(ctx context.Context, rt registry.Route
return replicas.ErrFenced
}
if old.Phase == "released" {
+ if escrow, ok := a.backend.(statelessEscrowInitializer); ok {
+ return escrow.prepareStatelessEscrow(ctx, rt, identity)
+ }
return nil
}
if old.Phase == "unknown" {
diff --git a/internal/provision/reconcile.go b/internal/provision/reconcile.go
index f95d4b22a..24f761168 100644
--- a/internal/provision/reconcile.go
+++ b/internal/provision/reconcile.go
@@ -2104,7 +2104,7 @@ func Reconcile(ctx context.Context, s release.Store, reg *registry.Registry, cfg
}
if applied && existing.Stateless && !cfg.DryRun && cfg.StatelessBinding != nil {
if err := cfg.StatelessBinding(ctx, rec, existing); err != nil {
- return err
+ log.Printf("provision: stateless binding %s: %v", rec.Host, err)
}
}
pr.applied[rec.Host] = applied
diff --git a/internal/provision/stateless_binding_test.go b/internal/provision/stateless_binding_test.go
index fea472da3..c51d6d428 100644
--- a/internal/provision/stateless_binding_test.go
+++ b/internal/provision/stateless_binding_test.go
@@ -2,6 +2,7 @@ package provision
import (
"context"
+ "errors"
"testing"
"time"
@@ -62,3 +63,63 @@ func TestStatelessBindingUsesExistingReconcile(t *testing.T) {
t.Fatal("stateful row used coordinator publication")
}
}
+
+func TestStatelessBindingFailureContinuesReconcile(t *testing.T) {
+ s := dirStore(t)
+ acct := writeAccountManifest(t, s, acctID, "Example")
+ if err := PutManifest(ctx, s, acct, "shop", Manifest{Schema: 1, App: "shop", Domain: "example.com", Pool: "shop"}); err != nil {
+ t.Fatal(err)
+ }
+ records := make([]Record, 3)
+ for i, slug := range []string{"a", "b", "retired"} {
+ records[i] = Record{Schema: 1, Host: slug + ".example.com", Slug: slug, App: "shop", Account: acct, Pool: "shop", Region: "ie", Channel: "stable", CreatedAt: time.Unix(1, 0)}
+ if err := CreateRecord(ctx, s, records[i]); err != nil {
+ t.Fatal(err)
+ }
+ }
+ reg := regWith(t)
+ defer reg.Close()
+ cfg := ReconcileConfig{Region: "ie", Pools: []string{"shop"}, DataDir: t.TempDir()}
+ if err := Reconcile(ctx, s, reg, cfg); err != nil {
+ t.Fatal(err)
+ }
+ if err := reg.SetServingMode(records[0].Host, "v1", true); err != nil {
+ t.Fatal(err)
+ }
+ if err := reg.SetChannel(records[1].Host, "drift"); err != nil {
+ t.Fatal(err)
+ }
+ if err := DeleteRecord(ctx, s, acct, "shop", records[2].Host); err != nil {
+ t.Fatal(err)
+ }
+ cfg.Report = &ReconcileReport{}
+ calls := 0
+ cfg.StatelessBinding = func(_ context.Context, rec Record, _ registry.Route) error {
+ calls++
+ if rec.Host != records[0].Host {
+ t.Fatalf("unexpected binding: %s", rec.Host)
+ }
+ return errors.New("binding unavailable")
+ }
+ if err := Reconcile(ctx, s, reg, cfg); err != nil {
+ t.Fatal(err)
+ }
+ if calls != 1 {
+ t.Fatalf("callback calls=%d", calls)
+ }
+ if !cfg.Report.Complete[acct+"/shop"] {
+ t.Fatal("binding failure lost applied-record bookkeeping")
+ }
+ if got := mustGet(t, reg, records[1].Host).Channel; got != "stable" {
+ t.Fatalf("second record did not converge: %s", got)
+ }
+ if rt, err := reg.Get(records[2].Host); err != nil || rt != nil {
+ t.Fatalf("removal did not run: %+v %v", rt, err)
+ }
+ if err := Reconcile(ctx, s, reg, cfg); err != nil {
+ t.Fatal(err)
+ }
+ if calls != 2 {
+ t.Fatalf("failed binding was not retried: %d", calls)
+ }
+}
diff --git a/internal/provision/stateless_replicas_census_test.go b/internal/provision/stateless_replicas_census_test.go
index 8115884a0..4f65b7d16 100644
--- a/internal/provision/stateless_replicas_census_test.go
+++ b/internal/provision/stateless_replicas_census_test.go
@@ -40,8 +40,11 @@ func statelessReplicasWriteCensusInventory() []censusEntry {
// Task 3b self-review: only an applied-record callback was added. It
// reaches the nonrecord binding writer above; existing typed writes and
// record-key constructors retain their paths and checks. The witness is
- // TestStatelessBindingUsesExistingReconcile. Independent review is pending.
- {"internal/provision/reconcile.go", "Reconcile", "key-site", "key:ParseRecordKey,key:RecordKey,lit:instances", "fc71ce39907ff045f2a33d4561fc42ab2ab7f36c500f1625ddca1141c4295f3f"},
+ // TestStatelessBindingUsesExistingReconcile. Fix 3b round 1 I1 only
+ // logs callback errors and retains applied bookkeeping; no writer or key
+ // changed. TestStatelessBindingFailureContinuesReconcile covers this.
+ // Independent review remains pending.
+ {"internal/provision/reconcile.go", "Reconcile", "key-site", "key:ParseRecordKey,key:RecordKey,lit:instances", "a450a5861aebb872209cf3b2da26c78dc0dea5b660ce31d7354fb8fe772b88e6"},
// Trusted client only: both calls retain lifetime-judged typed CAS.
// Fleet selection constructs only the HTTP adapter and cannot reach these.
{"internal/host/replicacoordinator.go", "replicaCoordinatorStore.coordinator", "record-writer", "key:SetRecordCoordinator", "1856926de34983178e3d2b79dd34b4e7fe9f5b0a77d9a766aa899d09532c9946"},
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 58a45eea8..000e14d49 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 126c5d97766d6d92e6f2e3fc59acf61438e68dbd2304a63270bbc4e936c57640
+plan14-root-reads-stateless-replicas-1.tsv b483be74268153f4598295152a80f9bf95610233911b373f144e233e2562de18
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 2823c541d..cf176932f 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, 16 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 56 new dispositions: 28 reads re-frozen at their disposition with the claim, 27 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other.
+# 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.
@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
@@ -27,6 +27,8 @@
@legacy 2453145296b8d8c65ae171bac8d202325b526b73af9e8142592b0129f7b9af08 internal/activator/escrow.go ExecBackend.escrowMintGuardWithAuthority legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: prior mint decision moved intact under the wrapper, except its authority test now selects by verified mode. Reads only the existing escrow bucket and local conflict marker via existing helpers; keyless, no-store and bucket-knowledge behavior unchanged for stateful. registry:Host@696,whole:Route@1082,whole:Route@138,whole:Route@222,whole:Route@304,whole:Route@540,whole:Route@779,whole:Route@916 571c358d71cfe03d93f1a3fa4c67465aebe4c139b92bf593e3646c45490c0f35
@legacy d972735920ad817ca9a53ddd5ebf07e7baca8e13231911313ff5a9c4df05e63d internal/activator/escrow_authority.go ExecBackend.followerEscrowEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: require a readable complete sealed trio from the existing files manifest, restore missing local files through the existing beneath/no-replace helper, capture env and compare local trio/minted variables against escrow before returning it. Local reads remain under the classified host data directory with ReadBeneathLimit; same sealed bucket keys, no mint, publisher or remote write. Conflict refusal uses the existing marker. registry:Host@1065,registry:Host@1351,registry:Host@392,registry:Host@824,whole:Route@1185,whole:Route@1260,whole:Route@1695,whole:Route@1818,whole:Route@322,whole:Route@479,whole:Route@599,whole:Route@709 a91dc2bfff249c85803712c67aee834ef0dec73a15e58cd1744293f1ad34a749
@legacy 5de300e82a159500458789ade665f935e8f270a1dd2a7bb4370577d7da9a0900 internal/activator/escrow_authority.go ExecBackend.holdsEscrowAuthority legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: inspect verified route mode, use the existing held coordinator lookup with Err/Lost for stateless, otherwise the original holdsLease; no acquisition, I/O or process stop. registry:Host@111,registry:Host@153,registry:Stateless@74 b0494d2c2e374a7780705665f1d80e584aa7783a551ffc28f4d7d3e7b1afe8e4
+@legacy 7c4e80d5ef7c6b510d2eb9e9c92f74d8c93ffa8b5b13f9d54210342c014fe257 internal/activator/escrow_authority.go ExecBackend.prepareStatelessEscrow legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3b round 1 I2 / R20: for the matching released stateless attempt, validate route identity and reuse exact-lifetime held authority. Otherwise check readiness/conflict/layout and read the existing files manifest without a publisher. A complete trio stays read-only; missing trio calls the existing assignment/lifetime-judged Coordination.Acquire, whose RetryAt cache prevents early contention retries. Errors retain the approved waiting sentinel; no mint, publish, new paths, timer, release rerun or process stop. Existing launch preparation retains sealed restore, divergence, mint and first-publish checks. registry:Account@248,registry:App@272,registry:Host@293,registry:Host@539,registry:Host@745,registry:Host@861,registry:Stateless@218,whole:Route@469,whole:Route@619 354656e9bcd7f3f8e7b72625beb16329d30648fb1eb2a7c8eab09fc4a5516e02
+@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 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
@@ -42,7 +44,7 @@
@legacy a510c931a6497df71418333b6cf801a183616dadcf90409c1f1d7daa5786ae6b internal/activator/stateless.go storageVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Delete CARLOS_DB after user environment merges for a launch whose actual verified generation is stateless; preserve every other environment variable. registry:Stateless@83 80d538cdee331a4afcdea36daf2ce253c299b9ef1aa5a1b1ed8ec0219c2d1054
@legacy e121c698e2eb8423a9f9bcb1d22bf2f83a6fd32a3c90da68905d0be861393002 internal/activator/stateless.go withDeclarations legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry verified storage or successful preparation facts only within one identity/account/app attempt. Pure context values, no store read, polling, authority acquisition or global cache. registry:Account@231,registry:App@243 63c2b119bdd8eb5b873366c3b969efac92f6e8bf4f0a8811592285b1911b61fd
@legacy 262c1e752d8ed1886dddb5457b835ea64a2a3d6ade6836be4593366dace8788b internal/activator/stateless.go withStorageMode legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry verified storage or successful preparation facts only within one identity/account/app attempt. Pure context values, no store read, polling, authority acquisition or global cache. registry:Account@208,registry:App@220 3a42c298bccefd5d1bf5e553db32e72e2fe117cc11554ace02c0d58920b50f58
-@legacy 088046a3995bfabca5ef644c83320f529e9ea94ddf2c4dc9d890843e87e1c811 internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. registry:Account@544,registry:App@574,registry:GoodDemand@2971,registry:GoodDigest@2956,registry:GoodVersion@2940,registry:Host@1170,registry:Host@224,registry:Host@3027,registry:Host@3085,registry:Host@3301,registry:Host@3369,registry:Host@601,whole:Route@3094,whole:Route@3101,whole:Route@3653,whole:Route@483 d4429770206e5905e3789157cbf222504cd34d0b7a4e22c765aee1b24a3e5e61
+@legacy d0144a62af1d234245f362382a1d66da7fb5f0c64b488cc512ae1d539225b7e0 internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. Fix 3b round 1 I2 / R20: only the matching released branch calls the backend escrow initializer. Held authority is reused; absent trio can acquire through the existing coordinator adapter. No release rerun, deploy mutation, new record read or loop; existing final-exec checks from 3a remain unchanged. registry:Account@544,registry:App@574,registry:GoodDemand@3101,registry:GoodDigest@3086,registry:GoodVersion@3070,registry:Host@1300,registry:Host@224,registry:Host@3157,registry:Host@3215,registry:Host@3431,registry:Host@3499,registry:Host@601,whole:Route@1110,whole:Route@3224,whole:Route@3231,whole:Route@3783,whole:Route@483 cd038701b7b55e7c1ce5a52c8e5b16170db5a38b960dba35e46e1080474e50f8
@legacy 71cd83557f6267ac468b6b4d6e8a98b65d68927101a5e3ee45e9d2c83b6f4d0a internal/activator/swap.go Service.Swap legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Verify the target canonical mode and prepare its durable stateless release before stopping the incumbent. A mode change forces the existing proven hold path; same-mode stateless overlap uses local lifecycle gates and the final current-record check, without a serving lease. whole:Route@1042,whole:Route@1051,whole:Route@1232,whole:Route@1332,whole:Route@1421,whole:Route@1500,whole:Route@1745,whole:Route@785,whole:Route@801,whole:Route@992 04b35d9e1b21a082f01a3327c07ae483efc8a9ee04ef2512ff92c2730a63323c
@legacy 6ae2d9cc990121ca06283879f13bee622ce375cd7b6b4f1cb9157b038508205c internal/activator/wakeidentity.go Service.currentWakeRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing registry and labelled fleet record recheck for reuse without a serving lease; return the observed row and record and refuse a nil record. No writer or new path. registry:Assigned@1387,registry:Assigned@1597,registry:Assigned@427,registry:Host@1062,registry:Host@1229,registry:Host@1522,registry:Host@198,registry:Host@296,registry:Host@790,registry:Host@933,whole:Route@1146,whole:Route@146,whole:Route@1622,whole:Route@344,whole:Route@348,whole:Route@405,whole:Route@416,whole:Route@457,whole:Route@540 91b83049c05e172b4a5fa230b1e012bfb27edd9ae330d82edd85cc29bc0d957c
@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
@@ -72,7 +74,7 @@
@legacy 87facefa950b6795a41f076ea09344c8a38af6b2e9a5e1f22f8990fab86cb433 internal/host/rollout.go armRollout legacy accepted-legacy accepted-legacy;rev3=fix1-merge-review;basis=Comment-only clarification of failure-book saves; existing agent rollout setup remains legacy.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: after the overlap scheduler arms, calls svc.ArmRootfs() so rootfs rows start only where the scheduler armed this boot; never on the refuseManaged path; no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Bind Service.ReplicaDeployID to the same FailureBook the scheduler owns and bind RuntimeSelection to one CanonicalStatelessDigest read through the existing store. Fix 3a round 1 R18: canonical selection receives route stateless projection to keep legacy DemandHold fallback only for stateful/unknown builds; staged digest mismatch still refuses. registry:App@2912,registry:Stateless@2931,whole:Route@2907,whole:Route@3599,whole:Route@3683 2a3b3e6584d1ab23f1b4c62b16fe129a75d14564afd0aabbdae11de1082320e9
@legacy ab3c943985837d2983dc10942bddd8299172199d9a89247870e08c8464685aca internal/ops/hibernate_verify.go HibernatingHosts legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the same expression as FleetDBsWithSkipped's exclusion, Route.ActivatorLeased instead of Hibernate, so a resident rootfs row is drilled here;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Exclude projected stateless routes from per-host database freshness verification. Box-wide Litestream exclusion remains 3b-owned. registry:Backing@397,registry:DBPath@626,registry:DBPath@707,registry:Host@691,registry:Stateless@588,whole:Route@190 a9dc81dd32b8b49241b5ae6816af2c5346314dc7211389aff630ed5a6b679c12
@legacy 8472d9e3998fd43ce53fab9b6cd708f3ec7ae011365863ee6005ae112ff90c1c internal/ops/litestream.go FleetDBsWithSkipped legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the box-wide litestream exclusion is Route.ActivatorLeased (hibernating rows, sidecars included, and every instance with a runtime) instead of Hibernate, so the activator alone replicates a resident rootfs database;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: collect stateless DB paths from the existing registry read and exclude them from flat/nested claiming, unit discovery and overlapping active unit trees; report discovered excluded files as skipped. No database, WAL or SHM modified; the existing HibernatingHosts exclusion supplies the maintenance half. file:Glob@1552,file:Glob@2055,file:Stat@3826,file:Stat@4756,registry:Backing@453,registry:DBPath@1181,registry:DBPath@1228,registry:DBPath@3195,registry:DBPath@3290,registry:DBPath@363,registry:DBPath@409,registry:DBPath@734,registry:DBPath@780,registry:Host@3238,registry:Stateless@3180,registry:Stateless@343,whole:Route@3166,whole:Route@329 5122a092c66f1d44fb98a7dbe1d8d4ac5d013ee8be178694548704af32441464
-@legacy 2892f3f67c2ac4c896fb770aa4017a5670f7ca88e0f37074334b35b37df7f233 internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. registry:Account@36655,registry:Account@37920,registry:Account@56184,registry:Account@56230,registry:Account@57074,registry:Account@57451,registry:Account@57677,registry:Account@57744,registry:Account@57790,registry:Account@57883,registry:Account@57925,registry:Account@58573,registry:Account@58831,registry:Account@59562,registry:Account@59610,registry:Account@60019,registry:Account@60065,registry:Account@60310,registry:Account@60735,registry:Account@61223,registry:Account@61959,registry:Account@62152,registry:Account@62498,registry:Account@63063,registry:App@36628,registry:App@37893,registry:App@56204,registry:App@56242,registry:App@57086,registry:App@57463,registry:App@57689,registry:App@57764,registry:App@57802,registry:App@57903,registry:App@58585,registry:App@58843,registry:App@59574,registry:App@59622,registry:App@60039,registry:App@60077,registry:App@60322,registry:App@60747,registry:App@61235,registry:App@61971,registry:App@62164,registry:App@62510,registry:App@63075,registry:ClaimOwnership@37242,registry:DBPath@46099,registry:DBPath@46114,registry:DBPath@46360,registry:DBPath@46963,registry:DBPath@46976,registry:EgressAllow@35741,registry:Gate@42444,registry:Gate@42584,registry:Gate@42871,registry:Hibernate@41116,registry:Hibernate@41314,registry:Hibernate@41379,registry:Hibernate@41718,registry:Hibernate@42069,registry:Hibernate@42379,registry:HoldOp@61704,registry:HoldOp@61795,registry:HoldOp@61930,registry:HoldOp@62306,registry:Host@26749,registry:Host@56163,registry:Host@57050,registry:Host@57427,registry:Host@57591,registry:Host@57697,registry:Host@58593,registry:Host@58799,registry:Host@59902,registry:Host@60174,registry:Host@60289,registry:Host@60612,registry:Host@60709,registry:Host@61100,registry:Host@61197,registry:Host@61411,registry:Host@61786,registry:Host@61921,registry:Host@62125,registry:Host@62198,registry:Host@62297,registry:Host@62472,registry:Host@62547,registry:Host@62633,registry:Host@63040,registry:Kind@37384,registry:Kind@37647,registry:Kind@46017,registry:Kind@46030,registry:Kind@46140,registry:Kind@46153,registry:Kind@46874,registry:Kind@46885,registry:Kind@55287,registry:Kind@61402,registry:Kind@61912,registry:Kind@62288,registry:Kind@62463,registry:Kind@62624,registry:PolicyExpiresAt@35766,registry:Pool@55373,registry:Provisioned@36604,registry:Provisioned@37869,registry:Provisioned@55332,registry:RateLimit@42957,registry:RateLimit@43108,registry:RateLimit@43395,registry:Region@55362,registry:Replication@41803,registry:Replication@41930,registry:Runtime@29406,registry:Runtime@29584,registry:Runtime@31789,registry:Runtime@40483,registry:Runtime@40537,registry:Runtime@40741,registry:Seed@44497,registry:SeedSource@43980,registry:Size@35757,registry:Socket@46065,registry:Socket@46080,registry:Socket@46377,registry:Socket@46933,registry:Socket@46946,registry:Stateless@47034,registry:Unit@45983,registry:Unit@45996,registry:Unit@46900,registry:Unit@46911,whole:ClaimOwnership@37245,whole:ClaimOwnership@37262,whole:Route@26731,whole:Route@26742,whole:Route@26760,whole:Route@28041,whole:Route@29901,whole:Route@29908,whole:Route@29948,whole:Route@30309,whole:Route@30647,whole:Route@31094,whole:Route@31145,whole:Route@31182,whole:Route@32854,whole:Route@33063,whole:Route@33402,whole:Route@33411,whole:Route@33457,whole:Route@35690,whole:Route@36249,whole:Route@36720,whole:Route@36730,whole:Route@37087,whole:Route@37094,whole:Route@37162,whole:Route@37485,whole:Route@38518,whole:Route@41469,whole:Route@46209,whole:Route@47147,whole:Route@47980,whole:Route@48025,whole:Route@48035,whole:Route@48905,whole:Route@49932,whole:Route@55398,whole:Route@55546,whole:Route@56643,whole:Route@57002,whole:Route@57384,whole:Route@62385,whole:Route@62970,whole:Route@63020 fc71ce39907ff045f2a33d4561fc42ab2ab7f36c500f1625ddca1141c4295f3f
+@legacy d8aa47e1c58ad1b58bf5675bf0fa9195ca20d7538a00e3daa9a604ff98130456 internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry. registry:Account@36655,registry:Account@37920,registry:Account@56238,registry:Account@56284,registry:Account@57128,registry:Account@57505,registry:Account@57731,registry:Account@57798,registry:Account@57844,registry:Account@57937,registry:Account@57979,registry:Account@58627,registry:Account@58885,registry:Account@59616,registry:Account@59664,registry:Account@60073,registry:Account@60119,registry:Account@60364,registry:Account@60789,registry:Account@61277,registry:Account@62013,registry:Account@62206,registry:Account@62552,registry:Account@63117,registry:App@36628,registry:App@37893,registry:App@56258,registry:App@56296,registry:App@57140,registry:App@57517,registry:App@57743,registry:App@57818,registry:App@57856,registry:App@57957,registry:App@58639,registry:App@58897,registry:App@59628,registry:App@59676,registry:App@60093,registry:App@60131,registry:App@60376,registry:App@60801,registry:App@61289,registry:App@62025,registry:App@62218,registry:App@62564,registry:App@63129,registry:ClaimOwnership@37242,registry:DBPath@46099,registry:DBPath@46114,registry:DBPath@46360,registry:DBPath@46963,registry:DBPath@46976,registry:EgressAllow@35741,registry:Gate@42444,registry:Gate@42584,registry:Gate@42871,registry:Hibernate@41116,registry:Hibernate@41314,registry:Hibernate@41379,registry:Hibernate@41718,registry:Hibernate@42069,registry:Hibernate@42379,registry:HoldOp@61758,registry:HoldOp@61849,registry:HoldOp@61984,registry:HoldOp@62360,registry:Host@26749,registry:Host@56217,registry:Host@57104,registry:Host@57481,registry:Host@57645,registry:Host@57751,registry:Host@58647,registry:Host@58853,registry:Host@59956,registry:Host@60228,registry:Host@60343,registry:Host@60666,registry:Host@60763,registry:Host@61154,registry:Host@61251,registry:Host@61465,registry:Host@61840,registry:Host@61975,registry:Host@62179,registry:Host@62252,registry:Host@62351,registry:Host@62526,registry:Host@62601,registry:Host@62687,registry:Host@63094,registry:Kind@37384,registry:Kind@37647,registry:Kind@46017,registry:Kind@46030,registry:Kind@46140,registry:Kind@46153,registry:Kind@46874,registry:Kind@46885,registry:Kind@55341,registry:Kind@61456,registry:Kind@61966,registry:Kind@62342,registry:Kind@62517,registry:Kind@62678,registry:PolicyExpiresAt@35766,registry:Pool@55427,registry:Provisioned@36604,registry:Provisioned@37869,registry:Provisioned@55386,registry:RateLimit@42957,registry:RateLimit@43108,registry:RateLimit@43395,registry:Region@55416,registry:Replication@41803,registry:Replication@41930,registry:Runtime@29406,registry:Runtime@29584,registry:Runtime@31789,registry:Runtime@40483,registry:Runtime@40537,registry:Runtime@40741,registry:Seed@44497,registry:SeedSource@43980,registry:Size@35757,registry:Socket@46065,registry:Socket@46080,registry:Socket@46377,registry:Socket@46933,registry:Socket@46946,registry:Stateless@47034,registry:Unit@45983,registry:Unit@45996,registry:Unit@46900,registry:Unit@46911,whole:ClaimOwnership@37245,whole:ClaimOwnership@37262,whole:Route@26731,whole:Route@26742,whole:Route@26760,whole:Route@28041,whole:Route@29901,whole:Route@29908,whole:Route@29948,whole:Route@30309,whole:Route@30647,whole:Route@31094,whole:Route@31145,whole:Route@31182,whole:Route@32854,whole:Route@33063,whole:Route@33402,whole:Route@33411,whole:Route@33457,whole:Route@35690,whole:Route@36249,whole:Route@36720,whole:Route@36730,whole:Route@37087,whole:Route@37094,whole:Route@37162,whole:Route@37485,whole:Route@38518,whole:Route@41469,whole:Route@46209,whole:Route@47147,whole:Route@48034,whole:Route@48079,whole:Route@48089,whole:Route@48959,whole:Route@49986,whole:Route@55452,whole:Route@55600,whole:Route@56697,whole:Route@57056,whole:Route@57438,whole:Route@62439,whole:Route@63024,whole:Route@63074 a450a5861aebb872209cf3b2da26c78dc0dea5b660ce31d7354fb8fe772b88e6
@legacy 4139954f5fa906f863814feb7efad95d85503ef68272877043de62c66c5cb2df internal/registry/forward.go Registry.PutForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 2: the only writer of a forward row's declared columns: refuses an argument whose kind is not forward; copies only the declared fields from its argument (Status ready, Provisioned true; no forbidden column is ever written); inside one IMMEDIATE transaction refuses a host a non-forward row holds (ErrHostHeld); keeps FleetBox while Region is unchanged; preserves the observational columns (+file:Exec, +file:QueryRow, +registry:Account, App, Channel, RateLimit, Region, Slug, +registry:Host x3, +registry:Kind, +registry:remote x2, +whole:Route x3, +whole:remoteClient x2).;rev3=census-ruling-fleet-routes-followups;basis=refuses up front, with the new sentinel ErrNotForward and before any read or write, an rt that is not a forward row (as before, now a sentinel), has an empty Host, or whose Region is not a fleet placement (registry.FleetPlacement); +registry:Host x2 and +registry:Region x2 read only the argument in those checks; the transaction and statement are unchanged;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3), merged with main's ErrNotForward refusals (kept unchanged): the written row also carries FleetLabel = rt.FleetLabel and FleetBox = rt.FleetLabel; its conflict arm (forwardKept) writes fleet_label from the call and fleet_box as the call's label when set, else kept while the region is unchanged. The hub's forward phase in the agent, not root.;rev3=census-ruling-stateless-replicas-1;basis=Carry declarative Stateless into forward rows under existing transaction and shape guards; projection only. file:Exec@1255,file:QueryRow@1031,registry:Account@693,registry:App@670,registry:Channel@746,registry:FleetLabel@881,registry:FleetLabel@911,registry:Host@1085,registry:Host@197,registry:Host@234,registry:Host@419,registry:Host@594,registry:Kind@206,registry:RateLimit@773,registry:Region@428,registry:Region@720,registry:Region@84,registry:Slug@646,registry:Stateless@941,registry:remote@446,registry:remote@476,whole:Route@1288,whole:Route@531,whole:Route@539,whole:remoteClient@448,whole:remoteClient@478 dfabb444b451e5a15ebb7dfa39d5ac37b8156acaef52ea9dd766a9a7ea017ccd
@legacy f144338de75cd87f6a594d5383e7693220a591252502d62d81d567c018eaab9e 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
@legacy 3189111bdce9af1ad57a8f5dea9a4ff20f5bb42252044a939fd7e1a46b3d0833 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
@@ -122,6 +124,8 @@ internal/activator/activator.go Service.doWakeOnce legacy accepted-legacy accept
internal/activator/escrow.go ExecBackend.escrowMintGuardWithAuthority legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: prior mint decision moved intact under the wrapper, except its authority test now selects by verified mode. Reads only the existing escrow bucket and local conflict marker via existing helpers; keyless, no-store and bucket-knowledge behavior unchanged for stateful. registry:Host@696,whole:Route@1082,whole:Route@138,whole:Route@222,whole:Route@304,whole:Route@540,whole:Route@779,whole:Route@916 571c358d71cfe03d93f1a3fa4c67465aebe4c139b92bf593e3646c45490c0f35
internal/activator/escrow_authority.go ExecBackend.followerEscrowEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: require a readable complete sealed trio from the existing files manifest, restore missing local files through the existing beneath/no-replace helper, capture env and compare local trio/minted variables against escrow before returning it. Local reads remain under the classified host data directory with ReadBeneathLimit; same sealed bucket keys, no mint, publisher or remote write. Conflict refusal uses the existing marker. registry:Host@1065,registry:Host@1351,registry:Host@392,registry:Host@824,whole:Route@1185,whole:Route@1260,whole:Route@1695,whole:Route@1818,whole:Route@322,whole:Route@479,whole:Route@599,whole:Route@709 a91dc2bfff249c85803712c67aee834ef0dec73a15e58cd1744293f1ad34a749
internal/activator/escrow_authority.go ExecBackend.holdsEscrowAuthority legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: inspect verified route mode, use the existing held coordinator lookup with Err/Lost for stateless, otherwise the original holdsLease; no acquisition, I/O or process stop. registry:Host@111,registry:Host@153,registry:Stateless@74 b0494d2c2e374a7780705665f1d80e584aa7783a551ffc28f4d7d3e7b1afe8e4
+internal/activator/escrow_authority.go ExecBackend.prepareStatelessEscrow legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3b round 1 I2 / R20: for the matching released stateless attempt, validate route identity and reuse exact-lifetime held authority. Otherwise check readiness/conflict/layout and read the existing files manifest without a publisher. A complete trio stays read-only; missing trio calls the existing assignment/lifetime-judged Coordination.Acquire, whose RetryAt cache prevents early contention retries. Errors retain the approved waiting sentinel; no mint, publish, new paths, timer, release rerun or process stop. Existing launch preparation retains sealed restore, divergence, mint and first-publish checks. registry:Account@248,registry:App@272,registry:Host@293,registry:Host@539,registry:Host@745,registry:Host@861,registry:Stateless@218,whole:Route@469,whole:Route@619 354656e9bcd7f3f8e7b72625beb16329d30648fb1eb2a7c8eab09fc4a5516e02
+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/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
@@ -137,7 +141,7 @@ internal/activator/stateless.go carryStatelessPreparation legacy accepted-legacy
internal/activator/stateless.go storageVars legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Delete CARLOS_DB after user environment merges for a launch whose actual verified generation is stateless; preserve every other environment variable. registry:Stateless@83 80d538cdee331a4afcdea36daf2ce253c299b9ef1aa5a1b1ed8ec0219c2d1054
internal/activator/stateless.go withDeclarations legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry verified storage or successful preparation facts only within one identity/account/app attempt. Pure context values, no store read, polling, authority acquisition or global cache. registry:Account@231,registry:App@243 63c2b119bdd8eb5b873366c3b969efac92f6e8bf4f0a8811592285b1911b61fd
internal/activator/stateless.go withStorageMode legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry verified storage or successful preparation facts only within one identity/account/app attempt. Pure context values, no store read, polling, authority acquisition or global cache. registry:Account@208,registry:App@220 3a42c298bccefd5d1bf5e553db32e72e2fe117cc11554ace02c0d58920b50f58
-internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. registry:Account@544,registry:App@574,registry:GoodDemand@2971,registry:GoodDigest@2956,registry:GoodVersion@2940,registry:Host@1170,registry:Host@224,registry:Host@3027,registry:Host@3085,registry:Host@3301,registry:Host@3369,registry:Host@601,whole:Route@3094,whole:Route@3101,whole:Route@3653,whole:Route@483 d4429770206e5905e3789157cbf222504cd34d0b7a4e22c765aee1b24a3e5e61
+internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. Fix 3b round 1 I2 / R20: only the matching released branch calls the backend escrow initializer. Held authority is reused; absent trio can acquire through the existing coordinator adapter. No release rerun, deploy mutation, new record read or loop; existing final-exec checks from 3a remain unchanged. registry:Account@544,registry:App@574,registry:GoodDemand@3101,registry:GoodDigest@3086,registry:GoodVersion@3070,registry:Host@1300,registry:Host@224,registry:Host@3157,registry:Host@3215,registry:Host@3431,registry:Host@3499,registry:Host@601,whole:Route@1110,whole:Route@3224,whole:Route@3231,whole:Route@3783,whole:Route@483 cd038701b7b55e7c1ce5a52c8e5b16170db5a38b960dba35e46e1080474e50f8
internal/activator/swap.go Service.Swap legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Verify the target canonical mode and prepare its durable stateless release before stopping the incumbent. A mode change forces the existing proven hold path; same-mode stateless overlap uses local lifecycle gates and the final current-record check, without a serving lease. whole:Route@1042,whole:Route@1051,whole:Route@1232,whole:Route@1332,whole:Route@1421,whole:Route@1500,whole:Route@1745,whole:Route@785,whole:Route@801,whole:Route@992 04b35d9e1b21a082f01a3327c07ae483efc8a9ee04ef2512ff92c2730a63323c
internal/activator/wakeidentity.go Service.currentWakeRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing registry and labelled fleet record recheck for reuse without a serving lease; return the observed row and record and refuse a nil record. No writer or new path. registry:Assigned@1387,registry:Assigned@1597,registry:Assigned@427,registry:Host@1062,registry:Host@1229,registry:Host@1522,registry:Host@198,registry:Host@296,registry:Host@790,registry:Host@933,whole:Route@1146,whole:Route@146,whole:Route@1622,whole:Route@344,whole:Route@348,whole:Route@405,whole:Route@416,whole:Route@457,whole:Route@540 91b83049c05e172b4a5fa230b1e012bfb27edd9ae330d82edd85cc29bc0d957c
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
@@ -167,7 +171,7 @@ internal/host/fleetbind.go residentBindingHosts legacy accepted-legacy accepted-
internal/host/rollout.go armRollout legacy accepted-legacy accepted-legacy;rev3=fix1-merge-review;basis=Comment-only clarification of failure-book saves; existing agent rollout setup remains legacy.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: after the overlap scheduler arms, calls svc.ArmRootfs() so rootfs rows start only where the scheduler armed this boot; never on the refuseManaged path; no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Bind Service.ReplicaDeployID to the same FailureBook the scheduler owns and bind RuntimeSelection to one CanonicalStatelessDigest read through the existing store. Fix 3a round 1 R18: canonical selection receives route stateless projection to keep legacy DemandHold fallback only for stateful/unknown builds; staged digest mismatch still refuses. registry:App@2912,registry:Stateless@2931,whole:Route@2907,whole:Route@3599,whole:Route@3683 2a3b3e6584d1ab23f1b4c62b16fe129a75d14564afd0aabbdae11de1082320e9
internal/ops/hibernate_verify.go HibernatingHosts legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the same expression as FleetDBsWithSkipped's exclusion, Route.ActivatorLeased instead of Hibernate, so a resident rootfs row is drilled here;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Exclude projected stateless routes from per-host database freshness verification. Box-wide Litestream exclusion remains 3b-owned. registry:Backing@397,registry:DBPath@626,registry:DBPath@707,registry:Host@691,registry:Stateless@588,whole:Route@190 a9dc81dd32b8b49241b5ae6816af2c5346314dc7211389aff630ed5a6b679c12
internal/ops/litestream.go FleetDBsWithSkipped legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the box-wide litestream exclusion is Route.ActivatorLeased (hibernating rows, sidecars included, and every instance with a runtime) instead of Hibernate, so the activator alone replicates a resident rootfs database;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: collect stateless DB paths from the existing registry read and exclude them from flat/nested claiming, unit discovery and overlapping active unit trees; report discovered excluded files as skipped. No database, WAL or SHM modified; the existing HibernatingHosts exclusion supplies the maintenance half. file:Glob@1552,file:Glob@2055,file:Stat@3826,file:Stat@4756,registry:Backing@453,registry:DBPath@1181,registry:DBPath@1228,registry:DBPath@3195,registry:DBPath@3290,registry:DBPath@363,registry:DBPath@409,registry:DBPath@734,registry:DBPath@780,registry:Host@3238,registry:Stateless@3180,registry:Stateless@343,whole:Route@3166,whole:Route@329 5122a092c66f1d44fb98a7dbe1d8d4ac5d013ee8be178694548704af32441464
-internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. registry:Account@36655,registry:Account@37920,registry:Account@56184,registry:Account@56230,registry:Account@57074,registry:Account@57451,registry:Account@57677,registry:Account@57744,registry:Account@57790,registry:Account@57883,registry:Account@57925,registry:Account@58573,registry:Account@58831,registry:Account@59562,registry:Account@59610,registry:Account@60019,registry:Account@60065,registry:Account@60310,registry:Account@60735,registry:Account@61223,registry:Account@61959,registry:Account@62152,registry:Account@62498,registry:Account@63063,registry:App@36628,registry:App@37893,registry:App@56204,registry:App@56242,registry:App@57086,registry:App@57463,registry:App@57689,registry:App@57764,registry:App@57802,registry:App@57903,registry:App@58585,registry:App@58843,registry:App@59574,registry:App@59622,registry:App@60039,registry:App@60077,registry:App@60322,registry:App@60747,registry:App@61235,registry:App@61971,registry:App@62164,registry:App@62510,registry:App@63075,registry:ClaimOwnership@37242,registry:DBPath@46099,registry:DBPath@46114,registry:DBPath@46360,registry:DBPath@46963,registry:DBPath@46976,registry:EgressAllow@35741,registry:Gate@42444,registry:Gate@42584,registry:Gate@42871,registry:Hibernate@41116,registry:Hibernate@41314,registry:Hibernate@41379,registry:Hibernate@41718,registry:Hibernate@42069,registry:Hibernate@42379,registry:HoldOp@61704,registry:HoldOp@61795,registry:HoldOp@61930,registry:HoldOp@62306,registry:Host@26749,registry:Host@56163,registry:Host@57050,registry:Host@57427,registry:Host@57591,registry:Host@57697,registry:Host@58593,registry:Host@58799,registry:Host@59902,registry:Host@60174,registry:Host@60289,registry:Host@60612,registry:Host@60709,registry:Host@61100,registry:Host@61197,registry:Host@61411,registry:Host@61786,registry:Host@61921,registry:Host@62125,registry:Host@62198,registry:Host@62297,registry:Host@62472,registry:Host@62547,registry:Host@62633,registry:Host@63040,registry:Kind@37384,registry:Kind@37647,registry:Kind@46017,registry:Kind@46030,registry:Kind@46140,registry:Kind@46153,registry:Kind@46874,registry:Kind@46885,registry:Kind@55287,registry:Kind@61402,registry:Kind@61912,registry:Kind@62288,registry:Kind@62463,registry:Kind@62624,registry:PolicyExpiresAt@35766,registry:Pool@55373,registry:Provisioned@36604,registry:Provisioned@37869,registry:Provisioned@55332,registry:RateLimit@42957,registry:RateLimit@43108,registry:RateLimit@43395,registry:Region@55362,registry:Replication@41803,registry:Replication@41930,registry:Runtime@29406,registry:Runtime@29584,registry:Runtime@31789,registry:Runtime@40483,registry:Runtime@40537,registry:Runtime@40741,registry:Seed@44497,registry:SeedSource@43980,registry:Size@35757,registry:Socket@46065,registry:Socket@46080,registry:Socket@46377,registry:Socket@46933,registry:Socket@46946,registry:Stateless@47034,registry:Unit@45983,registry:Unit@45996,registry:Unit@46900,registry:Unit@46911,whole:ClaimOwnership@37245,whole:ClaimOwnership@37262,whole:Route@26731,whole:Route@26742,whole:Route@26760,whole:Route@28041,whole:Route@29901,whole:Route@29908,whole:Route@29948,whole:Route@30309,whole:Route@30647,whole:Route@31094,whole:Route@31145,whole:Route@31182,whole:Route@32854,whole:Route@33063,whole:Route@33402,whole:Route@33411,whole:Route@33457,whole:Route@35690,whole:Route@36249,whole:Route@36720,whole:Route@36730,whole:Route@37087,whole:Route@37094,whole:Route@37162,whole:Route@37485,whole:Route@38518,whole:Route@41469,whole:Route@46209,whole:Route@47147,whole:Route@47980,whole:Route@48025,whole:Route@48035,whole:Route@48905,whole:Route@49932,whole:Route@55398,whole:Route@55546,whole:Route@56643,whole:Route@57002,whole:Route@57384,whole:Route@62385,whole:Route@62970,whole:Route@63020 fc71ce39907ff045f2a33d4561fc42ab2ab7f36c500f1625ddca1141c4295f3f
+internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry. registry:Account@36655,registry:Account@37920,registry:Account@56238,registry:Account@56284,registry:Account@57128,registry:Account@57505,registry:Account@57731,registry:Account@57798,registry:Account@57844,registry:Account@57937,registry:Account@57979,registry:Account@58627,registry:Account@58885,registry:Account@59616,registry:Account@59664,registry:Account@60073,registry:Account@60119,registry:Account@60364,registry:Account@60789,registry:Account@61277,registry:Account@62013,registry:Account@62206,registry:Account@62552,registry:Account@63117,registry:App@36628,registry:App@37893,registry:App@56258,registry:App@56296,registry:App@57140,registry:App@57517,registry:App@57743,registry:App@57818,registry:App@57856,registry:App@57957,registry:App@58639,registry:App@58897,registry:App@59628,registry:App@59676,registry:App@60093,registry:App@60131,registry:App@60376,registry:App@60801,registry:App@61289,registry:App@62025,registry:App@62218,registry:App@62564,registry:App@63129,registry:ClaimOwnership@37242,registry:DBPath@46099,registry:DBPath@46114,registry:DBPath@46360,registry:DBPath@46963,registry:DBPath@46976,registry:EgressAllow@35741,registry:Gate@42444,registry:Gate@42584,registry:Gate@42871,registry:Hibernate@41116,registry:Hibernate@41314,registry:Hibernate@41379,registry:Hibernate@41718,registry:Hibernate@42069,registry:Hibernate@42379,registry:HoldOp@61758,registry:HoldOp@61849,registry:HoldOp@61984,registry:HoldOp@62360,registry:Host@26749,registry:Host@56217,registry:Host@57104,registry:Host@57481,registry:Host@57645,registry:Host@57751,registry:Host@58647,registry:Host@58853,registry:Host@59956,registry:Host@60228,registry:Host@60343,registry:Host@60666,registry:Host@60763,registry:Host@61154,registry:Host@61251,registry:Host@61465,registry:Host@61840,registry:Host@61975,registry:Host@62179,registry:Host@62252,registry:Host@62351,registry:Host@62526,registry:Host@62601,registry:Host@62687,registry:Host@63094,registry:Kind@37384,registry:Kind@37647,registry:Kind@46017,registry:Kind@46030,registry:Kind@46140,registry:Kind@46153,registry:Kind@46874,registry:Kind@46885,registry:Kind@55341,registry:Kind@61456,registry:Kind@61966,registry:Kind@62342,registry:Kind@62517,registry:Kind@62678,registry:PolicyExpiresAt@35766,registry:Pool@55427,registry:Provisioned@36604,registry:Provisioned@37869,registry:Provisioned@55386,registry:RateLimit@42957,registry:RateLimit@43108,registry:RateLimit@43395,registry:Region@55416,registry:Replication@41803,registry:Replication@41930,registry:Runtime@29406,registry:Runtime@29584,registry:Runtime@31789,registry:Runtime@40483,registry:Runtime@40537,registry:Runtime@40741,registry:Seed@44497,registry:SeedSource@43980,registry:Size@35757,registry:Socket@46065,registry:Socket@46080,registry:Socket@46377,registry:Socket@46933,registry:Socket@46946,registry:Stateless@47034,registry:Unit@45983,registry:Unit@45996,registry:Unit@46900,registry:Unit@46911,whole:ClaimOwnership@37245,whole:ClaimOwnership@37262,whole:Route@26731,whole:Route@26742,whole:Route@26760,whole:Route@28041,whole:Route@29901,whole:Route@29908,whole:Route@29948,whole:Route@30309,whole:Route@30647,whole:Route@31094,whole:Route@31145,whole:Route@31182,whole:Route@32854,whole:Route@33063,whole:Route@33402,whole:Route@33411,whole:Route@33457,whole:Route@35690,whole:Route@36249,whole:Route@36720,whole:Route@36730,whole:Route@37087,whole:Route@37094,whole:Route@37162,whole:Route@37485,whole:Route@38518,whole:Route@41469,whole:Route@46209,whole:Route@47147,whole:Route@48034,whole:Route@48079,whole:Route@48089,whole:Route@48959,whole:Route@49986,whole:Route@55452,whole:Route@55600,whole:Route@56697,whole:Route@57056,whole:Route@57438,whole:Route@62439,whole:Route@63024,whole:Route@63074 a450a5861aebb872209cf3b2da26c78dc0dea5b660ce31d7354fb8fe772b88e6
internal/registry/forward.go Registry.PutForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 2: the only writer of a forward row's declared columns: refuses an argument whose kind is not forward; copies only the declared fields from its argument (Status ready, Provisioned true; no forbidden column is ever written); inside one IMMEDIATE transaction refuses a host a non-forward row holds (ErrHostHeld); keeps FleetBox while Region is unchanged; preserves the observational columns (+file:Exec, +file:QueryRow, +registry:Account, App, Channel, RateLimit, Region, Slug, +registry:Host x3, +registry:Kind, +registry:remote x2, +whole:Route x3, +whole:remoteClient x2).;rev3=census-ruling-fleet-routes-followups;basis=refuses up front, with the new sentinel ErrNotForward and before any read or write, an rt that is not a forward row (as before, now a sentinel), has an empty Host, or whose Region is not a fleet placement (registry.FleetPlacement); +registry:Host x2 and +registry:Region x2 read only the argument in those checks; the transaction and statement are unchanged;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3), merged with main's ErrNotForward refusals (kept unchanged): the written row also carries FleetLabel = rt.FleetLabel and FleetBox = rt.FleetLabel; its conflict arm (forwardKept) writes fleet_label from the call and fleet_box as the call's label when set, else kept while the region is unchanged. The hub's forward phase in the agent, not root.;rev3=census-ruling-stateless-replicas-1;basis=Carry declarative Stateless into forward rows under existing transaction and shape guards; projection only. file:Exec@1255,file:QueryRow@1031,registry:Account@693,registry:App@670,registry:Channel@746,registry:FleetLabel@881,registry:FleetLabel@911,registry:Host@1085,registry:Host@197,registry:Host@234,registry:Host@419,registry:Host@594,registry:Kind@206,registry:RateLimit@773,registry:Region@428,registry:Region@720,registry:Region@84,registry:Slug@646,registry:Stateless@941,registry:remote@446,registry:remote@476,whole:Route@1288,whole:Route@531,whole:Route@539,whole:remoteClient@448,whole:remoteClient@478 dfabb444b451e5a15ebb7dfa39d5ac37b8156acaef52ea9dd766a9a7ea017ccd
internal/registry/registry.go routeArgs authority E3 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), wherever a route is inserted: Upsert, the cold handover restore and the import journal's inserts: the bind list from Registry.Upsert's body (and RestoreClaimRows'), with seed_source and import_gate added; E3, the same family as Registry.Upsert, whose body it came from;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), wherever a route is inserted: the bind list gains t.RateLimit for the new rate_limit column (routeCols and Upsert's conflict clause gain it too); the new kind is registry:RateLimit, one site; it binds the value and decides nothing; E3, as before;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=the bind list gains t.Runtime for the new runtime column (routeCols, routeColCount 57 with main's rate_limit, and Upsert's conflict clause gain it too); the new kind is registry:Runtime, one site; it binds the value and decides nothing; E3, as before; re-digested at the merge of origin/main 3c33f2eb: main's assets_off and asset_gen (edge asset cache plan 1) bound 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) bound 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: the bind list gains t.EgressAllow, t.Size and t.PolicyExpiresAt for the three new columns (routeCols, routeColCount 64, and Upsert's conflict clause gain them too); the new kinds are registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each; it binds the values and decides nothing; E3, as before;rev3=census-ruling-region-ha-p1a;basis=binds one more column, ha, as an integer from Route.HA (+registry:HA); keeps authority E3;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 5): binds three more columns, t.Assigned, b2iDB(t.Moved) and t.FleetLabel (routeColCount 65 to 68).;rev3=census-ruling-stateless-replicas-1;basis=Encode the additive Stateless flag in the shared SQL insert argument list; no launch authority. registry:Account@355,registry:Addr@83,registry:Addrs@451,registry:App@152,registry:Args@505,registry:AssetGen@818,registry:AssetsOff@804,registry:Assigned@916,registry:Backing@253,registry:BuildState@730,registry:Canary@216,registry:Caps@381,registry:CertExpiresAt@338,registry:Channel@177,registry:ClaimIncarnation@577,registry:ClaimOwner@611,registry:ClaimRowID@625,registry:ClaimStamp@597,registry:CreatedAt@492,registry:DBPath@116,registry:DNSCheckedAt@320,registry:DNSStatus@307,registry:EgressAllow@861,registry:Environment@366,registry:FleetBox@439,registry:FleetLabel@944,registry:Gate@484,registry:GoodDemand@680,registry:GoodDigest@666,registry:GoodVersion@651,registry:HA@909,registry:Health@460,registry:Hibernate@196,registry:HoldOp@639,registry:Host@49,registry:IdleSeconds@513,registry:ImportGate@760,registry:Incarnation@830,registry:Kind@65,registry:LastError@101,registry:MaxRunSeconds@528,registry:Moved@934,registry:NextDue@242,registry:Platform@294,registry:PolicyExpiresAt@884,registry:Pool@159,registry:PrevVersion@137,registry:Provisioned@407,registry:RateLimit@785,registry:Region@167,registry:Replica@565,registry:Replicas@547,registry:Replication@227,registry:Runtime@774,registry:Seed@423,registry:SeedSource@746,registry:ServingSeq@845,registry:ServingVersion@694,registry:Size@876,registry:Slug@57,registry:Socket@73,registry:Stateless@964,registry:Status@91,registry:StatusNamed@272,registry:Steering@472,registry:Tunnel@389,registry:Unit@431,registry:UpdateSettings@712,registry:Version@126 7eee5ee9dbec674fc8fcaa7ff759c2825d2d0572358a62256e5355d7713acb79
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
@@ -190,10 +194,10 @@ internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census
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 de66e430161f2e4608aa2b8f3c287e3169f8632211ad21b622c3e8568ffec935
+@coverage internal/activator 5f226e5b6a312e7479bc2ff82296b62db732c1e32a0e798c910d684ad44a8bc5
@coverage internal/host 54ad894277d9e072cb1188c4ec61069f3dce22ea95a5f436d848c8a6680722bf
@coverage internal/ops 67289ea5b95d14e295bc19e855fab6b00ed240b822e75d4be42b9ded59662e4d
-@coverage internal/provision 39f9f19d43a2f77eee70c599ae7ea84e184e1eb8868e45603d9b3a426513518b
+@coverage internal/provision 98d437ab5b9838a252b4e8b517926cac9a568571eae6dc817f94f7ed489e19db
@coverage internal/registry 19a5a1350bc29eb4445afdbfacfa727218b8f0af44762d29bb56a67b2fa14882
@coverage internal/release 030034d231e1d6fd87044c3823b818d2ae0677d6fd8282a1a722a3c6c3b2a421
@coverage internal/replicas 53b94eb040154539a0a977498b4b8bc1d53d82f67c1c6233667a0b823dd30d8a