{"record":{"id":"5b3841adb3944f9c","repo":"Fission-AI/OpenSpec","slug":"invalid-store-pointer","errorCode":"invalid_store_pointer","errorMessage":"Invalid store declaration in ${pointer.filePath}: ${problem}.","messagePattern":"Invalid store declaration in (.+?): (.+?)\\.","errorType":"exception","errorClass":"RootSelectionError","httpStatus":null,"severity":"error","filePath":"src/core/root-selection.ts","lineNumber":317,"sourceCode":"\nasync function resolveNearestOrDeclaredRoot(\n  nearestRoot: string,\n  globalDataDir?: string\n): Promise<ResolvedOpenSpecRoot> {\n  const { hasPlanningShape, pointer } = classifyOpenSpecDir(nearestRoot);\n\n  if (hasPlanningShape) {\n    if (pointer.value !== undefined) {\n      console.error(\n        `Warning: ${pointer.filePath} declares store '${pointer.value}', but this directory is a real OpenSpec root; the declaration is ignored.`\n      );\n    }\n    return makeRoot(nearestRoot, 'nearest');\n  }\n\n  if (pointer.malformed) {\n    const problem = storePointerProblem(pointer.malformed);\n    throw new RootSelectionError(\n      `Invalid store declaration in ${pointer.filePath}: ${problem}.`,\n      'invalid_store_pointer',\n      {\n        target: 'store.pointer',\n        fix:\n          pointer.malformed === 'unparseable'\n            ? `Fix the YAML syntax in ${pointer.filePath}.`\n            : `Edit ${pointer.filePath} so the store key is a registered store id, or remove it.`,\n      }\n    );\n  }\n\n  if (pointer.value === undefined) {\n    return makeRoot(nearestRoot, 'nearest');\n  }\n\n  try {\n    return await resolveStoreRoot(pointer.value, globalDataDir, 'declared');","sourceCodeStart":299,"sourceCodeEnd":335,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/root-selection.ts#L299-L335","documentation":"Error \"Invalid store declaration in ${pointer.filePath}: ${problem}.\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/root-selection.ts:317 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}