Fission-AI/OpenSpec · error · StoreError

store_path_not_directory

store_path_not_directory

Error message

Store path is not a directory: ${storeRoot}

What it means

Error "Store path is not a directory: ${storeRoot}" thrown in Fission-AI/OpenSpec.

Source

Thrown at src/core/store/operations.ts:755

export async function registerExistingStore(
  input: RegisterExistingStoreInput
): Promise<StoreMutationResult> {
  const storeRoot = resolveRegisterRoot(input.path);
  const kind = await pathKind(storeRoot);

  if (kind === 'missing') {
    throw new StoreError(
      `Store path does not exist: ${storeRoot}`,
      'store_path_missing',
      {
        target: 'store.root',
        fix: 'Clone or create the store folder before registering it.',
      }
    );
  }

  if (kind !== 'directory') {
    throw new StoreError(
      `Store path is not a directory: ${storeRoot}`,
      'store_path_not_directory',
      {
        target: 'store.root',
        fix: 'Pass an existing store directory.',
      }
    );
  }

  assertNotConfigOnlyPointerRoot(storeRoot);
  const openspecRoot = await inspectOpenSpecRoot(storeRoot);
  if (!openspecRoot.healthy) {
    const problems =
      openspecRoot.diagnostics.map((diagnostic) => diagnostic.message).join(' ') ||
      'The OpenSpec root is missing or incomplete.';
    const isEmptyCloneSuspect =
      (await isGitRepositoryAtRoot(storeRoot)) &&
      (await gitHasCommits(storeRoot)) === false;

View on GitHub (pinned to 6926ccb18a)

When it happens

Trigger: Thrown at src/core/store/operations.ts:755 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25). Data as JSON: /api/errors/e72e205f074301c4. Report an issue: GitHub.