{"record":{"id":"9ab776bdb7716a19","repo":"Fission-AI/OpenSpec","slug":"spec-specid-not-found-at-openspec-specs-spe","errorCode":null,"errorMessage":"Spec '${specId}' not found at openspec/specs/${specId}/spec.md","messagePattern":"Spec '(.+?)' not found at openspec/specs/(.+?)/spec\\.md","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/commands/spec.ts","lineNumber":259,"sourceCode":"        if (!specId) {\n          const canPrompt = isInteractive(options);\n          const specIds = await getSpecIds();\n          if (canPrompt && specIds.length > 0) {\n            const { select } = await import('@inquirer/prompts');\n            specId = await select({\n              message: 'Select a spec to validate',\n              choices: specIds.map(id => ({ name: id, value: id })),\n            });\n          } else {\n            throw new Error('Missing required argument <spec-id>');\n          }\n        }\n\n        const specPath = join(SPECS_DIR, specId, 'spec.md');\n        assertSpecPath(SPECS_DIR, specPath);\n        \n        if (!existsSync(specPath)) {\n          throw new Error(`Spec '${specId}' not found at openspec/specs/${specId}/spec.md`);\n        }\n\n        const validator = new Validator(options.strict);\n        assertSpecPath(SPECS_DIR, specPath);\n        const report = await validator.validateSpec(specPath);\n\n        if (options.json) {\n          console.log(JSON.stringify(report, null, 2));\n        } else {\n          if (report.valid) {\n            console.log(`Specification '${specId}' is valid`);\n          } else {\n            console.error(`Specification '${specId}' has issues`);\n            report.issues.forEach(issue => {\n              const label = issue.level === 'ERROR' ? 'ERROR' : issue.level;\n              const prefix = issue.level === 'ERROR' ? '✗' : issue.level === 'WARNING' ? '⚠' : 'ℹ';\n              console.error(`${prefix} [${label}] ${issue.path}: ${issue.message}`);\n            });","sourceCodeStart":241,"sourceCodeEnd":277,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/commands/spec.ts#L241-L277","documentation":"Error \"Spec '${specId}' not found at openspec/specs/${specId}/spec.md\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/commands/spec.ts:259 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"}