Skip to content

docs(agents): say when an agent merges its own pull request - #726

Merged
theCodeDrift merged 1 commit into
mainfrom
aibex/t_gJhz8AYdwcvOos2WHxMTmqKl
Nov 30, 2026
Merged

theCodeDrift merged 1 commit into
mainfrom
aibex/t_gJhz8AYdwcvOos2WHxMTmqKl

Conversation

@aibex-agent

@aibex-agent aibex-agent Bot commented Nov 30, 2026

Copy link
Copy Markdown

AGENTS.md covered opening a PR, requesting the Claude review, and landing stacks, but never said whether an agent merges a single PR it opened. Agents stopped and waited for a person, who then had to authorize the merge by hand (#722).

Adds a Merging your own pull request section after "Requesting the Claude review". An agent merges its own single PR with gh pr merge <n> --rebase once:

  • every check on the head commit has passed, Validate included,
  • the requested Claude review has posted,
  • every finding the review raised is fixed or answered on its thread.

For a stack it points to the existing "Never --delete-branch mid-stack" and "Landing a stack" sections instead.

Docs only, so no changeset (per changeset.yml, docs ship no release note); labelled skip-changeset.

Refs #722

@aibex-agent aibex-agent Bot added the skip-changeset PR intentionally ships no release note (bypasses the changeset requirement) label Nov 30, 2026
@aibex-agent

aibex-agent Bot commented Nov 30, 2026

Copy link
Copy Markdown
Author

@claude /review

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @aibex-agent[bot]'s task in 1m 11s —— View job


Review

Review mode: incremental — read 0 prior review thread(s) before reviewing. .prior-review.json contains no review threads, review summaries, or comments beyond the trigger itself, so this is the first review of this PR; the whole diff was assessed fresh.

  • Read .prior-review.json (empty — no prior findings to classify against)
  • Fetch PR diff via gh pr diff and read full AGENTS.md for cross-reference context
  • Verify the new section's anchor links resolve correctly
  • Verify consistency with adjacent sections ("Requesting the Claude review", "Landing a stack", "Never --delete-branch mid-stack", "Rebase is the only merge method...")
  • Post review

Assessment: nothing new found — this looks correct.

Checked specifically:

  • All three markdown anchor links in the new section resolve to the right headings under GitHub's slugger (including the #never---delete-branch-mid-stack triple-hyphen anchor, which is easy to get wrong by hand but is correct here).
  • Requirement 2 ("the Claude review you requested has posted") is consistent with the existing "Requesting the Claude review" section: that section's "never request a review" exceptions (typo/doc tweaks, no-op rebase, etc.) apply only to later pushes, not to opening the PR — and "when opening a PR, every time" means a review is always requested on open, so this new rule never has a dangling "no review was ever requested" case.
  • Requirement 1's phrasing ("Validate included... a pass on an earlier commit does not count") matches the strict_up_to_date: true branch-protection description later in the file.
  • The single-PR merge command (gh pr merge <n> --rebase) correctly omits --delete-branch, and the stack carve-out correctly points to the existing "Never --delete-branch mid-stack" guidance instead of restating it.
  • Scope is correctly limited to a single PR targeting main, deferring to existing stack-landing sections rather than duplicating that logic.

No correctness, security, or clarity issues found in this docs-only change.

@theCodeDrift
theCodeDrift merged commit b0657ca into main Nov 30, 2026
9 checks passed
@theCodeDrift
theCodeDrift deleted the aibex/t_gJhz8AYdwcvOos2WHxMTmqKl branch November 30, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changeset PR intentionally ships no release note (bypasses the changeset requirement)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant