Skip to content

docs(AGENTS): require agents to install + run prek before opening a PR - #210

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:agents-prek-mandatory
May 18, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:agents-prek-mandatory

Conversation

@potiuk

@potiuk potiuk commented May 18, 2026

Copy link
Copy Markdown
Member

Summary

  • The repo's CI prek job recently caught a markdown-lint regression
    that a local prek run would have surfaced before the PR was opened
    (see correct license-header criteria and add eval suite #205).
  • Tighten the AGENTS.md guidance: agents MUST install prek if it is
    not already present in the clone and MUST run it locally as a
    pre-flight gate before opening or updating any PR — CI is a
    backstop, not a substitute.

Test plan

  • prek run --files AGENTS.md — all hooks pass locally.

Gen-AI disclosure

This change was drafted with the help of Claude Code (Opus 4.7) as
documented in AGENTS.md.

Generated-by: Claude Code (Opus 4.7)

The repository already mandates `prek install` and per-commit hook
verification ("Verify before every commit (agents and humans
alike)"). That covers most cases, but the commit hook only
inspects files in the *current* commit — issues in files
committed earlier on the branch, or untouched files that pick up
a new lint rule when CI updates, slip past it. A whole-tree
`prek run --all-files` run mirrors what CI executes and surfaces
those regressions locally before the PR round-trip.

Generated-by: Claude Code (Opus 4.7)
@potiuk
potiuk force-pushed the agents-prek-mandatory branch from 21a0713 to afaae03 Compare May 18, 2026 10:02
@potiuk
potiuk merged commit 0e23d9a into apache:main May 18, 2026
13 checks passed
@potiuk potiuk added the family:docs Docs, MISSION.md, READMEs label Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:docs Docs, MISSION.md, READMEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants