Skip to content

docs(adr): evaluate OpenSpec as the spec and change-proposal layer for agents and task files #1753

Closed

Description

@dan-petty

Friction

How a change is specified, planned and recorded is spread across several places:

  • issue bodies;
  • per-task files under docs/agent/tasks/;
  • AGENTS.md rules;
  • refine comments.

Every agent (Claude Code, Gemini, Copilot) has to learn this home-grown format, and the task files conflict when several pull requests touch one item.

Proposal to evaluate

OpenSpec (github.com/Fission-AI/OpenSpec) is a spec-driven development tool for AI coding assistants. A change is proposed with its tasks and its spec deltas, reviewed, implemented, and then archived into a living specification of the system.

Questions

  1. Health:
    • Is OpenSpec maintained, with a stable release cadence and a clear license?
    • What does it need at runtime (it is a Node tool)?
    • Does it fit the policy of reputable, maintained dependencies, and the devcontainer image?
  2. Fit with ADR 0001: GitHub is the source of status, milestones and priority. What stays on the issue, and what moves into OpenSpec's change folder?
  3. Task files: could an OpenSpec change replace docs/agent/tasks/task-*.md and the task-file readiness check? Would its archive step replace the "author as merged" rule?
  4. Agents: how do Claude Code, Gemini and Copilot consume it (slash commands or instructions)? What would AGENTS.md shrink to?
  5. Conflicts: does one change folder per issue avoid the shared-file conflicts, with one pull request per issue?
  6. Trial: try it on one real item in a scratch branch, and record the effort and friction.

Deliverable

An ADR deciding whether to adopt OpenSpec and how, with the trial's evidence. If it is adopted, the ADR comes with follow-up issues for the migration, each delivered by one pull request.

Acceptance criteria

  • Questions 1-5 are answered with sources, such as the project repository, its releases and its license.
  • One trial change is recorded, with its effort and friction.
  • The ADR states adopt, adapt or reject, and what changes in AGENTS.md, readiness and the task-file tests.

Related: #1750 decides one pull request per issue and which change records live in the repository. This item decides whether OpenSpec is the format those records take.

Proposed design

Problem statement

The current process for specifying, planning, and recording changes is fragmented across multiple locations including issue bodies, per-task files under docs/agent/tasks/, AGENTS.md rules, and refine comments. This leads to inconsistency, conflict when multiple pull requests touch the same item, and requires each AI agent (Claude Code, Gemini, Copilot) to learn a home-grown format.

Acceptance criteria

  • Criterion 1: Questions 1-5 are answered with sources such as the project repository, its releases, and its license.
    Verification: Review the OpenSpec repository, its releases, and license to verify health, runtime requirements, and compatibility with project policies.
  • Criterion 2: One trial change is recorded with its effort and friction.
    Verification: Document a complete trial implementation of OpenSpec on one real item in a scratch branch, including time spent and identified issues.
  • Criterion 3: The ADR states whether to adopt, adapt, or reject OpenSpec and outlines changes needed in AGENTS.md, readiness checks, and task-file tests.
    Verification: Produce an ADR document that clearly decides on the adoption of OpenSpec and specifies the required modifications to existing documentation and processes.

Key questions

  • How does OpenSpec integrate with ADR 0001 which states GitHub is the source of status, milestones and priority?: OpenSpec would need to be evaluated for how it handles issue status, milestones, and priority that are managed in GitHub per ADR 0001. The integration approach needs to be determined during trial. (proposed) [sources: docs/adr/0001-github-is-the-roadmap-source.md]
  • Can OpenSpec replace the task files under docs/agent/tasks/ and the task-file readiness check?: This requires evaluation during the trial phase to determine if OpenSpec's archive step can replace the 'author as merged' rule for task files. (proposed) [sources: AGENTS.md]
  • How do Claude Code, Gemini and Copilot consume OpenSpec (slash commands or instructions)?: This is a decision that needs to be made based on the trial results. The agents would need specific instructions on how to interact with OpenSpec's format. (proposed) [sources: AGENTS.md]
  • Would one change folder per issue avoid shared-file conflicts with one pull request per issue?: This is a decision that needs to be made based on the trial results. The approach would need to be validated to ensure conflict resolution works properly. (proposed) [sources: AGENTS.md]
  • Try OpenSpec on one real item in a scratch branch and record the effort and friction.: This is the trial requirement that must be completed as part of this issue's deliverable. (proposed)

