fix(agents): add PR diff and file list permissions to implementation-worker #8247

Merged
HAL9000 merged 3 commits from fix/agents/impl-worker-pr-diff-perms-8175 into master 2026-04-25 04:20:32 +00:00
2 changed files with 13 additions and 0 deletions
@@ -30,6 +30,9 @@ permission:
"find *": allow
"grep *": allow
"wc *": allow
"curl *": allow
"printenv *": allow
"echo $*": allow
# Block ALL commands that could hit the label creation endpoints
"*api/v1/orgs/*/labels*": deny
"*api/v1/repos/*/labels*": deny
@@ -57,6 +60,8 @@ permission:
"forgejo_list_issue_comments": allow
"forgejo_issue_add_comment": allow
"forgejo_get_pull_request_by_index": allow
"forgejo_list_pull_request_files": allow
"forgejo_get_pull_request_diff": allow
"forgejo_list_pull_reviews": allow
"forgejo_list_pull_review_comments": allow
"forgejo_list_repo_milestones": allow
+8
View File
@@ -106,6 +106,14 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
(#828)
- **Implementation Worker PR Inspection Permissions** (#8175): Added
`forgejo_list_pull_request_files` and `forgejo_get_pull_request_diff` permissions
to `implementation-worker.md`. These read-only permissions enable the worker to
directly inspect PR changes in PR fix mode, reducing unnecessary full-repo clones
and aligning permissions with the `pr-reviewer` agent. Also added `curl *`,
`printenv *`, and `echo $*` bash permissions needed for Forgejo API calls,
environment variable checks, and basic shell operations.
- **TDD Issue-Capture Test Activation** (#7025): Replaced 234 bare `@skip` tags
across 82 Behave feature files with the correct `@tdd_expected_fail @tdd_issue
@tdd_issue_<N>` tag system. Scenarios whose referenced bugs were already fixed