Skip to content

storage: migrate core execution state to SQLite - #1682

Merged
likun666661 merged 1 commit into
apache:mainfrom
likun666661:agent/core-execution-sqlite
Jul 31, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
likun666661:agent/core-execution-sqlite

Conversation

@likun666661

Copy link
Copy Markdown
Member

Summary

Implements Stage 3 of #1649 after #1677.

  • make runtime.sqlite canonical for AgentRun headers/events/projections, root-turn admissions/proofs, interactions, message receipts/Host epochs, and ShellRun metadata
  • import legacy JSON/JSONL state once through per-store cutover journal entries, with logical fingerprints, atomic copy+validation, crash failpoints, restart resume, and fail-closed source drift detection
  • wire CLI, Desktop/Runtime Host, and Headless execution facades to the shared SQLite repositories and close their database leases with the existing persistence lifecycle
  • preserve recovery/evidence semantics, including ENOENT behavior and event_corrupt projection for damaged AgentRun evidence
  • keep transcript JSONL and payload/artifact files unchanged; task ledger, plan, deep research, pricing, and artifact metadata remain Stage 4

Planning: #1649 (comment)

Verification

  • npm --workspace @maka/storage run test — 836 passed, 0 failed, 1 skipped
  • npm --workspace @maka/runtime-host run test — passed
  • npm --workspace maka-agent run test — passed
  • npm --workspace @maka/headless run test:dist — passed
  • storage, Runtime Host, Headless, and CLI typechecks passed
  • Biome and git diff --check passed

@likun666661
likun666661 marked this pull request as ready for review July 31, 2026 07:13
@likun666661
likun666661 merged commit 4153915 into apache:main Jul 31, 2026
3 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.

1 participant