Nine-Step Per-Turn Pipeline
- Entity ID:
ent-20260423-e005f1000007 - Type:
concept - Scope:
private - Status:
active
Description
The paper's enumeration of query.ts queryLoop()'s fixed per-turn sequence: (1) settings resolution, (2) mutable State initialization, (3) context assembly (getMessagesAfterCompactBoundary), (4) pre-model context shapers (5 shapers run sequentially), (5) model call via deps.callModel(), (6) tool-use dispatch, (7) permission gate, (8) tool execution + result collection, (9) stop-condition check. Distinct from the existing '10-step loop' and 'Seven-point continue map' framings in the wiki.
Key claims
- none yet
Relations
- Nine-Step Per-Turn Pipeline --[describes]--> Async Generator Query Architecture