mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-10-22 06:39:53 +08:00
* feat(stores): add global defaultStore fallback for root resolution Adds a machine-level `defaultStore` to the global config. When no --store flag, local planning root, or project-level `store:` pointer resolves, root resolution now consults `defaultStore` before erroring — so users who plan many code repos into one store can set it once instead of editing every repo's openspec/config.yaml. Purely additive: existing precedence (--store > local root > project pointer) is unchanged; the fallback only replaces the failure path. A stale or unregistered defaultStore degrades to the existing error, reshaped to point at clearing the global default. Closes #1359 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(stores): report distinct global_default root provenance The machine-level defaultStore fallback resolved with source 'declared', so status, context, and doctor JSON could not tell a global default from a repo's store: pointer (review feedback). Add 'global_default' to OpenSpecRootSource, resolve the fallback with it, and cover the status, context, and doctor JSON surfaces plus the agent contract and store docs. Add the missing changeset. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>