Skip to content

docs(agents): task files carry no status, milestone or priority and are written only by the delivering pr #879

Closed

Description

@dan-petty

Context & Rationale

ADR 0001 says task files stop carrying status, milestone and priority, because GitHub owns them. At ef21785 they still carry all three, and many were written before any work started.

Scope & Deliverables

  • Deliverable:
    • Remove the **Status**, **Milestone** and **Priority** lines from every task file. **Issue** and **Scope** stay.
    • Delete every task file whose Status is not Done at this PR's base (67 at ef21785). The issue keeps the record, and git keeps the file.
    • tests/test_agent_task_files.py checks that a task file links its issue, has no PR field, and has no Status, Milestone or Priority line.
    • docs/agent/tasks/README.md: the template drops the three lines. "Lifecycle States" becomes one paragraph, saying that:
      • the task file is written only in the PR that delivers the item;
      • status, release and priority live on GitHub.
    • AGENTS.md (:70-72, :121, :166, :173-187, :236, :312, :322) says three things:
      • no task file is written before implementation;
      • a task file holds no status;
      • bugs are filed as issues, not mirrored into task files or docs/ROADMAP.md.
  • Acceptance criteria:
    • rg -l '^\*\*(Status|Milestone|Priority)\*\*' docs/agent/tasks prints nothing.
    • The reviewer checks that the deleted files are exactly the files that were not Done at the base. git diff --name-only --diff-filter=D <base>... -- docs/agent/tasks must match git grep -L '^\*\*Status\*\*: Done' <base> -- 'docs/agent/tasks/task-*.md'.
    • A test gives the check a task file that has a **Status** line, and the check fails.
    • The reviewer reads the hits of rg -n -i 'task file' AGENTS.md. No rule asks for a task file before implementation, or for a status in it.
    • The new test runs offline in under 1 s. uv run devops ci passes.
  • Key questions:
  • Constraint:

Strategic Alignment

Split off #739 during the v0.2.25/v0.2.26 readiness review (2026-10-01): The original #739 scope included rewriting all 301 task files and deleting the 67 that were written before implementation. That work is independent of the GitHub migration and mechanical, and it touches 300+ files. ADR 0001 names it as a consequence. Splitting it off keeps #739 to one reviewable PR.

Update 2026-10-08: refinement

#739 and #704 landed, and readiness only asks a PR to change its task file, so this is unblocked. 450 task files carry **Status** (50 Backlog), and new files still add all three lines; the template (docs/agent/tasks/README.md:11, :42-44, :61-71) and tests/test_agent_task_files.py:12, :53 still require them. AGENTS.md rules moved to :72-74, :177-190, :408-413. The bug-mirroring rule is gone (AGENTS.md:106).

Activity

  1. added
    type/docs
    priority/p2-medium
    scope/docs
    on Oct 1, 2026
  2. dan-petty commented on Oct 2, 2026

    @dan-petty
    OwnerAuthor

    More evidence for this issue from the devsecops review session 20261001-224227 (2026-10-02). Each finding below was triaged against release/v0.2.25 (c279c18), judged real and covered by this issue, and then upheld by a second agent that tried to refute it.

    • Documentation Style - Redundant Phrasing in Commit Standards (AGENTS.md:177-179, re-rated LOW): The same rule appears twice. AGENTS.md:177-179 ('Commit Context Mandate...': task-file updates 'MUST ONLY be made in the context of the functional changes', never standalone commits or post-merge status PRs) is restated at AGENTS.md:237 ('No Standalone Agent Tracking Commits & Zero Post-Merge Status PRs ... MUST NEVER be committed as standalone one-off commits or follow-up PRs'). The finding misdescribes this a little: the quoted phrase appears only once, at :237, but the rule really is stated twice. Open issue docs(agents): task files carry no status, milestone or priority and are written only by the delivering pr #879 rewrites exactly these AGENTS.md lines (:173-187, :236) into three …
  3. dan-petty commented on Oct 8, 2026

    @dan-petty
    OwnerAuthor

    Linked: #1303 and #1348. All three change tests/test_agent_task_files.py, and #1348 also edits the task template this item trims; whichever lands second rebases. Found by the 2026-10-08 backlog review.

  4. added this to the v0.2.37 milestone on Oct 17, 2026
  5. dan-petty commented on Oct 17, 2026

    @dan-petty
    OwnerAuthor

    Moved to v0.2.37: v0.2.37 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)

  6. dan-petty commented on Oct 18, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1660, merged into release/v0.2.37 as 1dc723b.

    Summary

    Task files historically carried **Status**, **Milestone**, and **Priority** fields. This metadata led to drift between markdown files and GitHub Projects v2, and created unnecessary administrative commits when updating statuses. Under ADR 0001, GitHub is the single source of truth for task status, release milestones, and priority; task files are solely an implementation record authored by the delivering pull request.

    • Stripped **Status**, **Milestone**, and **Priority** lines from all 504 existing task files in docs/agent/tasks/.
    • Deleted 36 non-Done task files whose work has not been implemented.
    • Updated tests/test_agent_task_files.py to enforce that task files link their issue, have no PR field, and carry no Status, Milestone, or Priority lines. Added parameterized negative contract tests.
    • Updated docs/agent/tasks/README.md to drop metadata fields from the template and document that status, release milestone, and priority live on GitHub.
    • Updated AGENTS.md and github_project_management.md so no instruction asks for a task file before implementation or for a status in it; task files are authored only by delivering pull requests.
    • Added deliverable task file docs/agent/tasks/task-879-task-files-no-status.md and changelog fragment changelog.d/879.md.

    Closes #879

    546 file(s) changed.

    How it was verified

    Check runs at be7a205:

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

    Acceptance Criteria of docs/agent/tasks/task-879-task-files-no-status.md:

    • Removed **Status**, **Milestone**, and **Priority** lines from every task file in docs/agent/tasks/task-*.md.
    • Deleted every task file whose Status was not Done at base (origin/release/v0.2.37).
    • Updated tests/test_agent_task_files.py to enforce that task files link their issue, have no PR field, and have no Status, Milestone, or Priority line; added test verifying forbidden metadata lines raise AssertionError.
    • Updated docs/agent/tasks/README.md to drop metadata fields from template and document that status, release milestone, and priority live on GitHub.
    • Updated AGENTS.md so no rule asks for a task file before implementation or for a status in it.
    • Added deliverable task file and changelog fragment changelog.d/879.md.
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/p2-mediumscope/docstype/docs

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions