Skip to content

Commit fdfbc30

Browse files
authored
Merge pull request #27 from stranma/fix/remove-ci-review
fix: Remove redundant CI-based Claude Code review workflow
2 parents 04b6fee + cc861b9 commit fdfbc30

6 files changed

Lines changed: 14 additions & 60 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ actual scope at completion based on workspace signals.
163163

164164
- **5 workflow agents** -- code quality, test coverage, PR writing, code review, docs updates
165165
- **3 security hooks** -- block destructive commands, scan for leaked secrets, catch Unicode injection
166-
- **CI/CD** -- GitHub Actions for lint + test + typecheck + publish + AI code review
166+
- **CI/CD** -- GitHub Actions for lint + test + typecheck + publish
167167
- **Tool stack** -- [uv](https://docs.astral.sh/uv/) workspaces, [ruff](https://docs.astral.sh/ruff/), [pyright](https://github.com/microsoft/pyright), [pytest](https://pytest.org/), [hatchling](https://hatch.pypa.io/)
168168

169169
### Optional specialists

docs/ARCHITECTURE_GUIDE.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ These run automatically as part of `/done` for Standard and Project scope tasks.
360360

361361
**What.** Reads the diff and applies the review rules (architecture, code-quality, performance, test). Reports findings with severity levels. Read-only (`permissionMode: dontAsk`, `memory: project` for CLAUDE.md context).
362362

363-
**Remove.** No pre-PR code review. The GitHub Actions `claude-code-review.yml` workflow still runs an AI review on the PR itself, so review is delayed but not eliminated.
363+
**Remove.** No pre-PR code review. Linters and type checkers still catch mechanical issues, but logic errors, security concerns, and design problems would only be caught during manual review.
364364

365365
</details>
366366

@@ -614,17 +614,6 @@ All workflows are in `.github/workflows/`. They use `{{base_branch}}` placeholde
614614

615615
</details>
616616

617-
<details>
618-
<summary>claude-code-review.yml -- AI Code Review</summary>
619-
620-
**Why.** Automated code review on PRs using Claude. Catches issues that linters cannot: logic errors, security concerns, design problems.
621-
622-
**What.** Triggers on PR open/sync/ready. Uses `anthropics/claude-code-action@v1` with Sonnet. Reviews for correctness, security, performance, readability, and testing. Has read-only tools (Read, Glob, Grep -- no Bash). Posts findings as PR comments. 10-minute timeout.
623-
624-
**Remove.** No AI review on PRs. The local `code-reviewer` agent (run by `/done`) still provides pre-PR review.
625-
626-
</details>
627-
628617
<details>
629618
<summary>template-integration.yml -- Template Validation</summary>
630619

docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- 3 slash commands (`/cove`, `/cove-isolated`, `/security-audit`) provide chain-of-verification for accuracy and a 6-phase security posture scan with A-F grading
2525
- 3 new specialized agents: `security-auditor` (OWASP-based vulnerability analysis, read-only), `refactoring-specialist` (SOLID/code smell detection, read-only), `output-evaluator` (LLM-as-Judge quality scoring for automated pipelines)
2626
- 4 review rules in `.claude/rules/` auto-loaded as project context -- cover architecture, code quality, performance, and test quality concerns that linters cannot catch
27-
- AI-powered PR review via GitHub Actions (`claude-code-review.yml`) using `anthropics/claude-code-action@v1` -- automatically reviews PRs with read-only tools on open/sync/ready_for_review
2827
- Local config template (`.claude/settings.local.json.example`) for developer-specific hook overrides, extra permissions, and MCP server configuration
2928
- Tests for hooks (test_hooks.py), commands (test_commands.py), agents (test_agents.py), and rules (test_rules.py) validating existence, structure, frontmatter, and behavioral contracts
3029
- New `docs/DEVELOPMENT_PROCESS.md` contains the full Q/S/P development workflow, agent reference, failure protocol, changelog format, and PCC shorthand -- accessible on demand instead of always loaded into context
@@ -57,6 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5756

5857
### Removed
5958

59+
- CI-based AI code review workflow (`claude-code-review.yml`) -- the local `code-reviewer` agent (run by `/done` at step S.6.5) already provides equivalent pre-PR review coverage, making the CI workflow redundant and removing the need to manage an `ANTHROPIC_API_KEY` secret in GitHub
6060
- `/catchup` command -- its context restoration role overlaps with `/sync`, which already covers pre-flight workspace state
6161
- `/ship` slash command -- its 3-tier validation checklist (Blockers, High Priority, Recommended) is preserved in `/done` Phase 2
6262
- Shell Command Style and Allowed Operations sections from CLAUDE.md -- absolute path preferences and read-only command lists are now handled by settings.json permission rules rather than prose instructions

docs/DECISIONS.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ When a decision is superseded or obsolete, delete it (git history preserves the
7777
- output-evaluator uses haiku + dontAsk -- designed for automated pipeline integration, scoring is formulaic
7878
- Review rules have no `paths:` frontmatter (apply globally) and stay under 80 lines -- loaded into every context window
7979
- CLAUDE.md kept compact per ETH Zurich paper decision; detailed hooks/commands/rules tables added to DEVELOPMENT_PROCESS.md instead
80-
- CI review workflow uses claude-sonnet-4-6 with read-only tools (Read, Glob, Grep) -- security principle of least privilege
80+
- ~~CI review workflow~~ removed -- see 2026-03-13 decision below
8181

8282
## 2026-03-02: QSP Enforcement and Pre-flight Sync
8383

@@ -172,3 +172,12 @@ When a decision is superseded or obsolete, delete it (git history preserves the
172172
| GitHub API via curl (`curl -H "Authorization: ..." https://api.github.com/.../merge`) | Blocking curl to github.com is fragile and breaks legitimate web fetching. The hook already blocks commands containing `GH_TOKEN=` as a literal argument. | Use fine-grained PATs with minimal scopes. CLAUDE.md instructs Claude to use `gh` CLI, not raw API calls. Token scoping is the real control. |
173173
| Docker not present but deny rules exist | Docker is not installed in the current template container. Deny rules exist as defense-in-depth for users who add Docker-in-Docker later. | If Docker-in-Docker is added, the deny list should be revisited (add `-v` and `--mount` volume escape patterns). |
174174
| Whitelisted domains as exfil channels | `github.com` is whitelisted for git/gh operations. A compromised agent could theoretically exfiltrate via gist creation or issue comments. | Token scoping (no gist/issue create permission) + GH mutation deny rules in Tier 2. Tier 3 accepts this risk explicitly. |
175+
176+
## 2026-03-13: Remove CI-Based Claude Code Review
177+
178+
**Request**: Remove the `claude-code-review.yml` GitHub Actions workflow. The local `code-reviewer` agent (run by `/done` at step S.6.5) already provides equivalent pre-PR review coverage, making the CI workflow redundant.
179+
180+
**Decisions**:
181+
- Delete `claude-code-review.yml` entirely -- the local code-reviewer agent provides the same review before PR creation, and the CI workflow required managing an `ANTHROPIC_API_KEY` secret in GitHub
182+
- Keep `dangerous-actions-blocker.sh` `ANTHROPIC_API_KEY=` pattern unchanged -- it blocks secrets in commands generally, not CI-specific
183+
- Keep `docs/IMPLEMENTATION_PLAN.md` unchanged -- historical record of completed work

docs/community/feedback/openai.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ See [Devcontainer Permissions](docs/DEVCONTAINER_PERMISSIONS.md) for the full de
121121
- **CLAUDE.md** -- compact agent directives (~40 lines) with /sync, /design, /done workflow
122122
- **5 workflow agents** -- code quality, test coverage, PR writing, code review, docs updates
123123
- **3 security hooks** -- block destructive commands, scan for leaked secrets, catch Unicode injection
124-
- **CI/CD** -- GitHub Actions for lint + test + typecheck + publish + AI code review
124+
- **CI/CD** -- GitHub Actions for lint + test + typecheck + publish
125125
- **Tool stack** -- [uv](https://docs.astral.sh/uv/) workspaces, [ruff](https://docs.astral.sh/ruff/), [pyright](https://github.com/microsoft/pyright), [pytest](https://pytest.org/), [hatchling](https://hatch.pypa.io/)
126126

127127
### Optional specialists

0 commit comments

Comments
 (0)