Skip to content

chore(docs): remove docs/RELEASE_NOTES.md and devops docs compact #881

Closed

Description

@dan-petty

Decision (owner, 2026-10-22)

The owner decided to delete docs/RELEASE_NOTES.md. This item does that work. The owner also decided to stop committing the generated CLI and MCP reference pages. If the item "refactor(docs): CLI and MCP reference pages are built when the docs publish instead of being committed" exists, the Pages workflow builds them. If the generated pages are still committed when this item lands, regenerate them as before. After that item lands, nothing needs regeneration.

ADR 0012 (docs/adr/0012-releases-are-derived-by-release-please-from-trunk-and-milestones-are-planning-buckets.md) records the deletion in its Decision 13. It puts this item at step 11 of its 14 steps.

Context & Rationale

  • docs/RELEASE_NOTES.md has 36 lines. It holds a summary of the v0.1 series, a summary of the v0.2 series up to v0.2.18, and a list of requirements.
  • It describes no later release. A GitHub Release holds the notes of each release. CHANGELOG.md keeps its 53 hand-written sections as history. After ADR 0012, release-please writes each new section from the pull request titles.
  • One reader of the file remains. It is the devops release notes fallback: _extract_docs_release_notes (src/devops_cli/release/cut.py:223) and _resolve_release_notes (cut.py:341). refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863 deletes cut.py whole.
  • Pages publishes docs/ from main, and docs/_config.yml excludes only agent/. So the file is a published page today.
  • devops docs compact compacts three files: docs/ROADMAP.md, docs/RELEASE_NOTES.md and docs/LOG.md. docs/LOG.md does not exist.
  • docs/ROADMAP.md is rendered from GitHub (ADR 0001), and no release writes it (ADR 0012). So it needs no compaction.
  • When docs/RELEASE_NOTES.md goes, the command has no file left to compact. The command, its code and its tests become dead code.
  • One step of the old release routine used the command: "Historical Documentation Compaction". That routine ends with the old pipeline.

Existing tool considered

  • The capability is to keep long release history short. GitHub Releases hold one body for each release. release-please writes the CHANGELOG.md sections from the pull request titles. ADR 0012 adopts both. So the repository needs no compactor.
  • This item builds nothing. It deletes code. So the rule "Open Tools Before Internal Code" owes no build cost.
  • ADR 0012 gives no figure for step 11. This item states the tokens and the elapsed time of the deletion before work starts.

Scope & Deliverables

  • Deliverable: remove the following, with no shims. Line counts come from the repository tip f3b17488.
    • Delete four whole files:
      • docs/RELEASE_NOTES.md (36 lines);
      • src/devops_cli/docs/compactor.py (547 lines);
      • tests/test_docs_compactor.py (514 lines);
      • src/devops_cli/exceptions/docs.py (52 lines). It holds only DocCompactionError and one private helper that no other module imports.
    • Edit seven other files, about 200 lines in all:
      • src/devops_cli/commands/docs.py: delete lines 251 to 414 (the compact section) and the TYPE_CHECKING import at lines 9 and 10. Remove each import that becomes unused.
      • src/devops_cli/docs/__init__.py: delete the import of devops_cli.docs.compactor (lines 5 to 9) and the three names in __all__.
      • src/devops_cli/exceptions/__init__.py: delete the import at line 21 and the name at line 121.
      • src/devops_cli/config/constants.py: delete the MCP exposure row ("docs", "compact") (line 296), the inventory entry docs/RELEASE_NOTES.md (line 768) and CONST_ERROR_CODE_DOC_COMPACTION (line 1864).
      • src/devops_cli/lang/en/help.py: delete lines 827 to 838 (eight fields).
      • src/devops_cli/lang/en/messages.py: delete lines 517 to 529 (five fields).
      • tests/test_fastmcp_contracts.py: delete the name docs_compact (line 68).
    • Delete the link to the file in README.md (line 145).
    • The MCP tool docs_compact has no code of its own. The exposure table in constants.py generates it. So the row removal removes the tool.
    • The docs MCP domain exists only for that tool. Delete "docs" from CONST_MCP_LAZY_DOMAINS (constants.py:220) and from _PREFIX_TO_DOMAIN (src/devops_cli/ai/mcp/dispatcher.py:52). First run git grep -n 'docs_' -- src/devops_cli/ai/mcp. It must find no other tool with that prefix.
    • If the generated pages are still committed, run uv run devops docs generate --sync-readme. It updates docs/commands/docs.md, docs/CLI_REFERENCE.md, docs/MCP_TOOLS.md, docs/ERRORS.md and the command matrix in README.md (line 354). Do this before the push. The pre-push docs pre-fix rewrites them otherwise.
  • Left to other items: this item does not touch these mentions.
  • Acceptance criteria: each line is a command that a person or a test runs.
    • git grep -nE 'RELEASE_NOTES\.md|docs\.compactor|DocCompact|DOC_COMPACTION|docs_compact|docs compact' -- src tests docs README.md AGENTS.md ':!docs/agent' ':!docs/adr' ':!docs/ROADMAP.md' ':!CHANGELOG.md' prints nothing.
    • test ! -e docs/RELEASE_NOTES.md succeeds.
    • uv run devops docs compact --help exits with code 2.
    • uv run devops docs check exits 0. It fails on an inventory entry that matches no file. It also fails on a document that names a missing command.
    • uv run devops ci test tests/test_mcp.py tests/test_fastmcp_contracts.py tests/test_docs_inventory.py passes. These tests show that the exposure table, the tool list and the inventory agree.
    • The hydrate_tool_domain tool reports unknown domain: docs.
    • uv run devops ci passes with coverage of at least 90.0 percent and no new deprecation warning. The run is no slower than before.
  • Key questions:
    • Should docs compact stay for CHANGELOG.md? No. It never compacted that file. Its options cover only docs/ROADMAP.md, docs/RELEASE_NOTES.md and docs/LOG.md. release-please writes new sections from titles. The 53 older sections stay as history.
  • Constraint: nothing that reads release notes remains. refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863 deletes devops release notes. GitHub Releases and CHANGELOG.md hold the notes.

Order & Delivery

Pending a person

  • Pending a person: approve and squash-merge the pull request after devops pr monitor exits 0. Agents never merge.
  • Pending a person: after the merge, check that the published site no longer serves the RELEASE_NOTES page. Check also that no page outside this repository links to it.

Strategic Alignment

Split off #739 during a readiness review (2026-10-01). Rewritten for ADR 0012 on 2026-10-22: no release writes the roadmap or the release notes, so the compactor has nothing left to compact.

Activity

  1. added
    type/chore
    priority/p3-low
    scope/docs
    on Oct 1, 2026
  2. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Delivered by #1952: it deletes docs/RELEASE_NOTES.md and devops docs compact with its compactor.

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/p3-lowscope/docstype/chore

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions