Skip to content

docs(agents): ask PR bodies for before/after and refactor value, not a file count - #4818

Merged
thymikee merged 1 commit into
mainfrom
docs/pr-body-before-after
Nov 20, 2026
Merged

thymikee merged 1 commit into
mainfrom
docs/pr-body-before-after

Conversation

@thymikee

@thymikee thymikee commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

The PR body rule in docs/agents/pull-requests.md asked for a touched-file count and "1–3 CLI/Node/MCP examples". Neither tells a reader what changes for a user. The rule now asks for:

  • ## Before / after when a caller can observe the change, output and errors included: up to 3 calls at base and head, with the output that differs.
  • ## Value for a refactor: 2–4 numbers measured at base and head.
  • An updated body after each push, because bodies went stale after review rounds and rebases.

The file count and the example rule are removed. The gate receipt is asked for once, in ## Validation. The fixes line is removed because ## Before / after asks for the same thing. The 250-word limit no longer counts code blocks.

docs/agents stays inside its 40,000-byte budget: 39,993 bytes. No scope expansion. No linked issue.

Validation

Head 0d1930f612fce4f9e7f5a1ef27b4c6e245e04fb4.

  • pnpm check:affected --run selected 1 check, agent-guidance, and it passed with exactCommit=true.
  • Docs-only: the change edits agent guidance and touches no runtime code, so runtime tests do not apply.

Risk: the rule is not enforced. A body that ignores it still merges.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 0d1930f

No open findings.

Not in the reviewers' prompt (1 file)
  • docs/agents/pull-requests.md: no reviewer was selected for this change

Reviewed with this repository's own Sentinel configuration (520e2ca3c27d).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

This PR is ready at 0d1930f. It changes only the PR-body rules in the agent docs: a Before / after section when a caller can observe the change, a Value section with measured numbers for a refactor, and the receipt folded into Validation. The touched-file count and the separate fix rule are gone, and the 250-word limit now excludes code blocks. It reads consistently with the rest of the page.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 20, 2026
@thymikee
thymikee merged commit 465a0e4 into main Nov 20, 2026
8 checks passed
@thymikee
thymikee deleted the docs/pr-body-before-after branch November 20, 2026 15:10
thymikee added a commit that referenced this pull request Nov 20, 2026
* origin/main:
  refactor(command-surface): split the system family by command (#4817)
  docs(agents): ask PR bodies for before/after and refactor value, not a file count (#4818)
  refactor(apple-runner): generate the Swift runner error-code enums from runner-contract.ts (#4810)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant