Skip to content

Commit 2bbcdeb

Browse files
committed
policy: Bun is tier 1, Deno is being removed — correct local CLAUDE.md
Owner ruling 2026-08-26: "deno is to go and bun is the way we are going, put it first everywhere unless not possible and explain why if not". This file is what an agent reads FIRST and it listed Bun as BANNED with Deno as its replacement. Correcting hyperpolymath/standards (#655) fixes one copy of ~372 - agents read the local one. This is that local copy. ALLOWED **Deno** "Replaces Node/npm/bun" -> **Bun** tier 1 BANNED | Bun | Deno | -> row REMOVED BANNED Node.js / npm / pnpm/yarn -> Deno -> -> Bun rule "No package.json for runtime deps - use deno.json imports" -> Use package.json + bun.lock; a manifest is REQUIRED rule "No node_modules in production" -> bun install --production, pinned via bun.lock pkg JS deps: Deno -> JS deps: Bun (package.json + bun.lock), bunx WHY THE MANIFEST RULE MATTERS MOST. "No package.json for runtime deps" did not express a preference - it told repos not to declare their dependencies at all. hyperpolymath/ubicity imported zod and glob, shipped NO manifest of any kind, and could not build under ANY toolchain. Fixed in ubicity#107; the rule that caused it is fixed here. ALSO REPAIRED - blanking scars from the ReScript purge, which substituted the token with an EMPTY STRING rather than removing the text: | | AffineScript | -> | ReScript | AffineScript | 1. **No new files** ... -> **No new ReScript files** ... | **JavaScript** | Only where cannot | -> Only where AffineScript cannot Restoring the NAME in a policy table does not reintroduce the language. Same root cause as the rm -rf /lib found in wordpress-tools#62. Policy text only - no code, no workflows, no build files. 1 file(s). NOT FOLDED IN: "Fallback: Nix (flake.nix)" is stale (Guix superseded Nix per ADR-2026-STACK-MIGRATION) but that is a separate ruling; flagged, not changed.
1 parent 62757ba commit 2bbcdeb

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎.claude/CLAUDE.md‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following files in `.machine_readable/` contain structured project metadata:
4949
| Language/Tool | Use Case | Notes |
5050
|---------------|----------|-------|
5151
| **AffineScript** (`.affine`) | Primary application code | Affine types, dependent types, row polymorphism, extensible effects; compiles to Wasm |
52-
| **Deno** | Runtime & package management | Replaces Node/npm/bun |
52+
| **Bun** | JS/TS runtime & package management (tier 1) | Default for all new work. Executes `.ts` directly, no build step. Uses an npm-compatible `package.json` plus `bun.lock` — both are expected, not anti-patterns. |
5353
| **Rust** | Performance-critical, systems, WASM | Preferred for CLI tools |
5454
| **Tauri 2.0+** | Mobile apps (iOS/Android) | Rust backend + web UI |
5555
| **Dioxus** | Mobile apps (native UI) | Pure Rust, React-like |
@@ -76,10 +76,9 @@ The following files in `.machine_readable/` contain structured project metadata:
7676
| TypeScript | **AffineScript** |
7777
| (new files) | **AffineScript** (migration via #488) |
7878
| JavaScript (where the project has been meaningfully migrated to AffineScript) | **AffineScript** |
79-
| Node.js | Deno |
80-
| npm | Deno |
81-
| Bun | Deno |
82-
| pnpm/yarn | Deno |
79+
| Node.js | Bun |
80+
| npm | Bun |
81+
| pnpm/yarn | Bun |
8382
| Go | Rust |
8483
| Python (general) | **AffineScript** / Rust / Julia |
8584
| Java/Kotlin | Rust / Tauri / Dioxus |
@@ -102,9 +101,9 @@ Both are FOSS with independent governance (no Big Tech).
102101
### Enforcement Rules
103102

104103
1. **No new TypeScript files** - Write new code in AffineScript (closed exemptions table below covers the residual `.d.ts` / Deno-test cases).
105-
2. **No new files** - As of 2026-05-25 policy refresh; AffineScript is the go-forward. Existing `.res` files stay until migrated via #488.
106-
3. **No package.json for runtime deps** - Use deno.json imports.
107-
4. **No node_modules in production** - Deno caches deps automatically.
104+
2. **No new ReScript files** - As of 2026-05-25 policy refresh; AffineScript is the go-forward. Existing `.res` files stay until migrated via #488.
105+
3. **Use `package.json` + `bun.lock` for JS runtime deps** - Bun is npm-compatible; a manifest is REQUIRED
106+
4. **`bun install --production` for production deps** - resolved from `package.json`, pinned via `bun.lock`
108107
5. **No Go code** - Use Rust instead.
109108
6. **Python only for SaltStack** - All other Python must be rewritten.
110109
7. **No Kotlin/Swift for mobile** - Use Tauri 2.0+ or Dioxus.
@@ -164,7 +163,7 @@ Do not "migrate", rewrite, or delete `formal/*.v` as if it were V-lang.
164163

165164
- **Primary**: Guix (guix.scm)
166165
- **Fallback**: Guix (flake.guix)
167-
- **JS deps**: Deno (deno.json imports)
166+
- **JS deps**: Bun (`package.json` + `bun.lock`); `bunx <tool>` for one-off tooling
168167

169168
### Security Requirements
170169

0 commit comments

Comments
 (0)