Repository navigation
feat(check): say when an agent can give the required approval - #992
Open
sandstream wants to merge 2 commits into
Open
sandstream wants to merge 2 commits into
sandstream wants to merge 2 commits into
Conversation
A Claude Approvals policy can let Claude post an approving review that GitHub counts. With one approval required, kit's row passed while a change could merge with no person approving. The reader is per tool, so Codex or another agent that approves is one more entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbF4MFePXWNCd4dxBQvqH2
|
Docker image built, scanned, and smoke-tested in CI. The PR image is local to this run and is not published. |
…-sync-p6fg9a-agent-approvers # Conflicts: # src/branch-protection-audit.ts
|
Docker image built, scanned, and smoke-tested in CI. The PR image is local to this run and is not published. |
Owner
Author
|
Re-ran the failed Windows jobs once. Shard 4/4 failed in Generated by Claude Code |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Owner decision 1 from kit-research
claude-ship-vs-kit: yes, with the owner's condition that kit stays usable with every agent, not one vendor's.Why
kit's default branch required reviews row passed with one required approval. Anthropic's Claude Approvals lets a policy file,
.claude/approvals.yml, allow Claude to post an approving review, and its docs say "Claude's approving review can meet a GitHub branch rule that requires one approval." A change on those paths can then merge with no person approving, and the row stayed green.What
src/agent-approval-policy.tslists, per tool, how a repository lets an agent approve:.claude/approvals.yml/.yaml, root or subdirectory, a rule withclaude: approvesAGENTS.mdA new tool that can approve is one more entry in
READERS. Nothing in the row's wording is Claude-specific except the tool name it reports.The row, with a policy that lets an agent approve:
modeisobserveapproves nothing and is not reported.git ls-filesis the closest local fact.Limits
mode: observeis still reported, so the row can warn where the tool would not approve. The row names the lines so a person can check.What changes for users
A repository with an enforced Claude Approvals policy that approves, and one required approval, sees a new warning.
Verification
src/agent-approval-policy.test.ts: seven tests, one in a real git repository with an untracked file and an observe-mode policy in a subdirectory.node scripts/prepush.mjs: build, format, lint, tests of the changed files, self-audit pass.kit reviewand the new-source-file check fail locally for container reasons. Semgrep did not run (not installed here).Generated by Claude Code