Skip to content

Point codebot's GitHub slot at the repository type gh checks against - #70

Draft
josephschorr wants to merge 1 commit into
mainfrom
codebot-github-slot-type
Draft

josephschorr wants to merge 1 commit into
mainfrom
codebot-github-slot-type

Conversation

@josephschorr

Copy link
Copy Markdown
Member

Motivation

The codebot example is set up so that one plan approval covers the repository the agent pushes to and opens a pull request against. In practice the GitHub half never took effect: the example declared its GitHub slot on a repository type that no gh command checks against. The agent's class stayed valid, the plan was approved, and every gh write still asked for its own approval.

Summary of changes

  • The codebot example's GitHub slot now names the repository type gh commands are authorized against, so approving the plan covers the agent's gh calls on that repository.

Alternatives considered

None.

Provenance

  • Author: Joseph Schorr
  • Person who read the diff:

Ship gate

  • mage test:unit
  • mage test:integration
  • mage test:e2e

Unit passes. The first integration run had one failure and the first e2e run had three, all in unrelated scenarios and all on a heavily loaded machine. Each of the four passed when re-run on its own. A full re-run of both suites is in progress, and this stays a draft until it is green.

Regeneration

n/a

Coverage

  • This does not add user-visible behavior
  • This touches none of authorization, the SpiceDB schema, or the approver model (an example manifest only)

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.
@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
openagentprimitives Ignored Ignored Nov 12, 2026 10:30pm UTC

Request Review

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant