From 4614fe7e29187f76af8fc9d9baad439aec16c147 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Dec 2026 02:29:45 +0000 Subject: [PATCH] docs(ai-rules): make JS runtime policy Bun-first Only Node.js and yarn are banned. The JS runtime is Bun first, then Deno, then pnpm, matching the canonical language policy. --- .github/copilot-instructions.md | 2 +- .github/pull_request_template.md | 2 +- .machine_readable/MUST.contractile | 2 +- .machine_readable/ai/.clinerules | 2 +- .machine_readable/ai/.cursorrules | 2 +- .machine_readable/ai/.windsurfrules | 2 +- docs/RSR_OUTLINE.adoc | 2 +- docs/practice/AI-CONVENTIONS.adoc | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ba1285a..a47f533 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -37,7 +37,7 @@ Copyright (c) Jonathan D.A. Jewell ## Banned Languages - No TypeScript (use AffineScript) -- No Node.js / npm / bun (use Deno) +- No Node.js / yarn (use Bun; fallbacks: Deno, then pnpm) - No Go (use Rust) - No Python (use Julia or Rust) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 2ff95ee..6d1cfa3 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -21,7 +21,7 @@ Copyright (c) Jonathan D.A. Jewell - [ ] Tests pass (`just test` or equivalent) - [ ] Code is formatted (`just fmt` or equivalent) - [ ] Linter is clean (no new warnings or errors) -- [ ] No banned language patterns (no TypeScript, no npm/bun, no Go/Python) +- [ ] No banned language patterns (no TypeScript, no Node.js/yarn, no Go/Python) - [ ] No `unsafe` blocks without `// SAFETY:` comments - [ ] No banned functions (`believe_me`, `unsafeCoerce`, `Obj.magic`, `Admitted`, `sorry`) - [ ] SPDX license headers present on all new/modified source files diff --git a/.machine_readable/MUST.contractile b/.machine_readable/MUST.contractile index 48ffff1..5f996e6 100644 --- a/.machine_readable/MUST.contractile +++ b/.machine_readable/MUST.contractile @@ -46,7 +46,7 @@ (must "no new TypeScript files") (must "no new Python files") (must "no new Go files") - (must "no npm/bun/yarn/pnpm dependencies — Deno only") + (must "no Node.js or yarn — JS runtime is Bun, then Deno, then pnpm") ; Dangerous patterns (must "no believe_me (Idris2)") diff --git a/.machine_readable/ai/.clinerules b/.machine_readable/ai/.clinerules index 734f3d9..69a5105 100644 --- a/.machine_readable/ai/.clinerules +++ b/.machine_readable/ai/.clinerules @@ -25,7 +25,7 @@ # BANNED LANGUAGES # TypeScript -> AffineScript -# Node.js / npm / bun -> Deno +# Node.js / yarn -> Bun (fallbacks: Deno, then pnpm) # Go -> Rust # Python -> Julia or Rust diff --git a/.machine_readable/ai/.cursorrules b/.machine_readable/ai/.cursorrules index 0d67548..04d17a6 100644 --- a/.machine_readable/ai/.cursorrules +++ b/.machine_readable/ai/.cursorrules @@ -24,7 +24,7 @@ # BANNED LANGUAGES # TypeScript -> use AffineScript -# Node.js / npm / bun -> use Deno +# Node.js / yarn -> use Bun (fallbacks: Deno, then pnpm) # Go -> use Rust # Python -> use Julia or Rust diff --git a/.machine_readable/ai/.windsurfrules b/.machine_readable/ai/.windsurfrules index 734f3d9..69a5105 100644 --- a/.machine_readable/ai/.windsurfrules +++ b/.machine_readable/ai/.windsurfrules @@ -25,7 +25,7 @@ # BANNED LANGUAGES # TypeScript -> AffineScript -# Node.js / npm / bun -> Deno +# Node.js / yarn -> Bun (fallbacks: Deno, then pnpm) # Go -> Rust # Python -> Julia or Rust diff --git a/docs/RSR_OUTLINE.adoc b/docs/RSR_OUTLINE.adoc index 23c66cf..0ebcfcf 100644 --- a/docs/RSR_OUTLINE.adoc +++ b/docs/RSR_OUTLINE.adoc @@ -229,7 +229,7 @@ project/ * TypeScript/JavaScript (use AffineScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) -* npm, Bun, pnpm, yarn (use Deno) +* Node.js, yarn (use Bun; fallbacks: Deno, then pnpm) * Go (use Rust) == STATE.a2ml diff --git a/docs/practice/AI-CONVENTIONS.adoc b/docs/practice/AI-CONVENTIONS.adoc index f2f5cbb..3f2ab89 100644 --- a/docs/practice/AI-CONVENTIONS.adoc +++ b/docs/practice/AI-CONVENTIONS.adoc @@ -56,7 +56,7 @@ MAINTENANCE-CHECKLIST.a2ml, or SOFTWARE-DEVELOPMENT-APPROACH.a2ml in the reposit | Banned | Use Instead | |---------------------|--------------------| | TypeScript | AffineScript | -| Node.js / npm / bun | Deno | +| Node.js / yarn | Bun > Deno > pnpm | | Go | Rust | | Python | Julia / Rust |