{"record":{"id":"a8d04b535c23622e","repo":"Fission-AI/OpenSpec","slug":"invalid-store-id","errorCode":"invalid_store_id","errorMessage":"${folderProblem}","messagePattern":"\\$\\{folderProblem\\}","errorType":"error_code","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/core/store/foundation.ts","lineNumber":99,"sourceCode":"export function getStoreRegistryPath(options: StorePathOptions = {}): string {\n  return joinStorePath(getStoresDir(options), STORE_REGISTRY_FILE_NAME);\n}\n\nexport function getStoreMetadataDir(storeRoot: string): string {\n  return joinStorePath(storeRoot, STORE_METADATA_DIR_NAME);\n}\n\nexport function getStoreMetadataPath(storeRoot: string): string {\n  return joinStorePath(\n    getStoreMetadataDir(storeRoot),\n    STORE_METADATA_FILE_NAME\n  );\n}\n\nexport function validateStoreId(id: string): string {\n  const folderProblem = folderStyleNameProblem(id, 'Store id');\n  if (folderProblem !== null) {\n    throw new StoreError(folderProblem, 'invalid_store_id', {\n      target: 'store.id',\n      fix: KEBAB_ID_FIX,\n    });\n  }\n\n  if (!isKebabId(id)) {\n    throw new StoreError(\n      `Store id ${KEBAB_ID_DESCRIPTION}`,\n      'invalid_store_id',\n      {\n        target: 'store.id',\n        fix: KEBAB_ID_FIX,\n      }\n    );\n  }\n\n  return id;\n}","sourceCodeStart":81,"sourceCodeEnd":117,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/store/foundation.ts#L81-L117","documentation":"Error \"${folderProblem}\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/store/foundation.ts:99 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"}