Skip to content

refactor(sdlc): the task files that merged after the openspec switch are deleted, and the decommission check is strict #2041

Closed

Description

@dan-petty

Problem

#1847 (PR #2020) makes an OpenSpec change folder the record of every item and deletes the task files. Pull requests that were open before it still add task files, and the owner merges them while #2020 runs its checks. A strict check (the task directory must not exist) failed every time such a pull request merged first, so #2020 could not be merged for three hours.

So #2020 accepts task files that merge after its branch was made: the docs inventory keeps the glob docs/agent/tasks/task-*.md, and the decommission test allows that one glob in the source and only task-*.md files in the directory.

Proposed fix

After #2020 merges, readiness refuses a new pull request that adds a task file, so no more task files can land. Then:

  • Delete every file under docs/agent/tasks/.
  • Remove the glob from CONST_DOCS_INVENTORY and the allowance from test_the_task_files_are_decommissioned.
  • Make the test strict again: the directory does not exist, and no code, test, manifest, GitHub file or hand-written document names it.

Acceptance criteria

  • docs/agent/tasks/ does not exist on main.
  • test_the_task_files_are_decommissioned requires that the directory does not exist and allows no mention of it.
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

    scope/agenttype/refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions