Repository navigation
Description
Problem or Motivation
OpenSpec 2.0.0 was released on 2026-11-11. The baseline (#5065) takes 1.17.0, the newest 1.x. Renovate (#4893) will offer 2.0.0, and it needs project work. A trial on 2026-11-12 (isolated profile, update --dry-run, then update --force, on a copy of the committed skills) found:
- Skills install once in
.agents/skills/. Tools that do not read that folder (Claude Code) get directory symlinks. 17 file changes:.claude/skills/openspec-{apply-change,explore,propose,update-change}become symlinks to../../.agents/skills/<name>;.kilocode/skills/openspec-*/SKILL.mdare deleted (the.kilocodetree is gone);.agents/skills/.openspec-targetchanges fromagentsto three linesagents,claude own-files,kilocode;.agents/skills/openspec-propose/SKILL.mdchanges 8 lines andopenspec-apply-change/SKILL.md10 lines (not onlygeneratedBy). - Effect on the gate (
src/devops_cli/openspec/skills.py,gate.py;constants.CONST_OPENSPEC_GENERATED_GLOBS):missing_skill_treesfails the.kilocode/skills/openspec-*/**/*glob;skill_driftcopies files as regular files, so the copy differs from the symlinked regeneration; the globs and the scratch copy must handle links. Git must commit the symlinks. ADR 0010, the openspec specs that name the skill trees,tests/support/fakes/openspec.pyand the recorded runs change too. Also confirm that Kilo Code reads.agents/skills/before the.kilocodetree goes (change 2333 added it). - The
/opsx:*slash commands are removed. No direct effect:delivery=skillsalready writes no command files. - The
deliverysetting is no longer needed.config set delivery skillsstill exits 0 on 2.0.0, soCONST_OPENSPEC_ISOLATED_SETTINGSkeeps working, but it should drop the setting. openspec updateremoves files of older versions and overwrites edits in.agents/skills/(it reported the committed apply-change and update-change skills as edited).- Amazon Q Developer support is removed. No effect.
- Fix:
openspec instructions applyno longer cuts off multi-line tasks intasks.md.
Upgrade guide: https://openspec.dev/docs/upgrade-to-2. Release: https://github.com/Fission-AI/OpenSpec/releases/tag/v2.0.0
Research of 2026-11-12 (research-openspec, breaking."2.0.0").
Proposed Solution & Architectural Design
- Pin 2.0.0 in
tools.lockandsrc/devops_cli/tools_lock/openspec/(npm lockfile by the runbook in thetools.lockheader). - Change the gate (
skills.py,gate.py,CONST_OPENSPEC_GENERATED_GLOBS) for the shared.agents/skills/layout and its symlinks; drop thedeliverysetting. - Keep the edited skills: move the project edits out of the generated files, or record why
updatemay overwrite them. - Confirm that Kilo Code reads
.agents/skills/. - Update ADR 0010, the specs that name the skill trees, the OpenSpec fake and the recorded runs (recorded inside pytest).
Done when devops openspec check passes with 2.0.0 and the skills are committed in the 2.0.0 layout.
Target Subsystem
SDLC, Git & PR Governance
Existing Tool Considered
OpenSpec itself (openspec update). The work is the project's gate code around it.
Source: #4893
Alternatives check of 2026-11-15: in-use.
The repository already uses this tool.
Tool: Fission-AI/OpenSpec (https://github.com/Fission-AI/OpenSpec), MIT, last activity 2026-11-14, maintained.
Proposed design
Problem statement
OpenSpec 2.0.0 (released 2026-11-11) installs the skills once in .agents/skills/ and links them into the folders of tools that need their own path, removes the per-tool copies and the /opsx:* commands, and retires the delivery setting. The project gate, the OpenSpec fake and the recorded runs still assume the 1.x per-tool copies. The change pins 2.0.0 and makes the gate, the tests, the documents and the committed skills match the shared layout; it keeps Kilo Code's .kilocode/skills path as a directory link because no source confirms that Kilo Code reads the shared folder, and it keeps project instructions out of the generated skills.
Acceptance criteria
Requirement: Pinned version
tools.lock and src/devops_cli/tools_lock/openspec/package.json SHALL pin OpenSpec 2.0.0, with a lockfile entry that holds its integrity hash.
Scenario: Pinned entry
- WHEN a test reads the
[npm.openspec]version, thepackage.jsondependency and the lockfile entry - THEN the lock and the manifest give 2.0.0 and the lockfile gives the package's integrity hash.
Requirement: Shared target file
The committed .agents/skills/.openspec-target SHALL hold the three lines agents, claude own-files and kilocode.
Scenario: Target file
- WHEN a test reads the committed
.agents/skills/.openspec-target - THEN it holds exactly those three lines.
Requirement: Generated globs
CONST_OPENSPEC_GENERATED_GLOBS SHALL name .agents/skills/openspec-*/**/*, .agents/skills/.openspec-target, .claude/skills/openspec-* and .kilocode/skills/openspec-*.
Scenario: Glob list
- WHEN a test reads the constant
- THEN it holds those four patterns and no
.kilocode/skills/openspec-*/**/*file pattern.
Requirement: Present skill tree
missing_skill_trees MUST count a directory link as a present skill tree.
Scenario: Linked tree
- WHEN a tree holds
.claude/skills/openspec-apply-changeand.kilocode/skills/openspec-apply-changeas links to.agents/skills/openspec-apply-change - THEN
missing_skill_treesreturns no pattern.
Requirement: Drift copy of links
skill_drift SHALL recreate each committed directory link as a link in its scratch copy and compare its target.
Scenario: No false drift
- WHEN the committed skills hold the
.claudeand.kilocodedirectory links and the regeneration keeps them - THEN
skill_driftreturns no message for either link.
Requirement: Committed links
Git MUST hold each .claude/skills/openspec-* and .kilocode/skills/openspec-* entry as a symbolic link.
Scenario: Index mode
- WHEN a test reads the mode and blob of
.claude/skills/openspec-apply-changeand.kilocode/skills/openspec-apply-changein the index - THEN each mode is
120000and each blob holds../../.agents/skills/openspec-apply-change.
Requirement: Kilo Code path
The regeneration SHALL recreate .kilocode/skills/openspec-* as directory links after openspec update --force.
Scenario: Kilo Code link
- WHEN
devops openspec regenerateruns on a tree where the update removed.kilocode/skills - THEN
.kilocode/skills/openspec-apply-changeis a link to../../.agents/skills/openspec-apply-change.
Requirement: Gate result
devops openspec check SHALL pass on a tree in the 2.0.0 layout.
Scenario: Clean checkout
- WHEN the check runs on a tree in the 2.0.0 layout
- THEN it exits 0 and reports no missing skill tree and no skill drift.
Requirement: Isolated settings
CONST_OPENSPEC_ISOLATED_SETTINGS MUST NOT hold the delivery setting.
Scenario: Isolated profile
- WHEN the code sets the isolated profile and runs a regeneration
- THEN it makes no
config set deliverycall and the regeneration still succeeds.
Requirement: Unedited generated skills
The project SHALL keep no project-specific edit inside a skill file that openspec update writes.
Scenario: Regeneration
- WHEN
openspec update --forceruns under the isolated profile on the committed tree - THEN each
.agents/skills/openspec-*/SKILL.mdholdsgeneratedBy: "2.0.0"andskill_driftreports no difference.
Requirement: Fake layout
The OpenSpec fake SHALL write the 2.0.0 layout for update --force.
Scenario: Fake update
- WHEN a test runs
openspec update --forcethrough the fake - THEN the fake writes
.agents/skills/with the three-line.openspec-target, creates the.claudelinks and removes.kilocode/skills.
Requirement: Recorded runs
The recorded runs SHALL hold the answers of OpenSpec 2.0.0.
Scenario: Record version
- WHEN a test reads the version of the record
- THEN it gives 2.0.0 and each command that the gate and
devops openspec archiverun has an entry.
Requirement: Documents
ADR 0010 and each spec that names a skill tree SHALL name the shared .agents/skills/ layout and the .claude and .kilocode links.
Scenario: Document text
- WHEN a test searches the ADR and the OpenSpec specs
- THEN each names
.agents/skills/and none names.kilocode/skills/openspec-*as a tool-written copy tree.
Existing Tool Considered
OpenSpec 2.0.0 (https://github.com/Fission-AI/OpenSpec, MIT, last activity 2026-11-14, maintained) is in use and performs the layout move itself: one skill copy in .agents/skills/, directory links for tools that need their own folder, removal of the per-tool copies and the /opsx:* commands, and retirement of delivery. It lacks the project's gate rewrite: missing_skill_trees and skill_drift in skills.py must count and copy directory links, and CONST_OPENSPEC_GENERATED_GLOBS must name the link entries. It removes .kilocode/skills/ and creates no link for Kilo Code, and no source confirms that Kilo Code reads .agents/skills/, so the project recreates that link after each update. It offers no way to keep edits inside the skills it installs, so the project keeps its instructions in openspec/config.yaml and in differently named skills. The project's own artifacts still need the manual change: ADR 0010, the specs that name the skill trees, tests/support/fakes/openspec.py, the recorded runs and the tools.lock pin.
Key questions
- Which release moves the skills to the shared
.agents/skills/layout, and on what date?: OpenSpec 2.0.0, released on 2026-11-11 (the release page timestamps it 11 Nov 22:41), installs one skill copy in.agents/skills/, links it into the folders of tools that need their own path, removes the/opsx:*commands and retires thedeliverysetting. The upgrade guide states the same move and the removal of the per-tool copies. [sources: https://github.com/Fission-AI/OpenSpec/releases/tag/v2.0.0, https://openspec.dev/docs/upgrade-to-2] - How does the gate treat a directory link under
.claude/skills/?: It counts the link itself as a present skill tree:missing_skill_treestestsis_symlink()orexists()on the matched entry, becauseis_file()is false for a link to a directory and the**pattern does not descend through the link into the shared tree.generated_filesrecords a link as its target, so the drift check compares the link too. (best practice) [sources: src/devops_cli/openspec/skills.py:51, src/devops_cli/openspec/skills.py:57, src/devops_cli/config/constants.py:5559]- Chosen: Follow each link and count it as present. The tool writes the link, so the gate must check what the tool writes.
- Rejected: Replace the links with regular copies.
openspec updatewrites the links again, so the gate fails on the next regeneration. - Rejected: Leave
.claudeout of the globs. Claude Code reads that folder, so a deleted link would go unseen.
- How does the scratch copy of
skill_driftreproduce a committed directory link?: It recreates each committed link withos.symlinkand the same target before the regeneration, and copies each regular file as a file.generated_filesreturns a link as its target and a file as its bytes, so a wrong target is drift and a link written as a regular file is not a false difference. (best practice) [sources: src/devops_cli/openspec/skills.py:61, src/devops_cli/openspec/skills.py:69, src/devops_cli/openspec/skills.py:25]- Chosen: Recreate each link as a link. The scratch tree then holds the same entries as the committed tree, so the drift result is true.
- Rejected: Write the target of each link as a regular file. This is the current code. The regeneration writes a link and the copy holds a file, so every link reports drift.
- Rejected: Skip the linked trees in the copy. A skill that the copy leaves out reads as unexpected and reports drift.
- Where do the project instructions that would otherwise be edited into a generated skill go?: They stay in
openspec/config.yamlundercontextandrules, which every skill reads throughopenspec instructions, and in project skills with a different name such as.agents/skills/devops-openspec-new/, whichupdatenever touches. The generated skills keep only the tool's text; the 1.17.0 files differ from 2.0.0 only in the tool's own wording andgeneratedBy, so the bump replaces them and loses no project edit. (best practice) [sources: docs/adr/0010-openspec-is-the-spec-and-change-proposal-layer.md:152, openspec/config.yaml:3, openspec/config.yaml:9, https://openspec.dev/docs/upgrade-to-2]- Chosen: Keep the instructions in
openspec/config.yamland a differently named skill.updatenever writes those, so a regeneration cannot lose the instruction. - Rejected: Reapply the edits after each
update. Each run needs a manual step, and the gate reports drift until a person does it. - Rejected: Keep the edits and accept the overwrite.
updatereplaces a built-in skill folder whole and keeps no copy, so the next run removes the edit.
- Chosen: Keep the instructions in
- Which patterns does
CONST_OPENSPEC_GENERATED_GLOBShold for the shared layout?: It holds.agents/skills/openspec-*/**/*,.agents/skills/.openspec-target,.claude/skills/openspec-*and.kilocode/skills/openspec-*. The.claudeand.kilocodepatterns match directory links, not files, so no.kilocode/skills/openspec-*/**/*file pattern stays. (best practice) [sources: src/devops_cli/config/constants.py:5559, src/devops_cli/openspec/skills.py:29, https://openspec.dev/docs/upgrade-to-2]- Chosen: Name the shared tree, the target file and both link folders. These are the entries that 2.0.0 writes and that the project keeps for Kilo Code.
- Rejected: Keep the
.kilocode/skills/openspec-*/**/*file pattern. 2.0.0 removes those files and the project keeps a link there, somissing_skill_treesfails on a tree that is gone on purpose. - Rejected: Drop the
.kilocodepattern. ADR 0010 records that Kilo Code reads.kilocode/skills, so a deleted link would go unseen.
- How does Kilo Code keep its skills when 2.0.0 removes the per-tool copies?: No source confirms that Kilo Code reads
.agents/skills/: ADR 0010 records that it reads.kilocode/skills, and the change that added that tree records that the Kilo Code documents name.kilocode/skillsand not.agents/skills. The project therefore keeps the path and makes.kilocode/skills/openspec-*directory links to../../.agents/skills/<name>after eachopenspec update --force, which is the documented way to point a tool that reads only its own folder at the shared copy. (best practice) [sources: docs/adr/0010-openspec-is-the-spec-and-change-proposal-layer.md:36, openspec/changes/archive/2026-10-27-2333-kilo-openspec-skills/proposal.md:25, https://openspec.dev/docs/upgrade-to-2]- Chosen: Link Kilo Code's own folder to the shared copy. ADR 0010 records that Kilo Code reads
.kilocode/skills, no source says it reads.agents/skills/, and the upgrade guide documents a link for a tool that reads only its own folder. - Rejected: Drop the
.kilocodetree and rely on native.agents/skills/support. No source confirms it, and a wrong guess leaves Kilo Code with no skill. - Rejected: Keep copies in
.kilocode/skills.openspec updateremoves the per-tool copies, and a copy would drift from the shared tree. - Rejected: Wait for the Kilo Code documents before upgrading. This blocks a released upgrade and loses the skill meanwhile; the link works whether or not Kilo Code also reads the shared folder.
- Chosen: Link Kilo Code's own folder to the shared copy. ADR 0010 records that Kilo Code reads
- Does
CONST_OPENSPEC_ISOLATED_SETTINGSkeep thedeliverysetting?: No. 2.0.0 retires the setting (everything is skills), and the CLI still acceptsconfig set delivery skillswith exit 0, so removing the call from the isolated profile breaks no run. (best practice) [sources: src/devops_cli/config/constants.py:5551, src/devops_cli/openspec/tool.py:42, https://openspec.dev/docs/upgrade-to-2, https://github.com/Fission-AI/OpenSpec/releases/tag/v2.0.0]- Chosen: Drop the setting from the isolated settings. 2.0.0 retires the setting and writes no command files, so the call has no effect.
- Rejected: Keep the setting. It sets a value that the tool no longer reads, and a later release may refuse it.
- Which
deliverynames in the code are not the OpenSpec setting?: The webhook delivery names atsrc/devops_cli/server/routes/webhooks.py:296,:644and:647. The change leaves them alone. [sources: src/devops_cli/server/routes/webhooks.py:296, src/devops_cli/server/routes/webhooks.py:644, src/devops_cli/server/routes/webhooks.py:647] - What does the OpenSpec fake change for 2.0.0?:
_updatewrites the.agents/skills/files, writes the three-line.openspec-target, creates the.claudedirectory links and removes.kilocode/skillswith the other old per-tool copies.regenerate_skillsrecreates the.kilocodelinks after the update. The recorded runs are made again against 2.0.0, whose version the record holds. [sources: tests/support/fakes/openspec.py:162, tests/support/fakes/openspec.py:181, tests/support/openspec_recording.py:59, tests/fixtures/openspec_runs/recorded_runs.json] - Does this item still depend on build(deps): take every safe version update before Renovate #5065?: No. build(deps): take every safe version update before Renovate #5065's change is archived in this tree and the pin it delivered is 1.17.0 in
tools.lockandpackage.json, withgeneratedBy: "1.17.0"in the committed skills, so the baseline is already in place. [sources: openspec/changes/archive/2026-11-12-5065-take-every-safe-version-update-before/proposal.md, src/devops_cli/tools_lock/tools.lock:598, src/devops_cli/tools_lock/openspec/package.json:3, .agents/skills/openspec-apply-change/SKILL.md:10]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 12, 2026
Both concern OpenSpec as the project's spec tool, but #1753 evaluates adopting it while the candidate upgrades it to 2.0.0 and rewrites the gate for the new skill layout.build(deps): take every safe version update before Renovate (#5102)
devops-cli-service commentedon Nov 15, 2026
Alternatives check: in-use
Reason: OpenSpec 2.0.0, the tool the issue already pins and ADR 0010 chose, performs the layout move itself: one skill copy in
.agents/skills/with directory links for tools such as Claude Code, removal of the per-tool copies and the/opsx:*command files, and retirement ofdelivery. It does not cover the project's own gate: the globs and the drift copy inskills.py/gate.pymust handle symlinks, and the edits inside generated skills are overwritten byupdate.The repository already uses this tool.
Tool: Fission-AI/OpenSpec (https://github.com/Fission-AI/OpenSpec)
Covers:
.agents/skills/and creates directory links in a tool's own folder, such as.claude/skills//opsx:*command filesdeliverysetting (the CLI still accepts it)openspec update --dry-runnames the generated skills whose edits it will replaceopenspec updatechanges only files inside the project and never follows links out of itLacks:
skills.py,gate.py,CONST_OPENSPEC_GENERATED_GLOBS) must be rewritten for the shared layout:missing_skill_treesfails the.kilocode/skills/openspec-*/**/*glob andskill_driftcopies files as regular filesupdateoverwrites them and keeps no copy, so the project's apply-change and update-change edits must move outtests/support/fakes/openspec.py, recorded runs,tools.lockpin) still need the manual change.agents/skills/before the.kilocodetree goesTools considered:
Searches run:
Sources:
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 17, 2026
Status set to Ready at e04435a (see proposed design in issue body).
dan-petty commentedon Nov 17, 2026
Owner, 2026-11-17: "implement openspec update so that we get the update when it is available and are using the latest standard for project documentation".
This adds to the scope of this item:
skillspackage and asks once whether a project keeps its skills in the repo; keep them in the project (--scope project, recorded inopenspec/config.yaml).* * * * 1) holds "update @fission-ai/openspec to v2" on the Dependency Dashboard (Dependency Dashboard #6030) until Monday.picomatch ^4.0.4. fix(ci): Let npm audit ignore a no-fix finding until a date #6204 / PR fix(ci): Let npm audit ignore a no-fix finding until a date #6205 adds the time-limited ignore entry, so merge that first.#6206 repeated this item and is closed as a duplicate.
chore(main): release 0.174.0 (#6220)
devops-cli-service commentedon Nov 17, 2026
Released in v0.174.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.174.0
devops-cli-service commentedon Nov 17, 2026
Live since 2026-11-17 20:02 UTC