Repository navigation
refactor(transcripts): store meeting captures in SQLite - #112910
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 23, 2026 04:58
steipete
force-pushed
the
codex/transcripts-sqlite
branch
from
July 23, 2026 09:50
c019ee5 to
c96a38d
Compare
steipete
force-pushed
the
codex/transcripts-sqlite
branch
from
July 23, 2026 10:31
c96a38d to
5451e87
Compare
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 24, 2026
) * refactor(transcripts): move meeting transcripts to sqlite * perf(transcripts): batch legacy utterance staging * fix(transcripts): report recovery moves on migration failure * fix(transcripts): refresh archive membership after recovery * fix(transcripts): omit failed summary export paths * fix(transcripts): type restore metadata tuple * fix(transcripts): align migration contract gates * fix(transcripts): verify case-aliased export ownership * fix(transcripts): allowlist doctor verifier sqlite query * fix(transcripts): preflight partial artifact recovery * fix(transcripts): stabilize exports and legacy path checks * fix(transcripts): resolve case-renamed doctor ownership * fix(transcripts): harden canonical export recovery * fix(transcripts): preserve pending import boundaries * refactor(transcripts): split migration insert transaction * perf(transcripts): query selected summary existence
This was referenced Aug 28, 2026
This was referenced Oct 20, 2026
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.
Related: #98986
What Problem This Solves
Resolves a problem where meeting-capture transcripts were stored as OpenClaw-owned JSON/JSONL runtime files, contrary to the SQLite-only state policy and without a canonical transactional store. Shipped transcript trees also needed a safe upgrade path that preserves ordering, summaries, and recoverability.
Why This Change Was Made
Meeting transcript sessions, utterances, summaries, and export ownership now live in additive tables in the shared state database. Runtime access is SQLite-only;
openclaw doctor --fixexclusively owns the one-shot shipped-file migration, with whole-tree preflight, bounded staging, synchronous commit sections, receipts, post-commit/archive rehashing, resumable archive recovery, and no dual-write/read-through fallback.MeetingSessionTranscriptStoreremains unchanged and out of scope.The schema is additive and lazily ensured.
OPENCLAW_STATE_SCHEMA_VERSIONremains 5; this change does not advance or alter the existing versioned schema contract.User Impact
Behavior change / release-note context:
openclaw transcripts pathand thesummary.mdpath returned by transcript operations are now explicit materialization/export surfaces. They preserve the shipped command, flag, and path shape, but files at those paths are exports rather than canonical runtime state. Canonical meeting-capture state is SQLite-only, as required by #98986.Existing shipped transcript directories are imported by
openclaw doctor --fix, verified against staged and committed rows, receipted, re-hashed after commit and at the archive boundary, then moved to a timestamped archive. Modified exports and incomplete legacy artifacts are preserved in explicit recovery directories. Runtime never reads legacy files or falls back to them.Evidence
5451e87630511da7dcdcf96abcc8ae134836291d: full CI matrix passed with no failed jobs: https://github.com/openclaw/openclaw/actions/runs/29999595981node scripts/run-vitest.mjs src/transcripts/store.test.ts src/agents/tools/transcripts-tool.test.ts src/cli/program/register.transcripts.test.ts src/infra/state-migrations.meeting-transcripts.test.ts src/meeting-bot/session-transcript-store.test.ts— 75 tests passed on Linux Testbox, including 27 doctor migration tests and the untouched meeting-session store tests: https://github.com/openclaw/openclaw/actions/runs/30000272247OPENCLAW_UPGRADE_SURVIVOR_SCENARIO=meeting-transcripts-sqlite [email protected] pnpm test:docker:published-upgrade-survivor— passed packaged update, doctor import/receipts/archive, DB-only restart, exact utterance ordering, CLI export materialization, and Gateway probes: https://github.com/openclaw/openclaw/actions/runs/30000375153node scripts/check-changed.mjs -- <33 touched paths>withOPENCLAW_TESTBOX=1— passed format, core/core-test/root-test typecheck, core+scripts lint, native schema guard (v5), database-first store guard, import-cycle and repository guards: https://github.com/openclaw/openclaw/actions/runs/30000806040node scripts/generate-kysely-types.mjs --verify— passed.git diff --check— passed.$HOME/.claude/skills/autoreview/scripts/autoreview --mode branch --base origin/main— clean; no accepted/actionable findings.