console: the session hub's per-host map is sessionByHost (TestRemoteFactsOneAccessor's byHost rule)
The remote-facts one-accessor guard matches the identifier byHost across the package; the interactive hub's field of the same name (Task 10/11) tripped it. Renamed, no behaviour change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
internal/console/interactivehub.go+15 −15
Intent
<task-notification> <task-id>a5339d0c974800f9a</task-id> <tool-use-id>toolu_01KMPgpu15CQj4S1tUiJFBw8</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/a5339d0c974800f9a.output</output-file> <status>completed</status> <summary>Agent "Plan 6 Task 16: carlos run on fleet" 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.** `carlos run` now reaches instances on fleet boxes over the run door; the CLI, `request.json`, the record's `ActiveRun` and the polled output are unchanged. **Commit:** d9d2b035 "carlos run: reach fleet boxes over the box-dials-the-console door (rootfs plan 6, ruling R7)" on top of 136e7e29. It includes only my files, added by explicit path; not pushed. The report is at `.superpowers/sdd/2026-10-24-rootfs-apps-6-interactive/task-16-report.md`. It is on disk but not committed, because `.superpowers` is gitignored. **Tests:** every targeted test I ran passes once with `-count=1` (both tagged witnesses included), except two console failures that also fail at HEAD (concern 1). `-race` is clean on the new tests, and the darwin/arm64, windows/amd64 and linux/arm64 builds pass. I ran 11 mutations and all were killed. The request budget is asserted at the real store wire: - **Console:** judged 13 requests per run beyond the chunks, legacy 11, as the brief says. - **Box:** one run is two GETs (`request.json`, then the grant) and three record GETs, with no writes and no LISTs. Idle passes, and passes over a run the box has let go, make no request. `make census-card` is clean: overlay re-proposed with the 69 earlier claims carried over unchanged and 3 new claims added, seal now ef5db9eb. No approval was requested. **Concerns:** 1. **Two console failures that also fail at HEAD.** I confirmed both with a full console run of HEAD 136e7e29 in a temporary worktree, since removed. - `TestPlan9SQLBatchSealsRetainedWriteQueuedAcrossCommit` fails under full-package load, then a SQLite seal goroutine panics and aborts the rest of the package. Both pass alone. I reran the package with `-skip TestPlan9SQL` to cover everything else. - `TestRemoteFactsOneAccessor` fails on `byHost` in `interactivehub.go`, Task 10/11 code I did not touch. 2. **Departures for the controller to rule on:** - The console now sends an End back to the box once `result.json` has landed. The box logs its run-ended line only after that, which keeps run log lines at most once (#325). - The run relays live in `apirunsbox.go`, not `interactivehub.go`; another agent had uncommitted edits there when I started. - The host test file is `runrelay_linux_test.go`, because the fake launcher it uses is linux-only. - On the bucket path the run-ended log line now comes after the done CAS rather than before it. It is still written only if the result landed. - Removing the fleet refusal removed RUN-C21's sentence. Its deck row stays approved; the run copy gate now lists it in a new `runCopyRetired` list, because that deck has no struck status. 3. **Step 6 (the dev-box check) is not done.** Running it on any box needs Paul's approval of that scope. 4. **The witnesses play the box themselves.** Its "never dials again" is the test's own model; the real worker's behaviour is pinned by `TestFleetRunsWorkerForgetsARunNotPickedAtACutover`. 5. **Two other pre-existing failures:** - darwin `go vet` of `internal/host` fails at `hawake_wiring_test.go:34`. - The controlplane console tests need `GOFLAGS=-buildvcs=false` in a worktree. 6. **TDD order:** most new tests were written after the code, so I saw no RED for them. The mutation set is the evidence that they bite.</result> <usage><subagent_tokens>510159</subagent_tokens><tool_uses>168</tool_uses><duration_ms>4902007</duration_ms></usage> </task-notification>
Attributed to this commit: 41.2 g CO₂e (5,378,244 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on rootfs-apps-6-interactive, 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/console/interactivehub.go b/internal/console/interactivehub.go| index 63f4a6582..cc831a441 100644 |
| --- a/internal/console/interactivehub.go |
| +++ b/internal/console/interactivehub.go |
| @@ -43,10 +43,10 @@ import ( |
| // 404. |
| type interactiveHub struct { |
| // journal limits the door's unaudited journal lines (apiinteractive.go). |
| - journal journalOnce |
| - mu sync.Mutex |
| - byID map[string]*hubSession // reserved or active |
| - byHost map[string]string // host -> its active session's id |
| + journal journalOnce |
| + mu sync.Mutex |
| + byID map[string]*hubSession // reserved or active |
| + sessionByHost map[string]string // host -> its active session's id |
| // ended is each ended id and when it may be pruned: its PickupBy. |
| ended map[string]time.Time |
| // ending is every ended id whose end step's writes are in flight. |
| @@ -145,14 +145,14 @@ type boxConn struct { |
| func newInteractiveHub() *interactiveHub { |
| return &interactiveHub{ |
| - byID: map[string]*hubSession{}, |
| - byHost: map[string]string{}, |
| - ended: map[string]time.Time{}, |
| - ending: map[string]bool{}, |
| - endPending: map[string]interactive.End{}, |
| - pendingSess: map[string]*hubSession{}, |
| - grantOnly: map[string]bool{}, |
| - rowOnly: map[string]bool{}, |
| + byID: map[string]*hubSession{}, |
| + sessionByHost: map[string]string{}, |
| + ended: map[string]time.Time{}, |
| + ending: map[string]bool{}, |
| + endPending: map[string]interactive.End{}, |
| + pendingSess: map[string]*hubSession{}, |
| + grantOnly: map[string]bool{}, |
| + rowOnly: map[string]bool{}, |
| } |
| } |
| @@ -216,7 +216,7 @@ func (h *interactiveHub) activate(id string) bool { |
| return false |
| } |
| sess.active = true |
| - h.byHost[sess.host] = id |
| + h.sessionByHost[sess.host] = id |
| return true |
| } |
| @@ -285,8 +285,8 @@ func (h *interactiveHub) end(id string) { |
| h.pruneLocked(now) |
| until := now |
| if sess, ok := h.byID[id]; ok { |
| - if h.byHost[sess.host] == id { |
| - delete(h.byHost, sess.host) |
| + if h.sessionByHost[sess.host] == id { |
| + delete(h.sessionByHost, sess.host) |
| } |
| delete(h.byID, id) |
| if sess.over != nil { |