{"record":{"id":"f509676bdcfffb93","repo":"Fission-AI/OpenSpec","slug":"unknown-store","errorCode":"unknown_store","errorMessage":"Unknown store '${id}'. Registered stores: ${entries.map((candidate) => candidate.id).join(', ')}.","messagePattern":"Unknown store '(.+?)'\\. Registered stores: (.+?)\\.","errorType":"error_code","errorClass":"RootSelectionError","httpStatus":null,"severity":"error","filePath":"src/core/root-selection.ts","lineNumber":177,"sourceCode":"  } catch (error) {\n    fromStoreError(error);\n  }\n  const entries = registry ? listStoreRegistryEntries(registry) : [];\n  const entry = entries.find((candidate) => candidate.id === id);\n\n  if (!entry) {\n    if (entries.length === 0) {\n      throw new RootSelectionError(\n        `Unknown store '${id}'. No stores are registered.`,\n        'no_registered_stores',\n        {\n          target: 'store.id',\n          fix: `Run openspec store setup ${id} or openspec store register <path> first.`,\n        }\n      );\n    }\n\n    throw new RootSelectionError(\n      `Unknown store '${id}'. Registered stores: ${entries\n        .map((candidate) => candidate.id)\n        .join(', ')}.`,\n      'unknown_store',\n      {\n        target: 'store.id',\n        fix: 'Pass a registered store id, or run openspec store list.',\n      }\n    );\n  }\n\n  const storeRoot = getStoreRootForBackend(entry.backend);\n  const inspection = await inspectRegisteredStore(id, storeRoot);\n\n  switch (inspection.kind) {\n    case 'metadata_error':\n      return fromStoreError(inspection.error);\n    case 'metadata_missing':","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/root-selection.ts#L159-L195","documentation":"A RootSelectionError with code 'unknown_store', thrown in resolveStoreRoot when the requested store id does not match any entry in the store registry, but other stores ARE registered. The message enumerates the ids that are actually available, so the fault is a mistyped or unregistered id.","triggerScenarios":"Thrown at src/core/root-selection.ts:177 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the listed registered store ids and pass the correct one via --store","Register the intended store with 'openspec store register <path> --id <id>'","Run 'openspec store list' to inspect the registry state"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","contentChangedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}