From f063010e372d2355a88d195c7e284e2057c85246 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 21 Nov 2026 18:13:56 +0100 Subject: [PATCH 1/8] Make release-bound pull requests complete upgrade records --- .github/CONTRIBUTING.md | 6 +- .github/plugin/marketplace.json | 2 +- .github/plugin/msx/plugin.json | 2 +- .../SKILL.md | 2 +- .../msx-ways-of-working-pr-format/SKILL.md | 2 +- .../Capabilities/release-management/design.md | 35 +-- .../Capabilities/release-management/spec.md | 50 ++-- src/docs/Ways-of-Working/Consumer-Upgrades.md | 30 ++- .../Definition-of-Ready-and-Done.md | 5 +- .../Ways-of-Working/Documentation-Model.md | 17 +- src/docs/Ways-of-Working/PR-Format.md | 239 +++++++++++------- 11 files changed, 239 insertions(+), 151 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a49c4e1..6a4dabc 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -54,8 +54,10 @@ Register a larger or unrelated problem as an issue in the repository that owns i Write the title and complete description using [canonical PR Format](https://msxorg.github.io/docs/Ways-of-Working/PR-Format/). -Use its [complete description example](https://msxorg.github.io/docs/Ways-of-Working/PR-Format/#complete-description-example) -to write the record. Verify any applicable release-range and source evidence against that guidance. +For a release-bound change, the title and description are the only authored +release note. +Use the [complete description example](https://msxorg.github.io/docs/Ways-of-Working/PR-Format/#complete-description-example) +and verify any applicable release-range and source evidence against that guidance. ## Authoring conventions diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.json index 0912d39..4984d29 100644 --- a/.github/plugin/marketplace.json +++ b/.github/plugin/marketplace.json @@ -11,7 +11,7 @@ { "name": "msx", "description": "Routes reader-facing writing, coding, consumer upgrades, and work lifecycle tasks to current MSX standards.", - "version": "0.3.0", + "version": "0.3.1", "source": ".github/plugin/msx" } ] diff --git a/.github/plugin/msx/plugin.json b/.github/plugin/msx/plugin.json index 89eea9e..c10da1c 100644 --- a/.github/plugin/msx/plugin.json +++ b/.github/plugin/msx/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "msx", - "version": "0.3.0", + "version": "0.3.1", "description": "Routes reader-facing writing, coding, consumer upgrades, and work lifecycle tasks to current MSX standards.", "author": { "name": "MSXOrg", diff --git a/.github/plugin/msx/skills/msx-ways-of-working-consumer-upgrades/SKILL.md b/.github/plugin/msx/skills/msx-ways-of-working-consumer-upgrades/SKILL.md index 561bd4a..0642b56 100644 --- a/.github/plugin/msx/skills/msx-ways-of-working-consumer-upgrades/SKILL.md +++ b/.github/plugin/msx/skills/msx-ways-of-working-consumer-upgrades/SKILL.md @@ -1,6 +1,6 @@ --- name: msx-ways-of-working-consumer-upgrades -description: Apply the MSX consumer upgrade procedure when upgrading an upstream dependency or framework. +description: Apply the MSX consumer upgrade procedure when upgrading an upstream dependency or framework. Use when composing migration steps from release notes across skipped versions. --- # Upgrade an MSX consumer diff --git a/.github/plugin/msx/skills/msx-ways-of-working-pr-format/SKILL.md b/.github/plugin/msx/skills/msx-ways-of-working-pr-format/SKILL.md index 40d65db..aaec21c 100644 --- a/.github/plugin/msx/skills/msx-ways-of-working-pr-format/SKILL.md +++ b/.github/plugin/msx/skills/msx-ways-of-working-pr-format/SKILL.md @@ -1,6 +1,6 @@ --- name: msx-ways-of-working-pr-format -description: Format MSX pull request titles, descriptions, change types, and labels. +description: Format MSX pull request titles, descriptions, change types, and labels. Use when authoring release notes and migration instructions in a release-bound pull request. --- # Follow the MSX pull request format diff --git a/src/docs/Capabilities/release-management/design.md b/src/docs/Capabilities/release-management/design.md index e41ada8..855b0fa 100644 --- a/src/docs/Capabilities/release-management/design.md +++ b/src/docs/Capabilities/release-management/design.md @@ -455,11 +455,12 @@ post-completion task. ## Release notes and evidence {#release-notes} -Release notes preserve contributor-authored pull-request content rather than -reducing it to a generated commit list. The frozen note snapshot follows -[PR Format](../../Ways-of-Working/PR-Format.md) and covers the complete -publication-to-candidate consumer range, including earlier merged, skipped, -direct, or unshipped changes. +Contributors author the release note in the release-bound pull request. Resolve +freezes the complete reviewed title and description for the fixed source, +including all collapsed blocks. Publish uses that snapshot unchanged in the +release record. The note follows [PR Format](../../Ways-of-Working/PR-Format.md) +and covers the complete publication-to-candidate consumer range, including +earlier merged, skipped, direct, or unshipped changes. Before writing the record or capturing its snapshot, follow [Resolve release coverage first](../../Ways-of-Working/PR-Format.md#resolve-release-coverage-first). @@ -478,12 +479,14 @@ a retry preserves that snapshot rather than re-resolving later metadata. This authoring range does not change aggregate approval of the accumulated range, version allocation, or overall destination completion. -Each result's prose and examples contain what changed, why, affected uses, -compatibility, exact actions with prerequisites, ordering, and verification, or -an explicit no-action result with its compatibility basis. Required old-to-new -instructions stay in the note, not repository migration guides or a parallel -changelog. Result-scoped technical details hold supporting evidence; internal-only -work without a classifier uses the block after the summary marker. +Each result's visible prose states the change, why it matters, affected uses +and compatibility, and the required action or explicit no-action outcome. +Keep prerequisites and deadlines that affect whether or when to upgrade +visible. Put exact adoption steps in the result's +[Migration details block](../../Ways-of-Working/PR-Format.md#record-migration-details) +when they apply. `Technical details` holds implementation and validation +evidence, not migration steps. Internal-only work without a classifier uses +supporting blocks after the summary marker. Verify format adherence from the actual title, complete body, source coverage, and scoped supporting evidence. Similarity to an inherited scaffold or central @@ -491,11 +494,11 @@ copy is not evidence. An affected product integration template still requires its verified immutable identity and producer-compatibility evidence. Consumers read every applicable source-bound record after their actual consumed -baseline through the target and compose the actions in release order. Later -notes explain superseded actions while retaining required intermediate -installations or runs. Reading a record does not require installing its version -unless the note explicitly requires that operation. PRs and diffs provide -optional depth; resource docs describe supported target-state behavior and usage. +baseline through the fixed target and compose the actions in release order. +Later notes explain superseded actions while retaining required intermediate +installations or runs. Install or run an intermediate version only when the +notes require it. Diffs, links, issues, templates, and resource docs provide +context, current usage, or evidence, not missing release-specific steps. Manual requests supply equivalent reviewed context for direct or otherwise unaccounted changes. Resolve fails if a source revision in the range lacks diff --git a/src/docs/Capabilities/release-management/spec.md b/src/docs/Capabilities/release-management/spec.md index 3c24a59..3811b7f 100644 --- a/src/docs/Capabilities/release-management/spec.md +++ b/src/docs/Capabilities/release-management/spec.md @@ -402,21 +402,26 @@ overall release completion fails. Completing an older record MUST NOT make its already-published artifact changes new again. Record coverage MUST NOT redefine aggregate approval, version reservations, or completed-state discovery. -The record MUST preserve contributor-authored title, complete description, -adoption guidance, consumer-change evidence, and maintainer evidence under -[PR Format](../../Ways-of-Working/PR-Format.md), or equivalent reviewed aggregate -context for a manual release. A prerelease MUST retain the snapshot appropriate -to its immutable source, not a later description of different code. +For a release-bound pull request, the published record MUST preserve the frozen +snapshot of the complete reviewed title and description for the fixed source, +including all collapsed blocks, under [PR Format](../../Ways-of-Working/PR-Format.md). +For a manual release, the record MUST preserve equivalent reviewed aggregate +context. A prerelease MUST retain the snapshot appropriate to its immutable +source, not a later description of different code. #### Release evidence The complete description MUST contain exactly one announcement boundary after -its leading summary. Each result MUST explain what changed, why, affected -supported uses, compatibility, exact adoption actions with prerequisites, -ordering, and verification, or an explicit no-action result with its -compatibility basis. Supporting evidence MUST remain scoped to its result; -internal-only work without a classifier uses the supporting block after the -summary marker. Announcements MUST NOT truncate the full release record. +its leading summary. Each result MUST visibly explain what changed, why, +affected supported uses, and compatibility. It MUST state the required action +or an explicit no-action outcome with its compatibility basis. Deadlines and +prerequisites that determine whether or when to upgrade MUST be visible. +When exact technical adoption steps apply, the result MUST carry them in its +[Migration details block](../../Ways-of-Working/PR-Format.md#record-migration-details), +with applicability, order, and verification. Supporting evidence MUST remain +scoped to its result; internal-only work without a classifier uses the +supporting block after the summary marker. Announcements MUST NOT truncate the +full release record. Canonical format adherence MUST be verified from the actual title, complete body, source coverage, and supporting evidence under @@ -431,13 +436,14 @@ today's template, or an unsupported compatibility claim MUST NOT replace that evidence. If no template applies, record that result and its basis explicitly. Reading every applicable source-bound release record after the actual consumed -baseline through the target in release order MUST be sufficient to compose the -required actions. Notes MUST explain superseded actions while retaining required -intermediate installations or runs; reading a record MUST NOT itself require -installing its version. PRs and diffs MAY provide optional depth but MUST NOT -replace required instructions. Missing instructions MUST block the affected -publication as evidence gaps. Resource docs describe supported target-state -behavior and usage, not version-specific migration history or a parallel changelog. +baseline through the fixed target in release order MUST be sufficient to +compose the required actions. Notes MUST explain superseded actions while +retaining required intermediate installations or runs; reading a record MUST +NOT itself require installing its version. Diffs, links, issues, templates, +and resource docs MAY provide context or evidence but MUST NOT supply missing +instructions. Missing instructions MUST block the affected publication as +evidence gaps. Resource docs describe supported target-state behavior and usage, +not version-specific migration history or a parallel changelog. The resolved version, version baseline, product/target/channel publication baseline, publication receipt, verified immutable artifact/source provenance, @@ -456,6 +462,14 @@ Scenario: A later release includes a skipped change When release notes are frozen Then the notes and aggregate decision cover A and B exactly once +Scenario: Publication retains collapsed migration instructions + Given a fixed source has a reviewed pull request with a shareable summary + And the description includes collapsed migration instructions + When the source is published + Then the published record contains the frozen title and complete description + And the record includes the collapsed migration instructions + And any announcement takes its summary from before the boundary + Scenario: Partial destination completion does not repeat published module changes Given module source B was successfully published to Gallery And its later GitHub completion failed diff --git a/src/docs/Ways-of-Working/Consumer-Upgrades.md b/src/docs/Ways-of-Working/Consumer-Upgrades.md index 020f8f4..5ee4c93 100644 --- a/src/docs/Ways-of-Working/Consumer-Upgrades.md +++ b/src/docs/Ways-of-Working/Consumer-Upgrades.md @@ -107,9 +107,9 @@ implementation; create no empty PR. Leave existing closed records unchanged. An existing PR or unmet local criterion requires reconciliation with its owner, not automatic cancellation from a version comparison alone. -For an older target, read immutable target-era source and documentation together -with its source-bound release records. Today's documentation, template, or -`latest` alias cannot establish what that target supports. +For an older target, use immutable target-era source and documentation to +verify what the target supports. Today's documentation, template, or `latest` +alias cannot establish that target's behavior. **Exit criteria.** A proven no-upgrade outcome terminates with its issue disposition. Otherwise, evidence identifies the fixed target, complete ordered @@ -119,25 +119,27 @@ traversal. ### Stage 3: Compose the action ledger -Read each applicable record in full, including adoption instructions, -consumer-change evidence, prerequisites, no-action outcomes, and template -compatibility. [PR Format](PR-Format.md#complete-description-example) defines the MSX -release-record authoring structure. The ledger uses those records; it does not -define another release schema. +Read each applicable record in full. Read the visible results for impact and +timing, and open the [Migration details blocks](PR-Format.md#record-migration-details) +for exact steps. Read supporting evidence, including template compatibility, +where applicable. Together the MSX release records after the actual baseline +through the fixed target supply every release-specific action. A diff, link, +issue, template, or evergreen document can corroborate an action but cannot +fill a gap in those instructions. 1. Associate each release/change identifier with the consumer surfaces it affects. Record applicability against the actual baseline and intended use, - the required action or final state, prerequisite ordering, and the existing - validation that can demonstrate the result. -2. Compose changes across the range. Follow rename chains to the target name; + the required action or final state, prerequisites, deadlines, and the checks + and expected results that can verify the change. +2. Compose changes in release order. Follow rename chains to the target name; reconcile superseded or reversed changes against the target contract. Keep the earlier entries and links explaining their disposition instead of deleting evidence. 3. Retain genuinely required intermediate operations, such as a data conversion or a tool that only accepts the preceding format. A later rename or reversal - does not cancel a required intermediate step. Skip a transient edit only when - the evidence establishes that direct adoption reaches the supported target - state without it. + does not cancel a required intermediate step. Install or run an intermediate + version only when the release evidence requires it. Skip a transient edit + only when that evidence shows the consumer can reach the target without it. 4. Give every inspected release and affected action an explicit disposition: completed with evidence, not applicable with a reason, no action required, or blocked with the missing decision/evidence and owning issue. A no-action diff --git a/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md b/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md index ec115c1..37c09c5 100644 --- a/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md +++ b/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md @@ -34,7 +34,8 @@ A pull request is ready for review when: - The [standards and framework alignment pass](Workflow-Stages/Implement.md#5-standards-and-framework-alignment-pass) has run against the finished change, its result covers every changed surface in the pull request, and every exception links a follow-up issue. - The [issue convergence sweep](Workflow-Stages/Implement.md#6-issue-convergence-sweep) has run against scoped open issues, and every fully convergent issue is linked in the pull request with a closing keyword. - The title and release-note-ready description are finalized per [PR Format](PR-Format.md). When the target route invokes Release Management, the `Release decisions` block, effective configuration, and applied `release:*` labels agree, and the [required decision check](../Capabilities/release-management/design.md#required-pre-merge-decision-check) passes; an explicit bump label is not mandatory when the valid effective default supplies the level, including supported caller overrides. When the route does not invoke Release Management, the block and labels are absent. -- Consumer release evidence is complete for the reviewed source under [PR Format](PR-Format.md#write-the-description), including explicit no-action outcomes and applicable immutable template compatibility. An upgrade PR also reconciles its complete baseline-to-target range through [Consumer Upgrades](Consumer-Upgrades.md); the newest release note alone is insufficient. +- A release-bound PR is ready to freeze its complete reviewed title and description for the fixed source. Visible results state the impact, upgrade timing constraints, and required action or compatible no-action outcome. Each applicable [Migration details block](PR-Format.md#record-migration-details) contains the exact adoption steps, and supporting evidence includes applicable immutable template compatibility. No required step is missing from the record. +- An upgrade PR reconciles every applicable release after its actual baseline through the fixed target under [Consumer Upgrades](Consumer-Upgrades.md); the newest release note alone is insufficient. - Required post-merge publication, deployment, or template milestones name a [completion-owning issue](#post-merge-completion-ownership) and responsible owner before review; automatic PR closure cannot be their only completion signal. Absent checks are not a pass. If a pull request reports no checks, inspect whether the workflow triggers cover its base branch. A base branch outside the `pull_request` trigger's `branches` filter is a common cause. Fix the trigger gap or file an issue; do not waive the gate. @@ -93,7 +94,7 @@ Keep the milestones distinct: | --- | --- | | Review readiness | The reviewed candidate has complete consumer evidence and verified applicable template compatibility. | | Merge | The reviewed source change is integrated, not necessarily published. | -| Publication | The actual release/source identities and complete source-bound notes are available through the release process. | +| Publication | The release record contains the published artifact and source identities and the complete reviewed note, including collapsed blocks, from the frozen snapshot. | | Template completion | Necessary linked template changes are delivered and immutable compatibility with the published producer identity is evidenced. | #### Post-merge completion ownership diff --git a/src/docs/Ways-of-Working/Documentation-Model.md b/src/docs/Ways-of-Working/Documentation-Model.md index 7c56283..afc9de4 100644 --- a/src/docs/Ways-of-Working/Documentation-Model.md +++ b/src/docs/Ways-of-Working/Documentation-Model.md @@ -175,12 +175,17 @@ not a parallel history file or migration-guide hierarchy. A normative contract is not proof that its implementation or CI enforcement exists. Delivery records contain that evidence and any remaining gap. -Release notes explain what changed, why, who is affected, compatibility, and -exact applicable adoption actions or an explicit no-action result. All applicable -records after the actual consumed baseline through the target supply the required -upgrade actions. PRs and diffs provide optional detail. General upgrade procedures -may explain how to use those records. They do not become another source of -release-specific instructions. +The release-bound PR is the single authored record. Publication preserves a +frozen snapshot of its complete reviewed title and description for the fixed +source, including collapsed blocks. [PR Format](PR-Format.md) owns the visible +result and its `Migration details` block. + +For MSX releases, consumers compose the upgrade from all applicable notes after +their actual consumed baseline through the fixed target. Only those notes +supply the release-specific instructions. Diffs, links, issues, templates, and +resource docs can add context, usage, or evidence, not missing steps. +[Consumer Upgrades](Consumer-Upgrades.md) explains how to use the notes, not +which edits a specific release requires. For an older target, a consumer reads that target's immutable source/documentation snapshot and release records through [Consumer Upgrades](Consumer-Upgrades.md). diff --git a/src/docs/Ways-of-Working/PR-Format.md b/src/docs/Ways-of-Working/PR-Format.md index d393ac8..3194c83 100644 --- a/src/docs/Ways-of-Working/PR-Format.md +++ b/src/docs/Ways-of-Working/PR-Format.md @@ -9,19 +9,17 @@ A pull request title and description are release-note-ready artifacts. They explain one complete change to the people who use what the repository delivers, while carrying the evidence reviewers and maintainers need. -The release-bound title and complete description author the eventual release -note. Published release records are the consumer's sufficient upgrade history: -what changed, why, who is affected, compatibility, and exactly how to adopt each -release, including an explicit no-action result when applicable. PRs and diffs -provide optional depth, not required instructions missing from the notes. - -Consumers read every applicable release after their actual consumed baseline -through the chosen target in release order and compose the necessary actions. -Reading those records does not require installing every intermediate version; -an intermediate installation or run is required only when a note explicitly -requires it. [Resource documentation](Documentation-Model.md#current-product-guidance-and-release-history) -describes supported target-state behavior and usage, not release-specific -transitions or history. +Author the release note in the release-bound PR. Publication uses the frozen +snapshot of the complete reviewed title and description for the fixed source, +including collapsed blocks. Published MSX notes are the only source consumers +need for release-specific changes and upgrade actions. Diffs, links, issues, +templates, and [resource documentation](Documentation-Model.md#current-product-guidance-and-release-history) +can provide context, current usage, or evidence, but not missing steps. + +Consumers read every applicable release note after their actual consumed +baseline through the fixed target in release order and compose the necessary +actions. Install or run an intermediate version only when a note explicitly +requires it. The title and description use a shared format. The [Contribution Workflow](Contribution-Workflow.md) owns draft, assignment, @@ -261,9 +259,11 @@ required action and breaking impact when either exists. A short unordered list is acceptable only when the change has several distinct result groups that cannot be stated clearly in prose. -Use the vocabulary of the supported interface. Describe what changes, who is -affected, and what they need to do. Keep implementation narration out of the -summary. +Use the vocabulary of the supported interface. Describe what changes and why, +which supported uses are affected, and whether they remain compatible. State +what readers need to do or why no action is needed. Include deadlines or +prerequisites that affect whether or when to upgrade. Keep implementation +narration out of the summary. ### End the shareable summary @@ -293,34 +293,60 @@ Use these classifiers in this order and omit empty groups: | `Fixed` | An incorrect behavior or guidance now works as intended. | Each section heading states one result, not a component name. Open the section -with one or two prose paragraphs that explain what changes, why, affected -supported uses, compatibility, and exact adoption actions or an explicit -no-action result. Include applicable prerequisites, verification, and ordering -constraints. A later release that supersedes an earlier action explains how -consumers compose the remaining actions through its target; preserve any -required intermediate installation or run. A documentation change uses the +with one or two visible paragraphs. Explain what changes and why. Name the +affected supported uses and state their compatibility. State the required +action or say why no action is needed beyond selecting the release reference. +Keep prerequisites and deadlines that affect whether or when to upgrade +visible, not only in a collapsed block. A documentation change uses the classifier that describes what its guidance now provides. ### Show interfaces after the prose -After the opening prose, add an interface example or compact table only when it -makes the reader's action clearer. Do not lead a section with a code block or -table. Include necessary old-to-new examples, before-and-after comparisons, or -diagrams in the note itself when they explain an applicable transition. Keep -release-specific migration details here; evergreen resource docs show supported -usage without accumulating those transitions. +After the opening prose, add a short interface example or compact table only +when it clarifies the result. Do not lead a section with a code block or table. +Put exact transition examples in `Migration details`. Link optional usage documentation using an absolute default-branch URL or the canonical published URL so the link survives when the pull request becomes a -release record. Such links supplement the note; consumers must not need them to -discover required upgrade actions. Never include secret values. +release record. Never include secret values. + +### Record migration details + +When a result has exact technical adoption steps, put them in one `
` +block with the exact summary `Migration details`. This includes compatible +changes that have steps to adopt a new or changed behavior. If adoption is +optional, say so in the visible prose. Omit the block when no migration applies. +Do not include an empty block or a no-action placeholder. + +- Identify the affected versions or source baselines, supported uses, and + prerequisites for the steps. +- Give exact old and new names, values, commands, or examples. For initial + adoption, give the exact setup without inventing a previous state. +- Put edits and operations in the order the consumer must perform them. If an + intermediate installation or run is necessary, state the version or source, + what to do, and why the consumer cannot skip it. +- Give verification steps and the expected results, including any checks the + consumer must complete before proceeding. + +If this release supersedes an earlier action, explain what to omit or replace +and which intermediate operations still apply. Put every required step in the +release notes themselves, not only in a diff, link, issue, template, or +evergreen document. ### Close each section with supporting details -A named section may end with either or both of these optional blocks, in this -order: +After the visible prose and any short interface example, close the result with +the applicable blocks in this order: ```markdown +
+Migration details + +Applicable sources and uses, exact old and new values or examples, ordered +adoption steps, and verification with expected results. + +
+
Technical details @@ -337,9 +363,9 @@ Implementation and validation evidence for this result.
``` -The blocks are section-scoped. Do not add global catch-all `Technical details` -or `Related references` blocks after several classified sections. If the pull -request is internal-only and has no classified section, place its supporting +The blocks are section-scoped. Do not add global catch-all blocks after several +classified sections. If the pull request is internal-only and has no classified +section, place any applicable `Technical details` and `Related references` blocks directly after the summary marker. Put the standards and framework alignment evidence required by @@ -349,9 +375,8 @@ release-managed result, include the applicable consumer, product-integration, and baseline evidence required by [Release Management](../Capabilities/release-management/spec.md#release-evidence) in that -same scoped block. Keep the consumer's instructions in the result's prose and -examples; the supporting evidence verifies those instructions rather than -replacing them. +same scoped block. This evidence supports the result and its migration +instructions; it does not supply missing steps. Include the [publication-baseline and candidate identities](#resolve-release-coverage-first), comparison, and freshness evidence @@ -419,10 +444,11 @@ Use this order: 1. Summary prose. 2. The shareable-summary marker. -3. Classified sections in the required order, each with its own optional - `Technical details` and `Related references` blocks. -4. Supporting blocks directly after the marker only when internal-only work has - no classified section. +3. Classified sections in the required order. In each section, put the visible + result first, then `Migration details`, `Technical details`, and `Related + references` in that order. Omit blocks that do not apply. +4. For internal-only work with no classified section, put the applicable + `Technical details` and `Related references` blocks directly after the marker. 5. The conditional `Release decisions` block, only when the target route invokes Release Management. @@ -436,7 +462,8 @@ every placeholder and delete every classifier section, supporting block, example, or release field that does not apply. Repeat a complete classifier section when several distinct results share the same classifier, and keep every remaining classifier group in the order -shown. +shown. Keep `Migration details` only for results that have technical adoption +steps, including compatible adoption when applicable. For internal-only work with no classified result, delete all five classifier groups and place one applicable `Technical details` block and `Related @@ -453,22 +480,29 @@ does. Include configured release-candidate routing in the mode evidence. Never turn invalid settings or conflicting owned labels into a no-action result. ````markdown -{{ One or two short summary paragraphs that state what changes, why, who is -affected, and required adoption actions or an explicit no-action result. }} +{{ One or two short summary paragraphs that state what changes and why, which +supported uses are affected, and the required action or compatible no-action +outcome. Include deadlines or prerequisites that affect whether or when to +upgrade. }} ## Breaking: {{ Reader-facing result }} -{{ Explain what changes, why, affected supported uses, compatibility, and exact -adoption actions or an explicit no-action result. Include applicable -prerequisites, verification, ordering, and any required intermediate installation -or run. }} +{{ Explain what changes and why, affected supported uses, compatibility, and +the required action or why none is needed. Keep prerequisites and deadlines +that affect whether or when to upgrade visible. }} -{{ Interface or old-to-new example, comparison, or diagram after the prose when -needed to make adoption unambiguous. Keep required transition details in this -note; link to evergreen usage docs only for optional depth. Delete when prose -is sufficient. }} +{{ Optional short interface example or table that clarifies the result. }} + +
+Migration details + +{{ Affected baselines and uses, prerequisites, exact old and new values or +examples, ordered steps including any required intermediate operations, and +verification with expected results. Explain any superseded actions. }} + +
Technical details @@ -503,15 +537,20 @@ Delete inapplicable evidence. }} ## Removed: {{ Reader-facing result }} -{{ Explain what changes, why, affected supported uses, compatibility, and exact -adoption actions or an explicit no-action result. Include applicable -prerequisites, verification, ordering, and any required intermediate installation -or run. }} +{{ Explain what changes and why, affected supported uses, compatibility, and +the required action or why none is needed. Keep prerequisites and deadlines +that affect whether or when to upgrade visible. }} -{{ Interface or old-to-new example, comparison, or diagram after the prose when -needed to make adoption unambiguous. Keep required transition details in this -note; link to evergreen usage docs only for optional depth. Delete when prose -is sufficient. }} +{{ Optional short interface example or table that clarifies the result. }} + +
+Migration details + +{{ Affected baselines and uses, prerequisites, exact old and new values or +examples, ordered steps including any required intermediate operations, and +verification with expected results. Explain any superseded actions. }} + +
Technical details @@ -546,15 +585,20 @@ Delete inapplicable evidence. }} ## New: {{ Reader-facing result }} -{{ Explain what changes, why, affected supported uses, compatibility, and exact -adoption actions or an explicit no-action result. Include applicable -prerequisites, verification, ordering, and any required intermediate installation -or run. }} +{{ Explain what changes and why, affected supported uses, compatibility, and +the required action or why none is needed. Keep prerequisites and deadlines +that affect whether or when to upgrade visible. }} -{{ Interface or old-to-new example, comparison, or diagram after the prose when -needed to make adoption unambiguous. Keep required transition details in this -note; link to evergreen usage docs only for optional depth. Delete when prose -is sufficient. }} +{{ Optional short interface example or table that clarifies the result. }} + +
+Migration details + +{{ Affected baselines and uses, prerequisites, exact old and new values or +examples, ordered steps including any required intermediate operations, and +verification with expected results. Explain any superseded actions. }} + +
Technical details @@ -589,15 +633,20 @@ Delete inapplicable evidence. }} ## Changed: {{ Reader-facing result }} -{{ Explain what changes, why, affected supported uses, compatibility, and exact -adoption actions or an explicit no-action result. Include applicable -prerequisites, verification, ordering, and any required intermediate installation -or run. }} +{{ Explain what changes and why, affected supported uses, compatibility, and +the required action or why none is needed. Keep prerequisites and deadlines +that affect whether or when to upgrade visible. }} -{{ Interface or old-to-new example, comparison, or diagram after the prose when -needed to make adoption unambiguous. Keep required transition details in this -note; link to evergreen usage docs only for optional depth. Delete when prose -is sufficient. }} +{{ Optional short interface example or table that clarifies the result. }} + +
+Migration details + +{{ Affected baselines and uses, prerequisites, exact old and new values or +examples, ordered steps including any required intermediate operations, and +verification with expected results. Explain any superseded actions. }} + +
Technical details @@ -632,15 +681,20 @@ Delete inapplicable evidence. }} ## Fixed: {{ Reader-facing result }} -{{ Explain what changes, why, affected supported uses, compatibility, and exact -adoption actions or an explicit no-action result. Include applicable -prerequisites, verification, ordering, and any required intermediate installation -or run. }} +{{ Explain what changes and why, affected supported uses, compatibility, and +the required action or why none is needed. Keep prerequisites and deadlines +that affect whether or when to upgrade visible. }} -{{ Interface or old-to-new example, comparison, or diagram after the prose when -needed to make adoption unambiguous. Keep required transition details in this -note; link to evergreen usage docs only for optional depth. Delete when prose -is sufficient. }} +{{ Optional short interface example or table that clarifies the result. }} + +
+Migration details + +{{ Affected baselines and uses, prerequisites, exact old and new values or +examples, ordered steps including any required intermediate operations, and +verification with expected results. Explain any superseded actions. }} + +
Technical details @@ -711,13 +765,20 @@ Before marking the pull request ready, verify: coverage rather than a fabricated predecessor or no-action assumption; - classified sections are non-empty, ordered, and grouped by reader-facing result; -- the notes explain what changed, why, affected supported uses, compatibility, - and exact applicable actions or an explicit no-action result, without - requiring PRs, diffs, or historical product docs to discover instructions; +- the visible prose explains what changed and why, affected supported uses, + compatibility, and the required action or compatible no-action outcome. It + shows deadlines and prerequisites that affect whether or when to upgrade; +- each result with technical adoption steps has a `Migration details` block + with applicability, exact edits, ordered operations, and verification. + Results with no migration have no block; +- for a release-bound PR, the complete reviewed title and description, + including collapsed blocks, are ready to freeze for the fixed source. No + required step lives only in a diff, link, issue, template, or evergreen document; - release-order composition preserves required intermediate operations without assuming every intermediate version must be installed; - prose precedes optional examples and tables; -- supporting blocks are scoped to their section and ordered correctly; +- blocks are scoped to their result, with `Migration details` before + `Technical details` and `Related references` when present; - same-instance references are fully qualified and closing keywords are accurate; - release metadata and `release:*` labels are absent when the route does not From 41c4059801b0be55cc978b3727f12cc786d5945d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 21 Nov 2026 18:38:20 +0100 Subject: [PATCH 2/8] Keep the PR release note focused on consumers --- .../Capabilities/release-management/design.md | 18 +- .../Capabilities/release-management/spec.md | 14 +- src/docs/Coding-Standards/Natural-Language.md | 5 +- .../Ways-of-Working/Branching-and-Merging.md | 2 +- src/docs/Ways-of-Working/PR-Format.md | 414 +++++++----------- .../Workflow-Stages/Implement.md | 8 +- .../Ways-of-Working/Workflow-Stages/Review.md | 8 +- 7 files changed, 187 insertions(+), 282 deletions(-) diff --git a/src/docs/Capabilities/release-management/design.md b/src/docs/Capabilities/release-management/design.md index 855b0fa..d053d73 100644 --- a/src/docs/Capabilities/release-management/design.md +++ b/src/docs/Capabilities/release-management/design.md @@ -479,19 +479,21 @@ a retry preserves that snapshot rather than re-resolving later metadata. This authoring range does not change aggregate approval of the accumulated range, version allocation, or overall destination completion. -Each result's visible prose states the change, why it matters, affected uses -and compatibility, and the required action or explicit no-action outcome. +Each consumer result's visible prose states the change, why it matters, +affected uses and compatibility, and the required action or explicit +no-action outcome. Keep prerequisites and deadlines that affect whether or when to upgrade visible. Put exact adoption steps in the result's [Migration details block](../../Ways-of-Working/PR-Format.md#record-migration-details) -when they apply. `Technical details` holds implementation and validation -evidence, not migration steps. Internal-only work without a classifier uses -supporting blocks after the summary marker. +when they apply. Put maintainer-only outcomes and review evidence in the +[end blocks](../../Ways-of-Working/PR-Format.md#put-maintainer-content-last), +not between consumer results. For internal-only work, the summary states the +operational outcome and review evidence follows the marker. Verify format adherence from the actual title, complete body, source coverage, -and scoped supporting evidence. Similarity to an inherited scaffold or central -copy is not evidence. An affected product integration template still requires -its verified immutable identity and producer-compatibility evidence. +and evidence for each affected result or interface. Similarity to an inherited +scaffold or central copy is not evidence. An affected product integration template +still requires its verified immutable identity and producer-compatibility evidence. Consumers read every applicable source-bound record after their actual consumed baseline through the fixed target and compose the actions in release order. diff --git a/src/docs/Capabilities/release-management/spec.md b/src/docs/Capabilities/release-management/spec.md index 3811b7f..2586c04 100644 --- a/src/docs/Capabilities/release-management/spec.md +++ b/src/docs/Capabilities/release-management/spec.md @@ -412,16 +412,16 @@ source, not a later description of different code. #### Release evidence The complete description MUST contain exactly one announcement boundary after -its leading summary. Each result MUST visibly explain what changed, why, -affected supported uses, and compatibility. It MUST state the required action -or an explicit no-action outcome with its compatibility basis. Deadlines and +its leading summary. Each consumer result MUST visibly explain what changed +and why, which supported uses it affects, and whether they remain compatible. +It MUST state the required action or explain why no action is needed. Deadlines and prerequisites that determine whether or when to upgrade MUST be visible. When exact technical adoption steps apply, the result MUST carry them in its [Migration details block](../../Ways-of-Working/PR-Format.md#record-migration-details), -with applicability, order, and verification. Supporting evidence MUST remain -scoped to its result; internal-only work without a classifier uses the -supporting block after the summary marker. Announcements MUST NOT truncate the -full release record. +with applicability, order, and verification. Review-only evidence MUST follow +all consumer results and identify the result or interface it supports, under +[PR Format](../../Ways-of-Working/PR-Format.md#put-maintainer-content-last). +Announcements MUST NOT truncate the full release record. Canonical format adherence MUST be verified from the actual title, complete body, source coverage, and supporting evidence under diff --git a/src/docs/Coding-Standards/Natural-Language.md b/src/docs/Coding-Standards/Natural-Language.md index 6c61dd3..5228e4b 100644 --- a/src/docs/Coding-Standards/Natural-Language.md +++ b/src/docs/Coding-Standards/Natural-Language.md @@ -178,8 +178,9 @@ PR titles and descriptions are written for the user of the change first, then th | `Agentic development guidance defines the framework` | `Update framework docs` | | `Agents segment project context before loading standards.` | `Refactor AGENTS.md instructions.` | -Technical implementation details belong in the `Technical details` block for -the reader-facing result they support. +Put implementation evidence in the [`Technical details` block at the +end](../Ways-of-Working/PR-Format.md#put-maintainer-content-last). Identify the +result or interface the evidence supports. ## Prompts diff --git a/src/docs/Ways-of-Working/Branching-and-Merging.md b/src/docs/Ways-of-Working/Branching-and-Merging.md index b3f44ff..8e98957 100644 --- a/src/docs/Ways-of-Working/Branching-and-Merging.md +++ b/src/docs/Ways-of-Working/Branching-and-Merging.md @@ -47,7 +47,7 @@ Every layer follows the ordinary [Contribution Workflow](Contribution-Workflow.m 1. **Plan the dependency.** Give each layer its own Task or Bug issue. Add a native blocked-by edge from every dependent leaf to its prerequisite as described in [Issue Relationships](Issues/Process/Relationships.md#execution-order); prose, sub-issue order, and stack position do not create the gate. 2. **Open every layer as a draft.** After the initial commit, push the branch and open its pull request immediately. Use the standard user-facing title and description from [PR Format](PR-Format.md); do not add stack position or an internal branch name to the title. -3. **Link the stack in Related references.** Add fully qualified pull request links for the immediate dependency and dependent to the applicable section's `Related references` block, using `Depends on Owner/Repo#N` and `Followed by Owner/Repo#N`. Each pull request closes only its own Task or Bug. +3. **Link the stack in Related references.** Add fully qualified pull request links for the immediate dependency and dependent to the pull request's `Related references` block, using `Depends on Owner/Repo#N` and `Followed by Owner/Repo#N`. Each pull request closes only its own Task or Bug. 4. **Keep each delta isolated.** The pull request diff against its current base contains only that layer's change. Run its tests, checks, and automated review even when an earlier layer already exercised the combined code. 5. **Make one layer ready at a time.** Only the lowest unmerged layer is marked ready and given auto-merge. Every later layer stays draft, even when its current checks are green. 6. **Advance after merge.** When the lowest layer merges, refresh the next branch against the merged target. diff --git a/src/docs/Ways-of-Working/PR-Format.md b/src/docs/Ways-of-Working/PR-Format.md index 3194c83..7e0481f 100644 --- a/src/docs/Ways-of-Working/PR-Format.md +++ b/src/docs/Ways-of-Working/PR-Format.md @@ -5,9 +5,10 @@ description: Audience-first pull request titles and descriptions with evidence-b # PR Format -A pull request title and description are release-note-ready artifacts. They -explain one complete change to the people who use what the repository delivers, -while carrying the evidence reviewers and maintainers need. +Write the pull request title and description as a release note for the people +and systems that use what the repository delivers. Keep maintainer-only changes +and review evidence at the end. If the change affects only maintainers, lead +with the internal outcome instead. Author the release note in the release-bound PR. Publication uses the frozen snapshot of the complete reviewed title and description for the fixed source, @@ -35,13 +36,17 @@ the source. ### Identify the readers Start with the repository [README audience -declaration](Readme-Driven-Context.md#target-audience), then inspect linked user -documentation, capability specifications, and effective configuration. +declaration](Readme-Driven-Context.md#target-audience). Check what the repository +actually delivers and how consumers use it. Inspect linked product docs, +capability specifications, and effective configuration. -Treat every supported interface as reader-facing when someone depends on it. +Treat every supported interface as consumer-facing when someone depends on it. Commands, APIs, configuration, reusable workflows, Actions, templates, and -published guidance can all be the product. Do not classify an integration as -internal merely because its readers write scripts or maintain another product. +published guidance can all be the product. A repository-owned workflow used by +other repositories is consumer-facing when its supported behavior changes. +A change to the repository's own test setup with no effect on supported uses +is internal. A change is not internal merely because its consumers write +scripts or maintain another product. For documentation-only work, the delivered result is guidance. State what a reader can now understand or do; do not present documentation as product @@ -86,7 +91,9 @@ artifact target's publication baseline. complete adoption actions, and compatibility decision. Do not classify a change as new merely because an older publication record finished later. -Record these identities in the applicable result's supporting evidence: +Record these identities in the `Technical details` block once per applicable +product, publishing target, and channel. Identify which range supports each +result when the ranges differ: | Field | Evidence | | --- | --- | @@ -205,26 +212,25 @@ decision source, not an error recovery path. ### Select the news -Keep the summary and named sections focused on results that matter to the -identified readers without omitting a consumer delta or required action. Put -implementation facts, validation, and process evidence in supporting details. -Omit internal facts that neither explain a reader-facing result nor help review -it. +If any result affects consumers, write the title, shareable summary, and +classified sections for them. Cover every applicable consumer change and +required action. Put actual maintainer-only changes and review evidence +[at the end](#put-maintainer-content-last), not between consumer results. -Internal-only work can still have a clear result, such as a shared automation -configuration. When it has no reader-facing classified section, summarize the -result and put necessary supporting blocks directly after the summary marker. +If the work is internal-only, name the internal outcome in the title and +explain why it matters in the summary. Do not invent a consumer result or an +upgrade action. ### Group related changes -Group changes by audience-facing result or affected interface, not by commit, -file, issue, or implementation step. One section may describe several files -that jointly deliver one result. Separate unrelated reader outcomes into their -own sections and classify each result once. +Group consumer changes by result or affected interface, not by commit, file, +issue, or implementation step. One section may describe several files that +jointly deliver one result. Give distinct consumer results their own sections +and classify each once. ## Write the title -Use one short statement of the most important user-facing result. For a +Use one short statement of the most important consumer result. For a release-bound record, choose it from the complete resolved delivered range, not only the scoped PR implementation: @@ -245,7 +251,7 @@ The title must not contain: - an issue reference; - a list of unrelated changes; - AI or agent attribution; -- an implementation detail when a reader-facing result is available. +- an implementation detail when a consumer result is available. ## Write the description @@ -254,16 +260,19 @@ Use the following structure. ### Summarize the result -Start with one or two short paragraphs and no `Summary` heading. Lead with -required action and breaking impact when either exists. A short unordered list -is acceptable only when the change has several distinct result groups that -cannot be stated clearly in prose. +Start with one or two short paragraphs and no `Summary` heading. For a change +that affects consumers, lead with required action and breaking impact when +either exists. A short unordered list is acceptable only when several distinct +results cannot be stated clearly in prose. -Use the vocabulary of the supported interface. Describe what changes and why, -which supported uses are affected, and whether they remain compatible. State -what readers need to do or why no action is needed. Include deadlines or -prerequisites that affect whether or when to upgrade. Keep implementation -narration out of the summary. +For consumer results, use the vocabulary of the supported interface. Describe +what changes and why, which uses are affected, and whether they remain +compatible. State what readers need to do or why no action is needed. Include +deadlines or prerequisites that affect whether or when to upgrade. Keep +implementation narration out of the summary. + +For internal-only work, summarize the real internal outcome and why it matters. +Do not add a consumer compatibility or adoption statement. ### End the shareable summary @@ -276,7 +285,8 @@ without the rest of the description. ### Explain each reader-facing result -Use these classifiers in this order and omit empty groups: +Use these classifiers for consumer results only. Keep this order and omit +empty groups. An internal-only pull request has no classified sections. 1. `## Breaking: ` 2. `## Removed: ` @@ -333,61 +343,38 @@ and which intermediate operations still apply. Put every required step in the release notes themselves, not only in a diff, link, issue, template, or evergreen document. -### Close each section with supporting details - -After the visible prose and any short interface example, close the result with -the applicable blocks in this order: +### Put maintainer content last -```markdown -
-Migration details +After the last consumer result, add each applicable collapsed block once, +in this order. These blocks apply to the whole pull request, not only the +result immediately above them. -Applicable sources and uses, exact old and new values or examples, ordered -adoption steps, and verification with expected results. +1. `Internal changes`: Briefly state what changed only for maintainers and + why it matters. Omit the block when there is no useful internal outcome. +2. `Technical details`: Record implementation and validation evidence. Name + the result or changed interface that each item supports. +3. `Related references`: Include closing and non-closing references. Name + the relevant result or interface when the connection is not clear. -
- -
-Technical details - -Implementation and validation evidence for this result. - -
- -
-Related references - -- Resolves MSXOrg/repository#123 -- Depends on MSXOrg/other-repository#456 - -
-``` - -The blocks are section-scoped. Do not add global catch-all blocks after several -classified sections. If the pull request is internal-only and has no classified -section, place any applicable `Technical details` and `Related references` -blocks directly after the summary marker. +For internal-only work, put the applicable `Technical details` and `Related +references` blocks directly after the summary marker. Do not repeat the outcome +in an `Internal changes` block. Keep every consumer migration step with its +consumer result, not in the maintainer blocks. Put the standards and framework alignment evidence required by [Implement](Workflow-Stages/Implement.md#5-standards-and-framework-alignment-pass) -in the `Technical details` block for the result it supports. For a -release-managed result, include the applicable consumer, product-integration, -and baseline -evidence required by [Release -Management](../Capabilities/release-management/spec.md#release-evidence) in that -same scoped block. This evidence supports the result and its migration -instructions; it does not supply missing steps. - -Include the [publication-baseline and candidate -identities](#resolve-release-coverage-first), comparison, and freshness evidence -for a release-bound result. Identify the scoped PR-base comparison separately; -it supports implementation review, not release-note coverage. +in `Technical details`. Include the applicable consumer and immutable template +compatibility evidence required by [Release +Management](../Capabilities/release-management/spec.md#release-evidence). +Record the [publication baseline and candidate](#resolve-release-coverage-first), +comparison, and freshness once for each applicable range, not once per result. +Keep the scoped PR-base comparison separate; it supports implementation review, +not release-note coverage. Record the closing delivery leaf's implementation-plan progress and the [issue convergence sweep](Workflow-Stages/Implement.md#6-issue-convergence-sweep) search scope and outcome in that same block, including when no additional issue -converges. For internal-only work without classified sections, the block after -the summary marker carries this evidence and any applicable release evidence. +converges. Use fully qualified `owner/repository#number` references for every same-instance GitHub issue or pull request, including references to the current repository. @@ -401,7 +388,7 @@ Do not include AI or agent attribution anywhere in the description. ### Record release decisions only when invoked When the target route invokes Release Management, add one `Release decisions` -block after the classified sections and apply the exact labels the block +block at the end, after all other content. Apply the exact labels the block reports: ```markdown @@ -442,48 +429,39 @@ has no `.github/release.settings.yml`. Use this order: -1. Summary prose. +1. Summary prose: consumer impact, or the operational outcome for internal-only work. 2. The shareable-summary marker. -3. Classified sections in the required order. In each section, put the visible - result first, then `Migration details`, `Technical details`, and `Related - references` in that order. Omit blocks that do not apply. -4. For internal-only work with no classified section, put the applicable - `Technical details` and `Related references` blocks directly after the marker. -5. The conditional `Release decisions` block, only when the target route - invokes Release Management. +3. Consumer sections in classifier order, each with its own `Migration details` + block when applicable. Omit these sections for internal-only work. +4. Applicable end blocks in order: `Internal changes` (mixed work only), + `Technical details`, and `Related references`. +5. `Release decisions` last, only when the target route invokes Release Management. -Do not add a `Summary` heading, empty classified sections, global supporting -blocks, or parallel release-note metadata. +Do not add a `Summary` heading, empty sections or blocks, or parallel +release-note metadata. ### Complete description example -Use the complete example below to write the actual PR description. Replace -every placeholder and delete every -classifier section, supporting block, example, or release field that does not -apply. Repeat a complete classifier section when several distinct results share -the same classifier, and keep every remaining classifier group in the order -shown. Keep `Migration details` only for results that have technical adoption -steps, including compatible adoption when applicable. - -For internal-only work with no classified result, delete all five classifier -groups and place one applicable `Technical details` block and `Related -references` block directly after the marker. Delete the complete `Release -decisions` block when the target route does not invoke Release Management. On an -invoked route with a no-release decision, replace the release block with the -shorter no-release form shown in -[Record release decisions only when invoked](#record-release-decisions-only-when-invoked). - -For a publishing decision, retain the resolved bump and mode with their input -sources. A valid effective `DefaultBump` needs no per-PR bump label: report -`Labels: None` when no owned override applies, or the exact mode label when it -does. Include configured release-candidate routing in the mode evidence. Never -turn invalid settings or conflicting owned labels into a no-action result. +#### Mixed change + +Use the most important consumer result as the title. Replace every placeholder +below and delete sections, examples, or blocks that do not apply. Repeat a +consumer section when several distinct results share the same classifier. +Keep classifier order and include `Migration details` only where there are +technical adoption steps, including compatible adoption where applicable. + +Use the final block only for a route that invokes Release Management. Follow +[Record release decisions only when invoked](#record-release-decisions-only-when-invoked) +for release and no-release decisions. When the valid effective `DefaultBump` +supplies the correct level, no per-PR bump label is needed. Include configured +release-candidate routing in the mode evidence. Never turn invalid settings or +conflicting owned labels into a no-action result. ````markdown -{{ One or two short summary paragraphs that state what changes and why, which -supported uses are affected, and the required action or compatible no-action -outcome. Include deadlines or prerequisites that affect whether or when to -upgrade. }} +{{ One or two short paragraphs for consumers only. State what changes and why, +which supported uses are affected, and the required action or compatible +no-action outcome. Include deadlines or prerequisites that affect whether +or when to upgrade. }} @@ -504,37 +482,6 @@ verification with expected results. Explain any superseded actions. }}
-
-Technical details - -{{ Implementation and validation evidence, closing delivery-leaf plan progress, -and issue-convergence search scope and outcome for this result, even when no -additional issue converges. }} - -| Changed surface | Standards checked | Framework docs checked | Result | -| --- | --- | --- | --- | -| `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | - -{{ Publication-baseline evidence: for a release-bound result, identify the -product/target/channel, latest successful artifact and immutable source, exact -candidate source, comparison, and freshness under Resolve release coverage -first. Retain the scoped PR-base comparison separately. Support the actions or -no-action result above. For an affected integration template, identify its -repository, verified compatible immutable commit, and compatibility evidence. -Publication resolves actual coordinates; do not predict a final version. -Delete inapplicable evidence. }} - -
- -
-Related references - -- Resolves MSXOrg/repository#123 -- References MSXOrg/repository#456 -- Depends on MSXOrg/other-repository#789 - -
- ## Removed: {{ Reader-facing result }} {{ Explain what changes and why, affected supported uses, compatibility, and @@ -552,37 +499,6 @@ verification with expected results. Explain any superseded actions. }}
-
-Technical details - -{{ Implementation and validation evidence, closing delivery-leaf plan progress, -and issue-convergence search scope and outcome for this result, even when no -additional issue converges. }} - -| Changed surface | Standards checked | Framework docs checked | Result | -| --- | --- | --- | --- | -| `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | - -{{ Publication-baseline evidence: for a release-bound result, identify the -product/target/channel, latest successful artifact and immutable source, exact -candidate source, comparison, and freshness under Resolve release coverage -first. Retain the scoped PR-base comparison separately. Support the actions or -no-action result above. For an affected integration template, identify its -repository, verified compatible immutable commit, and compatibility evidence. -Publication resolves actual coordinates; do not predict a final version. -Delete inapplicable evidence. }} - -
- -
-Related references - -- Resolves MSXOrg/repository#123 -- References MSXOrg/repository#456 -- Depends on MSXOrg/other-repository#789 - -
- ## New: {{ Reader-facing result }} {{ Explain what changes and why, affected supported uses, compatibility, and @@ -600,37 +516,6 @@ verification with expected results. Explain any superseded actions. }}
-
-Technical details - -{{ Implementation and validation evidence, closing delivery-leaf plan progress, -and issue-convergence search scope and outcome for this result, even when no -additional issue converges. }} - -| Changed surface | Standards checked | Framework docs checked | Result | -| --- | --- | --- | --- | -| `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | - -{{ Publication-baseline evidence: for a release-bound result, identify the -product/target/channel, latest successful artifact and immutable source, exact -candidate source, comparison, and freshness under Resolve release coverage -first. Retain the scoped PR-base comparison separately. Support the actions or -no-action result above. For an affected integration template, identify its -repository, verified compatible immutable commit, and compatibility evidence. -Publication resolves actual coordinates; do not predict a final version. -Delete inapplicable evidence. }} - -
- -
-Related references - -- Resolves MSXOrg/repository#123 -- References MSXOrg/repository#456 -- Depends on MSXOrg/other-repository#789 - -
- ## Changed: {{ Reader-facing result }} {{ Explain what changes and why, affected supported uses, compatibility, and @@ -648,37 +533,6 @@ verification with expected results. Explain any superseded actions. }}
-
-Technical details - -{{ Implementation and validation evidence, closing delivery-leaf plan progress, -and issue-convergence search scope and outcome for this result, even when no -additional issue converges. }} - -| Changed surface | Standards checked | Framework docs checked | Result | -| --- | --- | --- | --- | -| `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | - -{{ Publication-baseline evidence: for a release-bound result, identify the -product/target/channel, latest successful artifact and immutable source, exact -candidate source, comparison, and freshness under Resolve release coverage -first. Retain the scoped PR-base comparison separately. Support the actions or -no-action result above. For an affected integration template, identify its -repository, verified compatible immutable commit, and compatibility evidence. -Publication resolves actual coordinates; do not predict a final version. -Delete inapplicable evidence. }} - -
- -
-Related references - -- Resolves MSXOrg/repository#123 -- References MSXOrg/repository#456 -- Depends on MSXOrg/other-repository#789 - -
- ## Fixed: {{ Reader-facing result }} {{ Explain what changes and why, affected supported uses, compatibility, and @@ -696,25 +550,31 @@ verification with expected results. Explain any superseded actions. }}
+
+Internal changes + +{{ Summarize each useful maintainer-only outcome and why it matters. }} + +
+
Technical details -{{ Implementation and validation evidence, closing delivery-leaf plan progress, -and issue-convergence search scope and outcome for this result, even when no -additional issue converges. }} +{{ Record implementation and validation evidence by result or changed +interface. Record closing delivery-leaf plan progress and the issue-convergence +search scope and outcome, even when no additional issue converges. }} | Changed surface | Standards checked | Framework docs checked | Result | | --- | --- | --- | --- | | `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | -{{ Publication-baseline evidence: for a release-bound result, identify the -product/target/channel, latest successful artifact and immutable source, exact -candidate source, comparison, and freshness under Resolve release coverage -first. Retain the scoped PR-base comparison separately. Support the actions or -no-action result above. For an affected integration template, identify its -repository, verified compatible immutable commit, and compatibility evidence. -Publication resolves actual coordinates; do not predict a final version. -Delete inapplicable evidence. }} +{{ For each applicable range, record the product, target, and channel, latest +successful artifact and immutable source, exact candidate source, comparison, +and freshness as specified under Resolve release coverage first. State which +results the range covers. Record the scoped PR-base comparison separately. +For an affected integration template, identify its repository, verified +compatible immutable commit, and compatibility evidence. Do not predict a +final version. Delete inapplicable evidence. }}
@@ -745,6 +605,42 @@ Delete inapplicable evidence. }}
```` +#### Internal-only change + +Example title: `Docs CI caches build dependencies` + +This route deploys the docs site but does not publish a versioned artifact, +so it has no `Release decisions` block. If the actual route invokes Release +Management, apply the same release criteria and add the final decision block. +An internal audience does not by itself establish a skip decision. + +```markdown +The docs build job caches Python packages so repeat runs do not download the +same dependencies. + + + +
+Technical details + +The docs build job uses the requirements file for its cache key. A cold run +and a cache-hit run both pass and generate identical site output. The delivery +plan is complete. No other open docs CI issue is fully resolved by this change. + +| Changed surface | Standards checked | Framework docs checked | Result | +| --- | --- | --- | --- | +| Docs build job | GitHub Actions, Testing | None (no framework-specific docs) | Aligned | + +
+ +
+Related references + +- Resolves MSXOrg/repository#123 + +
+``` + ## Check readiness Before marking the pull request ready, verify: @@ -763,9 +659,10 @@ Before marking the pull request ready, verify: - missing or unverifiable baselines, diverged lineage, and changing comparison inputs are resolved; an initial publication has explicit reviewed initial coverage rather than a fabricated predecessor or no-action assumption; -- classified sections are non-empty, ordered, and grouped by reader-facing - result; -- the visible prose explains what changed and why, affected supported uses, +- when any result affects consumers, only consumer results appear in the + title, shareable summary, and classified sections. Classifier groups are + non-empty and ordered; +- consumer-facing prose explains what changed and why, affected supported uses, compatibility, and the required action or compatible no-action outcome. It shows deadlines and prerequisites that affect whether or when to upgrade; - each result with technical adoption steps has a `Migration details` block @@ -777,14 +674,19 @@ Before marking the pull request ready, verify: - release-order composition preserves required intermediate operations without assuming every intermediate version must be installed; - prose precedes optional examples and tables; -- blocks are scoped to their result, with `Migration details` before - `Technical details` and `Related references` when present; +- in mixed work, useful maintainer-only outcomes appear in one optional + `Internal changes` block after all consumer results. Review-only `Technical + details` and `Related references` follow there, with evidence mapped to the + result or interface it supports and common source evidence recorded once; +- for internal-only work, the title names the internal outcome and the summary + explains why it matters. No classified section, migration block, or `Internal + changes` block appears. Any review evidence follows the marker; - same-instance references are fully qualified and closing keywords are accurate; - release metadata and `release:*` labels are absent when the route does not invoke Release Management; -- when Release Management applies, the decision block, labels, effective - configuration, and complete-change evidence agree; +- when Release Management applies, `Release decisions` is the final block and + agrees with the labels, effective configuration, and complete-change evidence; - the description contains no AI or agent attribution. The pull request still follows the complete [Definition of Ready for diff --git a/src/docs/Ways-of-Working/Workflow-Stages/Implement.md b/src/docs/Ways-of-Working/Workflow-Stages/Implement.md index 60a5905..79ccf9f 100644 --- a/src/docs/Ways-of-Working/Workflow-Stages/Implement.md +++ b/src/docs/Ways-of-Working/Workflow-Stages/Implement.md @@ -64,7 +64,7 @@ Reconcile the [consumer-evidence readiness gate](../Definition-of-Ready-and-Done in this same pass. Consumer upgrades use [Consumer Upgrades](../Consumer-Upgrades.md); applicable producer changes demonstrate immutable template compatibility and track the [producer/template completion obligations](../Definition-of-Ready-and-Done.md#repository-delivery-leaf). -Record the evidence in the existing PR sections and alignment rows, not a +Record the evidence with the alignment rows in `Technical details`, not in a second checklist. Record the outcome as one row per changed surface: @@ -74,7 +74,7 @@ Record the outcome as one row per changed surface: | `src/functions/**` (PowerShell) | Naming, Functions, Error Handling | Module source layout | Aligned | | `.github/workflows/**` | GitHub Actions | Reusable workflow contract | Exception — Owner/Repo#123 | -A result is `Aligned`, `Fixed in this PR`, or `Exception` with a link that justifies it. Where a changed surface has no framework or domain documentation of its own, write `None (no framework-specific docs)` rather than inventing a pseudo-link. Put each row in the `Technical details` block for the pull request section whose result it supports. For internal-only work without a classified section, put the table in the supporting block after the summary marker. This keeps the evidence scoped per [PR Format](../PR-Format.md) so [Review](Review.md) can verify the pass instead of guessing whether it happened. +A result is `Aligned`, `Fixed in this PR`, or `Exception` with a link that justifies it. Where a changed surface has no framework or domain documentation of its own, write `None (no framework-specific docs)` rather than inventing a pseudo-link. Put the table in the [`Technical details` block at the end](../PR-Format.md#put-maintainer-content-last). Identify the result or interface each row supports so [Review](Review.md) can verify the pass. **Stop rule.** Fix only work in scope for the closing Task or Bug, and keep the pull request small enough to review. For out-of-scope or systemic findings, file a follow-up issue through [Define](Define.md). Do the same when a finding would change the pull request's scope. Link the follow-up in the table as an exception and leave that work out of the change. The pass verifies alignment; it does not add another deliverable. @@ -85,8 +85,8 @@ Run this once per implementation session, at the same timing as the standards/fr 1. Search for already-open issues whose asks are already satisfied by the finished diff, not only the issue originally linked when the branch was opened. 2. Scope the sweep deliberately so it scales: prioritize the delivery leaf's parent and siblings in the [Issue Hierarchy](../Issues/Types/Hierarchy.md), then narrow by affected component, labels, keywords, or code paths. Do not read every open issue serially in large repositories. 3. Treat convergence as outcome-based: - - **Fully satisfied** — the diff already delivers the issue's ask. Add it to the applicable section's `Related references` block with `Resolves` so merge closes it. - - **Partially satisfied** — the diff helps but does not fully deliver the ask. Add it to the applicable `Related references` block as non-closing context and keep or create a follow-up delivery leaf for the remaining gap. + - **Fully satisfied** — the diff already delivers the issue's ask. Add it to `Related references` with `Resolves` so merge closes it. + - **Partially satisfied** — the diff helps but does not fully deliver the ask. Add it to `Related references` as non-closing context and keep or create a follow-up delivery leaf for the remaining gap. 4. Keep this pass focused on convergence and linkage. It does **not** rewrite, reformat, or otherwise "fix up" issue bodies to match issue templates; issue quality edits are separate work routed through [Define](Define.md). ### 7. Finalize and hand off diff --git a/src/docs/Ways-of-Working/Workflow-Stages/Review.md b/src/docs/Ways-of-Working/Workflow-Stages/Review.md index ac939a8..4dd679e 100644 --- a/src/docs/Ways-of-Working/Workflow-Stages/Review.md +++ b/src/docs/Ways-of-Working/Workflow-Stages/Review.md @@ -33,10 +33,10 @@ Check each dimension per [Review Etiquette](../Review-Etiquette.md): - **Taste** — readability, naming, structure, tests that exercise behavior. - **Security** — input validation, no secrets in logs, external action and reusable-workflow references pinned to full commit SHAs, owned major-tag references meeting the controlled-release exception, and least privilege. Escalate a deep pass to [Security Review](Security-Review.md). - **Documentation** — updated where user-facing behavior changed. -- **Pull request artifact** — the title states one result, the description follows - [PR Format](../PR-Format.md), supporting evidence is section-scoped, and - release metadata appears only when the target route invokes Release - Management. +- **Pull request artifact** — the title states one result, the description + follows [PR Format](../PR-Format.md), review evidence appears at the end and + identifies the result or interface it supports, and release metadata appears + only when the target route invokes Release Management. - **Standards and framework alignment** — the pull request records the author's [alignment pass](Implement.md#5-standards-and-framework-alignment-pass), the result covers every changed surface, and each exception links a real follow-up issue. Verify at least one row against the canonical standard or framework page. A missing or unsupported pass is a blocking finding. - **Issue convergence sweep** — the pull request records the author's [sweep](Implement.md#6-issue-convergence-sweep), including scoped search coverage and any convergent issues linked with closing keywords. Verify at least one linked closing issue against the delivered diff. Claimed convergence without visible delivery evidence is a blocking finding. - **Tests** — new behavior has tests; bugs get regression tests. From c357edbe7663231b77f3346809a3cc4376989d57 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 21 Nov 2026 19:03:24 +0100 Subject: [PATCH 3/8] Require Simplified Technical English in PR Format --- .github/CONTRIBUTING.md | 10 +- src/docs/Ways-of-Working/PR-Format.md | 314 +++++++++++++++----------- 2 files changed, 181 insertions(+), 143 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 6a4dabc..e284d50 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -52,12 +52,12 @@ Register a larger or unrelated problem as an issue in the repository that owns i ## Pull request format -Write the title and complete description using [canonical PR -Format](https://msxorg.github.io/docs/Ways-of-Working/PR-Format/). -For a release-bound change, the title and description are the only authored -release note. +Use [PR Format](https://msxorg.github.io/docs/Ways-of-Working/PR-Format/) to +write the title and complete description. Follow its +[ASD-STE100 writing rule](https://msxorg.github.io/docs/Ways-of-Working/PR-Format/#write-in-simplified-technical-english). +For a release-bound change, write the release note in the pull request only. Use the [complete description example](https://msxorg.github.io/docs/Ways-of-Working/PR-Format/#complete-description-example) -and verify any applicable release-range and source evidence against that guidance. +for the description. Check the release range and source evidence that apply. ## Authoring conventions diff --git a/src/docs/Ways-of-Working/PR-Format.md b/src/docs/Ways-of-Working/PR-Format.md index 7e0481f..0c3f108 100644 --- a/src/docs/Ways-of-Working/PR-Format.md +++ b/src/docs/Ways-of-Working/PR-Format.md @@ -5,22 +5,27 @@ description: Audience-first pull request titles and descriptions with evidence-b # PR Format -Write the pull request title and description as a release note for the people -and systems that use what the repository delivers. Keep maintainer-only changes -and review evidence at the end. If the change affects only maintainers, lead -with the internal outcome instead. - -Author the release note in the release-bound PR. Publication uses the frozen -snapshot of the complete reviewed title and description for the fixed source, -including collapsed blocks. Published MSX notes are the only source consumers -need for release-specific changes and upgrade actions. Diffs, links, issues, -templates, and [resource documentation](Documentation-Model.md#current-product-guidance-and-release-history) -can provide context, current usage, or evidence, but not missing steps. - -Consumers read every applicable release note after their actual consumed -baseline through the fixed target in release order and compose the necessary -actions. Install or run an intermediate version only when a note explicitly -requires it. +Write the pull request title and description as a release note. Write for the +people and systems that use the products of the repository. + +If the pull request has both consumer and internal changes, put the internal +changes at the end. If the pull request has only internal changes, give the +internal result first. Put review evidence at the end. + +For a release-bound pull request, write the release note in that pull request. +Publication uses the frozen snapshot of the complete reviewed title and +description for the fixed source. This snapshot includes collapsed blocks. + +Give consumers all release-specific changes and upgrade steps in the published +MSX notes. Diffs, links, issues, templates, and +[resource documentation](Documentation-Model.md#current-product-guidance-and-release-history) +can give context, usage information, or evidence. Do not put a necessary step +only in those sources. + +Consumers read the applicable notes in release order. They start after their +actual baseline and include the note for the fixed target. They use these notes +to make an upgrade plan. They install or run an intermediate version only if a +note requires that operation. The title and description use a shared format. The [Contribution Workflow](Contribution-Workflow.md) owns draft, assignment, @@ -35,22 +40,20 @@ the source. ### Identify the readers -Start with the repository [README audience -declaration](Readme-Driven-Context.md#target-audience). Check what the repository -actually delivers and how consumers use it. Inspect linked product docs, -capability specifications, and effective configuration. +Start with the [audience in the README](Readme-Driven-Context.md#target-audience). +Read the linked product documentation, capability specifications, and the +configuration in effect. Identify what the repository supplies and how consumers +use it. -Treat every supported interface as consumer-facing when someone depends on it. -Commands, APIs, configuration, reusable workflows, Actions, templates, and -published guidance can all be the product. A repository-owned workflow used by -other repositories is consumer-facing when its supported behavior changes. -A change to the repository's own test setup with no effect on supported uses -is internal. A change is not internal merely because its consumers write -scripts or maintain another product. +If consumers depend on a supported interface, treat it as consumer-facing. +The product can be a command, API, configuration, reusable workflow, Action, +template, or published guidance. If a workflow changes behavior that other +repositories use, treat the change as consumer-facing. A change to the +repository's own test setup is internal if it has no effect on supported uses. +Consumers can write scripts or maintain other products. -For documentation-only work, the delivered result is guidance. State what a -reader can now understand or do; do not present documentation as product -behavior that the change did not implement. +If a change updates only documentation, tell the reader what they can now +understand or do. Do not say that the change also updates the documented system. ### Resolve release coverage first @@ -212,14 +215,15 @@ decision source, not an error recovery path. ### Select the news -If any result affects consumers, write the title, shareable summary, and -classified sections for them. Cover every applicable consumer change and -required action. Put actual maintainer-only changes and review evidence -[at the end](#put-maintainer-content-last), not between consumer results. +If a change has an effect on consumers, use the title for the most important +consumer result. Write the shareable summary for consumers. Use the classified +sections only for consumer results. Include all applicable changes and upgrade +steps. Put maintainer-only changes and review evidence +[at the end](#put-maintainer-content-last). -If the work is internal-only, name the internal outcome in the title and -explain why it matters in the summary. Do not invent a consumer result or an -upgrade action. +If the work has only internal changes, give the internal result in the title. +Give the reason for the change in the summary. Do not add a consumer result +or an upgrade step. ### Group related changes @@ -228,20 +232,34 @@ issue, or implementation step. One section may describe several files that jointly deliver one result. Give distinct consumer results their own sections and classify each once. +## Write in Simplified Technical English + +Use **ASD-STE100 Issue 9** writing practices and American English (`en-US`). +This rule applies to the pull request title and all prose in the description. +It also applies to the published release note, including collapsed text. +Follow [Natural Language](../Coding-Standards/Natural-Language.md). Use the +[Technical Writing Guide](../Coding-Standards/Writing-Guide.md) to find the +official rules and dictionary. + +Use short sentences in the active voice. Give instructions as direct commands. +Give one action per instruction. If the reader must know a condition first, +put it before the instruction. Use the same term for the same concept. +Keep exact interface names, commands, and values. + ## Write the title -Use one short statement of the most important consumer result. For a -release-bound record, choose it from the complete resolved delivered range, -not only the scoped PR implementation: +Use a short title for the most important consumer result. For a release-bound +record, use the complete publication-to-candidate range to select that result. +Do not use only the changes in the pull request diff. ```text -LLM Gateway streaming requests report usage +LLM Gateway reports usage for streaming requests ``` -For internal-only work, name the operational result: +For internal-only work, give the internal result: ```text -Release automation uses a shared configuration +Docs builds use a cache for Python packages ``` The title must not contain: @@ -255,24 +273,25 @@ The title must not contain: ## Write the description -The description stands on its own for a reader who has not inspected the diff. -Use the following structure. +Give the reader all necessary information in the description. Do not make the +reader use the diff to find a required step. ### Summarize the result -Start with one or two short paragraphs and no `Summary` heading. For a change -that affects consumers, lead with required action and breaking impact when -either exists. A short unordered list is acceptable only when several distinct -results cannot be stated clearly in prose. +Start with one or two short paragraphs. Do not add a `Summary` heading. +If a change breaks a supported use or requires action, put this information +first. If prose cannot show several different results clearly, use a short +unordered list. -For consumer results, use the vocabulary of the supported interface. Describe -what changes and why, which uses are affected, and whether they remain -compatible. State what readers need to do or why no action is needed. Include -deadlines or prerequisites that affect whether or when to upgrade. Keep -implementation narration out of the summary. +For consumer results, use the terms of the supported interface. Tell the +reader what changes and why. Identify which supported uses the change applies +to. Tell the reader if those uses stay compatible. Give the required action. +If no action is necessary, give the reason. If a deadline or prerequisite +controls whether or when to upgrade, give it in the summary. Do not put +implementation details in the summary. -For internal-only work, summarize the real internal outcome and why it matters. -Do not add a consumer compatibility or adoption statement. +For internal-only work, give the internal result and the reason for the change. +Do not add a statement about consumer compatibility or adoption. ### End the shareable summary @@ -302,13 +321,14 @@ empty groups. An internal-only pull request has no classified sections. | `Changed` | Existing behavior, configuration, or guidance changes compatibly. | | `Fixed` | An incorrect behavior or guidance now works as intended. | -Each section heading states one result, not a component name. Open the section -with one or two visible paragraphs. Explain what changes and why. Name the -affected supported uses and state their compatibility. State the required -action or say why no action is needed beyond selecting the release reference. -Keep prerequisites and deadlines that affect whether or when to upgrade -visible, not only in a collapsed block. A documentation change uses the -classifier that describes what its guidance now provides. +Use one result as the section heading. Do not use only the component name. +Start the section with one or two visible paragraphs. Tell the reader what +changes and why. Identify which supported uses the change applies to. Tell the +reader if those uses stay compatible. Give the required action. If the consumer +only has to select the release reference, give the reason. If a prerequisite +or deadline controls whether or when to upgrade, put it in the visible text. +Do not put it only in a collapsed block. For a documentation change, use the +classifier for the new result of the guidance. ### Show interfaces after the prose @@ -322,35 +342,35 @@ release record. Never include secret values. ### Record migration details -When a result has exact technical adoption steps, put them in one `
` -block with the exact summary `Migration details`. This includes compatible -changes that have steps to adopt a new or changed behavior. If adoption is -optional, say so in the visible prose. Omit the block when no migration applies. -Do not include an empty block or a no-action placeholder. - -- Identify the affected versions or source baselines, supported uses, and - prerequisites for the steps. -- Give exact old and new names, values, commands, or examples. For initial - adoption, give the exact setup without inventing a previous state. -- Put edits and operations in the order the consumer must perform them. If an - intermediate installation or run is necessary, state the version or source, - what to do, and why the consumer cannot skip it. -- Give verification steps and the expected results, including any checks the - consumer must complete before proceeding. - -If this release supersedes an earlier action, explain what to omit or replace -and which intermediate operations still apply. Put every required step in the -release notes themselves, not only in a diff, link, issue, template, or -evergreen document. +If a result has technical steps for adoption, put them in one `
` +block. Use `Migration details` as the exact summary. If a compatible change +has adoption steps, use the block for those steps. If adoption is optional, +tell the reader in the visible text. If no migration applies, do not add the +block. Do not use an empty block or a placeholder for no action. + +- Identify the versions or source baselines that apply. Identify the supported + uses and prerequisites. +- Give exact old and new names, values, commands, or examples. For first-time + adoption, give the exact setup. Do not add a previous state that did not exist. +- Put edits and operations in the order the consumer must do them. If an + intermediate installation or run is necessary, give the version or source. + Give the steps for that operation. Give the reason why it is necessary. +- Give the checks and their expected results. If a check must pass before the + consumer continues, put the check before the next step. + +If a release changes an earlier instruction, tell the reader which step to +remove or replace. Tell the reader which intermediate steps still apply. +Put all required steps in the notes. Do not put a required step only in a +diff, link, issue, template, or evergreen document. ### Put maintainer content last -After the last consumer result, add each applicable collapsed block once, -in this order. These blocks apply to the whole pull request, not only the -result immediately above them. +After the last consumer result, add each applicable collapsed block one time. +Use the order below. These blocks apply to the complete pull request. -1. `Internal changes`: Briefly state what changed only for maintainers and - why it matters. Omit the block when there is no useful internal outcome. +1. `Internal changes`: Give a short summary of each useful change for + maintainers only. Give the reason for each change. If there is no useful + internal result, do not add the block. 2. `Technical details`: Record implementation and validation evidence. Name the result or changed interface that each item supports. 3. `Related references`: Include closing and non-closing references. Name @@ -442,6 +462,9 @@ release-note metadata. ### Complete description example +Follow the [ASD-STE100 writing rule](#write-in-simplified-technical-english) +when you use either example. + #### Mixed change Use the most important consumer result as the title. Replace every placeholder @@ -458,102 +481,112 @@ release-candidate routing in the mode evidence. Never turn invalid settings or conflicting owned labels into a no-action result. ````markdown -{{ One or two short paragraphs for consumers only. State what changes and why, -which supported uses are affected, and the required action or compatible -no-action outcome. Include deadlines or prerequisites that affect whether -or when to upgrade. }} +{{ Write one or two short paragraphs for consumers. Tell the reader what +changes and why. Identify which supported uses the change applies to. Give +the required action. If no action is necessary, give the reason. Give any +deadline or prerequisite that controls whether or when to upgrade. }} -## Breaking: {{ Reader-facing result }} +## Breaking: {{ Consumer result }} -{{ Explain what changes and why, affected supported uses, compatibility, and -the required action or why none is needed. Keep prerequisites and deadlines -that affect whether or when to upgrade visible. }} +{{ Tell the reader what changes and why. Identify which supported uses the +change applies to. Tell the reader if those uses stay compatible. Give the +required action. If no action is necessary, give the reason. Give any +prerequisite or deadline that controls whether or when to upgrade. }} {{ Optional short interface example or table that clarifies the result. }}
Migration details -{{ Affected baselines and uses, prerequisites, exact old and new values or -examples, ordered steps including any required intermediate operations, and -verification with expected results. Explain any superseded actions. }} +{{ Identify the applicable baselines, uses, and prerequisites. Give exact old +and new values or examples. Give the steps in order. Include any necessary +intermediate operation. Give the checks and their expected results. Tell the +reader which earlier steps to remove, replace, or keep. }}
-## Removed: {{ Reader-facing result }} +## Removed: {{ Consumer result }} -{{ Explain what changes and why, affected supported uses, compatibility, and -the required action or why none is needed. Keep prerequisites and deadlines -that affect whether or when to upgrade visible. }} +{{ Tell the reader what changes and why. Identify which supported uses the +change applies to. Tell the reader if those uses stay compatible. Give the +required action. If no action is necessary, give the reason. Give any +prerequisite or deadline that controls whether or when to upgrade. }} {{ Optional short interface example or table that clarifies the result. }}
Migration details -{{ Affected baselines and uses, prerequisites, exact old and new values or -examples, ordered steps including any required intermediate operations, and -verification with expected results. Explain any superseded actions. }} +{{ Identify the applicable baselines, uses, and prerequisites. Give exact old +and new values or examples. Give the steps in order. Include any necessary +intermediate operation. Give the checks and their expected results. Tell the +reader which earlier steps to remove, replace, or keep. }}
-## New: {{ Reader-facing result }} +## New: {{ Consumer result }} -{{ Explain what changes and why, affected supported uses, compatibility, and -the required action or why none is needed. Keep prerequisites and deadlines -that affect whether or when to upgrade visible. }} +{{ Tell the reader what changes and why. Identify which supported uses the +change applies to. Tell the reader if those uses stay compatible. Give the +required action. If no action is necessary, give the reason. Give any +prerequisite or deadline that controls whether or when to upgrade. }} {{ Optional short interface example or table that clarifies the result. }}
Migration details -{{ Affected baselines and uses, prerequisites, exact old and new values or -examples, ordered steps including any required intermediate operations, and -verification with expected results. Explain any superseded actions. }} +{{ Identify the applicable baselines, uses, and prerequisites. Give exact old +and new values or examples. Give the steps in order. Include any necessary +intermediate operation. Give the checks and their expected results. Tell the +reader which earlier steps to remove, replace, or keep. }}
-## Changed: {{ Reader-facing result }} +## Changed: {{ Consumer result }} -{{ Explain what changes and why, affected supported uses, compatibility, and -the required action or why none is needed. Keep prerequisites and deadlines -that affect whether or when to upgrade visible. }} +{{ Tell the reader what changes and why. Identify which supported uses the +change applies to. Tell the reader if those uses stay compatible. Give the +required action. If no action is necessary, give the reason. Give any +prerequisite or deadline that controls whether or when to upgrade. }} {{ Optional short interface example or table that clarifies the result. }}
Migration details -{{ Affected baselines and uses, prerequisites, exact old and new values or -examples, ordered steps including any required intermediate operations, and -verification with expected results. Explain any superseded actions. }} +{{ Identify the applicable baselines, uses, and prerequisites. Give exact old +and new values or examples. Give the steps in order. Include any necessary +intermediate operation. Give the checks and their expected results. Tell the +reader which earlier steps to remove, replace, or keep. }}
-## Fixed: {{ Reader-facing result }} +## Fixed: {{ Consumer result }} -{{ Explain what changes and why, affected supported uses, compatibility, and -the required action or why none is needed. Keep prerequisites and deadlines -that affect whether or when to upgrade visible. }} +{{ Tell the reader what changes and why. Identify which supported uses the +change applies to. Tell the reader if those uses stay compatible. Give the +required action. If no action is necessary, give the reason. Give any +prerequisite or deadline that controls whether or when to upgrade. }} {{ Optional short interface example or table that clarifies the result. }}
Migration details -{{ Affected baselines and uses, prerequisites, exact old and new values or -examples, ordered steps including any required intermediate operations, and -verification with expected results. Explain any superseded actions. }} +{{ Identify the applicable baselines, uses, and prerequisites. Give exact old +and new values or examples. Give the steps in order. Include any necessary +intermediate operation. Give the checks and their expected results. Tell the +reader which earlier steps to remove, replace, or keep. }}
Internal changes -{{ Summarize each useful maintainer-only outcome and why it matters. }} +{{ Give each useful change for maintainers only. Give the reason for it. }}
@@ -607,25 +640,28 @@ final version. Delete inapplicable evidence. }} #### Internal-only change -Example title: `Docs CI caches build dependencies` +Example title: `Docs builds use a cache for Python packages` -This route deploys the docs site but does not publish a versioned artifact, -so it has no `Release decisions` block. If the actual route invokes Release -Management, apply the same release criteria and add the final decision block. -An internal audience does not by itself establish a skip decision. +This route deploys the docs site. It does not publish a versioned artifact. +The example has no `Release decisions` block. If the actual route invokes +Release Management, put the `Release decisions` block at the end. Use the +same release criteria as for other changes. Do not select skip only because +the change is internal. ```markdown -The docs build job caches Python packages so repeat runs do not download the -same dependencies. +The docs build job keeps Python packages in a cache. Later runs use the cache +and do not download the same packages again.
Technical details -The docs build job uses the requirements file for its cache key. A cold run -and a cache-hit run both pass and generate identical site output. The delivery -plan is complete. No other open docs CI issue is fully resolved by this change. +The docs build job uses the requirements file for its cache key. One test +starts with an empty cache. The other test uses the packages from the cache. +Both tests pass. Both give the same site output. The delivery plan is complete. +The search covered open docs CI issues. This change does not resolve another +issue in that set. | Changed surface | Standards checked | Framework docs checked | Result | | --- | --- | --- | --- | @@ -647,6 +683,8 @@ Before marking the pull request ready, verify: - the title states one result and contains none of the prohibited prefixes, references, lists, or attribution; +- the title and all prose in the description follow the + [ASD-STE100 writing rule](#write-in-simplified-technical-english); - the summary is accurate on its own and the marker appears exactly once in the required position; - release-bound claims match the complete published-artifact-to-candidate From 3ecc6e31ce5d291690a4a820707e77d75a0d0b3b Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 21 Nov 2026 19:19:31 +0100 Subject: [PATCH 4/8] Group PR details under qualified result headings --- .../Capabilities/dependency-updates/design.md | 2 +- .../Capabilities/release-management/design.md | 11 +- .../Capabilities/release-management/spec.md | 8 +- src/docs/Coding-Standards/Natural-Language.md | 6 +- .../Ways-of-Working/Branching-and-Merging.md | 4 +- src/docs/Ways-of-Working/Consumer-Upgrades.md | 14 +- .../Definition-of-Ready-and-Done.md | 4 +- .../Ways-of-Working/Documentation-Model.md | 2 +- src/docs/Ways-of-Working/PR-Format.md | 299 +++++++++--------- .../Ways-of-Working/Repository-Standard.md | 2 +- .../Workflow-Stages/Implement.md | 8 +- .../Ways-of-Working/Workflow-Stages/Review.md | 8 +- 12 files changed, 188 insertions(+), 180 deletions(-) diff --git a/src/docs/Capabilities/dependency-updates/design.md b/src/docs/Capabilities/dependency-updates/design.md index e0670db..bc4accd 100644 --- a/src/docs/Capabilities/dependency-updates/design.md +++ b/src/docs/Capabilities/dependency-updates/design.md @@ -105,7 +105,7 @@ This adoption obligation uses the existing review path, not another updater. Dependency changes are collected before any repository release decision is made. When the target route invokes [Release Management](../release-management/design.md), that capability resolves the -repository-wide effect. Otherwise the pull request omits the `Release decisions` +repository-wide effect. Otherwise the pull request omits the `Release details` block and all `release:*` labels. ## Review and merge diff --git a/src/docs/Capabilities/release-management/design.md b/src/docs/Capabilities/release-management/design.md index d053d73..26f9906 100644 --- a/src/docs/Capabilities/release-management/design.md +++ b/src/docs/Capabilities/release-management/design.md @@ -484,11 +484,12 @@ affected uses and compatibility, and the required action or explicit no-action outcome. Keep prerequisites and deadlines that affect whether or when to upgrade visible. Put exact adoption steps in the result's -[Migration details block](../../Ways-of-Working/PR-Format.md#record-migration-details) -when they apply. Put maintainer-only outcomes and review evidence in the -[end blocks](../../Ways-of-Working/PR-Format.md#put-maintainer-content-last), -not between consumer results. For internal-only work, the summary states the -operational outcome and review evidence follows the marker. +[Migration guide](../../Ways-of-Working/PR-Format.md#write-the-migration-guide) +when they apply. Keep review evidence in the +[detail blocks](../../Ways-of-Working/PR-Format.md#add-result-details-in-order) +for the result it supports. Put +[maintainer-only sections](../../Ways-of-Working/PR-Format.md#put-maintainer-content-last) +after all consumer sections. Verify format adherence from the actual title, complete body, source coverage, and evidence for each affected result or interface. Similarity to an inherited diff --git a/src/docs/Capabilities/release-management/spec.md b/src/docs/Capabilities/release-management/spec.md index 2586c04..46ee394 100644 --- a/src/docs/Capabilities/release-management/spec.md +++ b/src/docs/Capabilities/release-management/spec.md @@ -417,10 +417,10 @@ and why, which supported uses it affects, and whether they remain compatible. It MUST state the required action or explain why no action is needed. Deadlines and prerequisites that determine whether or when to upgrade MUST be visible. When exact technical adoption steps apply, the result MUST carry them in its -[Migration details block](../../Ways-of-Working/PR-Format.md#record-migration-details), -with applicability, order, and verification. Review-only evidence MUST follow -all consumer results and identify the result or interface it supports, under -[PR Format](../../Ways-of-Working/PR-Format.md#put-maintainer-content-last). +[Migration guide](../../Ways-of-Working/PR-Format.md#write-the-migration-guide), +with applicability, order, and verification. Review-only evidence MUST +identify the result or interface it supports. It MUST appear in that result's +collapsed blocks under [PR Format](../../Ways-of-Working/PR-Format.md#add-result-details-in-order). Announcements MUST NOT truncate the full release record. Canonical format adherence MUST be verified from the actual title, complete diff --git a/src/docs/Coding-Standards/Natural-Language.md b/src/docs/Coding-Standards/Natural-Language.md index 5228e4b..b1d6dde 100644 --- a/src/docs/Coding-Standards/Natural-Language.md +++ b/src/docs/Coding-Standards/Natural-Language.md @@ -178,9 +178,9 @@ PR titles and descriptions are written for the user of the change first, then th | `Agentic development guidance defines the framework` | `Update framework docs` | | `Agents segment project context before loading standards.` | `Refactor AGENTS.md instructions.` | -Put implementation evidence in the [`Technical details` block at the -end](../Ways-of-Working/PR-Format.md#put-maintainer-content-last). Identify the -result or interface the evidence supports. +Put implementation evidence in the result's +[`Technical details` block](../Ways-of-Working/PR-Format.md#add-result-details-in-order). +Identify the result or interface the evidence supports. ## Prompts diff --git a/src/docs/Ways-of-Working/Branching-and-Merging.md b/src/docs/Ways-of-Working/Branching-and-Merging.md index 8e98957..2bbdeb8 100644 --- a/src/docs/Ways-of-Working/Branching-and-Merging.md +++ b/src/docs/Ways-of-Working/Branching-and-Merging.md @@ -47,7 +47,7 @@ Every layer follows the ordinary [Contribution Workflow](Contribution-Workflow.m 1. **Plan the dependency.** Give each layer its own Task or Bug issue. Add a native blocked-by edge from every dependent leaf to its prerequisite as described in [Issue Relationships](Issues/Process/Relationships.md#execution-order); prose, sub-issue order, and stack position do not create the gate. 2. **Open every layer as a draft.** After the initial commit, push the branch and open its pull request immediately. Use the standard user-facing title and description from [PR Format](PR-Format.md); do not add stack position or an internal branch name to the title. -3. **Link the stack in Related references.** Add fully qualified pull request links for the immediate dependency and dependent to the pull request's `Related references` block, using `Depends on Owner/Repo#N` and `Followed by Owner/Repo#N`. Each pull request closes only its own Task or Bug. +3. **Link the stack in Related links.** Add fully qualified pull request links for the immediate dependency and dependent to the applicable result's `Related links` block. Use `Depends on Owner/Repo#N` and `Followed by Owner/Repo#N`. Each pull request closes only its own Task or Bug. 4. **Keep each delta isolated.** The pull request diff against its current base contains only that layer's change. Run its tests, checks, and automated review even when an earlier layer already exercised the combined code. 5. **Make one layer ready at a time.** Only the lowest unmerged layer is marked ready and given auto-merge. Every later layer stays draft, even when its current checks are green. 6. **Advance after merge.** When the lowest layer merges, refresh the next branch against the merged target. @@ -77,7 +77,7 @@ Its diff shows the exact integrated changes not yet promoted and defines the pro - **Draft is the resting state.** Mark it ready when the integrated state is deemed promotable. This starts review and any promotion gate. - **Its description is the promotion note.** The description records the promoted changes for the destination's operators. -- **Its release metadata follows the target route.** When the route invokes [Release Management](../Capabilities/release-management/spec.md), the pull request's `Release decisions` block records the production decision. +- **Its release metadata follows the target route.** When the route invokes [Release Management](../Capabilities/release-management/spec.md), the pull request's `Release details` block records the production decision. The version bump comes from its explicit owned bump label or the valid effective `DefaultBump`. The effective configuration includes shared defaults, repository settings, and supported caller overrides. The versions of the bundled changes do not determine the bump. diff --git a/src/docs/Ways-of-Working/Consumer-Upgrades.md b/src/docs/Ways-of-Working/Consumer-Upgrades.md index 5ee4c93..6d41f44 100644 --- a/src/docs/Ways-of-Working/Consumer-Upgrades.md +++ b/src/docs/Ways-of-Working/Consumer-Upgrades.md @@ -120,12 +120,14 @@ traversal. ### Stage 3: Compose the action ledger Read each applicable record in full. Read the visible results for impact and -timing, and open the [Migration details blocks](PR-Format.md#record-migration-details) -for exact steps. Read supporting evidence, including template compatibility, -where applicable. Together the MSX release records after the actual baseline -through the fixed target supply every release-specific action. A diff, link, -issue, template, or evergreen document can corroborate an action but cannot -fill a gap in those instructions. +timing. For each consumer result that applies to your use, read its +[Migration guide](PR-Format.md#write-the-migration-guide) when it has one. +Do not add steps from `Internal:` sections to the consumer ledger. +Read supporting evidence, including template compatibility, where applicable. +Together the MSX release records after the actual baseline through the fixed +target supply every release-specific action. A diff, link, issue, template, or +evergreen document can corroborate an action but cannot fill a gap in those +instructions. 1. Associate each release/change identifier with the consumer surfaces it affects. Record applicability against the actual baseline and intended use, diff --git a/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md b/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md index 37c09c5..dcc73ea 100644 --- a/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md +++ b/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md @@ -33,8 +33,8 @@ A pull request is ready for review when: - The automated review loop has converged — a clean [Copilot round](Contribution-Workflow.md#the-copilot-review-loop) with no unresolved review threads. - The [standards and framework alignment pass](Workflow-Stages/Implement.md#5-standards-and-framework-alignment-pass) has run against the finished change, its result covers every changed surface in the pull request, and every exception links a follow-up issue. - The [issue convergence sweep](Workflow-Stages/Implement.md#6-issue-convergence-sweep) has run against scoped open issues, and every fully convergent issue is linked in the pull request with a closing keyword. -- The title and release-note-ready description are finalized per [PR Format](PR-Format.md). When the target route invokes Release Management, the `Release decisions` block, effective configuration, and applied `release:*` labels agree, and the [required decision check](../Capabilities/release-management/design.md#required-pre-merge-decision-check) passes; an explicit bump label is not mandatory when the valid effective default supplies the level, including supported caller overrides. When the route does not invoke Release Management, the block and labels are absent. -- A release-bound PR is ready to freeze its complete reviewed title and description for the fixed source. Visible results state the impact, upgrade timing constraints, and required action or compatible no-action outcome. Each applicable [Migration details block](PR-Format.md#record-migration-details) contains the exact adoption steps, and supporting evidence includes applicable immutable template compatibility. No required step is missing from the record. +- The title and release-note-ready description are finalized per [PR Format](PR-Format.md). When the target route invokes Release Management, the `Release details` block, effective configuration, and applied `release:*` labels agree, and the [required decision check](../Capabilities/release-management/design.md#required-pre-merge-decision-check) passes; an explicit bump label is not mandatory when the valid effective default supplies the level, including supported caller overrides. When the route does not invoke Release Management, the block and labels are absent. +- A release-bound PR is ready to freeze its complete reviewed title and description for the fixed source. Visible results state the impact, upgrade timing constraints, and required action or compatible no-action outcome. Each applicable [Migration guide](PR-Format.md#write-the-migration-guide) contains the exact adoption steps, and supporting evidence includes applicable immutable template compatibility. No required step is missing from the record. - An upgrade PR reconciles every applicable release after its actual baseline through the fixed target under [Consumer Upgrades](Consumer-Upgrades.md); the newest release note alone is insufficient. - Required post-merge publication, deployment, or template milestones name a [completion-owning issue](#post-merge-completion-ownership) and responsible owner before review; automatic PR closure cannot be their only completion signal. diff --git a/src/docs/Ways-of-Working/Documentation-Model.md b/src/docs/Ways-of-Working/Documentation-Model.md index afc9de4..d459d40 100644 --- a/src/docs/Ways-of-Working/Documentation-Model.md +++ b/src/docs/Ways-of-Working/Documentation-Model.md @@ -178,7 +178,7 @@ exists. Delivery records contain that evidence and any remaining gap. The release-bound PR is the single authored record. Publication preserves a frozen snapshot of its complete reviewed title and description for the fixed source, including collapsed blocks. [PR Format](PR-Format.md) owns the visible -result and its `Migration details` block. +result and its `Migration guide` block. For MSX releases, consumers compose the upgrade from all applicable notes after their actual consumed baseline through the fixed target. Only those notes diff --git a/src/docs/Ways-of-Working/PR-Format.md b/src/docs/Ways-of-Working/PR-Format.md index 0c3f108..151f008 100644 --- a/src/docs/Ways-of-Working/PR-Format.md +++ b/src/docs/Ways-of-Working/PR-Format.md @@ -10,7 +10,7 @@ people and systems that use the products of the repository. If the pull request has both consumer and internal changes, put the internal changes at the end. If the pull request has only internal changes, give the -internal result first. Put review evidence at the end. +internal result first. Keep review evidence with the result it supports. For a release-bound pull request, write the release note in that pull request. Publication uses the frozen snapshot of the complete reviewed title and @@ -58,7 +58,7 @@ understand or do. Do not say that the change also updates the documented system. ### Resolve release coverage first For a release-bound record, establish the artifact-to-candidate range before -inspecting a scoped PR diff or writing the title, classified results, adoption +inspecting a scoped PR diff or writing the title, result sections, adoption actions, or compatibility decision. The [actual publication route](../Capabilities/release-management/design.md#applicability) determines the product, publishing target, and stable/prerelease channel. @@ -90,13 +90,13 @@ artifact target's publication baseline. does not define this boundary. 5. **Inventory the complete delivered range.** Inspect every consumer-facing change in that comparison, including earlier merged, skipped, or otherwise - unshipped changes. Use this inventory for the title, ordered result groups, + unshipped changes. Use this inventory for the title, ordered result sections, complete adoption actions, and compatibility decision. Do not classify a change as new merely because an older publication record finished later. -Record these identities in the `Technical details` block once per applicable -product, publishing target, and channel. Identify which range supports each -result when the ranges differ: +Record these identities in a `Technical details` block for a result they +support. Record them once per applicable product, publishing target, and +channel. Identify which range supports each result when the ranges differ: | Field | Evidence | | --- | --- | @@ -187,8 +187,8 @@ that producer's PR/release record. Hold finalization until the effective mapping and required decision check are verified; do not apply a label the pipeline ignores, silently translate it, or classify an incompatible producer as unmanaged. -If the route does not invoke Release Management, omit the entire `Release -decisions` block and do not apply or report any `release:*` label, including +If the route does not invoke Release Management, omit the `Release details` +block. Do not apply or report any `release:*` label, including `release:skip`. If the route does invoke Release Management, resolve these decisions from the @@ -216,21 +216,20 @@ decision source, not an error recovery path. ### Select the news If a change has an effect on consumers, use the title for the most important -consumer result. Write the shareable summary for consumers. Use the classified -sections only for consumer results. Include all applicable changes and upgrade -steps. Put maintainer-only changes and review evidence -[at the end](#put-maintainer-content-last). +consumer result. Write the shareable summary for consumers. Include all +applicable consumer changes and upgrade steps. Put +[maintainer-only sections](#put-maintainer-content-last) after all consumer +sections. Keep supporting details with the result they support. If the work has only internal changes, give the internal result in the title. Give the reason for the change in the summary. Do not add a consumer result -or an upgrade step. +or a consumer upgrade step. ### Group related changes -Group consumer changes by result or affected interface, not by commit, file, +Group changes by result or affected interface, not by commit, file, issue, or implementation step. One section may describe several files that -jointly deliver one result. Give distinct consumer results their own sections -and classify each once. +jointly deliver one result. Give each distinct result its own section. ## Write in Simplified Technical English @@ -302,10 +301,11 @@ The marker appears exactly once, on its own line, outside a code fence, and before the first detailed section. Text before it must remain useful when shared without the rest of the description. -### Explain each reader-facing result +### Describe each result -Use these classifiers for consumer results only. Keep this order and omit -empty groups. An internal-only pull request has no classified sections. +Start each result section with an H2 heading: `## : `. +Give the description below the heading. Use these qualifiers in order for +consumer results. Do not add empty sections. 1. `## Breaking: ` 2. `## Removed: ` @@ -313,7 +313,7 @@ empty groups. An internal-only pull request has no classified sections. 4. `## Changed: ` 5. `## Fixed: ` -| Classifier | Use when | +| Qualifier | Use when | | --- | --- | | `Breaking` | A supported consumer must act or an existing supported use becomes incompatible. | | `Removed` | A supported capability, interface, or documented path is no longer available. | @@ -321,29 +321,27 @@ empty groups. An internal-only pull request has no classified sections. | `Changed` | Existing behavior, configuration, or guidance changes compatibly. | | `Fixed` | An incorrect behavior or guidance now works as intended. | -Use one result as the section heading. Do not use only the component name. -Start the section with one or two visible paragraphs. Tell the reader what +Name the result in the heading, not only the component. Start the description +with one or two visible paragraphs. For a consumer result, tell the reader what changes and why. Identify which supported uses the change applies to. Tell the reader if those uses stay compatible. Give the required action. If the consumer only has to select the release reference, give the reason. If a prerequisite or deadline controls whether or when to upgrade, put it in the visible text. -Do not put it only in a collapsed block. For a documentation change, use the -classifier for the new result of the guidance. +Do not put it only in a collapsed block. For a documentation change, choose +the qualifier that describes what readers can now understand or do. ### Show interfaces after the prose After the opening prose, add a short interface example or compact table only when it clarifies the result. Do not lead a section with a code block or table. -Put exact transition examples in `Migration details`. +Put exact transition examples in the `Migration guide`. -Link optional usage documentation using an absolute default-branch URL or the -canonical published URL so the link survives when the pull request becomes a -release record. Never include secret values. +Never include secret values. -### Record migration details +### Write the migration guide If a result has technical steps for adoption, put them in one `
` -block. Use `Migration details` as the exact summary. If a compatible change +block. Use `Migration guide` as the exact summary. If a compatible change has adoption steps, use the block for those steps. If adoption is optional, tell the reader in the visible text. If no migration applies, do not add the block. Do not use an empty block or a placeholder for no action. @@ -352,11 +350,11 @@ block. Do not use an empty block or a placeholder for no action. uses and prerequisites. - Give exact old and new names, values, commands, or examples. For first-time adoption, give the exact setup. Do not add a previous state that did not exist. -- Put edits and operations in the order the consumer must do them. If an +- Put edits and operations in the order the reader must do them. If an intermediate installation or run is necessary, give the version or source. Give the steps for that operation. Give the reason why it is necessary. - Give the checks and their expected results. If a check must pass before the - consumer continues, put the check before the next step. + reader continues, put the check before the next step. If a release changes an earlier instruction, tell the reader which step to remove or replace. Tell the reader which intermediate steps still apply. @@ -365,21 +363,31 @@ diff, link, issue, template, or evergreen document. ### Put maintainer content last -After the last consumer result, add each applicable collapsed block one time. -Use the order below. These blocks apply to the complete pull request. +Use `## Internal: ` for a result that applies only to +maintainers. +Give the result and the reason below the heading. Use the same block order as +for a consumer result. If maintainers must act, give the action in the visible +text and the exact steps in that section's `Migration guide`. Keep consumer +steps in the consumer section they belong to. -1. `Internal changes`: Give a short summary of each useful change for - maintainers only. Give the reason for each change. If there is no useful - internal result, do not add the block. -2. `Technical details`: Record implementation and validation evidence. Name - the result or changed interface that each item supports. -3. `Related references`: Include closing and non-closing references. Name - the relevant result or interface when the connection is not clear. +Put all `Internal:` sections after the consumer sections. If the pull request +has only internal changes, start the `Internal:` sections directly after the +summary marker. Do not add a consumer section. -For internal-only work, put the applicable `Technical details` and `Related -references` blocks directly after the summary marker. Do not repeat the outcome -in an `Internal changes` block. Keep every consumer migration step with its -consumer result, not in the maintainer blocks. +### Add result details in order + +After the visible text and any example, add one collapsed `
` block +for each type that applies to the result. Use these exact summaries in this +order: + +1. `Migration guide`: Give the technical steps to adopt the result. +2. `Technical details`: Give evidence of the implementation and checks. +3. `Related links`: Give closing and non-closing references, and any optional + usage links for the result. + +Keep each block in a result section. If several results share evidence, record +it once in a section it supports. Name the other results or interfaces it +supports. Put the standards and framework alignment evidence required by [Implement](Workflow-Stages/Implement.md#5-standards-and-framework-alignment-pass) @@ -393,27 +401,29 @@ not release-note coverage. Record the closing delivery leaf's implementation-plan progress and the [issue convergence sweep](Workflow-Stages/Implement.md#6-issue-convergence-sweep) -search scope and outcome in that same block, including when no additional issue -converges. +search scope and outcome in a `Technical details` block for a result they +support. Record the outcome even when no other issue converges. Use fully qualified `owner/repository#number` references for every same-instance GitHub issue or pull request, including references to the current repository. Use closing keywords only for issues the complete change actually resolves. Prefix non-closing relationships with terms such as `References`, `Depends on`, or `Followed by`. Use absolute Markdown links for Jira, cross-instance GitHub, -and references that will render outside GitHub. +and references that will render outside GitHub. For optional usage +documentation, use an absolute default-branch URL or the canonical published +URL. The link must also work in the release record. Do not include AI or agent attribution anywhere in the description. ### Record release decisions only when invoked -When the target route invokes Release Management, add one `Release decisions` -block at the end, after all other content. Apply the exact labels the block -reports: +When the target route invokes Release Management, add one standalone `
` +block after all other content. Use `Release details` as the exact summary. +This block is not part of a result. Apply the exact labels the block reports: ```markdown
-Release decisions +Release details - **Release:** Yes - the delivered artifact and supported caller contract change. - **Version bump:** Minor - callers gain a compatible optional input. @@ -427,7 +437,7 @@ For a no-release decision, include only the decision and its label: ```markdown
-Release decisions +Release details - **Release:** No - the change does not affect the artifact or its supported consumer contracts. - **Labels:** `release:skip` @@ -451,11 +461,14 @@ Use this order: 1. Summary prose: consumer impact, or the operational outcome for internal-only work. 2. The shareable-summary marker. -3. Consumer sections in classifier order, each with its own `Migration details` - block when applicable. Omit these sections for internal-only work. -4. Applicable end blocks in order: `Internal changes` (mixed work only), - `Technical details`, and `Related references`. -5. `Release decisions` last, only when the target route invokes Release Management. +3. Consumer sections in qualifier order. Do not add these sections for + internal-only work. +4. `Internal:` sections after all consumer sections. +5. `Release details` last, only when the target route invokes Release Management. + +In each result section, put the H2 heading first. Give the description next. +Then add the applicable blocks in this order: `Migration guide`, +`Technical details`, and `Related links`. Do not add a `Summary` heading, empty sections or blocks, or parallel release-note metadata. @@ -469,9 +482,11 @@ when you use either example. Use the most important consumer result as the title. Replace every placeholder below and delete sections, examples, or blocks that do not apply. Repeat a -consumer section when several distinct results share the same classifier. -Keep classifier order and include `Migration details` only where there are -technical adoption steps, including compatible adoption where applicable. +section when several distinct results share the same qualifier. Keep consumer +sections in qualifier order. Put all `Internal:` sections after the consumer +sections. For consumer-only work, omit the `Internal:` section. Use the +applicable blocks in each section in the order shown under `Breaking:`. If a +result has technical adoption steps, give them in its `Migration guide`. Use the final block only for a route that invokes Release Management. Follow [Record release decisions only when invoked](#record-release-decisions-only-when-invoked) @@ -490,15 +505,14 @@ deadline or prerequisite that controls whether or when to upgrade. }} ## Breaking: {{ Consumer result }} -{{ Tell the reader what changes and why. Identify which supported uses the -change applies to. Tell the reader if those uses stay compatible. Give the -required action. If no action is necessary, give the reason. Give any -prerequisite or deadline that controls whether or when to upgrade. }} +{{ Tell the reader what changes and why. Identify the affected supported uses. +Tell the reader which uses are no longer compatible. Give the required action. +Give any prerequisite or deadline that controls whether or when to upgrade. }} {{ Optional short interface example or table that clarifies the result. }}
-Migration details +Migration guide {{ Identify the applicable baselines, uses, and prerequisites. Give exact old and new values or examples. Give the steps in order. Include any necessary @@ -507,121 +521,106 @@ reader which earlier steps to remove, replace, or keep. }}
-## Removed: {{ Consumer result }} +
+Technical details -{{ Tell the reader what changes and why. Identify which supported uses the -change applies to. Tell the reader if those uses stay compatible. Give the -required action. If no action is necessary, give the reason. Give any -prerequisite or deadline that controls whether or when to upgrade. }} +{{ Give the implementation and checks for this result. Record the delivery +plan status and the issue search scope and outcome in the section they support. +If no other issue converges, record that result. }} -{{ Optional short interface example or table that clarifies the result. }} +| Changed surface | Standards checked | Framework docs checked | Result | +| --- | --- | --- | --- | +| `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | + +{{ Record the publication baseline, receipt, immutable artifact and source +identities, candidate, comparison, and freshness evidence for each applicable +range. Give shared evidence only once. Name the results it supports. Record +the scoped PR-base comparison separately. If an integration template applies, +give its repository, compatible immutable commit, and verification evidence. +Do not predict the final version. }} + +
-Migration details +Related links -{{ Identify the applicable baselines, uses, and prerequisites. Give exact old -and new values or examples. Give the steps in order. Include any necessary -intermediate operation. Give the checks and their expected results. Tell the -reader which earlier steps to remove, replace, or keep. }} +- Resolves MSXOrg/repository#123 +- Depends on MSXOrg/other-repository#789
-## New: {{ Consumer result }} - -{{ Tell the reader what changes and why. Identify which supported uses the -change applies to. Tell the reader if those uses stay compatible. Give the -required action. If no action is necessary, give the reason. Give any -prerequisite or deadline that controls whether or when to upgrade. }} +## Removed: {{ Consumer result }} -{{ Optional short interface example or table that clarifies the result. }} +{{ Name the removed interface and tell the reader why it is no longer +available. Identify who uses it. Give the required action and any timing +constraints. }}
-Migration details +Migration guide -{{ Identify the applicable baselines, uses, and prerequisites. Give exact old -and new values or examples. Give the steps in order. Include any necessary -intermediate operation. Give the checks and their expected results. Tell the -reader which earlier steps to remove, replace, or keep. }} +{{ Give the exact steps and checks for consumers who use the removed +interface. }}
-## Changed: {{ Consumer result }} - -{{ Tell the reader what changes and why. Identify which supported uses the -change applies to. Tell the reader if those uses stay compatible. Give the -required action. If no action is necessary, give the reason. Give any -prerequisite or deadline that controls whether or when to upgrade. }} +## New: {{ Consumer result }} -{{ Optional short interface example or table that clarifies the result. }} +{{ Tell the reader what consumers can now do and why it helps. Identify the +uses that stay compatible. For a new feature that consumers can choose to +use, state that adoption is optional. Give any applicable timing constraints. }}
-Migration details +Migration guide -{{ Identify the applicable baselines, uses, and prerequisites. Give exact old -and new values or examples. Give the steps in order. Include any necessary -intermediate operation. Give the checks and their expected results. Tell the -reader which earlier steps to remove, replace, or keep. }} +{{ Give the exact setup and checks for consumers who adopt the new feature. }}
-## Fixed: {{ Consumer result }} - -{{ Tell the reader what changes and why. Identify which supported uses the -change applies to. Tell the reader if those uses stay compatible. Give the -required action. If no action is necessary, give the reason. Give any -prerequisite or deadline that controls whether or when to upgrade. }} +## Changed: {{ Consumer result }} -{{ Optional short interface example or table that clarifies the result. }} +{{ Explain what changes and why. Identify the uses that stay compatible and +why no action is necessary. Give any applicable timing constraints. }}
-Migration details +Technical details -{{ Identify the applicable baselines, uses, and prerequisites. Give exact old -and new values or examples. Give the steps in order. Include any necessary -intermediate operation. Give the checks and their expected results. Tell the -reader which earlier steps to remove, replace, or keep. }} +{{ Give the implementation and checks for the compatible change. }}
+## Fixed: {{ Consumer result that needs no migration }} + +{{ Tell the reader what the fix changes and why. Identify the supported uses +that stay compatible. Give the reason why consumers do not need to act. }} + +## Internal: {{ What changes internally }} + +{{ Tell maintainers what changes and why. If they need to act, give the +required action here. }} +
-Internal changes +Migration guide -{{ Give each useful change for maintainers only. Give the reason for it. }} +{{ Give the step-by-step instructions and checks for maintainers only. }}
Technical details -{{ Record implementation and validation evidence by result or changed -interface. Record closing delivery-leaf plan progress and the issue-convergence -search scope and outcome, even when no additional issue converges. }} - -| Changed surface | Standards checked | Framework docs checked | Result | -| --- | --- | --- | --- | -| `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | - -{{ For each applicable range, record the product, target, and channel, latest -successful artifact and immutable source, exact candidate source, comparison, -and freshness as specified under Resolve release coverage first. State which -results the range covers. Record the scoped PR-base comparison separately. -For an affected integration template, identify its repository, verified -compatible immutable commit, and compatibility evidence. Do not predict a -final version. Delete inapplicable evidence. }} +{{ Give the implementation and checks for this maintainer result. }}
-Related references +Related links -- Resolves MSXOrg/repository#123 - References MSXOrg/repository#456 -- Depends on MSXOrg/other-repository#789
-Release decisions +Release details - **Release:** {{ Yes or No }} - {{ Evidence from the artifact, route, and supported consumer contract. }} @@ -643,8 +642,8 @@ final version. Delete inapplicable evidence. }} Example title: `Docs builds use a cache for Python packages` This route deploys the docs site. It does not publish a versioned artifact. -The example has no `Release decisions` block. If the actual route invokes -Release Management, put the `Release decisions` block at the end. Use the +The example has no `Release details` block. If the actual route invokes +Release Management, put the `Release details` block at the end. Use the same release criteria as for other changes. Do not select skip only because the change is internal. @@ -654,6 +653,11 @@ and do not download the same packages again. +## Internal: Later docs builds use the package cache + +The build job gets Python packages from the cache when the requirements file +has not changed. The build command stays the same. +
Technical details @@ -670,7 +674,7 @@ issue in that set.
-Related references +Related links - Resolves MSXOrg/repository#123 @@ -698,12 +702,14 @@ Before marking the pull request ready, verify: inputs are resolved; an initial publication has explicit reviewed initial coverage rather than a fabricated predecessor or no-action assumption; - when any result affects consumers, only consumer results appear in the - title, shareable summary, and classified sections. Classifier groups are - non-empty and ordered; + title, shareable summary, and consumer sections. Consumer sections are in + qualifier order; +- each result starts with `## : ` and a visible description. + All `Internal:` sections follow the consumer sections; - consumer-facing prose explains what changed and why, affected supported uses, compatibility, and the required action or compatible no-action outcome. It shows deadlines and prerequisites that affect whether or when to upgrade; -- each result with technical adoption steps has a `Migration details` block +- each result with technical adoption steps has a `Migration guide` block with applicability, exact edits, ordered operations, and verification. Results with no migration have no block; - for a release-bound PR, the complete reviewed title and description, @@ -712,18 +718,17 @@ Before marking the pull request ready, verify: - release-order composition preserves required intermediate operations without assuming every intermediate version must be installed; - prose precedes optional examples and tables; -- in mixed work, useful maintainer-only outcomes appear in one optional - `Internal changes` block after all consumer results. Review-only `Technical - details` and `Related references` follow there, with evidence mapped to the - result or interface it supports and common source evidence recorded once; +- each result has one collapsed block per applicable type. The order is + `Migration guide`, `Technical details`, then `Related links`. Shared evidence + appears once and names the results or interfaces it supports; - for internal-only work, the title names the internal outcome and the summary - explains why it matters. No classified section, migration block, or `Internal - changes` block appears. Any review evidence follows the marker; + explains why it matters. No consumer results or consumer upgrade steps + appear; - same-instance references are fully qualified and closing keywords are accurate; - release metadata and `release:*` labels are absent when the route does not invoke Release Management; -- when Release Management applies, `Release decisions` is the final block and +- when Release Management applies, `Release details` is the final block and agrees with the labels, effective configuration, and complete-change evidence; - the description contains no AI or agent attribution. diff --git a/src/docs/Ways-of-Working/Repository-Standard.md b/src/docs/Ways-of-Working/Repository-Standard.md index 46e07ac..dc4f270 100644 --- a/src/docs/Ways-of-Working/Repository-Standard.md +++ b/src/docs/Ways-of-Working/Repository-Standard.md @@ -195,7 +195,7 @@ A pull request closes one scoped Task or Bug, with any additional closing links limited to issues the session-end convergence sweep shows are fully delivered by the same diff. When the target route invokes Release Management, the description and labels carry its evidence-based release decision. A route without that -invocation carries neither the `Release decisions` block nor `release:*` labels. +invocation carries neither the `Release details` block nor `release:*` labels. Contribution guidance and thin skills direct humans and agents to the [complete PR description example](PR-Format.md#complete-description-example). diff --git a/src/docs/Ways-of-Working/Workflow-Stages/Implement.md b/src/docs/Ways-of-Working/Workflow-Stages/Implement.md index 79ccf9f..53add56 100644 --- a/src/docs/Ways-of-Working/Workflow-Stages/Implement.md +++ b/src/docs/Ways-of-Working/Workflow-Stages/Implement.md @@ -74,7 +74,7 @@ Record the outcome as one row per changed surface: | `src/functions/**` (PowerShell) | Naming, Functions, Error Handling | Module source layout | Aligned | | `.github/workflows/**` | GitHub Actions | Reusable workflow contract | Exception — Owner/Repo#123 | -A result is `Aligned`, `Fixed in this PR`, or `Exception` with a link that justifies it. Where a changed surface has no framework or domain documentation of its own, write `None (no framework-specific docs)` rather than inventing a pseudo-link. Put the table in the [`Technical details` block at the end](../PR-Format.md#put-maintainer-content-last). Identify the result or interface each row supports so [Review](Review.md) can verify the pass. +A result is `Aligned`, `Fixed in this PR`, or `Exception` with a link that justifies it. Where a changed surface has no framework or domain documentation of its own, write `None (no framework-specific docs)` rather than inventing a pseudo-link. Put each row in the [`Technical details` block](../PR-Format.md#add-result-details-in-order) for the result it supports. If a row supports several results or interfaces, record it once and name them so [Review](Review.md) can verify the pass. **Stop rule.** Fix only work in scope for the closing Task or Bug, and keep the pull request small enough to review. For out-of-scope or systemic findings, file a follow-up issue through [Define](Define.md). Do the same when a finding would change the pull request's scope. Link the follow-up in the table as an exception and leave that work out of the change. The pass verifies alignment; it does not add another deliverable. @@ -85,15 +85,15 @@ Run this once per implementation session, at the same timing as the standards/fr 1. Search for already-open issues whose asks are already satisfied by the finished diff, not only the issue originally linked when the branch was opened. 2. Scope the sweep deliberately so it scales: prioritize the delivery leaf's parent and siblings in the [Issue Hierarchy](../Issues/Types/Hierarchy.md), then narrow by affected component, labels, keywords, or code paths. Do not read every open issue serially in large repositories. 3. Treat convergence as outcome-based: - - **Fully satisfied** — the diff already delivers the issue's ask. Add it to `Related references` with `Resolves` so merge closes it. - - **Partially satisfied** — the diff helps but does not fully deliver the ask. Add it to `Related references` as non-closing context and keep or create a follow-up delivery leaf for the remaining gap. + - **Fully satisfied** — the diff already delivers the issue's ask. Add it to the result's `Related links` with `Resolves` so merge closes it. + - **Partially satisfied** — the diff helps but does not fully deliver the ask. Add it to the result's `Related links` as non-closing context. Keep or create a follow-up delivery leaf for the remaining gap. 4. Keep this pass focused on convergence and linkage. It does **not** rewrite, reformat, or otherwise "fix up" issue bodies to match issue templates; issue quality edits are separate work routed through [Define](Define.md). ### 7. Finalize and hand off When the change meets the [Definition of Ready for Review](../Definition-of-Ready-and-Done.md): -1. Finalize the title and release-note-ready description per [PR Format](../PR-Format.md). When the target route invokes Release Management, also reconcile the `Release decisions` block and applied `release:*` labels with the effective configuration; otherwise omit them. +1. Finalize the title and release-note-ready description per [PR Format](../PR-Format.md). When the target route invokes Release Management, also reconcile the `Release details` block and applied `release:*` labels with the effective configuration; otherwise omit them. 2. Mark the pull request ready and enable auto-merge per [Branching and Merging](../Branching-and-Merging.md). ## Operating rules diff --git a/src/docs/Ways-of-Working/Workflow-Stages/Review.md b/src/docs/Ways-of-Working/Workflow-Stages/Review.md index 4dd679e..b8efba5 100644 --- a/src/docs/Ways-of-Working/Workflow-Stages/Review.md +++ b/src/docs/Ways-of-Working/Workflow-Stages/Review.md @@ -33,10 +33,10 @@ Check each dimension per [Review Etiquette](../Review-Etiquette.md): - **Taste** — readability, naming, structure, tests that exercise behavior. - **Security** — input validation, no secrets in logs, external action and reusable-workflow references pinned to full commit SHAs, owned major-tag references meeting the controlled-release exception, and least privilege. Escalate a deep pass to [Security Review](Security-Review.md). - **Documentation** — updated where user-facing behavior changed. -- **Pull request artifact** — the title states one result, the description - follows [PR Format](../PR-Format.md), review evidence appears at the end and - identifies the result or interface it supports, and release metadata appears - only when the target route invokes Release Management. +- **Pull request artifact** — the title states one result and the description + follows [PR Format](../PR-Format.md). Review evidence appears in the + collapsed blocks for the result it supports. Release metadata appears only + when the target route invokes Release Management. - **Standards and framework alignment** — the pull request records the author's [alignment pass](Implement.md#5-standards-and-framework-alignment-pass), the result covers every changed surface, and each exception links a real follow-up issue. Verify at least one row against the canonical standard or framework page. A missing or unsupported pass is a blocking finding. - **Issue convergence sweep** — the pull request records the author's [sweep](Implement.md#6-issue-convergence-sweep), including scoped search coverage and any convergent issues linked with closing keywords. Verify at least one linked closing issue against the delivered diff. Claimed convergence without visible delivery evidence is a blocking finding. - **Tests** — new behavior has tests; bugs get regression tests. From 84fc04038d2345777b6be9f29a9635577f802982 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 21 Nov 2026 19:46:16 +0100 Subject: [PATCH 5/8] Clarify that internal changes do not trigger releases --- .../Capabilities/release-management/design.md | 3 +- .../Capabilities/release-management/spec.md | 9 ++- src/docs/Coding-Standards/Natural-Language.md | 2 +- .../Continuous-Delivery-And-Release.md | 18 +++--- src/docs/Ways-of-Working/PR-Format.md | 61 ++++++++++++------- 5 files changed, 56 insertions(+), 37 deletions(-) diff --git a/src/docs/Capabilities/release-management/design.md b/src/docs/Capabilities/release-management/design.md index 26f9906..4c181f0 100644 --- a/src/docs/Capabilities/release-management/design.md +++ b/src/docs/Capabilities/release-management/design.md @@ -436,8 +436,9 @@ Announcements are a post-completion delivery channel, not part of artifact publication. Resolve freezes whether announcements are enabled and which configured destinations apply. Complete freezes the canonical message context: version, immutable release link, summary, and release-intent identity. +Do not send a completion announcement for a no-release decision. -The summary is exactly the leading text before the single +The summary contains only consumer results. It is the leading text before the single `` marker required by [PR Format](../../Ways-of-Working/PR-Format.md). Validate that boundary outside code fences before preparing the message; missing or duplicate markers are errors, not instructions to truncate elsewhere. diff --git a/src/docs/Capabilities/release-management/spec.md b/src/docs/Capabilities/release-management/spec.md index 46ee394..b9fa144 100644 --- a/src/docs/Capabilities/release-management/spec.md +++ b/src/docs/Capabilities/release-management/spec.md @@ -485,7 +485,9 @@ Scenario: Partial destination completion does not repeat published module change Only changes that affect the delivered artifact or a supported consumer contract MUST produce a release. Eligibility MUST evaluate the complete unreleased range, including direct and transitive build inputs, rather than only the latest change. -Validation MUST still run when publication is skipped. +If that range affects neither the artifact nor a supported contract, Release +Management MUST NOT select a version bump, publish a release, or send a +completion announcement. Validation MUST still run when publication is skipped. Without configured scope, every changed path MUST be treated conservatively as release-affecting. A repository MAY narrow the scope explicitly. File categories @@ -497,10 +499,11 @@ because they can be the product or an artifact input. ```gherkin Scenario: An out-of-scope change validates without publishing Given the repository declares its artifact-affecting scope - And the full unreleased range contains no matching change + And no change in the full unreleased range affects the artifact or a supported consumer contract When release processing runs Then validation runs - And no version or release is published + And the request does not select a version bump + And the request does not publish a release or send a completion announcement ``` ### FR12 — Release requests are serialized and accounted for in source order {#fr12} diff --git a/src/docs/Coding-Standards/Natural-Language.md b/src/docs/Coding-Standards/Natural-Language.md index b1d6dde..52396a4 100644 --- a/src/docs/Coding-Standards/Natural-Language.md +++ b/src/docs/Coding-Standards/Natural-Language.md @@ -82,7 +82,7 @@ Prefer specific, observable language over vague intent. | Prefer | Avoid | | --- | --- | | The workflow fails when the release decision is missing. | There may be some issues with labels. | -| On a release-managed route, add `release:skip` when documentation does not affect the artifact. | Make sure docs PRs are handled correctly. | +| On a release-managed route, add `release:skip` if the full range leaves the artifact and its supported consumer contracts unchanged. | Make sure docs PRs are handled correctly. | | The agent reads `AGENTS.md` before editing files. | The agent should probably look at the instructions. | Use **MUST**, **SHOULD**, and **MAY** only when a sentence is intentionally normative. If a rule is optional, say what trade-off decides it. diff --git a/src/docs/Ways-of-Working/Continuous-Delivery-And-Release.md b/src/docs/Ways-of-Working/Continuous-Delivery-And-Release.md index aa61485..90af716 100644 --- a/src/docs/Ways-of-Working/Continuous-Delivery-And-Release.md +++ b/src/docs/Ways-of-Working/Continuous-Delivery-And-Release.md @@ -86,19 +86,19 @@ block, `release:*` labels, or missing-decision check; continuous delivery alone does not opt it into a versioned release process. Signals include the diff, test changes, commit messages, and an AI-assisted -analysis of the change. The release process MUST treat these signals as input. The -[resolved release decision](../Capabilities/release-management/design.md#version-computation) -comes from an explicit owned bump label or the valid effective `DefaultBump`, and -its suitability for the audience is reviewed at the pull-request gate. +analysis of the change. The release process MUST treat these signals as input. +First verify [whether the full range needs a release](../Capabilities/release-management/spec.md#fr11). +If it does not, record a no-release decision in the pull request. Do not select +a version bump. -A documented default records an existing policy decision. +For a release, the [version bump](../Capabilities/release-management/design.md#version-computation) +comes from an explicit owned bump label or the valid effective `DefaultBump`. Repository settings and supported caller inputs can override it; an explicit owned bump label overrides the valid effective default. Invalid supplied settings and conflicting owned labels fail rather than use a fallback. -The pull request records the effective level and its source, and review -confirms that the level fits the declared user/integrator impact. A missing -decision fails a required CI check and blocks merge; publication -does not discover the missing decision only after integration. +For a release, record the effective level and its source. Verify that the +level matches the effect on consumers. The required CI check validates release +and no-release decisions. A missing decision blocks merge. ### D3 — Prerelease by default, stabilized on merge diff --git a/src/docs/Ways-of-Working/PR-Format.md b/src/docs/Ways-of-Working/PR-Format.md index 151f008..7011fcd 100644 --- a/src/docs/Ways-of-Working/PR-Format.md +++ b/src/docs/Ways-of-Working/PR-Format.md @@ -5,8 +5,9 @@ description: Audience-first pull request titles and descriptions with evidence-b # PR Format -Write the pull request title and description as a release note. Write for the -people and systems that use the products of the repository. +Write the pull request title and description for the people and systems that +use the products of the repository. For a release-bound change, write them as +a release note. If the pull request has both consumer and internal changes, put the internal changes at the end. If the pull request has only internal changes, give the @@ -195,17 +196,23 @@ If the route does invoke Release Management, resolve these decisions from the complete [delivered consumer range](#resolve-release-coverage-first) and the effective [configuration](../Capabilities/release-management/design.md#configuration-surface): -1. **Release or skip.** Release when the change affects the versioned artifact - or a supported consumer contract. Otherwise select `release:skip`. +1. **Release or skip.** Use the [release scope rules](../Capabilities/release-management/design.md#release-scope) + to evaluate the complete range. Release when the range affects the delivered + artifact or a supported consumer contract. If it affects neither, select + `release:skip`. An internal-only PR diff does not prove that the complete + range is internal. If earlier unpublished product changes are in the range, + include them in the decision and the consumer summary. 2. **Version bump.** For a release, choose Patch, Minor, or Major from the - compatibility impact. An explicit bump label overrides a valid - effective `DefaultBump`; a matching default supplies the level without a - per-PR bump label. Resolve the documented shared default, repository settings, - and supported caller overrides under + compatibility impact of the delivered changes. Maintainer-only changes + that do not affect the artifact or a supported contract do not change the + bump. An explicit bump label overrides a valid effective `DefaultBump`. + A matching default supplies the level without a per-PR bump label. Resolve + the documented shared default, repository settings, and supported caller overrides under [settings and caller overrides](../Capabilities/release-management/design.md#settings-and-caller-overrides). -3. **Mode.** Record Stable or Prerelease from the target route and any valid - `release:prerelease` override. Identify a configured release-candidate route - in the mode evidence; release candidates are prereleases, not another bump. +3. **Mode.** For a release, record Stable or Prerelease from the target route + and any valid `release:prerelease` override. Identify a configured + release-candidate route in the mode evidence. Release candidates are + prereleases, not another bump. Use only the labels owned by the [`release:` namespace](Automation-Labels.md#every-set-is-namespaced). Missing, @@ -297,9 +304,13 @@ Do not add a statement about consumer compatibility or adoption. End the summary with the exact HTML marker shown in the [complete description example](#complete-description-example). -The marker appears exactly once, on its own line, outside a code fence, and -before the first detailed section. Text before it must remain useful when shared -without the rest of the description. +Put the marker exactly once on its own line. Put it outside code fences and +before the first detailed section. If the route sends a release announcement, +it uses the consumer summary above the marker. Write that summary so it is +useful on its own. + +For internal-only work with no release, the opening text is a summary for +reviewers, not an announcement. The marker does not trigger an announcement. ### Describe each result @@ -433,13 +444,14 @@ This block is not part of a result. Apply the exact labels the block reports:
``` -For a no-release decision, include only the decision and its label: +For a no-release decision, include only the decision and its label. Leave out +the version bump and mode. Validation still runs: ```markdown
Release details -- **Release:** No - the change does not affect the artifact or its supported consumer contracts. +- **Release:** No - the complete range leaves the artifact and its supported consumer contracts unchanged. - **Labels:** `release:skip`
@@ -460,7 +472,7 @@ has no `.github/release.settings.yml`. Use this order: 1. Summary prose: consumer impact, or the operational outcome for internal-only work. -2. The shareable-summary marker. +2. The summary marker. It does not trigger an announcement. 3. Consumer sections in qualifier order. Do not add these sections for internal-only work. 4. `Internal:` sections after all consumer sections. @@ -642,10 +654,10 @@ required action here. }} Example title: `Docs builds use a cache for Python packages` This route deploys the docs site. It does not publish a versioned artifact. -The example has no `Release details` block. If the actual route invokes -Release Management, put the `Release details` block at the end. Use the -same release criteria as for other changes. Do not select skip only because -the change is internal. +This PR does not change the published site. The summary is for reviewers. +The example has no `Release details` block. On a route that invokes Release +Management, use the no-release block if the complete range leaves the +artifact and its supported consumer contracts unchanged. ```markdown The docs build job keeps Python packages in a cache. Later runs use the cache @@ -690,7 +702,8 @@ Before marking the pull request ready, verify: - the title and all prose in the description follow the [ASD-STE100 writing rule](#write-in-simplified-technical-english); - the summary is accurate on its own and the marker appears exactly once in the - required position; + required position. The text of a release announcement has only consumer + results; - release-bound claims match the complete published-artifact-to-candidate range; implementation claims match the separate scoped PR diff; - the product/target/channel, actual successful publication, immutable @@ -729,7 +742,9 @@ Before marking the pull request ready, verify: - release metadata and `release:*` labels are absent when the route does not invoke Release Management; - when Release Management applies, `Release details` is the final block and - agrees with the labels, effective configuration, and complete-change evidence; + agrees with the labels, effective configuration, and complete-change evidence. + For a no-release decision, it records `Release: No` with its reason and + `release:skip`. It does not record a bump or mode; - the description contains no AI or agent attribution. The pull request still follows the complete [Definition of Ready for From 388d4eaa45c6d32ba36c9197aa1547d295cd5772 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 21 Nov 2026 20:10:35 +0100 Subject: [PATCH 6/8] Simplify PR Format instructions and examples --- .../Capabilities/release-management/spec.md | 2 +- .../repository-governance/design.md | 2 +- src/docs/Ways-of-Working/PR-Format.md | 809 ++++++++++-------- src/docs/Ways-of-Working/index.md | 2 +- 4 files changed, 440 insertions(+), 375 deletions(-) diff --git a/src/docs/Capabilities/release-management/spec.md b/src/docs/Capabilities/release-management/spec.md index b9fa144..8533521 100644 --- a/src/docs/Capabilities/release-management/spec.md +++ b/src/docs/Capabilities/release-management/spec.md @@ -425,7 +425,7 @@ Announcements MUST NOT truncate the full release record. Canonical format adherence MUST be verified from the actual title, complete body, source coverage, and supporting evidence under -[PR Format](../../Ways-of-Working/PR-Format.md#check-readiness). +[PR Format](../../Ways-of-Working/PR-Format.md#readiness-check). An inherited scaffold or similarity to a central copy MUST NOT substitute for that record evidence. diff --git a/src/docs/Capabilities/repository-governance/design.md b/src/docs/Capabilities/repository-governance/design.md index b7312cf..900fa94 100644 --- a/src/docs/Capabilities/repository-governance/design.md +++ b/src/docs/Capabilities/repository-governance/design.md @@ -182,7 +182,7 @@ engine can implement it. Each implementation must satisfy the contract below. | Branch shape matches | Do the protected branches, merge methods, and required checks match what the type declares? | | Required local files present | Does the default branch carry the locally required baseline and type-specific files, or the explicit Unmanaged discoverability minimum, including a local contribution guide only when needed? | | Contribution guidance available | Does effective local or shared contribution guidance resolve, with required organization defaults validated in their source repository rather than copied into consumers? | -| PR authoring and file policy | Are PR-template files absent under the [Repository Standard](../../Ways-of-Working/Repository-Standard.md#no-pr-template-files), and do actual records meet [PR Format](../../Ways-of-Working/PR-Format.md#check-readiness) with verified source coverage and supporting evidence? | +| PR authoring and file policy | Are PR-template files absent under the [Repository Standard](../../Ways-of-Working/Repository-Standard.md#no-pr-template-files), and do actual records meet [PR Format](../../Ways-of-Working/PR-Format.md#readiness-check) with verified source coverage and supporting evidence? | ### Severity decides the response diff --git a/src/docs/Ways-of-Working/PR-Format.md b/src/docs/Ways-of-Working/PR-Format.md index 7011fcd..cff102f 100644 --- a/src/docs/Ways-of-Working/PR-Format.md +++ b/src/docs/Ways-of-Working/PR-Format.md @@ -1,230 +1,251 @@ --- title: PR Format -description: Audience-first pull request titles and descriptions with evidence-based, conditional release decisions. +description: Write pull requests for consumers and maintainers. Give upgrade steps and release decisions when they apply. --- # PR Format -Write the pull request title and description for the people and systems that -use the products of the repository. For a release-bound change, write them as -a release note. +Write the pull request title and description for consumers first. Consumers +are the people and systems that use the repository's products. If the pull +request has both consumer and internal changes, put the internal changes last. +If it has only internal changes, give the internal result first. Keep review +evidence with the result it supports. -If the pull request has both consumer and internal changes, put the internal -changes at the end. If the pull request has only internal changes, give the -internal result first. Keep review evidence with the result it supports. +Write the release note only in the release-bound pull request. Release +Management freezes the full title and description that reviewers approve +for the fixed source. The snapshot includes all collapsed blocks. The +publisher copies the snapshot to the release record without changes. -For a release-bound pull request, write the release note in that pull request. -Publication uses the frozen snapshot of the complete reviewed title and -description for the fixed source. This snapshot includes collapsed blocks. - -Give consumers all release-specific changes and upgrade steps in the published -MSX notes. Diffs, links, issues, templates, and +Put all release-specific changes and upgrade steps in the MSX release notes. +Diffs, links, issues, templates, and [resource documentation](Documentation-Model.md#current-product-guidance-and-release-history) can give context, usage information, or evidence. Do not put a necessary step only in those sources. -Consumers read the applicable notes in release order. They start after their -actual baseline and include the note for the fixed target. They use these notes -to make an upgrade plan. They install or run an intermediate version only if a -note requires that operation. +Consumers read every applicable note in release order. They start after +their actual baseline and read through the note for the fixed target. They +use the notes to make an upgrade plan. They install or run an intermediate +version only if the notes show that the operation is necessary. + +The [Contribution Workflow](Contribution-Workflow.md) gives the rules for +drafts, assignment, review, and handoff. [Branching and Merging](Branching-and-Merging.md) +gives the rules for branches, commits, and integration. -The title and description use a shared format. The -[Contribution Workflow](Contribution-Workflow.md) owns draft, assignment, -review, and handoff mechanics; [Branching and Merging](Branching-and-Merging.md) -owns branches, commits, and integration. + -## Analyze before writing +## Examine the change before you write -Write from evidence, not from the branch name, commit messages, or the existing -pull request text. Those surfaces are useful leads, but the complete change is -the source. +Use evidence from the full change. Branch names, commit messages, and +earlier pull request text can help you find evidence. Do not use them as proof. ### Identify the readers Start with the [audience in the README](Readme-Driven-Context.md#target-audience). -Read the linked product documentation, capability specifications, and the -configuration in effect. Identify what the repository supplies and how consumers -use it. +Read the linked product documentation and capability specifications. Read the +configuration in effect. Identify what the repository supplies. Identify how +consumers use those products. -If consumers depend on a supported interface, treat it as consumer-facing. +If consumers use a supported interface, include it in the consumer scope. The product can be a command, API, configuration, reusable workflow, Action, template, or published guidance. If a workflow changes behavior that other -repositories use, treat the change as consumer-facing. A change to the -repository's own test setup is internal if it has no effect on supported uses. -Consumers can write scripts or maintain other products. +repositories use, include that change in the consumer results. If a change +to the test setup has no effect on supported uses, it is internal. Consumers +can write scripts or maintain other products. -If a change updates only documentation, tell the reader what they can now -understand or do. Do not say that the change also updates the documented system. +If a change is only to documentation, tell the reader what they can now +understand or do. Do not say that the change also changes the system. ### Resolve release coverage first -For a release-bound record, establish the artifact-to-candidate range before -inspecting a scoped PR diff or writing the title, result sections, adoption -actions, or compatibility decision. The -[actual publication route](../Capabilities/release-management/design.md#applicability) -determines the product, publishing target, and stable/prerelease channel. -Native producers participate even when they do not call a named shared workflow. -If a record serves several artifact targets or channels, resolve each -consumer-publication baseline independently and state each result's -applicability. A metadata-only mirror's completion does not replace the actual -artifact target's publication baseline. - -1. **Find the actual publication baseline.** Inspect the target's authoritative - publication inventory and successful-publication receipts for that same - product, target, and channel. Establish which artifact was last successfully - published from publication evidence, not an assumed highest version. - GitHub's Latest hint and moving tags may aid discovery but are not proof; - a failed run alone is not a published artifact. -2. **Verify its immutable source.** Read back the artifact identity and retained - provenance linking it to the exact source tree. Pin the artifact version or +For a release-bound record, find the artifact-to-candidate range first. Do this +before you examine the scoped PR diff. Use the range for the title, result +sections, adoption steps, and compatibility decision. + +Use the [actual publication route](../Capabilities/release-management/design.md#applicability) +to identify the product, publishing target, and stable or prerelease channel. +Use this procedure for native producers, even if they do not call a shared +workflow. Find the publication baseline separately for each product, target, +and channel. Identify which results apply to each range. Completion of a +metadata-only mirror does not replace the publication baseline for the artifact. + +1. **Find the actual publication baseline.** Read the target's authoritative + publication inventory and success receipts for that product, target, and + channel. Use this evidence to find the last artifact that the producer + published successfully. Do not assume that the highest version is the + baseline. Use GitHub's Latest hint and moving tags only to find candidates. + A failed run alone does not show successful publication. +2. **Identify the artifact's exact source.** Use the artifact's provenance to + identify the source tree of the artifact. Record the artifact version or digest, publication evidence, source repository, and full source identity. - For module publication, PowerShell Gallery success counts even when later - GitHub completion fails. Completing that older GitHub record does not make - its already-published module changes new again. -3. **Pin the exact candidate.** Record the candidate PR source repository and - full immutable source identity. Do not compare a moving branch name, tag, - latest commit selected later, or a different build's source. -4. **Verify the comparison.** Check that the published and candidate sources - belong to the intended publication lineage. Compare those two source trees, - for example with `git diff `, and retain - the comparison evidence. A scoped PR-base diff or substituted merge base - does not define this boundary. -5. **Inventory the complete delivered range.** Inspect every consumer-facing - change in that comparison, including earlier merged, skipped, or otherwise - unshipped changes. Use this inventory for the title, ordered result sections, - complete adoption actions, and compatibility decision. Do not classify a - change as new merely because an older publication record finished later. - -Record these identities in a `Technical details` block for a result they -support. Record them once per applicable product, publishing target, and -channel. Identify which range supports each result when the ranges differ: + If publication to PowerShell Gallery succeeds, use that module artifact + as the baseline even if GitHub completion fails. If the producer completes + the older GitHub record later, do not list the published module changes + as new. +3. **Record the fixed candidate.** Record the candidate PR source repository + and full immutable source identity. Do not use a moving branch name, a moving + tag, a later commit, or the source of a different build. +4. **Compare the source trees.** Make sure that the source trees are in the + same intended publication lineage. Compare the published and candidate + source trees with a command such as + `git diff `. Keep the comparison evidence. + Do not use the scoped PR-base diff or a substitute merge base for this range. +5. **List the consumer changes.** Examine the full comparison for consumer + changes. Include changes from earlier merges, direct commits, skip + decisions, or other unpublished work. Use the list for the title, result + sections, adoption steps, and compatibility decision. + +Put this evidence in a `Technical details` block for a result that it supports. +Record it once for each product, publishing target, and channel that applies. +If the ranges differ, identify the range for each result. | Field | Evidence | | --- | --- | | Product scope | Product, publishing target, and channel whose consumers receive the artifact. | -| Published artifact | Actual latest successful artifact identity and publication receipt; explicitly no predecessor only for a verified initial publication. | -| Published source | Source repository, full immutable source identity, and verified artifact-to-source provenance. | -| Candidate source | Exact candidate source repository and full immutable identity reviewed for this record. | -| Scoped PR comparison | PR base and candidate source identities, retained separately for implementation and reviewer evidence. | - -Missing or unverifiable publication/source evidence is an unresolved coverage -gap, not a no-action result or proof of patch compatibility. If no predecessor -exists, verify and record initial publication and review the whole candidate's -supported consumer surface and initial adoption instructions instead of -inventing a previous artifact or treating `0.0.0` as a consumed release. A -version-computation baseline does not establish consumer history. - -Resolve diverged lineage or an ambiguous target/channel before making coverage -claims; do not silently choose another release, branch, or merge base. Re-read -the publication baseline and candidate before readiness and release-bound -snapshot capture. If either identity changes, refresh the comparison, -inventory, instructions, and compatibility evidence; the older analysis does -not validate the new pair. +| Published artifact | Artifact identity and receipt for the last successful publication. For a first publication, give evidence that no earlier artifact exists. | +| Published source | Source repository, full immutable source identity, and evidence that connects the artifact to that source. | +| Candidate source | Exact candidate source repository and full immutable identity that reviewers examined. | +| Scoped PR comparison | PR base and candidate source identities. Keep this evidence separate for the implementation review. | + +If you do not have reliable publication or source evidence, stop. Do not +use missing evidence as a no-action result or proof of patch compatibility. + +If there is no earlier artifact, make sure that this is the first publication. +Record the evidence for that result. Do not invent an earlier artifact. +Do not use `0.0.0` as a consumed release. The version-computation baseline +does not show consumer history. + +For a first publication, examine all supported uses of the candidate. Give +all necessary instructions for first use. + +If the sources diverge or the target or channel is not clear, stop. Find the +correct range before you write the note. Do not substitute another release, +branch, or merge base. + +Before you mark the PR ready, read the publication baseline and candidate +again. Before you freeze the record, repeat this check. +If either identity changes, do the comparison again. Use the new evidence +for the list of changes, the instructions, and the compatibility decision. +The old comparison does not support the new range. #### Coverage counterexamples | Evidence | Release-bound coverage | Scoped PR evidence | | --- | --- | --- | -| Artifact source A is published; B merges a new input without publication; candidate C adds a fix. | A-to-C includes B's new input and C's fix, even if B was skipped. | B-to-C describes only the current PR's implementation. | -| Module source B is successfully published to Gallery, but its GitHub completion fails; candidate C follows. | B-to-C describes only changes not already published to module consumers. Later GitHub completion of B does not reintroduce A-to-B as new. | The current PR diff remains separate; GitHub's older Latest hint is not the module baseline. | +| The producer publishes an artifact from A. B adds an input, but the producer does not publish it. Candidate C removes an error. | A to C includes the input from B and the fix from C, even if the producer skipped B. | B to C shows only the current PR's implementation. | +| The producer publishes the module from B to Gallery. GitHub completion fails. Candidate C follows. | B to C shows only changes that the producer did not publish to module consumers. Later completion of B does not make A to B new. | The current PR diff is separate. GitHub's older Latest hint is not the module baseline. | -A, B, and C represent pinned immutable source identities, not moving refs. -These cases establish authoring scope, not a new publisher or version resolver. +A, B, and C are immutable source identities, not moving refs. These cases +show what to include in the note. They do not change publication or version +selection. ### Read the whole change -For a release-bound record, inspect the complete -[resolved publication-to-candidate comparison](#resolve-release-coverage-first). -A promotion or bundled release retains every applicable consumer delta, not -just the latest commit or pull request. +For a release-bound record, examine the full +[publication-to-candidate comparison](#resolve-release-coverage-first). +For a promotion or bundled release, include every consumer change in the range. +Do not use only the latest commit or pull request. -Inspect the ordinary base-to-head PR diff separately to establish the scoped -implementation, validation, Task/Bug plan progress, and issue-convergence -evidence reviewers need. It does not replace the release-note coverage range -or make earlier work part of this PR's implementation. When no release-bound -artifact record applies, this scoped diff supplies the PR's change coverage; -do not manufacture a publication baseline or release metadata. +Examine the ordinary base-to-head PR diff separately. Use it as evidence for +this PR's implementation, validation, Task or Bug plan, and issue convergence. +The scoped diff does not replace the release-note range. It does not make +earlier work part of this PR's implementation. If no release-bound artifact +record applies, use the scoped diff for the PR's change coverage. Do not invent +a publication baseline or release metadata. -Check claims against the changed public interfaces, documentation, -configuration, tests, and generated output. Commit messages and an earlier pull -request description may be incomplete or stale and never replace this check. +Make sure that changed interfaces, documentation, configuration, tests, and +outputs support your claims. Do not use commit messages or older PR text +instead of this evidence. ### Keep claims accurate State only outcomes the evidence supports: -- Describe a dependency update's behavior or security benefit only when upstream - notes, tests, or product evidence establish that result. -- Describe documentation work as changed guidance unless the same change also - changes the documented product. -- Distinguish a public contract change from the internal implementation that - delivers it. -- Check affected supported uses for compatibility, prerequisites, and exact - adoption actions, including required ordering or intermediate operations. -- State an explicit no-action result and its compatibility basis when adoption - needs no consumer change beyond selecting the release reference. -- Treat missing applicability or migration instructions as an evidence gap to - resolve in the note, not a reason to send consumers to PRs, diffs, or - historical product docs. +- Use upstream notes, tests, or product evidence before you make claims + about a dependency update. Do not claim a behavior change or security + benefit without this evidence. +- If the change is only to documentation, tell the reader how the guidance + changes. +- Keep public contract changes separate from the internal work that delivers + them. +- For each supported use in scope, examine compatibility, prerequisites, and + the steps to adopt the change. Put the steps in order. Include any necessary + intermediate operations. +- If consumers must change only the release reference, tell them that no + other edits are necessary. Give the compatibility evidence. +- If you do not know which uses or migration steps apply, get the missing + evidence. Put the result in the note. Do not send consumers to PRs, diffs, + or older product docs for required steps. ### Resolve release decisions -Before adding release metadata or changing a `release:*` label, determine -whether the repository invokes [Release -Management](../Capabilities/release-management/spec.md) for the pull request's -target route. Inspect the effective pipeline and its inputs, including native -producer pipelines that publish versioned artifacts without calling a named -shared workflow. The [applicability contract](../Capabilities/release-management/design.md#applicability) -is about the route's release behavior, not one implementation. The optional -`.github/release.settings.yml` file refines the route's settings; its absence alone -does not prove that release management is absent. - -Verify the immutable producer revision's supported settings and owned-label -mapping before using the canonical signals below. A native producer participates -in the contract but does not gain support for those signals from this -documentation alone. If its released interface differs, require a verified -adapter or a producer/configuration migration with complete adoption actions in -that producer's PR/release record. Hold finalization until the effective mapping -and required decision check are verified; do not apply a label the pipeline -ignores, silently translate it, or classify an incompatible producer as unmanaged. - -If the route does not invoke Release Management, omit the `Release details` -block. Do not apply or report any `release:*` label, including -`release:skip`. - -If the route does invoke Release Management, resolve these decisions from the -complete [delivered consumer range](#resolve-release-coverage-first) and the effective -[configuration](../Capabilities/release-management/design.md#configuration-surface): - -1. **Release or skip.** Use the [release scope rules](../Capabilities/release-management/design.md#release-scope) - to evaluate the complete range. Release when the range affects the delivered - artifact or a supported consumer contract. If it affects neither, select - `release:skip`. An internal-only PR diff does not prove that the complete - range is internal. If earlier unpublished product changes are in the range, - include them in the decision and the consumer summary. -2. **Version bump.** For a release, choose Patch, Minor, or Major from the - compatibility impact of the delivered changes. Maintainer-only changes - that do not affect the artifact or a supported contract do not change the - bump. An explicit bump label overrides a valid effective `DefaultBump`. - A matching default supplies the level without a per-PR bump label. Resolve - the documented shared default, repository settings, and supported caller overrides under - [settings and caller overrides](../Capabilities/release-management/design.md#settings-and-caller-overrides). +Before you add release metadata or change a `release:*` label, examine the +pipeline. Read the settings and inputs it uses. Use the +[route's release behavior](../Capabilities/release-management/design.md#applicability) +to see if [Release Management](../Capabilities/release-management/spec.md) +applies. Include native pipelines that publish versioned artifacts without +a shared workflow. A Pages deployment alone does not invoke Release Management. + +The optional `.github/release.settings.yml` file gives settings for the route. +A route can invoke Release Management without that file. + +Before you use the canonical settings and labels, examine the immutable +producer revision. Make sure that the revision supports the settings and the +owned-label mapping. Do not assume that a native producer supports a signal +in this document. If the released interface is different, use one of these +options: + +- Use an adapter. Get evidence that it works with the immutable producer revision. +- Migrate the producer or its configuration. + +Put all adoption steps in the producer's release note. + +Before you mark the PR ready, make sure that the effective label mapping +works. Make sure that the required release-decision check passes. If you +cannot show both, stop. Do not apply a label that the pipeline ignores. If a +producer or adapter translates a label, record the supported mapping. An +incompatible producer is not an unmanaged producer. + +If the route does not invoke Release Management, do not add the `Release details` +block. Do not apply or list any `release:*` label. This includes `release:skip`. + +If the route invokes Release Management, use the full +[delivered consumer range](#resolve-release-coverage-first) and the effective +[configuration](../Capabilities/release-management/design.md#configuration-surface). +Record these decisions: + +1. **Release or skip.** Apply the + [release scope rules](../Capabilities/release-management/design.md#release-scope) + to the full range. If the range has an effect on the delivered artifact + or a supported consumer contract, release it. If it has no such effect, select + `release:skip`. This decision has no version bump or completion announcement. + Validation still runs. An internal-only PR diff does not show that the + full range is internal. If the range has earlier unpublished product + changes, include them in the decision and the consumer summary. +2. **Version bump.** For a release, select Patch, Minor, or Major from the + effect on compatibility. Do not use changes outside the release scope + to select the bump. + An explicit bump label overrides a valid effective `DefaultBump`. A + matching default supplies the bump without a per-PR bump label. Use the + [settings and caller override rules](../Capabilities/release-management/design.md#settings-and-caller-overrides) + to find the effective default. 3. **Mode.** For a release, record Stable or Prerelease from the target route - and any valid `release:prerelease` override. Identify a configured - release-candidate route in the mode evidence. Release candidates are - prereleases, not another bump. + and any valid `release:prerelease` override. If the route uses release + candidates, say so in the mode evidence. A release candidate is a + prerelease, not a bump. Use only the labels owned by the -[`release:` namespace](Automation-Labels.md#every-set-is-namespaced). Missing, -invalid, or conflicting decisions are errors to resolve before review, not -reasons to invent a fallback. Inheriting the documented patch default is a valid -decision source, not an error recovery path. +[`release:` namespace](Automation-Labels.md#every-set-is-namespaced). Before +review, make sure that the decisions are present, valid, and consistent. +Do not use a fallback for errors. The documented patch default is a valid +source of a bump. It is not a fallback for an error. -### Select the news + + +### Select the main result If a change has an effect on consumers, use the title for the most important -consumer result. Write the shareable summary for consumers. Include all -applicable consumer changes and upgrade steps. Put +consumer result. Write the summary for consumers. Include all consumer changes +and upgrade steps that apply. Put [maintainer-only sections](#put-maintainer-content-last) after all consumer sections. Keep supporting details with the result they support. @@ -232,34 +253,42 @@ If the work has only internal changes, give the internal result in the title. Give the reason for the change in the summary. Do not add a consumer result or a consumer upgrade step. -### Group related changes + + +### Put related changes together -Group changes by result or affected interface, not by commit, file, -issue, or implementation step. One section may describe several files that -jointly deliver one result. Give each distinct result its own section. +Put changes to the same result or interface together. Do not divide them by +commit, file, issue, or implementation step. One result can come from several +files. Give each different result its own section. ## Write in Simplified Technical English -Use **ASD-STE100 Issue 9** writing practices and American English (`en-US`). -This rule applies to the pull request title and all prose in the description. -It also applies to the published release note, including collapsed text. +Use **ASD-STE100 Issue 9** writing practices. Use American English (`en-US`). +These rules apply to the title and all prose in the description. They also +apply to the published release note and to text in collapsed blocks. Follow [Natural Language](../Coding-Standards/Natural-Language.md). Use the [Technical Writing Guide](../Coding-Standards/Writing-Guide.md) to find the official rules and dictionary. -Use short sentences in the active voice. Give instructions as direct commands. -Give one action per instruction. If the reader must know a condition first, -put it before the instruction. Use the same term for the same concept. -Keep exact interface names, commands, and values. +- Use approved words in their approved meanings and parts of speech. Use + technical nouns and verbs as Issue 9 permits. +- Use the active voice. Write instructions as commands. Give one instruction + in each sentence. If the reader must know a condition first, put it + before the command. +- Use the `-ing` form of a verb only as a technical noun or as part of one. +- Use no more than 20 words in an instruction sentence. Use no more than + 25 words in a descriptive sentence. +- Use the same term for the same concept. Keep exact interface names, + commands, labels, and values. ## Write the title Use a short title for the most important consumer result. For a release-bound -record, use the complete publication-to-candidate range to select that result. +record, use the full publication-to-candidate range to select that result. Do not use only the changes in the pull request diff. ```text -LLM Gateway reports usage for streaming requests +LLM Gateway shows usage for streaming requests ``` For internal-only work, give the internal result: @@ -282,26 +311,31 @@ The title must not contain: Give the reader all necessary information in the description. Do not make the reader use the diff to find a required step. -### Summarize the result + + +### Write the summary Start with one or two short paragraphs. Do not add a `Summary` heading. -If a change breaks a supported use or requires action, put this information -first. If prose cannot show several different results clearly, use a short -unordered list. +If a change breaks a supported use or makes an action necessary, put that +information first. If a list makes different results easier to read, use a +short unordered list. For consumer results, use the terms of the supported interface. Tell the reader what changes and why. Identify which supported uses the change applies to. Tell the reader if those uses stay compatible. Give the required action. -If no action is necessary, give the reason. If a deadline or prerequisite -controls whether or when to upgrade, give it in the summary. Do not put -implementation details in the summary. +If no action is necessary, give the reason. + +If a deadline or prerequisite controls whether or when to upgrade, give it +in the summary. Do not put implementation details in the summary. For internal-only work, give the internal result and the reason for the change. Do not add a statement about consumer compatibility or adoption. -### End the shareable summary + + +### Add the summary marker -End the summary with the exact HTML marker shown in the +After the summary, put the exact HTML marker in the [complete description example](#complete-description-example). Put the marker exactly once on its own line. Put it outside code fences and @@ -309,10 +343,12 @@ before the first detailed section. If the route sends a release announcement, it uses the consumer summary above the marker. Write that summary so it is useful on its own. -For internal-only work with no release, the opening text is a summary for +For internal-only work with no release, the summary is for reviewers, not an announcement. The marker does not trigger an announcement. -### Describe each result + + +### Write each result Start each result section with an H2 heading: `## : `. Give the description below the heading. Use these qualifiers in order for @@ -328,58 +364,61 @@ consumer results. Do not add empty sections. | --- | --- | | `Breaking` | A supported consumer must act or an existing supported use becomes incompatible. | | `Removed` | A supported capability, interface, or documented path is no longer available. | -| `New` | Readers gain a capability, interface, or body of guidance. | -| `Changed` | Existing behavior, configuration, or guidance changes compatibly. | -| `Fixed` | An incorrect behavior or guidance now works as intended. | - -Name the result in the heading, not only the component. Start the description -with one or two visible paragraphs. For a consumer result, tell the reader what -changes and why. Identify which supported uses the change applies to. Tell the -reader if those uses stay compatible. Give the required action. If the consumer -only has to select the release reference, give the reason. If a prerequisite -or deadline controls whether or when to upgrade, put it in the visible text. -Do not put it only in a collapsed block. For a documentation change, choose -the qualifier that describes what readers can now understand or do. +| `New` | Readers get a new capability, interface, or body of guidance. | +| `Changed` | Behavior, configuration, or guidance changes. Supported uses stay compatible. | +| `Fixed` | Behavior or guidance now gives the correct result. | + +Give the result in the heading, not only the component name. Start the +description with one or two visible paragraphs. + +For a consumer result, tell the reader what changes and why. Identify which +supported uses the change applies to. Tell the reader if those uses stay +compatible. Give the required action. If the consumer only has to select the +release reference, give the reason. If a prerequisite or deadline controls +whether or when to upgrade, put it in the visible text. Do not put it only +in a collapsed block. + +For a documentation change, select the qualifier for what readers can now +understand or do. ### Show interfaces after the prose -After the opening prose, add a short interface example or compact table only -when it clarifies the result. Do not lead a section with a code block or table. -Put exact transition examples in the `Migration guide`. +If an example or table helps explain the result, put it after the first +paragraphs. Keep it short. Do not start a section with a code block or table. +Put examples of the exact adoption steps in the `Migration guide`. Never include secret values. ### Write the migration guide If a result has technical steps for adoption, put them in one `
` -block. Use `Migration guide` as the exact summary. If a compatible change -has adoption steps, use the block for those steps. If adoption is optional, -tell the reader in the visible text. If no migration applies, do not add the -block. Do not use an empty block or a placeholder for no action. +block. Use `Migration guide` as the exact summary. Give the steps even if the +change is compatible. If adoption is optional, say so in the visible text. +If the result has no technical adoption steps, do not add the block. Do not +add an empty block or a placeholder. - Identify the versions or source baselines that apply. Identify the supported uses and prerequisites. -- Give exact old and new names, values, commands, or examples. For first-time - adoption, give the exact setup. Do not add a previous state that did not exist. +- Give exact old and new names, values, commands, or examples. For first use, + give the exact setup. Do not give a previous state that did not exist. - Put edits and operations in the order the reader must do them. If an intermediate installation or run is necessary, give the version or source. - Give the steps for that operation. Give the reason why it is necessary. + Give the steps for that operation. Give the reason for it. - Give the checks and their expected results. If a check must pass before the reader continues, put the check before the next step. -If a release changes an earlier instruction, tell the reader which step to -remove or replace. Tell the reader which intermediate steps still apply. +If a later release changes an earlier instruction, identify the step to +remove or replace. Identify the intermediate steps that still apply. Put all required steps in the notes. Do not put a required step only in a diff, link, issue, template, or evergreen document. ### Put maintainer content last Use `## Internal: ` for a result that applies only to -maintainers. -Give the result and the reason below the heading. Use the same block order as -for a consumer result. If maintainers must act, give the action in the visible -text and the exact steps in that section's `Migration guide`. Keep consumer -steps in the consumer section they belong to. +maintainers. Give the result and the reason below the heading. Use the same +block order as for a consumer result. If maintainers must act, give the action +in the visible text. Put the exact steps in that section's `Migration guide`. +Keep consumer steps in the applicable consumer section. Put all `Internal:` sections after the consumer sections. If the pull request has only internal changes, start the `Internal:` sections directly after the @@ -387,91 +426,100 @@ summary marker. Do not add a consumer section. ### Add result details in order -After the visible text and any example, add one collapsed `
` block -for each type that applies to the result. Use these exact summaries in this -order: +Put the detail blocks after the visible text and any example. For each type +that applies, add one collapsed `
` block. Use these exact summaries +in this order: -1. `Migration guide`: Give the technical steps to adopt the result. +1. `Migration guide`: Give the technical steps for first use or an upgrade. 2. `Technical details`: Give evidence of the implementation and checks. -3. `Related links`: Give closing and non-closing references, and any optional +3. `Related links`: Give closing and non-closing references and any optional usage links for the result. Keep each block in a result section. If several results share evidence, record it once in a section it supports. Name the other results or interfaces it supports. -Put the standards and framework alignment evidence required by -[Implement](Workflow-Stages/Implement.md#5-standards-and-framework-alignment-pass) -in `Technical details`. Include the applicable consumer and immutable template -compatibility evidence required by [Release -Management](../Capabilities/release-management/spec.md#release-evidence). +Put the evidence for the +[standards and framework alignment pass](Workflow-Stages/Implement.md#5-standards-and-framework-alignment-pass) +in `Technical details`. Include the consumer and immutable template +compatibility evidence that applies. If a release-bound record has no +applicable template, give the reason. +See the [Release Management requirements](../Capabilities/release-management/spec.md#release-evidence). + Record the [publication baseline and candidate](#resolve-release-coverage-first), -comparison, and freshness once for each applicable range, not once per result. -Keep the scoped PR-base comparison separate; it supports implementation review, -not release-note coverage. - -Record the closing delivery leaf's implementation-plan progress and the -[issue convergence sweep](Workflow-Stages/Implement.md#6-issue-convergence-sweep) -search scope and outcome in a `Technical details` block for a result they -support. Record the outcome even when no other issue converges. - -Use fully qualified `owner/repository#number` references for every same-instance -GitHub issue or pull request, including references to the current repository. -Use closing keywords only for issues the complete change actually resolves. -Prefix non-closing relationships with terms such as `References`, `Depends on`, -or `Followed by`. Use absolute Markdown links for Jira, cross-instance GitHub, -and references that will render outside GitHub. For optional usage -documentation, use an absolute default-branch URL or the canonical published -URL. The link must also work in the release record. +comparison, and freshness evidence once per range. Keep the scoped PR-base +comparison separate. It supports implementation review, not release-note +coverage. + +In `Technical details`, give the status of the implementation plan for the +Task or Bug that the PR closes. Give the scope and result of the +[issue convergence sweep](Workflow-Stages/Implement.md#6-issue-convergence-sweep). +Give the result even if the search finds no other issue that the PR resolves. +Put the evidence in a result section that it supports. + +For GitHub issues and pull requests on the same instance, use the full +`owner/repository#number` reference. Do this for the current repository, too. +Use closing keywords only for issues that the full change resolves. +For other references, use a term such as `References`, `Depends on`, or +`Followed by` first. + +Use absolute Markdown links for Jira, other GitHub instances, and +references that must work outside GitHub. For optional usage +documentation, use an absolute URL to the default branch or published page. +Make sure that the link also works in the release record. Do not include AI or agent attribution anywhere in the description. -### Record release decisions only when invoked + -When the target route invokes Release Management, add one standalone `
` -block after all other content. Use `Release details` as the exact summary. -This block is not part of a result. Apply the exact labels the block reports: +### Record the release decision + +If the target route invokes Release Management, put one `
` block +after all other content. Use `Release details` as the exact summary. +This block is not part of a result. Use the same labels on the pull request +and in the block: ```markdown
Release details - **Release:** Yes - the delivered artifact and supported caller contract change. -- **Version bump:** Minor - callers gain a compatible optional input. +- **Version bump:** Minor - callers can use a new optional input. Existing inputs still work. - **Mode:** Stable - the target route publishes stable releases. - **Labels:** `release:minor`
``` -For a no-release decision, include only the decision and its label. Leave out -the version bump and mode. Validation still runs: +If the decision is no release, give only the decision and its label. Do not +add a version bump or mode. Validation still runs: ```markdown
Release details -- **Release:** No - the complete range leaves the artifact and its supported consumer contracts unchanged. +- **Release:** No - the full range changes neither the artifact nor its supported consumer contracts. - **Labels:** `release:skip`
``` -The evidence after each decision must identify the applicable route, -configuration, and audience impact. List the exact resulting labels, or `None` -when effective configuration supplies the release decision and no override -label applies. Do not predict the final version; Release Management resolves it -from the actual base. +Give the route, configuration, and effect on consumers as evidence for each +decision. List the exact labels. If the effective configuration supplies the +decision and no override label applies, write `None`. Do not give a predicted +version. Release Management uses the actual base to select the final version. + +If the target route does not invoke Release Management, do not add this block. +Do not add any `release:*` label. A missing `.github/release.settings.yml` file +is not a reason to add `release:skip`. -When the target route does not invoke Release Management, omit this block and -all `release:*` labels. Do not add `release:skip` merely because the repository -has no `.github/release.settings.yml`. + -### Assemble the body +### Put the sections in order Use this order: -1. Summary prose: consumer impact, or the operational outcome for internal-only work. +1. The summary: the effect on consumers or the result of internal-only work. 2. The summary marker. It does not trigger an announcement. 3. Consumer sections in qualifier order. Do not add these sections for internal-only work. @@ -492,20 +540,21 @@ when you use either example. #### Mixed change -Use the most important consumer result as the title. Replace every placeholder -below and delete sections, examples, or blocks that do not apply. Repeat a -section when several distinct results share the same qualifier. Keep consumer -sections in qualifier order. Put all `Internal:` sections after the consumer -sections. For consumer-only work, omit the `Internal:` section. Use the -applicable blocks in each section in the order shown under `Breaking:`. If a -result has technical adoption steps, give them in its `Migration guide`. - -Use the final block only for a route that invokes Release Management. Follow -[Record release decisions only when invoked](#record-release-decisions-only-when-invoked) -for release and no-release decisions. When the valid effective `DefaultBump` -supplies the correct level, no per-PR bump label is needed. Include configured -release-candidate routing in the mode evidence. Never turn invalid settings or -conflicting owned labels into a no-action result. +Use the most important consumer result as the title. Remove sections, examples, +or blocks that do not apply. Replace every placeholder in the sections you use. + +If several results have the same qualifier, give each result its own section. +Keep consumer sections in qualifier order. Put all `Internal:` sections after +the consumer sections. If the work is consumer-only, do not add an `Internal:` +section. Use the block order below `Breaking:` for each result. If a result has +technical adoption steps, give them in its `Migration guide`. + +If the route invokes Release Management, use the final block. Follow +[Record the release decision](#record-the-release-decision) for both decisions. +If a valid effective `DefaultBump` supplies the correct bump, you do not need +a per-PR bump label. If the route uses release candidates, give that evidence +under `Mode`. Do not use invalid settings or label conflicts as evidence for +a no-action result. ````markdown {{ Write one or two short paragraphs for consumers. Tell the reader what @@ -517,39 +566,43 @@ deadline or prerequisite that controls whether or when to upgrade. }} ## Breaking: {{ Consumer result }} -{{ Tell the reader what changes and why. Identify the affected supported uses. -Tell the reader which uses are no longer compatible. Give the required action. -Give any prerequisite or deadline that controls whether or when to upgrade. }} +{{ Tell the reader what changes and why. Identify the supported uses that +change. Tell the reader which uses are no longer compatible. Give the required +action. Give any prerequisite or deadline that controls whether or when to +upgrade. }} -{{ Optional short interface example or table that clarifies the result. }} +{{ If an interface example or table helps explain the result, give it here. }}
Migration guide -{{ Identify the applicable baselines, uses, and prerequisites. Give exact old -and new values or examples. Give the steps in order. Include any necessary -intermediate operation. Give the checks and their expected results. Tell the -reader which earlier steps to remove, replace, or keep. }} +{{ Identify the baselines, uses, and prerequisites that apply. Give exact +old and new values or examples. Give the steps in order. Include any necessary +intermediate operation. Give the checks and their expected results. Identify +the earlier steps to remove, replace, or keep. }}
Technical details -{{ Give the implementation and checks for this result. Record the delivery -plan status and the issue search scope and outcome in the section they support. -If no other issue converges, record that result. }} +{{ Give the implementation and checks for this result. Give the status of the +delivery plan and the scope and result of the issue search. If the search +finds no other issue that the PR resolves, record that result. }} | Changed surface | Standards checked | Framework docs checked | Result | | --- | --- | --- | --- | | `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | -{{ Record the publication baseline, receipt, immutable artifact and source -identities, candidate, comparison, and freshness evidence for each applicable -range. Give shared evidence only once. Name the results it supports. Record -the scoped PR-base comparison separately. If an integration template applies, -give its repository, compatible immutable commit, and verification evidence. -Do not predict the final version. }} +{{ For each range, record the publication baseline and receipt. Record the +immutable artifact and source identities and the fixed candidate. Record the +comparison and freshness evidence. Give shared evidence only once. Identify +the results it supports. Record the scoped PR-base comparison separately. +Do not give a predicted version. }} + +{{ If an integration template applies, give its repository and compatible +immutable commit. Give evidence of compatibility with the fixed source. If +a release-bound record has no applicable template, give the reason. }}
@@ -563,7 +616,7 @@ Do not predict the final version. }} ## Removed: {{ Consumer result }} -{{ Name the removed interface and tell the reader why it is no longer +{{ Identify the removed interface. Tell the reader why it is no longer available. Identify who uses it. Give the required action and any timing constraints. }} @@ -578,8 +631,8 @@ interface. }} ## New: {{ Consumer result }} {{ Tell the reader what consumers can now do and why it helps. Identify the -uses that stay compatible. For a new feature that consumers can choose to -use, state that adoption is optional. Give any applicable timing constraints. }} +uses that stay compatible. If adoption is optional, say so. Give any timing +constraints that apply. }}
Migration guide @@ -590,8 +643,9 @@ use, state that adoption is optional. Give any applicable timing constraints. }} ## Changed: {{ Consumer result }} -{{ Explain what changes and why. Identify the uses that stay compatible and -why no action is necessary. Give any applicable timing constraints. }} +{{ Tell the reader what changes and why. Identify the uses that stay +compatible. Give the reason why no action is necessary. Give any timing +constraints that apply. }}
Technical details @@ -607,7 +661,7 @@ that stay compatible. Give the reason why consumers do not need to act. }} ## Internal: {{ What changes internally }} -{{ Tell maintainers what changes and why. If they need to act, give the +{{ Tell maintainers what changes and why. If they must act, give the required action here. }}
@@ -637,12 +691,12 @@ required action here. }} - **Release:** {{ Yes or No }} - {{ Evidence from the artifact, route, and supported consumer contract. }} - **Version bump:** {{ Patch, Minor, or Major }} - {{ Compatibility evidence. - Identify the explicit label, supported caller input, repository setting, or - documented shared default that supplies it. Delete this field when Release - is No. }} + Give the source of the bump: explicit label, supported caller input, + repository setting, or documented shared default. If Release is No, remove + this field. }} - **Mode:** {{ Stable or Prerelease }} - {{ Target-route or override evidence. - Identify configured release-candidate routing when applicable. Delete this - field when Release is No. }} + If the route uses release candidates, give that evidence. If Release is + No, remove this field. }} - **Labels:** {{ Exact `release:*` labels, or `None` when effective configuration supplies the decision without an override label. }} @@ -655,9 +709,11 @@ Example title: `Docs builds use a cache for Python packages` This route deploys the docs site. It does not publish a versioned artifact. This PR does not change the published site. The summary is for reviewers. -The example has no `Release details` block. On a route that invokes Release -Management, use the no-release block if the complete range leaves the -artifact and its supported consumer contracts unchanged. +The example has no `Release details` block. + +On a Release Management route, examine the effect of the full range on the +artifact and its supported consumer contracts. If the range has no effect +on either, use the no-release block. ```markdown The docs build job keeps Python packages in a cache. Later runs use the cache @@ -675,9 +731,10 @@ has not changed. The build command stays the same. The docs build job uses the requirements file for its cache key. One test starts with an empty cache. The other test uses the packages from the cache. -Both tests pass. Both give the same site output. The delivery plan is complete. -The search covered open docs CI issues. This change does not resolve another -issue in that set. +Both tests pass. Both give the same site output. + +The delivery plan is complete. The search covered open docs CI issues. This +change does not resolve any other issue in that set. | Changed surface | Standards checked | Framework docs checked | Result | | --- | --- | --- | --- | @@ -693,61 +750,67 @@ issue in that set.
``` -## Check readiness - -Before marking the pull request ready, verify: - -- the title states one result and contains none of the prohibited prefixes, - references, lists, or attribution; -- the title and all prose in the description follow the - [ASD-STE100 writing rule](#write-in-simplified-technical-english); -- the summary is accurate on its own and the marker appears exactly once in the - required position. The text of a release announcement has only consumer - results; -- release-bound claims match the complete published-artifact-to-candidate - range; implementation claims match the separate scoped PR diff; -- the product/target/channel, actual successful publication, immutable - artifact/source provenance, and exact candidate identities are verified and - current, including partial-publication evidence rather than a GitHub hint; -- the complete delivered range is covered, including earlier merged, skipped, - unshipped, and bundled consumer deltas; -- missing or unverifiable baselines, diverged lineage, and changing comparison - inputs are resolved; an initial publication has explicit reviewed initial - coverage rather than a fabricated predecessor or no-action assumption; -- when any result affects consumers, only consumer results appear in the - title, shareable summary, and consumer sections. Consumer sections are in - qualifier order; -- each result starts with `## : ` and a visible description. - All `Internal:` sections follow the consumer sections; -- consumer-facing prose explains what changed and why, affected supported uses, - compatibility, and the required action or compatible no-action outcome. It - shows deadlines and prerequisites that affect whether or when to upgrade; -- each result with technical adoption steps has a `Migration guide` block - with applicability, exact edits, ordered operations, and verification. - Results with no migration have no block; -- for a release-bound PR, the complete reviewed title and description, - including collapsed blocks, are ready to freeze for the fixed source. No - required step lives only in a diff, link, issue, template, or evergreen document; -- release-order composition preserves required intermediate operations without - assuming every intermediate version must be installed; -- prose precedes optional examples and tables; -- each result has one collapsed block per applicable type. The order is - `Migration guide`, `Technical details`, then `Related links`. Shared evidence - appears once and names the results or interfaces it supports; -- for internal-only work, the title names the internal outcome and the summary - explains why it matters. No consumer results or consumer upgrade steps - appear; -- same-instance references are fully qualified and closing keywords are - accurate; -- release metadata and `release:*` labels are absent when the route does not - invoke Release Management; -- when Release Management applies, `Release details` is the final block and - agrees with the labels, effective configuration, and complete-change evidence. - For a no-release decision, it records `Release: No` with its reason and - `release:skip`. It does not record a bump or mode; -- the description contains no AI or agent attribution. - -The pull request still follows the complete [Definition of Ready for + + +## Readiness check + +Before you mark the pull request ready, use this list: + +- Make sure that the title gives one result. Remove any prohibited prefix, + reference, list, or attribution. +- Apply the [ASD-STE100 writing rule](#write-in-simplified-technical-english) + to the title and all prose in the description. +- Make sure that the summary is accurate on its own. Use the marker exactly + once in the required position. Give only consumer results in an announcement. +- Make sure that release-bound claims match the full range. Make sure + that implementation claims match the separate scoped PR diff. +- For a release-bound record, make sure that the publication baseline and + exact candidate are correct and current. Include the product, target, and + channel. Include the successful publication and immutable artifact and source + evidence. If not all destinations complete, use the receipts for the + destinations that published. A GitHub hint is not proof. +- Include consumer changes from earlier merges, direct commits, skip + decisions, and bundled work. Do not make coverage claims until you have + evidence for the full range. If you do not have evidence for the + baseline or lineage, stop. If either source changes, examine the range + again. For a first publication, make sure that the note covers all + supported uses. Do not invent a prior artifact or a no-action result. +- If the change has an effect on consumers, give only consumer results in + the title, summary, and consumer sections. Put consumer sections in qualifier + order. +- Start each result with `## : `. Put the visible + description next. Put all `Internal:` sections after the consumer sections. +- For each consumer result, give the change and its reason. Identify the + supported uses in scope. Make compatibility clear. Give the required action + or the reason why no action is necessary. Show prerequisites and deadlines + that control whether or when to upgrade. +- If a result has technical adoption steps, give them in its `Migration guide`. + Give the applicable baselines and uses, exact edits, and steps in order. + Give the checks and their expected results. If no steps apply, do not add + the block. +- For a release-bound PR, make sure that the full title and description apply + to the fixed source. Include all collapsed blocks. Do not put a required step + only in a diff, link, issue, template, or evergreen document. +- Read the notes in release order. Make sure that the upgrade plan keeps all + necessary intermediate operations. Do not assume that consumers must install + every version. +- If you add an example or table, put it after the prose. +- Put the applicable collapsed blocks in this order: `Migration guide`, + `Technical details`, then `Related links`. Use each block type once per result. + Give shared evidence once. Identify the results or interfaces it supports. +- For internal-only work, give the internal result in the title. Give the reason + in the summary. Do not add consumer results or consumer upgrade steps. +- Use full same-instance references. Make sure that each closing keyword + points to an issue that the change resolves. +- If Release Management does not apply, do not add release metadata or + `release:*` labels. +- If Release Management applies, put `Release details` last. Make sure that + it agrees with the labels, effective configuration, and full range. + If the decision is no release, give `Release: No` with its reason and + `release:skip`. Do not give a bump or mode. +- Do not include AI or agent attribution in the description. + +The pull request still follows the [Definition of Ready for Review](Definition-of-Ready-and-Done.md#definition-of-ready-for-review). ## Where this connects @@ -758,6 +821,8 @@ Review](Definition-of-Ready-and-Done.md#definition-of-ready-for-review). moves through automated and human review. - [Definition of Ready and Done](Definition-of-Ready-and-Done.md) — the gate before review and completion. +- [Consumer Upgrades](Consumer-Upgrades.md) — how consumers use release + notes to make an upgrade plan. - [Branching and Merging](Branching-and-Merging.md) — branch, integration, and merge rules. - [Automation Labels](Automation-Labels.md) — ownership and meaning of diff --git a/src/docs/Ways-of-Working/index.md b/src/docs/Ways-of-Working/index.md index c97980e..ea2e424 100644 --- a/src/docs/Ways-of-Working/index.md +++ b/src/docs/Ways-of-Working/index.md @@ -36,7 +36,7 @@ Use them to plan work, open issues, write commit messages, and review pull reque | [Goal-Setting Framework](Goal-Setting.md) | Mission, OKRs, and Initiatives — the strategy above repository Epics. | | [Definition of Ready and Done](Definition-of-Ready-and-Done.md) | The three gates that bracket every piece of work. | | [Issues](Issues/index.md) | How issues are formatted and organized across the MSX ecosystem. | -| [PR Format](PR-Format.md) | Audience-first pull request titles and descriptions with evidence-based, conditional release decisions. | +| [PR Format](PR-Format.md) | Write pull requests for consumers and maintainers. Give upgrade steps and release decisions when they apply. | | [Commit Conventions](Commit-Conventions.md) | How commit messages are written. | | [Branching and Merging](Branching-and-Merging.md) | Delivery-leaf topic branches, pull-request-only integration, and merge models. | | [Review Etiquette](Review-Etiquette.md) | Tone, scope, severity, and how to disagree well. | From 30bb84446dab15c14071c67646cb861dac58ccc4 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 21 Nov 2026 20:17:03 +0100 Subject: [PATCH 7/8] Preserve release note links and evidence rules --- .../Capabilities/release-management/spec.md | 13 +++-- .../Definition-of-Ready-and-Done.md | 2 +- src/docs/Ways-of-Working/PR-Format.md | 49 ++++++++++++------- 3 files changed, 40 insertions(+), 24 deletions(-) diff --git a/src/docs/Capabilities/release-management/spec.md b/src/docs/Capabilities/release-management/spec.md index 8533521..90a2ccc 100644 --- a/src/docs/Capabilities/release-management/spec.md +++ b/src/docs/Capabilities/release-management/spec.md @@ -418,9 +418,10 @@ It MUST state the required action or explain why no action is needed. Deadlines prerequisites that determine whether or when to upgrade MUST be visible. When exact technical adoption steps apply, the result MUST carry them in its [Migration guide](../../Ways-of-Working/PR-Format.md#write-the-migration-guide), -with applicability, order, and verification. Review-only evidence MUST -identify the result or interface it supports. It MUST appear in that result's -collapsed blocks under [PR Format](../../Ways-of-Working/PR-Format.md#add-result-details-in-order). +with applicability, order, and verification. Review-only evidence MUST appear +in a collapsed block for a result it supports. If the evidence also supports +other results or interfaces, the block MUST identify them. See +[PR Format](../../Ways-of-Working/PR-Format.md#add-result-details-in-order). Announcements MUST NOT truncate the full release record. Canonical format adherence MUST be verified from the actual title, complete @@ -457,7 +458,8 @@ MUST block the affected publication rather than become a no-action result. ```gherkin Scenario: A later release includes a skipped change - Given change A was merged with a skip decision + Given change A affects a supported consumer contract + And an approved skip defers publication of A And approved change B triggers the next release When release notes are frozen Then the notes and aggregate decision cover A and B exactly once @@ -483,8 +485,9 @@ Scenario: Partial destination completion does not repeat published module change ### FR11 — Eligibility evaluates the complete unreleased artifact scope {#fr11} Only changes that affect the delivered artifact or a supported consumer contract -MUST produce a release. Eligibility MUST evaluate the complete unreleased range, +are eligible for release. Eligibility MUST evaluate the complete unreleased range, including direct and transitive build inputs, rather than only the latest change. +An [approved skip](#fr1) can defer an eligible change. If that range affects neither the artifact nor a supported contract, Release Management MUST NOT select a version bump, publish a release, or send a completion announcement. Validation MUST still run when publication is skipped. diff --git a/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md b/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md index dcc73ea..4c81aa7 100644 --- a/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md +++ b/src/docs/Ways-of-Working/Definition-of-Ready-and-Done.md @@ -44,7 +44,7 @@ A manual workflow dispatch does not substitute for the pull-request run. Event-g Producer review before publication MAY use a verified immutable candidate or prerelease source and an immutable template commit, as -[PR Format](PR-Format.md#complete-description-example) permits. If final template wiring +[PR Format](PR-Format.md#add-result-details-in-order) permits. If final template wiring requires the released producer version, identify that work in a linked delivery Task with its owner, sequencing, and completion evidence. Do not create a circular pre-merge prerequisite, invent final release coordinates, or describe diff --git a/src/docs/Ways-of-Working/PR-Format.md b/src/docs/Ways-of-Working/PR-Format.md index cff102f..e6c76ca 100644 --- a/src/docs/Ways-of-Working/PR-Format.md +++ b/src/docs/Ways-of-Working/PR-Format.md @@ -215,12 +215,13 @@ Record these decisions: 1. **Release or skip.** Apply the [release scope rules](../Capabilities/release-management/design.md#release-scope) - to the full range. If the range has an effect on the delivered artifact - or a supported consumer contract, release it. If it has no such effect, select - `release:skip`. This decision has no version bump or completion announcement. - Validation still runs. An internal-only PR diff does not show that the - full range is internal. If the range has earlier unpublished product - changes, include them in the decision and the consumer summary. + to the full range. If the range qualifies, record `Release: Yes` unless an + [approved skip](../Capabilities/release-management/spec.md#fr1) defers publication. + If the range does not qualify or the decision defers it, use `release:skip`. + A skip has no version bump or completion announcement. Validation still runs. + Keep deferred changes in the range for a later release. An internal-only PR + diff does not show that the full range is internal. If the range has earlier + unpublished product changes, include them in the decision and the consumer summary. 2. **Version bump.** For a release, select Patch, Minor, or Major from the effect on compatibility. Do not use changes outside the release scope to select the bump. @@ -347,6 +348,7 @@ For internal-only work with no release, the summary is for reviewers, not an announcement. The marker does not trigger an announcement. + ### Write each result @@ -424,6 +426,8 @@ Put all `Internal:` sections after the consumer sections. If the pull request has only internal changes, start the `Internal:` sections directly after the summary marker. Do not add a consumer section. + + ### Add result details in order Put the detail blocks after the visible text and any example. For each type @@ -441,10 +445,14 @@ supports. Put the evidence for the [standards and framework alignment pass](Workflow-Stages/Implement.md#5-standards-and-framework-alignment-pass) -in `Technical details`. Include the consumer and immutable template -compatibility evidence that applies. If a release-bound record has no -applicable template, give the reason. -See the [Release Management requirements](../Capabilities/release-management/spec.md#release-evidence). +in `Technical details`. Include the applicable consumer compatibility evidence. +If an integration template applies, give its repository and full commit SHA. +Show that the template commit works with the exact producer source. Before +publication, use a verified immutable candidate or prerelease source. If +a release-bound record has no applicable template, give the reason. +See the [Release Management requirements](../Capabilities/release-management/spec.md#release-evidence) +and the [completion gate](Definition-of-Ready-and-Done.md#repository-delivery-leaf) +for the evidence required after publication. Record the [publication baseline and candidate](#resolve-release-coverage-first), comparison, and freshness evidence once per range. Keep the scoped PR-base @@ -594,11 +602,12 @@ finds no other issue that the PR resolves, record that result. }} | --- | --- | --- | --- | | `{{ Path or interface }}` | {{ Applicable standards }} | {{ Applicable framework docs, or `None (no framework-specific docs)` }} | {{ `Aligned`, `Fixed in this PR`, or `Exception - MSXOrg/repository#123` }} | -{{ For each range, record the publication baseline and receipt. Record the -immutable artifact and source identities and the fixed candidate. Record the -comparison and freshness evidence. Give shared evidence only once. Identify -the results it supports. Record the scoped PR-base comparison separately. -Do not give a predicted version. }} +{{ For each range, record the publication baseline, receipt, and immutable +artifact and source identities. For a first publication, give evidence that +there is no earlier artifact. Record the fixed candidate, comparison, and +freshness evidence. Give shared evidence only once. Identify the results it +supports. Record the scoped PR-base comparison separately. Do not give a +predicted version. }} {{ If an integration template applies, give its repository and compatible immutable commit. Give evidence of compatibility with the fixed source. If @@ -765,9 +774,10 @@ Before you mark the pull request ready, use this list: - Make sure that release-bound claims match the full range. Make sure that implementation claims match the separate scoped PR diff. - For a release-bound record, make sure that the publication baseline and - exact candidate are correct and current. Include the product, target, and - channel. Include the successful publication and immutable artifact and source - evidence. If not all destinations complete, use the receipts for the + exact candidate are correct and current. Include the product, target, and channel. + For a first publication, include evidence that there is no earlier artifact. + Otherwise, include the successful publication and immutable artifact and + source evidence. If not all destinations complete, use the receipts for the destinations that published. A GitHub hint is not proof. - Include consumer changes from earlier merges, direct commits, skip decisions, and bundled work. Do not make coverage claims until you have @@ -788,6 +798,9 @@ Before you mark the pull request ready, use this list: Give the applicable baselines and uses, exact edits, and steps in order. Give the checks and their expected results. If no steps apply, do not add the block. +- If an integration template applies, verify its immutable commit against + the exact producer source. If no template applies to a release-bound record, + give the reason. - For a release-bound PR, make sure that the full title and description apply to the fixed source. Include all collapsed blocks. Do not put a required step only in a diff, link, issue, template, or evergreen document. From 8ce3bfade00c7a3d32746954a9922fc505c0a831 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 21 Nov 2026 21:21:52 +0100 Subject: [PATCH 8/8] Keep internal-only releases out of announcements --- .../Capabilities/release-management/design.md | 16 ++++++++++------ .../Capabilities/release-management/spec.md | 19 ++++++++++++++----- src/docs/Ways-of-Working/PR-Format.md | 5 +++-- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/src/docs/Capabilities/release-management/design.md b/src/docs/Capabilities/release-management/design.md index 4c181f0..88a025b 100644 --- a/src/docs/Capabilities/release-management/design.md +++ b/src/docs/Capabilities/release-management/design.md @@ -433,12 +433,16 @@ consume an owned alias follow [Accept moved release tags](accept-moved-release-t ## Completion announcements Announcements are a post-completion delivery channel, not part of artifact -publication. Resolve freezes whether announcements are enabled and which -configured destinations apply. Complete freezes the canonical message context: -version, immutable release link, summary, and release-intent identity. -Do not send a completion announcement for a no-release decision. - -The summary contains only consumer results. It is the leading text before the single +publication. Resolve freezes announcement eligibility and the configured +destinations. A release is eligible for an announcement only when the route +enables announcements and the full +[publication-to-candidate range](../../Ways-of-Working/PR-Format.md#resolve-release-coverage-first) +has a consumer result. Do not announce a skip or a release with only internal +results. This does not change [release scope](#release-scope). + +For an eligible announcement, Complete freezes the message context: version, +immutable release link, consumer summary, and release-intent identity. +The summary is the leading text before the single `` marker required by [PR Format](../../Ways-of-Working/PR-Format.md). Validate that boundary outside code fences before preparing the message; missing or duplicate markers are errors, not instructions to truncate elsewhere. diff --git a/src/docs/Capabilities/release-management/spec.md b/src/docs/Capabilities/release-management/spec.md index 90a2ccc..5f2f14b 100644 --- a/src/docs/Capabilities/release-management/spec.md +++ b/src/docs/Capabilities/release-management/spec.md @@ -342,11 +342,13 @@ identity and notes at each. The release MUST remain incomplete until every required artifact and release record is published successfully. Completed destination work MUST be recorded and reused idempotently. -Completion announcements MUST be separate from artifact publication. Delivery -progress MUST be retained per release and destination, and an unacknowledged -delivery MAY be retried with at-least-once semantics. Announcement failure MUST -NOT create another version, rebuild, republish the artifact, or revoke an -otherwise complete release. +Completion announcements MUST be separate from artifact publication. If the full +publication-to-candidate range has no consumer results, the release MUST NOT +send a completion announcement. This rule MUST NOT change publication eligibility. +Delivery progress MUST be retained per release and destination, and an +unacknowledged delivery MAY be retried with at-least-once semantics. Announcement +failure MUST NOT create another version, rebuild, republish the artifact, or +revoke an otherwise complete release. #### FR8 scenarios @@ -357,6 +359,13 @@ Scenario: Announcement retry does not create another release When announcement delivery is retried Then the same release identity and message context are reused And no new version, build, or artifact publication occurs + +Scenario: A release with only internal results completes without an announcement + Given an eligible release has no consumer results in its full publication-to-candidate range + And the route enables completion announcements + When every required destination publishes the artifact and complete release note + Then the release completes + And no completion announcement is sent ``` ### FR9 — Every destination satisfies the publishing-target contract {#fr9} diff --git a/src/docs/Ways-of-Working/PR-Format.md b/src/docs/Ways-of-Working/PR-Format.md index e6c76ca..22f4ffe 100644 --- a/src/docs/Ways-of-Working/PR-Format.md +++ b/src/docs/Ways-of-Working/PR-Format.md @@ -344,8 +344,9 @@ before the first detailed section. If the route sends a release announcement, it uses the consumer summary above the marker. Write that summary so it is useful on its own. -For internal-only work with no release, the summary is for -reviewers, not an announcement. The marker does not trigger an announcement. +If the full range has only internal results, keep the internal summary. +Do not send it in an announcement, even if the route publishes a release. +The marker does not trigger an announcement.