Skip to content

Commit 20a7b5d

Browse files
docs(policy): ban ReScript explicitly and pin production installs (#494)
Adds ReScript to the BANNED table (canon bans it, destination AffineScript) and puts --frozen-lockfile on Enforcement Rule 3, so a lockfile mismatch fails the build instead of silently re-resolving. The inserted row mirrors this file's own TypeScript replacement cell rather than assuming the literal string "AffineScript", so bold, qualified and extra-column table variants keep their existing wording instead of being flattened. Enforcement Rule 1 is untouched: standards#655 records that collision as not resolvable unilaterally. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 0df025a commit 20a7b5d

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

‎robot-repo-automaton/.claude/CLAUDE.md‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
| Language/Tool | Use Case | Notes |
88
|---------------|----------|-------|
99
| **AffineScript** | Primary application code | Compiles to JS/WASM, type-safe with affine types |
10-
| **Deno** | Runtime & package management | Replaces Node/npm/bun |
10+
| **Bun** | JS runtime & package management (tier 1) | Default for all new work. Runs compiled ESM/JS directly — no bundler step. Uses an npm-compatible `package.json` plus `bun.lock` — both are expected, not anti-patterns. |
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 AffineScript cannot | MCP protocol glue, Deno APIs |
16+
| **JavaScript** | Only where AffineScript cannot | MCP protocol glue, Bun APIs |
1717
| **Nickel** | Configuration language | For complex configs |
1818
| **Guile Scheme** | State/meta files | STATE.scm, META.scm, ECOSYSTEM.scm |
1919
| **Julia** | Batch scripts, data processing | Per RSR |
@@ -25,10 +25,11 @@
2525
| Banned | Replacement |
2626
|--------|-------------|
2727
| TypeScript | AffineScript |
28-
| Node.js | Deno |
29-
| npm | Deno |
30-
| Bun | Deno |
31-
| pnpm/yarn | Deno |
28+
| ReScript | AffineScript |
29+
| Deno | Bun |
30+
| Node.js | Bun |
31+
| npm | Bun |
32+
| pnpm/yarn | Bun |
3233
| Go | Rust |
3334
| Python | Julia/Rust/AffineScript |
3435
| Java/Kotlin | Rust/Tauri/Dioxus |
@@ -48,8 +49,8 @@ Both are FOSS with independent governance (no Big Tech).
4849
### Enforcement Rules
4950

5051
1. **No new TypeScript files** - Convert existing TS to AffineScript
51-
2. **No package.json - use deno.json deps** - Use deno.json imports
52-
3. **No node_modules in production** - Deno caches deps automatically
52+
2. **Use `package.json` + `bun.lock` for JS runtime deps** - Bun is npm-compatible; a manifest is REQUIRED
53+
3. **`bun install --production --frozen-lockfile` for production deps** - resolved from `package.json` and pinned via `bun.lock`; `--frozen-lockfile` makes a lockfile mismatch a build failure rather than a silent re-resolve
5354
4. **No Go code** - Use Rust instead
5455
5. **No Python anywhere** - Use Julia for data/batch, Rust for systems, AffineScript for apps
5556
6. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus
@@ -58,7 +59,7 @@ Both are FOSS with independent governance (no Big Tech).
5859

5960
- **Primary**: Guix (guix.scm)
6061
- **Fallback**: none — Guix-only (Nix retired 2026-06-05)
61-
- **JS deps**: Deno (deno.json imports)
62+
- **JS deps**: Bun (`package.json` + `bun.lock`). Declare tooling as a devDependency and run `bunx --no-install --bun <tool>` — a bare `bunx <tool>` can fetch an unpinned package and may start Node via its shebang.
6263

6364
### Security Requirements
6465

0 commit comments

Comments
 (0)