* fix(builder): a sealed session that has been silent for half an hour no longer holds a runner update
The drain restarts the box runner only when no agent is working. A sealed
session has no status file the drain can read: its agent lives inside
gVisor and the unit's cgroup holds only the `podman run` that relays its
terminal, so it counted as working for as long as it was open, and
sessions stay open for days.
Measured on the box, 2026-11-12 07:56 UTC (Sealed builds run 43178274733,
mode=activity): three open sealed sessions, one of them eighteen hours
old, relayed 0, 40 and 96 bytes in a minute while the drain logged
"3 agent(s) working — deferring restart" on every look. The runner stayed
two releases behind for hours, so the runner fixes merged that morning
were not running, and the commands route held new work for the restart.
- agent_is_busy: a sealed session that has relayed under 512 bytes a look
for 30 minutes is not working. Shorter than that, or a quiet that
cannot be told, still is: unknown is not idle.
- quiet_for reads the relay's cumulative byte counters and keeps its note
under /run/loki-drain/<unit>, outside the drain's own process: every
deploy starts a new drain, and a clock that restarted with it would
never reach thirty minutes on a box that deploys several times an hour.
- The rule is the sealed session's alone. An unsealed agent that is not
Claude still always holds the restart: its output was not measured.
What it can cost: a sealed agent stopped at a permission prompt in the
middle of a task prints nothing, so after thirty minutes of that the
restart goes ahead; the session reopens and its open run is closed.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi
* fix(composer): the project composer falls back to the cloud runner when the project's own builder is off
The chat reroutes a project pinned to an offline computer to the cloud
runner and says so (inject-core). The project composer for an idle project
(/api/control/tab-inject) asked for the routing decision without that
fallback: a project registered from a laptop queued for the laptop while it
was shut, with the laptop's folder as the place to start, and the answer
named no builder. The row sat until the reaper closed it an hour later.
- tab-inject passes the project's offline fallback, starts a rerouted
dispatch in the folder the cloud runner clones into, and answers with the
builder that took it and the reroute sentence.
- execution-access test pins the three.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi
---------
Co-authored-by: Claude <noreply@anthropic.com>