{"record":{"id":"6d0935c1ba205817","repo":"Fission-AI/OpenSpec","slug":"artifact-artifactid-not-found-in-schema-co","errorCode":null,"errorMessage":"Artifact '${artifactId}' not found in schema '${context.schemaName}'. Valid artifacts:\n  ${validIds.join('\\n  ')}","messagePattern":"Artifact '(.+?)' not found in schema '(.+?)'\\. Valid artifacts:\n  (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/commands/workflow/instructions.ts","lineNumber":158,"sourceCode":"      changeDir: getChangeDir(planningHome, changeName),\n      planningHome,\n      projectConfig,\n    });\n\n    if (!artifactId) {\n      spinner?.stop();\n      const validIds = context.graph.getAllArtifacts().map((a) => a.id);\n      throw new Error(\n        `Missing required argument <artifact>. Valid artifacts:\\n  ${validIds.join('\\n  ')}`\n      );\n    }\n\n    const artifact = context.graph.getArtifact(artifactId);\n\n    if (!artifact) {\n      spinner?.stop();\n      const validIds = context.graph.getAllArtifacts().map((a) => a.id);\n      throw new Error(\n        `Artifact '${artifactId}' not found in schema '${context.schemaName}'. Valid artifacts:\\n  ${validIds.join('\\n  ')}`\n      );\n    }\n\n    const instructions = generateInstructions(context, artifactId, projectRoot, {\n      projectConfig,\n      references,\n    });\n    const isBlocked = instructions.dependencies.some((d) => !d.done);\n\n    spinner?.stop();\n\n    if (options.json) {\n      console.log(JSON.stringify({ ...instructions, root: toRootOutput(root) }, null, 2));\n      return;\n    }\n\n    printInstructionsText(instructions, isBlocked);","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/commands/workflow/instructions.ts#L140-L176","documentation":"Error \"Artifact '${artifactId}' not found in schema '${context.schemaName}'. Valid artifacts:\n  ${validIds.join('\\n  ')}\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/commands/workflow/instructions.ts:158 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}