carlos / platform Public

region HA: cold-placement budget counts the N-HA15 re-read

A still-held cached holder that went unreachable now costs one bounded
lock re-read per suspect window, then keeps refusing with no further
read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 2cdfb022bf224af41bc53a4277764323a07da8c5 parent 94ed816
1 file changed, +7 −1
  • internal/host/haplacement_budget_test.go +7 −1

CI failed — run details

diff --git a/internal/host/haplacement_budget_test.go b/internal/host/haplacement_budget_test.go
index 2a489effa..901ca34e1 100644
--- a/internal/host/haplacement_budget_test.go
+++ b/internal/host/haplacement_budget_test.go
@@ -151,7 +151,13 @@ func testColdPlacementBudgetRows(t *testing.T) {
if !d.Refuse {
t.Fatal("true holder suspect did not refuse", d)
}
- coldBudget(t, a, 1, 0, 0)
+ // N-HA15: an unreachable cached holder costs one bounded re-read per
+ // suspect window; a still-held lock keeps refusing with no further read.
+ coldBudget(t, a, 2, 0, 0)
+ if d = a.call(coldCommand{Op: "forward", Snapshot: s}).Decision; !d.Refuse {
+ t.Fatal("true holder suspect stopped refusing", d)
+ }
+ coldBudget(t, a, 2, 0, 0)
})
t.Run("recovery-suspect-keeps-negative", func(t *testing.T) {
f := newColdPlacementProcesses(t)