Skip to content

refactor(transcripts): store meeting captures in SQLite - #112910

Merged
steipete merged 16 commits into
mainfrom
codex/transcripts-sqlite
Jul 23, 2026
Merged

steipete merged 16 commits into
mainfrom
codex/transcripts-sqlite

Conversation

@steipete

@steipete steipete commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

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 --fix exclusively 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. MeetingSessionTranscriptStore remains unchanged and out of scope.

The schema is additive and lazily ensured. OPENCLAW_STATE_SCHEMA_VERSION remains 5; this change does not advance or alter the existing versioned schema contract.

User Impact

Behavior change / release-note context: openclaw transcripts path and the summary.md path 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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes scripts Repository scripts docker Docker and sandbox tooling agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Jul 23, 2026
@steipete
steipete marked this pull request as ready for review July 23, 2026 04:58
@steipete
steipete force-pushed the codex/transcripts-sqlite branch from c019ee5 to c96a38d Compare July 23, 2026 09:50
@steipete
steipete force-pushed the codex/transcripts-sqlite branch from c96a38d to 5451e87 Compare July 23, 2026 10:31
@steipete steipete self-assigned this Jul 23, 2026
@steipete
steipete merged commit a2be4ef into main Jul 23, 2026
131 checks passed
@steipete
steipete deleted the codex/transcripts-sqlite branch July 23, 2026 11:18
@steipete

Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes docker Docker and sandbox tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant