openspec/initiatives/context-store-and-initiatives/work-items/03-add-context-store-foundation/evidence.md
Existing OpenSpec patterns point toward a small explicit foundation:
getGlobalDataDir().FileSystemUtils.writeFile() to create parent directories.src/core/context-store/registry.ts registers Git/local context stores,
lists local registry entries, and resolves registered stores with metadata id
validation.src/core/context-store/index.ts exports the facade.test/core/context-store/registry.test.ts covers registration, registry
merge/update, metadata mismatch rejection, listing, resolution, missing or
mismatched metadata, and initiative collection mounting from a resolved root.pnpm exec vitest run test/core/context-store/foundation.test.tspnpm exec vitest run test/core/context-store/registry.test.tspnpm run buildpnpm run lintgit diff --check