Repository navigation
Description
What
governance / Language / package anti-pattern policy job is failing on main (verified 2026-06-01):
```
❌ ReScript files detected - use AffineScript instead
'# hypatia:ignore cicd_rules/banned_language_file' pragma if intentional)
```
Source: estate language policy 2026-05-25 banned ReScript estate-wide in favour of AffineScript.
Impact
- All PRs land in BLOCKED state requiring `--admin` to merge. Today (2026-06-01) PRs test(quandle): KT-2 ext exact-value fixtures (Alexander + Conway) #41 (KT-2 ext exact-value fixtures) + feat(db-3): Phase A — 3 new indexes + strategy doc #42 (DB-3 Phase A indexes) were admin-merged for this reason.
- Auto-merge effectively non-functional.
Where the ReScript is
`frontend/src/` per `.claude/CLAUDE.md` — quandledb's UI shell.
Options
A. Migrate frontend/src → AffineScript (clean, estate-aligned; tracked separately under standards#252 estate-wide TS/ReScript→AffineScript campaign).
B. `.hypatia-ignore` pragma for `frontend/src/.res`** (escape hatch; keeps governance green until A lands).
C. Hand-port a minimal AffineScript shell that boots the same JSON API (smaller scope than full migration; aligned with estate STEP 8 first Mode-A batch pattern — see panll#72 / affinescript#505).
Out-of-scope today
The current krl/quandledb/tangle audit explicitly excludes estate-wide ReScript migration. This issue records the debt so that the next maintenance pass can take it.
Acceptance
Either `.hypatia-ignore` covers `frontend/`, or the ReScript files are gone and replaced by AffineScript equivalents, and the governance check is green on `main` for two consecutive pushes.
See also
- standards#252 (estate ReScript→AffineScript umbrella)
- panll#72 (Mode-A pattern: pure modules port first; user-shell defers)
- affinescript#508 (AS `pub` gap in user-modules ESM codegen — blocks Mode-B for now)
Activity
hyperpolymath commentedon Jun 1, 2026
Status update — AffineScript stdlib codegen has landed (2026-06-01) 📌
Surfacing the AS-side baseline shift for the parking context here:
\uXXXX/\u{X}Unicode escapes in Deno-ESM (unblocks any source with emoji/CJK/accented chars).What now works that didn't before: stdlib externs (Sqlite, Deno, json) lower to runnable Deno-ESM via
lib/codegen_deno.ml; the lowering pattern (declare instdlib/*.affine→ wire indeno_builtinstable + prelude → smoke-test intests/codegen-deno/*) is repeatable and tested.What is NOT yet resolved:
pub extern fnin app code is not yet wired.Action for this ticket: No new sweep being kicked off here from this status post — surfacing so anyone landing here can see the current AS baseline. Re-evaluate when user-module codegen + the named stdlib primitives land.
🤖 Filed as part of a cross-estate AS-status sweep on 2026-06-01.
hyperpolymath commentedon Jun 11, 2026
Re-triage: the cited Mode-B blocker affinescript#508 (pub gap in user-module ESM codegen) is CLOSED (verified 2026-06-11). Mode-B may be viable now; see hyperpolymath/affinescript#563 for current upstream state.
hyperpolymath commentedon Jul 21, 2026
Correction while triaging: this issue describes the frontend as ReScript, but the tree has no
.resfiles — the frontend is a single AffineScript TEA program (frontend/src/ui/tea/quandle_gui.affine, checked viadeno task check→affinescript check). Whatever governance policy fires here is pattern-matching on the wrong ecosystem; the fix should be evaluated against AffineScript, not ReScript.🤖 Generated with Claude Code
test: drop R2 c5 @test_broken marker (after KnotTheory.jl#43) (#77)
fix: Julia 1.12 CI floor ([sources] needs Pkg 1.11+); idempotent cano…
hyperpolymath commentedon Aug 3, 2026
Correction: the frontend is AffineScript, not ReScript
Measured on
main: the only frontend source file isplus
frontend/deno.json. There are no.res/.resifiles anywhere in the tree, and.claude/CLAUDE.mddocuments the frontend as "an AffineScript TEA program (Model/Msg/init/update/view/subs)".So the issue title/body describing a "ReScript frontend" is stale — it predates the AffineScript migration. The CHANGELOG's pre-absorption history still mentions
Api.res, which is presumably where the label came from.This matters for the governance gate the issue is about: a package anti-pattern policy keyed on ReScript will never match, so whatever it is currently reporting is not measuring the real frontend. Worth re-checking what the gate actually inspects before treating it as satisfied.