From add2f16fa4d4e1c8b2264c1c0960d6b0eead6ab2 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 12 Nov 2026 16:10:21 -0500 Subject: [PATCH] Point codebot's GitHub slot at the repository type gh checks against The codebot example declared its GitHub slot on a type no gh call reads, so approving a plan never covered the agent's gh writes and each one still asked for its own approval. --- examples/codebot/manifests/agentclass.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/codebot/manifests/agentclass.yaml b/examples/codebot/manifests/agentclass.yaml index 248c45b9..be247eaf 100644 --- a/examples/codebot/manifests/agentclass.yaml +++ b/examples/codebot/manifests/agentclass.yaml @@ -80,7 +80,12 @@ spec: # toolkit's schema, and leaving them out of this ceiling is what stops an # approval on this slot ever binding them: a typo-fixing agent has no # business merging its own PR or creating repositories. - - resourceType: github_repo + # + # github_repo_url, not github_repo. Every gh check resolves against the + # URL-keyed type; github_repo is the forge-keyed one the directory sync + # writes, and a slot declared there composes a grant no gh call ever + # reads — the class stays Valid and every gh write still asks per call. + - resourceType: github_repo_url description: "GitHub repository the agent reads and opens pull requests against (owner/name)." permission: write permissions: [read]