Repository navigation
Description
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-readinessrequires the task file of the issue that the pull request closes (_changes_its_task_fileinsrc/devops_cli/commands/pr.py, withCONST_AGENT_TASK_FILE_REandCONST_AGENT_TASKS_DIR).tests/test_agent_task_files.pyandtests/fixtures/task_files_baseline.txtcheck every task file.uv run devops openspec archive <change>(openspec archive <change> --yes, thenopenspec validate --all --strict) and theopenspecrow ofdevops cialready exist.openspec/config.yamlalready 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
mainand 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 addopenspec/changes/archive/<date>-<issue>-<slug>/for the one issue it closes, whichopenspec archivewrites in the pull request's last commit. A pull request that writesopenspec/specs/**or the archived folder of another issue is blocked. The rule applies where the base holdsopenspec/changes/. A failingopenspeccheck run already blocks through the check-run rule. The closed grammars of the active and archived folder names live inconfig/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
## Feasibilitysection"),.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 toopenspec/specs/**without the issue's archive is blocked; a base withoutopenspec/changes/is exempt.- A decommission test keeps
docs/agent/tasksout ofsrc/,tests/,.github/and the hand-written documents. tests/test_agents_md_claims.pyholds the AGENTS.md cap of 40,000 characters.
Acceptance criteria
-
devops pr check-readinesspasses 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.mdand the listed documents name change folders only. -
devops docs checkanduv run devops cipass, with theopenspecrow green on this pull request's own archived change.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 22, 2026
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.
The candidate introduces a new feature related to replacing task files with OpenSpec change folders.This change is part of a larger adoption plan for OpenSpec and addresses significant friction in the current workflow.The change improves developer experience by eliminating task files and streamlining the planning and implementation process.The change requires modifications to readiness checks, closing comments, and related tests, but is not overly complex.dan-petty commentedon Oct 22, 2026
Status set to Ready at ae8c2d9 (see proposed design in issue body).
refactor(openspec): delete the code that archived changes at the rele…
feat(release): v0.2.39 (#1947)
[-]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[/+]feat(sdlc): an OpenSpec change folder is the record of every item, an…
feat(sdlc): an OpenSpec change folder is the record of every item, an…
feat(sdlc): an OpenSpec change folder is the record of every item, an…
feat(sdlc): an OpenSpec change folder is the record of every item, an…
feat(sdlc): an OpenSpec change folder is the record of every item, an…
refactor(sdlc): the task files that merged after the openspec switch …
refactor(sdlc): the task files that merged after the openspec switch …