{"record":{"id":"34635e9b9a471316","repo":"Fission-AI/OpenSpec","slug":"store-setup-path-changed","errorCode":"store_setup_path_changed","errorMessage":"The path ${storeRoot} was created while setup was waiting for confirmation.","messagePattern":"The path (.+?) was created while setup was waiting for confirmation\\.","errorType":"error_code","errorClass":"StoreError","httpStatus":null,"severity":"error","filePath":"src/core/store/operations.ts","lineNumber":593,"sourceCode":"  prepared: PreparedStoreSetup,\n  input: Pick<SetupStoreInput, 'initGit'> = {}\n): Promise<StoreMutationResult> {\n  const plan: StoreSetupPlan = {\n    id: prepared.id,\n    storeRoot: prepared.root,\n    kind: prepared.rootKind,\n    registry: prepared.registry,\n    ...(prepared.backend ? { backend: prepared.backend } : {}),\n  };\n  const { id, storeRoot, kind, registry } = plan;\n  let { backend } = plan;\n\n  // The prepare/execute split can span an unbounded interactive\n  // confirmation. Re-assert the prepare-time directory facts: if the\n  // path appeared in the gap, the plan (and its rollback policy) no\n  // longer describes reality - refuse and let a rerun re-prepare.\n  if (kind === 'missing' && (await fs.access(storeRoot).then(() => true, () => false))) {\n    throw new StoreError(\n      `The path ${storeRoot} was created while setup was waiting for confirmation.`,\n      'store_setup_path_changed',\n      {\n        target: 'store.root',\n        fix: 'Rerun openspec store setup to re-evaluate the directory.',\n      }\n    );\n  }\n\n  const createdFiles: string[] = [];\n  let createdPaths: CreatedPathLedgerEntry[] = [];\n  let gitInitialized = false;\n  let committed = false;\n\n  // Reruns for an already-registered store stay strict no-ops: no anchor\n  // retrofit, no git init, no new commit, no identity requirement. Only an\n  // explicit --init-git overrides that for the git side.\n  const alreadyRegisteredHere = isRegisteredAtPath(registry, id, storeRoot);","sourceCodeStart":575,"sourceCodeEnd":611,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/store/operations.ts#L575-L611","documentation":"Error \"The path ${storeRoot} was created while setup was waiting for confirmation.\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/store/operations.ts:593 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"}