Skip to content
SprecherEast
Issue 106

process: Give AI agents their own GitHub account so GitHub enforces the no-bypass rule

Back to our plan
Open
ciprocesstoolingpriority: lowneeds grooming

Type

process

Problem

Every AI agent works through the owner's GitHub account (boulaajaj), which has admin rights on this repo. Since #171, agents merge their own PRs once every required check passes and the independent review says "Ready to merge" (AGENTS.md step 5). The owner isn't involved in merging.

The main ruleset requires a PR, the five checks and resolved conversations, but an admin can bypass it (gh pr merge --admin, bypass_rules: true, or a direct push). So "never bypass a rule" is followed by convention only: GitHub can't stop an agent that gets it wrong.

Proposed fix

  • Create a free machine account for agents (for example sprechereast-bot). Add it as a collaborator with Write access, not admin.
  • Agents authenticate as that account (a fine-grained token scoped to this repo) for git push, issues, PRs and merges.
  • In the main ruleset, keep the required checks and resolved conversations, and give the bypass list no agent role: only the owner's account keeps admin bypass.
  • Update AGENTS.md ("How GitHub enforces this") once this is done.

Not in scope: requiring the owner's approval on each PR. He asked not to be involved in merging (#171).

Acceptance criteria

  • Not done: An agent can merge a PR only when every required check passes and every conversation is resolved.
  • Not done: An agent can't bypass the ruleset or push to main.
  • Not done: The owner can still merge, hold or revert anything.

Area

ci, tooling

Priority

priority: high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab