Skip to content

Commit 973f842

Browse files
hyperpolymathclaude
andcommitted
docs(claude-md): flip ReScript→AffineScript across 3 CLAUDE.md files per 2026-05-25 estate language policy
The .claude/CLAUDE.md language-policy tables in this repo (and the vendored cadre-router/ + cadre-router/tea-router-pkg/) still cited ReScript as the primary application language. Per the 2026-05-25 estate-wide policy and standards#252 (ReScript→AffineScript umbrella), flip the ALLOWED + BANNED tables and enforcement rules to reflect AffineScript as the target. Tauri/Dioxus references intentionally left alone — separate concern. Refs: hyperpolymath/standards#239 Refs: hyperpolymath/standards#281 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent baab153 commit 973f842

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

.claude/CLAUDE.md

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

2020
| Language/Tool | Use Case | Notes |
2121
|---------------|----------|-------|
22-
| **ReScript** | Primary application code | Compiles to JS, type-safe |
22+
| **AffineScript** | Primary application code | Affine-typed, compiles to typed-wasm or Deno-ESM |
2323
| **Deno** | Runtime & package management | Replaces Node/npm/bun |
2424
| **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools |
2525
| **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI |
2626
| **Dioxus** | Mobile apps (native UI) | Pure Rust, React-like |
2727
| **Gleam** | Backend services | Runs on BEAM or compiles to JS |
2828
| **Bash/POSIX Shell** | Scripts, automation | Keep minimal |
29-
| **JavaScript** | Only where ReScript cannot | MCP protocol glue, Deno APIs |
29+
| **JavaScript** | Only where AffineScript cannot | MCP protocol glue, Deno APIs |
3030
| **Nickel** | Configuration language | For complex configs |
3131
| **Guile Scheme** | State/meta files | .machine_readable/6a2/STATE.a2ml, .machine_readable/6a2/META.a2ml, .machine_readable/6a2/ECOSYSTEM.a2ml |
3232
| **Julia** | Batch scripts, data processing | Per RSR |
@@ -37,7 +37,8 @@ The following files in `.machine_readable/` contain structured project metadata:
3737

3838
| Banned | Replacement |
3939
|--------|-------------|
40-
| TypeScript | ReScript |
40+
| TypeScript | AffineScript |
41+
| ReScript | AffineScript |
4142
| Node.js | Deno |
4243
| npm | Deno |
4344
| Bun | Deno |
@@ -53,7 +54,7 @@ The following files in `.machine_readable/` contain structured project metadata:
5354

5455
For developer tools:
5556
- **Rust** preferred for CLI tools, git operations
56-
- **ReScript** for web dashboards (git-hud)
57+
- **AffineScript** for web dashboards (git-hud)
5758
- **Deno** for automation scripts
5859
- **Julia** for batch analysis (oikos metrics)
5960

cadre-router/.claude/CLAUDE.md

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

2020
| Language/Tool | Use Case | Notes |
2121
|---------------|----------|-------|
22-
| **ReScript** | Primary application code | Compiles to JS, type-safe |
22+
| **AffineScript** | Primary application code | Affine-typed, compiles to typed-wasm or Deno-ESM |
2323
| **Deno** | Runtime & package management | Replaces Node/npm/bun |
2424
| **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools |
2525
| **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI |
2626
| **Dioxus** | Mobile apps (native UI) | Pure Rust, React-like |
2727
| **Gleam** | Backend services | Runs on BEAM or compiles to JS |
2828
| **Bash/POSIX Shell** | Scripts, automation | Keep minimal |
29-
| **JavaScript** | Only where ReScript cannot | MCP protocol glue, Deno APIs |
29+
| **JavaScript** | Only where AffineScript cannot | MCP protocol glue, Deno APIs |
3030
| **Nickel** | Configuration language | For complex configs |
3131
| **Guile Scheme** | State/meta files | STATE.scm, META.scm, ECOSYSTEM.scm |
3232
| **Julia** | Batch scripts, data processing | Per RSR |
@@ -37,7 +37,8 @@ The following files in `.machine_readable/` contain structured project metadata:
3737

3838
| Banned | Replacement |
3939
|--------|-------------|
40-
| TypeScript | ReScript |
40+
| TypeScript | AffineScript |
41+
| ReScript | AffineScript |
4142
| Node.js | Deno |
4243
| npm | Deno |
4344
| Bun | Deno |
@@ -53,18 +54,18 @@ The following files in `.machine_readable/` contain structured project metadata:
5354

5455
**No exceptions for Kotlin/Swift** - use Rust-first approach:
5556

56-
1. **Tauri 2.0+** - Web UI (ReScript) + Rust backend, MIT/Apache-2.0
57+
1. **Tauri 2.0+** - Web UI (AffineScript) + Rust backend, MIT/Apache-2.0
5758
2. **Dioxus** - Pure Rust native UI, MIT/Apache-2.0
5859

5960
Both are FOSS with independent governance (no Big Tech).
6061

6162
### Enforcement Rules
6263

63-
1. **No new TypeScript files** - Convert existing TS to ReScript
64+
1. **No new TypeScript files** - Convert existing TS to AffineScript
6465
2. **No package.json for runtime deps** - Use deno.json imports
6566
3. **No node_modules in production** - Deno caches deps automatically
6667
4. **No Go code** - Use Rust instead
67-
5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, ReScript for apps
68+
5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, AffineScript for apps
6869
6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus
6970

7071
### Package Management

cadre-router/tea-router-pkg/.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It wraps `cadre-router` with TEA-specific primitives (`Tea.Cmd.t`, `Tea.Sub.t`).
88
## Language Policy
99

1010
Same as cadre-router - see the Hyperpolymath Standard:
11-
- **ReScript** for all source code
11+
- **AffineScript** for all source code (currently .res/.resi; ReScript→AffineScript migration tracked at standards#252)
1212
- **Deno** for runtime (not Node.js)
1313
- No TypeScript
1414

0 commit comments

Comments
 (0)