models_call; they are useful tools, not swarm participants.
Agent Turn
The runtime injects a dynamic system block per turn. It includes identity, optional persona text, compact memory, session context, and one capability sentence. The cached agent config is not mutated; per-request session data flows throughAsyncLocalStorage in harness/context.ts.
Workflow Run
Workflow execution lives underruntime/src/manowar/workflow. The orchestrator loads a workflow card, builds a coordination context, asks TaskPlanner for a structured plan, delegates each step to registered agents, reflects on outputs, and optionally synthesizes a final answer.
High-risk workflow steps require approval when the task text includes operations such as transfers, swaps, approvals, deletion, webhooks, or other write-like actions. The check is implemented in workflow/orchestrator.ts.
Runtime Stops
The agent loop has hard stop conditions:
Streaming runs also register abort controllers by run key. Stop routes can abort
run:{agentWallet}:{runId} or fall back to thread:{agentWallet}:{threadId}.