-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement production-grade database persistence backend #210
Copy link
Copy link
Open
Labels
prio:mediumShould do, but not blockingShould do, but not blockingscope:large3+ days of work3+ days of workspec:architectureDESIGN_SPEC Section 15 - Technical ArchitectureDESIGN_SPEC Section 15 - Technical Architecturetype:featureNew feature implementationNew feature implementationv0.8Minor version v0.8Minor version v0.8v0.8.5Patch release v0.8.5Patch release v0.8.5
Description
Summary
Only SQLite is implemented. The spec plans additional backends for production deployments.
Design Spec Reference
- §7.6 Operational Data Persistence — backend options
- §15.2 Technology Stack — Database row
Scope
- Implement at least one production-grade
PersistenceBackend(e.g. PostgreSQL — evaluate at implementation time) - All repository protocol implementations
- Migration strategy for the chosen database
- Connection pooling
Notes
- Specific database technology should be evaluated at implementation time — reference DESIGN_SPEC.md §7.6 for options
- Must implement the full
PersistenceBackendprotocol + all repository protocols
Research Context
PostgreSQL for Agentic Future (InfoWorld, 2026-03-14) — Confirms direction:
- EDB-sponsored article (no benchmarks, vendor marketing) but validates PostgreSQL as convergence point for agentic workloads
- Extensions to evaluate: pgvector (alternative to external Qdrant for custom stack), TimescaleDB (cost/performance time-series), pgraph (org memory graph queries)
- Our persistence layer already has PostgreSQL migration designed:
PersistenceBackendprotocol +create_backend()factory ready for aPostgresPersistenceBackendbranch MemoryStorageConfigalready declares{"sqlite", "postgresql"}as validhistory_storevalues- Trigger: scaling needs exceeding SQLite WAL mode, multi-process concurrency, or multi-tenant deployments
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
prio:mediumShould do, but not blockingShould do, but not blockingscope:large3+ days of work3+ days of workspec:architectureDESIGN_SPEC Section 15 - Technical ArchitectureDESIGN_SPEC Section 15 - Technical Architecturetype:featureNew feature implementationNew feature implementationv0.8Minor version v0.8Minor version v0.8v0.8.5Patch release v0.8.5Patch release v0.8.5