carlos / platform Public

stateless: hold a release whose result is unknown

Apply P2-1 from F10 review round 1. A matching durable unknown result
now reaches the existing rollout hold with the approved unknown-result
reason. Transient and pre-releasing coordination errors remain retryable.
The production-wired witness covers lost release output, holding B,
recovering A after exit and service restart, and a later successful C.

Review round 1 was READY with no P1; apply this P2 without reopening it.
Unchanged follow-ups from that review:
- P3-1: unproven stateless releases and hold-ran markers.
- P3-2: binding the registry good build to the record lifetime.
- P3-3: staging-digest failures reported with the release reason.
The census proposal is updated for the controller's required checks.
Co-Authored-By: Codex (gpt-6-astra) <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev e44eb7f496610b46b1834a295757def980a3ad4f parent 6e60dfc
7 files changed, +66 −16
  • docs/superpowers/notes/census-proposal-stateless-failed-release-held.md +3 −3
  • internal/activator/stateless_test.go +27 −0
  • internal/activator/statelessrelease.go +2 −1
  • internal/activator/swap.go +1 −1
  • internal/host/stateless_failed_release_test.go +27 −5
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-stateless-failed-release-held.tsv +5 −5

Intent

Human

<task-notification> <task-id>budn5scq2</task-id> <tool-use-id>toolu_01TLdLhevpqHDucwipsBmNj8</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/budn5scq2.output</output-file> <status>completed</status> <summary>Background command "Wait for Astra on F10" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>a86f706942dbc452f</task-id> <tool-use-id>toolu_01EDspuujSUnpuPM5suu4cvn</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/a86f706942dbc452f.output</output-file> <status>completed</status> <summary>Agent "F10 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: APPROVE Seal: 4bc6e5fc577c8104e5229f4c699171309025b4a55d52c47dd5ca8b84bbc3867e. `make census-card` says the census is clean. The targeted provision tests all pass when run outside the sandbox; inside it, only the fixture tests failed, on the read-only go-build cache. Findings, one line each: - `stateless.go` `prepareStateless` (392-401), APPROVE: recovery fires only when the build matches the committed good build. Only root's rollout manager writes that (`manager.go:1507`), forwarded routes can't set it (`forward.go:118`), and the artifact bytes are still checked against that digest before launch. Recovery skips the coordinator release rather than trusting any new input, so root runs nothing new. - `stateless.go` `statelessFinalRecord` (323-327), APPROVE: recovery re-reads the committed good build at final launch and fences if it no longer matches. The lifetime, placement and identity checks are unchanged, and a new deploy still needs matching released coordinator evidence. - `statelessrelease.go` `PrepareStatelessRelease` (15, 53), APPROVE: the new error wraps `errReleaseNotPassed`, so it is still classified the same way. No new read or write. - `swap.go` `Swap` (371-383), APPROVE: only the outcome changes. A proven failed release becomes SwapFailed, reported as overlap. Every other error still abandons, and nothing new is read. - `internal/activator` envelope, APPROVE: the only changed functions are the four above plus the in-memory `recovery` flag, and everything they call already existed. - Record-write inventory, APPROVE: only the fingerprint of the `prepareStateless` entry changed. Its class and key are unchanged, and `plan9_b8_census_test.go:369` uses the new inventory. - Not blocking (a code-review question, not census): recovery runs the good build without asking the coordinator. If another box has since released a newer schema, this box could run the older build against it. That affects the app's data, not root's privileges. Written to /home/paulca/.cache/sr-f10/census-review.md</result> <usage><subagent_tokens>88198</subagent_tokens><tool_uses>26</tool_uses><duration_ms>231633</duration_ms></usage> </task-notification>

Human

