Fission-AI/OpenSpec · error

Some guidance for operation

Error message

Some guidance for operation '${operationId}' are empty strings, ignoring them

What it means

Warning from parseOperations: the guidance array parsed correctly but contained one or more empty strings, which are filtered out before use. Non-empty entries are kept; only the blanks are discarded.

Solutions

  1. Delete the empty string entries from the operation's guidance list
  2. Fill the blank entries with real guidance text
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/core/project-config.ts:171 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/15be43ab76df30af. Report an issue: GitHub.

Appendix: source

Thrown at src/core/project-config.ts:171

        `Unknown field(s) in 'operations.${operationId}': ${unknownFields.join(', ')}. Supported fields: guidance`
      );
    }

    if (operation.guidance === undefined) {
      continue;
    }

    const guidanceResult = z.array(z.string()).safeParse(operation.guidance);
    if (!guidanceResult.success) {
      console.warn(
        `Guidance for operation '${operationId}' must be an array of strings, ignoring this operation's guidance`
      );
      continue;
    }

    const guidance = guidanceResult.data.filter((entry) => entry.length > 0);
    if (guidance.length < guidanceResult.data.length) {
      console.warn(
        `Some guidance for operation '${operationId}' are empty strings, ignoring them`
      );
    }
    if (guidance.length > 0) {
      operations[typedOperationId] = { guidance };
    }
  }

  return Object.keys(operations).length > 0 ? operations : undefined;
}

/**
 * Parser for `references:` declarations: string entries or
 * {id, remote} maps, normalized to DeclarationEntry[]. Dedup keys on
 * id and keeps the first position; the first entry carrying a remote
 * supplies it (a later duplicate fills a missing remote, never
 * overrides). Invalid entries drop with a warning like other resilient
 * fields; returns undefined when the field is absent or normalizes to

View on GitHub (pinned to 6926ccb18a)