From c2fa2811f8f71cf1bdaf5bb3780334b961578c6b Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:44:43 +0000 Subject: [PATCH 1/5] fix: pass assault options as one shell command --- .machine_readable/scripts/maintenance/maint-assault.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.machine_readable/scripts/maintenance/maint-assault.sh b/.machine_readable/scripts/maintenance/maint-assault.sh index f170cab..0d76c5c 100644 --- a/.machine_readable/scripts/maintenance/maint-assault.sh +++ b/.machine_readable/scripts/maintenance/maint-assault.sh @@ -31,10 +31,10 @@ fi echo "Initiating full assault on $BINARY_NAME..." mkdir -p "$(dirname "$REPORT_PATH")" -"$PA_BIN" assault "target/release/$BINARY_NAME" - --source . - --intensity medium - --duration 10 +"$PA_BIN" assault "target/release/$BINARY_NAME" \ + --source . \ + --intensity medium \ + --duration 10 \ --output "$REPORT_PATH" echo "" From 9d21134d81ac2281cff625ae4b388f552f2a5ad1 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:44:46 +0000 Subject: [PATCH 2/5] fix: identify Bash shell for direnv ShellCheck --- .envrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.envrc b/.envrc index aef1a86..72c9bb4 100644 --- a/.envrc +++ b/.envrc @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MPL-2.0 +# shellcheck shell=bash # Activate development environment # Install direnv: https://direnv.net/ From 59b33d6fcb0ec5503c8bba26943cd482f4d59835 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:44:48 +0000 Subject: [PATCH 3/5] ci: exclude spec-valid devcontainer JSONC from strict JSON checker --- .pre-commit-config.yaml | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf6892f..c6a2916 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,58 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml + # devcontainer.json is JSONC by specification; strict JSON lint is inapplicable. + # JSONC-specific validation remains a separate follow-up. - id: check-json + exclude: '^\\.devcontainer/devcontainer\\.json - id: check-toml + - id: check-merge-conflict + - id: detect-private-key + - 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 + hooks: + - id: shellcheck + + # --- EditorConfig --- + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python + rev: 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 + hooks: + - id: gitleaks + + # --- Arrival pack drift: CLAUDE.md must stay in sync with a2ml --- + - repo: local + hooks: + - id: validate-claude-md + name: CLAUDE.md arrival pack in sync with a2ml + entry: bash .machine_readable/arrival-pack/verify.sh + language: system + pass_filenames: false + files: '^(\.machine_readable/descriptiles/.*|CLAUDE\.md)$' + - id: check-toml - id: check-merge-conflict - id: detect-private-key From 90b1b2162d7224809babae84f63eed889371962c Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:46:25 +0000 Subject: [PATCH 4/5] fix: repair JSONC pre-commit exclusion YAML --- .pre-commit-config.yaml | 54 +++-------------------------------------- 1 file changed, 3 insertions(+), 51 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6a2916..cbc33bc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,58 +11,10 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - # devcontainer.json is JSONC by specification; strict JSON lint is inapplicable. - # JSONC-specific validation remains a separate follow-up. + # devcontainer.json is JSONC by specification, not strict JSON. + # Separate JSONC-aware validation is required for this path. - id: check-json - exclude: '^\\.devcontainer/devcontainer\\.json - id: check-toml - - id: check-merge-conflict - - id: detect-private-key - - 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 - hooks: - - id: shellcheck - - # --- EditorConfig --- - - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 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 - hooks: - - id: gitleaks - - # --- Arrival pack drift: CLAUDE.md must stay in sync with a2ml --- - - repo: local - hooks: - - id: validate-claude-md - name: CLAUDE.md arrival pack in sync with a2ml - entry: bash .machine_readable/arrival-pack/verify.sh - language: system - pass_filenames: false - files: '^(\.machine_readable/descriptiles/.*|CLAUDE\.md)$' - + exclude: '^\.devcontainer/devcontainer\.json$' - id: check-toml - id: check-merge-conflict - id: detect-private-key From 2948bed7451447d3d72c15d3b5e06fc34bf00e7b Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 01:35:29 +0000 Subject: [PATCH 5/5] fix(pre-commit): use checked-in A2ML and K9 validators --- .pre-commit-config.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cbc33bc..a7e9a82 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,19 +21,21 @@ repos: - id: check-added-large-files args: ['--maxkb=1024'] - # --- A2ML manifest validation --- - - repo: https://github.com/hyperpolymath/a2ml-pre-commit - rev: main + # Use the checked-in validators also run by the Dogfood Gate. + - repo: local hooks: - id: validate-a2ml name: Validate A2ML manifests - - # --- K9 contract validation --- - - repo: https://github.com/hyperpolymath/k9-pre-commit - rev: main - hooks: + entry: bash .githooks/validate-a2ml.sh + language: system + pass_filenames: false + files: '\.a2ml$' - id: validate-k9 name: Validate K9 contracts + entry: bash .githooks/validate-k9.sh + language: system + pass_filenames: false + files: '\.k9(\.ncl)?$' # --- Shell linting --- - repo: https://github.com/shellcheck-py/shellcheck-py