Skip to content

Commit 1f2e5e3

Browse files
fix(governance): enumerate banned-language demos in .hypatia-ignore (#44)
## Summary Adds a `.hypatia-ignore` with 9 exemptions for the cross-language demonstration files this repo ships by design (`examples/{java,kotlin,swift,go}/*` + the 3 legacy `.res` files). ## Why absolute-zero is the estate's language-demonstration repo — it ships example files in ~9 banned languages on purpose, to illustrate "what NOT to use." Since standards#168 merged (governance-reusable.yml now covers Java/Kotlin/Swift/Dart/V-lang/ATS2/Makefile in addition to ReScript/Go/Python), every push to `main` has gone red on `governance / Language / package anti-pattern policy`. Latest 3 runs on main: all failure (governance.yml runs 26407681719, 26371098456, 26333708931). ## Files exempted | Language | File | Reason | |---|---|---| | .res | `src/AuditTrail.res` | Legacy ReScript pre-`.affine` migration | | .res | `interpreters/rescript/malbolgeInterpreter.res` | Demo interpreter | | .res | `examples/SafeDOMExample.res` | DOM example | | .go | `examples/go/nop.go` | Cross-lang nop study | | .java | `examples/java/Nop.java` | Cross-lang nop study | | .java | `examples/java/BalancedOps.java` | Cross-lang ops study | | .kt | `examples/kotlin/Nop.kt` | Cross-lang nop study | | .kt | `examples/kotlin/BalancedOps.kt` | Cross-lang ops study | | .swift | `examples/swift/Nop.swift` | Cross-lang nop study | None are imported into the toolchain build. ## Follow-up Once standards#180 (file_pattern glob matching in `in_baseline()`) merges, this whole enumerated list can collapse to a single `examples/**` `file_pattern` entry in `.hypatia-baseline.json`. The `.res` files will migrate to `.affine` separately under the existing 2026-Q3 plan. ## Test plan - [ ] CI: governance/Language-policy step passes (9 exempt entries visible in run log) - [ ] absolute-zero main goes green for the first time since standards#168 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 92d3421 commit 1f2e5e3

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.hypatia-ignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
#
3+
# Estate-policy exemptions for the absolute-zero language-demonstration
4+
# repo. This repo intentionally ships example files in many banned and
5+
# allowed languages — it is the canonical "what NOT to use, here is what
6+
# you'd get" exemplar. Each entry below is a language-demo file under
7+
# `examples/` or a one-off interpreter implementation, not load-bearing
8+
# code.
9+
#
10+
# After standards#180 (file_pattern glob support in in_baseline()) merges,
11+
# this whole file collapses to a single `examples/**` file_pattern entry
12+
# in .hypatia-baseline.json. Tracked in the standards repo as a follow-up.
13+
14+
# ReScript demonstration files (banned 2026-04-30 — kept as historical
15+
# examples until the .res→.affine migration ships).
16+
cicd_rules/banned_language_file:src/AuditTrail.res
17+
cicd_rules/banned_language_file:interpreters/rescript/malbolgeInterpreter.res
18+
cicd_rules/banned_language_file:examples/SafeDOMExample.res
19+
20+
# Banned-language example files used to demonstrate the cross-language
21+
# nop-semantics study. None are imported into the toolchain build.
22+
cicd_rules/banned_language_file:examples/go/nop.go
23+
cicd_rules/banned_language_file:examples/java/Nop.java
24+
cicd_rules/banned_language_file:examples/java/BalancedOps.java
25+
cicd_rules/banned_language_file:examples/kotlin/Nop.kt
26+
cicd_rules/banned_language_file:examples/kotlin/BalancedOps.kt
27+
cicd_rules/banned_language_file:examples/swift/Nop.swift

0 commit comments

Comments
 (0)