Fission-AI/OpenSpec · error · StoreError
store_path_conflict
store_path_conflict
Error message
Store path is already registered as '${entry.id}'. What it means
Thrown by assertNoRegisteredStoreConflict when the path being registered is already in the registry under a different store id. Each checkout can carry only one registry identity; a second id for the same path would be ambiguous.
Solutions
- Use the existing id named in the message when addressing this store
- Unregister the existing id first if the path must change identity
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/store/registry.ts:112 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25).
Data as JSON: /api/errors/777034a17366adac.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/store/registry.ts:112
const entryPath = normalizePathForComparison(getStoreRootForBackend(entry.backend));
if (entry.id === id && entryPath === nextPath) {
continue;
}
if (entry.id === id) {
throw new StoreError(
`Store '${id}' is already registered at ${getStoreRootForBackend(entry.backend)}. One checkout per store id is supported on this machine.`,
'store_id_conflict',
{
target: 'store.id',
fix: `Use the existing registration, or run openspec store unregister ${id} first to switch this id to a different checkout.`,
}
);
}
if (entryPath === nextPath) {
throw new StoreError(
`Store path is already registered as '${entry.id}'.`,
'store_path_conflict',
{
target: 'store.root',
fix: `Use the existing '${entry.id}' registration or choose a different path.`,
}
);
}
}
}
function withRegisteredStore(
registry: StoreRegistryState | null,
id: string,
backend: StoreGitBackendConfig
): StoreRegistryState {
assertNoRegisteredStoreConflict(registry, id, backend);
View on GitHub (pinned to 6926ccb18a)