carlos / platform Public

fix: report failed pool withdrawal proofs to the next pass

Co-Authored-By: GPT-6 Astra <noreply@openai.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 5a651b31b8ad5cb5eaa78a56907603da94b76b4d parent 3b4701e
5 files changed, +91 −20
  • docs/superpowers/notes/census-proposal-region-ha-g2-fixes.md +1 −1
  • internal/activator/poolwithdrawal.go +7 −7
  • internal/host/poolwithdrawal_live_test.go +77 −6
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-g2-fixes.tsv +5 −5

CI failed — run details

Intent

Human

<paseo-system version="1" kind="agent-message" source-agent-id="8a3d302a-eac7-407c-b61c-f5ccc66b5544" message-id="828d751b-b13c-4d9c-83ae-1f2e25fae6d2"> Agent manager 8a3d302: pushes to amadan.net WORK again (Paul restored the credential at 15:00Z). Push your branch and carry on: CI, census, whole-branch review, merge under the standing approval. </paseo-system>

Human

<task-notification> <task-id>ad7c8393c47acccfb</task-id> <tool-use-id>toolu_01EcN3FV2F9WV7dDLUeDqmss</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/5555438b-7fa2-408d-b2c4-9fa87ea89332/tasks/ad7c8393c47acccfb.output</output-file> <status>completed</status> <summary>Agent "Final re-review R3 scoped (Opus)" 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: NOT READY.** No P1. One P2. I didn't run any tests; the finding comes from reading the code. - **P2:** A proof that fails for good never backs off and reads S3 on every pass. `PreparePoolWithdrawal` (`internal/activator/poolwithdrawal.go:64-82`) reports a finished proof's error only within 1 s of it finishing (`retryAt`). Passes are minutes apart, so each pass starts a new proof and gets `stopping` back. That leaves the proof codes (`stop`, `startup`, `cgroup`, `release`, `lifetime`, `duties`) dead at the backoff site, and brings back the per-pass S3 polling that P3-2 removed. Round 2 only held it in check because `stopping` also backed off. No test drives a real failing proof. Suggested fix: hand a failed proof's error to the next caller once, whatever `retryAt` says, and add a host live test with a proof that keeps failing. Everything else checks out: - **Ruling:** implemented as written. `stopping`, unknown codes and a successful finished proof never back off, and success is consumed on the next pass. - **Code list:** all 13 codes match the places that emit them. - **Withdrawal proof:** no safety condition changed. **Census:** APPROVE for `ReconcileConfig.withdrawPools`. It keeps the same 15 read sites with offsets moved, and adds no read or authority. APPROVE for the `internal/provision` envelope re-pin. Review file: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-g2-fixes/.superpowers/sdd/2026-11-06-region-ha-g2-fixes/final-review-r3.md`</result> <usage><subagent_tokens>73587</subagent_tokens><tool_uses>11</tool_uses><duration_ms>111918</duration_ms></usage> </task-notification>

