Skip to content

chore(pre-commit): drop the dead A2ML and K9 hooks, pin the rest to commits - #1233

Open
hyperpolymath wants to merge 3 commits into
mainfrom
claude/clever-heisenberg-q9qp32-precommit
Open

hyperpolymath wants to merge 3 commits into
mainfrom
claude/clever-heisenberg-q9qp32-precommit

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

pre-commit.ci reports "error during build" on every open PR: #1195, #1228, #1230, #1231 and #1232. This PR removes the likely cause.

  • The config named two hook repos at the mutable rev: main: hyperpolymath/a2ml-pre-commit and hyperpolymath/k9-pre-commit. Neither can be fetched anonymously; git ls-remote asks for credentials, as it does for a missing or private repo. The public hook repos resolve.
  • A2ML hook: removed, because A2ML is retired.
  • K9 hook: removed. K9 contracts are already validated in CI by the k9-validate job in dogfood-gate.yml.
  • The four remaining hook repos are pinned to the commit their tag resolves to, written as rev: <sha> # frozen: <tag>. Each is the peeled commit that git ls-remote gives for the tag.

Why the file stays

RSR criterion 1.2.2 ("git-hooks", silver tier) names .pre-commit-config.yaml. The owner ruled on 2026-11-24 that moving to native .githooks/ waits for the RSR criteria's deed form (A7 §10). The canon is A2ML, so it is not edited by hand. gitbot-fleet and proof-burrower carry the same file and are left as they are.

Evidence

  • The file parses (yq), and the four repos and revisions read back as intended.
  • mix hypatia.rsr_score . gives 89.74% before and after, and 1.2.2 still passes.
  • Not verified here: a pre-commit.ci build. The pre-commit.ci log host is blocked from this session, and pre-commit is Python tooling, which I did not install. This PR's pre-commit.ci status is the test.

Known gaps, not changed here

Several things the old config listed have no blocking CI gate:

  • ShellCheck
  • trailing whitespace and end-of-file newlines (the standards EditorConfig step is advisory only)
  • merge-conflict markers
  • JSON and TOML syntax

pre-commit.ci never gated them either, because it was erroring.


Generated by Claude Code

…ommits

pre-commit.ci reported "error during build" on every open PR. The config named
two hook repos at the mutable `rev: main`, hyperpolymath/a2ml-pre-commit and
hyperpolymath/k9-pre-commit, and neither can be fetched anonymously
(`git ls-remote` asks for credentials, as for a missing or private repo),
while the public hook repos resolve. A2ML is retired, so its hook goes; K9
contracts are validated in CI (dogfood-gate.yml `k9-validate`).

The four remaining hook repos are pinned to the commit their tag resolves to
(`rev: <sha>  # frozen: <tag>`), per the SHA-pinning rule: the peeled commit
from `git ls-remote` for each tag.

The file stays: RSR criterion 1.2.2 ("git-hooks") names it, and the owner
ruled on 2026-11-24 that the move to native hooks waits for the RSR criteria's
deed form (A7 section 10). `mix hypatia.rsr_score .` is 89.74% before and
after; 1.2.2 still passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDgzT72Tq2HTJmikyNg
@gitnotebooks

gitnotebooks Bot commented Nov 24, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/hypatia/pull/1233

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 766913b4-e301-4876-a428-d00492a6603c
Commits

Reviewing files that changed from the base of the PR and between 7866b0d and d56c87c.

Files selected for processing: 1

  • .pre-commit-config.yaml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 24, 2026 12:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T13:21:18.251608Z d56c87c New commits
🔒 Security Review ❌ Failed 2026-11-27T13:19:30.062102Z
We couldn’t complete this review. Comment @codex security review to try again.
d56c87c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

claude and others added 2 commits November 24, 2026 12:07
Security's cargo audit and cargo deny fail on main and here: url 2.5.8
carries RUSTSEC-2026-0592. Same Cargo.lock as #1225 and as f8332b4 on
#1195 (cargo update -p url --precise 2.5.9); a no-op once #1225 lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDgzT72Tq2HTJmikyNg
(cherry picked from commit 5c6cb7b)
@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants