feat: storage abstraction retrofit — adapters for queue, storage, memory (phases 1-4) #365

Merged
jason.woltje merged 19 commits from feat/storage-abstraction into main 2026-04-03 04:40:58 +00:00
Owner

Multi-phase refactor enabling Mosaic to work with multiple backends:

Phase 1: Define adapter interfaces for queue, storage, memory
Phase 2: Wrap existing Redis/Postgres/pgvector as adapters
Phase 3: Implement local SQLite + keyword search adapter
Phase 4: Add MosaicConfig schema + CLI tier selection wizard

All packages typecheck and lint green. Ready for merge.

Multi-phase refactor enabling Mosaic to work with multiple backends: **Phase 1:** Define adapter interfaces for queue, storage, memory **Phase 2:** Wrap existing Redis/Postgres/pgvector as adapters **Phase 3:** Implement local SQLite + keyword search adapter **Phase 4:** Add MosaicConfig schema + CLI tier selection wizard All packages typecheck and lint green. Ready for merge.
jason.woltje added 19 commits 2026-04-03 04:11:56 +00:00
Mission: Decouple gateway from hardcoded Postgres/Valkey backends.
20 tasks across 5 phases. Estimated total: ~214K tokens.

Phase 1: Interface extraction (4 tasks)
Phase 2: Wrap existing backends as adapters (5 tasks)
Phase 3: Local tier implementation (4 tasks)
Phase 4: Config + CLI commands (4 tasks)
Phase 5: Migration + docs (3 tasks)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore(orchestrator): Phase 2 complete — existing backends wrapped as adapters
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
46a31d4e71
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
42 new tests: 4 queue, 18 storage, 20 memory
347 total tests passing
feat(config): add MosaicConfig schema + loader with tier auto-detection
Some checks failed
ci/woodpecker/push/ci Pipeline failed
04a80fb9ba
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore(orchestrator): Phase 4 complete — config schema + CLI lifecycle commands
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
fd83bd4f2d
381 tests passing (347 gateway + 34 CLI), 40/40 tasks clean
jason.woltje merged commit 0b0fe10b37 into main 2026-04-03 04:40:58 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#365