Skip to content

storage: route Desktop execution stores through SQLite - #1741

Merged
likun666661 merged 1 commit into
apache:mainfrom
likun666661:agent/migrate-desktop-execution-stores
Aug 1, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
likun666661:agent/migrate-desktop-execution-stores

Conversation

@likun666661

Copy link
Copy Markdown
Member

Part of #1649.

Summary

  • open Desktop AgentRun and ShellRun stores through the canonical SQLite implementations and await legacy cutover before use
  • give Desktop shutdown one idempotent owner for both SQLite store leases
  • move the DeepSeek live-cost harness off the retired AgentRun and RuntimeEvent JSONL writers
  • make the real-model CU launcher read AgentRun evidence from SQLite
  • fail closed when completed AgentRun or ShellRun cutover evidence changes

Migration invariants

  • legacy AgentRun and ShellRun state is imported before Desktop services can observe the stores
  • post-cutover writes do not modify or create legacy JSON/JSONL files
  • a changed legacy source after completed cutover is rejected on the next open
  • existing runtime-event legacy fallback remains read-only compatibility work for the next cleanup slice

Verification

  • npm --workspace @maka/storage run test:dist
  • npm --workspace @maka/desktop run test:dist (2013 tests)
  • npm --workspace @maka/storage run typecheck
  • npm --workspace @maka/desktop run typecheck
  • node --test scripts/cu-real-model-launcher.test.mjs
  • node --check scripts/deepseek-live-cost-baseline.mjs
  • node --check scripts/cu-real-model-launcher.mjs

@likun666661
likun666661 marked this pull request as ready for review August 1, 2026 03:28
@likun666661
likun666661 merged commit 78b56ca into apache:main Aug 1, 2026
5 of 6 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