{"record":{"id":"846313fe98edbe48","repo":"Fission-AI/OpenSpec","slug":"specname-validation-failed-requirement-presen-846313","errorCode":null,"errorMessage":"${specName} validation failed - requirement present in multiple sections (${c.a} and ${c.b}) for header \"### Requirement: ${c.name}\"","messagePattern":"(.+?) validation failed - requirement present in multiple sections \\((.+?) and (.+?)\\) for header \"### Requirement: (.+?)\"","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/specs-apply.ts","lineNumber":289,"sourceCode":"        `${specName} validation failed - requirement present in multiple sections (RENAMED and REMOVED) for header \"### Requirement: ${from}\"` +\n          (removedFoldMatch === fromNorm ? '' : ` (REMOVED spells it \"${removedFoldMatch}\")`)\n      );\n    }\n    if (modifiedNames.has(fromNorm)) {\n      throw new Error(\n        `${specName} validation failed - when a rename exists, MODIFIED must reference the NEW header \"### Requirement: ${to}\"`\n      );\n    }\n    // Detect ADDED colliding with a RENAMED TO\n    if (addedNames.has(toNorm)) {\n      throw new Error(\n        `${specName} validation failed - RENAMED TO header collides with ADDED for \"### Requirement: ${to}\"`\n      );\n    }\n  }\n  if (conflicts.length > 0) {\n    const c = conflicts[0];\n    throw new Error(\n      `${specName} validation failed - requirement present in multiple sections (${c.a} and ${c.b}) for header \"### Requirement: ${c.name}\"`\n    );\n  }\n  const hasAnyDelta = plan.added.length + plan.modified.length + plan.removed.length + plan.renamed.length > 0;\n  if (!hasAnyDelta) {\n    throw new Error(\n      `Delta parsing found no operations for ${update.id}. ` +\n        `Provide ADDED/MODIFIED/REMOVED/RENAMED sections in change spec.`\n    );\n  }\n\n  // Load or create base target content\n  const deltaPurpose = extractPurposeSection(changeContent);\n  let targetContent: string;\n  let isNewSpec = false;\n  assertTrustedSpecPath(update.targetRoot, update.target);\n  try {\n    targetContent = await fs.readFile(update.target, 'utf-8');","sourceCodeStart":271,"sourceCodeEnd":307,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/specs-apply.ts#L271-L307","documentation":"Error \"${specName} validation failed - requirement present in multiple sections (${c.a} and ${c.b}) for header \"### Requirement: ${c.name}\"\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/specs-apply.ts:289 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"}