Skip to content

review.js: the reviewer checks the body it returns - #39

Merged
lneto merged 1 commit into
masterfrom
review-body-check
Nov 26, 2026
Merged

lneto merged 1 commit into
masterfrom
review-body-check

Conversation

@lneto

@lneto lneto commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

For a branch with no pull request yet, review.js's reviewer returned the body it was handed corrected against the final diff and checked nothing in it, so a body ending on the assistant footer, which AGENTS.md forbids, reached the reader as it stood and cost one more round to drop a line.

The reviewer now also corrects what tools/checks/pr-body.sh names over that body and the files the change carries, as it already corrects what title.sh names in the title.

Closes #31

For a branch with no pull request yet, the reviewer corrected the body
it was handed against the final diff and ran no check over the result,
so a body that ended on the assistant footer, which Claude Code's system
reminder asks every agent to append, reached the reader as it stood and
cost a round to drop a line. Its answer's body now also corrects what
pr-body.sh names over it and the files the change carries, as its title
already corrects what title.sh names.

Closes #31

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lneto lneto added the complexity: small One line or one file, with a trivial or existing test label Nov 26, 2026
@lneto

lneto commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Note

This comment was written by an LLM, not a human.

Proof for head f4758bad995bca739798c2cca4dce89e95c3a221, a change of the reviewer's prompt in .agents/skills/review-pr/review.js.

The passage it replaces, for a branch with no pull request yet:

your answer's body is this text with what the final diff, your fixups included, makes untrue corrected, the rest as it stands:

The new one:

your answer's body is this text with what the final diff, your fixups included, makes untrue, or ${H}tools/checks/pr-body.sh names over it and the files the change carries, corrected, the rest as it stands:

What the reviewer now runs names the footer #29's first review returned:

$ printf 'A body that opens on the need.\n\nCloses #26\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n' > footer.md
$ bash tools/checks/pr-body.sh footer.md; echo "exit $?"
footer.md: carries an assistant footer; the commit's Co-Authored-By trailer is the only one
exit 1

@lneto
lneto merged commit feb9545 into master Nov 26, 2026
1 check passed
lneto added a commit to luainkernel/luaebpf that referenced this pull request Nov 26, 2026
The mount moves to luainkernel/harness@feb9545, which carries
luainkernel/harness#38 and luainkernel/harness#39.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lneto added a commit to luainkernel/lunatik that referenced this pull request Nov 26, 2026
The mount moves to luainkernel/harness@feb9545, which carries
luainkernel/harness#38 and luainkernel/harness#39.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lneto
lneto deleted the review-body-check branch November 27, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complexity: small One line or one file, with a trivial or existing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review.js: the reviewer's body ends on an assistant footer

1 participant