Fission-AI/OpenSpec · error · Error
Artifact ' ' not found in schema ' '. Valid artifacts
Error message
Artifact '${artifactId}' not found in schema '${context.schemaName}'. Valid artifacts:
${validIds.join('\n ')} What it means
Thrown by instructionsCommand when the supplied artifact ID does not match any artifact defined in the resolved schema (context.schemaName). The message enumerates the schema's valid artifact IDs to aid correction; means a typo or an artifact from a different schema.
Solutions
- Use one of the listed valid artifact IDs
- Verify the --schema option matches the schema that defines the artifact
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/commands/workflow/instructions.ts:158 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/6d0935c1ba205817.
Report an issue: GitHub.
Appendix: source
Thrown at src/commands/workflow/instructions.ts:158
changeDir: getChangeDir(planningHome, changeName),
planningHome,
projectConfig,
});
if (!artifactId) {
spinner?.stop();
const validIds = context.graph.getAllArtifacts().map((a) => a.id);
throw new Error(
`Missing required argument <artifact>. Valid artifacts:\n ${validIds.join('\n ')}`
);
}
const artifact = context.graph.getArtifact(artifactId);
if (!artifact) {
spinner?.stop();
const validIds = context.graph.getAllArtifacts().map((a) => a.id);
throw new Error(
`Artifact '${artifactId}' not found in schema '${context.schemaName}'. Valid artifacts:\n ${validIds.join('\n ')}`
);
}
const instructions = generateInstructions(context, artifactId, projectRoot, {
projectConfig,
references,
});
const isBlocked = instructions.dependencies.some((d) => !d.done);
spinner?.stop();
if (options.json) {
console.log(JSON.stringify({ ...instructions, root: toRootOutput(root) }, null, 2));
return;
}
printInstructionsText(instructions, isBlocked);View on GitHub (pinned to 6926ccb18a)