carlos / platform Public

fix: keep surviving copies healthy across assignment changes

Preserve member jobs and health through revision and deploy-stamp changes,
ignore revision-skewed observations, and allow mixed serving builds.
Check probe socket paths with unixdial.Checked and handle request errors.

Use one health-failure message, skip unsupported snapshot servers, and
log snapshot startup failure once while retaining bounded retry backoff.
Refresh the Task 1 census claims and proposal for the changed units.
Co-Authored-By: Codex (gpt-6-astra) <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 9eeafd076d642f741e45e6e3a554735879e39c07 parent 4167167
12 files changed, +419 −80
  • docs/superpowers/notes/census-proposal-stateless-replicas-3.md +8 −7
  • internal/edge/replicaprobe.go +8 −4
  • internal/edge/replicaprobe_test.go +83 −0
  • internal/edge/replicaprober.go +32 −21
  • internal/edge/replicaprober_test.go +170 −23
  • internal/edge/tunnel.go +5 −4
  • internal/host/agent.go +1 −3
  • internal/host/replicahealth.go +46 −0
  • internal/host/replicahealth_other.go +2 −3
  • internal/host/replicahealth_test.go +47 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv +16 −14

Intent

Human

<task-notification> <task-id>bg03oq5qh</task-id> <tool-use-id>toolu_01Lizk5tZNrzLX4c6oADK5ZG</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/bg03oq5qh.output</output-file> <status>completed</status> <summary>Background command "Wait for first of Task 1b or F8 round 2" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>a0e86c1b759697e4a</task-id> <tool-use-id>toolu_015mWXEjUx8qfXUDYpwCBsUG</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/a0e86c1b759697e4a.output</output-file> <status>completed</status> <summary>Agent "Task 1 review (spec + quality)" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Spec verdict:** ❌ Issues found. Two Important findings; everything else in the brief, both dispatches and the binding Ruling Q lines checks out. Six items can't be confirmed from the diff and are listed in the review. **Quality verdict:** Needs fixes. **Counts:** Critical 0, Important 2, Minor 7. **Important findings:** - **I1 (partly plan-mandated):** in `internal/edge/replicaprober.go` (lines 130-153 and 280), any assignment or deploy change restarts every copy of a host as unknown at the same moment. The job key includes the assignment revision, and `sameReplicaJob` also compares `Copies`, `ServingVersion`, `GoodVersion` and `GoodDigest`. So a scale-up from 2 to 3 copies, a box replacement or a deploy stamp change leaves the host with zero live copies for at least about 1 s. It stays dark longer if the hub's view of the revision changes before the box's. Once Task 3 routes from `Live`, that breaks the spec's "copies switch one at a time with no failed requests". The fix is to drop the stamp fields from `sameReplicaJob`, plus a controller ruling on whether a surviving box can keep its health across a revision-only change. - **I2:** in `internal/edge/replicaprober.go` (lines 283-287, pinned by the test at `replicaprober_test.go:738`), a copy is refused as stale whenever its version differs from the host row's `ServingVersion`. That is a single per-host value, so it can't describe several copies part-way through a rollout. The code's own comment says mixed versions are legitimate during a rolling deploy, and the spec has old and new builds serving side by side. Either hub rows never carry the field and the check is dead, or it will refuse half the copies mid-deploy. Review written to `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-replicas-3/.superpowers/sdd/2026-11-01-stateless-replicas-3-routing/task-1-review.md`.</result> <usage><subagent_tokens>150601</subagent_tokens><tool_uses>33</tool_uses><duration_ms>387674</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>a217b9bc91b704306</task-id> <tool-use-id>toolu_01MZYEL99Krzd8zRiepjrqoE</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/a217b9bc91b704306.output</output-file> <status>completed</status> <summary>Agent "Task 1 census review" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Verdict: CHANGES REQUIRED**, because of one blocking finding. Everything else in the proposal holds up against the code at tip 41671675. **Seal:** 59c0891618b9befae27ebe04d0a67b08c7f7658bca9f1c78bf6d05eb7a708e82 → 2c3d58a7cd1c3008e71f0c85ab41c886df496bc0974e1e9ccc9972ae7587c356. - The chain line matches it, and `make census-card` reports the census clean at that seal. - The main census tests pass: TestPlan14RootReadCensus, TestCensusScopeIsTheRootBinary, TestCensusRebaseCarriesDispositions, J4 and RejectsDrift. - 13 fixture tests (the RebaseProof, Removal and ScopeGuard families) could not run here. They all stop on the sandbox's read-only Go build cache, before testing anything, so they say nothing about the branch either way. **Findings:** - **F1 (blocking), `internal/edge/replicaprobe.go:60-63`:** the box-side probe connects to the app's socket with a plain dialer, skipping `unixdial.Checked`. - `internal/unixdial/unixdial.go:1-12` calls `Checked` the one way the edge and agent dial a unix socket. It refuses the instance control socket and rejects a symlinked socket. - Every other edge dial to an app socket uses it (`genproxy.go:51`, `:85`). - The path being dialled can be the registry row's `rt.Socket` copied as is (`generations.go:175`, `claimgen.go:49`). The `serveReplicaProbe` claim does not disclose this. - Fix: dial through `unixdial.Checked`, add a test showing the probe refuses the control socket and a mismatched socket, then re-run `census-propose`. - **N1 (non-blocking), `internal/activator/replicaprobe.go:17,29`:** `ProbeCopy` reads the registry three times per probe while holding the activator's global lock. A slow registry would stall the activator. It does not affect the census. - **N2 (non-blocking), `internal/edge/edge.go:1986-1989`:** `/__carlos/replica-probe` is now taken on every host. A tenant app can no longer serve that path; visitors get a 404 or 503. That should be a deliberate choice. - **N3 (non-blocking), `internal/host/movesprobe.go:88`:** existing code already dials an instance socket the same unchecked way. It is outside this diff and should not be cited as precedent for F1. The other claims check out: - The probe path makes no bucket calls. - The probe marker cannot be forged by a visitor. It is stripped in `ServeHTTP` and again by both tunnel forwarders. - Both reads are bounded: 64 KiB on the hub, 4 KiB drained on the box. - The directory open is read-only. - The health socket sits in a carlos-owned 0700 directory under `/run/carlos`, which tenant units cannot see, and it carries no socket path, tokens or environment. - The 16 legacy/accepted-legacy dispositions fit what each unit reads. I'd approve once F1 is fixed and the overlay is re-proposed. The full review is in `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-replicas-3/.superpowers/sdd/2026-11-01-stateless-replicas-3-routing/task-1-census-review.md`. I made no other edits or commits.</result> <usage><subagent_tokens>110682</subagent_tokens><tool_uses>35</tool_uses><duration_ms>401777</duration_ms></usage> </task-notification>

