Skip to content

chore(source-control): declare the PR-body required sections - #279

Merged
kyle-sexton merged 2 commits into
mainfrom
chore/pr-body-required-sections
Jul 27, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
chore/pr-body-required-sections

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Summary

Declares this repository's PR-body required sections (Summary, Test plan,
Related) in the team-tracked source-control.md layer.

.github/workflows/pr-issue-linkage.yml fails any non-exempt PR whose body
lacks a non-empty ## Related section, but the source-control plugin's portable
default scaffold emits Summary and Test plan only — it deliberately excludes
Related. A PR authored against the plugin default therefore fails this
repository's own gate at creation. Declaring the list closes the gap at the
config seam that exists for exactly this, rather than relying on an author
remembering the repo-specific requirement.

Found by a fleet-wide sweep comparing each repository's ## Related gate
against its declared pr_body_required_sections. ci-workflows, dotfiles,
github-iac, provisioning, and claude-code-plugins already declare the
identical three-section list; this brings the remaining repos to parity.

Test plan

  • Config-only change; no executable surface touched.
  • markdownlint-cli2 .claude/source-control.md — 0 errors (also enforced by the
    repository's own pre-commit hooks, which passed).
  • This PR's own body was written against the declared list, so
    pr-issue-linkage passing here is direct evidence the list matches what the
    gate requires.

Related

No linked issue.

`.github/workflows/pr-issue-linkage.yml` fails any non-exempt PR whose body
lacks a non-empty `## Related` section, but the source-control plugin's
portable default scaffold emits `Summary` and `Test plan` only. Lane-authored
PRs fail that gate on creation. Declaring this repository's own list closes the
gap.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@claude

claude Bot commented Jul 26, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 15s —— View job


Review

  • Read PR diff
  • Read REVIEW.md and project guidelines
  • Review changed file
  • Post findings

Scope: Single config key added to .claude/source-control.md. Config-only; no executable surface.

Blocking checks (REVIEW.md "Always check"): None apply — no handlers, no tenant data access, no secrets, no parameterization surface, no auth actions, no multi-record writes.

Correctness: The three section names (Summary, Test plan, Related) correctly reflect what .github/workflows/pr-issue-linkage.yml enforces via ci-workflows. The PR body itself demonstrates this: it carries all three sections and the gate is passing. The format — a bullet list under a ## key heading — is consistent with the file's existing structure for other keys.

AGENTS.md alignment: .claude/source-control.md is explicitly identified as the tracked, ratified config file for this plugin, and the correct ratification path is a reviewed PR — which this is.

No findings. The change is minimal, correct, and well-motivated.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 86b367bb82

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .claude/source-control.md Resolved
The preamble deferred upstream only for the `babysit_loop_*` section, so adding
a key from the other family left that scope statement false and pointed a
reader at a section that never defines the new key. It now names both families
and the section that defines each.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@claude

claude Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 30s —— View job


Review

  • Read PR diff (both commits)
  • Read REVIEW.md and project guidelines
  • Review changed file at HEAD (ec3f6d2)
  • Post findings

Scope: .claude/source-control.md — two commits, config-only.

Commit 86b367b added pr_body_required_sections with the three sections (Summary, Test plan, Related). Reviewed clean in the prior pass.

Commit ec3f6d2 updates the preamble in direct response to the Codex P1 finding ("Cite the new PR-body key's upstream contract"):

Before After
"Loop-lane keys consumed by…" "Team-tracked layer consumed by…"
Single citation: config-resolution.md (section "Loop-lane keys (babysit_loop_*)") Expanded: names babysit_loop_* keys under "Loop-lane keys" and pr_body_required_sections under "The config surface" separately

Both changes are correct:

  • "Team-tracked layer" is the right description now that the file governs two different config surfaces (babysit_loop_* loop-lane keys and pr_body_required_sections, which is not a loop-lane key). Leaving "Loop-lane keys" in the lead would have been misleading.
  • The expanded citation gives a maintainer a direct pointer to the upstream section that defines pr_body_required_sections semantics — exactly what the Codex finding asked for.

REVIEW.md "Always check": No applicable criteria — no handlers, no tenant data, no secrets, no parameterization surface, no auth actions, no multi-record writes.

No findings. The Codex P1 is addressed; both commits together are minimal, correct, and well-motivated.

@kyle-sexton
kyle-sexton merged commit 3fccfd4 into main Jul 27, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the chore/pr-body-required-sections branch July 27, 2026 00:54
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.

1 participant