carlos / platform Public

fix: let coordinated records retire and recover lost release replies

Allow exact retirement tombstones to discard replica coordination fields.
Replay committed release success through the idempotent writer and accept
identical pending begins after interrupted attempts. Retain coordinator
authority through transient renewal errors until its safety deadline.

Cover frozen production observations, retirement, begin interruption,
renewal retry and refusal. Refresh the census proposal and writer digest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev e17ff099fc07d4a57b4f704ad4515db468c90633 parent 43bb69b
14 files changed, +198 −22
  • docs/superpowers/notes/census-proposal-stateless-replicas-1.md +2 −2
  • internal/activator/coordinator.go +4 −2
  • internal/activator/coordinator_test.go +53 −0
  • internal/activator/statelessrelease.go +6 −5
  • internal/activator/statelessrelease_test.go +55 −2
  • internal/console/lifetimes_retire_test.go +25 −0
  • internal/host/replicacoordinator.go +4 −0
  • internal/host/replicacoordinator_test.go +16 −0
  • internal/provision/replicacoordinator.go +7 −0
  • internal/provision/replicadeploy.go +5 −0
  • internal/provision/replicadeploy_test.go +12 −3
  • internal/provision/stateless_replicas_census_test.go +3 −2
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv +5 −5

CI failed — run details

Intent

Human

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

Human

<task-notification> <task-id>aee2220cdf3a38cda</task-id> <tool-use-id>toolu_01B7CdshwMGjndMwkSDoq8w5</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/412bbef6-9468-4e8d-b9fe-5343bad21de8/tasks/aee2220cdf3a38cda.output</output-file> <status>completed</status> <summary>Agent "Review Task 2 (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 Compliance - ❌ Issues found. Most of the brief is met: the index types and field names, TTL 15m, renew at 5m, 30s margin, the API paths, `fleetIdentityOK` plus owner gate, typed writers under `withRecordLock` and `WithAppMutation`, releasing persisted before exec, proof plus SafeUntil before `released`, commandless builds recorded as released, R10–R13 seams, and the copy strings C04, C05 and C12, which match the deck exactly. Three defects follow (Important 1–3). - ✅ Stateful `runRelease` is unchanged. It passes a nil hook to `runReleaseAdmitted`, and the hook sits after `recordBuild` and before `StartRelease`, using the same `refuse` path (`rootfsrelease.go:369, 467-471`). - ✅ No new per-tick or per-request bucket reads. `Tick` renews held terms only at `renewAt`. An acquire refused as held stores `RetryAt`. Renewals skip `BumpSerial` in both the console and the trusted adapter. The observation reads only the context carrier. The digest comes from the same `GetManifestRaw` bytes, and `sha256(raw)` equals `CanonicalManifestDigest`. - ✅ Losing authority stops only the release op. The Authority feeds only `runReleaseAdmitted`'s watch and gate. `coordinatorAuthority` satisfies `leaseWatch`. - ✅ Fleet clients write no record bucket. The fleet path is built with a nil store (`agent.go:594`). - ⚠️ Cannot verify from the diff that the wake and rollout call site works end to end (R14 moves it to Task 3). The machinery mostly supports it, but see Important 2: the production observation is frozen per attempt, so the same-call lost-success recovery cannot work as tested. ### Strengths - `ChangeCoordinator` and `CheckAuthority` are pure and small. Renew and release compare term, box, boot and expiry. The typed writer re-judges expiry on every CAS retry (`now.Add(time.Since(started))`). - The `released` replay is idempotent and does not advance the record sequence. A successor may only close `releasing` as `unknown`. R11's pending retake is narrow. - Client concurrency is sound. `opMu` serialises network ops. `Close` marks closed under `mu`, then waits on `opMu`, so an in-flight `Acquire` sees `closed` and releases its new term. The reply's safety deadline uses the request start time. - Console auth failures all return an identical `http.NotFound`, and auth is checked again under the record lock. ### Issues #### Critical (Must Fix) None. #### Important (Should Fix) 1. **The new WriteRecord guard blocks instance retirement once a record has `coordinator` or `replica_deploy`.** - `internal/provision/replicacoordinator.go:49-64` refuses any write that drops or changes either field unless the context names that writer. - `provision.TombstoneBody` keeps only identity fields, so the lifetimes retire path at `internal/console/lifetimes_retire.go:319-323` gets `replicas: fenced` and returns pending forever. Neither field is ever cleared: a release leaves the coordinator with `ExpiresAt=now`. - **Check I ran:** a temporary test (go test overlay, nothing written to the checkout) acquired a coordinator, then called `WriteRecord(before, TombstoneBody(before))`. Result: `tombstone write err: replicas: fenced`, FAIL. - This is latent until Task 3 calls `Acquire`, then it hits every stateless instance on destroy. Exempt `isTombstoneOf(before, body)`, as `runtimeFixed` already does, and add a witness test. 2. **The lost-success recovery in production differs from its test.** - `statelessrelease.go:162` re-observes through `ObserveReplicaRelease`. In production that is `ObservedReplicaRelease` (`replicaobservation.go:57`), which returns the frozen pre-attempt carrier. It can never show `released` under the new term. - So a committed `released` whose reply was lost returns `ErrReplicaReleaseUnknown` ("the deploy stopped… deploy again") in that call. - `TestReplicaReleaseLostSuccessReply` passes only because its double re-reads live state (`statelessrelease_test.go:67-73`). - R10 allows replaying the identical `released` transition instead. Do that, which the writer already accepts idempotently, or have the test use the production observer. 3. **A same-term `begin` retry wedges the deploy.** - The writer refuses pending to pending under the same term (`replicadeploy.go:53-57`, pinned by `TestReplicaReleasePendingSuccessor` "live pending replaced"). - `PrepareStatelessRelease` always sends `begin` for an observed pending deploy with the same ID (`statelessrelease.go:100`). - If the begin reply is lost, or the attempt is cancelled after begin and before exec, every later attempt in the same agent run returns `ErrReplicaReleaseUnknown`. The client renews the term indefinitely, so this lasts until the agent restarts, even though no command ran. - Skip `begin` when the observed pending term is the held term, or make the same-term begin idempotent. 4. **One failed renewal drops authority.** `coordinator.go:66-70` calls `loseLocked()` on the first error. With a 15-minute TTL and renewal at 5 minutes, one console 5xx or timeout during a long migration kills the command and leaves `releasing`, which becomes terminal `unknown`. That defeats R12's goal. Retry on later ticks until the local safety deadline instead. #### Minor (Nice to Have) - `statelessrelease.go:148-153`: refusals before exec (`errSwapBusy`, shutting down, `VerifyStaged`) are recorded as terminal `failed` for the deploy ID. Pending is provably safe to retake, so these could leave the deploy pending. - `console/replicacoordinator.go:144` and the host adapter detect a change by comparing `RecordSeq`. Legacy records with no `record_seq` never bump `control/serial` on a deploy phase change. - `Deploy.Previous` is never filled by any writer. - `rollout/failures.go:1349`: when a local entry exists for an older target, matching record evidence for the new target is ignored and a fresh ID is minted. That is an edge case after moves away and back, or a restored data dir. The `replica_releases` map is never pruned. - `authcli.go:531-532`: the fleet routes are registered inside `registerCLIRoutes`. They do not go through `cliRoute`, but the brief says to register them outside the human CLI routes. - `Tick` holds `opMu` across network calls on the fast tick. An `Acquire` or renew can delay a convergence tick by up to the 30s HTTP timeout. ### Census - `internal/activator/activator.go` `type Service`: approve. Field declarations only. - `internal/activator/hawake.go` `ExecBackend.isHA`: approve. It takes `.LifetimeEntry` from the same read. - `internal/activator/rootfsrelease.go` `Service.runRelease`: approve. Pure delegation. - new `Service.runReleaseAdmitted`: approve. Same reads, plus an in-process hook before exec. - new `Service.PrepareStatelessRelease`: approve. It reads route fields from root's registry and the staged identity (`VerifyStaged` on the existing staged path). No path a tenant or box can name. - new `ObservedReplicaRelease`: approve. Reads only the context carrier. - new `replicas.ChangeCoordinator`: approve. `crypto/rand` only. - `internal/host/agent.go` `runAgent`: approve. Existing env credentials, `openDeployStore`, the fixed boot-id path. - `internal/host/agent.go` `fastConvergeLoop` and `fastTick`: approve. Renewal calls only, no new read site. - `internal/host/agent.go` `haRecordFacts`: approve. Same judged record object. Coordinator and deploy values a box can write through the API are data, never paths. - `internal/rollout/failures.go` `OpenFailureBook` and `FailureBook.saveLocked`: approve. Same file, additive key. ### Assessment **Task quality:** Needs fixes **Reasoning:** The coordination, fencing and auth machinery is sound and the stateful path is unchanged. But the record guard blocks tombstoning any instance that ever coordinated (reproduced), and two release-recovery paths (lost success reply, same-term pending) misreport or wedge in production in ways the tests' doubles hide.</result> <usage><subagent_tokens>155282</subagent_tokens><tool_uses>42</tool_uses><duration_ms>426226</duration_ms></usage> </task-notification>

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

diff --git a/docs/superpowers/notes/census-proposal-stateless-replicas-1.md b/docs/superpowers/notes/census-proposal-stateless-replicas-1.md
index e0a385e8d..35faf6772 100644
--- a/docs/superpowers/notes/census-proposal-stateless-replicas-1.md
+++ b/docs/superpowers/notes/census-proposal-stateless-replicas-1.md
@@ -38,9 +38,9 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/activator/replicaobservation.go:ObservedReplicaRelease`: reads +registry:Account, +registry:App, +registry:Host; written legacy, accepted-legacy, frozen
- new `internal/activator/rootfsrelease.go:Service.runReleaseAdmitted`: reads +registry:Host, +whole:Route ×11; written legacy, accepted-legacy, frozen
-- new `internal/activator/statelessrelease.go:Service.PrepareStatelessRelease`: reads +registry:Account, +registry:App, +registry:GoodDemand, +registry:GoodDigest, +registry:GoodVersion, +registry:Host ×7, +whole:Route ×5; written legacy, accepted-legacy, frozen
+- new `internal/activator/statelessrelease.go:Service.PrepareStatelessRelease`: reads +registry:Account, +registry:App, +registry:GoodDemand, +registry:GoodDigest, +registry:GoodVersion, +registry:Host ×7, +whole:Route ×4; written legacy, accepted-legacy, frozen
- new `internal/replicas/coordinator.go:ChangeCoordinator`: reads +file:Read; written legacy, accepted-legacy, frozen
-Seal: `5f805400717bad7726bd9d62744b8103a40eb5f5823b0ab7c960a5c0965cb3bc` → `d82d22871085ce87f9f8a1dca9235211c76b5fd9b14759a9bccc88b67be784d8`.
+Seal: `5f805400717bad7726bd9d62744b8103a40eb5f5823b0ab7c960a5c0965cb3bc` → `3662d8acc9934f1fce67719cbe5b70001c5d849ad724659995dc3d30f96b6f4b`.
Overlay: `internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/activator/coordinator.go b/internal/activator/coordinator.go
index 76e954ad1..b61ab2227 100644
--- a/internal/activator/coordinator.go
+++ b/internal/activator/coordinator.go
@@ -65,10 +65,12 @@ func (c *CoordinationClient) Tick(ctx context.Context) {
_, until, err := c.request(rctx, a.id, "renew", a.term)
cancel()
c.mu.Lock()
- if err != nil || c.closed || a.errLocked() != nil {
+ var held *replicas.CoordinatorHeldError
+ definitive := errors.Is(err, replicas.ErrFenced) || errors.Is(err, replicas.ErrInvalid) || errors.As(err, &held)
+ if definitive || c.closed || a.errLocked() != nil {
a.loseLocked()
delete(c.held, a.id)
- } else {
+ } else if err == nil {
a.until = until
a.renewAt = c.now().Add(replicas.CoordinatorRenewAfter)
}
diff --git a/internal/activator/coordinator_test.go b/internal/activator/coordinator_test.go
index 684cc9c3d..76435f826 100644
--- a/internal/activator/coordinator_test.go
+++ b/internal/activator/coordinator_test.go
@@ -262,3 +262,56 @@ func TestCoordinatorReleaseStateFillsOnlyOmittedTerm(t *testing.T) {
t.Fatal("explicit stale term was replaced")
}
}
+
+func TestCoordinatorRenewalTransientAndRefusal(t *testing.T) {
+ for _, failure := range []error{context.DeadlineExceeded, replicas.ErrFenced, &replicas.CoordinatorHeldError{}} {
+ t.Run(failure.Error(), func(t *testing.T) {
+ now := time.Now()
+ var renewErr error
+ calls := 0
+ c := NewCoordinatorClient("box", "boot", func(_ context.Context, _ replicas.Identity, change replicas.CoordinatorChange) (replicas.CoordinatorReply, error) {
+ if change.Op == "renew" {
+ calls++
+ if renewErr != nil {
+ return replicas.CoordinatorReply{}, renewErr
+ }
+ }
+ return replicas.CoordinatorReply{Lease: replicas.Coordinator{Term: "term", Box: "box", BootID: "boot"}, RemainingMS: replicas.CoordinatorTTL.Milliseconds()}, nil
+ }, nil)
+ c.now = func() time.Time { return now }
+ a, err := c.Acquire(context.Background(), replicas.Identity{})
+ if err != nil {
+ t.Fatal(err)
+ }
+ until, _ := a.SafeUntil()
+ renewErr = failure
+ now = now.Add(replicas.CoordinatorRenewAfter)
+ c.Tick(context.Background())
+ if failure != context.DeadlineExceeded {
+ if a.Err() == nil {
+ t.Fatal("refusal retained authority")
+ }
+ return
+ }
+ if a.Err() != nil {
+ t.Fatal("transient error lost authority")
+ }
+ if got, _ := a.SafeUntil(); got != until {
+ t.Fatal("error extended deadline")
+ }
+ renewErr = nil
+ now = now.Add(time.Second)
+ c.Tick(context.Background())
+ extended, err := a.SafeUntil()
+ if err != nil || !extended.After(until) || calls != 2 {
+ t.Fatal("renewal did not recover")
+ }
+ renewErr = failure
+ now = extended
+ c.Tick(context.Background())
+ if a.Err() == nil {
+ t.Fatal("deadline retained authority")
+ }
+ })
+ }
+}
diff --git a/internal/activator/statelessrelease.go b/internal/activator/statelessrelease.go
index 8dd2a85d3..c61b161cc 100644
--- a/internal/activator/statelessrelease.go
+++ b/internal/activator/statelessrelease.go
@@ -157,11 +157,12 @@ func (a *Service) PrepareStatelessRelease(ctx context.Context, rt registry.Route
}
_, err = change(phase)
if err != nil {
- // Only reread durable evidence; never repeat command execution to
- // recover a reply lost after the success was committed.
- observedID, observedTarget, d, observeErr := a.ObserveReplicaRelease(ctx, rt)
- if phase == "released" && observeErr == nil && observedID == identity && observedTarget == target && matches(d) && d.Term == term && d.Phase == "released" {
- return nil
+ // Replay the same transition: the observation carrier is frozen
+ // before this attempt and cannot reveal a committed success.
+ if phase == "released" {
+ if _, retryErr := change(phase); retryErr == nil {
+ return nil
+ }
}
return ErrReplicaReleaseUnknown
}
diff --git a/internal/activator/statelessrelease_test.go b/internal/activator/statelessrelease_test.go
index a5710d8d9..9771912b5 100644
--- a/internal/activator/statelessrelease_test.go
+++ b/internal/activator/statelessrelease_test.go
@@ -7,6 +7,7 @@ import (
"testing"
"time"
+ "github.com/carlosframework/platform/internal/provision"
"github.com/carlosframework/platform/internal/registry"
"github.com/carlosframework/platform/internal/replicas"
)
@@ -17,6 +18,7 @@ type replicaReleaseStore struct {
held *ownedLease
acquires int
lostReply bool
+ beginHook func() error
}
func (s *replicaReleaseStore) Acquire(context.Context, replicas.Identity) (replicas.Authority, error) {
@@ -41,6 +43,9 @@ func (s *replicaReleaseStore) ReleaseState(_ context.Context, id replicas.Identi
if s.d != nil {
rev = s.d.Revision
}
+ if s.d != nil && s.d.Phase == "pending" && c.Op == "begin" && s.d.ID == c.ID && s.d.Term == c.Term && s.d.Target == c.Target {
+ return *s.d, nil
+ }
if c.Revision != rev {
return replicas.Deploy{}, replicas.ErrFenced
}
@@ -50,6 +55,13 @@ func (s *replicaReleaseStore) ReleaseState(_ context.Context, id replicas.Identi
}
d := replicas.Deploy{ID: c.ID, Target: c.Target, Incarnation: id.Incarnation, Term: c.Term, Phase: phase, Revision: rev + 1}
s.d = &d
+ if c.Op == "begin" && s.beginHook != nil {
+ hook := s.beginHook
+ s.beginHook = nil
+ if err := hook(); err != nil {
+ return replicas.Deploy{}, err
+ }
+ }
if c.Op == "released" && s.lostReply {
s.lostReply = false
return replicas.Deploy{}, context.DeadlineExceeded
@@ -134,22 +146,63 @@ func TestReplicaReleaseUnknownStopsDeploy(t *testing.T) {
t.Fatal("explicit deploy did not run")
}
}
+func frozenReplicaContext(r *releaseRig, s *replicaReleaseStore) context.Context {
+ return WithReplicaReleaseObservation(context.Background(), RecordFacts{
+ LifetimeEntry: provision.LifetimeEntry{ID: "life"},
+ Identity: replicas.Identity{Account: r.rt.Account, App: r.rt.App, Host: r.rt.Host, Incarnation: "life"},
+ ReplicaDeploy: s.snapshot(),
+ }, replicas.Build{Version: r.id.Version, Digest: "canonical-manifest"}, true)
+}
+
func TestReplicaReleaseLostSuccessReply(t *testing.T) {
r, s := replicaReleaseRig(t)
+ r.a.ObserveReplicaRelease = ObservedReplicaRelease
+ ctx := frozenReplicaContext(r, s)
s.lostReply = true
r.b.unit.done("1", "0", "success")
- if err := r.a.PrepareStatelessRelease(context.Background(), r.rt, r.id, "deploy"); err != nil {
+ if err := r.a.PrepareStatelessRelease(ctx, r.rt, r.id, "deploy"); err != nil {
t.Fatal(err)
}
acquired := s.acquires
r.a.Coordinator = nil
- if err := r.a.PrepareStatelessRelease(context.Background(), r.rt, r.id, "deploy"); err != nil {
+ if err := r.a.PrepareStatelessRelease(frozenReplicaContext(r, s), r.rt, r.id, "deploy"); err != nil {
t.Fatal(err)
}
if r.b.startCount() != 1 || s.acquires != acquired {
t.Fatal("durable success reacquired or reran")
}
}
+
+func TestReplicaReleaseBeginRetry(t *testing.T) {
+ for _, cancelled := range []bool{false, true} {
+ t.Run(map[bool]string{false: "lost-reply", true: "cancel-before-exec"}[cancelled], func(t *testing.T) {
+ r, s := replicaReleaseRig(t)
+ r.a.ObserveReplicaRelease = ObservedReplicaRelease
+ ctx, cancel := context.WithCancel(frozenReplicaContext(r, s))
+ defer cancel()
+ s.beginHook = func() error {
+ if cancelled {
+ cancel()
+ return nil
+ }
+ return context.DeadlineExceeded
+ }
+ if err := r.a.PrepareStatelessRelease(ctx, r.rt, r.id, "deploy"); err == nil || r.b.startCount() != 0 || s.snapshot().Phase != "pending" {
+ t.Fatalf("begin interruption: %v, %+v", err, s.snapshot())
+ }
+ r.b.unit.done("1", "0", "success")
+ // Even the original frozen observation (revision zero) can replay begin.
+ retry := frozenReplicaContext(r, s)
+ if !cancelled {
+ retry = frozenReplicaContext(r, &replicaReleaseStore{})
+ }
+ if err := r.a.PrepareStatelessRelease(retry, r.rt, r.id, "deploy"); err != nil || r.b.startCount() != 1 || s.snapshot().Phase != "released" {
+ t.Fatalf("retry: %v, %+v", err, s.snapshot())
+ }
+ })
+ }
+}
+
func TestReplicaReleaseProofBeforeSuccess(t *testing.T) {
r, s := replicaReleaseRig(t)
r.b.unit.settle = func(int) error { return ErrStillRunning }
diff --git a/internal/console/lifetimes_retire_test.go b/internal/console/lifetimes_retire_test.go
index 235b1d3fb..52ce375bd 100644
--- a/internal/console/lifetimes_retire_test.go
+++ b/internal/console/lifetimes_retire_test.go
@@ -15,6 +15,7 @@ import (
"github.com/carlosframework/platform/internal/provision"
"github.com/carlosframework/platform/internal/release"
+ "github.com/carlosframework/platform/internal/replicas"
"github.com/carlosframework/platform/internal/seeds"
)
@@ -1322,3 +1323,27 @@ BEGIN SELECT RAISE(ABORT, 'test: the handover is refused'); END`); err != nil {
requireRetired(t, l.fx.rel, ltApp, ltOne, 1)
})
}
+
+func TestCoordinatedRecordRetiresThroughTheTombstone(t *testing.T) {
+ l := newLtOn(t)
+ l.mustCreate(t, ltOne)
+ raw, _ := rawOf(t, l.fx.rel, ltApp, ltOne)
+ rec := decodeRec(t, raw)
+ inc, err := provision.Incarnation(rec.Account, rec.App, rec.Host, rec.CreatedAt)
+ if err != nil {
+ t.Fatal(err)
+ }
+ id := replicas.Identity{Account: rec.Account, App: rec.App, Host: rec.Host, Incarnation: inc}
+ got, err := provision.SetRecordCoordinator(context.Background(), l.fx.rel, id, replicas.CoordinatorChange{Op: "acquire", Box: "local", BootID: "boot"}, time.Now())
+ if err != nil {
+ t.Fatal(err)
+ }
+ _, err = provision.SetRecordReplicaRelease(context.Background(), l.fx.rel, id, 0, replicas.Deploy{ID: "deploy", Incarnation: inc, Term: got.Coordinator.Term, Target: replicas.Build{Version: "v1", Digest: "digest"}, Phase: "pending"})
+ if err != nil {
+ t.Fatal(err)
+ }
+ if code, body := l.del(t, ltOne); code != http.StatusOK {
+ t.Fatalf("delete: %d %s", code, body)
+ }
+ requireRetired(t, l.fx.rel, ltApp, ltOne, 1)
+}
diff --git a/internal/host/replicacoordinator.go b/internal/host/replicacoordinator.go
index 1d3d04c33..db4cfa136 100644
--- a/internal/host/replicacoordinator.go
+++ b/internal/host/replicacoordinator.go
@@ -4,6 +4,7 @@ import (
"bytes"
"context"
"encoding/json"
+ "fmt"
"io"
"net/http"
"net/url"
@@ -92,6 +93,9 @@ func (a *replicaCoordinatorAPI) post(ctx context.Context, id replicas.Identity,
defer resp.Body.Close()
d := json.NewDecoder(io.LimitReader(resp.Body, 8192))
if resp.StatusCode != http.StatusOK {
+ if resp.StatusCode >= 500 || resp.StatusCode == http.StatusTooManyRequests || resp.StatusCode == http.StatusRequestTimeout {
+ return fmt.Errorf("replica coordinator HTTP %d", resp.StatusCode)
+ }
if resp.StatusCode == http.StatusConflict && op == "coordinator" {
var held struct {
RetryAt time.Time `json:"retry_at"`
diff --git a/internal/host/replicacoordinator_test.go b/internal/host/replicacoordinator_test.go
index fd7860f35..941487a88 100644
--- a/internal/host/replicacoordinator_test.go
+++ b/internal/host/replicacoordinator_test.go
@@ -5,6 +5,8 @@ import (
"crypto/sha256"
"encoding/hex"
"encoding/json"
+ "errors"
+ "net/http"
"net/http/httptest"
"path/filepath"
"testing"
@@ -321,3 +323,17 @@ func TestCoordinatorConstructorTrustedStore(t *testing.T) {
t.Fatalf("shutdown did not expire stored coordination: %+v %v", got, err)
}
}
+
+func TestCoordinatorAPITransientStatus(t *testing.T) {
+ for _, status := range []int{500, 503, 429, 408, 403} {
+ t.Run(http.StatusText(status), func(t *testing.T) {
+ server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(status) }))
+ defer server.Close()
+ api := &replicaCoordinatorAPI{base: server.URL, client: server.Client()}
+ _, err := api.coordinator(context.Background(), replicas.Identity{}, replicas.CoordinatorChange{Op: "renew"})
+ if err == nil || errors.Is(err, replicas.ErrFenced) != (status == 403) {
+ t.Fatalf("status %d: %v", status, err)
+ }
+ })
+ }
+}
diff --git a/internal/provision/replicacoordinator.go b/internal/provision/replicacoordinator.go
index 9db43f20e..f9b53e1c3 100644
--- a/internal/provision/replicacoordinator.go
+++ b/internal/provision/replicacoordinator.go
@@ -47,6 +47,13 @@ func SetRecordCoordinator(ctx context.Context, s release.Store, id replicas.Iden
}
func replicaFieldsFixed(ctx context.Context, before, body []byte) error {
+ nextFields, _, err := RecordSequence(body)
+ if err != nil {
+ return err
+ }
+ if isTombstoneOf(before, nextFields) {
+ return nil
+ }
var old, next struct {
Coordinator *replicas.Coordinator `json:"coordinator"`
ReplicaDeploy *replicas.Deploy `json:"replica_deploy"`
diff --git a/internal/provision/replicadeploy.go b/internal/provision/replicadeploy.go
index 461948b30..a7b3db385 100644
--- a/internal/provision/replicadeploy.go
+++ b/internal/provision/replicadeploy.go
@@ -37,6 +37,11 @@ func SetRecordReplicaRelease(ctx context.Context, s release.Store, id replicas.I
if old != nil {
revision = old.Revision
}
+ // An identical begin can be replayed after a lost reply, including
+ // with the pre-commit revision carried by that attempt.
+ if old != nil && old.Phase == "pending" && next.Phase == "pending" && old.ID == next.ID && old.Term == next.Term && old.Incarnation == next.Incarnation && old.Target == next.Target && old.Previous == next.Previous {
+ return errRecordUnchanged
+ }
if revision != expectedRevision || revision == math.MaxUint64 {
return replicas.ErrFenced
}
diff --git a/internal/provision/replicadeploy_test.go b/internal/provision/replicadeploy_test.go
index 15b37e829..fb900ea4f 100644
--- a/internal/provision/replicadeploy_test.go
+++ b/internal/provision/replicadeploy_test.go
@@ -219,8 +219,8 @@ func TestReplicaReleaseLegalTransitions(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if _, err := SetRecordReplicaRelease(ctx, s, id, 0, d); err == nil {
- t.Fatal("stale revision accepted")
+ if replay, err := SetRecordReplicaRelease(ctx, s, id, 0, d); err != nil || replay.RecordSeq != r.RecordSeq || replay.ReplicaDeploy.Revision != 1 {
+ t.Fatalf("begin replay: %+v %v", replay, err)
}
d.Phase = "releasing"
r, err = SetRecordReplicaRelease(ctx, s, id, 1, d)
@@ -272,7 +272,16 @@ func TestReplicaReleasePendingSuccessor(t *testing.T) {
if !sameID {
next.ID = "retry"
}
- if _, err := SetRecordReplicaRelease(ctx, s, id, 1, next); err == nil {
+ if replay, err := SetRecordReplicaRelease(ctx, s, id, 1, next); sameID {
+ if err != nil || replay.RecordSeq != r.RecordSeq {
+ t.Fatalf("same-term begin replay: %+v %v", replay, err)
+ }
+ changed := next
+ changed.Target.Digest = "other"
+ if _, err := SetRecordReplicaRelease(ctx, s, id, 1, changed); err == nil {
+ t.Fatal("begin changed target")
+ }
+ } else if err == nil {
t.Fatal("live pending replaced")
}
// Expire A without sleeping; only a coordinator acquisition can
diff --git a/internal/provision/stateless_replicas_census_test.go b/internal/provision/stateless_replicas_census_test.go
index d72dcd0c1..f813daf78 100644
--- a/internal/provision/stateless_replicas_census_test.go
+++ b/internal/provision/stateless_replicas_census_test.go
@@ -16,9 +16,10 @@ func statelessReplicasWriteCensusInventory() []censusEntry {
// Registration adds only the two fleet routes; the existing literal-only
// instances/sidecars classification and all existing route handlers stay fixed.
{"internal/console/authcli.go", "Server.registerCLIRoutes", "key-site", "lit:instances,lit:sidecars", "89c700b1b939a8c8bbd478a548efeabfa4fc888f1509b7e3c76ad91472219a29"},
- // R11 self-review: only a live successor term may retake or supersede
+ // Fix round 1 self-review: identical pending replays keep sequence and
+ // revision after lifetime/current-term checks. R11: a successor may retake or supersede
// pending; releasing remains unknown-only across terms. Same typed CAS.
- {"internal/provision/replicadeploy.go", "SetRecordReplicaRelease", "record-writer", "key:SetRecordReplicaRelease,key:updateRecord", "465e4c445bd8f2781cca840aac94234d107b877d6d4b552030665d8c1877d933"},
+ {"internal/provision/replicadeploy.go", "SetRecordReplicaRelease", "record-writer", "key:SetRecordReplicaRelease,key:updateRecord", "8893ebca6b4effc10839847ba944808553b6e3375ccbc4befe01bf89463e84a8"},
{"internal/console/replicacoordinator.go", "Server.handleReplicaCoordinator", "record-writer", "key:SetRecordCoordinator", "8c36451d5cb57887117b346293b4deb46b8ec3aa06ffb9f8a8b97594c64133c8"},
{"internal/console/replicacoordinator.go", "Server.handleReplicaRelease", "record-writer", "key:SetRecordReplicaRelease", "6cc4eb4a564d3419b48928091d082d5e83c6159f37b8373f78eb07931e0ee39c"},
{"internal/provision/record_sequence.go", "WriteRecord", "record-primitive", "key:IsRecordKey,key:WriteRecord,key:preparedRecordKey,sel:Put", "6bcdf4c07e3c583c013c396c5d02770eab83459b0eb5256a1e8c68c4240f31e8"},
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index db28f7963..05280a697 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -56,4 +56,4 @@ plan14-root-reads-fix-set-aside-exdev.tsv f9d3016cc6803338f9db19311f3f598e20c37c
plan14-root-reads-durability-3a-escrow.tsv 03a92257beb9b8aac421559e247d191bd69f28a0b26243397a1344a90d59fc2a
plan14-root-reads-rootfs-default-home.tsv 7a0a3da3d6fe7e3c77abb22676db000af2a276c3d13ccae0f038190f51287ed5
plan14-root-reads-probe-burst-limit.tsv 5f805400717bad7726bd9d62744b8103a40eb5f5823b0ab7c960a5c0965cb3bc
-plan14-root-reads-stateless-replicas-1.tsv d82d22871085ce87f9f8a1dca9235211c76b5fd9b14759a9bccc88b67be784d8
+plan14-root-reads-stateless-replicas-1.tsv 3662d8acc9934f1fce67719cbe5b70001c5d849ad724659995dc3d30f96b6f4b
diff --git a/internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv b/internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv
index ed5ac5d9d..3025bf738 100644
--- a/internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv
+++ b/internal/provision/testdata/plan14-root-reads-stateless-replicas-1.tsv
@@ -8,7 +8,7 @@
@legacy 1e4efb560a06cb532c8d4caf719ff375c27a03a5651b26c59d81f271c70da628 ship_check.go rootfsCheck.runArgs legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-1;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (rootfs Plan 1), builds the docker or podman run argv for one check container; the scanner matches the word Command, here a field of release.Process (a process's argv), not os/exec; reads no file; decides nothing for root;rev3=census-ruling-rootfs-check-volumes;basis=R2 P1: the data and run volume mounts (-v) now carry :nocopy through rootfsCheck.volumeMount, so Docker and Podman never fill an empty check volume from the image directory at the mount point (which would reset the prepared owner and mode); same volumes, same paths, same probe mount, nothing else in the argv changed. Runs on the person's machine as the person; no box unit; no read added.;rev3=census-ruling-stateless-replicas-1;basis=Stateless local checks mount only the run volume and omit the database mount; same probe read, no new read. file:Command@887,file:Command@971 e684fd3273527a209460ed81e5bcd472a4282f46830fe580e5f07f0b0d876684
@legacy 6d1e960297f78cd109abb5310aef1af00618baf7f938c405e603d6e027ca7afa internal/activator/replicaobservation.go ObservedReplicaRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read route Account, App and Host only to match the attempt-local observation carrier; refuse absent/stateful/incomplete/mismatched evidence, return copied deploy state and canonical target. No store or filesystem read, no authority granted. registry:Account@283,registry:App@307,registry:Host@328 17cf71ccf92a913a42bef47ea461888ab0045b2ed7acabc81648e55cca322bbb
@legacy bf907111a6526f31ed49ab718b90896b8f33a48ba63f26f47f3889a521e82bb9 internal/activator/rootfsrelease.go Service.runReleaseAdmitted legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing runner unchanged except optional pre-exec durable release transition after local admission and before any command; same staged process reads, stop/proof and exec gates, no new filesystem path. registry:Host@216,whole:Route@3085,whole:Route@3314,whole:Route@3802,whole:Route@3831,whole:Route@5879,whole:Route@621,whole:Route@6347,whole:Route@6624,whole:Route@7054,whole:Route@849,whole:Route@934 de8d9d6b31ac2b8cf2c34aaca32ecfbdd2c8966f75def906e3baef5bb409d109
-@legacy c1cd70888a4676cd1878a9668111499b21f73e270a26a85a8fcec47da9283da4 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. registry:Account@544,registry:App@574,registry:GoodDemand@2971,registry:GoodDigest@2956,registry:GoodVersion@2940,registry:Host@1170,registry:Host@224,registry:Host@3027,registry:Host@3085,registry:Host@3301,registry:Host@3369,registry:Host@601,whole:Route@3094,whole:Route@3101,whole:Route@3653,whole:Route@4366,whole:Route@483 c18d125d320c4fdc5181c3977c1553af20268db59b4624e1a26deb459e55cf5b
+@legacy 088046a3995bfabca5ef644c83320f529e9ea94ddf2c4dc9d890843e87e1c811 internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. registry:Account@544,registry:App@574,registry:GoodDemand@2971,registry:GoodDigest@2956,registry:GoodVersion@2940,registry:Host@1170,registry:Host@224,registry:Host@3027,registry:Host@3085,registry:Host@3301,registry:Host@3369,registry:Host@601,whole:Route@3094,whole:Route@3101,whole:Route@3653,whole:Route@483 d4429770206e5905e3789157cbf222504cd34d0b7a4e22c765aee1b24a3e5e61
@legacy 1861ee20fec27c99526b8095d2b82598367595db4fcdbf2bc47ba40a269ec37f internal/replicas/coordinator.go ChangeCoordinator legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Generate a fresh 128-bit coordinator term using crypto/rand.Read; no file path or process input added. file:Read@472 e50ce5a352b3022a1ee6375fbfee315a5d2fcaeb4f4a25f4e33a5a10e3000a67
@legacy e022f83d4f2fe0524efad7d2e7acc9cc44a0510f14016131edc162dc02242142 internal/activator/rootfsrelease.go Service.runRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R1: new; the one place a release command runs. Refuses while any record of the host is open; skips the row's good build (releaseRan); reads the declared processes (declaredProcesses: the existing staged-manifest read) and refuses on a read error, never treating it as no release; runs only when releaseDue; needs a lease watch and a ReleaseBackend; its gate is the caller's plus the lease's Err and its safety deadline more than releaseStopLead (cmdStopBound, 2 min) away; creates the record under a.mu after releaseAdmitLocked; publishes the generations file and the build state (recordBuild) before anything runs; times out at the manifest's timeout_sec (default, capped at runs.MaxTimeout); ReleaseEnv; a supervisor stops the unit ahead of the lease's safety deadline; StartRelease under the exec gate; polls the unit (root's existing cmd status); stops and settles it (the existing cmd hold's stop, cmdStopBound); only a non-zero exit, a signal or the timeout with the unit proven gone is the build's failure (*ReleaseError); registry:Host sites are the record key and log lines;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 9: newCmdHold takes the hold's role; a release command's hold is instancectl.RoleCmd, the unit it runs in; nothing else changed, no read added;rev3=census-ruling-stateless-replicas-1;basis=Delegate unchanged stateful admission and stop/proof behavior to runReleaseAdmitted with no durable admission hook; reads moved to that method. whole:Route@212 45130d20bc0a8f9dcc30908479ce0189e39ee9e68d44e95a9aa6b8e84e0bc20f
cli.go runShip legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-1;basis=rootfs Plan 1 Task 9: takes --rootfs, --processes, --hibernate, --jit and --check and hands a rootfs ship to runShipRootfs (ship_rootfs.go) before the binary path; the --notes-file ReadFile moved into shipNoteText (its own row, the same read of the file the person named) and the direct-mode version mint into mintDirectVersion; one read site fewer, none added; Task 12: the --hibernate flag help is RFS-1-C32's new text, the same reads;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets (repeatable), checks the folders with checkShipAssets (release.ValidAssetPaths; refused on a static site) before the mode split, carries them into the API meta (sess.shipAssets) and the direct-mode manifest (shipAssetsBlock), and passes them to runShipRootfs (rootfsShipOpts.assets), which runs the same check and carries them the same two ways; after a direct-mode ship has stored a release declaring folders, directShipAssetGens runs the console ship door's backfill (provision.MintMissingAssetGens: lists the app's record keys and gives each record without an asset generation one, a CAS write in the deployment bucket as the person running the CLI) and fails naming any record it could not mint; read sites unchanged (2), none added;rev3=census-ruling-rootfs-apps-4;basis=adds the repeatable --env flag and refuses it before anything else unless --check is given (shipEnvRefusal, parseShipCheckEnv); the parsed values go into rootfsShipOpts.checkEnv. --env values reach the check's local container runtime as -e argv only, never root, never a box. No read added; read sites unchanged (2).;rev3=census-ruling-stateless-replicas-1;basis=Carry --stateless into binary/API and rootfs ship options; same two read sites, no new read. file:ReadFile@7899,file:ReadFile@8123 d6f244d2c3bcae95eb8ec0fa7e57c52e9b50c7e9e2e00dda85f930b643731a51
@@ -23,13 +23,13 @@ internal/rollout/failures.go OpenFailureBook authority E1,E3,J1,J4 fix1-merge-re
ship_check.go rootfsCheck.runArgs legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-1;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (rootfs Plan 1), builds the docker or podman run argv for one check container; the scanner matches the word Command, here a field of release.Process (a process's argv), not os/exec; reads no file; decides nothing for root;rev3=census-ruling-rootfs-check-volumes;basis=R2 P1: the data and run volume mounts (-v) now carry :nocopy through rootfsCheck.volumeMount, so Docker and Podman never fill an empty check volume from the image directory at the mount point (which would reset the prepared owner and mode); same volumes, same paths, same probe mount, nothing else in the argv changed. Runs on the person's machine as the person; no box unit; no read added.;rev3=census-ruling-stateless-replicas-1;basis=Stateless local checks mount only the run volume and omit the database mount; same probe read, no new read. file:Command@887,file:Command@971 e684fd3273527a209460ed81e5bcd472a4282f46830fe580e5f07f0b0d876684
internal/activator/replicaobservation.go ObservedReplicaRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read route Account, App and Host only to match the attempt-local observation carrier; refuse absent/stateful/incomplete/mismatched evidence, return copied deploy state and canonical target. No store or filesystem read, no authority granted. registry:Account@283,registry:App@307,registry:Host@328 17cf71ccf92a913a42bef47ea461888ab0045b2ed7acabc81648e55cca322bbb
internal/activator/rootfsrelease.go Service.runReleaseAdmitted legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing runner unchanged except optional pre-exec durable release transition after local admission and before any command; same staged process reads, stop/proof and exec gates, no new filesystem path. registry:Host@216,whole:Route@3085,whole:Route@3314,whole:Route@3802,whole:Route@3831,whole:Route@5879,whole:Route@621,whole:Route@6347,whole:Route@6624,whole:Route@7054,whole:Route@849,whole:Route@934 de8d9d6b31ac2b8cf2c34aaca32ecfbdd2c8966f75def906e3baef5bb409d109
-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. registry:Account@544,registry:App@574,registry:GoodDemand@2971,registry:GoodDigest@2956,registry:GoodVersion@2940,registry:Host@1170,registry:Host@224,registry:Host@3027,registry:Host@3085,registry:Host@3301,registry:Host@3369,registry:Host@601,whole:Route@3094,whole:Route@3101,whole:Route@3653,whole:Route@4366,whole:Route@483 c18d125d320c4fdc5181c3977c1553af20268db59b4624e1a26deb459e55cf5b
+internal/activator/statelessrelease.go Service.PrepareStatelessRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Read durable deploy evidence and canonical target via existing-record observation seam; use coordinator authority only for this path, persist releasing before exec and require proof plus SafeUntil before success; commandless binary verifies staged artifact separately; R11 lets the current term retake pending via the typed begin gate; R12 follows renewed SafeUntil through the existing command supervisor instead of a fixed initial context deadline; no new store polling or direct typed record writer callsite. Fix round 1 replaces the frozen-carrier re-observation with an identical released writer replay; command execution, proof and authority gates remain. registry:Account@544,registry:App@574,registry:GoodDemand@2971,registry:GoodDigest@2956,registry:GoodVersion@2940,registry:Host@1170,registry:Host@224,registry:Host@3027,registry:Host@3085,registry:Host@3301,registry:Host@3369,registry:Host@601,whole:Route@3094,whole:Route@3101,whole:Route@3653,whole:Route@483 d4429770206e5905e3789157cbf222504cd34d0b7a4e22c765aee1b24a3e5e61
internal/replicas/coordinator.go ChangeCoordinator legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Generate a fresh 128-bit coordinator term using crypto/rand.Read; no file path or process input added. file:Read@472 e50ce5a352b3022a1ee6375fbfee315a5d2fcaeb4f4a25f4e33a5a10e3000a67
internal/activator/rootfsrelease.go Service.runRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R1: new; the one place a release command runs. Refuses while any record of the host is open; skips the row's good build (releaseRan); reads the declared processes (declaredProcesses: the existing staged-manifest read) and refuses on a read error, never treating it as no release; runs only when releaseDue; needs a lease watch and a ReleaseBackend; its gate is the caller's plus the lease's Err and its safety deadline more than releaseStopLead (cmdStopBound, 2 min) away; creates the record under a.mu after releaseAdmitLocked; publishes the generations file and the build state (recordBuild) before anything runs; times out at the manifest's timeout_sec (default, capped at runs.MaxTimeout); ReleaseEnv; a supervisor stops the unit ahead of the lease's safety deadline; StartRelease under the exec gate; polls the unit (root's existing cmd status); stops and settles it (the existing cmd hold's stop, cmdStopBound); only a non-zero exit, a signal or the timeout with the unit proven gone is the build's failure (*ReleaseError); registry:Host sites are the record key and log lines;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 9: newCmdHold takes the hold's role; a release command's hold is instancectl.RoleCmd, the unit it runs in; nothing else changed, no read added;rev3=census-ruling-stateless-replicas-1;basis=Delegate unchanged stateful admission and stop/proof behavior to runReleaseAdmitted with no durable admission hook; reads moved to that method. whole:Route@212 45130d20bc0a8f9dcc30908479ce0189e39ee9e68d44e95a9aa6b8e84e0bc20f
@coverage . d8abf32baa39f05d1e9d4e9b8a24e7113c58f42f8735e7a62e217eb39e7a4bf7
-@coverage internal/activator 9bde3ea65b3fed0569a38d7624ac715460ab0bb67a5087525f6ba70ad5e01f52
-@coverage internal/host 7faa32b0b0c83991b60d2bdbb3aeae9d0b3e120f09da1f0cc58ed0b6de17d9c6
-@coverage internal/provision 80abfa28c9854d534818202aab9b1b4c09adb5d943b49a51e9efd77152d9a1ae
+@coverage internal/activator 95f35b868e9003100889d3b4aad2ff849d246c9e1b385043aa943c7ed5e38bcf
+@coverage internal/host 50d79612f83e07e6ef70e5c3e46146494b71d9e459104a66a5e884148ac5084b
+@coverage internal/provision 065bba3c905bb30f6f7b44408b2ab013ed063c3ce49c6fc26ee0b153a454e9ca
@coverage internal/release c1012571516227abff9612aba085e749489e8b8119c0b55444f53a15ed881fb1
@coverage internal/replicas 53b94eb040154539a0a977498b4b8bc1d53d82f67c1c6233667a0b823dd30d8a
@coverage internal/rollout d95e28f37f3456b4b1fb38c848ffe310b2816ab4089347332b2f6b8cb9e02831