From 29542662194a0d9af0634eb522e062bebfb9ceb6 Mon Sep 17 00:00:00 2001 From: deathpie <10750179+deathpie@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:38:44 -0500 Subject: [PATCH] fix: count the check recipe and recipe aliases as hook recipes C5.7 flagged the C7.5 aggregate `check` recipe and display names such as `Format` and `Types` as non-hook checks. The audit now accepts every C7.5/C7.10 hook recipe, `check`, and those aliases. Co-Authored-By: Claude Opus 5.5 --- scripts/fleet-audit.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/fleet-audit.ts b/scripts/fleet-audit.ts index 2e2a299..3a1d002 100644 --- a/scripts/fleet-audit.ts +++ b/scripts/fleet-audit.ts @@ -138,13 +138,19 @@ function jobPart(context: string): string { return name.includes(" / ") ? name.slice(name.lastIndexOf(" / ") + 3) : name; } -const hookRecipes = ["fmt", "fmt-check", "lint", "typecheck", "test", "secrets", "privacy", "hooks"]; +// Hook recipes from C7.5 and C7.10, plus `check` (C7.5: the aggregate of the +// recipes CI requires) and common display aliases (`Format`, `Types`). +const hookRecipes = [ + "fmt", "fmt-check", "format", "lint", "typecheck", "types", "test", "secrets", "privacy", "hooks", + "check", "workflows", "shellcheck", "agent-files", "forbidden-files", +]; +const hookRecipePattern = new RegExp(`^(${hookRecipes.join("|")})[\\s(]`); function isHookRecipe(context: string): boolean { const name = jobPart(context).toLowerCase(); if (hookRecipes.includes(name)) return true; // A matrix or shard suffix keeps the recipe: `test (unit)`, `fmt fast`. - return /^(fmt|fmt-check|lint|typecheck|test|secrets|privacy|hooks)[\s(]/.test(name); + return hookRecipePattern.test(name); } // The owner standard's `## CI-only required checks` section names the required