Skip to content

docs(changelog): enforce one-line entries in agent and contributor guidance - #3903

Merged
Daniel Meppiel (danielmeppiel) merged 4 commits into
mainfrom
danielmeppiel-changelog-style-enforcement
Nov 19, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 4 commits into
mainfrom
danielmeppiel-changelog-style-enforcement

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

PRs merged after #3886 went back to long, old-style CHANGELOG entries, and some PRs ended up listed twice in [Unreleased]. This PR makes the #3886 style the written rule everywhere agents and contributors are told how to write changelog lines, and cleans the current block.

Issue and approved scope

Issue: N/A (maintainer request)

Human scope-approval comment: Daniel Meppiel (@danielmeppiel) asked that "the cut-release skill should make sure we use best practices for changelog as we did, and whatever autopilot skill or pr opener script should be adjusted to add lines in the proper way" (relayed by the coordinator, 2026-11-19).

Does this PR complete the issue, or what remains? It completes the request.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Commands run and their results:

  • uv run --frozen --extra dev apm install --force: re-synced the 9 generated copies and apm.lock.yaml (the lock diff is hash lines only).
  • uv run --frozen --extra dev apm audit --ci: all 10 checks passed, no drift.
  • uv run --frozen --extra dev pytest -q -p no:xdist tests/unit/test_triage_advisory.py tests/unit/test_shepherd_driver_evals.py tests/unit/test_workflow_actor_contract.py tests/unit/test_tls_docs_scope.py tests/unit/test_devcontainer_feature_retired.py: 58 passed.
  • uv run --frozen --extra dev ruff check src/ tests/ and ruff format --check src/ tests/: clean (no Python changed).
  • ASCII check on every changed file: clean (CHANGELOG.md has older non-ASCII text in pre-0.36 sections; this PR adds none).
  • Not run locally: the docs site build (docs.yml); CI runs it.

Note: apm install without --extra dev fails on current main with No module named 'packaging'. The packaging import comes from src/apm_cli/install/mcp/retired_destinations.py (#3899) and is not a declared runtime dependency. This PR does not fix that.

Changelog

  • One line under ## [Unreleased] in CHANGELOG.md: user-visible
    effect first, 25 words or fewer, ending with (#PR); see
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

If this PR changes behaviour that an OpenAPM v0.1 req-XXX covers,
confirm the three-step ritual in the
development guide:

  • Spec edit: docs/src/content/docs/specs/openapm-v0.1.md updated
    (new/changed <a id="req-XXX"></a> anchor + prose + Appendix C
    row).
  • Manifest edit: docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.yml
    updated.
  • Test edit: a @pytest.mark.req("req-XXX") test under
    tests/spec_conformance/ added or extended.
  • CONFORMANCE.{md,json} regenerated via
    uv run --extra dev python -m tests.spec_conformance.gen_statement
    and committed.
  • N/A -- this PR does not change OpenAPM-observable behaviour.

…idance

Make the changelog rule concrete in its single source
(.apm/instructions/changelog.instructions.md): one line, user-visible
effect first, 25 words or fewer, ending with (#PR); breaking changes in
"Breaking changes and upgrade notes" with a one-line migration; never a
second line for the same change; no entry for internal-only PRs; two
good and two bad examples from the current changelog.

cut-release now re-sanitizes the whole [Unreleased] block at release
time (dedupe, condense, Highlights, upgrade notes, ref/credit check).
The delivery and merge autopilot workers, pr-description-skill,
CONTRIBUTING.md, the PR template and the development guide point at
the rule. Generated .github/ and .agents/ copies and apm.lock.yaml
hashes are re-synced with apm install.

Clean the current [Unreleased] block into that shape: drop the long
duplicates of #3765/#3818, #3769, #3788, #3865, #3867, #3873, #3875,
#3882 and the spec lines, fold their user-relevant caveats into the
short lines, and drop test-only #3877.

Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Requiring every user-visible task to edit CHANGELOG.md conflicts with wave-gate restrictions, preventing independent tasks in the same wave from both complying and passing integration.

2 open issues
What changed in this PR

This documentation-only PR carries the concise changelog style from #3886 into APM's contributor and agent workflows, and cleans up the current [Unreleased] block.

Changes:

  • Establishes one-line, effect-first entries with a 25-word limit, deduplication rules, and migration guidance.
  • Updates release preparation, delivery, merge, and PR-description guidance; synchronizes generated copies and lock hashes.
  • Consolidates changelog duplicates while retaining user-facing caveats, references, and contributor credits.
File Description
packages/​pr-description-skill/​SKILL.md Requires changelog checks before drafting PR descriptions.
packages/​autopilot/​autopilot-pr-merge-worker/​assets/​worker-prompt.md Applies concise-entry rules during review fixes.
packages/​autopilot/​autopilot-pr-merge-worker/​assets/​conflict-resolution-prompt.md Consolidates conflicting entries describing the same change.
packages/​autopilot/​autopilot-issue-delivery-worker/​.apm/​skills/​autopilot-issue-delivery-worker/​assets/​task-implement-prompt.md Adds task-level changelog instructions.
packages/​autopilot/​autopilot-issue-delivery-worker/​.apm/​skills/​autopilot-issue-delivery-worker/​assets/​implement-feature.md Links feature delivery to the changelog contract.
docs/​src/​content/​docs/​contributing/​development-guide.md Clarifies flag-graduation entries and migration notes.
CONTRIBUTING.md Links contributors to changelog rules.
CHANGELOG.md Condenses and deduplicates unreleased entries.
apm.lock.yaml Refreshes source and deployed-file hashes.
.github/​pull_request_template.md Adds a changelog checklist.
.github/​instructions/​changelog.instructions.md Synchronizes generated changelog rules.
.apm/​skills/​cut-release/​SKILL.md Requires sanitizing the entire unreleased block.
.apm/​skills/​cut-release/​assets/​pr-body-template.md Describes the release changelog cleanup.
.apm/​skills/​cut-release/​assets/​entry-sanitizer.md Revises formatting, preservation rules, and examples.
.apm/​instructions/​changelog.instructions.md Defines the canonical concise-entry contract.
.agents/​skills/​pr-description-skill/​SKILL.md Synchronizes deployed PR-description guidance.
.agents/​skills/​cut-release/​SKILL.md Synchronizes deployed release instructions.
.agents/​skills/​cut-release/​assets/​pr-body-template.md Synchronizes the deployed release PR template.
.agents/​skills/​cut-release/​assets/​entry-sanitizer.md Synchronizes deployed sanitizer guidance.
.agents/​skills/​autopilot-pr-merge-worker/​assets/​worker-prompt.md Synchronizes deployed merge-worker guidance.
.agents/​skills/​autopilot-pr-merge-worker/​assets/​conflict-resolution-prompt.md Synchronizes deployed conflict-resolution guidance.
.agents/​skills/​autopilot-issue-delivery-worker/​assets/​task-implement-prompt.md Synchronizes deployed task instructions.
.agents/​skills/​autopilot-issue-delivery-worker/​assets/​implement-feature.md Synchronizes deployed feature-delivery guidance.

Review effort: Balanced

…horten sanitizer example

Address review: only the task whose files_hint owns CHANGELOG.md edits it
(wave gate forbids shared-file edits across task branches), and the
worked example now fits rule 2 while keeping its caveat and four refs.

Co-authored-by: Copilot App <[email protected]>
Keep the one-line [Unreleased] block; add #3898 and #3905 one-line entries.

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 3c78f75 into main Nov 19, 2026
34 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-changelog-style-enforcement branch November 19, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants