{"record":{"id":"9e9ffed9a1fac7cb","repo":"Fission-AI/OpenSpec","slug":"failed-to-read-schema-at-schemapath-ioerro","errorCode":null,"errorMessage":"Failed to read schema at '${schemaPath}': ${ioError.message}","messagePattern":"Failed to read schema at '(.+?)': (.+?)","errorType":"exception","errorClass":"SchemaLoadError","httpStatus":null,"severity":"error","filePath":"src/core/artifact-graph/resolver.ts","lineNumber":202,"sourceCode":"  const normalizedName = name.replace(/\\.ya?ml$/, '');\n\n  const schemaDir = getSchemaDir(normalizedName, projectRoot);\n  if (!schemaDir) {\n    const availableSchemas = listSchemas(projectRoot);\n    throw new Error(\n      `Schema '${normalizedName}' not found. Available schemas: ${availableSchemas.join(', ')}`\n    );\n  }\n\n  const schemaPath = path.join(schemaDir, 'schema.yaml');\n\n  // Load and parse the schema\n  let content: string;\n  try {\n    content = fs.readFileSync(schemaPath, 'utf-8');\n  } catch (err) {\n    const ioError = err instanceof Error ? err : new Error(String(err));\n    throw new SchemaLoadError(\n      `Failed to read schema at '${schemaPath}': ${ioError.message}`,\n      schemaPath,\n      ioError\n    );\n  }\n\n  try {\n    return parseSchema(content);\n  } catch (err) {\n    if (err instanceof SchemaValidationError) {\n      throw new SchemaLoadError(\n        `Invalid schema at '${schemaPath}': ${err.message}`,\n        schemaPath,\n        err\n      );\n    }\n    const parseError = err instanceof Error ? err : new Error(String(err));\n    throw new SchemaLoadError(","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/artifact-graph/resolver.ts#L184-L220","documentation":"Error \"Failed to read schema at '${schemaPath}': ${ioError.message}\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/artifact-graph/resolver.ts:202 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"}