{"record":{"id":"c5cb6648868968d3","repo":"Fission-AI/OpenSpec","slug":"archive-spec-update-failed","errorCode":"archive_spec_update_failed","errorMessage":"message","messagePattern":"message","errorType":"exception","errorClass":"ArchiveBlockedError","httpStatus":null,"severity":"error","filePath":"src/core/archive.ts","lineNumber":1577,"sourceCode":"                  JSON.stringify(rebuilt.counts) !== JSON.stringify(proposed.counts) ||\n                  outcome !== proposed.outcome\n                ) {\n                  throw new Error(\n                    `Main spec '${proposed.update.id}' changed while archive was awaiting confirmation. ` +\n                      'No files were changed; review the new content and rerun.'\n                  );\n                }\n              }\n            } catch (error) {\n              prepareError = error;\n            }\n          }\n\n          if (prepareError !== undefined) {\n            const message =\n              prepareError instanceof Error ? prepareError.message : String(prepareError);\n            if (json) {\n              throw new ArchiveBlockedError(\n                'archive_spec_update_failed',\n                message,\n                'Fix the change delta specs and rerun. No files were changed.'\n              );\n            }\n            console.log(message);\n            console.log('Aborted. No files were changed.');\n            process.exitCode = 1;\n            return null;\n          }\n\n          // Validate every rebuilt spec before writing any of them, so a\n          // late validation failure really does leave all targets unchanged.\n          if (!skipValidation) {\n            for (const p of prepared) {\n              // A retirement was already put to the validator, and failed on\n              // nothing but \"no requirements\" - there is no spec left to write,\n              // so re-reporting that one error would just abort the fix (#1302).","sourceCodeStart":1559,"sourceCodeEnd":1595,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/archive.ts#L1559-L1595","documentation":"Error \"message\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/archive.ts:1577 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"}