ci: call the org body marker check on pull requests (#2606)

DO
4d ago
+62-3

Summary

Adds .github/workflows/pr-body-markers.yml, a thin caller of the org's pull request body marker check (combsmith/.github pr-body-markers-reusable.yml, from combsmith/.github#1573). It is pinned to pr-body-markers/v1-next, the way this repo pins the other .github-hosted reusables, so the autocut ships each change to it here first. It fails a pull request whose title, body or commits carry a BREAKING CHANGE: line without the title's !, or a skip-CI marker. Closes #2606.

  • scripts/cut-release.sh: pr-body-markers is a cross-repo agent, so its first release can be cut by hand. Two bats tests. The usage and error now also name decision-brief, which the script already accepted (Gemini).
  • docs/agentic-interaction-model.md: the caller is listed as out of scope (a check that takes no action), so the completeness check passes.

Problem

The canary autocut now takes a breaking change only from the title's ! (combsmith/.github#1571, ruled by the Maintainer on 2026-11-23). It reads this repo's commits too, so here a footer without the ! would ship a break as a minor or a patch with no warning. A skip-CI marker in the squash message would also skip the push checks on main. combsmith/.github#1573 adds the check as a reusable; this repo had no caller.

Risk

Low. The check is advisory for now. The Maintainer has said yes to requiring it here and in combsmith/.github once this and combsmith/.github#1573 have merged: the context is pr-body-markers / Body markers, which also reports (and passes) on merge_group. That ruleset is applied separately; this pull request changes no ruleset or setting. It reads with contents: read and pull-requests: read only and takes no action. Merge order matters (below): until the channel tag exists, the job fails at startup on every pull request here, which is noise, not a block.

Merge order. This merges the same day, right after combsmith/.github#1573, and only once pr-body-markers/v1-next exists:

  1. combsmith/.github#1573 merges.
  2. Right after that merge, before the next canary sweep (minute 33 of every fourth hour), an org admin cuts the first release from this branch: scripts/cut-release.sh pr-body-markers 1.0.0 --ref <the #1573 merge commit> --channel next --push. If the sweep runs first, the autocut sees a new agent with no tags and creates pr-body-markers/v0.0.1 plus an unversioned pr-body-markers/next. Those do not affect this stub, which pins v1-next, but should be deleted once the v1 line exists.
  3. Check git ls-remote --tags https://github.com/combsmith/.github 'pr-body-markers/v1-next'. This pull request's own pr-body-markers run fails at startup until the tag exists, and a startup failure may not re-run cleanly, so close and reopen this pull request to get a fresh run, then merge it.

Both land before combsmith/.github#1566 merges.

CodeQL. CodeQL's actions/unpinned-tag query raises a new medium alert on the channel pin, as it does for the 13 channel-pinned stubs already here (alerts 148 to 160, open since 2026-10-14). The org standard pins first-party reusables to a moving channel, never a SHA, so the pin is right. But this branch's code-scanning rule blocks a new medium alert, so a person with security access must dismiss this one ("won't fix": first-party channel ref by org standard) before it can merge. This pull request does not change the CodeQL setup or any setting.

Test plan

  • bash scripts/test-local.sh tests/test_cut_release.bats: 63 of 63 pass, two of them new.
  • bash scripts/validate-interaction-model.sh: OK. tests/test_validate_interaction_model.bats, tests/test_channel_pin_consistency.bats, tests/test_validate_workflow_schedules.bats: pass.
  • tests/dev-lead/integration/test_reusable_pin_compliance.py: the new pin is canonical. tests/test_sonar_s7637_exemption.sh: pass (the stub carries the inline NOSONAR marker).
  • actionlint and shellcheck -x scripts/cut-release.sh: clean.
  • The reusable itself is tested in combsmith/.github#1573 (bats on the scripts, and static guards on the workflow).

Rollback

Revert this pull request, or move pr-body-markers/v1-next back to an earlier release. No other side effects.

Monitoring

The pr-body-markers / Body markers check on each pull request here. A startup_failure there means the channel tag is missing or stale.

Interaction contract

  • N/A — this PR does not add or change an agentic role.

Checklist

  • shellcheck scripts/*.sh passes for any changed shell scripts.
  • Docs updated where behavior or standards changed.
Checks and reviews
  • Readers: results are posted as comments.

🤖 Generated with Claude Code