Skip to content

Add storage abstraction for open-core architecture - #12

Merged
OkiriGabriel merged 1 commit into
mainfrom
feat/storage-protocol
Jul 21, 2026
Merged

OkiriGabriel merged 1 commit into
mainfrom
feat/storage-protocol

Conversation

@OkiriGabriel

@OkiriGabriel OkiriGabriel commented Jul 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Introduces StorageProtocol and a default JsonStorage backend under storage/
  • Refactors complaint, funnel, social, email, and publisher tools to use get_storage() instead of inline JSON file I/O
  • Adds config.EMAILS_FILE for consistent email persistence paths
  • Updates test fixtures to reset storage per test

Closes #2.

Why

Prepares the open-core split: OSS keeps JSON + local files; a future hosted product can swap in Postgres by implementing StorageProtocol without forking agent logic.

Test plan

  • pytest — 36 tests pass locally
  • CI passes on this PR

Made with Cursor

Introduce StorageProtocol and JSON backend so tools no longer read/write files directly, enabling a future hosted Postgres adapter without changing agent logic.

Co-authored-by: Cursor <[email protected]>
@OkiriGabriel
OkiriGabriel merged commit 98f2c03 into main Jul 21, 2026
4 checks passed
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.

Extract StorageProtocol and JSON storage implementation

1 participant