REA pre-commit notes (unofficial)
pre-commit trees (.pre-commit-config.yaml / repo / rev / hooks pins) record git hook framework identity. In REA 6.7.x, treat selected hook and rev labels as Evidence beside archive/package routes — complementing actionlint / ShellCheck / golangci-lint cousins without inventing APIs. Distinct from rea-actionlint (hook framework ≠ Actions lint) and rea-shellcheck (framework ≠ single shell linter). Preferred free backup from batch121 note — KEEP.
Mental model
- Authorize the pre-commit config tree (+ packaged charts you hold).
- Quote selected identity labels you actually see (never paste secrets/tokens).
- Cousins → actionlint · shellcheck · golangci-lint · ruff.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_pre_commitAPI REA never called.
Minimal path
# authorized pre-commit .pre-commit-config.yaml / hook pins (+ charts you hold)
# quote selected identity labels into case notes (never live secrets)
# cousins → peer lanes above
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_pre_commit .
Compare
| Artifact | Honest posture |
|---|---|
| repo / rev / hooks pins | pre-commit stack identity facts |
| Peer | rea-actionlint |
| Peer | rea-shellcheck |
| Not this | rea-golangci-lint (golangci-lint zoom) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote selected hook ids, repo URLs (public), and rev pins only — enough for most Evidence binders.
- Private hook repo tokens and CI secrets are secrets — record key names only.
- Keep pre-commit stack identity distinct from actionlint / ShellCheck trees in case notes.
- Chart image tag pins are identity Evidence — label them separately from cousin pages.
- Select keys are useful inventory — quote them without inventing REA helpers for live pre-commit runs.
Scope we will not cover
- No inventing
inspect_pre_commit/ automatic runs against foreign repos. - No credential theft from private hook repo tokens or CI secrets.
- No pirate redistribution of proprietary pre-commit trees.
- No crack framing via pre-commit pins.
- No cookbooks that weaken hook policy on foreign accounts.
- No using pre-commit as an unauthorized hook-recon guide against repos you do not own.
Honest limits
RepoRead documents config literacy — how authorized pre-commit trees relate to Evidence — not a full git-hooks course. Prefer upstream pre-commit docs; use rea-actionlint for Actions peers. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-actionlint / rea-shellcheck / rea-golangci-lint / rea-ruff?
rea-actionlint covers actionlint. rea-shellcheck covers ShellCheck. rea-golangci-lint covers golangci-lint. rea-ruff covers Ruff. This page zooms on pre-commit hook framework stack identity — it does not overwrite those pages.
Is there inspect_pre_commit in 6.7.0?
Not assumed. Quote .pre-commit-config.yaml / repo / rev / hooks pins you actually open, then use documented package/archive lanes. Do not invent inspect_pre_commit.
Does REA call pre-commit APIs or steal tokens?
No. Local trees only. Redact private hook repo tokens and CI secrets; do not treat REA as a pre-commit runner. No credential theft.
How should I label Evidence vs cousin trees?
Label Evidence by the file present. Keep pre-commit stack identity separate from rea-actionlint (hook framework ≠ Actions lint) and rea-shellcheck.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).