host: reproduce the fixture's departure controller refusal without root
Run 3 of the W6 ingress drain witness stopped at "Termination recovery has not started: controller": the terminate fixture's agent runs on a deployment directory with CARLOS_DEPLOYMENT_BUCKET empty, and the departure controller refuses without a deployment bucket. The non-root seam test now shows both sides: refused without the bucket, started on the fixture queue with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
internal/host/ingressdrain_rootrunner_linux_test.go+16 −0
Intent
<task-notification> <task-id>a14f56a7ddada51be</task-id> <tool-use-id>toolu_01TP5E2Nw2jYYiWPrg3eqTUE</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a373aecd-faa9-4b83-8736-ff726fb2d3af/tasks/a14f56a7ddada51be.output</output-file> <status>completed</status> <summary>Agent "Implement W6 Task 9 (root runner)" 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_WITH_CONCERNS. The run log doesn't show why the termination consumer never started. This round makes the next run name the cause and fail at once; it does not fix the cause yet. Commits: c12bfce9 "host: ingress drain witness names why admission waits; first write only". Build/vet: the linux/arm64 rootrunner test binary builds (deleted after). `go vet` is clean with the rootrunner tag (arm64 and host) and without it. `go build ./...` passes for linux, darwin and windows. `TestIngressRootLoopClassify` and the new `TestIngressRootDepartureSeam` pass locally. Findings: - **Your seam is on the path.** Fixed admission's TerminationStarted waits for the consumer's first successful receive. `armHADepartures` starts the consumer, and under the rootrunner tag it gets its queue from `fixtureDepartureQueue()`. `TestIngressRootDepartureSeam` (rootrunner tag, no root) makes the same call the agent makes and sees the consumer start within 5 s. - **The runner journal points to a hang, not a configuration gap.** Every failed start logs "Termination recovery has not started: <stage>" and a successful one logs "Termination recovery is running". The run logged neither. `CARLOS_REGION_HA` was on, since the drain armed. So the consumer most likely hangs in a call that never returns: `registry.TerminationInbox`, or opening the deploy store or the proof store. - **The next run will name the cause.** Within 75 s of the agent's start, the fixture's agent logs one of: "termination consumer started"; "never armed", with the box identity; or "armed but not started", with the last notice, the queue-call count and the stacks of the departure goroutines. The test stops on the negative lines and prints the last 300 lines of the edge journal. Otherwise it gives up 120 s after the agent's start, naming the waiting line. - **Astra write-time finding fixed.** The loop now records only the first successful write (no error), and a later retry never replaces it. Two new classify cases cover a retry after step 3 and a write that only failed before step 3. A comment notes that client write completion is the closest thing to server dispatch this process can see. Concerns: - Admission will most likely still fail on your rerun. That run's stack dump should identify the hanging call, and I'll fix the fixture input in round 3. - "hosting" is untested until TerminationStarted arrives. - My sandboxed commands left empty, read-only placeholder files in the worktree (`.bashrc`, `.mcp.json`, `.claude/agents` and others). I removed them; none were tracked or committed. Report: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/w6-build/.superpowers/sdd/2026-11-10-fixed-edge-ingress-drain/task-9-report.md (round 2 section appended).</result> <usage><subagent_tokens>295154</subagent_tokens><tool_uses>19</tool_uses><duration_ms>352108</duration_ms></usage> </task-notification>
<task-notification> <task-id>b1ejijwpr</task-id> <tool-use-id>toolu_01KFrze6JLiRCPQJpJ2ezoup</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a373aecd-faa9-4b83-8736-ff726fb2d3af/tasks/b1ejijwpr.output</output-file> <status>completed</status> <summary>Background command "Wait for Astra branch review" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>b0vi68lg9</task-id> <tool-use-id>toolu_01Lw1QukD97caQwtoFBqYHZs</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a373aecd-faa9-4b83-8736-ff726fb2d3af/tasks/b0vi68lg9.output</output-file> <status>completed</status> <summary>Background command "Wait for Fable branch review" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>bz4ufxix3</task-id> <tool-use-id>toolu_01TKJY3Pev8qixpJ3rkVuqoK</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a373aecd-faa9-4b83-8736-ff726fb2d3af/tasks/bz4ufxix3.output</output-file> <status>completed</status> <summary>Background command "Wait for run 3" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 9.15 g CO₂e (1,186,541 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on w6-ingress-drain, 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/host/ingressdrain_rootrunner_linux_test.go b/internal/host/ingressdrain_rootrunner_linux_test.go| index a97ef12f3..e42f55c87 100644 |
| --- a/internal/host/ingressdrain_rootrunner_linux_test.go |
| +++ b/internal/host/ingressdrain_rootrunner_linux_test.go |
| @@ -1061,6 +1061,22 @@ func TestIngressRootDepartureSeam(t *testing.T) { |
| t.Fatal("seam set before the fixture armed it") |
| } |
| rootrunnerDepartureQueue = func(context.Context) (hadeparture.Queue, error) { return ingressRootQueue{}, nil } |
| + // Run 3's cause: the terminate fixture's agent runs on a deployment |
| + // directory, with CARLOS_DEPLOYMENT_BUCKET empty, and the controller |
| + // refuses without a deployment bucket ("has not started: controller"). |
| + noBucket, _, _ := departureArmFixture(t) |
| + getenv := noBucket.Getenv |
| + noBucket.Getenv = func(k string) string { |
| + if k == "CARLOS_DEPLOYMENT_BUCKET" { |
| + return "" |
| + } |
| + return getenv(k) |
| + } |
| + noBucket.MakeQueue = fixtureDepartureQueue() |
| + var initErr *hadeparture.InitError |
| + if _, _, err := armHADepartures(t.Context(), noBucket); !errors.As(err, &initErr) || initErr.Stage != "controller" { |
| + t.Fatalf("without a deployment bucket: %v", err) |
| + } |
| a, _, _ := departureArmFixture(t) |
| a.MakeQueue = fixtureDepartureQueue() |
| if a.MakeQueue == nil { |