A foreground follow-up that continues a child whose job is already
backgrounded joined it through jobs.block, which returns a running handle
immediately. Claim the backgrounded generation instead: silence the
subagent.notify preference before the prompt is admitted, wait on the
job's done with jobs.wait, and return the final answer inline. A prompt
that never reaches the child releases the claim so the original launch
still reports.
A joined backgrounded job holds no block registration, so the user's
move-to-background cannot detach this explicit foreground wait.
Foreground becomes background plus a wait: an explicit background=false
starts the same job and blocks on it, returning the child result inline.
The tool description and docs now lead with background.
Each busy period records where it began, on the clock that stamps event times, plus the child's newest answer at that moment. Settlement only reports an answer that completed during the period, excluding the starting answer by ID for millisecond ties and falling back to the timestamp alone when a committed revert deleted that row.
Restart recovery already clears a silent child's durable marker without
delivering a report. Pin that invariant: a suspended silent child resumed
after a restart never reports or wakes its parent, and replaying a silent
child's finished durable row admits nothing while still clearing the marker.
A child Session with a parent now sends one `<subagent ...>` synthetic to its
parent when its coordinator busy period settles, without the subagent tool
observing it.
- `SubagentReport` snapshots job state (blocked, get, recovery, remembered
period) inside `settled` before the terminal publish, then maps the outcome
to completed/error/cancelled and admits through a local inbox adapter that
mirrors `Session.synthetic` (steer delivery, wake only a live, non-reverting
parent). `execution.ts` gains `SessionInbox.node`; `Session.Service` stays out
of the execution layer.
- Reports are keyed to the job's notification ID when a backgrounded live job
owns the period, so the SubagentJob observer and restart recovery reconcile
the same admission instead of adding a second message. A jobless period gets
a fresh ID; a period whose job finished or was cancelled mid-flight stays
silent because its observer already reported it.
- Suppressed for shutdown interruption (restart owns it), a missing child or
parent, a silent child, a foreground block, a running job without a
notification ID, and a period that finished without an assistant message.
- `SubagentCompletion.deliver` now takes a structural synthetic adapter, so the
settle report does not need `Session.Service`. The report never calls
`completeBackground`: the durable marker must outlive admission.
- `Job.Interface` gains a `recovery` reader; `Job.Info` deliberately keeps it
out so snapshots cannot leak it.
The replay test in `tool-subagent.test.ts` now asserts the marker exists at
admission instead of being `completed`, because settlement admits while the job
is still running; it replays a completed row to model the crash it covers.