Fission-AI/OpenSpec · error · StoreError
store_register_cancelled
store_register_cancelled
Error message
Store register cancelled.
What it means
Sentinel StoreError (store_register_cancelled) raised by confirmRegisterConversion when the user declines the identity-confirmation prompt during store registration. The proposed metadata conversion is abandoned and the store is left unchanged.
Solutions
- Re-run openspec store register and accept the conversion if desired
- Resolve the identity mismatch manually in the store metadata
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/commands/store.ts:380 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/6735aa2e812097eb.
Report an issue: GitHub.
Appendix: source
Thrown at src/commands/store.ts:380
}
}
function isRegisterIdentityConfirmationError(error: unknown): boolean {
return (
error instanceof StoreError &&
error.diagnostic.code === 'store_register_identity_confirmation_required'
);
}
async function confirmRegisterConversion(error: unknown): Promise<void> {
const { confirm } = await import('@inquirer/prompts');
const confirmed = await confirm({
message: asErrorMessage(error),
default: false,
});
if (!confirmed) {
throw new StoreError(
'Store register cancelled.',
'store_register_cancelled',
{
target: 'store.metadata',
fix: 'Rerun register when you are ready to create store identity metadata.',
}
);
}
}
function printMutationHuman(
title: string,
payload: StoreMutationOutput,
remotes?: { canonical?: string; observed?: string }
): void {
if (!payload.store || !payload.registry || !payload.git) {
return;
}View on GitHub (pinned to 6926ccb18a)