region HA: pin a take that meets this box's earlier lease
A lock held, unexpired, by this box's own earlier process names no confirmed holder: the take answers none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+5
−0
internal/activator/hatake_test.go+5 −0
Intent
Attributed to this commit: 10.6 g CO₂e (1,370,048 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-held-build, 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/internal/activator/hatake_test.go b/internal/activator/hatake_test.go| index 9b0c117cd..0504a9536 100644 |
| --- a/internal/activator/hatake_test.go |
| +++ b/internal/activator/hatake_test.go |
| @@ -156,6 +156,11 @@ func TestTakeOtherLockStatesGetTheAcquireTable(t *testing.T) { |
| lock: func(*haSvc) []byte { return heldLock(t, "box/v1;ref=x;iid=i-x;pid=7;ha=1", 6, future) }, |
| markerGen: 6, want: edge.TakeAnswer{Holder: "x", Gen: 6}, |
| }, |
| + // This box's earlier process: not a holder the take can confirm. |
| + "held by this box's earlier process": { |
| + lock: func(*haSvc) []byte { return heldLock(t, "box/v1;ref=a;iid=i-a;pid=1;ha=1", 6, future) }, |
| + markerGen: 6, reason: "lease held", |
| + }, |
| // The named generation, but not a marker: expiry alone never lets |
| // another box acquire, whatever the take says. |
| "another box's expired lease at the named generation": { |