carlos / platform Public

activator: pass context.TODO in the replica fence classifier test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev b83fda7c4cd6622b8a479c8d85afb05ce237ff3a parent 054dcac
1 file changed, +2 −1
  • internal/activator/replica_fence_refusal_test.go +2 −1

Intent

Human

<task-notification> <task-id>ac9e9c80d65c8726d</task-id> <tool-use-id>toolu_011uNAHNPmpiaEQ7QtChbo4J</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/68be7e6f-7841-4936-9fa0-2041da778685/tasks/ac9e9c80d65c8726d.output</output-file> <status>completed</status> <summary>Agent "Implement restart-wake Tasks 1-2" 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>Status: DONE. Astra's last P2 is fixed: the 30 s memo of hosts whose record read came back empty now forgets hosts once their window has passed. Fix range: 43a5d0cf..054dcace (one commit, 054dcace). - **What changed:** each time a host is added to the memo, entries older than 30 s are dropped first, under the same lock and with no timer. The memo now only holds hosts that missed in the last 30 s, so a host the reconcile pass removed is forgotten at the next miss of any host. - **Witness:** `TestReplicaMissMemoForgetsExpiredHosts` has 100 hosts miss once, moves the clock past the window, then has one more miss; only that last entry remains. Without the deletion it fails with 101 entries; with it, it passes, including under `-race` with the other memo test. - **Checks:** the other memo and store-error tests pass. `census-propose NAME=fleet-restart-wake` was rerun: no unit changed, only the `internal/host` envelope fingerprint was re-pinned, and the card is the same. The census tests, `TestCopySincePathInventory`, vet and the darwin/windows builds all pass. Still open: the record-moved-to-another-box case still counts as a build failure, as it did on main before this branch, and needs your ruling. Fable's P3s stay as follow-ups. Report (section appended): /home/paulca/amadan.net/carlos/platform/.claude/worktrees/fleet-restart-wake/.superpowers/sdd/2026-11-21-fleet-restart-wake/tasks-1-2-report.md</result> <usage><subagent_tokens>359889</subagent_tokens><tool_uses>4</tool_uses><duration_ms>217594</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bhxcs0ls4</task-id> <tool-use-id>toolu_01CD31DwuwPXXVAP5zK69KTZ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/68be7e6f-7841-4936-9fa0-2041da778685/tasks/bhxcs0ls4.output</output-file> <status>completed</status> <summary>Background command "sleep 30; until s=$(amadan ci status carlos/platform -branch fleet-restart-wake 2&gt;&amp;1 | head -1); echo "$s" | grep -q 054dcac &amp;&amp; ! echo "$s" | grep -q "queued\|running"; do sleep 30; done; echo "$s"" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 27.9 g CO₂e (3,653,542 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on fleet-restart-wake, 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/replica_fence_refusal_test.go b/internal/activator/replica_fence_refusal_test.go
index 7b07890ef..9ce8180fb 100644
--- a/internal/activator/replica_fence_refusal_test.go
+++ b/internal/activator/replica_fence_refusal_test.go
@@ -8,6 +8,7 @@ package activator
// per change of its text, never as a failed wake.
import (
+ "context"
"errors"
"fmt"
"net/http"
@@ -29,7 +30,7 @@ func TestReplicaFenceClassifiedAsTheActivatorsFence(t *testing.T) {
if got, want := verdictOf(err), verdictOf(ErrFenced); got != want {
t.Errorf("verdictOf(%v) = %v, want %v", err, got, want)
}
- if got, want := classifyStep(nil, err), classifyStep(nil, ErrFenced); got != want {
+ if got, want := classifyStep(context.TODO(), err), classifyStep(context.TODO(), ErrFenced); got != want {
t.Errorf("classifyStep(%v) = %v, want %v", err, got, want)
}
for _, open := range []bool{false, true} {