Skip to content

fix(openspec): let an OpenSpec update pass with no skill edit #8053

Done

Description

@dan-petty

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 regenerate stays 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 check passes 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_openspec over a sound tree whose committed .claude/skills/openspec-explore/SKILL.md holds a hand edit, with the openspec fake installed
  • THEN the gate returns no skills finding, and the fake records no update --force call

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_openspec with the openspec fake at a version other than the pin of package-lock.json
  • THEN the gate returns no version finding, and the fake records no --version call

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.skills and devops_cli.openspec.gate and lists their public names
  • THEN the module holds no skill_drift and no missing_skill_trees, and GateCheck holds no SKILLS member

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 check with DEVOPS_CLI_DRY_RUN=1
  • THEN the listed plan holds no --version run and no update --force run

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 MODIFIED requirement has more than REQUIREMENT_MAX_CHARS characters
  • THEN the gate reports the requirement length finding 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 regenerate with the openspec fake at another version
  • THEN the command exits 1 with the version finding that names the path, the versions and the install hint, and the fake records no update --force call

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/openspec release, and a person runs uv run devops gh pr view <number>
  • THEN the body holds no openspec regenerate step, the checks pass, and the pull request holds no edit under src/ or tests/

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. Keep version_finding in src/devops_cli/openspec/gate.py:130 and remove only the gate call at src/devops_cli/openspec/gate.py:282. devops openspec regenerate calls it at src/devops_cli/commands/openspec.py:73 before it writes. The delta of openspec-regenerate changes two texts: the scenario The lockfile of the checkout moves the pin at openspec/specs/openspec-regenerate/spec.md:18 expects devops openspec check to exit 1, and the requirement One version guard serves check and regenerate at openspec/specs/openspec-regenerate/spec.md:41 names 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 four MESSAGES.openspec.skill_* texts. Delete them. Keep generated_files and regenerate_skills: src/devops_cli/commands/openspec.py:76, tests/support/fakes/openspec.py:178, tests/support/openspec_scenarios.py:213 and tests/support/roadmap_stage_phases.py:44 still call generated_files. Keep UPDATE_ARGS, which regenerate_skills uses. (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_files and regenerate_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 at src/devops_cli/openspec/gate.py:292 to src/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 validate alone. 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.json still holds a valid Renovate config?: The living specs record npx --yes --package [email protected] -- renovate-config-validator --strict --no-global .github/renovate.json. The repository holds no devops row 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 openspec fake of the process seam. The fake answers openspec runs in process and records each call (tests/support/fakes/openspec.py:205). The test hand-edits a committed SKILL.md, runs the gate, and asserts that the gate passes and the fake records no update --force call. ADR 0007 doubles only process edges, and its amendment of 2026-10-24 says a test of src/ 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 openspec fake 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.
  • Do the living specs need a delta for this change?: Yes. The delta of openspec-check removes the requirement The gate reads the version of the binary that it runs (openspec/specs/openspec-check/spec.md:22), the requirement The skill check reads the layout of OpenSpec 2 (openspec/specs/openspec-check/spec.md:48), the two version-finding requirements at openspec/specs/openspec-check/spec.md:115 and openspec/specs/openspec-check/spec.md:122, and the early-return requirement at openspec/specs/openspec-check/spec.md:129. The delta also drops the --version and update --force runs from the dry-run requirement. The delta of openspec-regenerate changes the two texts that name devops 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

  1. added
    type/bug
    source/agent
    status/new
    value/medium
    effort/medium
    on Dec 1, 2026
  2. dan-petty commented on Dec 1, 2026

    @dan-petty
    OwnerAuthor
    • Scope: none. The title has the scope openspec, and .github/labels.yml declares no scope/openspec label. Add the label to the file to give the scope to this item.
    • Related: fix(openspec): openspec regenerate reads no openspec version #5375, which asks for a different change. 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.
  3. added
    priority/p2-medium
    owner/agent
    on Dec 1, 2026
  4. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Dec 1, 2026
  6. removed
    status/in-review
    owner/agent
    on Dec 1, 2026
  7. devops-cli-service commented on Dec 2, 2026

    @devops-cli-service
    Contributor

    Live since 2026-12-02 01:08 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions