Architecture

Runtime owns the loop. SDKs declare the work.

A model suggestion is never treated as a business result. After POST /api/v1/runs the SDK long-polls the worker protocol; Rust validates transitions, schemas, permissions, budgets, and verification.

PieceChoiceRole
RuntimeRust, Tokio, Axum, SQLxTransitions, retries, persistence
Python SDKgoshikq_aiAgents, tools, goals, StateProvider
TypeScript SDK@goshikq/sdkSame worker protocol as Python
StudioNext.jsObserve persisted runs
StorePostgreSQL 16Runs, events, evidence

Architecture docs ยท ADR-001