Skip to content

Commit 6b369d8

Browse files
lklimekclaude
andcommitted
fix: resolve CI review permission denials and artifact upload failures
Fixes 12+ permission denials per review run by adding missing tool permissions, switching to absolute report paths, and constraining agents to use built-in tools over Bash equivalents. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent aefaa49 commit 6b369d8

7 files changed

Lines changed: 40 additions & 11 deletions

File tree

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claudius",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "Collection of specialized development agents and skills for Claude Code",
55
"author": {
66
"name": "lklimek",

‎CHANGELOG.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ All notable changes to this project are documented in this file.
44

55
Format follows [Keep a Changelog](https://keepachangelog.com/). This project uses [Semantic Versioning](https://semver.org/).
66

7+
## [3.2.1] - 2026-03-13
8+
9+
### Changed
10+
11+
- `grumpy-review` — report output uses `${REPORT_DIR:-.}/report.json` instead of relative `report.json` (fixes CI artifact upload failures)
12+
- `grumpy-review` — added `Bash(mkdir *)` to `allowed-tools` (fixes permission denial in fork context)
13+
- `grumpy-review` — agent prompt requirements now include CI context constraints (MemCan/WebSearch unavailability) and file output rules (Write tool, not cat heredocs)
14+
- `grumpy-review`, `check-pr-comments` — added CI Log Retrieval section: `get_job_logs` with `return_content: false` to avoid context bloat
15+
- `claudius` agent — temp dir pattern changed from `/tmp/claude/XXXXXX` to `/tmp/claudius-XXXXXX` (avoids compound-command permission denials)
16+
- `claudius` agent — Skills Reference: added `dependabot-merge`, clarified `lessons-learned` as memcan plugin skill
17+
- `settings.example.json` — added `consolidate_reports.py`, `jq`, `/tmp/claudius-*` cleanup permissions
18+
19+
### Fixed
20+
21+
- CI review workflow (`dash-evo-tool`): added 10 missing shell script permissions to `--allowedTools`, removed `Bash(grep *)` (agents should use Grep tool), added `jq`, documented `issues: write` rationale
22+
723
## [3.2.0] - 2026-03-12
824

925
### Added

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ See [ghsudo on GitHub](https://github.com/lklimek/ghsudo) for full documentation
205205

206206
### Recommended permissions
207207

208-
The autonomous skills (`ci-loop`, `review-loop`, `review-dependency`, `review-pr`, `check-pr-comments`) issue git and GitHub CLI commands. Without pre-approved permissions, Claude Code will prompt you to confirm each command interactively — which defeats the purpose of autonomous operation.
208+
The autonomous skills (`ci-loop`, `review-loop`, `review-dependency`, `review-pr`, `check-pr-comments`, `grumpy-review`) issue git and GitHub CLI commands. Without pre-approved permissions, Claude Code will prompt you to confirm each command interactively — which defeats the purpose of autonomous operation.
209209

210210
Copy [`settings.example.json`](settings.example.json) into your project's `.claude/settings.json` to auto-approve the commands these skills need. The example includes a deny list that blocks destructive operations (force push, hard reset, branch force-delete) regardless of what is allowed.
211211

‎agents/claudius.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ For each prompt: identify need → select matching skills/agents → plan and de
4141

4242
## Skills Reference
4343

44-
check-pr-comments, ci-loop, coding-best-practices, frontend-best-practices, git-and-github, go-best-practices, grumpy-review, merge-base, lessons-learned, python-best-practices, review-dependency, review-loop, review-pr, rust-best-practices, security-best-practices, severity, triage-findings (explicit request only), workflow-feature (Req→Arch→TDD→Impl→QA→LL), workflow-simplified (≤200 lines, same phases), workflow-trivial (≤20 lines, TDD→Impl→QA→LL)
44+
check-pr-comments, ci-loop, coding-best-practices, dependabot-merge, frontend-best-practices, git-and-github, go-best-practices, grumpy-review, merge-base, lessons-learned (memcan plugin), python-best-practices, review-dependency, review-loop, review-pr, rust-best-practices, security-best-practices, severity, triage-findings (explicit request only), workflow-feature (Req→Arch→TDD→Impl→QA→LL), workflow-simplified (≤200 lines, same phases), workflow-trivial (≤20 lines, TDD→Impl→QA→LL)
4545

4646
## Workflows & Delegation
4747

@@ -88,7 +88,7 @@ For large tasks (50+ files), spawn multiple agents of same type with different f
8888

8989
### Output
9090

91-
Standalone agents write to `<tmpdir>/<agent-name>-report.md` (session dir: `mktemp -d /tmp/claude/XXXXXX`). Team agents use SendMessage. Each agent reports skills used; calculate redundancy ratio on overlap.
91+
Standalone agents write to `<tmpdir>/<agent-name>-report.md` (session dir: `mktemp -d /tmp/claudius-XXXXXX`). Team agents use SendMessage. Each agent reports skills used; calculate redundancy ratio on overlap.
9292

9393
**Candy tally**: When wrapping up a workflow, collect each agent's 🍬 count from their reports and present a summary — agent name, findings count, candy earned. The agent with the most findings wins bragging rights.
9494

‎settings.example.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"Bash(*diff-anchors.py *)",
8484
"Bash(*validate_report.py *)",
8585
"Bash(*generate_review_report.py *)",
86+
"Bash(*consolidate_reports.py *)",
8687
"Bash(*triage_server.py *)",
8788
"Bash(ghsudo *)",
8889
"Bash(ghsudo --verify *)",
@@ -95,8 +96,10 @@
9596

9697
"Bash(fuser -k */tcp)",
9798

99+
"Bash(jq *)",
98100
"Bash(mktemp *)",
99-
"Bash(rm -rf /tmp/claude/*)"
101+
"Bash(rm -rf /tmp/claude/*)",
102+
"Bash(rm -rf /tmp/claudius-*)"
100103
],
101104
"deny": [
102105
"Bash(git push*--force*)",

‎skills/check-pr-comments/SKILL.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ Present the rendered markdown report to the user. Optionally generate HTML (`--f
138138

139139
The user can also invoke `triage-findings report.json` for interactive browser-based triage of unresolved comments.
140140

141+
## CI Log Retrieval
142+
143+
When fetching GitHub Actions job logs via MCP `get_job_logs`, always set `return_content: false` to avoid dumping ~12k tokens into context. Download the log to `${TMPDIR}/job-log.txt`, then use Grep or Read to search it.
144+
141145
## 8. Resolve Addressed Threads
142146

143147
**Always ask the user for confirmation before resolving any threads.**

‎skills/grumpy-review/SKILL.md‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Parallel-agent code review for quality, security, dependencies, an
44
agent: claudius
55
context: fork
66
model: opus
7-
allowed-tools: Read, Grep, Glob, Write, Edit, Bash(git log *), Bash(git diff *), Bash(git rev-parse *), Bash(git show *), Bash(cargo audit *), Bash(npm audit *), Bash(pip-audit *), Bash(govulncheck *), Bash(python3 ../../scripts/consolidate_reports.py *), Bash(python3 ../../scripts/validate_report.py *), Bash(python3 ../../scripts/generate_review_report.py *), Bash(cat ../../schemas/*), Task, TaskCreate, TaskUpdate, TaskList, TaskGet, SendMessage
7+
allowed-tools: Read, Grep, Glob, Write, Edit, Bash(git log *), Bash(git diff *), Bash(git rev-parse *), Bash(git show *), Bash(cargo audit *), Bash(npm audit *), Bash(pip-audit *), Bash(govulncheck *), Bash(python3 ../../scripts/consolidate_reports.py *), Bash(python3 ../../scripts/validate_report.py *), Bash(python3 ../../scripts/generate_review_report.py *), Bash(cat ../../schemas/*), Bash(mkdir *), Task, TaskCreate, TaskUpdate, TaskList, TaskGet, SendMessage
88
---
99

1010
# Code Review Methodology
@@ -93,6 +93,8 @@ every review agent prompt MUST include these review-specific elements:
9393
2. **Finding format**: Use the severity levels and structure defined below
9494
3. **Review checklists**: Embed relevant checklist content or rely on the agent's preloaded skills
9595
4. **UX/DX lens**: instruct agents to assess how findings affect end-user workflows and developer experience, not just code correctness
96+
5. **CI context**: When MemCan/WebSearch are unavailable (e.g., CI), instruct agents: "Do not use memcan tools or WebSearch/WebFetch."
97+
6. **File output**: Instruct agents to use the Write tool for creating files — never `cat > file` or heredoc redirections.
9698

9799
### Finding format (JSON)
98100

@@ -212,7 +214,7 @@ Run the script to assign IDs, compute statistics, and produce a schema-valid rep
212214
```bash
213215
python3 ../../scripts/consolidate_reports.py assemble \
214216
--input ${TMPDIR:-/tmp}/merged-findings.json \
215-
--output report.json
217+
--output ${REPORT_DIR:-.}/report.json
216218
```
217219

218220
The script assigns sequential IDs by category (SEC-001, PROJ-001, RUST-001, etc.), computes
@@ -237,7 +239,7 @@ If validation fails, fix the `merged-findings.json` and re-run assemble. Do NOT
237239
After validation, generate a human-readable markdown version:
238240

239241
```bash
240-
python3 ../../scripts/generate_review_report.py report.json --format md
242+
python3 ../../scripts/generate_review_report.py ${REPORT_DIR:-.}/report.json --format md
241243
```
242244

243245
This produces `report.md` next to the JSON file.
@@ -254,11 +256,15 @@ If initial review reveals areas needing deeper investigation:
254256
If the user requests HTML or PDF versions, invoke the renderer directly:
255257

256258
```bash
257-
python3 ../../scripts/generate_review_report.py report.json --format html
258-
python3 ../../scripts/generate_review_report.py report.json --format pdf
259+
python3 ../../scripts/generate_review_report.py ${REPORT_DIR:-.}/report.json --format html
260+
python3 ../../scripts/generate_review_report.py ${REPORT_DIR:-.}/report.json --format pdf
259261
```
260262

261-
For interactive triage, use the `claudius:triage-findings` skill with the report.json path.
263+
For interactive triage, use the `claudius:triage-findings` skill with the `${REPORT_DIR:-.}/report.json` path.
264+
265+
## CI Log Retrieval
266+
267+
When fetching GitHub Actions job logs via MCP `get_job_logs`, always set `return_content: false` to get a download URL instead of dumping ~12k tokens into context. Download the log to `${TMPDIR}/job-log.txt`, then use Grep or Read to search it.
262268

263269
## Anti-Patterns (Review-Specific)
264270

0 commit comments

Comments
 (0)