Skip to content

Commit 81d6f15

Browse files
docs(claude-md): flip ReScript→AffineScript per 2026-05-25 estate language policy (#36)
Per the 2026-05-25 estate language policy ([standards#252](hyperpolymath/standards#252)), the `.claude/CLAUDE.md` language-policy table in this repo named ReScript as the primary application language and as the TypeScript replacement. Flip both to AffineScript via the same 6-line template substitution used in the dev-eco/phronesis/dotfiles initial sweep. ## Substitutions applied 1. `**ReScript** | Primary application code | Compiles to JS, type-safe` → `**AffineScript** | Primary application code | Affine-typed, compiles to typed-wasm or Deno-ESM` 2. `Only where ReScript cannot` → `Only where AffineScript cannot` 3. `| TypeScript | ReScript |` (BANNED replacement) → `| TypeScript | AffineScript |` 4. `Web UI (ReScript)` → `Web UI (AffineScript)` 5. `Convert existing TS to ReScript` → `Convert existing TS to AffineScript` 6. `ReScript for apps` → `AffineScript for apps` ## Scope check (template-clone class) This repo was categorised in the 2026-05-30 100-repo survey as a **template-clone** or **template-clone-with-stubs** — meaning the CLAUDE.md is a generic policy template clone rather than describing ReScript-heavy local reality. Repos with substantive ReScript source (≥5 `.res` files) were deferred to per-repo review per the `panll`-precedent (panll#60 closed because the local reality didn't match a wholesale flip). Docs-only — no source changes. No CI runs are expected to fail on behaviour grounds; if any do, that is unrelated tech debt to surface separately. Refs hyperpolymath/standards#287 (CLAUDE.md docs slice umbrella) Refs hyperpolymath/standards#252 (parent ReScript→AffineScript tracker) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 047a340 commit 81d6f15

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.claude/CLAUDE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
| Language/Tool | Use Case | Notes |
88
|---------------|----------|-------|
9-
| **ReScript** | Primary application code | Compiles to JS, type-safe |
9+
| **AffineScript** | Primary application code | Affine-typed, compiles to typed-wasm or Deno-ESM |
1010
| **Deno** | Runtime & package management | Replaces Node/npm/bun |
1111
| **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools |
1212
| **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI |
1313
| **Dioxus** | Mobile apps (native UI) | Pure Rust, React-like |
1414
| **Gleam** | Backend services | Runs on BEAM or compiles to JS |
1515
| **Bash/POSIX Shell** | Scripts, automation | Keep minimal |
16-
| **JavaScript** | Only where ReScript cannot | MCP protocol glue, Deno APIs |
16+
| **JavaScript** | Only where AffineScript cannot | MCP protocol glue, Deno APIs |
1717
| **Python** | SaltStack only | No other Python permitted |
1818
| **Nickel** | Configuration language | For complex configs |
1919
| **Guile Scheme** | State/meta files | STATE.scm, META.scm, ECOSYSTEM.scm |
@@ -25,7 +25,7 @@
2525

2626
| Banned | Replacement |
2727
|--------|-------------|
28-
| TypeScript | ReScript |
28+
| TypeScript | AffineScript |
2929
| Node.js | Deno |
3030
| npm | Deno |
3131
| Bun | Deno |
@@ -41,14 +41,14 @@
4141

4242
**No exceptions for Kotlin/Swift** - use Rust-first approach:
4343

44-
1. **Tauri 2.0+** - Web UI (ReScript) + Rust backend, MIT/Apache-2.0
44+
1. **Tauri 2.0+** - Web UI (AffineScript) + Rust backend, MIT/Apache-2.0
4545
2. **Dioxus** - Pure Rust native UI, MIT/Apache-2.0
4646

4747
Both are FOSS with independent governance (no Big Tech).
4848

4949
### Enforcement Rules
5050

51-
1. **No new TypeScript files** - Convert existing TS to ReScript
51+
1. **No new TypeScript files** - Convert existing TS to AffineScript
5252
2. **No package.json for runtime deps** - Use deno.json imports
5353
3. **No node_modules in production** - Deno caches deps automatically
5454
4. **No Go code** - Use Rust instead

0 commit comments

Comments
 (0)