From 2a665b0a4611cb432e701ef9dc3d609f21d8cf24 Mon Sep 17 00:00:00 2001 From: Michael Duncan McArthur Date: Mon, 19 Oct 2026 21:34:56 -0400 Subject: [PATCH] Add the Claude reviewer Calls gorfednet/.github's shared claude-review workflow (templates/claude-review.yml): it reviews on open, on leaving draft and on a "claude review" comment, and runs where HEAVY_RUNS_ON says. REVIEW.md holds this repository's house rules for it. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/claude-review.yml | 27 +++++++++++++++++++++++++++ REVIEW.md | 26 ++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/workflows/claude-review.yml create mode 100644 REVIEW.md diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml new file mode 100644 index 0000000..34d1bcb --- /dev/null +++ b/.github/workflows/claude-review.yml @@ -0,0 +1,27 @@ +# Pull request review by Claude: the only reviewer (Cursor Bugbot was retired on 2026-10-16). +# +# The review itself is gorfednet/.github's shared claude-review.yml. It runs when a pull request +# opens or leaves draft, and again on a "claude review" comment. Merge gate: +# node /scripts/review-status.mjs --pr --repo gorfednet/ +# House rules for the reviewer: REVIEW.md at the repository root. +name: claude-review + +on: + pull_request: + types: [opened, ready_for_review] + issue_comment: + types: [created] + +permissions: + contents: read + pull-requests: write + issues: write + id-token: write + +jobs: + review: + uses: gorfednet/.github/.github/workflows/claude-review.yml@main + with: + runs-on: ${{ vars.HEAVY_RUNS_ON }} + secrets: + CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} diff --git a/REVIEW.md b/REVIEW.md new file mode 100644 index 0000000..84df29d --- /dev/null +++ b/REVIEW.md @@ -0,0 +1,26 @@ +# Pull request review (ACID2REAPER) + +Read by the Claude reviewer (`.github/workflows/claude-review.yml`, which calls gorfednet/.github's shared workflow) on every non-draft pull request and on a `claude review` comment. The shared workflow says what to report in general; this file holds what is particular to this repository. + +## What this repository is + +A Python tool (CLI and Tkinter GUI) that converts Sonic Foundry, Sony and MAGIX ACID projects (`.acd`, `.acd-bak`, `.acd-zip`) to Cockos REAPER `.rpp` projects. It is in beta (0.2.x). Releases are built by pushing a `v*.*.*` tag, which runs `release.yml` and attaches an sdist and wheel to a GitHub Release; PyInstaller recipes in `packaging/` build the desktop apps. + +## House rules to hold the change to + +- A change that alters converter output on purpose regenerates the golden projects with `python scripts/update_goldens.py`, and the diff is read. CI runs `update_goldens.py --check`, so an unreviewed golden is a finding. +- A user-visible change adds a `[Unreleased]` note or a `## [x.y.z]` section to `CHANGELOG.md`. The `pyproject.toml` version, `src/acid2reaper/_version.py` and the changelog heading must agree (`scripts/verify_changelog.py`). +- Tags use a `v` prefix and semver, with a pre-release label such as `-beta.1` when not for production (`RELEASING.md`). +- Chunk roles and offsets are catalogued in `src/acid2reaper/data/acd_signatures.json`. A decoded field changes that catalogue, a fixture and a test together. Undecoded chunks are not invented into output. +- Input safety limits stay: file and ZIP size caps, path validation, and sanitized paths in exported RPP (`tests/test_security.py`). A change must not loosen them. +- The default test suite needs only the repository. The corpus, REAPER oracle and network suites stay opt-in (`ACID2REAPER_CORPUS_DIR`, `ACID2REAPER_REAPER_ORACLE`, `ACID2REAPER_ALLOW_NETWORK`). The corpus manifest holds structural fingerprints only: no audio, file names or project bytes. +- Coverage stays at or above the `--cov-fail-under=75` in `ci.yml`; `ruff check src tests scripts` passes. Python 3.9 stays supported. +- No secrets, SSH keys, large binaries, or `dist/` and `build/` output in the repository. +- Pull requests are small and focused, with a clear what and why. + +## Where the rules live + +- `README.md`, `CONTRIBUTING.md`, `RELEASING.md`, `SECURITY.md`, `CHANGELOG.md`, `packaging/BUILD.md` +- `pyproject.toml` (ruff, pytest, coverage settings) +- `.github/workflows/ci.yml`, `.github/workflows/release.yml` +- `scripts/verify_changelog.py`, `scripts/update_goldens.py`