Fission-AI/OpenSpec · error · ArchiveBlockedError
archive_change_name_required
archive_change_name_required
Error message
A change name is required: archive --json is non-interactive.
What it means
Error "A change name is required: archive --json is non-interactive." thrown in Fission-AI/OpenSpec.
Source
Thrown at src/core/archive.ts:1136
for (const [allowedDirectory, managedDir] of [
[root.path, changesDir],
[changesDir, archiveDir],
[root.path, mainSpecsDir],
] as const) {
try {
FileSystemUtils.assertPathWithin(allowedDirectory, managedDir);
} catch {
throw new ArchiveBlockedError(
'archive_path_outside_root',
`Refusing to archive through a path outside the OpenSpec root: ${managedDir}`
);
}
}
// Get change name interactively if not provided
if (!changeName) {
if (json) {
throw new ArchiveBlockedError(
'archive_change_name_required',
'A change name is required: archive --json is non-interactive.',
withStoreFlag(root, 'openspec archive <change-name> --json')
);
}
const selectedChange = await this.selectChange(changesDir, root, options);
if (!selectedChange) {
console.log('No change selected. Aborting.');
return null;
}
changeName = selectedChange;
}
const changeNameProblem = folderStyleNameProblem(changeName, 'Change name');
if (changeNameProblem) {
throw new ArchiveBlockedError('archive_change_name_invalid', changeNameProblem);
}
View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/core/archive.ts:1136 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/1d1602817fe9d860.
Report an issue: GitHub.