Fission-AI/OpenSpec · error · StoreError

invalid_workset_name

invalid_workset_name

Error message

Workset name '${name}' ${KEBAB_ID_DESCRIPTION}.

What it means

Thrown by validateWorksetName when the proposed workset name fails the kebab-id check (isKebabId). Workset names become directory and file names, so only lowercase kebab-case identifiers are accepted; the message embeds the shared KEBAB_ID_DESCRIPTION.

Solutions

  1. Rename the workset to lowercase kebab-case (letters, digits, single hyphens)
  2. Start with a letter or digit and avoid underscores, spaces, and uppercase
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/core/worksets.ts:86 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/7c969a76c799bcdb. Report an issue: GitHub.

Appendix: source

Thrown at src/core/worksets.ts:86

}

export function getWorksetsFilePath(options: WorksetPathOptions = {}): string {
  return FileSystemUtils.joinPath(getWorksetsDir(options), WORKSETS_FILE_NAME);
}

export function getWorksetCodeWorkspacePath(
  name: string,
  options: WorksetPathOptions = {}
): string {
  return FileSystemUtils.joinPath(
    getWorksetsDir(options),
    `${name}${CODE_WORKSPACE_EXTENSION}`
  );
}

export function validateWorksetName(name: string): string {
  if (!isKebabId(name)) {
    throw new StoreError(
      `Workset name '${name}' ${KEBAB_ID_DESCRIPTION}.`,
      'invalid_workset_name',
      {
        target: 'workset.name',
        fix: KEBAB_ID_FIX,
      }
    );
  }

  return name;
}

/**
 * Returns a problem description for a member list, or null when valid.
 * Shared by the file parser (wrapping as invalid_workset_file) and the
 * compose flow (wrapping as workset_member_invalid).
 */
export function memberListProblem(members: WorksetMember[]): string | null {

View on GitHub (pinned to 6926ccb18a)