Skip to content

Let the bug-bounty agent work in a worktree and check history first - #4041

Merged
pfefferle merged 2 commits into
trunkfrom
update/bug-bounty-agent
Nov 9, 2026
Merged

pfefferle merged 2 commits into
trunkfrom
update/bug-bounty-agent

Conversation

@pfefferle

Copy link
Copy Markdown
Member

Proposed changes:

  • I compared the bug-bounty agent with the draft-pr skill in loop-pool and took over what fits this repo.
  • The agent works in its own worktree with its own wp-env (ports 8890/8891). Before, it ran git checkout trunk in the main checkout, so a background run switched branches under whoever was working there.
  • It posts nothing on issues anymore. A bug it can't confirm ends up in the report with a suggested label and comment.
  • Before fixing, it reads the history: closed issues and PRs, git log -S on the changed lines, and tests that pin the current behavior. The fix has to keep the reason behind each earlier change.
  • The regression test has to fail on trunk first.
  • It runs the security-audit agent when the diff touches sensitive paths, and only opens a PR at 90% confidence or more.
  • After CI, it checks Copilot's threads, fixes real bugs and suggests replies in the report instead of posting them.
  • A final check makes sure CI and reviews ran on the head commit, trunk hasn't moved under the changed files, and the PR text still matches the code.

Issue selection, CI polling, the PHP 7.4 note and the WordPress hook rules are unchanged.

Other information:

  • Have you written new tests for your changes, if applicable?

Testing instructions:

  • Run the agent: "use the bug-bounty agent".
  • It creates ../wordpress-activitypub-<name> and leaves the main checkout on its current branch.
  • No label or comment shows up on issues it skips.
  • The report ends with verdict, PR, history, Copilot and the items for the maintainer.

Changelog entry

  • Automatically create a changelog entry from the details below.

@pfefferle pfefferle added the Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary. label Nov 9, 2026
@pfefferle pfefferle self-assigned this Nov 9, 2026
@pfefferle
pfefferle requested a review from a team November 9, 2026 15:15
@github-actions github-actions Bot added the Docs label Nov 9, 2026
@pfefferle
pfefferle merged commit 9801b5a into trunk Nov 9, 2026
5 checks passed
@pfefferle
pfefferle deleted the update/bug-bounty-agent branch November 9, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docs Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant