Agent team
Merge policy
The orchestrator may merge a PR, never its author, when all of these hold
(merge in botgumi.config.ts):
- The PR's tier is in
merge.auto(default["low"]; add"mid"once you trust it). An unlabelled PR never auto-merges. - Every required status check is
success, including each chosen platform's CI:ios-ci, which the localios/scripts/ci.shposts throughgh api, andandroid-ci, which the Android GitHub workflow reports. - The reviewer's
botgumi/reviewstatus issuccess, with zero blocking findings. A status is used, not a GitHub approval, because one identity cannot approve its own PR. - No path in
merge.protectedPathsis touched. Defaults: the API contract (docs/api/**), DB migrations, auth and payments code, CI config (.github/**,ios/scripts/ci.sh,android/scripts/ci.sh),AGENTS.md,CLAUDE.md,.claude/**,botgumi.config.ts, and secrets and env files. - The diff (lines added plus removed) is under
merge.maxLines(default 400). - The PR is not a gate.
Every other PR waits for a human.
After a bot merge
- Watch for
merge.watchMinutes(default 60). If the deploy smoke check fails, or Sentry shows a new spike, open a revert PR and tell the human. - List every bot merge in the daily digest.
The policy is decideMerge and watchAfterMerge in @botgumi/runner (stubs for now).