Skip to content

Adopt claude-code-action agent-approval-check: enforce human approval on agent PRs via required status check #91

Description

@gingur

Operator found https://github.com/anthropics/claude-code-action/blob/main/examples/agent-approval-check.yml — a required status check that fails until N human approvals exist on any PR containing agent-authored commits. Runs from the default branch on pull_request_target + issue_comment, so a PR cannot edit the check to approve itself; agent approvals are excluded from the count.

Why adopt: it converts our trust model ('bot approval never merges — only the Operator's does', hooks#17) from convention into branch-protection enforcement, and it neutralizes any future concern about a bot identity (e.g. the run's GITHUB_TOKEN) satisfying an approval-count rule.

Sketch:

Sequencing: alongside/after hooks#15–#17 (PR-lifecycle wiring). Third-party pin note: official anthropics org → version tag per CLAUDE.md pinning policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions