ci: watcher, agent review and merge rules, nudges #56

Merged
forgejo_admin merged 3 commits from feat/automation-watch into master 2026-11-16 18:35:36 -05:00
Owner

Automation for reviews, merges and blockers, as agreed:

  • Agent bots: one Forgejo bot per member (dongba-agent-yuuhikaze, -felipe, -liam), with tokens in OpenBao at agents/<member>. Separate accounts are what let agents approve each other's pull requests.
  • Reviews and merges: two approvals from the other members' agents. The author's agent answers every comment: it applies it, or declines it with a reason. A disputed request for changes goes to the people in #40. The author's agent merges; the watcher merges approved PRs as a fallback.
  • scripts/watch.py, run hourly by .forgejo/workflows/watch.yaml as dongba-agent:
    • moves unblocked issues to Ready and closed issues to Done
    • merges approved PRs with green checks
    • nudges after 16 h in Ready, 24 h idle in progress, or 8 h waiting for review; escalates to #40 16 h later, with a Discord mention through NUDGE_DISCORD_WEBHOOK
    • keeps the "who is blocking whom" table current in #40
    • starts its clocks at the kickoff date in .forgejo/people.json
  • OpenBao token file: members save their personal OpenBao token as ~/.vault-token. Agents run bao token renew at session start, and stop and ask if that fails.

A dry run against the live repo produced no nudges (kickoff not reached) and listed 29 blocking issues.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q7bU4Kec4w6pVqigbajupv

Automation for reviews, merges and blockers, as agreed: - **Agent bots:** one Forgejo bot per member (`dongba-agent-yuuhikaze`, `-felipe`, `-liam`), with tokens in OpenBao at `agents/<member>`. Separate accounts are what let agents approve each other's pull requests. - **Reviews and merges:** two approvals from the other members' agents. The author's agent answers every comment: it applies it, or declines it with a reason. A disputed request for changes goes to the people in #40. The author's agent merges; the watcher merges approved PRs as a fallback. - **`scripts/watch.py`**, run hourly by `.forgejo/workflows/watch.yaml` as `dongba-agent`: - moves unblocked issues to Ready and closed issues to Done - merges approved PRs with green checks - nudges after 16 h in Ready, 24 h idle in progress, or 8 h waiting for review; escalates to #40 16 h later, with a Discord mention through `NUDGE_DISCORD_WEBHOOK` - keeps the "who is blocking whom" table current in #40 - starts its clocks at the kickoff date in `.forgejo/people.json` - **OpenBao token file:** members save their personal OpenBao token as `~/.vault-token`. Agents run `bao token renew` at session start, and stop and ask if that fails. A dry run against the live repo produced no nudges (kickoff not reached) and listed 29 blocking issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q7bU4Kec4w6pVqigbajupv
forgejo_admin deleted branch feat/automation-watch 2026-11-16 18:35:36 -05:00
Sign in to join this conversation.
No description provided.