Skip to content

Store computed diffs behind a Rust-owned storage contract - #20

Draft
sidkmenon wants to merge 2 commits into
codex/search-highlightsfrom
codex/diff-store
Draft

sidkmenon wants to merge 2 commits into
codex/search-highlightsfrom
codex/diff-store

Conversation

@sidkmenon

@sidkmenon sidkmenon commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Keep Store beside the search index and supply interchangeable memory, file and SQLite implementations. Backend and path are host configuration only; JavaScript sees no storage runtime. Cached data excludes query highlights and processed visibility.

Review order: #6 → #7 → #20 → #8 → #10 → #13.

Read commit by commit:

  1. c83eab7da — Define the Rust computed-diff storage contract.
  2. 5141f722d — Implement memory, file and SQLite stores behind host configuration.

Verification: the complete rewritten diffr tip has exactly the same Git tree as the previously tested tip (262 Rust tests passed, one ignored; 11 JS tests passed; TypeScript checks and the real pretty-output contract passed). No behavior changes in this rewrite. This replaces the old storage PR #11 after the stack reorder; no change was merged into main.

This history is organized by API boundaries. Intermediate contract/usage commits may intentionally precede their implementations and need not compile individually.

AI assistance: authored and reorganized with Codex.

Keep the Store trait beside the search index that consumes it. Cache query-independent computed trees under versioned content/settings keys; selected highlights and plugin instances are excluded.

AI assistance: reorganized with Codex.
Select backend and location exclusively in Rust configuration. Include shared backend contract, persistence, corruption and config tests. Index lifetime and dependency injection are connected in the search-engine layer above.

AI assistance: reorganized with Codex.

This branch has not been deployed

No deployments
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