Skip to content

docs(workflow): the instructions describe trunk, derived versions and the release pull request #1932

Closed

Description

@dan-petty

Friction

ADR 0012 puts all work on trunk. Item pull requests target main. release-please derives each version from the pull request titles. A person merges the release pull request to publish.

Step 6 of the ADR sequence (#1861) rewrites AGENTS.md, CONTRIBUTING.md, RELEASE_CYCLE.md, the pull request template and the CHANGELOG.md preamble. Other documents still tell a reader to branch from release/vX.Y.Z and to add a changelog fragment. They also tell a reader to write Part of #N and to run devops release prepare. This item is step 9 of the sequence. It rewrites those documents.

Some of the old text reaches agents directly. DEFAULT_CHAT_INVARIANTS enters agent chats. The instruction generator writes AGENTS.md for other repositories. The knowledge base grounds the answers of the review pipeline.

The old text also blocks the deletion. devops docs check resolves each devops command in the hand-written documents, the prompts and the knowledge base. It fails when a document names a command that does not exist. So no such document can name devops release or devops roadmap close when #1863 removes them.

Evidence

All facts come from the repository tip f3b17488 (branch release/v0.2.39), unless a line says otherwise. The sources are git grep, the files and tests named below, and ADR 0012. No command ran against GitHub. The implementer runs devops docs check before and after the edit.

The command below prints 53 files. ADR 0012 (Consequences) gives the same count for 3ef69850. This item owns 20 of the 53 files: CONTEXT.md, 8 other files and 11 knowledge base articles. The same pattern prints 44 files under tests/.

git grep -lE 'changelog\.d|release/v|release/\*\*|devops release|roadmap close|chore/cut|chore/open' -- . ':!tests' ':!docs/adr' ':!docs/agent' ':!CHANGELOG.md' ':!changelog.d' ':!docs/RELEASE_NOTES.md' ':!src/devops_cli/tools_lock/tools.lock'
  • devops docs check resolves the commands of the classes CONST_DOCS_CLASS_PROMPT and CONST_DOCS_CLASS_HAND_WRITTEN (CONST_DOCS_NAME_CHECKED_CLASSES in config/constants.py). Those classes include ARCHITECTURE.md, README.md, docs/ROUTINE_TASKS.md, docs/SDLC.md and the knowledge base.
  • Two hand-written files that the first design missed name devops release: ARCHITECTURE.md line 156 and README.md line 21. The deletion breaks devops docs check unless this item edits them.
  • devops gh milestones close takes a release version today (commands/gh.py, line 354). A date-titled milestone needs the later milestone command item.
  • tests/test_roadmap_lifecycle_properties.py reads nine glossary terms of CONTEXT.md. Four of them are planner terms: Current release, Release growth, Cut and Ship. See the section "CONTEXT.md" under "The change".
  • tests/test_instruction_generator.py checks three Copilot phrases of the generator (lines 478 to 481).
  • The first design counted 66 files with a wider pattern. That pattern also matches unrelated text, for example the URL dl.k8s.io/release/v1.37.1 in tools.lock and the word "cut" in code comments. This item uses the ADR pattern.

Order and dependencies

The change

Apply the drafted text with the corrections at the end of this body. The drafted text is a comment on this issue: Sections 3, 4, 7 and 10 of the instruction draft. The anchors below are lines at f3b17488. Lines move, so find each anchor by its text.

docs/SDLC.md

  • Replace Phase 6 whole (lines 241 to 309). Keep the heading text, because line 17 names the phase.
  • Phase 6 states these facts. Topic pull requests target main. The title is a Conventional Commit and is the changelog line. Semantic PR title is a required check.
  • Phase 6 also states these facts. release-please keeps one release pull request. A person merges it. Copilot reviews only on request.
  • The Renovate sentence applies the prefix fix(deps) to the service Dockerfile only, as .github/renovate.json sets it.
  • Edit line 27 (tenet 6), the diagram at lines 46 to 57, and line 71 (the roadmap bullet).
  • Edit lines 73 to 75 (milestone population) and lines 83 and 84 (target branch).
  • Edit line 231 (Path Routing): changelog.d/ leaves the list.
  • Edit the DORA rows at lines 341 and 343, and the matrix rows at lines 358 and 359.
  • Do not edit line 207 (feat(openspec): the pull request that closes a change archives it, and readiness checks the archived folder #1846 owns it) or lines 77 to 82 (the OpenSpec items own them).

docs/ROUTINE_TASKS.md

  • Edit line 10 (the list of standard commands names devops release) and line 13 (principle 4).
  • Edit lines 37, 38 and 43, and line 41 (the monitor row names Copilot).
  • Replace the seven Release Lifecycle rows (lines 45 to 51) with four rows.
  • The four rows are release pull request review, release pull request merge, automated publish and planning bucket housekeeping.
  • In Cadence B, edit the diagram (lines 168 to 185) and the branch bullets (lines 193 to 201).
  • In Cadence B, also edit the Copilot gate (lines 206 to 226) and lines 227, 235 and 239. Line 235 holds the Part of #<id> sentence.
  • Replace Cadence C whole (lines 243 to 280). Keep the heading letter, because tests/test_docs_routine_tasks.py needs Cadences A to E in order.
  • Delete the compaction row (line 51) and the compaction step (lines 276 to 279). Edit the recovery row at line 393.

Other documents

  • docs/SELF_IMPROVEMENT.md: edit line 143 and line 863. Lines 240 and 267 record past review sessions of release branches. They stay.
  • docs/agent/README.md line 13 and docs/agent/tasks/README.md lines 11 and 13: remove the release branch wording. Remove the Part of exception and the changelog fragment rule.
  • ARCHITECTURE.md: edit line 156. Edit the node "Release Cycle Automation Engine" (lines 32 and 43), which stands for devops release.
  • README.md line 21: edit the feature bullet that names the devops release suite. devops docs generate writes the command matrix, and refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863 runs it again.
  • SECURITY.md line 53: a critical fix merges to main. It ships when a person merges the release pull request. The 72-hour target stays.
  • k8s/README.md: delete the bypass sentences of step 3 (line 403) and keep the invitation of the machine account.
  • k8s/README.md, section "When a release merges into main": rewrite items 3 and 4 (lines 538 and 539). Item 3 describes the old release.yml run. Make it follow the order of writes in ADR 0012 (Design): the images first, then the tag. Image Updater rolls the digest of service:latest, and Argo CD follows the new tag. Check item 4 against the same order.
  • tests/test_docs_review_loop.py line 30: the comment says docs/ROADMAP.md is rendered "at the cut". Remove those words.

Knowledge base (13 files under src/devops_cli/ai/knowledge_base)

  • Replace devops_cli/tasks/release_management.md whole (82 lines).
  • it_domains/topics/release_engineering_and_semver_governance.md: lines 17 to 25, 42 and 43, 51 to 68 and 92.
  • it_domains/tools/github_cli.md: lines 17, 26, 38, 55, 61 and 74.
  • devops_cli/tasks/github_project_management.md: lines 64, 123, 124, 133 and 168 to 172. Write --milestone <milestone> and milestones close <milestone>.
  • it_domains/topics/continuous_integration_and_progressive_verification.md: lines 75, 76 and 83.
  • devops_cli/cli_command_reference.md: lines 97 to 99 (the devops release rows).
  • One line each: devops_cli/libraries/packaging.md:31, devops_cli/libraries/pygithub.md:33, devops_cli/tasks/ai_code_review.md:43, it_domains/tools/actionlint.md:18, it_domains/tools/bandit.md:18, it_domains/tools/semgrep.md:66 and line 73 of the knowledge base README.md.
  • Keep the front matter of each article valid. If an article title changes, regenerate docs/KNOWLEDGE_BASE.md.

Instruction generator and prompts

  • src/devops_cli/ai/instruction_generator.py: edit lines 251, 255, 264 and 411 (release wording and devops roadmap close --confirm).
  • In the same file, edit the Copilot sentences at lines 427, 438, 441, 442 and 451. Copilot reviews only on request.
  • Leave line 260. Its release_credit_* names stay until the item refactor(roadmap): Release becomes Milestone in the planner, its settings and the board renames the settings.
  • src/devops_cli/ai/tasks/generate_agents.md line 9: the hygiene bullet names release/v*.
  • src/devops_cli/ai/tasks/roadmap_intake_system.md line 3: "place the item in a release" reads "place the item in a milestone".
  • src/devops_cli/config/defaults.py line 578: entry 4 of DEFAULT_CHAT_INVARIANTS names "any release/* branch". It says "Never commit or push directly to main."
  • tests/test_instruction_generator.py: the three phrases at lines 478 to 481 follow the new generator text.

CONTEXT.md

  • Apply Section 10.2 of the drafted text. It adds the terms Milestone, Current milestone, Planned milestone, Milestone growth and Delivered. It gives Release the meaning that release-please gives. It deletes Changelog fragment and Closure. It also edits Roadmap, Backlog, Critical fix, Descope, Reprioritization, Lane, Started, Blocked and Stalled.
  • Keep four old terms with their old text: Current release, Release growth, Cut and Ship. test_each_invariant_message_starts_with_a_term_context_md_defines reads them. The planner item replaces them together with its invariants.

Issue templates and version literals

  • .github/ISSUE_TEMPLATE/bug_report.yml line 47: the example "0.2.11" reads "(output of devops --version)".
  • .github/ISSUE_TEMPLATE/feature_request.yml: add one optional dropdown, "Breaking Change?". It tells the author to put ! in the pull request title.
  • src/devops_cli/http/broker.py line 41: the User-Agent literal "devops-cli/0.2.9" uses get_version() from devops_cli.config.metadata.
  • docs/github-pages.config.yaml line 23 (version: "v0.2.15") and docs/_layouts/default.html line 32 (the fallback 'v0.2.12'): nothing stamps them. Remove the version pill, or read the version from a source that a release updates.
  • docs/DEVCONTAINER_USAGE.md lines 17, 26, 59 and 188 name an image tag. Use v<version>.
  • docs/DEVCONTAINER_USAGE.md line 12 names past images by tag. It is a fact about those images, and it stays.

What this item does not change

Acceptance criteria

git grep -nE 'release/v|release/\*|release branch|changelog\.d|chore/cut|chore/open|Part of #|devops release|roadmap close|--base release|release cut|release train|Release Train|at the cut' -- docs/SDLC.md docs/ROUTINE_TASKS.md docs/SELF_IMPROVEMENT.md docs/agent/README.md docs/agent/tasks/README.md k8s/README.md SECURITY.md ARCHITECTURE.md src/devops_cli/ai/instruction_generator.py src/devops_cli/ai/tasks src/devops_cli/config/defaults.py src/devops_cli/ai/knowledge_base tests/test_docs_review_loop.py ':!src/devops_cli/ai/tasks/benchmark_ci_concurrency_prompt.md'
  • The command below prints only rows of the generated command matrix in README.md. No hand-written document, prompt or knowledge base article names a command that the deletion items remove.
git grep -nE 'devops (release|roadmap close|roadmap migrate|docs compact|pr copilot-pass|pr threads file-issues)' -- '*.md' ':!docs/adr' ':!docs/agent' ':!CHANGELOG.md' ':!changelog.d' ':!docs/RELEASE_NOTES.md' ':!docs/ROADMAP.md' ':!docs/CLI_REFERENCE.md' ':!docs/MCP_TOOLS.md' ':!docs/ERRORS.md' ':!docs/commands'
  • git grep -n 'Historical Documentation Compaction' -- docs/ROUTINE_TASKS.md prints nothing.
  • git grep -nE 'Automatic Copilot|PRs into .main.|on .release/' -- docs/SDLC.md docs/ROUTINE_TASKS.md src/devops_cli/ai/instruction_generator.py prints nothing.
  • git grep -n 'in a release' -- src/devops_cli/ai/tasks/roadmap_intake_system.md prints nothing.
  • git grep -n 'fix(deps)' -- docs/SDLC.md .github/renovate.json prints a line in each file. The SDLC line applies the prefix to the service Dockerfile only, as the Renovate rule does.
  • The command below prints nothing for the first four paths. For docs/DEVCONTAINER_USAGE.md it prints only line 12.
git grep -nE '(^|[^0-9.])v?0\.[0-9]+\.[0-9]+' -- docs/github-pages.config.yaml docs/_layouts/default.html src/devops_cli/http/broker.py .github/ISSUE_TEMPLATE docs/DEVCONTAINER_USAGE.md
  • A new test in tests/test_http_broker.py asserts that build_headers() sets the User-Agent to devops-cli/ plus get_version(). The test fails on base.
  • CONTEXT.md defines the terms of Section 10.2 and has no Changelog fragment term. It still defines Current release, Release growth, Cut and Ship. tests/test_roadmap_lifecycle_properties.py passes unedited.
  • devops docs check passes. If a generated reference or the README matrix changes, the output of devops docs generate --sync-readme is committed.
  • uv run devops ci passes with coverage of at least 90 percent.

Tests

  • Update tests/test_instruction_generator.py (lines 478 to 481) and the comment in tests/test_docs_review_loop.py (line 30).
  • Add the User-Agent test in tests/test_http_broker.py.
  • These tests must pass unedited:
    • tests/test_agents_md_claims.py: SDLC.md, ROUTINE_TASKS.md, SELF_IMPROVEMENT.md and the continuous integration article keep their links to docs/TESTING.md.
    • tests/test_workflow_contracts.py::test_sdlc_names_only_the_supply_chain_controls_the_repository_runs: SDLC.md keeps "zizmor" and has no "Dependabot", "pip-audit" or "SLSA Level 3".
    • tests/test_docs_routine_tasks.py, tests/test_docs_review_loop.py, tests/test_docs_inventory.py, tests/test_kb.py and tests/test_kb_manuals_metadata.py.
    • tests/test_roadmap_lifecycle_properties.py.

What it deletes

  • The old text only. It deletes no file and no code, apart from the strings listed above.
  • Verified counts at f3b17488: Phase 6 of docs/SDLC.md is 69 lines (241 to 309). Cadence C of docs/ROUTINE_TASKS.md is 38 lines (243 to 280). release_management.md is 82 lines. Seven Release Lifecycle rows become four.
  • The compaction row and step go. chore(docs): remove docs/RELEASE_NOTES.md and devops docs compact #881 removes devops docs compact, and devops docs check would fail on the command name.
  • The compaction step also archives task records by release series. That series ends at the cutover, so the sentence goes with it.
  • ADR 0012 counts 413 lines of documents for all steps. This item holds a part of them. The pull request body gives its net line count.

Existing tool considered

  • devops docs check (check_documented_argv) resolves every devops command, subcommand and option in the checked documents. This item uses it. It does not find prose such as "branch from release/vX.Y.Z".
  • git grep finds the old words. The pull request runs the commands above once. They are not a permanent test. A test over a list of old words is a brittle subset (AGENTS.md, section 1).
  • release-please-config.json is the one source of the release types (ADR 0012, Design). The prose links to it and does not copy the list.
  • For the version pill, GitHub Pages can expose the latest release to Jekyll through jekyll-github-metadata. The implementer checks its documentation before the pill goes. If it works, use it. If not, remove the pill.
  • The text standard is ASD-STE100 (docs(agents): agents and devops ai write in ASD-STE100 Simplified Technical English #1866). docs(agents): agents and devops ai write in ASD-STE100 Simplified Technical English #1866 owns any checker. This item adds none.
  • Cost of a build: this item builds no tool and adds no code path. ADR 0012 gives no figure for step 9.
  • Before work starts, the author writes the estimate in the pull request. The estimate gives tokens to implement, maintain and fix, and elapsed time.

Corrections to the drafted text

The author wrote the comment on this issue before ADR 0012 was final. Apply these corrections.

  • Section 1 of the comment links ADR 0011 with the new title. The file is docs/adr/0012-releases-are-derived-by-release-please-from-trunk-and-milestones-are-planning-buckets.md.
  • Apply Section 10.2 (CONTEXT.md) except the four old planner terms. See the section "CONTEXT.md" under "The change".
  • The line numbers in the comment come from ae8c2d98. Use the anchors of this issue. The comment counts 66 files and 45 test files. Use 53 and 44.
  • Where the comment writes "there is no release branch" or "no release/* branch", write "main is the only long-lived branch". The first acceptance command then needs no exception for a denial.
  • Section 3.1, Renovate bullet: Renovate sets fix(deps) for the service Dockerfile only. The author retitles an update of a runtime dependency (ADR 0012, Consequences).
  • Write devops gh milestones close <milestone> where the comment writes <title-or-number>. The text is then true before and after the milestone command item.
  • Section 4 misses these lines of docs/ROUTINE_TASKS.md: 10, 41, 206 to 226, 227 and 235.
  • Section 10.6: DEFAULT_CHAT_INVARIANTS is at config/defaults.py:578. Skip the edit of benchmark_ci_concurrency_prompt.md, which is benchmark input and not an instruction.
  • Section 10.6: skip the edit of docs/SELF_IMPROVEMENT.md line 502. It stays true until feat(sdlc): an OpenSpec change folder is the record of every item, and readiness checks its archive #1847.
  • Sections 10.7 and 10.8 belong to feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 and refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863.
  • Add these files, which the comment misses: ARCHITECTURE.md, README.md line 21 and the comment in tests/test_docs_review_loop.py.

Pending a person

Activity

  1. added
    type/docs
    on Oct 22, 2026
  2. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/docs. The candidate updates documentation files to match new release workflow.
    • Priority: P2-Medium. This change is part of a larger release process redesign and affects multiple documents.
    • Value: High. Users and agents rely on accurate documentation for the release process.
    • Effort: Medium. The change involves updating many files including documentation, prompts, and knowledge base articles.
  3. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Delivered by #1952: AGENTS.md, CONTRIBUTING.md, RELEASE_CYCLE.md, docs/SDLC.md, docs/ROUTINE_TASKS.md, CONTEXT.md, the knowledge base, DEFAULT_CHAT_INVARIANTS and the instruction generator describe trunk and release-please only.

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

    type/docs

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions