-
Notifications
You must be signed in to change notification settings - Fork 13
feat(#818): make prioritize agent multi-forge (GitHub + GitLab) #820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export ISSUE_URL="${GITHUB_ISSUE_URL}" | ||
| export GH_TOKEN="${GH_TOKEN}" | ||
| export FULLSEND_FORGE="github" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export ISSUE_URL="${GITLAB_ISSUE_URL}" | ||
| export GITLAB_TOKEN="${GITLAB_TOKEN}" | ||
| export FULLSEND_FORGE="gitlab" |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| version: 1 | ||
|
|
||
| # Sandbox policy for the prioritize agent (GitHub forge). | ||
| # | ||
| # Read-only agent: needs GitHub API (gh issue view, gh project view) | ||
| # and Vertex AI for inference. No write access to GitHub — the post-script | ||
| # handles mutations on the runner with a separate write-scoped token. | ||
| # curl excluded from the binary allowlist to prevent raw HTTP access | ||
| # with the injected GH_TOKEN. The agent frontmatter grants curl at the | ||
| # tool layer (needed by GitLab forge), but this policy's binary | ||
| # allowlist is the enforced control that blocks it on GitHub. | ||
|
|
||
| filesystem_policy: | ||
| include_workdir: true | ||
| read_only: [/usr, /lib, /proc, /dev/urandom, /app, /etc, /var/log] | ||
| read_write: [/sandbox, /tmp, /dev/null] | ||
| landlock: | ||
| compatibility: best_effort | ||
| process: | ||
| run_as_user: sandbox | ||
| run_as_group: sandbox | ||
|
|
||
| network_policies: | ||
| vertex_ai: | ||
| name: vertex-ai | ||
| endpoints: | ||
| - host: "api.anthropic.com" | ||
| port: 443 | ||
|
ggallen marked this conversation as resolved.
|
||
| protocol: rest | ||
| enforcement: enforce | ||
| access: read-write | ||
| - host: "*.googleapis.com" | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| access: read-write | ||
| binaries: | ||
| - path: "**/claude" | ||
| - path: "**/node" | ||
|
|
||
| github_api: | ||
| name: github-api | ||
| endpoints: | ||
| - host: "api.github.com" | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| access: read-only | ||
| # gh CLI uses POST /graphql for reads; protocol: graphql allows | ||
| # queries but blocks mutations at the AST level | ||
| - host: "api.github.com" | ||
| port: 443 | ||
| protocol: graphql | ||
| enforcement: enforce | ||
| access: read-only | ||
| path: "/graphql" | ||
| - host: "github.com" | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| access: read-only | ||
| binaries: | ||
| - path: "**/gh" | ||
| - path: "**/node" | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| version: 1 | ||
|
|
||
| # Sandbox policy for the prioritize agent (GitLab forge). | ||
| # | ||
| # Read-only agent: needs GitLab API for issue data and Vertex AI for inference. | ||
| # No write access to GitLab — the post-script handles mutations on the | ||
| # runner with a separate write-scoped token. | ||
| # gh excluded from the binary allowlist — only curl is permitted for | ||
| # GitLab API access. | ||
|
|
||
| filesystem_policy: | ||
| include_workdir: true | ||
| read_only: [/usr, /lib, /proc, /dev/urandom, /app, /etc, /var/log] | ||
| read_write: [/sandbox, /tmp, /dev/null] | ||
| landlock: | ||
| compatibility: best_effort | ||
| process: | ||
| run_as_user: sandbox | ||
| run_as_group: sandbox | ||
|
|
||
| network_policies: | ||
| vertex_ai: | ||
| name: vertex-ai | ||
| endpoints: | ||
| - host: "api.anthropic.com" | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
|
ggallen marked this conversation as resolved.
|
||
| access: read-write | ||
| - host: "*.googleapis.com" | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| access: read-write | ||
| binaries: | ||
| - path: "**/claude" | ||
| - path: "**/node" | ||
|
|
||
| gitlab_api: | ||
| name: gitlab-api | ||
| endpoints: | ||
|
ggallen marked this conversation as resolved.
ggallen marked this conversation as resolved.
ggallen marked this conversation as resolved.
ggallen marked this conversation as resolved.
ggallen marked this conversation as resolved.
|
||
| - host: "gitlab.com" | ||
| port: 443 | ||
| protocol: rest | ||
|
ggallen marked this conversation as resolved.
|
||
| enforcement: enforce | ||
| access: read-only | ||
| allow_encoded_slash: true | ||
| # Red Hat internal GitLab — supported deployment target for enrolled repos | ||
| - host: "gitlab.cee.redhat.com" | ||
| port: 443 | ||
| protocol: rest | ||
| enforcement: enforce | ||
| access: read-only | ||
| allow_encoded_slash: true | ||
| binaries: | ||
| - path: "**/curl" | ||
| - path: "**/node" | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.