Architecture
Architecture and technical specs: how Voice Studio keeps state coherent
Built to fail safely: bounded screens, facades, project JSON as source of truth, rebuildable SQLite, non-destructive timelines.
Execution model
app.py → configure Streamlit → load preferences → init project store + migrations → build AppContext → resolve page renderer → dispatch registered screen (19 modules) Screen modules never import peers → portfolio / governance / batch / timeline / transcription facades
Technical specs
| Layer | Specification |
|---|---|
| Runtime | Python 3.10–3.12; Streamlit UI; 19 registry-driven screens |
| Release | v0.11.2; 278 tests across 50 modules; visual baseline 57 captures |
| Storage | Project JSON authoritative; SQLite rebuildable index; snapshot excludes external media |
| Worker | Resumable lease queue with heartbeat and stale recovery; Kokoro jobs only |
| Plugins | Local/memory backends with retries and circuit breakers |
| Governance | Ownership, risk, reviewer names, local attestation; audit JSONL |
| License | No license file currently included |
Why project JSON as the system of record
If the database corrupts, you can still reopen the project. SQLite is rebuilt from JSON; the JSON is what auditors and ZIPs carry.