diff --git a/docs/superpowers/notes/census-proposal-region-ha-g2-fixes.md b/docs/superpowers/notes/census-proposal-region-ha-g2-fixes.md
index b433d5fb9..c89880e40 100644
--- a/docs/superpowers/notes/census-proposal-region-ha-g2-fixes.md
+++ b/docs/superpowers/notes/census-proposal-region-ha-g2-fixes.md
@@ -141,6 +141,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/edge/wakeplacement.go:homeMap.dutySnapshot`: +registry:Pool ×2; keeps legacy, task accepted-legacy
- reads `internal/host/edgesfile.go:edgesFileWriteClaims`: +registry:Host, +registry:Pool; keeps authority, task F,J1
-Seal: `ebeaa693941f5592cd7bc3458effc2a333a8d12ba4f192a93d0aa32589048939` → `02d64a854b1bcbc2e20e032a0bf065d62ba4b5b197f3faa98be26b6007ddba19`.
+Seal: `ebeaa693941f5592cd7bc3458effc2a333a8d12ba4f192a93d0aa32589048939` → `f4c2ef292f645dccbfa9b2b570074d1033b3be9fc2b4dc76e2f14aec1f8b94b7`.
Overlay: `internal/provision/testdata/plan14-root-reads-region-ha-g2-fixes.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/activator/poolwithdrawal.go b/internal/activator/poolwithdrawal.go
index de15a6509..84ccd6790 100644
--- a/internal/activator/poolwithdrawal.go
+++ b/internal/activator/poolwithdrawal.go
@@ -19,11 +19,11 @@ import (
)
type poolWithdrawal struct {
- route registry.Route
- owner string
- done bool
- err error
- retryAt time.Time
+ route registry.Route
+ owner string
+ done bool
+ err error
+ reported bool
}
func (a *Service) PreparePoolWithdrawal(ctx context.Context, rt registry.Route) error {
@@ -71,7 +71,8 @@ func (a *Service) PreparePoolWithdrawal(ctx context.Context, rt registry.Route)
if old.err == nil {
return nil
}
- if time.Now().Before(old.retryAt) {
+ if !old.reported {
+ old.reported = true
return old.err
}
}
@@ -89,7 +90,6 @@ func (a *Service) provePoolWithdrawal(b *ExecBackend, job *poolWithdrawal) {
err := a.poolWithdrawalProof(ctx, b, job)
a.mu.Lock()
job.err, job.done = err, true
- job.retryAt = time.Now().Add(time.Second)
a.mu.Unlock()
if err != nil {
log.Printf("ha_pool_withdrawal_proof_finish host=%s result=error error=%v", job.route.Host, err)
diff --git a/internal/host/poolwithdrawal_live_test.go b/internal/host/poolwithdrawal_live_test.go
index 95974a419..121bada86 100644
--- a/internal/host/poolwithdrawal_live_test.go
+++ b/internal/host/poolwithdrawal_live_test.go
@@ -19,8 +19,9 @@ import (
)
type withdrawalProofLog struct {
- done chan string
- starts atomic.Int32
+ done chan string
+ starts atomic.Int32
+ cgroups atomic.Int32
}
func (l *withdrawalProofLog) Write(p []byte) (int, error) {
@@ -28,6 +29,9 @@ func (l *withdrawalProofLog) Write(p []byte) (int, error) {
if strings.Contains(line, "ha_pool_withdrawal_proof_start") {
l.starts.Add(1)
}
+ if strings.Contains(line, "ha_pool_withdrawal_pending code=cgroup host=") {
+ l.cgroups.Add(1)
+ }
if strings.Contains(line, "ha_pool_withdrawal_proof_finish") {
l.done <- line
}
@@ -37,16 +41,30 @@ func (l *withdrawalProofLog) Write(p []byte) (int, error) {
func TestPoolWithdrawalLiveAgentTicks(t *testing.T) {
for _, during := range []bool{false, true} {
t.Run(map[bool]string{false: "refresh-after-proof", true: "refresh-during-proof"}[during], func(t *testing.T) {
- testPoolWithdrawalLiveAgentTicks(t, during)
+ testPoolWithdrawalLiveAgentTicks(t, during, false)
})
}
}
-func testPoolWithdrawalLiveAgentTicks(t *testing.T, during bool) {
+func TestPoolWithdrawalFailedProofBackoff(t *testing.T) {
+ testPoolWithdrawalLiveAgentTicks(t, false, true)
+}
+
+type withdrawalReadStore struct {
+ release.Store
+ reads atomic.Int32
+}
+
+func (s *withdrawalReadStore) Get(ctx context.Context, key string) ([]byte, string, error) {
+ s.reads.Add(1)
+ return s.Store.Get(ctx, key)
+}
+
+func testPoolWithdrawalLiveAgentTicks(t *testing.T, during, failing bool) {
t.Cleanup(lease.ProcessStateForTest())
fx := locktest.NewLockFixture(t)
reg := edgesTestRegistry(t)
- store := release.NewDirStore(t.TempDir())
+ store := &withdrawalReadStore{Store: release.NewDirStore(t.TempDir())}
pcfg := provision.ReconcileConfig{Region: "ie", Pools: []string{"other"}, DataDir: t.TempDir()}
rec := provision.Record{Schema: 1, Host: "shop.example.com", Account: "bbw", App: "shop", Pool: "ha", Region: "ie", Channel: "stable", HA: true, CreatedAt: time.Now().UTC()}
if err := provision.CreateRecord(t.Context(), store, rec); err != nil {
@@ -68,6 +86,9 @@ func testPoolWithdrawalLiveAgentTicks(t *testing.T, during bool) {
return false, false, nil
}
}
+ if failing {
+ b.CgroupEvents = func(string, string) (bool, bool, error) { return true, true, nil }
+ }
if err := lease.SetObligationDir(t.TempDir()); err != nil {
t.Fatal(err)
}
@@ -120,7 +141,7 @@ func testPoolWithdrawalLiveAgentTicks(t *testing.T, during bool) {
}
select {
case line := <-logs.done:
- if !strings.Contains(line, "result=success") {
+ if (!failing && !strings.Contains(line, "result=success")) || (failing && !strings.Contains(line, "code=cgroup")) {
t.Fatal(line)
}
case <-time.After(5 * time.Second):
@@ -130,6 +151,56 @@ func testPoolWithdrawalLiveAgentTicks(t *testing.T, during bool) {
clock = clock.Add(5 * time.Second)
bs.refreshAll(t.Context())
}
+ if failing {
+ time.Sleep(1100 * time.Millisecond)
+ tick()
+ if logs.cgroups.Load() != 1 {
+ t.Errorf("next tick did not consume terminal cgroup failure: pending=%d starts=%d", logs.cgroups.Load(), logs.starts.Load())
+ }
+ reads := store.reads.Load()
+ if reads == 0 {
+ t.Fatal("no record reads observed before backoff")
+ }
+ for range 4 {
+ clock = clock.Add(time.Minute)
+ bs.refreshAll(t.Context())
+ tick()
+ if got := store.reads.Load(); got != reads {
+ t.Fatalf("backoff read the store: before=%d after=%d starts=%d", reads, got, logs.starts.Load())
+ }
+ if row, err := reg.Get(rt.Host); err != nil || row == nil || !svc.Fenced(rt.Host) {
+ t.Fatalf("failed proof lost row or fence: row=%+v err=%v", row, err)
+ }
+ }
+ if logs.starts.Load() != 1 {
+ t.Fatalf("backoff restarted proof: starts=%d", logs.starts.Load())
+ }
+ clock = clock.Add(time.Minute)
+ tick()
+ select {
+ case line := <-logs.done:
+ if !strings.Contains(line, "code=cgroup") {
+ t.Fatal(line)
+ }
+ case <-time.After(5 * time.Second):
+ t.Fatal("reported failure prevented retry after backoff")
+ }
+ if logs.starts.Load() != 2 || logs.cgroups.Load() != 1 {
+ t.Fatalf("expiry did not start one new proof: starts=%d pending=%d", logs.starts.Load(), logs.cgroups.Load())
+ }
+ time.Sleep(1100 * time.Millisecond)
+ tick()
+ if logs.cgroups.Load() != 2 {
+ t.Fatalf("next tick did not consume retry failure: pending=%d", logs.cgroups.Load())
+ }
+ reads = store.reads.Load()
+ clock = clock.Add(time.Minute)
+ tick()
+ if store.reads.Load() != reads || logs.starts.Load() != 2 {
+ t.Fatalf("retry failure did not back off: before=%d after=%d starts=%d", reads, store.reads.Load(), logs.starts.Load())
+ }
+ return
+ }
tick()
if row, err := reg.Get(rt.Host); err != nil || row != nil {
t.Fatalf("completed proof did not remove row on next tick: row=%+v err=%v starts=%d", row, err, logs.starts.Load())
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 3704b5729..4f7275289 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -107,4 +107,4 @@ plan14-root-reads-restart-new-box-gap.tsv 18e4df5f599a48a881526fc2f85a9b591e3ea8
plan14-root-reads-agent-start-demo-3.tsv ebeaa693941f5592cd7bc3458effc2a333a8d12ba4f192a93d0aa32589048939
plan14-root-reads-lease-renew-after-pause.tsv ebeaa693941f5592cd7bc3458effc2a333a8d12ba4f192a93d0aa32589048939
plan14-root-reads-demo-api-claim-paths.tsv ebeaa693941f5592cd7bc3458effc2a333a8d12ba4f192a93d0aa32589048939
-plan14-root-reads-region-ha-g2-fixes.tsv 02d64a854b1bcbc2e20e032a0bf065d62ba4b5b197f3faa98be26b6007ddba19
+plan14-root-reads-region-ha-g2-fixes.tsv f4c2ef292f645dccbfa9b2b570074d1033b3be9fc2b4dc76e2f14aec1f8b94b7
diff --git a/internal/provision/testdata/plan14-root-reads-region-ha-g2-fixes.tsv b/internal/provision/testdata/plan14-root-reads-region-ha-g2-fixes.tsv
index c02771af4..6a1fce529 100644
--- a/internal/provision/testdata/plan14-root-reads-region-ha-g2-fixes.tsv
+++ b/internal/provision/testdata/plan14-root-reads-region-ha-g2-fixes.tsv
@@ -30,10 +30,10 @@
@legacy 2cb01a31267ea1cb0a182b46f7d2da162300097c73b900005c1ccd1778ee78b0 internal/activator/hasuspectholder.go ExecBackend.observeHARefusal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New observer uses the already classified lock owner, generation and ExpiresAt to time visitor/same-box suspects; two route Host reads, no additional lock read; finalizer, absent and release views excluded. registry:Host@460,registry:Host@855 8c77260cf955069ecc7c5dd734b19533785b8f6efe55b3fbbbf8c4815f45feb8
@legacy 6c977f3e66421e77db23d1345b7a3a9d96770e39c5c86578e017993f30277620 internal/activator/heldlegs.go Service.HeldAdmissible legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Read the cached route and recheck pool eligibility plus entry identity before admitting a held leg; no external read. whole:Route@128,whole:Route@135,whole:Route@192,whole:Route@299 b247a40e10c6d38666996b818e13ffa4444698fb353a850633607260e3d0e393
@legacy ffa70f9368f5dd5d914aff216bbbe730d6f98ad1bb373c3b3efc8c08f52edf8c internal/activator/poolwithdrawal.go ExecBackend.poolWithdrawalEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New stop proof reads host slice and flat-host cgroup events via existing helpers; missing is empty, read errors/populated refuse. Host-derived existing cgroup names only. registry:Host@219,registry:Host@346 6c9fd53e43d9fd4ae226a007f0b90fe84b7c9736a1e4fc119f603f54f784f79b
-@legacy c4f7aecf61575674af935eb9448a2f5abcfa842a677505720c57f4b501ff9ea1 internal/activator/poolwithdrawal.go Service.PreparePoolWithdrawal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Reap completed obsolete withdrawal jobs, then read current route and require supported matching ownership and pool ineligibility before installing an owned fence and scheduling stop/release proof; no bucket write. registry:ClaimOwnership@779,registry:ClaimOwnership@805,registry:DBPath@748,registry:DBPath@766,registry:Host@1012,registry:Host@1043,registry:Host@1230,registry:Host@1254,registry:Host@1388,registry:Host@1689,registry:Host@390,registry:Host@673,registry:Host@888,registry:Host@917,registry:Host@956,registry:Host@985,registry:Kind@721,registry:Kind@737,whole:ClaimOwnership@787,whole:ClaimOwnership@808,whole:Route@1495,whole:Route@1502,whole:Route@1645,whole:Route@1652,whole:Route@235,whole:Route@428,whole:Route@484,whole:Route@528,whole:Route@551,whole:Route@714,whole:Route@723,whole:Route@750,whole:Route@781 fa62845c124a0ad76ffac13ca3bf8646e8056b04a0d17ad4ebd28617c50b6123
+@legacy 4300c7f865225dfb52d04739354f344ef343a9ae5f91c442b7ff18ab8788c61a internal/activator/poolwithdrawal.go Service.PreparePoolWithdrawal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Reap completed obsolete withdrawal jobs, then read current route and require supported matching ownership and pool ineligibility before installing an owned fence and scheduling stop/release proof. Return each completed failure once on the next matching call regardless of elapsed time, retaining the job for fence cleanup; a later call starts a new proof. Successful proof consumption and safety checks unchanged; no new read or bucket write. registry:ClaimOwnership@779,registry:ClaimOwnership@805,registry:DBPath@748,registry:DBPath@766,registry:Host@1012,registry:Host@1043,registry:Host@1230,registry:Host@1254,registry:Host@1388,registry:Host@1696,registry:Host@390,registry:Host@673,registry:Host@888,registry:Host@917,registry:Host@956,registry:Host@985,registry:Kind@721,registry:Kind@737,whole:ClaimOwnership@787,whole:ClaimOwnership@808,whole:Route@1495,whole:Route@1502,whole:Route@1652,whole:Route@1659,whole:Route@235,whole:Route@428,whole:Route@484,whole:Route@528,whole:Route@551,whole:Route@714,whole:Route@723,whole:Route@750,whole:Route@781 fe9e2f711ba530d7ce85a5471f50b70e2ca1fc0acb39b5ddab844796dabc42fc
@legacy c8b1015316358f70c9eb4dc55da6becdffe813e9209322b33bde51ed318e5c86 internal/activator/poolwithdrawal.go Service.ReapPoolWithdrawals legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Read current registry rows for completed withdrawal jobs outside the service mutex; discard cached proof and lift only that job-owned generation-1 fence when the row is absent, changed or eligible. Running or replaced jobs and other owners retain fences; no new path or bucket read. whole:Route@321,whole:Route@364,whole:Route@391,whole:Route@420 f97888c5f4328d4154ac61aae96e04b70649efab69e6e0b56e213b6ea7118f4c
@legacy e48b1c212f84f6656b6e07f393bb7a83ba1a3f35fd73b0ecd0829010f4086dcc internal/activator/poolwithdrawal.go Service.poolWithdrawalProof legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New withdrawal proof uses existing fence/stop, cgroup, record/lifetime, holder-lock, obligation, local release-record/stat and registry timer/route readers. Requires proven stop and clean release or safe never-started state; retains outstanding duties and special rows. No new path namespace or record write; local files use existing backend layout. registry:Addr@1101,registry:Addrs@1118,registry:Args@1175,registry:DBPath@1136,registry:HA@1341,registry:Hibernate@1066,registry:Host@1582,registry:Host@2093,registry:Host@2348,registry:Host@2557,registry:Host@279,registry:Host@3850,registry:Host@3938,registry:Host@429,registry:Host@464,registry:Host@503,registry:Host@534,registry:Host@616,registry:Host@653,registry:Host@892,registry:Kind@1024,registry:Kind@1282,registry:Kind@1386,registry:NextDue@4096,registry:Runtime@1155,registry:Socket@1082,registry:WakeIncarnation@1253,registry:WakeIncarnation@1856,whole:Route@115,whole:Route@1442,whole:Route@1666,whole:Route@2188,whole:Route@2343,whole:Route@2606,whole:Route@3965,whole:Route@4009,whole:Route@4032,whole:Route@4055,whole:Route@972,whole:Timer@4124 9099408e32e006312b9f64f4f178b0bd7f27ad378857d2a5a78a6d482212805f
-@legacy ba4ca44ab7c0064bd5b55209006ea5b9bce06815c089da44e2328b67ac5bcc11 internal/activator/poolwithdrawal.go Service.provePoolWithdrawal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Run withdrawal proof under service lifetime with a five-minute budget and store its result; cached route Host for logging, indirect reads owned by poolWithdrawalProof. registry:Host@131,registry:Host@464,registry:Host@566,whole:Route@135,whole:Route@468,whole:Route@570 e0b5bcf44122bb3b2b98f526343fa362f32a5b3caa7ba7be1e72447dcb598bb6
+@legacy 19ca29ec5d6e0cfb980e5435476539a0111cd6ea1c95b721a901f7a7bdab12c3 internal/activator/poolwithdrawal.go Service.provePoolWithdrawal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Run withdrawal proof under service lifetime with a five-minute budget and store its result without a wall-clock retry expiry; cached route Host for logging, indirect reads owned by poolWithdrawalProof. No new read or change to the proof itself. registry:Host@131,registry:Host@421,registry:Host@523,whole:Route@135,whole:Route@425,whole:Route@527 d7f46401c94b159d59e815becc1ee999a232a58c72fc93f73038131038c4c0dc
@legacy 7d9f6beaafdf87cbb25e2870a4f4c69ae07332a0194f82ee0956f44369296e96 internal/activator/poolwithdrawal.go samePoolWithdrawalRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Compare complete rows while ignoring only BuildState.read_at after valid JSON decoding; new in-memory BuildState/route reads, no I/O. registry:BuildState@110,registry:BuildState@68,registry:BuildState@82,registry:BuildState@96,whole:Route@136,whole:Route@141 43ddd34ecbad6619665a4cbbe275f63b27ce28b2895da3462f1e4893d867d00b
@legacy 2758c3a991256099537055a663d96603e7618ab4ad8c19b80ad53daf7eed0294 internal/activator/poolwithdrawal.go withdrawalRow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Clear transient WakeIncarnation for comparison with the persisted row; supplied route only, no external read. registry:WakeIncarnation@55,whole:Route@87 1d33ece4a4ca14e428d91ff1171393d5eb267bfa810966c20c790b882d3c900a
@legacy ed9f0406338f164df31c81fd72a15485c560144f15b0bf3d064f0f94c7945abe internal/domains/aliases.go deriveHAIngressAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New plain/delegated alias projection binds accepted claim account/app to HA metadata, excludes pending/instance/regional/sidecar claims and exact-name collisions, and preserves unavailable targets as refusal-only names; in-memory route fields only. registry:Account@1202,registry:Account@692,registry:App@1106,registry:App@1232,registry:App@719,registry:HA@495,registry:Host@477,registry:Host@671,whole:Route@1037,whole:Route@1083,whole:Route@1167,whole:Route@383,whole:Route@638,whole:Route@794,whole:Route@870,whole:Route@921,whole:Route@942 9569d5dfffede04808dffe4def94bf4954e858a697692c9c80fb4f48f4d05eff
@@ -122,10 +122,10 @@ internal/activator/haleaseloss.go haOwedKey legacy accepted-legacy accepted-lega
internal/activator/hasuspectholder.go ExecBackend.observeHARefusal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New observer uses the already classified lock owner, generation and ExpiresAt to time visitor/same-box suspects; two route Host reads, no additional lock read; finalizer, absent and release views excluded. registry:Host@460,registry:Host@855 8c77260cf955069ecc7c5dd734b19533785b8f6efe55b3fbbbf8c4815f45feb8
internal/activator/heldlegs.go Service.HeldAdmissible legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Read the cached route and recheck pool eligibility plus entry identity before admitting a held leg; no external read. whole:Route@128,whole:Route@135,whole:Route@192,whole:Route@299 b247a40e10c6d38666996b818e13ffa4444698fb353a850633607260e3d0e393
internal/activator/poolwithdrawal.go ExecBackend.poolWithdrawalEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New stop proof reads host slice and flat-host cgroup events via existing helpers; missing is empty, read errors/populated refuse. Host-derived existing cgroup names only. registry:Host@219,registry:Host@346 6c9fd53e43d9fd4ae226a007f0b90fe84b7c9736a1e4fc119f603f54f784f79b
-internal/activator/poolwithdrawal.go Service.PreparePoolWithdrawal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Reap completed obsolete withdrawal jobs, then read current route and require supported matching ownership and pool ineligibility before installing an owned fence and scheduling stop/release proof; no bucket write. registry:ClaimOwnership@779,registry:ClaimOwnership@805,registry:DBPath@748,registry:DBPath@766,registry:Host@1012,registry:Host@1043,registry:Host@1230,registry:Host@1254,registry:Host@1388,registry:Host@1689,registry:Host@390,registry:Host@673,registry:Host@888,registry:Host@917,registry:Host@956,registry:Host@985,registry:Kind@721,registry:Kind@737,whole:ClaimOwnership@787,whole:ClaimOwnership@808,whole:Route@1495,whole:Route@1502,whole:Route@1645,whole:Route@1652,whole:Route@235,whole:Route@428,whole:Route@484,whole:Route@528,whole:Route@551,whole:Route@714,whole:Route@723,whole:Route@750,whole:Route@781 fa62845c124a0ad76ffac13ca3bf8646e8056b04a0d17ad4ebd28617c50b6123
+internal/activator/poolwithdrawal.go Service.PreparePoolWithdrawal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Reap completed obsolete withdrawal jobs, then read current route and require supported matching ownership and pool ineligibility before installing an owned fence and scheduling stop/release proof. Return each completed failure once on the next matching call regardless of elapsed time, retaining the job for fence cleanup; a later call starts a new proof. Successful proof consumption and safety checks unchanged; no new read or bucket write. registry:ClaimOwnership@779,registry:ClaimOwnership@805,registry:DBPath@748,registry:DBPath@766,registry:Host@1012,registry:Host@1043,registry:Host@1230,registry:Host@1254,registry:Host@1388,registry:Host@1696,registry:Host@390,registry:Host@673,registry:Host@888,registry:Host@917,registry:Host@956,registry:Host@985,registry:Kind@721,registry:Kind@737,whole:ClaimOwnership@787,whole:ClaimOwnership@808,whole:Route@1495,whole:Route@1502,whole:Route@1652,whole:Route@1659,whole:Route@235,whole:Route@428,whole:Route@484,whole:Route@528,whole:Route@551,whole:Route@714,whole:Route@723,whole:Route@750,whole:Route@781 fe9e2f711ba530d7ce85a5471f50b70e2ca1fc0acb39b5ddab844796dabc42fc
internal/activator/poolwithdrawal.go Service.ReapPoolWithdrawals legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Read current registry rows for completed withdrawal jobs outside the service mutex; discard cached proof and lift only that job-owned generation-1 fence when the row is absent, changed or eligible. Running or replaced jobs and other owners retain fences; no new path or bucket read. whole:Route@321,whole:Route@364,whole:Route@391,whole:Route@420 f97888c5f4328d4154ac61aae96e04b70649efab69e6e0b56e213b6ea7118f4c
internal/activator/poolwithdrawal.go Service.poolWithdrawalProof legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New withdrawal proof uses existing fence/stop, cgroup, record/lifetime, holder-lock, obligation, local release-record/stat and registry timer/route readers. Requires proven stop and clean release or safe never-started state; retains outstanding duties and special rows. No new path namespace or record write; local files use existing backend layout. registry:Addr@1101,registry:Addrs@1118,registry:Args@1175,registry:DBPath@1136,registry:HA@1341,registry:Hibernate@1066,registry:Host@1582,registry:Host@2093,registry:Host@2348,registry:Host@2557,registry:Host@279,registry:Host@3850,registry:Host@3938,registry:Host@429,registry:Host@464,registry:Host@503,registry:Host@534,registry:Host@616,registry:Host@653,registry:Host@892,registry:Kind@1024,registry:Kind@1282,registry:Kind@1386,registry:NextDue@4096,registry:Runtime@1155,registry:Socket@1082,registry:WakeIncarnation@1253,registry:WakeIncarnation@1856,whole:Route@115,whole:Route@1442,whole:Route@1666,whole:Route@2188,whole:Route@2343,whole:Route@2606,whole:Route@3965,whole:Route@4009,whole:Route@4032,whole:Route@4055,whole:Route@972,whole:Timer@4124 9099408e32e006312b9f64f4f178b0bd7f27ad378857d2a5a78a6d482212805f
-internal/activator/poolwithdrawal.go Service.provePoolWithdrawal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Run withdrawal proof under service lifetime with a five-minute budget and store its result; cached route Host for logging, indirect reads owned by poolWithdrawalProof. registry:Host@131,registry:Host@464,registry:Host@566,whole:Route@135,whole:Route@468,whole:Route@570 e0b5bcf44122bb3b2b98f526343fa362f32a5b3caa7ba7be1e72447dcb598bb6
+internal/activator/poolwithdrawal.go Service.provePoolWithdrawal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Run withdrawal proof under service lifetime with a five-minute budget and store its result without a wall-clock retry expiry; cached route Host for logging, indirect reads owned by poolWithdrawalProof. No new read or change to the proof itself. registry:Host@131,registry:Host@421,registry:Host@523,whole:Route@135,whole:Route@425,whole:Route@527 d7f46401c94b159d59e815becc1ee999a232a58c72fc93f73038131038c4c0dc
internal/activator/poolwithdrawal.go samePoolWithdrawalRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Compare complete rows while ignoring only BuildState.read_at after valid JSON decoding; new in-memory BuildState/route reads, no I/O. registry:BuildState@110,registry:BuildState@68,registry:BuildState@82,registry:BuildState@96,whole:Route@136,whole:Route@141 43ddd34ecbad6619665a4cbbe275f63b27ce28b2895da3462f1e4893d867d00b
internal/activator/poolwithdrawal.go withdrawalRow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Clear transient WakeIncarnation for comparison with the persisted row; supplied route only, no external read. registry:WakeIncarnation@55,whole:Route@87 1d33ece4a4ca14e428d91ff1171393d5eb267bfa810966c20c790b882d3c900a
internal/domains/aliases.go deriveHAIngressAliases legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=New plain/delegated alias projection binds accepted claim account/app to HA metadata, excludes pending/instance/regional/sidecar claims and exact-name collisions, and preserves unavailable targets as refusal-only names; in-memory route fields only. registry:Account@1202,registry:Account@692,registry:App@1106,registry:App@1232,registry:App@719,registry:HA@495,registry:Host@477,registry:Host@671,whole:Route@1037,whole:Route@1083,whole:Route@1167,whole:Route@383,whole:Route@638,whole:Route@794,whole:Route@870,whole:Route@921,whole:Route@942 9569d5dfffede04808dffe4def94bf4954e858a697692c9c80fb4f48f4d05eff
@@ -185,7 +185,7 @@ internal/edge/regional.go Edge.foldRegional legacy accepted-legacy accepted-lega
internal/host/hadepartures.go Controller.step legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: resolve bound same-scope identities, persist validated termination proof before enrollment, and replay bounded pending work outside consumer/fold locks. Existing regional data client and shared cache; inventory only restricts completion, never lifecycle. B3 fix r1: Describe before proof access on suspicion paths. Normalize validated legacy inbox entries in atomic transactions, process bounded per-iid pending pages, and persist hourly escalation. Delete unrelated rows only after complete applicable walks and guarded received timestamps. Acquire/completion authority unchanged. B4: Count unresolved durable hints for the globally throttled summary and call the bounded scanner outside the fold. Acknowledge unrelated hints only after complete applicable discovery; complete departure acknowledgment reads durable state. B4 fix r3: Include refused fixed-box replacements in the existing structured receiver summary, sharing its persisted hourly page claim with pending hints. Read only local refusal state and registry page state; no additional cloud request or completion authority.;rev3=census-ruling-region-ha-p3b;basis=Register admitted departure work and cancel/join it during closure before existing confirmation/import processing. Existing 23 read sites and lease/termination proofs remain; no new root input or takeover permission.;rev3=census-ruling-region-ha-g2-fixes;basis=Include identity and underlying paging errors in existing failure logs; new IID field read only, no new external read or termination authority. file:Walk@2717,registry:Body@1979,registry:IID@2554,registry:IID@2971,registry:IID@3324,registry:IID@3357,registry:IID@4038,registry:IID@4196,registry:Key@2081,registry:Key@2317,registry:LastBlocked@2872,registry:ReceivedAt@2300,registry:ReceivedAt@3255,whole:HADeparture@5042,whole:HADeparture@6010,whole:HADeparture@6333,whole:HAPendingTermination@2495,whole:HAPendingTermination@2912,whole:HAPendingTermination@3166,whole:HAPendingTermination@3449,whole:HAPendingTermination@3555,whole:HAPendingTermination@4114,whole:HAPendingTermination@4730,whole:HATerminationInbox@1939 0cdf56509e6a0db8cda6528a9a27fa0257205cac6af0528650a381d5226b4630
@coverage infra/modules/region-host 5405538508ce35a0380a16ae18fc5b0693485db87c5330991b9e88b9420be5de
@coverage infra/modules/region-host/tests 570051ac6edc48d1bf6ddac7ea364952f79b0c869b1cc006190c6650d2dde39d
-@coverage internal/activator 93c2cb47a69af802fc1081a1b9cee0e20a6ef8edb2fe4d74d3859f3c1e0778fa
+@coverage internal/activator 0adbc3c8fbeec03f94035c0b80f2dbc2de3a3ac7f76ee2185ca85590a8c7a7fc
@coverage internal/domains 18f910822bf518e3ee917ff51dba552bf7a6668c313eeef3d01610d38cb4bb53
@coverage internal/edge 62112fbbb8ee10311c409e45f00570b2a56f96d1ef0ffd6056c61cd81243d623
@coverage internal/hafresh 5a10a9c971ba3a811e4bfdd2f59bd5715c41f991c872593d4ba42d4dfbfe6b21