docs(ultra): design infinite step runtime
57eb6c8cfd838fb5c019e5544914406e17feb488
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 72fc24ffaf53
bugabingas pi extensions
57eb6c8cfd838fb5c019e5544914406e17feb488
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+45 / −0 text lines
new file mode 100644+45 / −0 text lines
# Ultra Infinite Step Runtime Design## GoalUltra never drops a subagent because elapsed time exceeded an internal deadline.Manual cancellation and workflow stopping remain available.## ScopeRemove timeout support completely rather than retaining an infinite numeric sentinel.Delete `ultra.defaultTimeoutMs` from settings, `timeoutMs` from workflow steps, timeout branches from the runner, timeout-specific progress status, tests, and documentation.Existing workflow files containing `timeoutMs` become invalid and must remove it.Provider, transport, and tool-specific timeouts outside Ultra remain unchanged.## RuntimeTool-less model calls receive an abort signal controlled only by the workflow's external cancellation signal.Tool-using sessions call `session.abort()` only when that external signal aborts.Normal completion remains unchanged.## Scheduling And VisibilityWorkflow phases remain sequential because later prompts, conditions, and fan-out inputs may interpolate earlier phase results.The current phase's item list is resolved before its pool starts.A concurrency slot means permission for one current-phase item to execute.At most `phase.concurrency` or `ultra.concurrency` items execute simultaneously.Finishing one item frees permission for the next queued item.The progress board remains event-driven.A row appears only after a launched subagent emits its first `start` event.Queued current-phase items emit no event and therefore remain invisible.Future-phase fan-out items may not be knowable until earlier results resolve.No queued-row UI is added in this change.## ErrorsSubagents may still drop because of cancellation, provider failure, missing auth, invalid structured output, or exhausted schema retries.Those reasons remain visible as dropped outcomes.## TestsRunner tests prove stalled work is not ended by elapsed time and external cancellation still aborts both execution paths.Schema and settings tests prove timeout keys are rejected or ignored according to their trust boundary.Repository checks prove no Ultra timeout configuration, workflow field, runtime branch, documentation, or timeout progress token remains.