{"record":{"id":"987f24d961e20b25","repo":"Fission-AI/OpenSpec","slug":"store-not-found","errorCode":"store_not_found","errorMessage":"Unknown store '${selectedId}'.","messagePattern":"Unknown store '(.+?)'\\.","errorType":"error_code","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/core/store/operations.ts","lineNumber":1200,"sourceCode":"\n  return {\n    id: entry.id,\n    root,\n    metadataPath,\n    openspecRoot,\n    metadata,\n    git,\n    diagnostics,\n  };\n}\n\nexport async function doctorStores(id?: string): Promise<StoreDoctorResult> {\n  const selectedId = id !== undefined ? validateStoreId(id) : undefined;\n  const registry = await readStoreRegistryState();\n\n  if (!registry) {\n    if (selectedId !== undefined) {\n      throw new StoreError(`Unknown store '${selectedId}'.`, 'store_not_found', {\n        target: 'store.id',\n        fix: 'Run openspec store list to see registered stores.',\n      });\n    }\n\n    return { stores: [], diagnostics: [] };\n  }\n\n  const entries = listStoreRegistryEntries(registry);\n  const selected = selectedId\n    ? entries.filter((entry) => entry.id === selectedId)\n    : entries;\n\n  if (selectedId && selected.length === 0) {\n    throw new StoreError(`Unknown store '${selectedId}'.`, 'store_not_found', {\n      target: 'store.id',\n      fix: 'Run openspec store list to see registered stores.',\n    });","sourceCodeStart":1182,"sourceCodeEnd":1218,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/store/operations.ts#L1182-L1218","documentation":"Thrown by doctorStores when 'openspec store doctor' is invoked with an explicit store id but no store registry exists at all (readStoreRegistryState returned null), so the requested id cannot be found. The input at fault is the supplied store id; without a registry there are simply no stores to diagnose.","triggerScenarios":"Thrown at src/core/store/operations.ts:1200 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run 'openspec store list' to confirm whether any stores are registered","Register the store with 'openspec store add <path>' before running doctor on it","Run 'openspec store doctor' without an id to diagnose all registered stores"],"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"}