Skip to content

storage: remove legacy artifact metadata writer - #1710

Merged
likun666661 merged 1 commit into
apache:mainfrom
likun666661:agent/remove-legacy-artifact-writer
Jul 31, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
likun666661:agent/remove-legacy-artifact-writer

Conversation

@likun666661

@likun666661 likun666661 commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

Summary

  • remove the production createArtifactStore and legacy Artifact write-authority constructors
  • require every Artifact store instance to use the SQLite metadata repository
  • delete the metadata.jsonl publication/reload path while preserving payload-file recovery against SQLite commits
  • migrate Desktop tests, storage tests, and the DeepSeek baseline script to the SQLite factory
  • keep metadata.jsonl only as fingerprinted, read-only cutover evidence

Why

The bundle, backup, and Headless trajectory slices now consume SQLite as the canonical Artifact authority. Keeping a callable JSONL metadata writer would preserve a production dual-writer path and allow post-cutover legacy evidence to drift. This PR removes that writer surface while retaining the fail-closed importer needed for existing workspaces.

Verification

  • npm --workspace @maka/core run build
  • npm --workspace @maka/storage run build
  • full Storage suite: 896 tests, 895 passed, 1 skipped, 0 failed
  • affected Desktop Artifact suites: 19 passed, 0 failed
  • npm --workspace @maka/headless run build
  • npm --workspace maka-agent run build
  • Headless storage dependency boundary: 2 passed
  • npx biome check on the changed migration surfaces
  • git diff --check

A local full Desktop main compile is currently blocked by the base workspace's missing @astryxdesign/core/Selector dependency. That unrelated module-resolution error is the only Desktop compile error; all four affected Desktop suites pass.

Part of #1649

@likun666661
likun666661 force-pushed the agent/remove-legacy-artifact-writer branch from cbfd5ae to 2af5634 Compare July 31, 2026 15:20
@likun666661
likun666661 marked this pull request as ready for review July 31, 2026 15:34
@likun666661
likun666661 merged commit a044f30 into apache:main Jul 31, 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