openspec/initiatives/context-store-and-initiatives/work-items/06-add-minimal-context-store-ux/evidence.md
context-store should be the top-level command namespace for now. It is more
explicit for agents than store, and store can remain shorthand in scoped
flags such as initiative list --store <id>.--path, it should create or use ./<id>. This
keeps the real shared store visible and avoids hiding it under global data.--path ...openspec-store/store.yaml metadata should be checked in and should
not include local paths..openspec-store/store.yaml is the identity file itself, not a bundle beside
another checked-in metadata file. It should contain only version and id
for now.store.yaml by default.initiative list should list all registered stores by default; --store
should filter.--init-git, and --no-init-git setup should not
prompt.context-store register should be idempotent for the same id/path and fail
for the same id with a different path until a future explicit replacement
option exists.context-store list should stay a simple registry index and should not show
health warnings.context-store doctor owns health diagnostics. The first slice should check
registry/path/metadata and cheap Git repository presence, not dirty state,
branch, remote, sync, pull/push, or conflicts.initiative list should allow partial success in all-store mode: show
initiatives from readable stores and print one small warning pointing to
context-store doctor when other registered stores cannot be read.initiative list --store and explicit --store-path should fail
directly when the selected store cannot be read.context-store list
and doctor; no initiatives found because no stores are registered for
initiative list.src/core/completions/command-registry.ts with focused registry tests.src/commands/context-store.ts adds the context-store command namespace
with setup, register, list, and doctor subcommands.src/cli/index.ts registers the context-store command.src/commands/context-store.ts keeps strict CLI setup/register policy in the
command layer while reusing context-store foundation helpers.src/commands/initiative.ts now lets initiative list search all registered
stores by default, keeps --store as a filter, preserves --store-path, and
reports all-store partial success with warning diagnostics.src/core/completions/command-registry.ts registers static completion
metadata for the context-store command surface.test/commands/context-store.test.ts covers setup, register, list, doctor,
conflict handling, non-empty setup rejection, and interactive Git init.test/commands/initiative.test.ts covers all-store initiative listing,
compact human output, empty registered-store state, partial success, and all
unreadable stores.pnpm run buildpnpm exec vitest run test/commands/context-store.test.ts test/commands/initiative.test.tspnpm exec vitest run test/core/context-store/foundation.test.ts test/core/context-store/registry.test.ts test/core/collections/initiatives/operations.test.tspnpm run lint