Fission-AI/OpenSpec · error · StoreError
invalid_store_id
invalid_store_id
Error message
${folderProblem} What it means
Sentinel wrapper in validateStoreId: the id failed folderStyleNameProblem, a shared folder-naming validator. The dynamic message is whatever that helper returned (length, character-set, or format complaint); the store id string itself is the input at fault.
Solutions
- Use a folder-safe store id: lowercase letters, digits, hyphens
- Avoid spaces, slashes, and special characters in the id
- Check the length limits enforced by folderStyleNameProblem and shorten if needed
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/store/foundation.ts:99 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/a8d04b535c23622e.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/store/foundation.ts:99
export function getStoreRegistryPath(options: StorePathOptions = {}): string {
return joinStorePath(getStoresDir(options), STORE_REGISTRY_FILE_NAME);
}
export function getStoreMetadataDir(storeRoot: string): string {
return joinStorePath(storeRoot, STORE_METADATA_DIR_NAME);
}
export function getStoreMetadataPath(storeRoot: string): string {
return joinStorePath(
getStoreMetadataDir(storeRoot),
STORE_METADATA_FILE_NAME
);
}
export function validateStoreId(id: string): string {
const folderProblem = folderStyleNameProblem(id, 'Store id');
if (folderProblem !== null) {
throw new StoreError(folderProblem, 'invalid_store_id', {
target: 'store.id',
fix: KEBAB_ID_FIX,
});
}
if (!isKebabId(id)) {
throw new StoreError(
`Store id ${KEBAB_ID_DESCRIPTION}`,
'invalid_store_id',
{
target: 'store.id',
fix: KEBAB_ID_FIX,
}
);
}
return id;
}View on GitHub (pinned to 6926ccb18a)