Appearance
Progress and Cancellation
Long-running tools need ordered progress that can survive UI reconnects and runtime replay.
A progress record SHOULD include sequence, status, message, percent, current step, total steps, elapsed time, byte or line counters, partial result refs, artifact refs, and timestamp.
Progress classes
Initial status values:
queuedstartedrunningwaiting_for_permissionwaiting_for_inputbackgroundedpartial_resultcompletedfailedcanceled
Cancellation facts
Cancellation has separate facts:
cancel_requested- a caller asked to cancel.cancel_acknowledged- the executor acknowledged the request.abort_reason- user interruption, sibling error, timeout, fallback, or runtime shutdown.canceledorcancel_failed- the execution reached a terminal outcome.
Do not imply cancellation support from a button in UI. The execution profile must declare it.