flowchart LR
api("api.py
Routes and request models")
auth("auth.py
JWT and permission checks")
orch("orchestrator.py
Durable runs and locks")
runtime("runtime.py + stage_loader.py
Context and stage dispatch")
storage("storage.py + models.py
SQLAlchemy and PgVector")
llm("llm.py
Provider client and retries")
api -->|"authorize"| auth
api -->|"queue"| orch
orch -->|"dispatch"| runtime
runtime -->|"persist"| storage
runtime -->|"complete"| llm
classDef application fill:#dae8fc,stroke:#6c8ebf,color:#000;
classDef dependency fill:#d5e8d4,stroke:#82b366,color:#000;
class api,auth,orch,runtime application;
class storage,llm dependency;