Skip to content

docs(agents): require PR metadata (assignee, type label, milestone) — ADR-0040#92

Merged
danielPoloWork merged 1 commit into
masterfrom
docs/pr-metadata-policy
Jun 15, 2026
Merged

docs(agents): require PR metadata (assignee, type label, milestone) — ADR-0040#92
danielPoloWork merged 1 commit into
masterfrom
docs/pr-metadata-policy

Conversation

@danielPoloWork

Copy link
Copy Markdown
Owner

Summary

Codifies a PR-metadata policy so every agent-opened PR also sets a maintainer assignee, exactly one type label (Conventional-Commit type → label), and the current open release milestone. Process/repository-metadata only — no code/API change.

Motivation

PRs carried only a title and body; GitHub's structured metadata (reviewers, assignees, labels, projects, milestone) was unset, leaving the PR list and release view without a type/ownership/release signal. Requested by the maintainer; recorded as ADR-0040.

Changes

  • AGENTS.md §6.4 — the PR-metadata rule + the Conventional-Commit type → label map + the canonical gh pr create invocation; a metadata checkbox added to the PR body template.
  • docs/adr/0040-pull-request-metadata-policy.md — decision + rejected alternatives (area labels, rolling milestone, CI auto-labeler, forced reviewer), indexed.
  • CHANGELOG.mdUnreleased Added entry.
  • Out of band (GitHub state, in this session): created the eight type labels (feat/fix/refactor/perf/test/build/chore/ci; docs reuses documentation) and the v1.1.1 milestone, and backfilled PRs docs(bugs): add in-repo bug ledger and agent triage protocol (ADR-0039) #89docs(journal): add 2026-06-15 bug-ledger session checkpoint #91 with assignee + type label + milestone.

Design Patterns

  • None — process/governance change.

Verification

  • python tools/consistency_lint.py — OK
  • markdownlint-cli2 clean on the four changed files
  • This PR itself follows the new rule (assignee @me, label documentation for docs, milestone v1.1.1)
  • Builds / tests — N/A (no code change)

Documentation Impact

  • AGENTS.md §6.4 updated; ADR-0040 added + indexed
  • CHANGELOG.md Unreleased updated
  • No README / spec / patterns impact
  • PR metadata set — assignee, documentation label, v1.1.1 milestone (§6.4 / ADR-0040)

Known gaps (documented, not oversights)

  • Reviewers not set — the sole collaborator (danielPoloWork) is the PR author and GitHub forbids self-review. Switches on (--reviewer …) when a second collaborator/team exists.
  • Projects not set — the gh token lacks the project scope. Switches on (--project …) after gh auth refresh -s read:project,project + a board.

🤖 Generated with Claude Code

… ADR-0040

Agent-opened PRs carried only a title and body; GitHub's structured
metadata (reviewers, assignees, labels, projects, milestone) was unset,
so the PR list and release view had no type/ownership/release signal.

Codify a PR-metadata rule in AGENTS.md §6.4: every PR sets a maintainer
assignee (--assignee @me), exactly one type label (Conventional-Commit
type -> like-named label; docs reuses the built-in `documentation`), and
the current open release milestone (per-release scheme, e.g. v1.1.1; the
SemVer level is decided by maintenance.md). Reviewers are deferred — the
sole collaborator is the PR author and GitHub forbids self-review — and
Projects are deferred until the gh token carries the `project` scope; the
rule names how each switches on. Rationale and the rejected alternatives
(area labels, rolling milestone, CI auto-labeler) in ADR-0040.

The eight type labels and the v1.1.1 milestone were created on the repo,
and PRs #89-#91 were backfilled (assignee + type label + milestone), out
of band from this commit. Process/repository-metadata only; no API
change. Recorded under CHANGELOG Unreleased.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@danielPoloWork danielPoloWork added this to the v1.1.1 milestone Jun 15, 2026
@danielPoloWork danielPoloWork added the documentation Improvements or additions to documentation label Jun 15, 2026
@danielPoloWork danielPoloWork self-assigned this Jun 15, 2026
@danielPoloWork danielPoloWork merged commit fda9037 into master Jun 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant