Commit c008509
authored
refactor: migrate all 119 ReScript .res to AffineScript .affine (#62)
## Summary
Estate-wide migration of **all 119 `.res` (ReScript, banned 2026-04-30)
→ `.affine` (AffineScript)**, per language policy. This clears the
standing ReScript `antipattern-check` / `Check for Banned Languages`
debt (the pre-existing failure noted on #58/#60).
Faithful semantic rewrites following the repo's established AffineScript
conventions (`module X;`, `pub type`, `fn … -> T { }`, `match`,
`Option<T>`, `extern fn … = "mod" "sym";`, `++`), modelled on existing
hand-ports (e.g. `axel-protocol/src/AxelSts.affine`). Delivered in 15
reviewable per-subproject commits.
### Progress — COMPLETE (119/119)
- [x] 24 × `SafeDOMExample` (canonical dedupe)
- [x] axel-protocol, avow-protocol (src/bindings/scripts/telegram-bot)
- [x] consent-aware-http (+ rhodium satellite mirror)
- [x] all of `lol/` (Lang1000, 5 crawlers, DBP API, OpenCyc, verisimdb,
utils, 4 test suites)
- [x] 0-ai-gatekeeper mcp-repo-guardian (+ identical `lib/ocaml/`
mirror)
- [x] panll-panels (React → `h()` lowering)
- [x] k9-svc + a2ml Deno bindings
- [x] cccp 7-tentacles (Types + 7 agents + RevealSystem)
- [x] a2ml prototype compiler (core/Compat/Json/CLI/runners/WASM)
**Verification:** `find . -name '*.res'` → zero; both CI banned-language
`find` filters return no ReScript. No AffineScript compiler exists in
this environment, so ports are not compile-verified — conventions are
consistent across all files so any needed correction is mechanical. The
`Hypatia` dogfooding check is a pre-existing repo-wide failure unrelated
to this migration.
## Test plan
- [ ] `antipattern-check` / `Check for Banned Languages` ReScript step
passes (no `.res` remain)
- [ ] AffineScript compiler review of the ports once available
(conventions inferred from existing hand-ports)
- [ ] Spot-check round-trip behaviour of A2ml/K9 parser-renderer ports
https://claude.ai/code/session_01GTo7dz32ZgxuHXefv8BGqn234 files changed
Lines changed: 12992 additions & 15375 deletions
File tree
- .github/workflows
- 0-ai-gatekeeper-protocol
- examples
- mcp-repo-guardian
- examples
- lib/ocaml
- src
- repo-guardian-fs/examples
- a2ml
- actions/validate/examples
- bindings
- deno
- examples
- src
- haskell/examples
- rust/examples
- editors/vscode/examples
- examples
- pandoc/examples
- prototype
- rescript/src
- wasm/src
- agentic-a2ml/examples
- anchor-a2ml/examples
- avow-protocol
- examples
- scripts
- src
- bindings
- telegram-bot
- avow-telegram-bot
- examples
- src
- examples
- src
- bindings
- axel-protocol
- examples
- src
- consent-aware-http
- examples
- src
- ecosystem-a2ml/examples
- k9-svc
- actions/validate/examples
- bindings
- deno
- examples
- src
- haskell/examples
- rust/examples
- editors/vscode/examples
- pandoc/examples
- lol
- src
- api
- crawlers
- cyc
- utils
- verisimdb
- test
- crawlers
- utils
- panll-panels/src
- rhodium-standard-repositories/satellites
- cccp/satellites/nextgen-languages/7-tentacles
- agents
- tools
- consent-aware-http/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
This file was deleted.
0 commit comments