Skip to content

feat(storage): add optional scoped PostgreSQL persistence - #487

Open
qoega wants to merge 2 commits into
mainfrom
codex/optional-postgresql-storage
Open

qoega wants to merge 2 commits into
mainfrom
codex/optional-postgresql-storage

Conversation

@qoega

@qoega qoega commented Oct 5, 2026

Copy link
Copy Markdown
Member

Add optional PostgreSQL storage with use_postgresql: true and postgresql_dsn; SQLite stays the default.

The adapter covers operational state and memU memory, scopes rows by tenant/workflow, and restores task bodies, uploads and memory sources into local caches. An owner provisions the schema; the runtime uses DML only. Startup fails on storage errors instead of falling back to SQLite.

New PostgreSQL scopes are supported; automatic SQLite import and native provider-session file migration are not included. Run one daemon per scope. PostgreSQL backups replace local backup bundles.

Validation: Backend tests and PostgreSQL storage CI jobs. Real PostgreSQL tests cover isolation, concurrent writes/account guards, rollback, restart recovery, source persistence and memU extraction/retrieval.

@qoega qoega self-assigned this Oct 5, 2026
@qoega
qoega marked this pull request as ready for review October 5, 2026 23:58
@qoega
qoega requested a review from pufit October 6, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant