Repository navigation
Description
Problem
The OpenSpec gate (devops openspec check) compares the committed agent skills with the output of openspec update --force, and first requires that the binary has the version of package-lock.json (src/devops_cli/openspec/gate.py, skills.py). A release of OpenSpec that writes other skill text fails the Renovate pull request until a person writes the skills again and pushes them. Renovate runs no upgrade task. The pull request notes of .github/renovate.json ask for these manual steps.
Past updates that changed the skill text needed such hand work (#5078, #6216). #6909 and #7020 merged with package files only, because the skill text did not change.
Owner decision of 2026-12-01: remove the tooling that blocks a dependency update. An update that changes no interface passes CI with no edit under src/ or tests/.
Change
- The gate no longer reads the version of the binary and no longer compares the skills.
- Delete the code that has no other user.
- Remove the manual steps from the pull request notes of OpenSpec in
.github/renovate.json. openspec validate, the instruction check, the overlap check, the length check and the scaffold check stay.devops openspec regeneratestays as a command that a person can run.
Proof
- A test gives the gate a tree whose skills differ from the output of the tool, and the gate reports no problem. The test fails on the base.
uv run devops openspec checkpasses on the checkout.
Existing Tool Considered
openspec update writes the skills, and npm installs the version of package-lock.json. The change deletes our copy of these two checks.
Proposed design
Problem statement
The owner decided on 2026-12-01 to remove the tooling that blocks a dependency update. devops openspec check first reads the version of the OpenSpec binary, then compares the committed agent skills with the output of openspec update --force. A release of OpenSpec that writes other skill text fails the Renovate pull request until a person writes the skills again.
Remove the version read and the skill comparison from the gate, and delete the code with no other user: skill_drift, missing_skill_trees, the skill_* messages and the GateCheck.SKILLS member. Keep version_finding, because devops openspec regenerate still calls it. Keep openspec validate, the instruction check, the overlap check, the length check and the scaffold check. Remove the manual skill-edit steps from the notes of the @fission-ai/openspec rule in .github/renovate.json:116, and update the deltas of openspec-check and openspec-regenerate, whose living specs state the removed checks.
Acceptance criteria
Requirement: The gate ignores the committed skills
devops openspec check SHALL report no problem when a committed agent skill differs from what openspec update --force writes.
Scenario: A hand-edited skill passes
- WHEN a test runs
check_openspecover a sound tree whose committed.claude/skills/openspec-explore/SKILL.mdholds a hand edit, with theopenspecfake installed - THEN the gate returns no
skillsfinding, and the fake records noupdate --forcecall
Requirement: The gate ignores the binary version
devops openspec check MUST NOT run openspec --version and MUST pass when the binary is not at the version that package-lock.json pins.
Scenario: Another binary version passes
- WHEN a test runs
check_openspecwith theopenspecfake at a version other than the pin ofpackage-lock.json - THEN the gate returns no
versionfinding, and the fake records no--versioncall
Requirement: The comparison code is deleted
The repository MUST delete skill_drift, missing_skill_trees and the skill_* messages of devops_cli.openspec.skills, because no other code reads them.
Scenario: The skills module holds no comparison
- WHEN a test imports
devops_cli.openspec.skillsanddevops_cli.openspec.gateand lists their public names - THEN the module holds no
skill_driftand nomissing_skill_trees, andGateCheckholds noSKILLSmember
Requirement: The dry run drops the removed runs
devops openspec check in a dry run MUST list no openspec --version run and no openspec update --force run.
Scenario: The dry-run plan
- WHEN a test runs
devops openspec checkwithDEVOPS_CLI_DRY_RUN=1 - THEN the listed plan holds no
--versionrun and noupdate --forcerun
Requirement: The gate keeps the other checks
devops openspec check MUST keep openspec validate, the instruction check, the overlap check, the length check and the scaffold check.
Scenario: A long requirement fails the gate
- WHEN a test runs the gate on an active change whose
MODIFIEDrequirement has more thanREQUIREMENT_MAX_CHARScharacters - THEN the gate reports the
requirement lengthfinding and exits 1
Requirement: Regenerate keeps the version guard
devops openspec regenerate SHALL read the version of the binary and SHALL stop before it writes when that version is not the one that package-lock.json pins.
Scenario: An older binary stops regenerate
- WHEN a test runs
devops openspec regeneratewith theopenspecfake at another version - THEN the command exits 1 with the
versionfinding that names the path, the versions and the install hint, and the fake records noupdate --forcecall
Requirement: The Renovate config stays valid
.github/renovate.json MUST stay a valid Renovate configuration after the notes of the @fission-ai/openspec rule drop the manual skill-edit steps.
Scenario: The Renovate config validates
- WHEN a person runs
npx --yes --package [email protected] -- renovate-config-validator --strict --no-global .github/renovate.json - THEN the command exits 0
Requirement: Pending a person after the merge
The Renovate pull request that updates @fission-ai/openspec MUST pass CI with no edit under src/ or tests/, and its body MUST hold no manual skill-edit step.
Scenario: The next OpenSpec update pull request
- WHEN after the change merges, Renovate opens the pull request for a new
@fission-ai/openspecrelease, and a person runsuv run devops gh pr view <number> - THEN the body holds no
openspec regeneratestep, the checks pass, and the pull request holds no edit undersrc/ortests/
Requirement: The gate passes on the checkout
devops openspec check MUST pass on the checkout after the change.
Scenario: The gate runs on the checkout
- WHEN a person runs
uv run devops openspec check - THEN the command exits 0 and reports no problem
Existing Tool Considered
No alternatives check has run on this item. The open tool that covers the need is the OpenSpec CLI (@fission-ai/openspec, MIT, version 2.2.0 in package-lock.json:56). openspec update --force writes the skills, and npm installs the version of package-lock.json. The change deletes our copy of the skill comparison and the gate's version read, and builds no code. The tool lacks only a comparison of the committed skills with its output; the change removes that comparison, because it blocks a dependency update.
Key questions
- Does the shared version guard stay for
devops openspec regenerate?: Yes. Keepversion_findinginsrc/devops_cli/openspec/gate.py:130and remove only the gate call atsrc/devops_cli/openspec/gate.py:282.devops openspec regeneratecalls it atsrc/devops_cli/commands/openspec.py:73before it writes. The delta ofopenspec-regeneratechanges two texts: the scenarioThe lockfile of the checkout moves the pinatopenspec/specs/openspec-regenerate/spec.md:18expectsdevops openspec checkto exit 1, and the requirementOne version guard serves check and regenerateatopenspec/specs/openspec-regenerate/spec.md:41names both commands. (best practice) [sources: src/devops_cli/openspec/gate.py:130, src/devops_cli/commands/openspec.py:73, openspec/specs/openspec-regenerate/spec.md:12, openspec/specs/openspec-regenerate/spec.md:18, openspec/specs/openspec-regenerate/spec.md:41]- Chosen: Keep the guard for regenerate. Regenerate reads the version before it writes, so the guard keeps a user and the spec of openspec-regenerate keeps its rule.
- Rejected: Delete the guard. This breaks the requirement of openspec-regenerate and adds no gain.
- Does the skill comparison code have another user after the gate stops?: No user remains for
skill_drift(src/devops_cli/openspec/skills.py:61),missing_skill_trees(src/devops_cli/openspec/skills.py:51),_drift_message(src/devops_cli/openspec/skills.py:42) and the fourMESSAGES.openspec.skill_*texts. Delete them. Keepgenerated_filesandregenerate_skills:src/devops_cli/commands/openspec.py:76,tests/support/fakes/openspec.py:178,tests/support/openspec_scenarios.py:213andtests/support/roadmap_stage_phases.py:44still callgenerated_files. KeepUPDATE_ARGS, whichregenerate_skillsuses. (best practice) [sources: src/devops_cli/openspec/skills.py:42, src/devops_cli/openspec/skills.py:51, src/devops_cli/openspec/skills.py:61, src/devops_cli/commands/openspec.py:76, tests/support/fakes/openspec.py:178]- Chosen: Delete the comparison only. The gate is the only user of these names, so the dead code goes and the shared helpers stay.
- Rejected: Delete the whole skills module. Regenerate and three test helpers still read
generated_filesandregenerate_skills.
- Which checks does the gate keep?: Keep
openspec validate --all --strict,openspec validate --archived, the instruction check, the overlap check, the requirement length check and the scaffold check. They run atsrc/devops_cli/openspec/gate.py:292tosrc/devops_cli/openspec/gate.py:299. The OpenSpec CLI checks none of the project rules for length, overlap and scaffold. (best practice) [sources: src/devops_cli/openspec/gate.py:292, src/devops_cli/openspec/gate.py:299]- Chosen: Keep the five checks. The body keeps them, and the tool checks none of the project rules.
- Rejected: Keep
openspec validatealone. This drops the project rules for the requirement length, the overlap and the scaffold.
- Where do the committed agent skills live?: The repository keeps the committed agent skills under
.agents/skills/openspec-*, and each.claude/skills/openspec-*is a link to its folder there. The gate reads both globs and.agents/skills/.openspec-target. [sources: AGENTS.md:13, src/devops_cli/config/constants.py:6201] - Which command of this repository proves that
.github/renovate.jsonstill holds a valid Renovate config?: The living specs recordnpx --yes --package [email protected] -- renovate-config-validator --strict --no-global .github/renovate.json. The repository holds nodevopsrow for this config, so the validator of Renovate is the proof. Use the recorded command and its pinned version. [sources: openspec/specs/renovate-service/spec.md:30, openspec/specs/release-concurrency-and-renovate/spec.md:24] - How does the test give the gate a tree whose skills differ from the tool output?: The test uses the
openspecfake of the process seam. The fake answersopenspecruns in process and records each call (tests/support/fakes/openspec.py:205). The test hand-edits a committedSKILL.md, runs the gate, and asserts that the gate passes and the fake records noupdate --forcecall. ADR 0007 doubles only process edges, and its amendment of 2026-10-24 says a test ofsrc/starts no system program. (best practice) [sources: tests/support/fakes/openspec.py:205, docs/adr/0007-tests-double-only-process-edges.md, tests/openspec/test_openspec_gate.py:448]- Chosen: The
openspecfake through the process seam. ADR 0007 doubles the process edge, the gate keeps its real code path, and the test runs offline. - Rejected: A stub binary on PATH. A test of
src/starts no system program, per the ADR 0007 amendment. - Rejected: A copied tree with the real tool. The test then needs the real tool and a network, so it is no offline test.
- Chosen: The
- Do the living specs need a delta for this change?: Yes. The delta of
openspec-checkremoves the requirementThe gate reads the version of the binary that it runs(openspec/specs/openspec-check/spec.md:22), the requirementThe skill check reads the layout of OpenSpec 2(openspec/specs/openspec-check/spec.md:48), the two version-finding requirements atopenspec/specs/openspec-check/spec.md:115andopenspec/specs/openspec-check/spec.md:122, and the early-return requirement atopenspec/specs/openspec-check/spec.md:129. The delta also drops the--versionandupdate --forceruns from the dry-run requirement. The delta ofopenspec-regeneratechanges the two texts that namedevops openspec check. (best practice) [sources: openspec/specs/openspec-check/spec.md:22, openspec/specs/openspec-check/spec.md:48, openspec/specs/openspec-check/spec.md:115, openspec/specs/openspec-regenerate/spec.md:18]- Chosen: Ship a spec delta with the change. The living specs state the removed checks, so the change folder must hold their delta and the gate validates it.
- Rejected: Edit the living specs in place. The project applies a change through its delta and archives it, not by a direct edit of
openspec/specs/.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Dec 1, 2026
openspec, and .github/labels.yml declares no scope/openspec label. Add the label to the file to give the scope to this item.Both touch the openspec gate version check, but #5375 makes regenerate read the version while this candidate removes the version check and skill comparison from the gate entirely.devops-cli-service commentedon Dec 1, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 2026
Released in v0.270.4: https://github.com/dan-petty/devops-cli/releases/tag/v0.270.4
devops-cli-service commentedon Dec 2, 2026
Live since 2026-12-02 01:08 UTC