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

Error "Registered store '${id}' is missing metadata at ${getStoreMetadataPath(storeRoot)}" thrown in Fission-AI/OpenSpec.

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)

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.