repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

docs(ultra): design infinite step runtime

57eb6c8cfd838fb5c019e5544914406e17feb488

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

+45 / −0 text lines

Diff layout

docs/super/specs/2026-07-13-ultra-infinite-step-runtime-design.md

Added
new file mode 100644

+45 / −0 text lines

1# Ultra Infinite Step Runtime Design
2
3## Goal
4
5Ultra never drops a subagent because elapsed time exceeded an internal deadline.
6Manual cancellation and workflow stopping remain available.
7
8## Scope
9
10Remove timeout support completely rather than retaining an infinite numeric sentinel.
11Delete `ultra.defaultTimeoutMs` from settings, `timeoutMs` from workflow steps, timeout branches from the runner, timeout-specific progress status, tests, and documentation.
12Existing workflow files containing `timeoutMs` become invalid and must remove it.
14Provider, transport, and tool-specific timeouts outside Ultra remain unchanged.
16## Runtime
18Tool-less model calls receive an abort signal controlled only by the workflow's external cancellation signal.
19Tool-using sessions call `session.abort()` only when that external signal aborts.
20Normal completion remains unchanged.
22## Scheduling And Visibility
24Workflow phases remain sequential because later prompts, conditions, and fan-out inputs may interpolate earlier phase results.
25The current phase's item list is resolved before its pool starts.
26A concurrency slot means permission for one current-phase item to execute.
27At most `phase.concurrency` or `ultra.concurrency` items execute simultaneously.
28Finishing one item frees permission for the next queued item.
30The progress board remains event-driven.
31A row appears only after a launched subagent emits its first `start` event.
32Queued current-phase items emit no event and therefore remain invisible.
33Future-phase fan-out items may not be knowable until earlier results resolve.
34No queued-row UI is added in this change.
36## Errors
38Subagents may still drop because of cancellation, provider failure, missing auth, invalid structured output, or exhausted schema retries.
39Those reasons remain visible as dropped outcomes.
41## Tests
43Runner tests prove stalled work is not ended by elapsed time and external cancellation still aborts both execution paths.
44Schema and settings tests prove timeout keys are rejected or ignored according to their trust boundary.
45Repository checks prove no Ultra timeout configuration, workflow field, runtime branch, documentation, or timeout progress token remains.