{"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":"Sentinel wrapper in validateStoreId: the id failed folderStyleNameProblem, a shared folder-naming validator. The dynamic message is whatever that helper returned (length, character-set, or format complaint); the store id string itself is the input at fault.","triggerScenarios":"Thrown at src/core/store/foundation.ts:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a folder-safe store id: lowercase letters, digits, hyphens","Avoid spaces, slashes, and special characters in the id","Check the length limits enforced by folderStyleNameProblem and shorten if needed"],"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"}