<paseo-system version="1" kind="agent-message" source-agent-id="aa3c74b3-0b6f-4d00-8740-af2485f3529e" message-id="8e5212e0-f12b-4ff8-bfaa-40fc97d67e12" source-agent-title="Region HA P3b-1 dev group (executing approved card)"> From aa3c74b: P3b-1 RETRY window OPEN 2026-11-04T19:45:17Z (posted on #421). Dev channel frozen: no release/promote, no host.env edit or carlos-edge restart on sophie/leo/dennis, no console restart. I&apos;ll post &apos;P3b-1 window closed&apos; on #421. </paseo-system>

Human

<task-notification> <task-id>a930058701e3a892a</task-id> <tool-use-id>toolu_0143j3iNqp7jpohB49KCaUgE</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/195ef15b-aac6-42d6-b49b-41ffb7a4abbc/tasks/a930058701e3a892a.output</output-file> <status>completed</status> <summary>Agent "F10 code 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: READY.** The fix stops F10 as it happened on dev. I found one P2: a release whose result is unknown still leads to the same outage. - **P2-1:** If B's release result is unknown (the box restarts mid-release, or the write that records "failed" hits a store error), `statelessrelease.go:49-50` gives up the attempt instead of holding it. The rollout then retries every 15 s and every wake targets B, which is refused, so the app returns 503 until someone promotes by hand. Spec §6.6 says an unknown result counts as a failure. I confirmed this with a probe test injected without touching the tree: an observed `unknown` comes back as abandoned, not held. Suggested fix: when the same deploy is observed as `unknown`, end it the same way as `failed`. That is about one line plus a test, worth adding now or before the next fleet smoke. I ran the four targeted activator tests and they pass. I could not run the host witness: my sandbox refuses unix sockets and `/tmp/g` is read-only there. I relied on the implementer's run and mutation logs for it. The review also records three P3s. Full review: `/home/paulca/.cache/sr-f10/review.md`</result> <usage><subagent_tokens>156724</subagent_tokens><tool_uses>44</tool_uses><duration_ms>527742</duration_ms></usage> </task-notification>

diff --git a/docs/superpowers/notes/census-proposal-stateless-failed-release-held.md b/docs/superpowers/notes/census-proposal-stateless-failed-release-held.md
index a3d160fee..29de26578 100644
--- a/docs/superpowers/notes/census-proposal-stateless-failed-release-held.md
+++ b/docs/superpowers/notes/census-proposal-stateless-failed-release-held.md
@@ -4,8 +4,8 @@ Ruling `census-ruling-stateless-failed-release-held`. The independent reviewer a
| unit | change | read sites | what changed |
|---|---|---|---|
-| `internal/activator/statelessrelease.go` `Service.PrepareStatelessRelease` | body | unchanged (17) | Distinguish an observed failed coordinator deploy from a transient release admission refusal using a wrapped existing error; no new read or coordinator write. |
-| `internal/activator/swap.go` `Service.Swap` | body | unchanged (13) | Classify a proven stateless release failure, or the same deploy's durable failed phase, through the existing SwapFailed hold mechanism. Preparation precedes stopping the incumbent, so report overlap semantics even if the requested swap is hold. Stateful path unchanged; no new root input. |
+| `internal/activator/statelessrelease.go` `Service.PrepareStatelessRelease` | body | unchanged (17) | Distinguish an observed failed or unknown coordinator deploy from a transient release admission refusal using wrapped existing errors; preserve the existing unknown-result reason; no new read or coordinator write. |
+| `internal/activator/swap.go` `Service.Swap` | body | unchanged (13) | Classify a proven stateless release failure, or the same deploy's durable failed or unknown phase, through the existing SwapFailed hold mechanism. Preparation precedes stopping the incumbent, so report overlap semantics even if the requested swap is hold. Stateful path unchanged; no new root input. |
Envelopes re-pinned: `internal/activator`.
@@ -21,6 +21,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/activator/stateless.go:Service.prepareStateless`: +registry:Digest, +registry:Version ×2, +whole:Route ×3; keeps legacy, task accepted-legacy
- reads `internal/activator/stateless.go:Service.statelessFinalRecord`: +registry:Digest, +registry:Version, +whole:Route; keeps legacy, task accepted-legacy
-Seal: `526d434888d043a8b09d8fe196f6324782d6ca20d759b080f99daa528adf6a32` → `4bc6e5fc577c8104e5229f4c699171309025b4a55d52c47dd5ca8b84bbc3867e`.
+Seal: `526d434888d043a8b09d8fe196f6324782d6ca20d759b080f99daa528adf6a32` → `ed25c373db04235740ec0bc944a56dc63e803c4786d6ad408739eab1eca371f5`.
Overlay: `internal/provision/testdata/plan14-root-reads-stateless-failed-release-held.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/activator/stateless_test.go b/internal/activator/stateless_test.go
index 6a3e20abb..200363b26 100644
--- a/internal/activator/stateless_test.go
+++ b/internal/activator/stateless_test.go
@@ -747,3 +747,30 @@ func TestStatelessFailedReleaseBeforeHoldKeepsRecovery(t *testing.T) {
t.Fatalf("incumbent: %+v %v", g, ok)
}
}
+
+func TestStatelessObservedUnknownReleaseIsHeld(t *testing.T) {
+ r := newWakeRelRig(t)
+ store := wireStatelessRig(r)
+ r.setPlan(WakePlan{Boot: r.good, Mode: ModeOverlap})
+ if err := waitErr(t, r.wake(r.a)); err != nil {
+ t.Fatal(err)
+ }
+ facts, err := r.a.cfg.ReplicaRecord(r.rt)
+ if err != nil {
+ t.Fatal(err)
+ }
+ store.mu.Lock()
+ store.d = &replicas.Deploy{ID: "deploy-" + r.next.Version, Incarnation: facts.Identity.Incarnation, Target: replicas.Build{Version: r.next.Version, Digest: "canonical"}, Phase: "unknown"}
+ store.mu.Unlock()
+ at := Attempt{Host: r.rt.Host, Build: r.next.Version, StagedPath: r.next.StagedPath, Digest: r.next.Digest, Mode: ModeHold, SchedRev: 1}
+ res := r.a.Swap(context.Background(), at, func(string) uint64 { return 1 })
+ if res.Outcome != SwapFailed || res.Mode != ModeOverlap || res.Executed || res.Reason != "release: "+ErrReplicaReleaseUnknown.Error() {
+ t.Fatalf("observed unknown: %+v", res)
+ }
+ if len(r.b.releaseStarts()) != 0 || store.snapshot().Phase != "unknown" {
+ t.Fatal("unknown deploy reran or changed")
+ }
+ if g, ok := r.a.Current(r.rt.Host); !ok || g.Build != r.good.Version {
+ t.Fatalf("incumbent: %+v %v", g, ok)
+ }
+}
diff --git a/internal/activator/statelessrelease.go b/internal/activator/statelessrelease.go
index 703774b5e..00941a47e 100644
--- a/internal/activator/statelessrelease.go
+++ b/internal/activator/statelessrelease.go
@@ -13,6 +13,7 @@ import (
)
var errReplicaReleaseFailed = fmt.Errorf("release: %w", errReleaseNotPassed)
+var errReplicaReleaseUnknown = fmt.Errorf("release: %w", ErrReplicaReleaseUnknown)
func (a *Service) PrepareStatelessRelease(ctx context.Context, rt registry.Route, id release.StagedIdentity, deployID string) error {
ctx, end := a.attemptCtx(ctx)
@@ -47,7 +48,7 @@ func (a *Service) PrepareStatelessRelease(ctx context.Context, rt registry.Route
return nil
}
if old.Phase == "unknown" {
- return ErrReplicaReleaseUnknown
+ return errReplicaReleaseUnknown
}
if old.Phase == "failed" {
return errReplicaReleaseFailed
diff --git a/internal/activator/swap.go b/internal/activator/swap.go
index 350f86c90..1492690e0 100644
--- a/internal/activator/swap.go
+++ b/internal/activator/swap.go
@@ -371,7 +371,7 @@ func (a *Service) Swap(ctx context.Context, at Attempt, newest func(host string)
prepared, err := a.prepareStateless(ctx, route, id, digest)
if err != nil {
res := releaseSwapResult(err, false, a.releaseOpen(at.Host))
- if errors.Is(err, errReplicaReleaseFailed) {
+ if errors.Is(err, errReplicaReleaseFailed) || errors.Is(err, errReplicaReleaseUnknown) {
res = SwapResult{Outcome: SwapFailed, Reason: err.Error()}
}
if res.Outcome == SwapFailed {
diff --git a/internal/host/stateless_failed_release_test.go b/internal/host/stateless_failed_release_test.go
index 58cd842c6..c5b4c67ad 100644
--- a/internal/host/stateless_failed_release_test.go
+++ b/internal/host/stateless_failed_release_test.go
@@ -30,6 +30,7 @@ type failedReleaseBackend struct {
failedReleaseGates
relMu sync.Mutex
releases []string
+ unknown bool
}
func (b *failedReleaseBackend) Processes(rt registry.Route, id release.StagedIdentity) (map[string]release.Process, error) {
@@ -49,7 +50,7 @@ func (b *failedReleaseBackend) StartRelease(ctx context.Context, _ registry.Rout
if id.Version == "B" {
exit = "3"
}
- return failedReleaseUnit{exit}, nil
+ return failedReleaseUnit{exit: exit, unknown: b.unknown && id.Version == "B"}, nil
}
func (b *failedReleaseBackend) releaseBuilds() []string {
b.relMu.Lock()
@@ -57,10 +58,16 @@ func (b *failedReleaseBackend) releaseBuilds() []string {
return slices.Clone(b.releases)
}
-type failedReleaseUnit struct{ exit string }
+type failedReleaseUnit struct {
+ exit string
+ unknown bool
+}
func (failedReleaseUnit) Invocation() string { return "release-invocation" }
func (u failedReleaseUnit) Poll(context.Context) (instancectl.CmdStatus, error) {
+ if u.unknown {
+ return instancectl.CmdStatus{State: instancectl.CmdGone}, nil
+ }
result := "success"
if u.exit != "0" {
result = "exit-code"
@@ -92,6 +99,14 @@ func (e *failedReleaseEvents) Event(_, _, _, _, msg string) {
func (e *failedReleaseEvents) count() int { e.mu.Lock(); defer e.mu.Unlock(); return e.starts }
func TestStatelessFailedReleaseHeldProductionWiring(t *testing.T) {
+ statelessReleaseHeldProductionWiring(t, false)
+}
+
+func TestStatelessUnknownReleaseHeldProductionWiring(t *testing.T) {
+ statelessReleaseHeldProductionWiring(t, true)
+}
+
+func statelessReleaseHeldProductionWiring(t *testing.T, unknown bool) {
prev := activator.GenerationsEnabled()
activator.SetGenerations(true)
t.Cleanup(func() { activator.SetGenerations(prev) })
@@ -116,7 +131,7 @@ func TestStatelessFailedReleaseHeldProductionWiring(t *testing.T) {
facts := haRecordFacts(open, nil)
cfg := activator.Config{Bucket: "test", Idle: time.Hour, Record: facts, ReplicaRecord: func(rt registry.Route) (activator.RecordFacts, error) { return facts(ctx, rt) }}
eb := &activator.ExecBackend{Cfg: cfg, DataDir: dir, OptDir: opt, RunDirOverride: filepath.Join(dir, "run"), Control: &rootfsWireControl{}, NestedOK: func() error { return nil }, RootfsOK: func(context.Context) error { return nil }, RootfsPlacement: func(context.Context, registry.Route) error { return nil }}
- be := &failedReleaseBackend{plannedBackend: &plannedBackend{socket: healthySocket(t)}, failedReleaseGates: failedReleaseGates{eb}}
+ be := &failedReleaseBackend{plannedBackend: &plannedBackend{socket: healthySocket(t)}, failedReleaseGates: failedReleaseGates{eb}, unknown: unknown}
rt := registry.Route{Host: rec.Host, Account: rec.Account, App: rec.App, Kind: "instance", Status: "ready", Channel: rec.Channel, Runtime: rec.Runtime, CreatedAt: rec.CreatedAt.Unix(), Version: "A", Stateless: true, DBPath: provision.NestedDBPath(dir, rec.Host), Socket: filepath.Join(eb.RunDirOverride, "instances", provision.InstanceID(rec.Host), "app.sock")}
for _, ver := range []string{"A", "B", "C"} {
data := []byte("rootfs " + ver)
@@ -222,6 +237,13 @@ func TestStatelessFailedReleaseHeldProductionWiring(t *testing.T) {
}
install("B")
wantReason := "release: " + (&activator.ReleaseError{Build: "B", Exit: 3}).Error()
+ wantPhase, wantAttempts := "failed", 1
+ if unknown {
+ wantReason = "release: " + activator.ErrReplicaReleaseUnknown.Error()
+ // The uncertain execution is abandoned once; the next attempt
+ // observes the committed unknown phase and must hold it.
+ wantPhase, wantAttempts = "unknown", 2
+ }
wait("B held", func() bool {
report := m.Status()
h := report.Hosts[rt.Host]
@@ -246,7 +268,7 @@ func TestStatelessFailedReleaseHeldProductionWiring(t *testing.T) {
if got := be.releaseBuilds(); !slices.Equal(got, []string{"A", "B"}) {
t.Fatalf("release retried: %v", got)
}
- if got := events.count(); got != 1 {
+ if got := events.count(); got != wantAttempts {
t.Fatalf("rollout retried B %d times", got)
}
svc.Start()
@@ -279,7 +301,7 @@ func TestStatelessFailedReleaseHeldProductionWiring(t *testing.T) {
t.Fatalf("recovery reran a release: %v", got)
}
current, err := provision.GetRecord(ctx, store, rec.Account, rec.App, rec.Host)
- if err != nil || current.ReplicaDeploy == nil || current.ReplicaDeploy.Phase != "failed" || current.ReplicaDeploy.Target.Version != "B" {
+ if err != nil || current.ReplicaDeploy == nil || current.ReplicaDeploy.Phase != wantPhase || current.ReplicaDeploy.Target.Version != "B" {
t.Fatalf("recovery replaced B's coordinator evidence: %+v %v", current, err)
}
install("C")
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index d0d912174..60469a3a8 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -87,4 +87,4 @@ plan14-root-reads-stateless-replicas-3.tsv 703d9a189185e2075ec088bf9349e58132573
plan14-root-reads-region-ha-p3b.tsv face84b4c688cd3c179b0a34ced4d3521e71de8e63cbd45f21c27972c5b1a921
plan14-root-reads-stateless-coordinator-oneboxfleet.tsv face84b4c688cd3c179b0a34ced4d3521e71de8e63cbd45f21c27972c5b1a921
plan14-root-reads-region-ha-group-rtb.tsv 526d434888d043a8b09d8fe196f6324782d6ca20d759b080f99daa528adf6a32
-plan14-root-reads-stateless-failed-release-held.tsv 4bc6e5fc577c8104e5229f4c699171309025b4a55d52c47dd5ca8b84bbc3867e
+plan14-root-reads-stateless-failed-release-held.tsv ed25c373db04235740ec0bc944a56dc63e803c4786d6ad408739eab1eca371f5
diff --git a/internal/provision/testdata/plan14-root-reads-stateless-failed-release-held.tsv b/internal/provision/testdata/plan14-root-reads-stateless-failed-release-held.tsv
index 15f0ac8c4..7109168e3 100644
--- a/internal/provision/testdata/plan14-root-reads-stateless-failed-release-held.tsv
+++ b/internal/provision/testdata/plan14-root-reads-stateless-failed-release-held.tsv
@@ -1,12 +1,12 @@
# Census overlay stateless-failed-release-held, written by census-propose (#369). census-ruling-stateless-failed-release-held, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-stateless-failed-release-held.md.
# 2 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
# 2 new dispositions: 2 reads re-frozen at their disposition with the claim, 0 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
-@legacy aad4e2a2cb0aef4896cc00df320bbc004b0aa16761cb91f162b343c2d1b26880 internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. Fix 3b round 1 I2 / R20: only the matching released branch calls the backend escrow initializer. Held authority is reused; absent trio can acquire through the existing coordinator adapter. No release rerun, deploy mutation, new record read or loop; existing final-exec checks from 3a remain unchanged. Final review I2: keep pre-releasing refusals pending; only a command ReleaseError or an actual artifact digest mismatch becomes failed. Releasing uncertainty still fences automatic reruns; begin, authority, execution and proof gates remain.;rev3=census-ruling-stateless-failed-release-held;basis=Distinguish an observed failed coordinator deploy from a transient release admission refusal using a wrapped existing error; no new read or coordinator write. registry:Account@544,registry:App@574,registry:GoodDemand@3105,registry:GoodDigest@3090,registry:GoodVersion@3074,registry:Host@1304,registry:Host@224,registry:Host@3161,registry:Host@3219,registry:Host@3435,registry:Host@3503,registry:Host@601,whole:Route@1110,whole:Route@3228,whole:Route@3235,whole:Route@3787,whole:Route@483 14ef72589299281bc83954ac78f2773922f0007de7501f4476fade02673b88e5
-@legacy 5f8f5e80a6bb271432dbeb9b396bbda87db7932a3b80c1312536a02150ba8876 internal/activator/swap.go Service.Swap legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Verify the target canonical mode and prepare its durable stateless release before stopping the incumbent. A mode change forces the existing proven hold path; same-mode stateless overlap uses local lifecycle gates and the final current-record check, without a serving lease. CI fix 1: defer a missing registry row to the existing release checks only for stateful rootfs overlap, preserving disabled/newest checks and committedGood refusal. Stateless modes, transitions, binary/foreign/hold paths still fence before preparation. No new reads. Final review C1/R26: include incumbent Gen.Stateless as declaration evidence, so only matching good stateful recovery/config attempts can skip canonical lookup. Fresh route, release, ownership and stop gates unchanged.;rev3=census-ruling-stateless-failed-release-held;basis=Classify a proven stateless release failure, or the same deploy's durable failed phase, through the existing SwapFailed hold mechanism. Preparation precedes stopping the incumbent, so report overlap semantics even if the requested swap is hold. Stateful path unchanged; no new root input. registry:Stateless@1340,registry:Stateless@1369,whole:Route@1013,whole:Route@1063,whole:Route@1072,whole:Route@1257,whole:Route@1333,whole:Route@1446,whole:Route@1690,whole:Route@1769,whole:Route@2324,whole:Route@785,whole:Route@801 081906905d3224263009acde31462ead8a9db52e96036654c73a7c8ee840d63d
+@legacy 36f4e799169845fb01044f52a568e3338801eecdfb71e2ad01330d163f5a8403 internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. Fix 3b round 1 I2 / R20: only the matching released branch calls the backend escrow initializer. Held authority is reused; absent trio can acquire through the existing coordinator adapter. No release rerun, deploy mutation, new record read or loop; existing final-exec checks from 3a remain unchanged. Final review I2: keep pre-releasing refusals pending; only a command ReleaseError or an actual artifact digest mismatch becomes failed. Releasing uncertainty still fences automatic reruns; begin, authority, execution and proof gates remain.;rev3=census-ruling-stateless-failed-release-held;basis=Distinguish an observed failed or unknown coordinator deploy from a transient release admission refusal using wrapped existing errors; preserve the existing unknown-result reason; no new read or coordinator write. registry:Account@544,registry:App@574,registry:GoodDemand@3105,registry:GoodDigest@3090,registry:GoodVersion@3074,registry:Host@1304,registry:Host@224,registry:Host@3161,registry:Host@3219,registry:Host@3435,registry:Host@3503,registry:Host@601,whole:Route@1110,whole:Route@3228,whole:Route@3235,whole:Route@3787,whole:Route@483 8adf4776236973375ce620ede63e14423cfd0df5347bed7e167578a917371ccf
+@legacy 850cfd8a59e8599631663e01e7165ae124d3e56f461b83a6414e6aa6ee11ea33 internal/activator/swap.go Service.Swap legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Verify the target canonical mode and prepare its durable stateless release before stopping the incumbent. A mode change forces the existing proven hold path; same-mode stateless overlap uses local lifecycle gates and the final current-record check, without a serving lease. CI fix 1: defer a missing registry row to the existing release checks only for stateful rootfs overlap, preserving disabled/newest checks and committedGood refusal. Stateless modes, transitions, binary/foreign/hold paths still fence before preparation. No new reads. Final review C1/R26: include incumbent Gen.Stateless as declaration evidence, so only matching good stateful recovery/config attempts can skip canonical lookup. Fresh route, release, ownership and stop gates unchanged.;rev3=census-ruling-stateless-failed-release-held;basis=Classify a proven stateless release failure, or the same deploy's durable failed or unknown phase, through the existing SwapFailed hold mechanism. Preparation precedes stopping the incumbent, so report overlap semantics even if the requested swap is hold. Stateful path unchanged; no new root input. registry:Stateless@1340,registry:Stateless@1369,whole:Route@1013,whole:Route@1063,whole:Route@1072,whole:Route@1257,whole:Route@1333,whole:Route@1446,whole:Route@1690,whole:Route@1769,whole:Route@2368,whole:Route@785,whole:Route@801 384c20e9daf66262ea51ad70e7ca207af5b938f598d945858bcf0b6b7c7c0b71
@legacy 7cfec88b0b164b164be282308fe88a95930a377551e333bf62ee7429c4bf5c6d internal/activator/stateless.go Service.prepareStateless legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Capture RecordFacts from the existing record source, obtain the durable FailureBook deploy ID, and call Task 2 PrepareStatelessRelease with the canonical verdict/digest carrier. Carry a successful attempt through its hold only after another current-record check; no serving lease or polling loop. Fix 3a round 1 I2: preparation uses reconcile observations and records the successful deploy ID. Carry prepared evidence through hold; fresh backend read must confirm that same released deploy before web runs.;rev3=census-ruling-stateless-failed-release-held;basis=For recovery onto a different installed version's exact committed good version and artifact digest, retain recovery evidence without selecting or writing another deploy. Adds the existing committedGood registry read, with its route and incarnation check. Canonical storage declaration and observed lifetime gates remain. registry:Account@284,registry:Account@310,registry:App@324,registry:App@346,registry:Digest@1290,registry:Host@250,registry:Host@273,registry:Stateless@1685,registry:Version@1127,registry:Version@1260,whole:Route@1210,whole:Route@1354,whole:Route@1361,whole:Route@1681,whole:Route@1756,whole:Route@1848,whole:Route@1855,whole:Route@259,whole:Route@293,whole:Route@333,whole:Route@540,whole:Route@597,whole:Route@714,whole:Route@832 e0fbea336ffbbc8522dc7b418c29b6ff9bc1a21374ca2f130a385b9df9837c3f
@legacy 7396a6ae26224501171086322b7b03b3112533627eb79380b9972ccdc9a723f3 internal/activator/stateless.go Service.statelessFinalRecord legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3a round 1 I2: one fresh record read at final exec, after pending write and release/escrow preparation. Reuse Fleet.Record result or cfg.Record, never both. Validate placement/config/lifetime and prepared deploy ID/target/released phase; registry checks before and after.;rev3=census-ruling-stateless-failed-release-held;basis=At final launch, a recovery must still match the committed good version and artifact digest. Adds the existing committedGood registry read. The current record's lifetime, placement and launch-input checks remain; a new deployment still requires matching released coordinator evidence. registry:Channel@398,registry:Digest@993,registry:Environment@431,registry:Region@492,registry:Runtime@464,registry:Version@954,whole:Route@122,whole:Route@1358,whole:Route@208,whole:Route@285,whole:Route@629,whole:Route@930 68d5d132d7d9235bd9ee765773fbe4132da8d777b37b5a5698cb813abb032988
-internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. Fix 3b round 1 I2 / R20: only the matching released branch calls the backend escrow initializer. Held authority is reused; absent trio can acquire through the existing coordinator adapter. No release rerun, deploy mutation, new record read or loop; existing final-exec checks from 3a remain unchanged. Final review I2: keep pre-releasing refusals pending; only a command ReleaseError or an actual artifact digest mismatch becomes failed. Releasing uncertainty still fences automatic reruns; begin, authority, execution and proof gates remain.;rev3=census-ruling-stateless-failed-release-held;basis=Distinguish an observed failed coordinator deploy from a transient release admission refusal using a wrapped existing error; no new read or coordinator write. registry:Account@544,registry:App@574,registry:GoodDemand@3105,registry:GoodDigest@3090,registry:GoodVersion@3074,registry:Host@1304,registry:Host@224,registry:Host@3161,registry:Host@3219,registry:Host@3435,registry:Host@3503,registry:Host@601,whole:Route@1110,whole:Route@3228,whole:Route@3235,whole:Route@3787,whole:Route@483 14ef72589299281bc83954ac78f2773922f0007de7501f4476fade02673b88e5
-internal/activator/swap.go Service.Swap legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Verify the target canonical mode and prepare its durable stateless release before stopping the incumbent. A mode change forces the existing proven hold path; same-mode stateless overlap uses local lifecycle gates and the final current-record check, without a serving lease. CI fix 1: defer a missing registry row to the existing release checks only for stateful rootfs overlap, preserving disabled/newest checks and committedGood refusal. Stateless modes, transitions, binary/foreign/hold paths still fence before preparation. No new reads. Final review C1/R26: include incumbent Gen.Stateless as declaration evidence, so only matching good stateful recovery/config attempts can skip canonical lookup. Fresh route, release, ownership and stop gates unchanged.;rev3=census-ruling-stateless-failed-release-held;basis=Classify a proven stateless release failure, or the same deploy's durable failed phase, through the existing SwapFailed hold mechanism. Preparation precedes stopping the incumbent, so report overlap semantics even if the requested swap is hold. Stateful path unchanged; no new root input. registry:Stateless@1340,registry:Stateless@1369,whole:Route@1013,whole:Route@1063,whole:Route@1072,whole:Route@1257,whole:Route@1333,whole:Route@1446,whole:Route@1690,whole:Route@1769,whole:Route@2324,whole:Route@785,whole:Route@801 081906905d3224263009acde31462ead8a9db52e96036654c73a7c8ee840d63d
+internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. Fix 3b round 1 I2 / R20: only the matching released branch calls the backend escrow initializer. Held authority is reused; absent trio can acquire through the existing coordinator adapter. No release rerun, deploy mutation, new record read or loop; existing final-exec checks from 3a remain unchanged. Final review I2: keep pre-releasing refusals pending; only a command ReleaseError or an actual artifact digest mismatch becomes failed. Releasing uncertainty still fences automatic reruns; begin, authority, execution and proof gates remain.;rev3=census-ruling-stateless-failed-release-held;basis=Distinguish an observed failed or unknown coordinator deploy from a transient release admission refusal using wrapped existing errors; preserve the existing unknown-result reason; no new read or coordinator write. registry:Account@544,registry:App@574,registry:GoodDemand@3105,registry:GoodDigest@3090,registry:GoodVersion@3074,registry:Host@1304,registry:Host@224,registry:Host@3161,registry:Host@3219,registry:Host@3435,registry:Host@3503,registry:Host@601,whole:Route@1110,whole:Route@3228,whole:Route@3235,whole:Route@3787,whole:Route@483 8adf4776236973375ce620ede63e14423cfd0df5347bed7e167578a917371ccf
+internal/activator/swap.go Service.Swap legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Verify the target canonical mode and prepare its durable stateless release before stopping the incumbent. A mode change forces the existing proven hold path; same-mode stateless overlap uses local lifecycle gates and the final current-record check, without a serving lease. CI fix 1: defer a missing registry row to the existing release checks only for stateful rootfs overlap, preserving disabled/newest checks and committedGood refusal. Stateless modes, transitions, binary/foreign/hold paths still fence before preparation. No new reads. Final review C1/R26: include incumbent Gen.Stateless as declaration evidence, so only matching good stateful recovery/config attempts can skip canonical lookup. Fresh route, release, ownership and stop gates unchanged.;rev3=census-ruling-stateless-failed-release-held;basis=Classify a proven stateless release failure, or the same deploy's durable failed or unknown phase, through the existing SwapFailed hold mechanism. Preparation precedes stopping the incumbent, so report overlap semantics even if the requested swap is hold. Stateful path unchanged; no new root input. registry:Stateless@1340,registry:Stateless@1369,whole:Route@1013,whole:Route@1063,whole:Route@1072,whole:Route@1257,whole:Route@1333,whole:Route@1446,whole:Route@1690,whole:Route@1769,whole:Route@2368,whole:Route@785,whole:Route@801 384c20e9daf66262ea51ad70e7ca207af5b938f598d945858bcf0b6b7c7c0b71
internal/activator/stateless.go Service.prepareStateless legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Capture RecordFacts from the existing record source, obtain the durable FailureBook deploy ID, and call Task 2 PrepareStatelessRelease with the canonical verdict/digest carrier. Carry a successful attempt through its hold only after another current-record check; no serving lease or polling loop. Fix 3a round 1 I2: preparation uses reconcile observations and records the successful deploy ID. Carry prepared evidence through hold; fresh backend read must confirm that same released deploy before web runs.;rev3=census-ruling-stateless-failed-release-held;basis=For recovery onto a different installed version's exact committed good version and artifact digest, retain recovery evidence without selecting or writing another deploy. Adds the existing committedGood registry read, with its route and incarnation check. Canonical storage declaration and observed lifetime gates remain. registry:Account@284,registry:Account@310,registry:App@324,registry:App@346,registry:Digest@1290,registry:Host@250,registry:Host@273,registry:Stateless@1685,registry:Version@1127,registry:Version@1260,whole:Route@1210,whole:Route@1354,whole:Route@1361,whole:Route@1681,whole:Route@1756,whole:Route@1848,whole:Route@1855,whole:Route@259,whole:Route@293,whole:Route@333,whole:Route@540,whole:Route@597,whole:Route@714,whole:Route@832 e0fbea336ffbbc8522dc7b418c29b6ff9bc1a21374ca2f130a385b9df9837c3f
internal/activator/stateless.go Service.statelessFinalRecord legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Fix 3a round 1 I2: one fresh record read at final exec, after pending write and release/escrow preparation. Reuse Fleet.Record result or cfg.Record, never both. Validate placement/config/lifetime and prepared deploy ID/target/released phase; registry checks before and after.;rev3=census-ruling-stateless-failed-release-held;basis=At final launch, a recovery must still match the committed good version and artifact digest. Adds the existing committedGood registry read. The current record's lifetime, placement and launch-input checks remain; a new deployment still requires matching released coordinator evidence. registry:Channel@398,registry:Digest@993,registry:Environment@431,registry:Region@492,registry:Runtime@464,registry:Version@954,whole:Route@122,whole:Route@1358,whole:Route@208,whole:Route@285,whole:Route@629,whole:Route@930 68d5d132d7d9235bd9ee765773fbe4132da8d777b37b5a5698cb813abb032988
-@coverage internal/activator e073ac0298f7c5df183bd08c9405cc2babf425123dcee161202adb72314e3b05
+@coverage internal/activator 2b24151c4a39b0b54c8d67aadc3265bcb1c00d18d4064a0e2fa1489e20883899