Skip to content

Name a Pull Request Body Draft After Its Repository and Branch - #3422

Merged
ptr727 merged 2 commits into
developfrom
pr-body-per-branch
Oct 24, 2026
Merged

ptr727 merged 2 commits into
developfrom
pr-body-per-branch

Conversation

@ptr727

@ptr727 ptr727 commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Summary

Two concurrent lanes drafted their pull request bodies into one shared pr-body.md, and a gh pr edit --body-file published one lane's draft onto the other lane's pull request. That happened twice in one round.

  • drive-pr "The Drive Loop" step 2 now says every draft of a pull request's body, the opening one and each later rewrite, goes in a file named for its repository and branch.
  • backlog-burndown "Dispatching a Worker" has the brief tell each worker to draft its body, and each rewrite of it, in a file named for its branch.
  • The generated mirrors under .claude-plugin/fleet-skills/ and .github/skills/ are regenerated.

Local review

Two local-strict-review passes at the Opus tier. Round 1 raised five findings (two sentence-length violations, placement at creation only, a branch name not unique across repositories, a broken "it" antecedent), all introduced and all fixed in b645b42. Round 2 raised none.

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 24, 2026 09:14
Two concurrent lanes drafting into one shared pr-body.md each published
the other's body onto the wrong pull request. drive-pr's drive loop and
backlog-burndown's worker brief now say to draft the body in a file
named for the branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 24, 2026 16:18
@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ptr727

ptr727 commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head b645b429c27edb96b54ddd0fb38cde0d1f41172e, the content this pull request carries at that commit against develop, and it recorded 0 findings.

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.

🔵 Needs a closer look

The guidance does not yet define a deterministic, filesystem-safe filename mapping for repository and branch names.

No open issues 🎉

What changed in this PR

This pull request updates pull-request body drafting guidance to prevent concurrent lanes from overwriting one another’s drafts by using repository- and branch-specific filenames. It also regenerates the distributed skill mirrors and source digests.

Changes:

  • Updates drive-pr to use repository- and branch-specific body draft filenames.
  • Updates backlog-burndown worker guidance to use branch-specific draft files.
  • Regenerates the GitHub and Claude skill distributions and refreshes their digests.
File Description
.github/​skills/​drive-pr/​SKILL.md Generated GitHub Copilot mirror of drive-pr.
.github/​skills/​backlog-burndown/​SKILL.md Generated GitHub Copilot mirror of backlog-burndown.
.claude-plugin/​fleet-skills/​skills/​drive-pr/​SKILL.md Generated Claude Code mirror of drive-pr.
.claude-plugin/​fleet-skills/​skills/​backlog-burndown/​SKILL.md Generated Claude Code mirror of backlog-burndown.
.claude-plugin/​fleet-skills/​.source-digests/​drive-pr Updated digest for the generated drive-pr skill.
.claude-plugin/​fleet-skills/​.source-digests/​backlog-burndown Updated digest for the generated backlog-burndown skill.
.agents/​skills/​drive-pr/​SKILL.md Canonical guidance for repository- and branch-specific body drafts.
.agents/​skills/​backlog-burndown/​SKILL.md Canonical worker guidance for branch-specific body drafts.

Review effort: Lite

@ptr727

ptr727 commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

Declined with evidence, on the headline "The guidance does not yet define a deterministic, filesystem-safe filename mapping for repository and branch names." Per GOVERNANCE.md "Trust Boundaries and Hardening Effort", a hardening case earns a fix only where its failure is silent or destructive, or one an outsider can trigger. The repository and branch names here are chosen by the driving agent itself, which is trusted input. The one unsafe character a fleet branch name can carry is /, and with it a shell redirect to $scratch/<repo>-<branch>-body.md fails loudly with "No such file or directory", while the Write tool creates the directory. Neither is silent or destructive, so the rule names the key and leaves its spelling to the driver. The defect the rule closes is two drivers sharing one name, and any spelling keyed on repository and branch closes it.

@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.81%. Comparing base (9f19b2a) to head (b645b42).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3422   +/-   ##
========================================
  Coverage    80.81%   80.81%           
========================================
  Files           23       23           
  Lines         8859     8859           
========================================
  Hits          7159     7159           
  Misses        1700     1700           
Flag Coverage Δ
python-3.13 80.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit 4b7cd8d into develop Oct 24, 2026
14 checks passed
@ptr727
ptr727 deleted the pr-body-per-branch branch October 24, 2026 16:26
ptr727 added a commit that referenced this pull request Oct 24, 2026
…xes to Main (#3434)

## Summary

Promotes the pull requests merged into develop since release 2.0.1158.

- [#3422](#3422):
`drive-pr` and `backlog-burndown` have every draft of a pull request
body go in a file named for its repository and branch. Two lanes sharing
one `pr-body.md` had published each other's drafts.
- [#3423](#3423): in
`pr_review.py`, an earlier partial round outranks a head round reading
`unknown`, printing `coverage=PARTIAL` and exiting 42.
- [#3427](#3427): the
prose gate takes run-block heredoc bodies from its patched Bash lexer's
heredoc tokens and lexes each alone, so an apostrophe in a body no
longer hides later comments. Inline Markdown comments are numbered with
code spans masked. The gate's size ceiling moves from 1800 to 1840
lines, as the maintainer decided on that pull request. Two edge cases
are deferred to #3429 and #3430, and a pre-existing one is filed as
#3428.
- [#3431](#3431): deletes
`spec/carried_text.py` and reads carried Markdown regions through
markdown-it-py in the new `spec/fidelity_text.py`. `carry.py`,
`build_dist.py`, and `canonical_review.py` carry PEP 723 metadata, and
every caller runs them as `uv run --no-project --script`. The full audit
sweep is identical before and after. The `validate.py` remainder is
#3426, and a pre-existing include-marker gap is #3432.
- [#3433](#3433):
`pr-review-conduct` and `scripts/README.md` say exactly when the
earlier-partial path exits 42, following #3423.

Closes #3412
Closes #3413
Closes #3414
Closes #3425

## Constituent coverage

Each change this promotion carries had coverage on its own pull request
into develop, at its merged head:

| Pull request | Merged head | Coverage |
| --- | --- | --- |
| [#3422](#3422) |
`b645b429` | attested local pass, and a Copilot table naming exactly the
changed files, `coverage=table` |
| [#3423](#3423) |
`3f893b65` | attested local pass, and a carried Copilot table,
`coverage=carried:table` |
| [#3427](#3427) |
`2511b62b` | attested local pass, and a carried Copilot table,
`coverage=carried:table` |
| [#3431](#3431) |
`92755285` | attested local pass, `coverage=local` |
| [#3433](#3433) |
`cceba3af` | attested local pass, `coverage=local` |

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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