Skip to content

Commit 6d76c84

Browse files
docs(claude-md): flip ReScript→AffineScript per 2026-05-25 estate language policy (#61)
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 005c769 commit 6d76c84

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.claude/CLAUDE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ The following files in `.machine_readable/` contain structured project metadata:
4141

4242
| Language/Tool | Use Case | Notes |
4343
|---------------|----------|-------|
44-
| **ReScript** | Primary application code | Compiles to JS, type-safe |
44+
| **AffineScript** | Primary application code | Affine-typed, compiles to typed-wasm or Deno-ESM |
4545
| **Deno** | Runtime & package management | Replaces Node/npm/bun |
4646
| **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools |
4747
| **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI |
4848
| **Dioxus** | Mobile apps (native UI) | Pure Rust, React-like |
4949
| **Gleam** | Backend services | Runs on BEAM or compiles to JS |
5050
| **Bash/POSIX Shell** | Scripts, automation | Keep minimal |
51-
| **JavaScript** | Only where ReScript cannot | MCP protocol glue, Deno APIs |
51+
| **JavaScript** | Only where AffineScript cannot | MCP protocol glue, Deno APIs |
5252
| **Nickel** | Configuration language | For complex configs |
5353
| **Guile Scheme** | State/meta files | .machine_readable/6a2/STATE.a2ml, .machine_readable/6a2/META.a2ml, .machine_readable/6a2/ECOSYSTEM.a2ml |
5454
| **Julia** | Batch scripts, data processing | Per RSR |
@@ -59,7 +59,7 @@ The following files in `.machine_readable/` contain structured project metadata:
5959

6060
| Banned | Replacement |
6161
|--------|-------------|
62-
| TypeScript | ReScript |
62+
| TypeScript | AffineScript |
6363
| Node.js | Deno |
6464
| npm | Deno |
6565
| Bun | Deno |
@@ -75,18 +75,18 @@ The following files in `.machine_readable/` contain structured project metadata:
7575

7676
**No exceptions for Kotlin/Swift** - use Rust-first approach:
7777

78-
1. **Tauri 2.0+** - Web UI (ReScript) + Rust backend, MIT/Apache-2.0
78+
1. **Tauri 2.0+** - Web UI (AffineScript) + Rust backend, MIT/Apache-2.0
7979
2. **Dioxus** - Pure Rust native UI, MIT/Apache-2.0
8080

8181
Both are FOSS with independent governance (no Big Tech).
8282

8383
### Enforcement Rules
8484

85-
1. **No new TypeScript files** - Convert existing TS to ReScript
85+
1. **No new TypeScript files** - Convert existing TS to AffineScript
8686
2. **No package.json for runtime deps** - Use deno.json imports
8787
3. **No node_modules in production** - Deno caches deps automatically
8888
4. **No Go code** - Use Rust instead
89-
5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, ReScript for apps
89+
5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, AffineScript for apps
9090
6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus
9191

9292
### Package Management

0 commit comments

Comments
 (0)