Skip to content

Commit 859f7fe

Browse files
hyperpolymathclaude
andcommitted
fix(governance): rename CLAUDE.md TypeScript exemptions heading to match workflow regex
The governance-reusable.yml workflow scans .claude/CLAUDE.md for a section heading matching the regex `TypeScript [Ee]xemptions` to find the exemption table. The heading was `### TypeScript / JavaScript Exemptions (Approved)`, which does not match because "/ JavaScript " sits between the two words. Consequence: the parser fell through to the next mention of the phrase ("the TypeScript exemptions above") in the Runtime Exemptions section's prose, then parsed the Runtime Exemptions table (2 entries: `mod.js`, `editors/vscode/test/**/*.js`) instead of the TypeScript Exemptions table (3 entries including `affinescript-deno-test/*.ts`). Result: `affinescript-deno-test/{cli,example/smoke_driver,lib/{compile,discover,runner}}.ts` were reported as bad on every PR, blocking the `governance / Language / package anti-pattern policy` check estate-wide. Rename to `### TypeScript Exemptions (Approved)`. JS exemptions already live in their own `### Runtime Exemptions (Approved)` section just below. Verified locally: parser now picks up 3 exemptions; 0 bad .ts files reported. Refs gitbot-fleet#148 (unblocks affinescript #370/#371/#372/#373 et al) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4b83c1a commit 859f7fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Both are FOSS with independent governance (no Big Tech).
8383
7. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus.
8484
8. **MPL-1.0 / MPL-1.0-or-later are non-conforming** - Rewrite to MPL-2.0 in SPDX headers and LICENSE files when encountered (Hypatia's `validate_license` flags both).
8585

86-
### TypeScript / JavaScript Exemptions (Approved)
86+
### TypeScript Exemptions (Approved)
8787

8888
The "no new TypeScript" / "no new JavaScript" rules have approved exemptions in this repo. These paths are *not* policy violations — they are documented carve-outs because the file format or downstream consumer requires the source language. They are honoured by Hypatia's scanner via path-based exemption + the per-repo CLAUDE.md exemption tables.
8989

0 commit comments

Comments
 (0)