Skip to content

feat(sdlc): an OpenSpec change folder is the record of every item, and readiness checks its archive #1847

Closed

Description

@dan-petty

Friction

The owner decided on 2026-10-23 that new work uses OpenSpec and that planned work migrates to it where feasible. ADR 0010 makes an OpenSpec change folder the record of an item, but readiness still requires a task file (docs/agent/tasks/task-<issue>-<slug>.md). So no item can be planned as a change today: openspec/changes/ holds only archive/, and openspec/specs/ is empty. About 600 task files sit in docs/agent/tasks/, and keeping both records would leave two sources of truth for one item.

Evidence

  • devops pr check-readiness requires the task file of the issue that the pull request closes (_changes_its_task_file in src/devops_cli/commands/pr.py, with CONST_AGENT_TASK_FILE_RE and CONST_AGENT_TASKS_DIR).
  • tests/test_agent_task_files.py and tests/fixtures/task_files_baseline.txt check every task file.
  • uv run devops openspec archive <change> (openspec archive <change> --yes, then openspec validate --all --strict) and the openspec row of devops ci already exist. openspec/config.yaml already tells an agent that the pull request that closes the issue archives its own change.
  • Since feat(release): release-please makes every release from main #1952 every pull request targets main and closes exactly one issue, so the pull request that delivers an item also archives its change.

Existing tool considered

OpenSpec (pinned in tools.lock) is the tool. This item deletes the task-file machinery. It adds only the readiness predicate that reads a pull request's changed paths against its issue number, because no open tool does that.

The change

One pull request, because readiness, the documents and the tests must not disagree.

  • Readiness (commands/pr.py): the pull request must add openspec/changes/archive/<date>-<issue>-<slug>/ for the one issue it closes, which openspec archive writes in the pull request's last commit. A pull request that writes openspec/specs/** or the archived folder of another issue is blocked. The rule applies where the base holds openspec/changes/. A failing openspec check run already blocks through the check-run rule. The closed grammars of the active and archived folder names live in config/constants.py.
  • Deleted: the task-file predicate, CONST_AGENT_TASKS_DIR, CONST_AGENT_TASK_FILE_RE, the task-file messages, tests/test_agent_task_files.py, its baseline, docs/agent/tasks/ and the task template. Git history keeps the old task files.
  • Documents: AGENTS.md (the task-file bullets become one "Change folders" bullet; "Record how in the proposal's ## Feasibility section"), .github/pull_request_template.md ("Change: openspec/changes/<issue>-<slug>/"), CONTEXT.md, docs/SDLC.md, docs/ROUTINE_TASKS.md, docs/SELF_IMPROVEMENT.md, docs/TESTING.md, docs/agent/README.md, the knowledge base guides, the instruction generator, review routing (CONST_REVIEW_ROUTED_PATH_PATTERNS) and the generated references.
  • Its own record: this pull request plans itself as openspec/changes/1847-<slug>/ and archives it in its last commit.
  • Work in flight: a pull request open at the switch converts its task file into a change folder when it updates from main.

This item also delivers the rest of #1846: readiness checks the archived folder. Its first part, the deletion of the cut-time archive code, merged in #1925.

Tests

  • tests/test_pr_cmd.py: a pull request that adds the archived folder of its issue passes; one with no folder, an active (unarchived) folder, or the folder of another issue is blocked, and the message names the expected folder; a write to openspec/specs/** without the issue's archive is blocked; a base without openspec/changes/ is exempt.
  • A decommission test keeps docs/agent/tasks out of src/, tests/, .github/ and the hand-written documents.
  • tests/test_agents_md_claims.py holds the AGENTS.md cap of 40,000 characters.

Acceptance criteria

  • devops pr check-readiness passes a pull request that adds the archived change folder of the issue it closes, and blocks the cases above.
  • docs/agent/tasks/, its test, its baseline and every code path and message that read task files are gone.
  • AGENTS.md, the pull request template, CONTEXT.md and the listed documents name change folders only.
  • devops docs check and uv run devops ci pass, with the openspec row green on this pull request's own archived change.

Activity

  1. added
    source/agent
    type/feature
    on Oct 22, 2026
  2. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/feature. The candidate introduces a new feature related to replacing task files with OpenSpec change folders.
    • Priority: P1-High. This change is part of a larger adoption plan for OpenSpec and addresses significant friction in the current workflow.
    • Value: High. The change improves developer experience by eliminating task files and streamlining the planning and implementation process.
    • Effort: Medium. The change requires modifications to readiness checks, closing comments, and related tests, but is not overly complex.
  3. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Status set to Ready at ae8c2d9 (see proposed design in issue body).

  4. changed the title [-]feat(sdlc): replace task files with OpenSpec change folders[/-] [+]feat(sdlc): an OpenSpec change folder is the record of every item, and readiness checks its archive[/+] on Oct 23, 2026
  5. added 4 commits that reference this issue on Oct 24, 2026
    ecd5960
    e645973
    c6a09de
    2cbe3c9
  6. added a commit that references this issue on Oct 24, 2026
    2638317
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

    source/agenttype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions