Fission-AI/OpenSpec · error · RetirementBackupsRetainedError

${error.message} ${cleanupError instanceof Error ? cleanupEr

Error message

${error.message} ${cleanupError instanceof Error ? cleanupError.message : String(cleanupError)}

What it means

Error "${error.message} ${cleanupError instanceof Error ? cleanupError.message : String(cleanupError)}" thrown in Fission-AI/OpenSpec.

Source

Thrown at src/core/archive.ts:1982

                      `The active delta for '${proposed.update.id}' changed during the fallback copy.`
                    );
                  }
                }
              }
            };
            await moveDirectory(changeDir, archivePath, {
              verifyCopiedDestination: verifyArchivedDeltas,
            });
            changeArchived = true;
            await verifyArchivedDeltas();
            await finalizeRetirementBackups(specSnapshots, mainSpecsDir);
          } catch (error) {
            if (error instanceof MoveDestinationRetainedError) {
              changeArchived = true;
              try {
                await finalizeRetirementBackups(specSnapshots, mainSpecsDir);
              } catch (cleanupError) {
                throw new RetirementBackupsRetainedError(
                  `${error.message} ${
                    cleanupError instanceof Error ? cleanupError.message : String(cleanupError)
                  }`
                );
              }
              throw error;
            }
            if (error instanceof RetirementBackupsRetainedError) throw error;
            const rollbackErrors: Error[] = [];
            try {
              await restoreSpecSnapshots(
                specSnapshots.filter(({ target }) => mutationAttempts.has(target))
              );
            } catch (rollbackError) {
              rollbackErrors.push(
                rollbackError instanceof Error
                  ? rollbackError
                  : new Error(String(rollbackError))

View on GitHub (pinned to 6926ccb18a)

When it happens

Trigger: Thrown at src/core/archive.ts:1982 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/500b7850538d3691. Report an issue: GitHub.