Fission-AI/OpenSpec · error · StoreError
store_metadata_missing
store_metadata_missing
Error message
Registered store '${id}' is missing metadata at ${getStoreMetadataPath(storeRoot)} What it means
Thrown by ensureStoreMetadata when a registered store's root lacks the committed .openspec-store/store.yaml metadata file and writeIfMissing is disabled. The registry entry points at a folder whose identity can no longer be verified.
Solutions
- Create the metadata file at the path shown in the message
- Re-run 'openspec store register <path>' to rebuild the store's metadata
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/store/registry.ts:231 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/1518e65f44ebb3d8.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/store/registry.ts:231
next: {
version: 1,
stores: Object.fromEntries(
Object.entries(stores).sort(([leftId], [rightId]) => leftId.localeCompare(rightId))
),
},
};
}
async function ensureStoreMetadata(
storeRoot: string,
id: string,
options: { writeIfMissing: boolean }
): Promise<boolean> {
const metadata = await readOptionalStoreMetadataState(storeRoot);
if (!metadata) {
if (!options.writeIfMissing) {
throw new StoreError(
`Registered store '${id}' is missing metadata at ${getStoreMetadataPath(storeRoot)}`,
'store_metadata_missing',
{
target: 'store.metadata',
fix: `Create ${getStoreMetadataPath(storeRoot)} or rerun "openspec store register <path>".`,
}
);
}
await writeStoreMetadataState(storeRoot, {
version: 1,
id,
});
return true;
}
if (metadata.id !== id) {
throw new StoreError(View on GitHub (pinned to 6926ccb18a)