Repository navigation
Description
Decision (owner, 2026-10-22)
The owner decided to stop committing the generated CLI and MCP reference pages. The Pages workflow builds them (item "refactor(docs): CLI and MCP reference pages are built when the docs publish instead of being committed"). The generated class of the inventory then covers no committed reference page. devops docs check verifies command names in hand-written and prompt documents only. The owner also decided to delete docs/RELEASE_NOTES.md (issue #881). A separate item replaces the inventory table with classes by directory (item "refactor(docs): documents are classified by directory, CLAUDE.md imports AGENTS.md and rules may move to path-scoped files"), and this paragraph replaces any conflicting text below.
Ready: implementation plan (refined 2026-10-17 at 3dd7fa6)
This section supersedes any text below that conflicts with it.
Decisions
- The criterion "the cut-time collection fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450 adds is deleted" is dropped. The owner reversed this item's merge-time design on 2026-10-09 (fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450: one cut commit bumps the version, collects
changelog.d/and rendersdocs/ROADMAP.md), and fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 (owner, 2026-10-10) keeps that cut. Release artifacts are what the cut writes, and nothing else writes them. - "No release-process pull request after the cut" is already met by fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450: a fix after the cut edits the version's
CHANGELOG.mdsection in its own pull request, and readiness accepts it (src/devops_cli/commands/pr.py:1622). The only release-process pull requests left are the cut itself and a merge ofmain(fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344), never a catch-up docs pull request. CHANGELOG.mdanddocs/ROADMAP.mdstay committed, as release artifacts. The cut writes both (CUT_FILES,src/devops_cli/roadmap/close.py:72, and the render atsrc/devops_cli/commands/roadmap.py:477), and readiness keeps item pull requests out of them.- The inventory is code, not a document: a table in
src/devops_cli/config/constants.pythat maps path globs to a class, beside theCONST_HANDWRITTEN_DOCS_PATHSit replaces (:261). A test requires everygit ls-files '*.md'path to match exactly one glob, so a new document must be classified in the pull request that adds it. The classes:- generated:
docs/CLI_REFERENCE.md,CONFIGURATION.md,ENV_VARS.md,ERRORS.md,KNOWLEDGE_BASE.md,MCP_TOOLS.md,TELEMETRY.mdanddocs/commands/*.md, written byDocGenerator(src/devops_cli/docs/generator.py:1175-1199) and checked bydevops docs check; alsoCLAUDE.mdand.github/copilot-instructions.md, checked byte for byte (tests/test_agents_md_claims.py:82). A test keeps this class equal to the generator's outputs. - release artifact:
CHANGELOG.md,docs/ROADMAP.md, anddocs/RELEASE_NOTES.mduntil chore(docs): remove docs/RELEASE_NOTES.md anddevops docs compact#881 removes it. - record:
docs/agent/tasks/task-*.md,docs/agent/archive/**,docs/adr/*.mdandchangelog.d/<n>.md. They are history, never rewritten to match later code, so no name check applies: at 3dd7fa6, 46 command lines inCHANGELOG.mdand one in ADR 0001 name commands that are gone, and they should. - prompt:
src/devops_cli/ai/tasks/**,ai/prompts/**andai/personas/**, loaded by code at run time. - hand-written: every other Markdown file, the knowledge base included.
- generated:
- Gate one, names, for every hand-written and prompt document: docs: hand-written docs name only commands, options and components that exist #921's command-line check (
src/devops_cli/docs/markdown_argv_collector.py:203-227) reads its documents from the inventory instead of a hand list. One collector replaces both today's lists, the knowledge base's (:197) included. A listed document that is missing fails instead of being skipped (:216). Measured at 3dd7fa6: the documents the list misses resolve cleanly, except the 9 cheatsheets (23 command lines that name commands or options that don't exist) anddocs/SELF_IMPROVEMENT.md:1123. The prompts resolve cleanly too. - Gate two, coupling, for documents that describe one process step by step: a map in
constants.pyfrom each such document to the source globs it describes. The first entries:RELEASE_CYCLE.md:src/devops_cli/release/**,src/devops_cli/commands/release.py,src/devops_cli/roadmap/close.py,.github/workflows/release.yml;changelog.d/README.md:src/devops_cli/release/changelog_fragments.py;docs/agent/tasks/README.md:tests/test_agent_task_files.py;k8s/README.md:src/devops_cli/commands/k8s/stack_lifecycle.py,src/devops_cli/k8s/argocd_overrides.py,k8s/argocd/bootstrap/**;tf/README.md:tf/**/*.tf;docs/DEVCONTAINER_USAGE.md:.devcontainer/devcontainer.json,.devcontainer/Dockerfile.- Every glob must match at least one tracked file (a test), so the map can't go stale silently. A hand-written document outside the map has the name gate only.
- How the coupling gate decides:
devops docs checkdiffs the merge base ofHEADand the base ref against the working tree, so uncommitted work counts. A mapped document whose globs match a changed path, while the document itself is unchanged, fails, naming the document and the paths. A commit in<merge base>..HEADcan carry the trailerDocs-Unaffected: <document path> <reason>, read withgit log --format=%(trailers:key=Docs-Unaffected,valueonly). That trailer passes that one document, and the check prints it. Without a recorded way to say "still true", a gate on whole files forces empty edits. The trailer keeps every exception named, with its reason, in the history the reviewer reads. - The base ref:
--base, thenorigin/$GITHUB_BASE_REFin a pull request run, then the newestrelease/vX.Y.Zonorigin(_detect_active_release_branch,pr.py:94, moved tosrc/devops_cli/git/operations.py), thenorigin/main. With none of them, the check fails, naming--base. It fails closed when git can't diff:list_changed_files(git/operations.py:363) returns an empty list on failure, so the gate uses a variant that raises, sharing_parse_name_status. - CI: the
Static Analysisjob's checkout (.github/workflows/ci.yml:41-44) fetches the full history, as the test job's does (:75-79), so the merge base exists.devops ci's cache key gains the merge-base sha and the trailers, because its fingerprint is content-only (compute_workspace_fingerprint,src/devops_cli/ci/cache.py:246) and must not serve an earlier pass. - Deletions:
docs/cheatsheets/(9 files) and theREADME.md:42link to it. 23 of their command lines name commands or options that don't exist (devops tofu,devops docker ps,devops scan all, …), and the commands they do show are in the generateddocs/CLI_REFERENCE.md. Nothing moves elsewhere.docs/RELEASE_NOTES.mdanddevops docs compactare chore(docs): remove docs/RELEASE_NOTES.md anddevops docs compact#881's, so this item does not take them. No other deletion is needed: every other hand-written document passes the name gate. docs/SELF_IMPROVEMENT.md:1123says "devops ai benchmark --suiteis gone". It names a removed option as a command line, so it is reworded to "the benchmark's--suiteoption is gone".- The rule text:
AGENTS.md:64gains one sub-bullet: change a document in the same pull request as the code it describes, never open a docs-only pull request to catch up, anddevops docs checkenforces it with the trailer as the only exception.generate_agents_md(src/devops_cli/ai/instruction_generator.py:164) writes the same rule into every generated AGENTS.md, andsrc/devops_cli/ai/tasks/generate_agents.mdasks the model for it.AGENTS.mdstays withinCONST_AGENTS_MD_MAX_CHARS(constants.py:147; 38,656 of 40,000 characters today). - The stale branch naming (
.github/pull_request_template.md:18,RELEASE_CYCLE.md:56,docs/agent/tasks/README.md:13) is fixed by fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344, which changes that convention. This item's own rule says a convention's documents change in the pull request that changes it. - The 2026-10-08 checklist item "AGENTS.md's
chore/cut-vX.Y.Znaming (:180,:232,:293)" is obsolete.AGENTS.mdhas 220 lines and nochore/cut.
Delivery
- PR 1 (M): Refs 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. The inventory, the name gate over every hand-written and prompt document, the cheatsheet deletion and the
SELF_IMPROVEMENT.mdrewording. Tests first:test_every_committed_markdown_file_has_exactly_one_classandtest_the_generated_class_is_what_the_generator_writes, intests/test_docs_inventory.py;test_every_hand_written_document_names_only_real_commands, which fails today on the 23 cheatsheet lines andSELF_IMPROVEMENT.md:1123;test_a_listed_document_that_is_missing_fails_the_name_gate.- Files:
src/devops_cli/config/constants.py,src/devops_cli/docs/markdown_argv_collector.py,src/devops_cli/docs/generator.py(:1236-1237),tests/test_docs_inventory.py,tests/test_docs_knowledge_base_argv.py,docs/cheatsheets/(deleted),README.md,docs/SELF_IMPROVEMENT.md,changelog.d/1103.md, anddocs/agent/tasks/task-1103-*.md.
- PR 2 (M): closes 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. The coupling gate in
devops docs check, the base resolution, the CI checkout depth, the cache key, and the rule inAGENTS.md, the generator and its task prompt. Tests first, over a temporary git repository with a base branch and a topic branch, intests/test_docs_coupling.py:- mapped code changed without its document fails, naming both;
- code and document changed together passes;
- a
Docs-Unaffectedtrailer for that document passes and is printed, and one naming another document does not; HEADat the base passes;- an unresolvable base fails, naming
--base; - a failing
git difffails; - every map glob matches a tracked file.
- In
tests/test_instruction_generator.py: the generated AGENTS.md holds the rule. - Files:
src/devops_cli/docs/coupling.py,src/devops_cli/commands/docs.py(check,:161),src/devops_cli/git/operations.py,src/devops_cli/commands/pr.py(the moved helper),src/devops_cli/commands/ci.py(the cache options),.github/workflows/ci.yml,src/devops_cli/config/constants.py,src/devops_cli/lang/en/help.pyandmessages.py,AGENTS.md,src/devops_cli/ai/instruction_generator.py,src/devops_cli/ai/tasks/generate_agents.md,CONTRIBUTING.md(the trailer), the generated docs, the two test files,changelog.d/1103.md(extended), and the task file.
Acceptance criteria
- Every committed Markdown file matches exactly one inventory class, and an unclassified new file fails
devops ci, naming it. - The generated class equals
DocGenerator's outputs plus the two instruction stubs. -
CHANGELOG.mdanddocs/ROADMAP.mdare classed as release artifacts, and the cut's collection and render are unchanged. -
devops docs checkresolves thedevopscommand lines of every hand-written and prompt document, and fails on a listed document that is missing.CONST_HANDWRITTEN_DOCS_PATHSis gone. -
docs/cheatsheets/is gone, andrg -n 'cheatsheets' README.md docs AGENTS.md -g '!docs/agent/**'prints nothing. - A change to a path a mapped document describes, without that document, fails
devops docs checkand sodevops ci, naming the document and the paths, unless a commit in the range carriesDocs-Unaffected: <document> <reason>. - The gate fails closed on an unresolvable base or a failed diff, and runs in CI's
Static Analysisjob against the pull request's base. - A cached
devops cipass is not reused after the merge base or the trailers change. -
AGENTS.md, the generated AGENTS.md and the generator's task prompt state the same-pull-request rule, andAGENTS.mdstays within 40,000 characters. -
changelog.d/1103.mdrecords the change.CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses.
Current references
- Cut collection and roadmap render:
src/devops_cli/release/cut.py:1068-1083,src/devops_cli/commands/roadmap.py:477 CUT_FILES:src/devops_cli/roadmap/close.py:72- Late-fix changelog exception:
src/devops_cli/commands/pr.py:1622 _detect_active_release_branch:src/devops_cli/commands/pr.py:94CONST_HANDWRITTEN_DOCS_PATHS:src/devops_cli/config/constants.py:257-269CONST_AGENTS_MD_MAX_CHARS:src/devops_cli/config/constants.py:147- Name gate:
src/devops_cli/docs/markdown_argv_collector.py:197(knowledge base),:203-227(hand-written), skip on a missing file at:216; called fromsrc/devops_cli/docs/generator.py:1236-1237 - Generated outputs:
src/devops_cli/docs/generator.py:1175-1199 devops docs check:src/devops_cli/commands/docs.py:161resolve_merge_base,list_changed_files:src/devops_cli/git/operations.py:351,:363- Static job checkout, test job checkout:
.github/workflows/ci.yml:41-44,:75-79 - Instruction stub test:
tests/test_agents_md_claims.py:82; AGENTS.md budget test::91 - AGENTS.md generator:
src/devops_cli/ai/instruction_generator.py:164; task prompt:src/devops_cli/ai/tasks/generate_agents.md - Rule's home in AGENTS.md:
AGENTS.md:64 - Cheatsheet link:
README.md:42; reworded line:docs/SELF_IMPROVEMENT.md:1123 - Critical-fix procedure (was
docs/RELEASE_CYCLE.md:213):RELEASE_CYCLE.md:217
Dependencies and order
- fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450, feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743, docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840, fix(ai): the knowledge base names only commands, options and components that exist #920, docs: hand-written docs name only commands, options and components that exist #921 and docs(review): SELF_IMPROVEMENT, AGENTS.md and the knowledge base describe the review loop as it runs #952: closed. - chore(docs): remove docs/RELEASE_NOTES.md and
devops docs compact#881 (backlog): removesdocs/RELEASE_NOTES.md,devops docs compactand the compactor. Until then the inventory classesdocs/RELEASE_NOTES.mdas a release artifact. Either order works: if chore(docs): remove docs/RELEASE_NOTES.md anddevops docs compact#881 lands first, PR 1 has no entry for the file; if it lands second, it deletes the entry with the file. - fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344 (v0.2.37): fixes the three stale naming lines. No shared code.
- refactor(github): pr readiness is one verdict module that the pr commands, the monitor and mcp consume #998 (v0.2.37): this item adds no readiness rule and changes no readiness code, so it doesn't wait for refactor(github): pr readiness is one verdict module that the pr commands, the monitor and mcp consume #998 or fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344, and they don't wait for it.
- feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343 and feat(github): a release pull request gets a set number of copilot passes, and later review threads become follow-up issues #1345 (v0.2.37): once PR 2 lands, a pull request that changes
src/devops_cli/release/**must changeRELEASE_CYCLE.mdor carry the trailer. Both plans already updateRELEASE_CYCLE.md. - fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 (blocked): keeps the cut-time collection this plan keeps.
- fix(git): git output the code parses is read NUL-separated, and git outcomes come from exit codes #1440 (backlog): the gate's raising diff reader parses
git diff -zwith_parse_name_statusand decides by exit code, as fix(git): git output the code parses is read NUL-separated, and git outcomes come from exit codes #1440 requires.
Problem
Committed files that describe the code or the release don't stay current with the change that makes them stale, so they need extra pull requests that add no value.
- Changelog after the cut. The cut PR collects
changelog.d/intoCHANGELOG.mdbefore the release merges (chore(release): cut v0.2.25: changelog fragments collected into CHANGELOG.md and the roadmap rendered from GitHub #1096). Any fix that lands after the cut needs another PR just to move its fragment into the section. v0.2.25 needed two: chore(release): cut v0.2.25: collect the late #1097 changelog fragment into the 0.2.25 section #1099 for fix(release): release notes over GitHub's body limits fall back to entry titles with a link to CHANGELOG.md, so a long release still publishes #1097 and chore(release): cut v0.2.25: collect the late #1100 changelog fragment into the 0.2.25 section #1102 for fix(security): Loki admits only the OpenTelemetry collector from otel, and persona exemplars always come from the review target's project #1100. - The roadmap at the cut.
docs/ROADMAP.mdis regenerated bydevops roadmap renderin the cut PR. It needed--ref release/v0.2.25, because the default branch doesn't have.github/roadmap.tomlyet. - Hand-written docs drift from the code. A whole item (docs(review): SELF_IMPROVEMENT, AGENTS.md and the knowledge base describe the review loop as it runs #952) was needed to bring
docs/SELF_IMPROVEMENT.md, AGENTS.md, the knowledge base and help text back in line with the review loop. docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 (AGENTS.md curated vs regenerated), fix(ai): the knowledge base names only commands, options and components that exist #920 (knowledge base names things that don't exist) and docs: hand-written docs name only commands, options and components that exist #921 (hand-written docs name things that don't exist) are the same class of problem.
Owner, 2026-10-03: "we commit as merged so that we don't have a bunch of silly documentation prs … changing the code without changing the documentation is a violation, and either the documentation needs to go or we need guardrails to prevent that from happening."
Acceptance criteria
- An inventory of every committed file that describes code, commands or releases, each classified as one of:
- generated: rebuilt by the change itself, and checked by
devops docs checkor an equivalent gate; - release artifact: made when the release merges or publishes, never by a PR;
- hand-written and gated: a check fails a PR that changes the described code without changing the doc;
- deleted.
- generated: rebuilt by the change itself, and checked by
- No release-process PR after the cut. Collecting the changelog and rendering the roadmap happen as the release merges or publishes. Either automation in
release.ymlwrites them, or they stop being committed files: the GitHub Release body comes from the fragments, and the roadmap is rendered on demand. A fix that lands after the cut needs no extra PR to reach the release notes. - Guardrail. A PR that changes code a kept doc describes, without changing that doc, fails
devops ciwith a message naming the doc. Generated docs keepdevops docs check. - Docs that can't be generated or gated are deleted. Their useful content moves to docstrings,
--helpor the knowledge base, which are generated or gated. - AGENTS.md and the generator say: change the docs in the same PR as the code; never open a docs-only PR to catch up.
Key questions
- Keep
CHANGELOG.mdas a committed file? Proposed: decide with the inventory. Options:- (a)
release.ymlcollects the fragments into it on merge to main and commits through the bot, which needs a rule exception; - (b) stop committing it: the Release body and a generated
CHANGELOG.mdview come from the fragments at publish.
- (a)
- Keep
docs/ROADMAP.mdcommitted? Proposed: no. GitHub is the source (ADR 0001), anddevops roadmap renderprints it on demand. - How does the guardrail know which doc describes which code? Proposed: a small declared mapping (doc → source globs) checked in CI, with docs not in the mapping counted as policy docs that the gate doesn't apply to. A reputable tool is preferred if one fits.
Strategic alignment
- P1. It removes a recurring source of extra PRs and documentation drift, and it is part of the self-improving release loop.
- Related: fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933 (fragments), feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739 and feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 (roadmap jobs), refactor(docs): writing and checking docs consume a generated doc set instead of regenerating it #774, fix(docs): generated reference docs fail closed and describe the real surface #854, docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840, fix(ai): the knowledge base names only commands, options and components that exist #920, docs: hand-written docs name only commands, options and components that exist #921, docs(review): SELF_IMPROVEMENT, AGENTS.md and the knowledge base describe the review loop as it runs #952.
Key question (added 2026-10-03)
- When are changelog fragments collected into the release's changelog section: in the cut commit, as feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743's original body did, or at merge or publish, as this item proposes? Decided (owner, 2026-10-03): this item's design. Fragments are collected when the release merges or publishes, never in a release-cut commit. feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 is amended to match: its cut no longer collects fragments or writesCHANGELOG.md, and the changelog part of feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 depends on this item. Until this item lands, fragments of a cut release stay inchangelog.d/, and this item's mechanism produces the section from them.
Update 2026-10-08: refinement
The owner's #1450 decision sets an interim: the automatic cut collects fragments in the cut commit, and a later fragment is collected by a person (docs/RELEASE_CYCLE.md:213). This replaces 'fragments of a cut release stay in changelog.d/'.
- The cut-time collection fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450 adds is deleted, and no collate pull request is needed after the cut.
- The inventory covers
changelog.d/README.mdand AGENTS.md'schore/cut-vX.Y.Znaming (:180,:232,:293).
Proposed design
Problem statement
Committed documentation files (CHANGELOG.md, docs/ROADMAP.md, AGENTS.md, knowledge-base articles, SELF_IMPROVEMENT.md, etc.) drift from the code they describe, forcing documentation-only pull requests to catch up. The changelog is collected and the roadmap rendered in the cut PR, so any fix landing after the cut needs an extra PR. Hand-written docs name things that do not exist or miss things that do. The goal is to eliminate all documentation-only PRs: release artifacts (changelog section, roadmap view) are produced when the release merges or publishes rather than in a cut commit; a CI guardrail fails any PR that changes code a kept doc describes without changing that doc; and docs that cannot be generated or gated are deleted with their useful content moved to generated or gated surfaces.
Acceptance criteria
- Criterion 1: An inventory exists that classifies every committed file describing code, commands, or releases as generated, release artifact, hand-written and gated, or deleted, and it covers changelog.d/README.md and AGENTS.md's chore/cut-vX.Y.Z naming at lines 180, 232, and 293.
Verification: The inventory file (or section in AGENTS.md) lists each path with its classification; a reviewer confirms changelog.d/README.md and the three AGENTS.md lines appear in the list. - Criterion 2: No release-process PR is needed after the cut: collecting the changelog and rendering the roadmap happen as the release merges or publishes, and the cut-time collection added by fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450 is removed.
Verification: release.yml (or an equivalent automation) contains the step that writes the changelog section and renders the roadmap on merge to main or on publish; the cut code path no longer collects changelog.d/ fragments or writes CHANGELOG.md; a fix landing after the cut reaches the release notes without an extra PR. - Criterion 3: A guardrail check in devops ci fails a PR that changes code a kept doc describes without changing that doc, with a message naming the doc; generated docs continue to be checked by devops docs check.
Verification: A test PR that modifies a source file covered by a kept doc's mapping but does not touch the doc fails devops ci with the doc's path in the error; a PR that modifies both passes; devops docs check still runs for generated docs. - Criterion 4: Docs that cannot be generated or gated are deleted, and their useful content is moved to docstrings, --help output, or the knowledge base (which are generated or gated).
Verification: The deleted files are absent from the tree; the content they held is present in the named generated or gated surface; devops ci passes. - Criterion 5: AGENTS.md and the instruction generator state that docs must change in the same PR as the code they describe and that a docs-only PR to catch up is never opened.
Verification: AGENTS.md contains the rule; the generator's devops-cli template contains the same rule; a test or grep confirms both.
Key questions
- Keep CHANGELOG.md as a committed file?: Decide with the inventory. Option (a): release.yml collects fragments into it on merge to main and commits through the bot (needs a ruleset exception). Option (b): stop committing it; the GitHub Release body and a generated CHANGELOG.md view come from the fragments at publish. The 2026-10-08 interim (fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450) keeps cut-time collection until this item lands, after which collection moves to merge or publish. (proposed)
- Keep docs/ROADMAP.md committed?: No. GitHub is the source of truth (ADR 0001), and devops roadmap render prints it on demand. The file is either deleted or kept only as a generated view that is not committed. (proposed) [sources: docs/adr/0001-github-is-the-roadmap-source.md]
- How does the guardrail know which doc describes which code?: A small declared mapping (doc path to source globs) checked in CI. Docs not in the mapping are treated as policy docs the gate does not apply to. A reputable tool is preferred if one fits the doc-to-source-glob pattern. (proposed)
- When are changelog fragments collected into the release's changelog section: in the cut commit, or at merge or publish?: Decided by the owner on 2026-10-03: fragments are collected when the release merges or publishes, never in a release-cut commit. feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743 is amended so its cut no longer collects fragments or writes CHANGELOG.md. The 2026-10-08 update (fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450) sets an interim where the cut collects fragments and a later fragment is collected by a person (docs/RELEASE_CYCLE.md:213); this item deletes that interim and moves collection to merge or publish. (proposed)
Open questions
- (a)
release.ymlcollects the fragments into it on merge to main and commits through the bot, which needs a rule exception; - (b) stop committing it: the Release body and a generated
CHANGELOG.mdview come from the fragments at publish.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 8, 2026
Two more stale release docs for this item's inventory, found while delivering #1294:
changelog.d/README.mdsays "The cut (devops release prepare) merges every fragment".cut_release, which--create-prandroadmap closeuse, collects no fragments; onlydevops release prepare X.Y.Zwithout--create-prdoes. In v0.2.28 a person collected fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config #1290's late fragment with chore(release): the v0.2.28 changelog takes #1290 and drops the argocd-source entry it replaced #1293 (chore/open-v0.2.28-collate-1290).chore/cut-vX.Y.Zintomain, butcut_releaseopens it fromrelease/vX.Y.Z.dan-petty commentedon Oct 8, 2026
Owner decision, 2026-10-08: the changelog-collection part of this item is carried by #1450, re-scoped to collect at the release merge or publish, as this item decided. #1450's first step settles this item's key question about keeping
CHANGELOG.mdcommitted. Until it lands, a person collects a release's fragments before its release pull request merges (RELEASE_CYCLE.md §7); v0.2.29 does that.dan-petty commentedon Oct 8, 2026
Linked: #1344, which narrows the
chore/openreadiness exemption (commands/pr.py:1459-1470) that this item makes unnecessary after the cut. Found by the 2026-10-08 backlog review.dan-petty commentedon Oct 9, 2026
Owner decision 2026-10-09
The rule that fragments are collected at merge or publish and never in a cut commit is reversed: the cut collects them, in the same commit as the bump (#1450). v0.2.30's release run failed on main because nothing collected them (#1473 merged green, recovery #1474). The rest of this item stands.
dan-petty commentedon Oct 14, 2026
Moved to the backlog: it was New, not Ready, when v0.2.36 started. (devops roadmap reprioritize)
dan-petty commentedon Oct 17, 2026
Readiness check for v0.2.37, against
release/v0.2.36at 22d8748. Line numbers are at that commit.Status: partly done. The body needs rewriting, then a split.
Done: the changelog part, by #1450 (closed in v0.2.33). The cut collects
changelog.d/fragments (src/devops_cli/release/cut.py:1068-1083) and writesdocs/ROADMAP.md(src/devops_cli/commands/roadmap.py:477). A late fix edits the version section in its own pull request, and readiness accepts it (src/devops_cli/commands/pr.py:1622). This reverses this issue's design (owner decision on 2026-10-09, recorded in #1450's task file as "Pending a person: edit #1103's body"), but the body still has the criterion "the cut-time collection #1450 adds is deleted".Not done: the inventory, the documentation-to-code guardrail, the deletions and the "same pull request" rule. Today the only checks are
devops docs check(src/devops_cli/commands/docs.py:161) and #921's argument check (src/devops_cli/config/constants.py:257).References that moved
docs/RELEASE_CYCLE.md:213is nowRELEASE_CYCLE.md:217, at the repository root.chore/cut..github/pull_request_template.md:18,RELEASE_CYCLE.md:56anddocs/agent/tasks/README.md:13.Dependencies: #1450, #743, #840, #920, #921 and #952 are all closed.
Questions for the owner
src/devops_cli/config/constants.py?docs/ROADMAP.mdstay committed? It is inCUT_FILES(src/devops_cli/roadmap/close.py:72).Proposed split
devops ciguardrail that diffs against the merge base, tested over a temporary git repository.dan-petty commentedon Oct 17, 2026
Moved to the backlog: it was New, not Ready, when v0.2.37 started. (devops roadmap reprioritize)
refactor(docs): classify every Markdown file and check the command na…
dan-petty commentedon Oct 22, 2026
This work and guidance should not conflict with or block implementation of openspec and stardard release tooling.
feat(release): v0.2.39 (#1947)