feat(storage): complete SQLite session metadata migration - #1373
Merged
likun666661 merged 1 commit intoJul 23, 2026
Merged
Conversation
10 tasks
Member
Author
|
DeepSeek live E2E evidence (2026-07-23) Ran one real
All live artifacts were written under a temporary |
likun666661
force-pushed
the
agent/sqlite-session-metadata-compatibility
branch
from
July 23, 2026 06:45
76f4eec to
d013bd2
Compare
likun666661
force-pushed
the
agent/sqlite-session-metadata-compatibility
branch
from
July 23, 2026 06:45
d013bd2 to
656cea3
Compare
likun666661
marked this pull request as ready for review
July 23, 2026 06:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 3 of #1370.
Depends on #1372 (and transitively #1371). This is the final stacked draft; review and merge the stack in order.
What changes
session.jsonlfiles with a versionedsession_transcriptmarker containing only the session id.sessions.sqlite, with legacy fallback only when the database does not exist.exportLegacySessionTree()for an atomic, non-destructive downgrade/export tree with canonical headers and untouched transcript bodies.session-metadata.jsonexport manifest.backupSessionMetadataDatabase()and the store backup API, with overwrite/source-path guards.@maka/storage.Compatibility and safety
Validation
npm test --workspace @maka/storage: 439 passed, 1 skippednpm run build:test: passed across all workspaces and desktop bundlesnpx biome checkon all 11 changed files: passedgit diff --check: passednpm run test:dist: scripts/core/storage/mcp passed;@maka/runtimeretains the same 2 unrelated macOS sandbox/toolchain failures (hard-coded/usr/localexecutable-root expectation and Homebrewrgblocked from loading PCRE2). Runtime result: 2377 passed, 7 skipped, 2 failed.Completes #1370 after the three-PR stack lands.