From e95fb41f458d878a03858df8d969045330fd8130 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 11:49:32 +0000 Subject: [PATCH 1/2] chore(pre-commit): drop the dead A2ML and K9 hooks, pin the rest to commits 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: # frozen: `), 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 Claude-Session: https://claude.ai/code/session_01J4QvDgzT72Tq2HTJmikyNg --- .pre-commit-config.yaml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 29d0fefa2..eaff46408 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,11 +2,18 @@ # Pre-commit hooks for hyperpolymath RSR repos. # Install: pip install pre-commit && pre-commit install # Run manually: pre-commit run --all-files +# +# Every hook repo is pinned to a commit (`# frozen: `), as the estate's +# SHA-pinning rule asks. RSR 1.2.2 ("git-hooks") still names this file; moving +# to native `.githooks/` waits for the RSR criteria's deed form (A7 section 10, +# owner ruling 2026-11-24). The A2ML hook is gone (A2ML is retired), and the K9 +# hook repo, `hyperpolymath/k9-pre-commit`, could not be fetched, which broke +# every pre-commit.ci build; K9 contracts are validated in CI instead. repos: # --- Standard hooks --- - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -18,35 +25,21 @@ repos: - id: check-added-large-files args: ['--maxkb=1024'] - # --- A2ML manifest validation --- - - repo: https://github.com/hyperpolymath/a2ml-pre-commit - rev: main - hooks: - - id: validate-a2ml - name: Validate A2ML manifests - - # --- K9 contract validation --- - - repo: https://github.com/hyperpolymath/k9-pre-commit - rev: main - hooks: - - id: validate-k9 - name: Validate K9 contracts - # --- Shell linting --- - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.10.0.1 + rev: a23f6b85d0fdd5bb9d564e2579e678033debbdff # frozen: v0.10.0.1 hooks: - id: shellcheck # --- EditorConfig --- - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 3.2.1 + rev: 3bea62898235acc3f05c1d9c33023345f6cd3c6f # frozen: 3.2.1 hooks: - id: editorconfig-checker exclude: '(\.git|node_modules|target|_build|deps|\.deno|external_corpora|\.lake)/' # --- Secret detection --- - repo: https://github.com/gitleaks/gitleaks - rev: v8.24.3 + rev: 107a41827bb6698dbbff756b2300537774a1d84c # frozen: v8.24.3 hooks: - id: gitleaks From 70761a9f44582f9218ed69440d23c426be0a4620 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 10:40:37 +0000 Subject: [PATCH 2/2] fix(deps): port #1225, url 2.5.9 for RUSTSEC-2026-0592 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 Claude-Session: https://claude.ai/code/session_01J4QvDgzT72Tq2HTJmikyNg (cherry picked from commit 5c6cb7b5505e94aac0831bb17cb130556c33b31f) --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 30d41a9fb..d8c0f251a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1240,9 +1240,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -4382,9 +4382,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna",