fix: keep lagging copies' health across revision changes
Count valid replica probe results toward fail/rise and refresh observation age even while assignment revisions differ. Keep the hub's revision in the accepted sample; preserve identity, evidence and cancellation gates. Cover admission, recovery, two-failure ejection and uninterrupted two-copy HTTP/2 serving during revision lag. Restore the neutral-skew behavior in one mutation check to prove the integration test catches the resulting 503. Update the census proposal for final-review I1 under ruling Q22.
Co-Authored-By: Codex (gpt-6-astra) <noreply@openai.com>
docs/superpowers/notes/census-proposal-stateless-replicas-3.md+1 −1internal/edge/replicaprober.go+3 −6internal/edge/replicaprober_test.go+151 −53internal/provision/testdata/plan14-root-reads-chain.tsv+1 −1internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv+3 −3
CI failed — run details
Intent
<task-notification> <task-id>b97wfjsh9</task-id> <tool-use-id>toolu_01SvJ3Ra2ExTpE8t8E7oeLf5</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/b97wfjsh9.output</output-file> <status>completed</status> <summary>Background command "Wait for Task 3 fix round 1" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>afa153d3b3715ad20</task-id> <tool-use-id>toolu_01XtnfNiqSZG1ofyqcU47HZA</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/afa153d3b3715ad20.output</output-file> <status>completed</status> <summary>Agent "Task 3 scoped re-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>All six findings are fixed, the three ⚠ evidence items hold up, and the census is clean at the new seal 17c819e6. The full re-review is in `.superpowers/sdd/2026-11-01-stateless-replicas-3-routing/task-3-rereview-1.md`. - **I1 (Q20):** ADDRESSED. `UpstreamStates` is back to address probes only (`internal/edge/edge.go:1558`). Copy data now goes under its own `replica_copies` key (`internal/status/snapshot.go:150`, `:651`, `:1169`, `:1204`; `internal/host/agent.go:1132`, `:4462`, `:4692`). No console or CLI code reads it. Two tests cover it: `internal/edge/replicaforward_test.go:299` and `internal/host/replica_request_budget_test.go:130-139`. M7 is moot. - **M1:** ADDRESSED. Each structural failure now has its own internal reason (`internal/edge/fleetforward.go:59-80`). The refusal is the same as before, and the reasons only reach the log at `edge.go:935`. Tested at `replicaforward_test.go:315`. - **M2:** ADDRESSED. The ArmReplica comment is at `edge.go:959` and the blank line before `edge.go:977` is gone. - **M3:** ADDRESSED. `edge.go:555-556` and `internal/edge/upgrades.go:31-32` now include ArmReplica. - **M4:** ADDRESSED. Each alias must now resolve to the source host (`replicaforward_test.go:160-163`); the brief's assertion lines are kept. - **M5:** ADDRESSED. The test asserts the removed box gets no probe after the shrink (`internal/host/replica_tunnel_e2e_test.go:268-281`). - **⚠(a) prober stopped at edge shutdown:** convincing. The stop is a defer at `edge.go:4453`. The new `TestReplicaEdgeShutdown` (`internal/edge/replicashutdown_linux_test.go:17`) sends SIGTERM to a child running the real edge and never calls Stop directly. - **⚠(b) red-run output for the edge tests:** convincing. At c5da45ae the tests fail on behaviour, and the temporary worktree has been removed. - **⚠(c) HA and legacy files unchanged:** convincing. I re-ran the `git diff` against c5da45ae on the eight named files and got 0 bytes. The only `edge.go` changes are the upstream-struct comment and `Edge.Reload`. - **Census:** APPROVE, seal `17c819e60e8273e6e37a2225583b185a82f224d021c84c067ef46ba581cd0eaa`. `make census-card` says the census is clean. Five units changed, all body-only with read sites unchanged: `Edge.Reload`, `FleetServeEligible`, `runAgent`, `statusLoop`, `CollectBox`. All are agent code: no root read or write was added and no check was weakened, and the claims match the diff. - **New breakage:** no Critical or Important. One Minor: the shutdown test calls `t.Fatal` inside the ready callback in the child process, which is harmless there. - **Deferred:** M6 and M8, as already recorded in `progress.md`.</result> <usage><subagent_tokens>121862</subagent_tokens><tool_uses>24</tool_uses><duration_ms>200855</duration_ms></usage> </task-notification>
<task-notification> <task-id>bd5d9p8lr</task-id> <tool-use-id>toolu_015stmqkR2pLPaxmASz2eibP</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/bd5d9p8lr.output</output-file> <status>completed</status> <summary>Background command "Watch CI on the Plan 3 tip" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>ae8d06e4243b38175</task-id> <tool-use-id>toolu_01XACWx9ikCpfivy6bojCd2m</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/ae8d06e4243b38175.output</output-file> <status>completed</status> <summary>Agent "Plan 3 final whole-branch 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>Review written to `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-replicas-3/.superpowers/sdd/2026-11-01-stateless-replicas-3-routing/final-review.md` (the only file I created; scratch removed, worktree clean apart from that file, which is untracked). **Verdict: Ready after fixes.** - **I1 (Important):** `internal/edge/replicaprober.go:249` + `Live` aging (`:339-347`): rulings Q13 (ignore revision-skewed samples) and Q16 (age samples out after 3 s) combine so that every assignment-revision change empties the live set for up to one provision pass while hub and member boxes disagree on the revision; the app answers 503 on every membership change (contradicts spec §6.4). One-branch fix: count a lifetime/boot-matched skewed sample as a health observation, keep the hub's revision; or ledger it as a quantified Plan 4 blocker. - **I2 (Important, merge gate):** trial merge with main bb8973d1 conflicts only in `internal/provision/testdata/plan14-root-reads-chain.tsv` (both append one chain line); keep both lines, main's first, then rerun the provision chain test and the census re-check. No semantic conflict with bb8973d1 seen. No Critical findings. Edge replica and legacy tests pass here (42 s); three socket-dependent tests fail only because the sandbox refuses Unix listeners, and the ledger records CI green at e7359225. None of the deferred minors blocks merge; SR-3-C07 retirement goes with the copy review before release, and the Live() per-request parse plus box-side probe cost are flagged for before the copies floor lifts.</result> <usage><subagent_tokens>223377</subagent_tokens><tool_uses>42</tool_uses><duration_ms>895072</duration_ms></usage> </task-notification>
<task-notification> <task-id>bke596q0o</task-id> <tool-use-id>toolu_015KacQUzLn7tmgQanmTR7is</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/bke596q0o.output</output-file> <status>completed</status> <summary>Background command "Wait for final fix or F8 round 4" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 18.8 g CO₂e (2,380,028 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 7abe9bd97..b4f3505b9 100644 |
| --- a/docs/superpowers/notes/census-proposal-stateless-replicas-3.md |
| +++ b/docs/superpowers/notes/census-proposal-stateless-replicas-3.md |
| @@ -50,6 +50,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the |
| - reads `internal/edge/fleetforward.go:DispatchArm`: +registry:FleetBoxes; keeps legacy, task accepted-legacy |
| - reads `internal/edge/fleetforward.go:FleetServeEligible`: +registry:Account, +registry:App, +registry:FleetBoxes, +registry:HA, +registry:Hibernate, +registry:Kind, +registry:Platform, +registry:Tunnel; keeps legacy, task accepted-legacy |
| -Seal: `59c0891618b9befae27ebe04d0a67b08c7f7658bca9f1c78bf6d05eb7a708e82` → `17c819e60e8273e6e37a2225583b185a82f224d021c84c067ef46ba581cd0eaa`. |
| +Seal: `59c0891618b9befae27ebe04d0a67b08c7f7658bca9f1c78bf6d05eb7a708e82` → `703d9a189185e2075ec088bf9349e5813257308c67187b5968680ea4f9635af1`. |
| 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/replicaprober.go b/internal/edge/replicaprober.go| index 4e238c724..7427ad5d3 100644 |
| --- a/internal/edge/replicaprober.go |
| +++ b/internal/edge/replicaprober.go |
| @@ -243,12 +243,6 @@ func (p *replicaProber) record(j *replicaJob, conn *tunnelConn, c replicas.Copy, |
| reason = replicaFailed |
| } 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 |
| @@ -261,6 +255,9 @@ func (p *replicaProber) record(j *replicaJob, conn *tunnelConn, c replicas.Copy, |
| current.count = upstreamState{} |
| } |
| current.evidence = c |
| + // Assignment propagation can lag in either direction. Sync owns |
| + // membership; this observation describes the same copy's health. |
| + c.AssignmentRevision = j.route.ReplicaRevision |
| c.Socket = "" |
| current.sample = c |
| if !c.Healthy { |
diff --git a/internal/edge/replicaprober_test.go b/internal/edge/replicaprober_test.go| index 29089cd36..3a384263e 100644 |
| --- a/internal/edge/replicaprober_test.go |
| +++ b/internal/edge/replicaprober_test.go |
| @@ -4,6 +4,7 @@ import ( |
| "context" |
| "encoding/json" |
| "fmt" |
| + "io" |
| "net" |
| "net/http" |
| "net/http/httptest" |
| @@ -189,7 +190,7 @@ func replicaTestCopy(rt registry.Route, box string) replicas.Copy { |
| } |
| func TestReplicaProbeRejectsOldIdentity(t *testing.T) { |
| - for _, field := range []string{"host", "account", "app", "fleet", "box", "lifetime", "revision", "boot", "version", "digest", "empty-digest", "generation", "state"} { |
| + for _, field := range []string{"host", "account", "app", "fleet", "box", "lifetime", "boot", "version", "digest", "empty-digest", "generation", "state"} { |
| t.Run(field, func(t *testing.T) { |
| clock := newReplicaTestClock() |
| hub, rt := replicaHubFixture(t, 1) |
| @@ -210,8 +211,6 @@ func TestReplicaProbeRejectsOldIdentity(t *testing.T) { |
| c.Box = "other" |
| case "lifetime": |
| c.Incarnation = "old" |
| - case "revision": |
| - c.AssignmentRevision-- |
| case "boot": |
| c.BootID = "old" |
| case "version": |
| @@ -233,17 +232,10 @@ 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") |
| } |
| @@ -830,18 +822,18 @@ func TestReplicaProbeAssignmentChangesPreserveSurvivors(t *testing.T) { |
| 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. |
| + // Lagging local revisions refresh survivors and count toward the new |
| + // box's two passes. |
| clock.advance(time.Second) |
| replicaSettled(t, clock, 8) |
| - if !reflect.DeepEqual(p.Live(rt.Host), before) { |
| - t.Fatal("skewed results changed health") |
| + if got := p.Live(rt.Host); len(got) != 3 { |
| + t.Fatalf("lagging members did not stay live or rise: %+v", got) |
| } |
| 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") |
| + if len(p.Live(rt.Host)) != 3 { |
| + t.Fatal("revision catch-up interrupted members") |
| } |
| clock.advance(time.Second) |
| replicaSettled(t, clock, 14) |
| @@ -868,49 +860,155 @@ func TestReplicaProbeAssignmentChangesPreserveSurvivors(t *testing.T) { |
| } |
| } |
| -func TestReplicaProbeRevisionSkewChangesNothing(t *testing.T) { |
| +func TestReplicaProbeRevisionSkewRefreshesHealth(t *testing.T) { |
| + for _, delta := range []int{-1, 1} { |
| + t.Run(fmt.Sprint(delta), func(t *testing.T) { |
| + clock := newReplicaTestClock() |
| + hub, rt := replicaHubFixture(t, 1) |
| + var status atomic.Int32 |
| + status.Store(499) |
| + p := newReplicaProber(hub, func(context.Context, string, string) (replicas.Copy, error) { |
| + c := replicaTestCopy(rt, "box-00") |
| + c.AssignmentRevision = uint64(int(rt.ReplicaRevision) + delta) |
| + c.Healthy = replicas.HealthyStatus(int(status.Load())) |
| + return c, nil |
| + }, clock) |
| + t.Cleanup(p.Stop) |
| + p.Sync([]registry.Route{rt}) |
| + replicaSettled(t, clock, 1) |
| + if len(p.Live(rt.Host)) != 0 { |
| + t.Fatal("one skewed pass admitted copy") |
| + } |
| + for n := 2; n <= 6; n++ { |
| + clock.advance(time.Second) |
| + replicaSettled(t, clock, n) |
| + live := p.Live(rt.Host) |
| + if len(live) != 1 || live[0].ObservedAt != clock.Now() || live[0].AssignmentRevision != rt.ReplicaRevision { |
| + t.Fatalf("skewed health not refreshed at pass %d: %+v", n, live) |
| + } |
| + } |
| + status.Store(500) |
| + for n := 7; n <= 8; n++ { |
| + clock.advance(time.Second) |
| + replicaSettled(t, clock, n) |
| + if got := len(p.Live(rt.Host)); got != 8-n { |
| + t.Fatalf("after %d skewed failures, live=%d", n-6, got) |
| + } |
| + c := p.Snapshot(rt.Host).Copies[0] |
| + if c.ObservedAt != clock.Now() || c.AssignmentRevision != rt.ReplicaRevision { |
| + t.Fatalf("skewed failure not recorded: %+v", c) |
| + } |
| + } |
| + status.Store(200) |
| + for n := 9; n <= 10; n++ { |
| + clock.advance(time.Second) |
| + replicaSettled(t, clock, n) |
| + if got := len(p.Live(rt.Host)); got != n-9 { |
| + t.Fatalf("after %d skewed recovery passes, live=%d", n-8, got) |
| + } |
| + } |
| + }) |
| + } |
| + for _, bad := range []string{"lifetime", "box", "boot"} { |
| + t.Run(bad, func(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) |
| + if len(p.Live(rt.Host)) != 1 { |
| + t.Fatal("copy not admitted before mismatched sample") |
| + } |
| + p.mu.Lock() |
| + j := p.jobs[replicaSlot{rt.Host, "box-00"}] |
| + p.mu.Unlock() |
| + 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 len(p.Live(rt.Host)) != 0 || p.Snapshot(rt.Host).Copies[0].Reason != replicaStale { |
| + t.Fatalf("revision skew concealed %s mismatch", bad) |
| + } |
| + }) |
| + } |
| +} |
| + |
| +func TestReplicaProbeRevisionChangeKeepsServing(t *testing.T) { |
| + var copies [2]replicas.Copy |
| + var revision atomic.Uint64 |
| + var hits [2]atomic.Int32 |
| + handler := func(i int) http.HandlerFunc { |
| + return func(w http.ResponseWriter, r *http.Request) { |
| + if r.URL.Path == replicaProbePath { |
| + c := copies[i] |
| + c.AssignmentRevision = revision.Load() |
| + w.Header().Set("Content-Type", "application/json") |
| + if err := json.NewEncoder(w).Encode(c); err != nil { |
| + t.Error(err) |
| + } |
| + return |
| + } |
| + hits[i].Add(1) |
| + io.WriteString(w, copies[i].Box) |
| + } |
| + } |
| + hub, _, rt := replicaProxyFixture(t, handler(0), handler(1)) |
| + for i := range copies { |
| + copies[i] = replicaTestCopy(rt, fmt.Sprintf("box-%02d", i)) |
| + } |
| + revision.Store(rt.ReplicaRevision) |
| 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) |
| + p := newReplicaProber(hub, 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") |
| + clock.advance(time.Second) |
| + replicaSettled(t, clock, 4) |
| + proxy := replicaProxy(rt.Host, "pi", p, hub) |
| + serve := func() { |
| + t.Helper() |
| + for range 2 { |
| + w := httptest.NewRecorder() |
| + proxy.ServeHTTP(w, replicaDispatchRequest(t, "GET", nil)) |
| + if w.Code != http.StatusOK || (w.Body.String() != "box-00" && w.Body.String() != "box-01") { |
| + t.Fatalf("revision change interrupted serving at %v: status=%d body=%q", clock.Now(), w.Code, w.Body.String()) |
| } |
| } |
| } |
| - 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) |
| + serve() |
| + rt.ReplicaRevision++ |
| + p.Sync([]registry.Route{rt}) |
| + serve() |
| + for n := 3; n <= 8; n++ { |
| + clock.advance(time.Second) |
| + replicaSettled(t, clock, 2*n) |
| + serve() |
| + if s := p.Snapshot(rt.Host); s.Revision != rt.ReplicaRevision || len(s.Copies) != 2 { |
| + t.Fatalf("hub assignment changed: %+v", s) |
| } |
| } |
| + for _, c := range p.Snapshot(rt.Host).Copies { |
| + if c.AssignmentRevision != rt.ReplicaRevision || c.ObservedAt != clock.Now() { |
| + t.Fatalf("lagging box replaced hub revision or failed to refresh: %+v", c) |
| + } |
| + } |
| + revision.Store(rt.ReplicaRevision) |
| + clock.advance(time.Second) |
| + replicaSettled(t, clock, 18) |
| + serve() |
| + if hits[0].Load() != 9 || hits[1].Load() != 9 { |
| + t.Fatalf("both copies must keep serving: %d, %d", hits[0].Load(), hits[1].Load()) |
| + } |
| } |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 36a54b45f..a5bf45304 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 17c819e60e8273e6e37a2225583b185a82f224d021c84c067ef46ba581cd0eaa |
| +plan14-root-reads-stateless-replicas-3.tsv 703d9a189185e2075ec088bf9349e5813257308c67187b5968680ea4f9635af1 |
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 4d769d1e7..cf9a2892d 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-stateless-replicas-3.tsv |
| @@ -16,7 +16,7 @@ |
| @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 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 390f439555bf1063959d04b66d5461a4a8976e6d6e6dbc779701b86fc606d4c1 internal/edge/replicaprober.go replicaProber.record legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Final I1 fix, Q22: accept a revision-skewed result as normal health evidence after the unchanged current-job, cancellation, connection, owner, lifetime, box, boot and serving-evidence checks. Count fail/rise and refresh ObservedAt; stamp the accepted sample with the hub current route ReplicaRevision. The existing in-memory Route revision read moves from the skew refusal to that stamp. No new external read, path, bucket poll, membership authority or wake. registry:ReplicaRevision@1184,whole:Route@1186 78e4fc119b525e3f96c020069012cc11822f0c5e21614d04d2d86a72ab64ea6d |
| @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 |
| @@ -43,7 +43,7 @@ internal/edge/replicaprober.go replicaIdentityMatches legacy accepted-legacy acc |
| 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 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.record legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-3;basis=Final I1 fix, Q22: accept a revision-skewed result as normal health evidence after the unchanged current-job, cancellation, connection, owner, lifetime, box, boot and serving-evidence checks. Count fail/rise and refresh ObservedAt; stamp the accepted sample with the hub current route ReplicaRevision. The existing in-memory Route revision read moves from the skew refusal to that stamp. No new external read, path, bucket poll, membership authority or wake. registry:ReplicaRevision@1184,whole:Route@1186 78e4fc119b525e3f96c020069012cc11822f0c5e21614d04d2d86a72ab64ea6d |
| 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 |
| @@ -55,7 +55,7 @@ internal/edge/fleetforward.go FleetServeEligible legacy accepted-legacy accepted |
| internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged;rev3=census-ruling-edge-roll-blip;basis=the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 4 and 6: the forward case (fleetProxy toward the binding's FleetBox, throttled refusal); one refusal check before the switch from FleetArmVerdict (sidecar not judged; a non-ready forward row refused; a forward row always judged by FleetServeEligible, any other row only where tunnels are on; an alias of a refused source refused with it); the accountless note; path rows of a forward host not folded; no alias folded onto a refused row; refusedHosts held through every fold. ListFleets and FleetChannelAuth read before the loop (+registry:FleetBox, +registry:Host x7, +whole:Route x3). Serving only; the hub's agent, not root. Review R1 finding 2: the switch reads verdict.Served (FleetArmVerdict) by host; the forward case and the fleet-placed case take their fleet from it (served.Fleet) instead of FleetPlacement(t.Region), and an admitted forward row not Served continues rather than falling through (+registry:Host, -registry:Region); the same rows take the same arms; no read added. Review R2: the switch is on DispatchArm(t, viaFleet, tunnels) (the order moved there unchanged: forward only when in Arm, own Tunnel, fleet, socket, addrs, static, status, else continue), the fleet cases read verdict.Arm (renamed from Served), and the platform-alias fold is foldPlatformAliases with the same take (source entry, own paths, alias marks) and the same refusal log (-registry:Kind x2, -registry:Socket, -registry:Tunnel, +whole:Route: those reads moved into DispatchArm); same rows, same arms, same entries; no read added.;rev3=census-ruling-fleet-routes-followups;basis=the owners map is now e.reg.FleetOwners() instead of ListFleets folded inline: the same fresh-connection ListFleets read and the same name->account map (-registry:Account, -registry:Name, -whole:Fleet x2 move into Registry.FleetOwners); no read added; same error path (abort the reload);rev3=census-ruling-tunnel-websockets;basis=The ArmTunnel arm now records its tenancy (Account, App, Tunnel) copied from the row t that Reload already lists; no new registry query, no file read. Also the reload mutex taken first and held to return, five nil-in-production test hooks, and the sweepUpgrades call after the swap, which reads only the map Reload has just built (spec 7, Tasks 3 and 4).;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the two fleet proxy builds pass the row to fleetBoxOf(t) instead of reading t.FleetBox (-registry:FleetBox x2, +whole:Route x2); fleetBoxOf answers FleetLabel as authoritative when set, else FleetBox; an authoritative box has no fallback to another of the fleet's channels (503 errFleetDark instead). The edge in the agent, not root; it routes to fewer channels, never more.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): after the new upstream map is published, closes the held streams of any host the new map no longer holds (absent, not hibernating, route no longer Hibernate). Reads the freshly built in-memory map m and the in-memory held set; no read added beyond the rebuild Reload already does.;rev3=census-ruling-devbox-identity;basis=#486 A: only the devbox edge created by newDevboxEdge (carlos-devbox service user, not root) enables the new proxy hooks. Saves the existing DispatchArm result and reads t.Socket from an already-listed route when that arm is ArmSocket, passing it to configureDevboxProxy for per-request expected-owner validation and visitor-header rewriting. Adds one registry:Socket field site; no new registry query or file open, and ordinary fleet/agent edges leave the hook disabled. Final fix wave: its devbox-only outgoing-header/trailer hooks now also strip case-insensitive underscore/hyphen aliases through stripVisitorHeaders; no new read.;rev3=census-ruling-agent-start-demo-1;basis=Checks demo route eligibility and filters the final folded map using the existing registry listing; no new registry or store query. Merge resolution against origin/main 9bd45488 retains main's devbox proxy hooks (reading the existing route Socket) alongside demo filtering; no additional registry query.;rev3=census-ruling-stateless-replicas-3;basis=Task 3: dispatch admitted stateless set rows through replicaProxy before legacy fleetBoxOf. Read Host and supplied whole Route values from the existing listing to build and filter the set probe inputs after all registry reads and alias folds; synchronize before map publication. Tenancy comes only from FleetArmVerdict. No new external read; no set row reaches legacy fallback, local addresses, provision.Health or hibernation on the hub. Fix round 1 M2: comment and whitespace correction only; read sites and routing behavior unchanged. registry:Account@9912,registry:Alias@24856,registry:Alias@24943,registry:Alias@25523,registry:App@9928,registry:Health@13653,registry:Health@13779,registry:Hibernate@29370,registry:Host@11239,registry:Host@11296,registry:Host@11332,registry:Host@12075,registry:Host@14262,registry:Host@14357,registry:Host@14645,registry:Host@14671,registry:Host@14723,registry:Host@19318,registry:Host@21225,registry:Host@21533,registry:Host@21560,registry:Host@22375,registry:Host@22947,registry:Host@25277,registry:Host@25326,registry:Host@27941,registry:Host@27966,registry:Host@27983,registry:Host@4397,registry:Host@4766,registry:Host@4820,registry:Host@4870,registry:Host@5890,registry:Host@6079,registry:Kind@17654,registry:Kind@17676,registry:Prefix@22922,registry:Socket@12139,registry:Socket@17533,registry:Socket@21541,registry:Status@4691,registry:Target@22934,registry:Tunnel@9772,registry:Tunnel@9943,registry:Version@17635,registry:Version@17737,whole:RegionalDomain@26165,whole:Route@11387,whole:Route@11495,whole:Route@12195,whole:Route@14796,whole:Route@14860,whole:Route@14911,whole:Route@21593,whole:Route@21600,whole:Route@21696,whole:Route@22810,whole:Route@23978,whole:Route@26157,whole:Route@26202,whole:Route@27847,whole:Route@27881,whole:Route@27969,whole:Route@28048,whole:Route@29372,whole:Route@294,whole:Route@3417,whole:Route@3475,whole:Route@4405,whole:Route@5919,whole:Route@6182,whole:Route@6315,whole:Route@6338,whole:Route@6353,whole:Route@7199,whole:Route@7307,whole:Route@9834,whole:RouteAlias@24827,whole:RoutePath@22353 575980dc1128d337eead6f4f6ca0fd4ce89258d9900cfac5bd1df80ce0d4ff8f |
| 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 ad2940df7a60a2a71f136496e6084df1368d19b514f9343a5be49c8c42d80ebe |
| +@coverage internal/edge dcc333a6b3cec6ecf76f0b8e00719800515c263fec6b5f197cc2b0e9bec7e602 |
| @coverage internal/host 9020bd15e0da7c30f1b1ea07346f28c4cb7ca9dadf54c5e726fa0220c0f9d8b1 |
| @coverage internal/replicas 550a02209630a661b8d786822fd51607a4d0481af9ea79e91d270faa1a70d942 |
| @coverage internal/reqrec 384ce988cf87bb60daac7b64f4f398f79b6e09d475698263c5c5b0f36a512ae9 |