Fission-AI/OpenSpec · error · StoreError

store_register_identity_confirmation_required

store_register_identity_confirmation_required

Error message

Turn this OpenSpec root into store '${id}'?

What it means

Interactive confirmation StoreError raised in registerExistingStore when the target is a plain OpenSpec root and the user declines converting it into a store. It aborts the registration, leaving the folder untouched; the id in the message is the proposed store id.

Solutions

  1. Re-run and confirm the prompt to convert the root into a store
  2. Decline and register an already-store folder instead
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/core/store/operations.ts:815 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/943b599bde89f573. Report an issue: GitHub.

Appendix: source

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

    const registeredElsewhere =
      currentRegistry?.stores?.[metadata.id] !== undefined &&
      !isRegisteredAtPath(currentRegistry, metadata.id, storeRoot);

    throw new StoreError(
      `Store metadata id '${metadata.id}' does not match --id '${explicitId}'. The id comes from the store's committed .openspec-store/store.yaml.`,
      'store_metadata_id_mismatch',
      {
        target: 'store.id',
        fix: registeredElsewhere
          ? `One checkout per store id is supported, and '${metadata.id}' is already registered. Run openspec store unregister ${metadata.id} first to register this checkout instead.`
          : `Use --id ${metadata.id} or register a different folder.`,
      }
    );
  }

  const id = metadata?.id ?? explicitId ?? inferStoreIdFromPath(storeRoot);
  if (!metadata && !input.allowCreateIdentity) {
    throw new StoreError(
      `Turn this OpenSpec root into store '${id}'?`,
      'store_register_identity_confirmation_required',
      {
        target: 'store.metadata',
        fix: `Run interactively or pass --yes to create ${getStoreMetadataPath(storeRoot)}.`,
      }
    );
  }

  const backend = await resolveBackendWithObservedOrigin(storeRoot);
  const registry = await readStoreRegistryState();
  assertNoRegisteredStoreConflict(registry, id, backend);
  const createdFiles: string[] = [];
  const isRepository = await isGitRepositoryAtRoot(storeRoot);

  const registered = await commitStoreRegistration({
    id,
    backend,

View on GitHub (pinned to 6926ccb18a)