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.
Python and TypeScript SDKs talk to the Rust runtime. The runtime owns execution, checkpoints, the action journal, evidence, and outcome verification. Studio reads persisted data; it does not schedule work.
| Piece | Choice | Role |
|---|---|---|
| Runtime | Rust, Tokio, Axum, SQLx | Transitions, retries, persistence |
| Python SDK | goshikq_ai | Agents, tools, goals, StateProvider |
| TypeScript SDK | @goshikq/sdk | Same worker protocol as Python |
| Studio | Next.js | Observe persisted runs |
| Store | PostgreSQL 16 | Runs, events, evidence |