# Architecture decisions The `docs/adr` directory records early product and architecture decisions. ## Key ADRs | File | Decision | | --- | --- | | `docs/adr/0001-use-sqlite-as-primary-local-store.md` | SQLite is the local store. | | `docs/adr/0002-store-attachments-as-managed-files.md` | Attachments are managed files, not loose references. | | `docs/adr/0003-make-ai-generation-explicit.md` | AI generation is user-triggered. | | `docs/adr/0004-configure-ai-through-environment-variables-first.md` | Early AI configuration strategy. | | `docs/adr/0009-rebuild-with-rust-tauri.md` | Rebuild direction for the current Rust/Tauri app. | ## Current state The current code follows these decisions through `crates/qa-scribe-core/src/storage/mod.rs`, `crates/qa-scribe-core/src/attachments/mod.rs`, `crates/qa-scribe-core/src/generation/workflow.rs`, and `src-tauri/src/main.rs`. See [Lore](lore.md) for the timeline.