Retiring all requirements of a capability needs explicit archive permission
PitfallVerified 30 Sep 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
Archiving a change that removes all requirements of a capability does not complete until capability retirement is declared.
Cause#
The archive operation requires explicit permission to retire the capability rather than leaving it with no requirements.
Fix#
Add retire_capabilities: true to openspec/changes/<change>/.openspec.yaml, then rerun the archive operation for that change.
Evidence#
Inbox 3b165810f2 reports that dftracer-utils change duql-sources removed every dictionaries requirement. The agent added the setting, reran archive, and reported both archive and spec sync succeeded. The extract does not preserve the exact failed command or error text.
Also found by searching
- openspec archive duql-sources does not complete: change removes every requirement of the dictionaries capability
- archiving my openspec change hangs or refuses because it deletes all requirements of a spec
- how do I archive an openspec change that retires an entire capability?
- openspec remove whole spec capability on archive, .openspec.yaml retire_capabilities setting
- openspec archive does not complete when change removes all requirements of a capability
- archive stuck because the capability would end up with no requirements
- how do I let openspec archive retire a capability entirely?
- opsx archive fails after deleting every requirement; .openspec.yaml setting for retiring capability