Skip to content

Global Store Consolidation — Overview

Mirrored from docs/design/global-store-consolidation/1_overview.md. Edit the source document in the repository, not this generated page.

High-cardinality, machine-only runtime stores now use the existing global SQLite database instead of JSON-per-record workspace files.

The v2 audit envelope, job-run lifecycle, and session-learning stores grow quickly and need indexed lookup by workspace, run, state, event type, and time. Keeping those stores as JSON files under every workspace creates inode pressure and slow scans without giving humans useful review material.

ConceptMeaning
Global DB~/.orbit/orbit.db, opened through orbit-store::Store.
Workspace discriminatorworkspace_id from <workspace>/.orbit/config.yaml.
One-shot importRelease N imports legacy JSON once and leaves the old dirs intact.
File-backed boundaryFriction reports and audit blobs stay on disk.
ConcernFileTask
SQLite schemacrates/orbit-store/src/sqlite/migration/mod.rsORB-00276
Store APIscrates/orbit-store/src/sqlite/*_store/mod.rsORB-00276
Runtime bootstrap importcrates/orbit-core/src/runtime/builder.rsORB-00276
Decisiondocs/design/global-store-consolidation/4_decisions.mdORB-00276
  • ORB-00276 — migrated v2 audit, job-run, and session-learning state to SQLite.

Resolve any task above with orbit task show <ID> or git log --grep=<ID>.