{"record":{"id":"e1463065cad901f2","repo":"Fission-AI/OpenSpec","slug":"store-local-path-does-not-exist-input-localpath","errorCode":null,"errorMessage":"Store local path does not exist: ${input.localPath}","messagePattern":"Store local path does not exist: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/store/foundation.ts","lineNumber":397,"sourceCode":"    getStoreMetadataPath(storeRoot),\n    serializeStoreMetadataState(state)\n  );\n}\n\nexport async function resolveGitStoreBackendConfig(\n  input: ResolveGitStoreBackendInput,\n  cwd = process.cwd()\n): Promise<StoreGitBackendConfig> {\n  if (input.localPath.length === 0) {\n    throw new Error('Store local path must not be empty.');\n  }\n\n  const resolvedPath = path.isAbsolute(input.localPath)\n    ? path.resolve(input.localPath)\n    : path.resolve(cwd, input.localPath);\n\n  if (!(await pathIsDirectory(resolvedPath))) {\n    throw new Error(`Store local path does not exist: ${input.localPath}`);\n  }\n\n  if (input.remote !== undefined && input.remote.length === 0) {\n    throw new Error('Store backend remote must not be empty when provided.');\n  }\n\n  if (input.branch !== undefined && input.branch.length === 0) {\n    throw new Error('Store branch must not be empty when provided.');\n  }\n\n  return {\n    type: 'git',\n    local_path: normalizeExistingPathForStorage(resolvedPath),\n    ...(input.remote ? { remote: input.remote } : {}),\n    ...(input.branch ? { branch: input.branch } : {}),\n  };\n}\n","sourceCodeStart":379,"sourceCodeEnd":415,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/store/foundation.ts#L379-L415","documentation":"Filesystem check in resolveGitStoreBackendConfig: the resolved localPath (made absolute against cwd when relative) is not an existing directory, verified via pathIsDirectory. The store backend requires its local clone/worktree to be present on disk.","triggerScenarios":"Thrown at src/core/store/foundation.ts:397 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the path exists and is a directory, not a file","Correct typos in the localPath value","Clone the store repository first if it has not been fetched yet","Check relative paths are relative to the intended cwd"],"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"}