repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Grant the reviewers the tools to cast their verdict (#38)

d1d7f4b5e5c9dceff521c475e5e66252a8928278

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

## What forced this
The first live run of the review loop (PR #37) showed both Fable
reviewers running to completion but producing nothing — no label, no
comment. The job log: **28 permission denials**. In automation mode
`claude-code-action` denies every `gh` call unless allow-listed, and no
ADW workflow passed one. The loop was wired but had never once closed.

## The call
Give each reviewer a scoped allow-list covering exactly read + verdict:
`gh pr view/diff/edit/comment` + `gh issue view`.

## What we deliberately didn't do
No `gh pr merge`, no `gh api`, no blanket `gh:*` — a review agent on
untrusted PR head on a public repo still cannot merge, hit the API, or
leave its lane. Interim grant only: #19's deterministic-verdict step
will remove the LLM's label-write entirely.

## Evidence
Root cause is the `permission_denials_count: 28` in the #37 reviewer run
with zero output artifacts. Same gap affects every write-capable agent
(triager, surveyor, builder, sweeper) — tracked as follow-up.

## Surface touched
`.github/workflows/adw-review.yml` (both reviewer jobs).

## If this ages badly
Widen or narrow the allow-list per what the agents actually call; the
whole grant disappears once #19 lands.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01LABEHeVpg74oyZNtWLUWpB)_

Co-authored-by: Claude <noreply@anthropic.com>

Changed files (1)

+20 / −2 text lines

Diff layout

.github/workflows/adw-review.yml

Modified

+20 / −2 text lines

6161 `changes-requested` (this wakes builder to revise) and remove
6262 `reviewed`. Leave your findings as comments either way.
6363 You are a mission-critical gate — ultrathink.
64 claude_args: --model claude-fable-5
64 # Scoped write access so the reviewer can actually cast its verdict.
65 # Without this, automation mode denies every gh call and the agent
66 # reviews but can post no label/comment (the merge-gate then never turns
67 # green). Read + verdict only — NOT `gh pr merge`, `gh api`, or `gh:*`,
68 # so a review agent can neither merge nor act outside its lane. This is
69 # the interim grant; the deterministic-verdict step (issue #19) removes
70 # the LLM's label-write entirely.
71 claude_args: >-
72 --model claude-fable-5
73 --allowedTools "Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh pr edit:*),Bash(gh pr comment:*),Bash(gh issue view:*)"
6675 security-reviewer:
6776 needs: reset
8695 add `security-cleared`; on a high finding, add `risk:high` and ensure
8796 `security-cleared` is absent, holding the merge for the owner.
8897 You are a mission-critical gate — ultrathink.
89 claude_args: --model claude-fable-5
98 # Scoped write access so the reviewer can actually cast its verdict.
99 # Without this, automation mode denies every gh call and the agent
100 # reviews but can post no label/comment (the merge-gate then never turns
101 # green). Read + verdict only — NOT `gh pr merge`, `gh api`, or `gh:*`,
102 # so a review agent can neither merge nor act outside its lane. This is
103 # the interim grant; the deterministic-verdict step (issue #19) removes
104 # the LLM's label-write entirely.
105 claude_args: >-
106 --model claude-fable-5
107 --allowedTools "Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh pr edit:*),Bash(gh pr comment:*),Bash(gh issue view:*)"