Repository navigation
The run inbox. A running run can now take new user messages: a follow-up typed while the
model works, or an event from outside (a background job finished, a trigger). The run picks them
up at the next step boundary and answers in the same run. Purely additive: a harness that never
calls the new endpoint sees no change in any body.
Added
POST /runs/{id}/messages(SPEC §4.11).ENGINE_TOKENonly;usermessages withtext
andeventparts, each with the harness's ownid. Accepted whole or not at all; a repeat with
the same body is a no-op202, the sameidwith another body is409 inbox_id_mismatch; a
finished run answers409 run_finished(withknownids), a cancelling one409 run_cancelling;
413 inbox_fulloverMAX_INBOX_MESSAGES(20) orMAX_INBOX_BYTES(256 KiB) per run.- Insertion at the step boundary. Queued messages enter the history at the start of the next
step withinjected: true, the harnessidandseq. After a plainend_turnwith messages
queued the run takes one more step when steps, time and budget allow; a limit's text-only final
step takes them before its call (SPEC §10.1 rule 9). pending_messagesin the result: accepted messages the run never appended (no step left,
cancel, timeout,awaiting_tool, failure). Every accepted message is in exactly one place.
timing.injectedcounts the appended ones. Both only when the run accepted inbox messages, and
never in the run-token projection.origin_request_idafter an inbox message is that message'sid(SPEC §6.1, §6.4), so a
write requested after a follow-up is a new operation, not a repeat of the original one.history_revisionin the inbox body: the result echoes the last one received.- SSE
message_injected { id, seq }andinjected: [{ id, seq, text_offset }]in the snapshot;
inbox_pendinginGET /runs/{id}while running; journal eventsinbox_accepted,
inbox_rejected,inbox_consumed,inbox_continue,inbox_pending; metric
theloop_inbox_messages_total{outcome}.
Changed
- A run that goes on after an answer checks every answer with the format gate;
output_checks
in the result is the last answer's, one entry per fence (SPEC §5.4, §7).