Open questions

  • Is OpenSpec maintained with a stable release cadence and a clear license? (missing verified source)
  • What does OpenSpec need at runtime (it is a Node tool)? (missing verified source)
  • Does OpenSpec fit the policy of reputable, maintained dependencies, and the devcontainer image? (missing verified source)

Fit

Needs splitting into 3 items:

  1. Create a comprehensive evaluation report on OpenSpec's viability for the project
  2. Implement the trial of OpenSpec on a real item
  3. Draft and finalize ADR 0006 documenting the decision on OpenSpec adoption

Suspected block

None.

Dependencies

#1750

Activity

  1. added
    type/docs
    scope/ci
    source/agent
    on Oct 20, 2026
  2. added
    priority/p1-high
    on Oct 20, 2026
  3. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    Proposal needs splitting into 3 items at 79eaacb (see proposed design in issue body).

  4. added this to the v0.2.39 milestone on Oct 21, 2026
  5. added a commit that references this issue on Oct 22, 2026
    8825b4e
  6. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1837, merged into release/v0.2.39 as 8825b4e.

    Summary

    ADR 0010 records the adoption of OpenSpec as the spec and change-proposal layer, so that project planning is consistent across Claude Code, Gemini CLI and Copilot. The in-cluster roadmap jobs join in the last two steps of the sequence. Each roadmap item becomes a change folder openspec/changes/<issue>-<slug>/ that replaces its task file, the release cut archives delivered changes into openspec/specs/ in merge order, and OpenSpec 1.14.3 is pinned in tools.lock, audited and run with telemetry off. The ADR answers the issue's five questions with sources and measurements, records a trial of #1805 with its effort and friction, tries each design decision against 1.14.3 in scratch repositories, quotes the AGENTS.md rewrite (built against b2d362f, 39,981 of 40,000 characters), lists every rule, check and test that changes, gives the ordered sequence of eight items and the transition rule, and takes two decisions that merging confirms: the switch lands in the release after the one holding steps 1 to 4, and the roadmap Service image carries Node. No code changes. #1833 already delivered the open-tools rule and the form field.


    3 file(s) changed.

    How it was verified

    Check runs at 9da350e:

    • Audit Defect PR Hardening: skipping
    • Prune PR DevContainer Images: pass
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • DevContainer Image: skipping
    • Changed-Test Independence: pass
    • Analyze (actions): pass
    • Fail-to-Pass Check: pass
    • Rule Pack Tests: pass
    • Fail-to-Pass Self-Check: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Static Analysis: pass
    • Dependency Freshness: skipping
    • Service Image: skipping

    Acceptance Criteria of docs/agent/tasks/task-1753-openspec-adoption.md:

    • Questions 1-5 are answered in ADR 0010 with sources: the npm registry, the GitHub repository and its releases, the license, the 1.14.3 tarball and the agents' documentation.
    • One trial change is recorded in ADR 0010 with its effort (files and words against fix(release): the release job stops when its tag already exists on another commit, and never replaces a published release's assets #1805's task file and fragment) and its friction, each friction answered.
    • ADR 0010 states adopt, and what changes in AGENTS.md (quoted), readiness, the closing comment, the cut, the docs inventory and the task-file tests.
    • ADR 0010 gives the sequence of items with their sizes and the transition rule, and the two decisions it takes.
  7. added 2 commits that reference this issue on Oct 23, 2026
    f209f6c
    64e74dd
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

    priority/p1-highscope/cisource/agenttype/docs

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions