Repository navigation
Description
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.mdhas 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.mdkeeps 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 notesfallback:_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 deletescut.pywhole. - Pages publishes
docs/frommain, anddocs/_config.ymlexcludes onlyagent/. So the file is a published page today. devops docs compactcompacts three files:docs/ROADMAP.md,docs/RELEASE_NOTES.mdanddocs/LOG.md.docs/LOG.mddoes not exist.docs/ROADMAP.mdis rendered from GitHub (ADR 0001), and no release writes it (ADR 0012). So it needs no compaction.- When
docs/RELEASE_NOTES.mdgoes, 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.mdsections 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 onlyDocCompactionErrorand 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 (thecompactsection) and theTYPE_CHECKINGimport at lines 9 and 10. Remove each import that becomes unused.src/devops_cli/docs/__init__.py: delete the import ofdevops_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 entrydocs/RELEASE_NOTES.md(line 768) andCONST_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 namedocs_compact(line 68).
- Delete the link to the file in
README.md(line 145). - The MCP tool
docs_compacthas no code of its own. The exposure table inconstants.pygenerates it. So the row removal removes the tool. - The
docsMCP domain exists only for that tool. Delete"docs"fromCONST_MCP_LAZY_DOMAINS(constants.py:220) and from_PREFIX_TO_DOMAIN(src/devops_cli/ai/mcp/dispatcher.py:52). First rungit 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 updatesdocs/commands/docs.md,docs/CLI_REFERENCE.md,docs/MCP_TOOLS.md,docs/ERRORS.mdand the command matrix inREADME.md(line 354). Do this before the push. The pre-push docs pre-fix rewrites them otherwise.
- Delete four whole files:
- Left to other items: this item does not touch these mentions.
AGENTS.md:172, the bullet "Historical Documentation Compaction". Step 6 (feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861) replaces section 3 ofAGENTS.mdwhole.docs/ROUTINE_TASKS.md:51and:277. Step 9 (the docs(workflow) item) rewrites them.- The readers in
src/devops_cli/release/cut.pyand the testtest_release_notes_fallback_to_docsintests/test_release.py(line 991). refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863 (step 10) deletes both files.
- 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.mdsucceeds.uv run devops docs compact --helpexits with code 2.uv run devops docs checkexits 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.pypasses. These tests show that the exposure table, the tool list and the inventory agree.- The
hydrate_tool_domaintool reportsunknown domain: docs. uv run devops cipasses with coverage of at least 90.0 percent and no new deprecation warning. The run is no slower than before.
- Key questions:
- Should
docs compactstay forCHANGELOG.md? No. It never compacted that file. Its options cover onlydocs/ROADMAP.md,docs/RELEASE_NOTES.mdanddocs/LOG.md. release-please writes new sections from titles. The 53 older sections stay as history.
- Should
- 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 andCHANGELOG.mdhold the notes.
Order & Delivery
- This item is step 11 of 14 in ADR 0012. It merges only after the old pipeline publishes v0.2.39. ADR 0012 allows no other step to merge before that moment.
- It merges after these items:
- feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861, step 6: the swap to release-please, with the new
AGENTS.mdsection 3; - the item "docs(workflow): the instructions describe trunk, derived versions and the release pull request", step 9;
- refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863, step 10: the deletion of the bespoke release machinery.
- feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861, step 6: the swap to release-please, with the new
- The reason is the rule of
devops docs check. It fails on a document that names a missing command.docs/ROUTINE_TASKS.md:277namesdevops docs compact. Step 10 also removes the last reader of the file. - Until steps 6, 9 and 10 merge, the first acceptance command finds
AGENTS.md:172,docs/ROUTINE_TASKS.md:51,docs/ROUTINE_TASKS.md:277andsrc/devops_cli/release/cut.py. - One pull request delivers the item. It targets
main. Its title ischore(docs): remove docs/RELEASE_NOTES.md and devops docs compact. The title is the squash subject. choreis a hidden type. This pull request makes no release alone and no changelog entry.- The body says
Closes #881. The pull request adds no changelog fragment and noCHANGELOG.mdedit. It does not sayPart of. - The pull request carries the record of this issue that readiness requires when it merges.
- Today the record is a task file:
docs/agent/tasks/task-881-<slug>.md. - After feat(sdlc): an OpenSpec change folder is the record of every item, and readiness checks its archive #1847, the record is an OpenSpec change folder. After feat(openspec): the pull request that closes a change archives it, and readiness checks the archived folder #1846, the pull request archives it as its last commit.
openspec/specs/holds no spec today, so no spec namesdevops docs compact. The author states in the change folder that no requirement changes.
- Today the record is a task file:
- If the item "refactor(docs): CLI and MCP reference pages are built when the docs publish instead of being committed" exists, either order works with it. If that item lands first, nothing needs regeneration.
- test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334 lists
tests/test_docs_compactor.pyamong its test files. Whichever item lands second drops it.
Pending a person
- Pending a person: approve and squash-merge the pull request after
devops pr monitorexits 0. Agents never merge. - Pending a person: after the merge, check that the published site no longer serves the
RELEASE_NOTESpage. Check also that no page outside this repository links to it.
Strategic Alignment
- Milestone: none. A milestone is a planning bucket, and it does not set a version.
- Depends on: feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861, the item "docs(workflow): the instructions describe trunk, derived versions and the release pull request", and refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863.
- Related: ADR 0012. feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739 (closed) madedocs/ROADMAP.mdgenerated. refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103 (closed) added the document inventory that lists the file. test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334 shares one test file.
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 23, 2026
Delivered by #1952: it deletes docs/RELEASE_NOTES.md and devops docs compact with its compactor.