{"record":{"id":"63f1e632d6d0cb86","repo":"Fission-AI/OpenSpec","slug":"invalid-store-pointer-63f1e6","errorCode":"invalid_store_pointer","errorMessage":"The store declaration in ${pointer.filePath} is invalid (${storePointerProblem(pointer.malformed)}).","messagePattern":"The store declaration in (.+?) is invalid \\((.+?)\\)\\.","errorType":"error_code","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/core/store/operations.ts","lineNumber":232,"sourceCode":"}\n\nfunction alreadyRegisteredDiagnostic(id: string): StoreDiagnostic {\n  return makeStoreDiagnostic(\n    'info',\n    'store_already_registered',\n    `Store '${id}' is already registered at this path.`,\n    {\n      target: 'store.registry',\n    }\n  );\n}\n\nfunction assertNotConfigOnlyPointerRoot(storeRoot: string): void {\n  const { hasPlanningShape, pointer } = classifyOpenSpecDir(storeRoot);\n  if (hasPlanningShape || pointer.filePath === null) return;\n\n  if (pointer.malformed) {\n    throw new StoreError(\n      `The store declaration in ${pointer.filePath} is invalid (${storePointerProblem(pointer.malformed)}).`,\n      'invalid_store_pointer',\n      {\n        target: 'store.pointer',\n        fix: `Fix or remove the store: line in ${pointer.filePath} before registering this path as a store.`,\n      }\n    );\n  }\n\n  if (pointer.value !== undefined) {\n    throw new StoreError(\n      `This repo's planning is externalized to store '${pointer.value}' (${pointer.filePath}); it is not itself a store root.`,\n      'store_root_pointer_declared',\n      {\n        target: 'store.pointer',\n        fix: 'Register the checkout for the declared store, or remove the store: line first to convert this repo into a local store root.',\n      }\n    );","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/store/operations.ts#L214-L250","documentation":"Error \"The store declaration in ${pointer.filePath} is invalid (${storePointerProblem(pointer.malformed)}).\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/store/operations.ts:232 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"}