openspec/initiatives/context-store-and-initiatives/work-items/03-add-context-store-foundation/plan.md
Registration/resolution facade implemented.
Start from ../direction.md.
The relevant model is:
Context stores sync truth.
Collections shape truth.
Initiatives coordinate work.
Workspaces open local views.
Changes implement repo-owned slices.
Add the smallest core foundation for context stores without making the store layer know about initiatives, collections, workspaces, or repo-local changes.
$XDG_DATA_HOME/openspec/context-stores/registry.yaml.<store-root>/.openspec-store/store.yaml.Machine-local registry:
version: 1
stores:
acme-context:
backend:
type: git
local_path: /Users/me/repos/acme-context
remote: [email protected]:acme/context.git
branch: main
Portable metadata in the store root:
version: 1
id: acme-context
src/core/context-store/foundation.ts.src/core/context-store/registry.ts.src/core/context-store/index.ts.src/core/index.ts.test/core/context-store/.registerContextStore(...).listRegisteredContextStores(...).resolveRegisteredContextStore(...).