Fission-AI/OpenSpec · error
${specName} REMOVED failed for header "### Requirement: ${na
Error message
${specName} REMOVED failed for header "### Requirement: ${name}" - not found, but "### Requirement: ${nameToBlock.get(nearMiss)!.name}" exists; fix the header to match it exactly What it means
Error "${specName} REMOVED failed for header "### Requirement: ${name}" - not found, but "### Requirement: ${nameToBlock.get(nearMiss)!.name}" exists; fix the header to match it exactly" thrown in Fission-AI/OpenSpec.
Source
Thrown at src/core/specs-apply.ts:434
renamedTargets.set(from, to);
renamedApplied++;
}
// REMOVED
let removedApplied = 0;
for (const name of plan.removed) {
const key = normalizeRequirementName(name);
if (!nameToBlock.has(key)) {
// Requirement gone from the baseline means the removal was already
// synced (early-sync pattern) — re-applying it is a no-op, not a
// failure. One signal does separate that from a mistyped header: a
// requirement that differs only in case or interior whitespace still
// being present. That is a typo, and stays a hard abort.
// For new specs the skip was already warned about above.
if (!isNewSpec) {
const nearMiss = [...nameToBlock.keys()].find((k) => foldRequirementName(k) === foldRequirementName(key));
if (nearMiss !== undefined) {
throw new Error(
`${specName} REMOVED failed for header "### Requirement: ${name}" - not found, but "### Requirement: ${nameToBlock.get(nearMiss)!.name}" exists; fix the header to match it exactly`
);
}
warn(
`${specName} - REMOVED requirement "${name}" is not in the current spec; treating it as already removed.`
);
}
continue;
}
nameToBlock.delete(key);
removedApplied++;
}
// MODIFIED
let modifiedApplied = 0;
for (const mod of plan.modified) {
const key = normalizeRequirementName(mod.name);
const currentBlock = nameToBlock.get(key);View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/core/specs-apply.ts:434 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/2639e10a5b7744a1.
Report an issue: GitHub.