Seven findings of a review of the wake-turn work, each with a test that
failed before (tests/acp-outstanding.test.ts).
1. A session whose subagents work, or whose background command runs, with no
turn running was idle to the service: an update restarted it under them
and a terminal opening the session stopped them, so no report came. It is
occupied now (acp/agent.ts occupied, keeps; hub.busy): no restart, no
close of the link, and a terminal is refused in words that name what runs
— also while no link is up, when nothing judged it at all.
2. A scheduled run that used a team answered with the reply that ended the
main agent's first turn, and the real answer came in a turn report_write
was not offered in. The run's turn now waits for its subagents and takes
their reports in (engine awaitReports, EngineOptions.hold): one turn, the
answer and the report from its last reply.
3. Stop while a turn waited for a model slot lost the note that started it
(and a person's own message, and whatever waited to go in with it): the
message is in the conversation now, under the turn's id.
4. A steer a harness turn never took in, with no client listening, stayed in
memory: lost by a restart, and in queue mode handed back with a later
prompt. It is kept with the session (CARRIED_META) and taken in at the
next turn's first step in every mode, said with its id.
5. A wake refused for an interactive-only model left the main agent marked
working, holding its slot, and dropped the report: the session is idle
again and the note is kept for the next message.
6. Stop on a scheduled run stops its subagents, as does any other end of the
run's turn with subagents out. In a chat Stop stops the turn and no
subagent, as the terminal's Esc does: pinned by a test, not changed.
7. The task end that carries unsent is said before the inbox event that
empties the queue.
Notes left after a Stop are kept with the session too (engine.keepNote), so
a restart does not lose them. AcpAgent.holding, anyBusy and drop had no
caller left and are gone.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>