{"record":{"id":"1dfa0a737ee348e3","repo":"Fission-AI/OpenSpec","slug":"no-registered-stores","errorCode":"no_registered_stores","errorMessage":"Unknown store '${id}'. No stores are registered.","messagePattern":"Unknown store '(.+?)'\\. No stores are registered\\.","errorType":"error_code","errorClass":"RootSelectionError","httpStatus":null,"severity":"error","filePath":"src/core/root-selection.ts","lineNumber":167,"sourceCode":"): Promise<ResolvedOpenSpecRoot> {\n  try {\n    validateStoreId(id);\n  } catch (error) {\n    fromStoreError(error);\n  }\n\n  let registry;\n  try {\n    registry = await readStoreRegistryState(globalDataDir ? { globalDataDir } : {});\n  } 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      }","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/root-selection.ts#L149-L185","documentation":"A RootSelectionError with code 'no_registered_stores', thrown in resolveStoreRoot when a store id was requested (via --store, a declaration, or the global default) but the store registry is empty — no stores exist at all. The store id itself may be fine; the registry is the problem.","triggerScenarios":"Thrown at src/core/root-selection.ts:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run 'openspec store setup <id>' to create and register a new store","Run 'openspec store register <path>' to register an existing directory as a store","Verify the global data directory being read is the one you configured stores in"],"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"}