Attributed to this commit: 17.6 g CO₂e (2,025,079 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-3-routing, 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-3.md b/docs/superpowers/notes/census-proposal-stateless-replicas-3.md
index 7a11e0f61..d3dde6271 100644
--- a/docs/superpowers/notes/census-proposal-stateless-replicas-3.md
+++ b/docs/superpowers/notes/census-proposal-stateless-replicas-3.md
@@ -1,11 +1,11 @@
# Census approval: stateless-replicas-3
-Ruling `census-ruling-stateless-replicas-3`. The independent reviewer approves or rejects every change below, 16 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-stateless-replicas-3`. The independent reviewer approves or rejects every change below, 17 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
| `internal/edge/edge.go` `RunWithActivatorReady` | body | unchanged (5) | Task 1b: defer stopping and joining the edge's replica jobs at shutdown. Existing five direct read sites unchanged; no new reader or authority. |
-| `internal/host/agent.go` `runAgent` | body | unchanged (5) | Task 1a+1b: run the private replica-health Unix server with existing retry shape, cancel/join it at shutdown and supply Edge.ReplicaSnapshots in the ready hook. Existing five direct read sites unchanged; no console reader, polling loop or new credentials. |
+| `internal/host/agent.go` `runAgent` | body | unchanged (5) | Task 1 fix round 1 M3: retain the private snapshot source and cancel/join ownership, but use the replica-health-specific retry loop. It logs its first failure only and retains the existing exponential backoff capped at 30 seconds; unsupported builds return nil. Existing five direct read sites unchanged; no new credentials, bucket reader or app lifecycle action. |
| `internal/edge/edge.go` `Edge.ServeHTTP` | sites | +whole:Route | Task 1a: pass the already-resolved Route to the reserved replica-probe handler after acceptHop and existing admissionRefuses, requiring tunnel context plus private marker and refusing door/backhaul ingress. Added whole Route use only; scrub marker before forwarding; HA calls remain unchanged. |
Envelopes re-pinned: `internal/activator`, `internal/edge`, `internal/host`, `internal/replicas`, `internal/tunnelclient`.
@@ -26,17 +26,18 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/edge/replicaprober.go:Edge.syncReplicaProbes`: reads +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/edge/replicaprober.go:TunnelHub.probeReplica`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
- new `internal/edge/replicaprober.go:newReplicaProber`: reads +whole:Route; written legacy, accepted-legacy, frozen
-- new `internal/edge/replicaprober.go:replicaEvidenceMatches`: reads +registry:Account, +registry:App, +registry:GoodDigest ×2, +registry:GoodVersion, +registry:Host, +registry:Region, +registry:ServingVersion ×2, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/edge/replicaprober.go:replicaIdentityMatches`: reads +registry:Account, +registry:App, +registry:Host, +registry:Region, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/edge/replicaprober.go:replicaProber.Snapshot`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
- new `internal/edge/replicaprober.go:replicaProber.Stop`: reads +whole:Route; written legacy, accepted-legacy, frozen
-- new `internal/edge/replicaprober.go:replicaProber.Sync`: reads +registry:Account, +registry:App, +registry:FleetBoxes ×2, +registry:HA, +registry:Hibernate, +registry:Host ×4, +registry:Kind, +registry:Region, +registry:ReplicaIncarnation, +registry:ReplicaRevision, +whole:Route ×15; written legacy, accepted-legacy, frozen
-- new `internal/edge/replicaprober.go:replicaProber.reset`: reads +registry:Account, +registry:App, +registry:Region, +whole:Route ×3; written legacy, accepted-legacy, frozen
+- new `internal/edge/replicaprober.go:replicaProber.Sync`: reads +registry:Account, +registry:App, +registry:FleetBoxes ×2, +registry:HA, +registry:Hibernate, +registry:Host ×4, +registry:Kind, +registry:Region, +registry:ReplicaIncarnation, +whole:Route ×17; written legacy, accepted-legacy, frozen
+- new `internal/edge/replicaprober.go:replicaProber.record`: reads +registry:ReplicaRevision, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/edge/replicaprober.go:replicaProber.reset`: reads +registry:Account, +registry:App, +registry:Region, +registry:ReplicaRevision, +whole:Route ×4; written legacy, accepted-legacy, frozen
- new `internal/edge/replicaprober.go:replicaProber.snapshotLocked`: reads +registry:Account, +registry:App, +registry:Copies, +registry:FleetBoxes, +registry:Host ×2, +registry:ReplicaIncarnation, +registry:ReplicaRevision; written legacy, accepted-legacy, frozen
- new `internal/edge/replicaprober.go:replicaProber.snapshots`: reads +whole:Route ×3; written legacy, accepted-legacy, frozen
-- new `internal/edge/replicaprober.go:sameReplicaJob`: reads +registry:Account ×2, +registry:App ×2, +registry:Copies ×2, +registry:FleetBoxes ×2, +registry:GoodDigest ×2, +registry:GoodVersion ×2, +registry:Host, +registry:Region ×2, +registry:ReplicaIncarnation, +registry:ReplicaRevision, +registry:ServingVersion ×2, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/edge/replicaprober.go:sameReplicaJob`: reads +registry:Account ×2, +registry:App ×2, +registry:Host, +registry:Region ×2, +registry:ReplicaIncarnation, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/edge/tunnel.go:tunnelWire.Read`: reads +file:Read ×2; written legacy, accepted-legacy, frozen
- new `internal/host/replicahealth_linux.go:serveReplicaHealth`: reads +file:Lstat ×2, +file:Open; written legacy, accepted-legacy, frozen
-Seal: `59c0891618b9befae27ebe04d0a67b08c7f7658bca9f1c78bf6d05eb7a708e82` → `2c3d58a7cd1c3008e71f0c85ab41c886df496bc0974e1e9ccc9972ae7587c356`.
+Seal: `59c0891618b9befae27ebe04d0a67b08c7f7658bca9f1c78bf6d05eb7a708e82` → `04715476748eb88cc85ac2ab86e859343fa2657ae77027de1837773ae37f5ed0`.
Overlay: `internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/edge/replicaprobe.go b/internal/edge/replicaprobe.go
index 5b44a38a5..32d6a5378 100644
--- a/internal/edge/replicaprobe.go
+++ b/internal/edge/replicaprobe.go
@@ -11,6 +11,7 @@ import (
"github.com/carlosframework/platform/internal/registry"
"github.com/carlosframework/platform/internal/replicas"
"github.com/carlosframework/platform/internal/tunnelclient"
+ "github.com/carlosframework/platform/internal/unixdial"
)
const replicaProbePath = "/__carlos/replica-probe"
@@ -59,10 +60,14 @@ func (e *Edge) serveReplicaProbe(w http.ResponseWriter, r *http.Request, host st
}
transport := &http.Transport{DisableKeepAlives: true, DisableCompression: true,
DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
- return (&net.Dialer{}).DialContext(ctx, "unix", c.Socket)
+ return unixdial.Checked(ctx, &net.Dialer{}, c.Socket)
}}
defer transport.CloseIdleConnections()
- probe, _ := http.NewRequestWithContext(leg.Context(), http.MethodGet, "http://"+host+"/", nil)
+ probe, err := http.NewRequestWithContext(leg.Context(), http.MethodGet, "http://"+host+"/", nil)
+ if err != nil {
+ w.WriteHeader(http.StatusServiceUnavailable)
+ return
+ }
// RoundTrip never follows redirects. A fresh request carries no visitor
// credentials or probe marker, and bypasses every edge gate and cache.
resp, probeErr := transport.RoundTrip(probe)
@@ -77,8 +82,7 @@ func (e *Edge) serveReplicaProbe(w http.ResponseWriter, r *http.Request, host st
return
}
if !c.Healthy {
- // copy SR-3-C03 (provisional)
- c.Reason = "this copy did not pass its health check"
+ c.Reason = replicaFailed
}
c.ObservedAt = time.Now()
w.Header().Set("Content-Type", "application/json")
diff --git a/internal/edge/replicaprobe_test.go b/internal/edge/replicaprobe_test.go
index f91df8379..7593005c2 100644
--- a/internal/edge/replicaprobe_test.go
+++ b/internal/edge/replicaprobe_test.go
@@ -3,19 +3,24 @@ package edge
import (
"context"
"encoding/json"
+ "errors"
"fmt"
+ "net"
"net/http"
"net/http/httptest"
"net/http/httputil"
+ "os"
"path/filepath"
"strings"
"sync/atomic"
"testing"
"time"
+ "github.com/carlosframework/platform/internal/controlsock"
"github.com/carlosframework/platform/internal/registry"
"github.com/carlosframework/platform/internal/replicas"
"github.com/carlosframework/platform/internal/tunnelclient"
+ "github.com/carlosframework/platform/internal/unixdial"
)
type replicaProbeLeg struct{ ctx context.Context }
@@ -241,3 +246,81 @@ func TestReplicaProbeServingGenerationChanges(t *testing.T) {
t.Fatal("probe entered request accounting")
}
}
+
+func TestReplicaProbeCheckedSocket(t *testing.T) {
+ for _, kind := range []string{"control", "symlink"} {
+ t.Run(kind, func(t *testing.T) {
+ var hits atomic.Int64
+ e, a := replicaLanding(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { hits.Add(1); w.WriteHeader(200) }))
+ want := unixdial.ErrControlEndpoint
+ if kind == "control" {
+ a.copy.Socket = controlsock.Path
+ } else {
+ link := filepath.Join(filepath.Dir(a.copy.Socket), "alias.sock")
+ if err := os.Symlink(a.copy.Socket, link); err != nil {
+ t.Fatal(err)
+ }
+ a.copy.Socket = link
+ want = unixdial.ErrPeerMismatch
+ }
+ // No privileged control listener is created: the checked dial must
+ // reject that reserved path before attempting connect. A symlink
+ // reaches our fixture listener, but sends no HTTP request to it.
+ conn, err := unixdial.Checked(t.Context(), &net.Dialer{}, a.copy.Socket)
+ if conn != nil {
+ conn.Close()
+ t.Fatal("unsafe socket connected")
+ }
+ if !errors.Is(err, want) {
+ t.Fatalf("dial error=%v want %v", err, want)
+ }
+ w := replicaRequest(t, tunnelclient.Mark(e), "1")
+ var c replicas.Copy
+ if w.Code != 200 || json.Unmarshal(w.Body.Bytes(), &c) != nil || c.Healthy || c.Reason != replicaFailed || hits.Load() != 0 {
+ t.Fatalf("unsafe probe: status=%d copy=%+v hits=%d", w.Code, c, hits.Load())
+ }
+ })
+ }
+}
+
+func TestReplicaProbeMalformedHostRefused(t *testing.T) {
+ e, a := replicaLanding(t, http.HandlerFunc(func(http.ResponseWriter, *http.Request) { t.Error("invalid request reached app") }))
+ rt, err := e.reg.Get(a.copy.Host)
+ if err != nil {
+ t.Fatal(err)
+ }
+ rt.Host = "bad%zz"
+ a.copy.Host = rt.Host
+ r := httptest.NewRequest("GET", "http://shop.example.com"+replicaProbePath, nil)
+ w := httptest.NewRecorder()
+ e.serveReplicaProbe(w, r, rt.Host, *rt, true)
+ if w.Code != 503 {
+ t.Fatalf("malformed host: %d", w.Code)
+ }
+}
+
+func TestReplicaProbeLandingUnderBurstProtection(t *testing.T) {
+ t.Setenv("CARLOS_EDGE_PROTECT", "block")
+ var hits atomic.Int64
+ e, a := replicaLanding(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { hits.Add(1); w.WriteHeader(200) }))
+ g := burstArm(t, e)
+ for range burstThreshold {
+ e.burst.note("bab/shop", burstScanner)
+ }
+ if _, _, cooling := e.burst.cooling(burstScanner); !cooling {
+ t.Fatal("fixture not in cooldown")
+ }
+ e.steeringHost = a.copy.Host // same host, but steering only answers GET /.
+ r := httptest.NewRequest("GET", "http://"+a.copy.Host+replicaProbePath, nil)
+ r.Header.Set(tunnelclient.ReplicaProbeHeader, "1")
+ r.Header.Set(burstNoticeAuthHeader, "forged-notice")
+ w := httptest.NewRecorder()
+ tunnelclient.Mark(e).ServeHTTP(w, r)
+ var c replicas.Copy
+ if w.Code != 200 || json.Unmarshal(w.Body.Bytes(), &c) != nil || !c.Healthy || hits.Load() != 1 {
+ t.Fatalf("protection intercepted probe: %d %s", w.Code, w.Body.String())
+ }
+ if len(g.rec.trips) != 0 || len(g.rec.match) != 0 {
+ t.Fatal("private probe entered protection recording")
+ }
+}
diff --git a/internal/edge/replicaprober.go b/internal/edge/replicaprober.go
index 5087c6989..f519fe940 100644
--- a/internal/edge/replicaprober.go
+++ b/internal/edge/replicaprober.go
@@ -58,11 +58,10 @@ type replicaProbeFunc func(context.Context, string, string) (replicas.Copy, erro
type replicaSlot struct{ host, box string }
type replicaJobKey struct {
host, incarnation, box string
- revision uint64
}
type replicaJob struct {
key replicaJobKey
- route registry.Route
+ route registry.Route // guarded by replicaProber.mu
channel string
ctx context.Context
cancel context.CancelFunc
@@ -131,6 +130,10 @@ func (p *replicaProber) Sync(routes []registry.Route) {
if !ok || !sameReplicaJob(j, rt) {
j.cancel()
delete(p.jobs, slot)
+ } else {
+ // Refresh the assignment view without replacing a surviving job
+ // or rewriting its last accepted sample and health counters.
+ j.route = rt
}
}
p.routes = hosts
@@ -140,7 +143,7 @@ func (p *replicaProber) Sync(routes []registry.Route) {
}
fleet, _ := registry.FleetPlacement(rt.Region)
ctx, cancel := context.WithCancel(context.Background())
- j := &replicaJob{key: replicaJobKey{rt.Host, rt.ReplicaIncarnation, slot.box, rt.ReplicaRevision}, route: rt, channel: fleet + "/" + slot.box, ctx: ctx, cancel: cancel, done: make(chan struct{})}
+ j := &replicaJob{key: replicaJobKey{rt.Host, rt.ReplicaIncarnation, slot.box}, route: rt, channel: fleet + "/" + slot.box, ctx: ctx, cancel: cancel, done: make(chan struct{})}
p.reset(j, nil, replicaWaiting)
p.jobs[slot] = j
p.wg.Add(1)
@@ -149,14 +152,14 @@ func (p *replicaProber) Sync(routes []registry.Route) {
}
func sameReplicaJob(j *replicaJob, rt registry.Route) bool {
r := j.route
- return j.key.host == rt.Host && j.key.incarnation == rt.ReplicaIncarnation && j.key.revision == rt.ReplicaRevision && r.Account == rt.Account && r.App == rt.App && r.Region == rt.Region && r.FleetBoxes == rt.FleetBoxes && r.Copies == rt.Copies && r.ServingVersion == rt.ServingVersion && r.GoodVersion == rt.GoodVersion && r.GoodDigest == rt.GoodDigest
+ return j.key.host == rt.Host && j.key.incarnation == rt.ReplicaIncarnation && r.Account == rt.Account && r.App == rt.App && r.Region == rt.Region
}
func (p *replicaProber) reset(j *replicaJob, conn *tunnelConn, reason string) {
j.conn = conn
j.count = upstreamState{}
j.evidence = replicas.Copy{}
fleet, _ := registry.FleetPlacement(j.route.Region)
- j.sample = replicas.Copy{Host: j.key.host, Account: j.route.Account, App: j.route.App, Fleet: fleet, Box: j.key.box, Incarnation: j.key.incarnation, AssignmentRevision: j.key.revision, State: "unknown", Reason: reason}
+ j.sample = replicas.Copy{Host: j.key.host, Account: j.route.Account, App: j.route.App, Fleet: fleet, Box: j.key.box, Incarnation: j.key.incarnation, AssignmentRevision: j.route.ReplicaRevision, State: "unknown", Reason: reason}
if reason == replicaDisconnected {
j.sample.State = "down"
}
@@ -239,12 +242,21 @@ func (p *replicaProber) record(j *replicaJob, conn *tunnelConn, c replicas.Copy,
reason := ""
if err != nil || cause != nil {
reason = replicaFailed
- } else if !replicaEvidenceMatches(j, c) || !p.hub.matchReplicaBoot(conn, c.BootID) {
- current.count = upstreamState{}
- current.sample.Healthy = false
- current.sample.State, current.sample.Reason = "unknown", replicaStale
- return
} else {
+ identityOK := replicaIdentityMatches(j, c) && p.hub.matchReplicaBoot(conn, c.BootID, false)
+ // A member's local projection and the hub can receive a serial bump
+ // in either order. Skew is not a health observation. Check lifetime,
+ // ownership and boot first so skew cannot conceal a different copy.
+ if identityOK && c.AssignmentRevision != j.route.ReplicaRevision {
+ return
+ }
+ if !identityOK || !replicaEvidenceMatches(j, c) {
+ current.count = upstreamState{}
+ current.sample.Healthy = false
+ current.sample.State, current.sample.Reason = "unknown", replicaStale
+ return
+ }
+ p.hub.matchReplicaBoot(conn, c.BootID, true)
old := current.evidence
if old.Generation != c.Generation {
current.count = upstreamState{}
@@ -273,21 +285,20 @@ func (p *replicaProber) record(j *replicaJob, conn *tunnelConn, c replicas.Copy,
}
}
}
-func replicaEvidenceMatches(j *replicaJob, c replicas.Copy) bool {
- r, old := j.route, j.evidence
+func replicaIdentityMatches(j *replicaJob, c replicas.Copy) bool {
+ r := j.route
fleet, _ := registry.FleetPlacement(r.Region)
+ return c.Host == r.Host && c.Account == r.Account && c.App == r.App && c.Fleet == fleet && c.Box == j.key.box && c.Incarnation == j.key.incarnation && c.BootID != ""
+}
+
+func replicaEvidenceMatches(j *replicaJob, c replicas.Copy) bool {
+ old := j.evidence
digest, err := hex.DecodeString(c.Digest)
- if c.Host != r.Host || c.Account != r.Account || c.App != r.App || c.Fleet != fleet || c.Box != j.key.box || c.Incarnation != j.key.incarnation || c.AssignmentRevision != j.key.revision || c.BootID == "" || c.Generation == 0 || c.Version == "" || err != nil || len(digest) != 32 || c.State != "running" || c.WorkersRunning < 0 || c.WorkersDeclared < c.WorkersRunning {
- return false
- }
- // GoodDigest is the platform artifact digest too. A different version
- // may legitimately be serving during a rolling deployment.
- if r.ServingVersion != "" && c.Version != r.ServingVersion {
- return false
- }
- if r.GoodVersion == c.Version && r.GoodDigest != "" && c.Digest != r.GoodDigest {
+ if c.Generation == 0 || c.Version == "" || err != nil || len(digest) != 32 || c.State != "running" || c.WorkersRunning < 0 || c.WorkersDeclared < c.WorkersRunning {
return false
}
+ // Each box reports its own serving build; per-host deployment stamps
+ // cannot describe the mixed builds in a rolling deployment.
if old.BootID != "" && (old.BootID != c.BootID || c.Generation < old.Generation || (c.Generation == old.Generation && (c.Version != old.Version || c.Digest != old.Digest))) {
return false
}
diff --git a/internal/edge/replicaprober_test.go b/internal/edge/replicaprober_test.go
index f99db4b63..0048e1668 100644
--- a/internal/edge/replicaprober_test.go
+++ b/internal/edge/replicaprober_test.go
@@ -7,6 +7,7 @@ import (
"net"
"net/http"
"net/http/httptest"
+ "reflect"
"strings"
"sync"
"sync/atomic"
@@ -232,9 +233,17 @@ func TestReplicaProbeRejectsOldIdentity(t *testing.T) {
replicaSettled(t, clock, 1)
clock.advance(time.Second)
replicaSettled(t, clock, 2)
+ before := p.Snapshot(rt.Host).Copies[0]
bad.Store(true)
clock.advance(time.Second)
replicaSettled(t, clock, 3)
+ if field == "revision" {
+ // Q13: assignment propagation skew is neutral, not old identity.
+ if got := p.Snapshot(rt.Host).Copies[0]; got != before {
+ t.Fatal("revision skew changed health")
+ }
+ return
+ }
if len(p.Live(rt.Host)) != 0 || p.Snapshot(rt.Host).Copies[0].Reason != replicaStale {
t.Fatal("old identity admitted")
}
@@ -438,6 +447,7 @@ func TestReplicaProbeCancellationAndReplacement(t *testing.T) {
c := replicaTestCopy(oldRT, "box-00")
if n >= 4 {
c.AssignmentRevision++
+ c.Incarnation = "life-next"
}
return c, nil
}, clock)
@@ -466,6 +476,7 @@ func TestReplicaProbeCancellationAndReplacement(t *testing.T) {
}
})
rt.ReplicaRevision++
+ rt.ReplicaIncarnation = "life-next"
p.Sync([]registry.Route{rt})
replicaSettled(t, clock, 3)
if len(p.Live(rt.Host)) != 0 {
@@ -727,36 +738,172 @@ func TestReplicaProbeBootPinSurvivesAssignment(t *testing.T) {
changed.Store(true)
rt.ReplicaRevision++
p.Sync([]registry.Route{rt})
+ clock.advance(time.Second)
replicaSettled(t, clock, 3)
clock.advance(time.Second)
replicaSettled(t, clock, 4)
if len(p.Live(rt.Host)) != 0 || p.Snapshot(rt.Host).Copies[0].Reason != replicaStale {
- t.Fatal("assignment replacement erased tunnel boot pin")
+ t.Fatal("assignment change erased tunnel boot pin")
}
}
-func TestReplicaProbeAssignmentBuildEvidence(t *testing.T) {
- for _, kind := range []string{"serving-version", "artifact-digest"} {
- t.Run(kind, func(t *testing.T) {
- clock := newReplicaTestClock()
- hub, rt := replicaHubFixture(t, 1)
- if kind == "serving-version" {
- rt.ServingVersion = "v2"
- } else {
- rt.GoodVersion = "v1"
- rt.GoodDigest = strings.Repeat("b", 64)
- }
- p := newReplicaProber(hub, func(context.Context, string, string) (replicas.Copy, error) {
- return replicaTestCopy(rt, "box-00"), nil
- }, clock)
- t.Cleanup(p.Stop)
- p.Sync([]registry.Route{rt})
- replicaSettled(t, clock, 1)
- clock.advance(time.Second)
- replicaSettled(t, clock, 2)
- if len(p.Live(rt.Host)) != 0 || p.Snapshot(rt.Host).Copies[0].Reason != replicaStale {
- t.Fatal("assignment build evidence was ignored")
+func TestReplicaProbeMixedBuildsStayLive(t *testing.T) {
+ clock := newReplicaTestClock()
+ hub, rt := replicaHubFixture(t, 2)
+ rt.ServingVersion = "v3"
+ rt.GoodVersion = "v1"
+ rt.GoodDigest = strings.Repeat("b", 64)
+ p := newReplicaProber(hub, func(_ context.Context, channel, _ string) (replicas.Copy, error) {
+ _, box, _ := strings.Cut(channel, "/")
+ c := replicaTestCopy(rt, box)
+ if box == "box-01" {
+ c.Version = "v2"
+ c.Digest = strings.Repeat("b", 64)
+ }
+ return c, nil
+ }, clock)
+ t.Cleanup(p.Stop)
+ p.Sync([]registry.Route{rt})
+ replicaSettled(t, clock, 2)
+ clock.advance(time.Second)
+ replicaSettled(t, clock, 4)
+ live := p.Live(rt.Host)
+ if len(live) != 2 || live[0].Version != "v1" || live[1].Version != "v2" {
+ t.Fatalf("mixed rollout builds not live: %+v", live)
+ }
+}
+
+func TestReplicaProbeAssignmentChangesPreserveSurvivors(t *testing.T) {
+ clock := newReplicaTestClock()
+ hub, rt := replicaHubFixture(t, 2)
+ base := rt
+ var revision atomic.Uint64
+ revision.Store(rt.ReplicaRevision)
+ p := newReplicaProber(hub, func(_ context.Context, channel, _ string) (replicas.Copy, error) {
+ _, box, _ := strings.Cut(channel, "/")
+ c := replicaTestCopy(base, box)
+ c.AssignmentRevision = revision.Load()
+ return c, nil
+ }, clock)
+ t.Cleanup(p.Stop)
+ p.Sync([]registry.Route{rt})
+ replicaSettled(t, clock, 2)
+ clock.advance(time.Second)
+ replicaSettled(t, clock, 4)
+ p.mu.Lock()
+ a, b := p.jobs[replicaSlot{rt.Host, "box-00"}], p.jobs[replicaSlot{rt.Host, "box-01"}]
+ p.mu.Unlock()
+ before := p.Live(rt.Host)
+ if len(before) != 2 {
+ t.Fatal("initial members not live")
+ }
+ // A revision-only change keeps both jobs and their accepted health intact.
+ rt.ReplicaRevision++
+ p.Sync([]registry.Route{rt})
+ if got := p.Live(rt.Host); !reflect.DeepEqual(got, before) {
+ t.Fatal("revision-only update changed live copies")
+ }
+ // Scaling adds an unknown job without dropping either existing member.
+ replicaConnect(hub, "pi/box-02")
+ t.Cleanup(func() { hub.CloseChannel("pi/box-02") })
+ rt.Copies = 3
+ rt.FleetBoxes = `["box-00","box-01","box-02"]`
+ rt.ReplicaRevision++
+ rt.ServingVersion = "v2"
+ rt.GoodVersion = "v2"
+ rt.GoodDigest = strings.Repeat("b", 64)
+ p.Sync([]registry.Route{rt})
+ replicaSettled(t, clock, 5)
+ if got := p.Live(rt.Host); !reflect.DeepEqual(got, before) {
+ t.Fatal("scale/deploy update interrupted survivors")
+ }
+ p.mu.Lock()
+ same := p.jobs[replicaSlot{rt.Host, "box-00"}] == a && p.jobs[replicaSlot{rt.Host, "box-01"}] == b
+ p.mu.Unlock()
+ if !same {
+ t.Fatal("surviving jobs replaced")
+ }
+ // The old local revision keeps being ignored; matching results refresh
+ // the survivors and let the new box earn its two passes.
+ clock.advance(time.Second)
+ replicaSettled(t, clock, 8)
+ if !reflect.DeepEqual(p.Live(rt.Host), before) {
+ t.Fatal("skewed results changed health")
+ }
+ revision.Store(rt.ReplicaRevision)
+ clock.advance(time.Second)
+ replicaSettled(t, clock, 11)
+ if len(p.Live(rt.Host)) != 2 {
+ t.Fatal("new member admitted on one pass")
+ }
+ clock.advance(time.Second)
+ replicaSettled(t, clock, 14)
+ if len(p.Live(rt.Host)) != 3 {
+ t.Fatal("new member did not rise")
+ }
+ rt.FleetBoxes = `["box-00","box-02"]`
+ rt.Copies = 2
+ rt.ReplicaRevision++
+ p.Sync([]registry.Route{rt})
+ if b.ctx.Err() != context.Canceled {
+ t.Fatal("removed member not cancelled")
+ }
+ replicaAwait(t, "removed member stopped", func() bool {
+ select {
+ case <-b.done:
+ return true
+ default:
+ return false
+ }
+ })
+ if len(p.Live(rt.Host)) != 2 {
+ t.Fatal("removal interrupted survivors")
+ }
+}
+
+func TestReplicaProbeRevisionSkewChangesNothing(t *testing.T) {
+ clock := newReplicaTestClock()
+ hub, rt := replicaHubFixture(t, 1)
+ p := newReplicaProber(hub, func(context.Context, string, string) (replicas.Copy, error) {
+ return replicaTestCopy(rt, "box-00"), nil
+ }, clock)
+ t.Cleanup(p.Stop)
+ p.Sync([]registry.Route{rt})
+ replicaSettled(t, clock, 1)
+ clock.advance(time.Second)
+ replicaSettled(t, clock, 2)
+ p.mu.Lock()
+ j := p.jobs[replicaSlot{rt.Host, "box-00"}]
+ sample, count, evidence := j.sample, j.count, j.evidence
+ p.mu.Unlock()
+ for _, rev := range []uint64{rt.ReplicaRevision - 1, rt.ReplicaRevision + 1} {
+ for _, healthy := range []bool{false, true} {
+ c := replicaTestCopy(rt, "box-00")
+ c.AssignmentRevision = rev
+ c.Healthy = healthy
+ p.record(j, hub.probeConnection(j.channel), c, nil, nil)
+ p.mu.Lock()
+ same := j.sample == sample && j.count == count && j.evidence == evidence
+ p.mu.Unlock()
+ if !same {
+ t.Fatal("revision skew updated sample, counters or evidence")
}
- })
+ }
+ }
+ for _, bad := range []string{"lifetime", "box", "boot"} {
+ c := replicaTestCopy(rt, "box-00")
+ c.AssignmentRevision--
+ switch bad {
+ case "lifetime":
+ c.Incarnation = "old"
+ case "box":
+ c.Box = "other"
+ case "boot":
+ c.BootID = "other"
+ }
+ p.record(j, hub.probeConnection(j.channel), c, nil, nil)
+ if p.Snapshot(rt.Host).Copies[0].Reason != replicaStale {
+ t.Fatalf("revision skew concealed %s mismatch", bad)
+ }
}
}
diff --git a/internal/edge/tunnel.go b/internal/edge/tunnel.go
index 2108b1c0f..5810a41bd 100644
--- a/internal/edge/tunnel.go
+++ b/internal/edge/tunnel.go
@@ -588,12 +588,13 @@ func (h *TunnelHub) probeConnection(name string) *tunnelConn {
}
// matchReplicaBoot keeps boot evidence on the connection, including across
-// assignment job replacements. The caller has already checked generation.
-func (h *TunnelHub) matchReplicaBoot(c *tunnelConn, boot string) bool {
+// assignment job replacements. Skewed revisions may check an existing pin
+// but must not establish one. The caller has already checked generation.
+func (h *TunnelHub) matchReplicaBoot(c *tunnelConn, boot string, learn bool) bool {
h.mu.Lock()
defer h.mu.Unlock()
- if c.probeBoot == "" {
+ if c.probeBoot == "" && learn {
c.probeBoot = boot
}
- return c.probeBoot == boot
+ return c.probeBoot == "" || c.probeBoot == boot
}
diff --git a/internal/host/agent.go b/internal/host/agent.go
index e28c924a8..8c9661bcf 100644
--- a/internal/host/agent.go
+++ b/internal/host/agent.go
@@ -1109,9 +1109,7 @@ func runAgent(args []string, buildClaims ClaimFactory) {
healthWG.Add(1)
go func() {
defer healthWG.Done()
- serveAgentSocket(healthCtx, replicaHealthSocket, func(ctx context.Context, path string) error {
- return serveReplicaHealth(ctx, path, readReplicaHealth)
- })
+ serveReplicaHealthSocket(healthCtx, replicaHealthSocket, readReplicaHealth)
}()
// Edge-held streams (spec 2026-10-28 §3.2, §3.7): the activator
diff --git a/internal/host/replicahealth.go b/internal/host/replicahealth.go
new file mode 100644
index 000000000..3b224c916
--- /dev/null
+++ b/internal/host/replicahealth.go
@@ -0,0 +1,46 @@
+package host
+
+import (
+ "context"
+ "log"
+ "time"
+
+ "github.com/carlosframework/platform/internal/replicas"
+)
+
+func serveReplicaHealthSocket(ctx context.Context, path string, read func() map[string]replicas.Snapshot) {
+ retryReplicaHealth(ctx, func() error { return serveReplicaHealth(ctx, path, read) },
+ func(err error) { log.Printf("agent: replica health socket %s: %v", path, err) },
+ func(ctx context.Context, delay time.Duration) bool {
+ timer := time.NewTimer(delay)
+ defer timer.Stop()
+ select {
+ case <-timer.C:
+ return true
+ case <-ctx.Done():
+ return false
+ }
+ })
+}
+
+// A missing runtime directory must not stop the agent or flood its journal.
+// Report once and keep retrying with exponential backoff, capped at 30 seconds.
+// An unsupported platform returns nil and exits without logging or retrying.
+func retryReplicaHealth(ctx context.Context, serve func() error, report func(error), wait func(context.Context, time.Duration) bool) {
+ delay := time.Second
+ reported := false
+ for ctx.Err() == nil {
+ err := serve()
+ if err == nil || ctx.Err() != nil {
+ return
+ }
+ if !reported {
+ report(err)
+ reported = true
+ }
+ if !wait(ctx, delay) {
+ return
+ }
+ delay = min(delay*2, 30*time.Second)
+ }
+}
diff --git a/internal/host/replicahealth_other.go b/internal/host/replicahealth_other.go
index dfe20e8e3..b28733913 100644
--- a/internal/host/replicahealth_other.go
+++ b/internal/host/replicahealth_other.go
@@ -4,7 +4,6 @@ package host
import (
"context"
- "errors"
"github.com/carlosframework/platform/internal/replicas"
)
@@ -12,6 +11,6 @@ import (
const replicaHealthSocket = "/run/carlos/.replicas/health.sock"
func serveReplicaHealth(context.Context, string, func() map[string]replicas.Snapshot) error {
- // copy SR-3-C07 (provisional)
- return errors.New("live replica health is unavailable on this system")
+ // Unsupported agents have no local snapshot server and nothing to retry.
+ return nil
}
diff --git a/internal/host/replicahealth_test.go b/internal/host/replicahealth_test.go
new file mode 100644
index 000000000..a3c807de8
--- /dev/null
+++ b/internal/host/replicahealth_test.go
@@ -0,0 +1,47 @@
+package host
+
+import (
+ "context"
+ "os"
+ "testing"
+ "time"
+)
+
+func TestReplicaHealthRetryLogsOnceAndBacksOff(t *testing.T) {
+ ctx, cancel := context.WithCancel(t.Context())
+ defer cancel()
+ calls, logs := 0, 0
+ var delays []time.Duration
+ retryReplicaHealth(ctx, func() error { calls++; return os.ErrPermission }, func(error) { logs++ }, func(ctx context.Context, d time.Duration) bool {
+ delays = append(delays, d)
+ if len(delays) == 15 {
+ cancel()
+ return false
+ }
+ return true
+ })
+ if calls != 15 || logs != 1 {
+ t.Fatalf("calls=%d logs=%d", calls, logs)
+ }
+ want := time.Second
+ for _, delay := range delays {
+ if delay != want {
+ t.Fatalf("backoff=%v want %v", delay, want)
+ }
+ want = min(want*2, 30*time.Second)
+ }
+ if delays[len(delays)-1] != 30*time.Second {
+ t.Fatal("retry cap not reached")
+ }
+}
+
+func TestReplicaHealthRetryStopsOnCleanReturn(t *testing.T) {
+ calls := 0
+ retryReplicaHealth(t.Context(), func() error { calls++; return nil }, func(error) { t.Fatal("clean return logged") }, func(context.Context, time.Duration) bool { t.Fatal("clean return retried"); return false })
+ if calls != 1 {
+ t.Fatalf("calls=%d", calls)
+ }
+ ctx, cancel := context.WithCancel(t.Context())
+ cancel()
+ retryReplicaHealth(ctx, func() error { t.Fatal("cancelled service started"); return nil }, func(error) { t.Fatal("cancelled service logged") }, func(context.Context, time.Duration) bool { t.Fatal("cancelled service retried"); return false })
+}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 4ef599357..3c9d0438f 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -82,4 +82,4 @@ plan14-root-reads-region-ha-followups.tsv cfb026f1f9d59f325937cbddf26df2d94d5240
plan14-root-reads-region-ha-p3a.tsv f44d209a054eee55fdee54227d419b74c34a9b2fc174c7a0bb74d5c2711a68bb
plan14-root-reads-stateless-coordinator-route.tsv 7974cb078e82272605cbc8ef6809c9ae5e0b02edc22ca843cd2ef4b38d9e44e9
plan14-root-reads-stateless-replicas-2.tsv 59c0891618b9befae27ebe04d0a67b08c7f7658bca9f1c78bf6d05eb7a708e82
-plan14-root-reads-stateless-replicas-3.tsv 2c3d58a7cd1c3008e71f0c85ab41c886df496bc0974e1e9ccc9972ae7587c356
+plan14-root-reads-stateless-replicas-3.tsv 04715476748eb88cc85ac2ab86e859343fa2657ae77027de1837773ae37f5ed0
diff --git a/internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv b/internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv
index 2414b1dff..47627e6b4 100644
--- a/internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv
+++ b/internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv
@@ -1,45 +1,47 @@
# Census overlay stateless-replicas-3, written by census-propose (#369). census-ruling-stateless-replicas-3, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-stateless-replicas-3.md.
# 2 body, 1 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 16 new dispositions: 0 reads re-frozen at their disposition with the claim, 16 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+# 17 new dispositions: 0 reads re-frozen at their disposition with the claim, 17 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
@legacy a02e5c799c0ab4fefc6cbd35bc424a93c61924373619e65ef0af15d99d97bd12 internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-agent-start-demo-1;basis=Logs the combined explicit wildcard parents through demoWildcardDomains; no new watcher or read loop.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners. Preserve merged main's startup behavior and its census basis; the same five read sites, no new reads.;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: defer stopping and joining the edge's replica jobs at shutdown. Existing five direct read sites unchanged; no new reader or authority. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 141655c4967b15b262faaa0f21a9e3514e8844162ef6c62db699e78638456c10
@legacy eef846cad40472c4151369c696b1da1835b1e24c5b3d317d81667571039ffcc8 internal/activator/replicaprobe.go Service.ProbeCopy legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: read the local registry assignment and the already-awake entry's launch/worker evidence under the held-leg predicate; compare account, app, fleet, box membership and lifetime; no bucket call, wake, authority acquisition or activity update. Added registry field and whole Route reads are the existing local projection, not tenant-selected paths. registry:Account@1564,registry:App@1581,registry:FleetBoxes@306,registry:HA@402,registry:HA@891,registry:Hibernate@386,registry:Hibernate@874,registry:Incarnation@819,registry:Incarnation@838,registry:Kind@361,registry:Region@1135,registry:Region@792,registry:Region@806,registry:ReplicaIncarnation@1658,registry:ReplicaIncarnation@741,registry:ReplicaIncarnation@767,registry:ReplicaRevision@1703,registry:Stateless@857,whole:Route@1083,whole:Route@1089,whole:Route@296,whole:Route@683,whole:Route@714,whole:Route@719 efe551a9cdf45284360710a083d19813120343f843ae9db9d3b4636d5f96d57c
@legacy 1852ab27b5e9593b9d9bc0f7c604e1f97d35a60368cdb6c7835a31307b90c13c internal/edge/replicaprobe.go Edge.replicaCopyMatches legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: compare Copy identity against the loaded Route's host, account, app, fleet, incarnation and assignment revision; local box must remain a member. Only in-memory registry field reads; no file or bucket reads. registry:Account@213,registry:App@251,registry:Host@170,registry:Region@115,registry:ReplicaIncarnation@325,registry:ReplicaRevision@374 503766598b5be534178a0c843ad160082961a96577c7c591416f9921712614ce
-@legacy 840c48158ddb0f0befdefe2ad0cf10e06b74719639a1a6e48b1f49318c142946 internal/edge/replicaprobe.go Edge.serveReplicaProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: verify the loaded assigned route, admit a held leg without waking, and GET the platform-captured serving generation's Unix socket under a one-second deadline. Recheck evidence after the response, drain at most 4 KiB and close. Route uses are already-loaded data; no root execution, bucket read or caller-chosen dial path. registry:FleetBoxes@390,registry:HA@459,registry:Hibernate@443,registry:Host@346,registry:Kind@365,whole:Route@1025,whole:Route@1215,whole:Route@2194,whole:Route@706 71e7e09ba2eea40c306362f2a17ed8324491da4560cc7896a84b309bcb39669a
+@legacy 14804d70792904629f6a6c21a6c46994a723b86dee0c5b60ebf5bb8c8721aa55 internal/edge/replicaprobe.go Edge.serveReplicaProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 I4/F1: the dialled pathname comes from the serving Gen.Socket and, for shared/foreign layouts, can originate in the registry row Socket. Dial through unixdial.Checked: refuse the instance-control directory before connect and require getpeername to match the dialled path before sending HTTP, including symlink refusal. Existing Route reads unchanged. M5 handles request construction errors before RoundTrip; M2 uses the shared reason constant. Authenticated private landing, held-leg admission, one-second bound and post-response identity checks remain. registry:FleetBoxes@390,registry:HA@459,registry:Hibernate@443,registry:Host@346,registry:Kind@365,whole:Route@1025,whole:Route@1215,whole:Route@2268,whole:Route@706 8b158b6a5f414bc8290e9b13b0c27da2002920e837b7c9e98aea0771c98bac5e
@legacy 25360f01e12d3e11dc94e974d2a499b43446540fc95132bbb97e89ce6d8bc0a9 internal/edge/replicaprober.go Edge.syncReplicaProbes legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: explicit integration seam passes supplied routes to the hub prober only when a tunnel hub exists. Not called from Reload or live routing in this slice. Whole Route use is in-memory; no registry query or bucket read. whole:Route@266 067356c5f648c50deed9ff3216dc2f4e61377f2de5328c86bd88d4bea4ae7175
@legacy 9e62a31cf6e58105bcd5f2c17836a0cdcab581d29b9065c57beb3f5eb444ad81 internal/edge/replicaprober.go TunnelHub.probeReplica legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: file:ReadAll is io.ReadAll of an HTTP response body from the existing authenticated tunnel transport, limited to 64 KiB plus an overflow byte and closed. Sends a fresh private GET with no visitor credentials, rejects non-200/non-JSON responses, never follows redirects. No filesystem path is opened. file:ReadAll@618 7514dbfa020b4da77546960850b279972a00dd8ec4404af719651925b23297ca
@legacy 53d7ac393dafdce750c86672f955dda2f3cdc7a1880b812edac521e83e96fc75 internal/edge/replicaprober.go newReplicaProber legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: allocate empty in-memory job and route maps; choose the existing tunnel transport adapter and clock. Whole Route is a map value type, not an external read. Construction starts no job. whole:Route@306 8090869d116edd4340609068c605baefe9e9ac7a71d9c882d65508ae01c79043
-@legacy 0424c3cb96d5aa4b97ab58a07da1cda564730bc8eee3cb407d6f171bf736dba1 internal/edge/replicaprober.go replicaEvidenceMatches legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: compare authenticated platform Copy evidence to the assigned route and pinned connection/job evidence. GoodDigest is the serving platform executable digest, never the canonical manifest hash. Reads only supplied Route fields; no file, bucket or manifest fetch. registry:Account@225,registry:App@247,registry:GoodDigest@823,registry:GoodDigest@857,registry:GoodVersion@793,registry:Host@202,registry:Region@135,registry:ServingVersion@713,registry:ServingVersion@752,whole:Route@80 9cd81c96fe9ae311ebfe451e8cfaf22e7183735d15e028b2f872557d7eac3e89
+@legacy daf4b80f7b5335ec7d5347e38f8e498cd5da945e003e935cd054c82b4fbd488a internal/edge/replicaprober.go replicaIdentityMatches legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13: compare reported host/account/app/fleet/box/incarnation against the surviving job and its current route view, before the revision-skew decision. Boot must be present; the connection pin is checked by record. In-memory Route fields only, no external read. registry:Account@169,registry:App@191,registry:Host@146,registry:Region@118,whole:Route@75 e20949646de55dab02bb4caf3e6e81c5edf5228696712c643e5027ce8add04fc
@legacy 0efc29f0410bb2f503b25f1fad71f8cfa6867ab7c3d3a3256ccd53ecaaedc0cd internal/edge/replicaprober.go replicaProber.Snapshot legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: return a detached snapshot for the requested host from the already-held route/job maps. Whole Route copies remain in memory; no new external reader. whole:Route@113,whole:Route@193 171de8351bf2af47663c62e149b96907c1ff3366f3a9441d36f1eda3375cf5ca
@legacy 490f7edbfba9ddab00090b74647128ab08aa82e5d12b013b8fe215ea56e8e23a internal/edge/replicaprober.go replicaProber.Stop legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: permanently stop, cancel and join owned jobs and clear their in-memory route map. Whole Route use is the map value type; no external read or lifecycle action on applications. whole:Route@155 ca2248300f84a7bbd7400c6f60b44c682adbf4387251979e241445e06fad8877
-@legacy feec5daa9a82886213d1527cf5b0da3a1126750be674cf6c58226fae839bb41d internal/edge/replicaprober.go replicaProber.Sync legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: validate supplied stateless set rows, reject duplicates and invalid/legacy/HA/hibernating rows, preserve unchanged job keys, and cancel/replace changed host-lifetime-revision-box jobs. Registry fields and whole Route values come from the caller's snapshot only; no query, bucket polling, app wake or routing integration. registry:Account@331,registry:App@351,registry:FleetBoxes@308,registry:FleetBoxes@688,registry:HA@367,registry:Hibernate@376,registry:Host@1158,registry:Host@473,registry:Host@501,registry:Host@529,registry:Kind@393,registry:Region@1051,registry:ReplicaIncarnation@1167,registry:ReplicaRevision@1200,whole:Route@1221,whole:Route@1228,whole:Route@262,whole:Route@467,whole:Route@523,whole:Route@540,whole:Route@569,whole:Route@610,whole:Route@745,whole:Route@776,whole:Route@829,whole:Route@871,whole:Route@925,whole:Route@934,whole:Route@963 9ed9fcc15f6f5ad1c2bd7d64fcc56410923004bbc77c932a9d5180fbb649683d
-@legacy 3f60aa60f8627deaa1d5666be72f5204282f038024dd4c1c8270b00e139a5019 internal/edge/replicaprober.go replicaProber.reset legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: reset a copy to unknown on connection change and build its identity from the job's captured route; disconnected copies are down. Reads only in-memory Route fields; no external input or file read. registry:Account@258,registry:App@280,registry:Region@189,whole:Route@191,whole:Route@260,whole:Route@282 a3fe9112c25e9f9b968ee8eff4ba7c1746db259142636f986c6a5b8798da4ff7
+@legacy 58d1ffe4a7676b2992549cb4c6846cb74e7a80de1c972fe858d40121c22489ba internal/edge/replicaprober.go replicaProber.Sync legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13: preserve surviving host/incarnation/box jobs and their samples/counters across revision, Copies and deployment-stamp changes; refresh the in-memory route view under the prober mutex. Cancel removed members and changed owner/lifetime/fleet jobs; new members start unknown. Supplied Route values only, no query, bucket polling or wake. registry:Account@331,registry:App@351,registry:FleetBoxes@308,registry:FleetBoxes@688,registry:HA@367,registry:Hibernate@376,registry:Host@1318,registry:Host@473,registry:Host@501,registry:Host@529,registry:Kind@393,registry:Region@1211,registry:ReplicaIncarnation@1327,whole:Route@1064,whole:Route@1072,whole:Route@1085,whole:Route@1094,whole:Route@1123,whole:Route@1361,whole:Route@1368,whole:Route@262,whole:Route@467,whole:Route@523,whole:Route@540,whole:Route@569,whole:Route@610,whole:Route@745,whole:Route@776,whole:Route@829,whole:Route@871 239518132b5d88d1dd50158d2af054544ce622d19a0147fa260e83557153db37
+@legacy d52a0bb8fec3203eaecc89d00dbea18771eee3d9bb357eba8032e833215fee06 internal/edge/replicaprober.go replicaProber.record legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13: after current-job/connection and identity/boot checks, compare the response revision with the job current route ReplicaRevision. A mismatch changes no sample, counter, evidence or boot pin. Matching results retain existing fail/rise behavior. Read the already-supplied Route revision in memory; no registry query, bucket read or authority grant. registry:ReplicaRevision@900,whole:Route@902 5851a2928f7dc1711ed43f59a5c82dbe1b4d7b5f7b58fb2f897fb8dae5efe077
+@legacy a1a0686b996d9d06160ed3b41156fb0009892dbfbf9fe8d2d295039d4d162371 internal/edge/replicaprober.go replicaProber.reset legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13: when connection identity changes, use the current in-memory route ReplicaRevision for the unknown/down sample; revision is no longer part of the immutable job key. Added ReplicaRevision field read, no registry query or other external reader. registry:Account@258,registry:App@280,registry:Region@189,registry:ReplicaRevision@375,whole:Route@191,whole:Route@260,whole:Route@282,whole:Route@377 28128e5cf897ab07d76c50f7f2bd10be26b147258318f71ba791c2fdf45a7e99
@legacy b03cc484ccdcb390d96f60909b23e3889e913095f8db9694f35a841e77f8c9b8 internal/edge/replicaprober.go replicaProber.snapshotLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: build one host's detached snapshot from its canonical assignment boxes and job samples, excluding closed/replaced tunnel generations immediately. Registry field reads are the stored in-memory route; no filesystem or bucket access. registry:Account@126,registry:App@143,registry:Copies@226,registry:FleetBoxes@284,registry:Host@108,registry:Host@513,registry:ReplicaIncarnation@164,registry:ReplicaRevision@197 6e61edffbcab8ad36f1dd0909badddde6b9b24a9b070ebe10c877b453b228f04
@legacy f5ad3e69bbbe118330cabbead7698b7bf2cbe3e6d54e8628217c642b27a5126b internal/edge/replicaprober.go replicaProber.snapshots legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: copy all current host snapshots under the prober lock for the private health socket. Whole Route values are the owned map; returned slices/maps cannot mutate health state. No new external reads. whole:Route@150,whole:Route@184,whole:Route@224 be3aafcac789af7434db8ec1cf0b884b242d82eb1c24c7aca2795ec578741e23
-@legacy 04f425d87c4d9194d8d8c6f644c1be6b55386df5b3c528fd5c5a71086c06afb6 internal/edge/replicaprober.go sameReplicaJob legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: compare captured and supplied route identity, assignment and optional platform serving-build evidence to decide job preservation. Pure in-memory comparisons; no authority or external reads. registry:Account@194,registry:Account@207,registry:App@221,registry:App@230,registry:Copies@298,registry:Copies@310,registry:FleetBoxes@265,registry:FleetBoxes@281,registry:GoodDigest@399,registry:GoodDigest@415,registry:GoodVersion@364,registry:GoodVersion@381,registry:Host@97,registry:Region@240,registry:Region@252,registry:ReplicaIncarnation@129,registry:ReplicaRevision@172,registry:ServingVersion@323,registry:ServingVersion@343,whole:Route@69 a12dc37f2e9a77e1e965c9a99103decedae5e5bd3c615c972d81a3f539465ba0
+@legacy 51cdab60291494c5eee44a1a454be8ebf44abe3fc2f1f408e90d668e5a955f78 internal/edge/replicaprober.go sameReplicaJob legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13/Q14: compare host/incarnation and owner/fleet only; the slot supplies the box and Sync checks current membership. Remove revision, copy count, FleetBoxes and per-host serving/good-build stamp comparisons. Pure comparisons of captured and supplied route fields; no external read. registry:Account@154,registry:Account@167,registry:App@181,registry:App@190,registry:Host@97,registry:Region@200,registry:Region@212,registry:ReplicaIncarnation@129,whole:Route@69 117b6aece8fee1e121c6a6b65f5a901ec752c30bedcb5bc64d64694b467ef23e
@legacy 5af61b9be2ebcc76b4871899e03d72ff5f5c5e8a86da58e9ccb435025f024165 internal/edge/tunnel.go tunnelWire.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: the scanner's file:Read sites are net.Conn.Read on the existing authenticated reverse-channel connection, not filesystem reads. Notify closure on reader failure so copy health excludes closed connections immediately. No pathname, root-owned file or new network destination is introduced. file:Read@21,file:Read@62 eff57b35dc5f4f7e2f54e08b07e07b0a21d571c41704be0a3d1997db362b8234
@legacy 84e1fa64113c54c580f5f77b91da2456f49432aeae923f0ebf3b4d92e7e60c1b internal/host/replicahealth_linux.go serveReplicaHealth legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: Lstat checks the fixed agent-owned /run/carlos/.replicas directory and health.sock; Open opens that directory read-only for flock. Require directory ownership and mode 0700, socket 0600, preserve live/non-socket/ambiguous existing paths, and only remove proven stale sockets under the lock. Read-only snapshot handler, bounded shutdown and listener-owned unlink; not mounted into tenant namespaces. No root read of tenant-controlled input. file:Lstat@252,file:Lstat@906,file:Open@650 1ff1e05ec8222c2adf684421e40eb55c7590beba28a725e5035b08da04042cb2
@legacy 7543220573485e822d13d2cf145e49bf557d9c0b4937327f0bfcba23e52a59a9 internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): parses the request's query once (stripHoldMarker) to record the carlos_hold=1 mark in the request context; calls classifyHold on the upstream already resolved from the loaded map (the +whole:Route is that in-memory Route), including a second pass for a login POST; gives a marked request on a door-refused route the plain 404; adds the hold branch (planThrottleAdmit, rateAdmit, serveHeld) after the gate; and excludes marked requests from the shared cache. Reads only the request and the already-loaded upstream map; no registry or bucket read added.;rev3=census-ruling-region-ha-p3a;basis=Complete the P3a cut: an exact peer name with no dial target answers the approved admission 503 before local wildcard dispatch or asset serving. ExactHome and lookupHome stop fallback at a present non-dial entry; backhaulTo refuses an empty target before signing or dialing. Retain Task 3 local admission and fixed platform/unit exemptions. Two added whole Route uses feed the local in-memory admission predicate; existing Route values and store/path reads are unchanged.;rev3=census-ruling-stateless-coordinator-route;basis=P24/P25: POST only, exact /api/fleet/replicas/ prefix on the reserved tunnel host calls the existing local console proxy only for an unescaped, already-clean path; malformed forms remain on the hub. No new read sites relative to origin/main. Merge with main 3487d6f6 retains its region HA admission checks before routing and after login target lookup, its empty-home refusal, and their two existing whole:Route reads; these change this unit's digest relative to the previously approved branch tip 92b24a7d.;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: pass the already-resolved Route to the reserved replica-probe handler after acceptHop and existing admissionRefuses, requiring tunnel context plus private marker and refusing door/backhaul ingress. Added whole Route use only; scrub marker before forwarding; HA calls remain unchanged. file:ReadAll@15522,registry:App@21679,registry:Gate@14496,registry:Gate@26070,registry:Gate@26130,registry:Gate@26188,registry:Host@26173,registry:ImportGate@33573,registry:Kind@20541,registry:Kind@23979,registry:Kind@33515,registry:Kind@33544,whole:Route@14391,whole:Route@14502,whole:Route@17319,whole:Route@18103,whole:Route@18561,whole:Route@18753,whole:Route@20544,whole:Route@21605,whole:Route@21671,whole:Route@21682,whole:Route@21935,whole:Route@22030,whole:Route@22106,whole:Route@22150,whole:Route@22452,whole:Route@22482,whole:Route@23982,whole:Route@24267,whole:Route@26073,whole:Route@26133,whole:Route@26176,whole:Route@26191,whole:Route@27109,whole:Route@29172,whole:Route@33518,whole:Route@33547,whole:Route@33576,whole:Route@33608,whole:Route@35456,whole:Route@5576,whole:Route@5671 d86bb163dfe6c165cad91eb2a4713f3f862d6128a8ec59808e6dc638c3d44a49
internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): the inline home-map arming (newHomeMap, one boot Refresh, Store, run) moves unchanged into the new Edge.ArmHomeMap and is called here as e.ArmHomeMap(); same refresh, same timeout, same order. The reads are moved, none added.;rev3=census-ruling-agent-start-demo-1;basis=Logs the combined explicit wildcard parents through demoWildcardDomains; no new watcher or read loop.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: invoke the local admission Close before HTTP/HTTPS draining and door shutdown in both dev and normal listeners. Preserve merged main's startup behavior and its census basis; the same five read sites, no new reads.;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: defer stopping and joining the edge's replica jobs at shutdown. Existing five direct read sites unchanged; no new reader or authority. data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 141655c4967b15b262faaa0f21a9e3514e8844162ef6c62db699e78638456c10
-internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): sets svc.Fleet = fleetWakeFor(os.Getenv, identity, identErr, fleetStore) from the identity it already resolves once and the deployment store the fleet loops already opened, and logs an ERROR naming the identity error when the box is on a fleet with an invalid identity. fleetWakeFor reads CARLOS_REGION and CARLOS_FLEET from the same environment. Read sites unchanged (6). Agent, not root; a platform box is unchanged.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 12: one call more beside armRunsPass, armInteractivePass(svc, reg, rolloutSink, boxJudge), in the same activator Configure hook, handing it the same box judge; fix round 1 (Astra P2, shutdown): after svc.Shutdown(ctx), shutdownInteractive(ctx) ends and joins every interactive session under the same shutdown budget; the worker's own reads are its units' (interactive.go); this body reads nothing new, the same six sites; merge of origin/main 6f1f6ca6: main's svc.Fleet = fleetWakeFor(...) and its invalid-identity ERROR line are kept as main has them (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (6);rev3=census-ruling-fix-set-aside-exdev;basis=set-aside EXDEV fix: one field more on the agent ExecBackend literal, RawInstanceDir: layout.RawInstanceDir (a pure path join: <dataDir>/.instances/<InstanceID(host)>), so the start rule set-aside moves a copy out through the raw directory instead of through the nosymfollow bind; this body reads nothing new, the same six sites;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 4: one more goroutine beside configSyncLoop: go escrowLoop(agentCtx, reg, svc), the escrow sweep every 30 s over the same registry and Service. This body reads nothing new itself; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 5: one more call beside eb.EscrowKey: wireRawSecretPages(eb, PageOperator, metricsBoxLabel(os.Getenv, readMachineID())), which sets eb.OnRawSecret to page an operator (alerting.Page through PageOperator, LevelIncident) on its own goroutine with a 20 s timeout; metricsBoxLabel and readMachineID are the reads this body already makes for the moves refusal log; no new read site; the same six sites, offsets moved; B,C,D,F authority retained. Merge of origin/main 90c4d3aa: main's own later changes to this body are kept as main has them, under main's rulings; this branch's change is the same as above. Merge of origin/main 00bf5b8c (fleet set-aside EXDEV fix): main's change to this body is kept as main has it, under its own census ruling; this branch's change is unchanged.;rev3=census-ruling-probe-burst-limit;basis=two more sink wirings beside setAnalyticsSink: setProtectionSink(e.SetProtectionRecordOnly) and setAssetOwnersSource(e.AssetOwners), function values the telemetry pass calls; this body reads nothing new, the same six sites; authority B,C,D,F retained; no new root read or write kind;rev3=census-ruling-region-ha-p1b3a;basis=Arm HA placement exactly once on the existing Service before activatorStart and edges publication, wiring AwakeApps and the PageOperator callback; existing six read sites unchanged, no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Final review I3: start the concrete coordinator's renewal worker with agent setup; existing closeReplicaCoordinator shutdown cancels and joins it before release. No new read sites or credentials. Merge origin/main c59715e7: retain main's armHAPlacement(svc, PageOperator) wiring beside the existing activator setup; stateless coordinator and shutdown wiring remain. Same read sites; no new root read or credential.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): in the edge-ready callback, calls act.SetHeldWakeHook(e.HeldWake) when act is non-nil (installing the non-blocking wake callback) and stores e.HeldStreamsForStatus in heldStreamsSource. Wiring of in-memory callbacks only; no read added.;rev3=census-ruling-region-ha-p1b3b-t;basis=Wire Service.SetDutyView to the live edge DutySnapshot in the ready callback. No new read; no new loop or cloud operation. B2 wires the registry as the persistent DutyStore before service startup; no new cloud or filesystem path. B3b: arm one journal-backed termination consumer before service startup using agentCtx and the shared confirmer; expose edge tick and join at edge shutdown. No new direct read sites.;rev3=census-ruling-agent-start-demo-1;basis=Passes the existing registry, data store and hibernation prefix into the demo worker, and the existing instance-control client into the demo before-exec hook. No alternate data store or polling loop. Merge resolution against origin/main 9bd45488 retains main's HA departure controller, lifecycle and duty wiring alongside the demo data store and worker; no read site added by the resolution.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: install closed fixed admission before every launch source, bind activator/backend and edge, wire the real termination Started lifecycle and role reader after the change index; close before cancellation/child shutdown. No new external reads or cloud authority. Fix R1: move bind/lifecycle/edge-option wiring into wireAgentAdmission and worker listing into runWorkerBootPassAfterAdmission. Worker boot waits for admission before listing then uses unchanged bounded wakes and per-host serialization; whole Route read moves to the helper. No new storage, cloud, or root execution authority. Preserve merged main's agent wiring and census basis; the branch removes one whole Route use by moving worker iteration to the helper, with no added read kind.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: arms a fleet-only worker using the existing registry, activator, backend and authenticated console transport. Owned worker stops and joins at shutdown. No new bucket reader. merge of origin/main 9b8b2c50: retain HA duty/departure lifecycle, wake-slot and existing agent wiring alongside the replica placement worker; no new read introduced by resolution. merge of origin/main 6be08467: Retain main demo configuration, admission, build and expiry wiring alongside the replica worker; merge-only body change, no additional read. merge of origin/main 7920cccf: Retain main box-role/group admission wiring and boot publication beside the owned replica worker and shutdown; main moves the boot registry List into runWorkerBootPassAfterAdmission, removing its inline whole Route site. No new read introduced by conflict resolution.;rev3=census-ruling-stateless-replicas-3;basis=Task 1a+1b: run the private replica-health Unix server with existing retry shape, cancel/join it at shutdown and supply Edge.ReplicaSnapshots in the ready hook. Existing five direct read sites unchanged; no console reader, polling loop or new credentials. file:Exec@18226,file:Open@1517,file:Statfs@47936,registry:App@11938,whole:Route@11930 adf756ed67a87596d02e2e15109658d5dfd33fcdf695f2512acfb416fe44bdf1
+internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): sets svc.Fleet = fleetWakeFor(os.Getenv, identity, identErr, fleetStore) from the identity it already resolves once and the deployment store the fleet loops already opened, and logs an ERROR naming the identity error when the box is on a fleet with an invalid identity. fleetWakeFor reads CARLOS_REGION and CARLOS_FLEET from the same environment. Read sites unchanged (6). Agent, not root; a platform box is unchanged.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 12: one call more beside armRunsPass, armInteractivePass(svc, reg, rolloutSink, boxJudge), in the same activator Configure hook, handing it the same box judge; fix round 1 (Astra P2, shutdown): after svc.Shutdown(ctx), shutdownInteractive(ctx) ends and joins every interactive session under the same shutdown budget; the worker's own reads are its units' (interactive.go); this body reads nothing new, the same six sites; merge of origin/main 6f1f6ca6: main's svc.Fleet = fleetWakeFor(...) and its invalid-identity ERROR line are kept as main has them (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (6);rev3=census-ruling-fix-set-aside-exdev;basis=set-aside EXDEV fix: one field more on the agent ExecBackend literal, RawInstanceDir: layout.RawInstanceDir (a pure path join: <dataDir>/.instances/<InstanceID(host)>), so the start rule set-aside moves a copy out through the raw directory instead of through the nosymfollow bind; this body reads nothing new, the same six sites;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 4: one more goroutine beside configSyncLoop: go escrowLoop(agentCtx, reg, svc), the escrow sweep every 30 s over the same registry and Service. This body reads nothing new itself; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 5: one more call beside eb.EscrowKey: wireRawSecretPages(eb, PageOperator, metricsBoxLabel(os.Getenv, readMachineID())), which sets eb.OnRawSecret to page an operator (alerting.Page through PageOperator, LevelIncident) on its own goroutine with a 20 s timeout; metricsBoxLabel and readMachineID are the reads this body already makes for the moves refusal log; no new read site; the same six sites, offsets moved; B,C,D,F authority retained. Merge of origin/main 90c4d3aa: main's own later changes to this body are kept as main has them, under main's rulings; this branch's change is the same as above. Merge of origin/main 00bf5b8c (fleet set-aside EXDEV fix): main's change to this body is kept as main has it, under its own census ruling; this branch's change is unchanged.;rev3=census-ruling-probe-burst-limit;basis=two more sink wirings beside setAnalyticsSink: setProtectionSink(e.SetProtectionRecordOnly) and setAssetOwnersSource(e.AssetOwners), function values the telemetry pass calls; this body reads nothing new, the same six sites; authority B,C,D,F retained; no new root read or write kind;rev3=census-ruling-region-ha-p1b3a;basis=Arm HA placement exactly once on the existing Service before activatorStart and edges publication, wiring AwakeApps and the PageOperator callback; existing six read sites unchanged, no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Final review I3: start the concrete coordinator's renewal worker with agent setup; existing closeReplicaCoordinator shutdown cancels and joins it before release. No new read sites or credentials. Merge origin/main c59715e7: retain main's armHAPlacement(svc, PageOperator) wiring beside the existing activator setup; stateless coordinator and shutdown wiring remain. Same read sites; no new root read or credential.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): in the edge-ready callback, calls act.SetHeldWakeHook(e.HeldWake) when act is non-nil (installing the non-blocking wake callback) and stores e.HeldStreamsForStatus in heldStreamsSource. Wiring of in-memory callbacks only; no read added.;rev3=census-ruling-region-ha-p1b3b-t;basis=Wire Service.SetDutyView to the live edge DutySnapshot in the ready callback. No new read; no new loop or cloud operation. B2 wires the registry as the persistent DutyStore before service startup; no new cloud or filesystem path. B3b: arm one journal-backed termination consumer before service startup using agentCtx and the shared confirmer; expose edge tick and join at edge shutdown. No new direct read sites.;rev3=census-ruling-agent-start-demo-1;basis=Passes the existing registry, data store and hibernation prefix into the demo worker, and the existing instance-control client into the demo before-exec hook. No alternate data store or polling loop. Merge resolution against origin/main 9bd45488 retains main's HA departure controller, lifecycle and duty wiring alongside the demo data store and worker; no read site added by the resolution.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: install closed fixed admission before every launch source, bind activator/backend and edge, wire the real termination Started lifecycle and role reader after the change index; close before cancellation/child shutdown. No new external reads or cloud authority. Fix R1: move bind/lifecycle/edge-option wiring into wireAgentAdmission and worker listing into runWorkerBootPassAfterAdmission. Worker boot waits for admission before listing then uses unchanged bounded wakes and per-host serialization; whole Route read moves to the helper. No new storage, cloud, or root execution authority. Preserve merged main's agent wiring and census basis; the branch removes one whole Route use by moving worker iteration to the helper, with no added read kind.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: arms a fleet-only worker using the existing registry, activator, backend and authenticated console transport. Owned worker stops and joins at shutdown. No new bucket reader. merge of origin/main 9b8b2c50: retain HA duty/departure lifecycle, wake-slot and existing agent wiring alongside the replica placement worker; no new read introduced by resolution. merge of origin/main 6be08467: Retain main demo configuration, admission, build and expiry wiring alongside the replica worker; merge-only body change, no additional read. merge of origin/main 7920cccf: Retain main box-role/group admission wiring and boot publication beside the owned replica worker and shutdown; main moves the boot registry List into runWorkerBootPassAfterAdmission, removing its inline whole Route site. No new read introduced by conflict resolution.;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 M3: retain the private snapshot source and cancel/join ownership, but use the replica-health-specific retry loop. It logs its first failure only and retains the existing exponential backoff capped at 30 seconds; unsupported builds return nil. Existing five direct read sites unchanged; no new credentials, bucket reader or app lifecycle action. file:Exec@18226,file:Open@1517,file:Statfs@47850,registry:App@11938,whole:Route@11930 916ecf4ddcec9c37f1233710a3e8dbba4d0c8b952d60b6a4831d45258b7591bc
internal/activator/replicaprobe.go Service.ProbeCopy legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: read the local registry assignment and the already-awake entry's launch/worker evidence under the held-leg predicate; compare account, app, fleet, box membership and lifetime; no bucket call, wake, authority acquisition or activity update. Added registry field and whole Route reads are the existing local projection, not tenant-selected paths. registry:Account@1564,registry:App@1581,registry:FleetBoxes@306,registry:HA@402,registry:HA@891,registry:Hibernate@386,registry:Hibernate@874,registry:Incarnation@819,registry:Incarnation@838,registry:Kind@361,registry:Region@1135,registry:Region@792,registry:Region@806,registry:ReplicaIncarnation@1658,registry:ReplicaIncarnation@741,registry:ReplicaIncarnation@767,registry:ReplicaRevision@1703,registry:Stateless@857,whole:Route@1083,whole:Route@1089,whole:Route@296,whole:Route@683,whole:Route@714,whole:Route@719 efe551a9cdf45284360710a083d19813120343f843ae9db9d3b4636d5f96d57c
internal/edge/replicaprobe.go Edge.replicaCopyMatches legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: compare Copy identity against the loaded Route's host, account, app, fleet, incarnation and assignment revision; local box must remain a member. Only in-memory registry field reads; no file or bucket reads. registry:Account@213,registry:App@251,registry:Host@170,registry:Region@115,registry:ReplicaIncarnation@325,registry:ReplicaRevision@374 503766598b5be534178a0c843ad160082961a96577c7c591416f9921712614ce
-internal/edge/replicaprobe.go Edge.serveReplicaProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: verify the loaded assigned route, admit a held leg without waking, and GET the platform-captured serving generation's Unix socket under a one-second deadline. Recheck evidence after the response, drain at most 4 KiB and close. Route uses are already-loaded data; no root execution, bucket read or caller-chosen dial path. registry:FleetBoxes@390,registry:HA@459,registry:Hibernate@443,registry:Host@346,registry:Kind@365,whole:Route@1025,whole:Route@1215,whole:Route@2194,whole:Route@706 71e7e09ba2eea40c306362f2a17ed8324491da4560cc7896a84b309bcb39669a
+internal/edge/replicaprobe.go Edge.serveReplicaProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 I4/F1: the dialled pathname comes from the serving Gen.Socket and, for shared/foreign layouts, can originate in the registry row Socket. Dial through unixdial.Checked: refuse the instance-control directory before connect and require getpeername to match the dialled path before sending HTTP, including symlink refusal. Existing Route reads unchanged. M5 handles request construction errors before RoundTrip; M2 uses the shared reason constant. Authenticated private landing, held-leg admission, one-second bound and post-response identity checks remain. registry:FleetBoxes@390,registry:HA@459,registry:Hibernate@443,registry:Host@346,registry:Kind@365,whole:Route@1025,whole:Route@1215,whole:Route@2268,whole:Route@706 8b158b6a5f414bc8290e9b13b0c27da2002920e837b7c9e98aea0771c98bac5e
internal/edge/replicaprober.go Edge.syncReplicaProbes legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: explicit integration seam passes supplied routes to the hub prober only when a tunnel hub exists. Not called from Reload or live routing in this slice. Whole Route use is in-memory; no registry query or bucket read. whole:Route@266 067356c5f648c50deed9ff3216dc2f4e61377f2de5328c86bd88d4bea4ae7175
internal/edge/replicaprober.go TunnelHub.probeReplica legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: file:ReadAll is io.ReadAll of an HTTP response body from the existing authenticated tunnel transport, limited to 64 KiB plus an overflow byte and closed. Sends a fresh private GET with no visitor credentials, rejects non-200/non-JSON responses, never follows redirects. No filesystem path is opened. file:ReadAll@618 7514dbfa020b4da77546960850b279972a00dd8ec4404af719651925b23297ca
internal/edge/replicaprober.go newReplicaProber legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: allocate empty in-memory job and route maps; choose the existing tunnel transport adapter and clock. Whole Route is a map value type, not an external read. Construction starts no job. whole:Route@306 8090869d116edd4340609068c605baefe9e9ac7a71d9c882d65508ae01c79043
-internal/edge/replicaprober.go replicaEvidenceMatches legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: compare authenticated platform Copy evidence to the assigned route and pinned connection/job evidence. GoodDigest is the serving platform executable digest, never the canonical manifest hash. Reads only supplied Route fields; no file, bucket or manifest fetch. registry:Account@225,registry:App@247,registry:GoodDigest@823,registry:GoodDigest@857,registry:GoodVersion@793,registry:Host@202,registry:Region@135,registry:ServingVersion@713,registry:ServingVersion@752,whole:Route@80 9cd81c96fe9ae311ebfe451e8cfaf22e7183735d15e028b2f872557d7eac3e89
+internal/edge/replicaprober.go replicaIdentityMatches legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13: compare reported host/account/app/fleet/box/incarnation against the surviving job and its current route view, before the revision-skew decision. Boot must be present; the connection pin is checked by record. In-memory Route fields only, no external read. registry:Account@169,registry:App@191,registry:Host@146,registry:Region@118,whole:Route@75 e20949646de55dab02bb4caf3e6e81c5edf5228696712c643e5027ce8add04fc
internal/edge/replicaprober.go replicaProber.Snapshot legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: return a detached snapshot for the requested host from the already-held route/job maps. Whole Route copies remain in memory; no new external reader. whole:Route@113,whole:Route@193 171de8351bf2af47663c62e149b96907c1ff3366f3a9441d36f1eda3375cf5ca
internal/edge/replicaprober.go replicaProber.Stop legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: permanently stop, cancel and join owned jobs and clear their in-memory route map. Whole Route use is the map value type; no external read or lifecycle action on applications. whole:Route@155 ca2248300f84a7bbd7400c6f60b44c682adbf4387251979e241445e06fad8877
-internal/edge/replicaprober.go replicaProber.Sync legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: validate supplied stateless set rows, reject duplicates and invalid/legacy/HA/hibernating rows, preserve unchanged job keys, and cancel/replace changed host-lifetime-revision-box jobs. Registry fields and whole Route values come from the caller's snapshot only; no query, bucket polling, app wake or routing integration. registry:Account@331,registry:App@351,registry:FleetBoxes@308,registry:FleetBoxes@688,registry:HA@367,registry:Hibernate@376,registry:Host@1158,registry:Host@473,registry:Host@501,registry:Host@529,registry:Kind@393,registry:Region@1051,registry:ReplicaIncarnation@1167,registry:ReplicaRevision@1200,whole:Route@1221,whole:Route@1228,whole:Route@262,whole:Route@467,whole:Route@523,whole:Route@540,whole:Route@569,whole:Route@610,whole:Route@745,whole:Route@776,whole:Route@829,whole:Route@871,whole:Route@925,whole:Route@934,whole:Route@963 9ed9fcc15f6f5ad1c2bd7d64fcc56410923004bbc77c932a9d5180fbb649683d
-internal/edge/replicaprober.go replicaProber.reset legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: reset a copy to unknown on connection change and build its identity from the job's captured route; disconnected copies are down. Reads only in-memory Route fields; no external input or file read. registry:Account@258,registry:App@280,registry:Region@189,whole:Route@191,whole:Route@260,whole:Route@282 a3fe9112c25e9f9b968ee8eff4ba7c1746db259142636f986c6a5b8798da4ff7
+internal/edge/replicaprober.go replicaProber.Sync legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13: preserve surviving host/incarnation/box jobs and their samples/counters across revision, Copies and deployment-stamp changes; refresh the in-memory route view under the prober mutex. Cancel removed members and changed owner/lifetime/fleet jobs; new members start unknown. Supplied Route values only, no query, bucket polling or wake. registry:Account@331,registry:App@351,registry:FleetBoxes@308,registry:FleetBoxes@688,registry:HA@367,registry:Hibernate@376,registry:Host@1318,registry:Host@473,registry:Host@501,registry:Host@529,registry:Kind@393,registry:Region@1211,registry:ReplicaIncarnation@1327,whole:Route@1064,whole:Route@1072,whole:Route@1085,whole:Route@1094,whole:Route@1123,whole:Route@1361,whole:Route@1368,whole:Route@262,whole:Route@467,whole:Route@523,whole:Route@540,whole:Route@569,whole:Route@610,whole:Route@745,whole:Route@776,whole:Route@829,whole:Route@871 239518132b5d88d1dd50158d2af054544ce622d19a0147fa260e83557153db37
+internal/edge/replicaprober.go replicaProber.record legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13: after current-job/connection and identity/boot checks, compare the response revision with the job current route ReplicaRevision. A mismatch changes no sample, counter, evidence or boot pin. Matching results retain existing fail/rise behavior. Read the already-supplied Route revision in memory; no registry query, bucket read or authority grant. registry:ReplicaRevision@900,whole:Route@902 5851a2928f7dc1711ed43f59a5c82dbe1b4d7b5f7b58fb2f897fb8dae5efe077
+internal/edge/replicaprober.go replicaProber.reset legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13: when connection identity changes, use the current in-memory route ReplicaRevision for the unknown/down sample; revision is no longer part of the immutable job key. Added ReplicaRevision field read, no registry query or other external reader. registry:Account@258,registry:App@280,registry:Region@189,registry:ReplicaRevision@375,whole:Route@191,whole:Route@260,whole:Route@282,whole:Route@377 28128e5cf897ab07d76c50f7f2bd10be26b147258318f71ba791c2fdf45a7e99
internal/edge/replicaprober.go replicaProber.snapshotLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: build one host's detached snapshot from its canonical assignment boxes and job samples, excluding closed/replaced tunnel generations immediately. Registry field reads are the stored in-memory route; no filesystem or bucket access. registry:Account@126,registry:App@143,registry:Copies@226,registry:FleetBoxes@284,registry:Host@108,registry:Host@513,registry:ReplicaIncarnation@164,registry:ReplicaRevision@197 6e61edffbcab8ad36f1dd0909badddde6b9b24a9b070ebe10c877b453b228f04
internal/edge/replicaprober.go replicaProber.snapshots legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: copy all current host snapshots under the prober lock for the private health socket. Whole Route values are the owned map; returned slices/maps cannot mutate health state. No new external reads. whole:Route@150,whole:Route@184,whole:Route@224 be3aafcac789af7434db8ec1cf0b884b242d82eb1c24c7aca2795ec578741e23
-internal/edge/replicaprober.go sameReplicaJob legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: compare captured and supplied route identity, assignment and optional platform serving-build evidence to decide job preservation. Pure in-memory comparisons; no authority or external reads. registry:Account@194,registry:Account@207,registry:App@221,registry:App@230,registry:Copies@298,registry:Copies@310,registry:FleetBoxes@265,registry:FleetBoxes@281,registry:GoodDigest@399,registry:GoodDigest@415,registry:GoodVersion@364,registry:GoodVersion@381,registry:Host@97,registry:Region@240,registry:Region@252,registry:ReplicaIncarnation@129,registry:ReplicaRevision@172,registry:ServingVersion@323,registry:ServingVersion@343,whole:Route@69 a12dc37f2e9a77e1e965c9a99103decedae5e5bd3c615c972d81a3f539465ba0
+internal/edge/replicaprober.go sameReplicaJob legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 Q13/Q14: compare host/incarnation and owner/fleet only; the slot supplies the box and Sync checks current membership. Remove revision, copy count, FleetBoxes and per-host serving/good-build stamp comparisons. Pure comparisons of captured and supplied route fields; no external read. registry:Account@154,registry:Account@167,registry:App@181,registry:App@190,registry:Host@97,registry:Region@200,registry:Region@212,registry:ReplicaIncarnation@129,whole:Route@69 117b6aece8fee1e121c6a6b65f5a901ec752c30bedcb5bc64d64694b467ef23e
internal/edge/tunnel.go tunnelWire.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1b: the scanner's file:Read sites are net.Conn.Read on the existing authenticated reverse-channel connection, not filesystem reads. Notify closure on reader failure so copy health excludes closed connections immediately. No pathname, root-owned file or new network destination is introduced. file:Read@21,file:Read@62 eff57b35dc5f4f7e2f54e08b07e07b0a21d571c41704be0a3d1997db362b8234
internal/host/replicahealth_linux.go serveReplicaHealth legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: Lstat checks the fixed agent-owned /run/carlos/.replicas directory and health.sock; Open opens that directory read-only for flock. Require directory ownership and mode 0700, socket 0600, preserve live/non-socket/ambiguous existing paths, and only remove proven stale sockets under the lock. Read-only snapshot handler, bounded shutdown and listener-owned unlink; not mounted into tenant namespaces. No root read of tenant-controlled input. file:Lstat@252,file:Lstat@906,file:Open@650 1ff1e05ec8222c2adf684421e40eb55c7590beba28a725e5035b08da04042cb2
internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): parses the request's query once (stripHoldMarker) to record the carlos_hold=1 mark in the request context; calls classifyHold on the upstream already resolved from the loaded map (the +whole:Route is that in-memory Route), including a second pass for a login POST; gives a marked request on a door-refused route the plain 404; adds the hold branch (planThrottleAdmit, rateAdmit, serveHeld) after the gate; and excludes marked requests from the shared cache. Reads only the request and the already-loaded upstream map; no registry or bucket read added.;rev3=census-ruling-region-ha-p3a;basis=Complete the P3a cut: an exact peer name with no dial target answers the approved admission 503 before local wildcard dispatch or asset serving. ExactHome and lookupHome stop fallback at a present non-dial entry; backhaulTo refuses an empty target before signing or dialing. Retain Task 3 local admission and fixed platform/unit exemptions. Two added whole Route uses feed the local in-memory admission predicate; existing Route values and store/path reads are unchanged.;rev3=census-ruling-stateless-coordinator-route;basis=P24/P25: POST only, exact /api/fleet/replicas/ prefix on the reserved tunnel host calls the existing local console proxy only for an unescaped, already-clean path; malformed forms remain on the hub. No new read sites relative to origin/main. Merge with main 3487d6f6 retains its region HA admission checks before routing and after login target lookup, its empty-home refusal, and their two existing whole:Route reads; these change this unit's digest relative to the previously approved branch tip 92b24a7d.;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: pass the already-resolved Route to the reserved replica-probe handler after acceptHop and existing admissionRefuses, requiring tunnel context plus private marker and refusing door/backhaul ingress. Added whole Route use only; scrub marker before forwarding; HA calls remain unchanged. file:ReadAll@15522,registry:App@21679,registry:Gate@14496,registry:Gate@26070,registry:Gate@26130,registry:Gate@26188,registry:Host@26173,registry:ImportGate@33573,registry:Kind@20541,registry:Kind@23979,registry:Kind@33515,registry:Kind@33544,whole:Route@14391,whole:Route@14502,whole:Route@17319,whole:Route@18103,whole:Route@18561,whole:Route@18753,whole:Route@20544,whole:Route@21605,whole:Route@21671,whole:Route@21682,whole:Route@21935,whole:Route@22030,whole:Route@22106,whole:Route@22150,whole:Route@22452,whole:Route@22482,whole:Route@23982,whole:Route@24267,whole:Route@26073,whole:Route@26133,whole:Route@26176,whole:Route@26191,whole:Route@27109,whole:Route@29172,whole:Route@33518,whole:Route@33547,whole:Route@33576,whole:Route@33608,whole:Route@35456,whole:Route@5576,whole:Route@5671 d86bb163dfe6c165cad91eb2a4713f3f862d6128a8ec59808e6dc638c3d44a49
@coverage internal/activator c5b02ec2a8b43a6ec7472b2f70d2d2a7d81a6e9fea126d398aca21ae46b5ca6f
-@coverage internal/edge ea8a3dfd94d2808459293ac0778aa57456f8d82f15ec8e1b20f4e5607b605aa4
-@coverage internal/host ccb007a6a9705c2fbce61d04e59998a61d18696412e2926a748b7aa315647f53
+@coverage internal/edge b5ebd4ef870dbf9ced5337ff30a0c1039b0db4ba03f136780a74d9d22550696a
+@coverage internal/host 8202b947824702b5897bdb32875ea7ab1386bd0b8f077f5ec1d506c2038f565a
@coverage internal/replicas 2c780322923afa8a3c3ec017f57d2b165858f21d38225fd16ef52d1402e5316a
@coverage internal/tunnelclient a5bd418d97ee5e5d2bb9550dd35e2456b1c06fc541b82fe1e40a5594ed6fba30