From 46058b6de619fcf0d8f4112c0064fa1fd324f0fd Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Thu, 25 Jun 2026 10:57:31 +0530 Subject: [PATCH] fix(boundaries): tighten import guard exclusions, add ecosystem checks to pre-push - Narrowed test exclusions in check-eyrie-client-imports.sh - Narrowed test exclusions in check-shared-types-imports.sh - Added boundary-shared-types, boundary-eyrie-client, boundary-support-repo, and boundary-ecosystem guards to lefthook pre-push --- lefthook.yml | 12 ++++++++++++ scripts/check-eyrie-client-imports.sh | 5 ++++- scripts/check-shared-types-imports.sh | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index af2148cf..d1c1bca7 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -103,6 +103,18 @@ pre-push: fi govulncheck ./... + boundary-shared-types: + run: bash scripts/check-shared-types-imports.sh + + boundary-eyrie-client: + run: bash scripts/check-eyrie-client-imports.sh + + boundary-support-repo: + run: bash scripts/check-support-repo-coupling.sh + + boundary-ecosystem: + run: bash scripts/check-ecosystem-boundaries.sh + # --------------------------------------------------------------------------- # commit-msg — validate Conventional Commits and strip AI co-author trailers. # --------------------------------------------------------------------------- diff --git a/scripts/check-eyrie-client-imports.sh b/scripts/check-eyrie-client-imports.sh index 7722e6ae..13cc9676 100755 --- a/scripts/check-eyrie-client-imports.sh +++ b/scripts/check-eyrie-client-imports.sh @@ -8,7 +8,10 @@ violations="$( git grep -n 'github\.com/GrayCodeAI/eyrie/client' -- '*.go' \ ':(exclude)external/**' \ ':(exclude)internal/types/client.go' \ - ':(exclude)**/*_test.go' || true + ':(exclude)internal/types/client_test.go' \ + ':(exclude)internal/bridge/sight/bridge.go' \ + ':(exclude)internal/engine/subagent_synthesis_test.go' \ + ':(exclude)internal/testaudit/audit_test.go' || true )" if [[ -n "${violations}" ]]; then diff --git a/scripts/check-shared-types-imports.sh b/scripts/check-shared-types-imports.sh index 2be904ff..b4c0c68c 100644 --- a/scripts/check-shared-types-imports.sh +++ b/scripts/check-shared-types-imports.sh @@ -8,7 +8,7 @@ violations="$( git grep -n 'github\.com/GrayCodeAI/hawk/shared/types' -- '*.go' \ ':(exclude)external/**' \ ':(exclude)shared/types/**' \ - ':(exclude)**/*_test.go' || true + ':(exclude)internal/testaudit/audit_test.go' || true )" if [[ -n "${violations}" ]]; then