Skip to content

ci: bump ai-review-prompts pin to 3f2300a3 (week-of-06-01 calibration) #1266

ci: bump ai-review-prompts pin to 3f2300a3 (week-of-06-01 calibration)

ci: bump ai-review-prompts pin to 3f2300a3 (week-of-06-01 calibration) #1266

Workflow file for this run

name: Claude PR Review
# Thin caller of the reusable in HarperFast/ai-review-prompts. The single
# `uses:` ref pin below controls everything that moves together — workflow
# logic, layer files, bash scripts, auth-gate behavior. Bumping the pin
# is the entire upgrade motion.
#
# Pre-requisites (org-level secrets, configured once on HarperFast):
# - HARPERFAST_AI_CLIENT_ID (the App's Client ID, like Iv23li…)
# - HARPERFAST_AI_APP_PRIVATE_KEY (.pem file contents)
#
# Plus the per-repo / inherited:
# - ANTHROPIC_API_KEY (required)
# - AI_REVIEW_LOG_TOKEN (optional — if set, threads each run
# into a per-PR issue in HarperFast/ai-review-log)
on:
pull_request:
# `labeled` admits the `claude-review` label gesture for
# bot-authored PRs (renovate, dependabot). See ai-review-prompts#38.
types: [opened, synchronize, reopened, labeled]
concurrency:
group: claude-review-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
review:
# Always-on toggle — see ai-review-prompts USAGE.md "Reviewers & the
# always-on toggle". CLAUDE_ALWAYS_ON=true (repo/org variable) → auto-
# review trusted-author PRs; unset → opt-in via the claude-review
# label. The reusable's authorize job still owns WHO is admitted.
# Note: the `claude-review` label name is matched there too —
# `_claude-review.yml`'s authorize `if:`, not in this caller.
if: ${{ vars.CLAUDE_ALWAYS_ON == 'true' || github.event.action == 'labeled' }}
uses: HarperFast/ai-review-prompts/.github/workflows/_claude-review.yml@3f2300a39910a0983eb74967dedeebd8c3c98adc # main 2026-06-08 (post #57 — week-of-06-01 calibration: severity-discipline non-blocker bullets, async-commit-ordering check, non-critical-work-on-critical-path guard)
with:
# Same SHA as the `uses:` ref above. The reusable uses this to
# check out HarperFast/ai-review-prompts (layer files + bash
# scripts) at the same ref as the workflow logic itself — keeps
# the upgrade motion atomic.
#
# The duplication is unavoidable: reusable workflows can't
# introspect their own ref (`github.workflow_ref` resolves to the
# CALLER's ref in `workflow_call` context), and `uses: …@<ref>`
# is parsed literally so we can't interpolate a variable.
ai-review-prompts-ref: 2be0f702b114e39b90eed90962922ef64df58482
review-layers: |
universal
harper/common
harper/v5
repo-specific-checks: |
## Repo-specific checks (Harper core)
This repo IS Harper core itself — "defer to Harper docs"
guidance from the layers applies to PLUGIN / APP docs,
not to docs within this repo (this is where the Harper docs'
behavior is defined).
On top of the layered scope, these are things specific to this
repo that the shared layers don't cover:
- **Linter is oxlint, not eslint.** `npm run lint` runs oxlint.
Advice in layers that references ESLint doesn't apply here.
- **Build tolerance (`tsc || true`)** is NOT used here —
Harper core's build should pass cleanly. Flag type errors
as real findings.
- **`dependencies.md`** documents all npm packages. New
runtime dependencies require an entry there; flag PRs that
add a dep without updating the file.
- **TypeStrip compatibility** — Harper core uses
`erasableSyntaxOnly`. Flag TypeScript constructs that would
break typestrip (non-type-only imports of types, parameter
property initialization, etc.).
- **RocksDB is primary storage** (LMDB still supported via
`HARPER_STORAGE_ENGINE=lmdb`). Tests should exercise the
primary path; flag PRs that test only the fallback.
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
AI_REVIEW_LOG_TOKEN: ${{ secrets.AI_REVIEW_LOG_TOKEN }}
HARPERFAST_AI_CLIENT_ID: ${{ secrets.HARPERFAST_AI_CLIENT_ID }}
HARPERFAST_AI_APP_PRIVATE_KEY: ${{ secrets.HARPERFAST_AI_APP_PRIVATE_KEY }}