Fission-AI/OpenSpec · error · Error
Artifact '${artifactId}' not found in schema '${context.sche
Error message
Artifact '${artifactId}' not found in schema '${context.schemaName}' What it means
Error "Artifact '${artifactId}' not found in schema '${context.schemaName}'" thrown in Fission-AI/OpenSpec.
Source
Thrown at src/core/artifact-graph/instruction-loader.ts:341
* @returns Enriched artifact instructions
* @throws Error if artifact not found
*/
export interface GenerateInstructionsOptions {
/** Pre-read project config; suppresses the internal read (no double read). */
projectConfig?: ProjectConfig | null;
/** Referenced-store index assembled at the command boundary. */
references?: ReferenceIndexEntry[];
}
export function generateInstructions(
context: ChangeContext,
artifactId: string,
projectRoot?: string,
options: GenerateInstructionsOptions = {}
): ArtifactInstructions {
const artifact = context.graph.getArtifact(artifactId);
if (!artifact) {
throw new Error(`Artifact '${artifactId}' not found in schema '${context.schemaName}'`);
}
const templateContent = loadTemplate(context.schemaName, artifact.template, context.projectRoot);
const dependencies = getDependencyInfo(artifact, context.graph, context.completed, context.skippedArtifacts);
const unlocks = getUnlockedArtifacts(context.graph, artifactId);
// Use projectRoot from context if not explicitly provided
const effectiveProjectRoot = projectRoot ?? context.projectRoot;
// Use the pre-read config when provided; otherwise read it here.
let projectConfig = options.projectConfig ?? null;
if (options.projectConfig === undefined && effectiveProjectRoot) {
try {
projectConfig = readProjectConfig(effectiveProjectRoot);
} catch {
// If config read fails, continue without config
}
}View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/core/artifact-graph/instruction-loader.ts:341 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/3ad2369de0c7e97c.
Report an issue: GitHub.