From 62769c90367ae42c8771e8c2333639b9772dfc9a Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 01/19] chore(mise): drop banned runtimes and tools from mise.toml Removes node, python, go, java, npm, yarn, pip, make and the Python and Node linters and test runners left over from an old template. Language policy bans these, and the toolchain ban now covers declarations as well as source (owner ruling, 2026-11-26). Aliases keep only allowed commands. --- bun.lock | 15 +++++++++++++++ deno.lock | 19 +++++++++++++++++++ mise.toml | 27 ++++----------------------- package.json | 1 + pnpm-lock.yaml | 24 ++++++++++++++++++++++++ 5 files changed, 63 insertions(+), 23 deletions(-) create mode 100644 bun.lock create mode 100644 deno.lock create mode 100644 package.json create mode 100644 pnpm-lock.yaml diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..0c641ac --- /dev/null +++ b/bun.lock @@ -0,0 +1,15 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "lithoglyph", + "devDependencies": { + "prettier": "3.10.1", + }, + }, + }, + "packages": { + "prettier": ["prettier@3.10.1", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg=="], + } +} diff --git a/deno.lock b/deno.lock new file mode 100644 index 0000000..245355d --- /dev/null +++ b/deno.lock @@ -0,0 +1,19 @@ +{ + "version": "5", + "specifiers": { + "npm:prettier@3.10.1": "3.10.1" + }, + "npm": { + "prettier@3.10.1": { + "integrity": "sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==", + "bin": true + } + }, + "workspace": { + "packageJson": { + "dependencies": [ + "npm:prettier@3.10.1" + ] + } + } +} diff --git a/mise.toml b/mise.toml index bd7261e..c218636 100644 --- a/mise.toml +++ b/mise.toml @@ -1,38 +1,25 @@ [tools] # Language runtimes -node = "latest" -python = "latest" rust = "latest" -go = "latest" # Pinned, not "latest". The workflows pin 0.15.2 and src/bridge.zig uses # 0.15-era APIs; "latest" resolves to 0.16.0 locally, where std.fs.cwd() is gone # and a local `zig build test` fails in ways CI never sees. A local toolchain # that disagrees with CI turns every build into a guess about which one is right. zig = "0.15.2" -java = "latest" bun = "latest" denojs = "latest" # Package managers -npm = "latest" -yarn = "latest" pnpm = "latest" -pip = "latest" cargo = "latest" go-task = "latest" # Formatting & Linting -gofmt = "latest" -black = "latest" -isort = "latest" -ruff = "latest" -prettier = "latest" shfmt = "latest" stylua = "latest" # Build tools cmake = "latest" -make = "latest" ninja = "latest" # Shell tools @@ -42,20 +29,14 @@ gnu-tar = "latest" gnu-grep = "latest" # Testing -vitest = "latest" -pytest = "latest" -jest = "latest" [env] # Common environment variables -NODE_ENV = "development" -PYTHONDONTWRITEBYTECODE = "1" -PYTHONUNBUFFERED = "1" # Task runner alias [alias] task = "go-task" -build = "cargo build --release || npm run build || go build" -test = "cargo test || npm test || go test ./..." -lint = "ruff check . || prettier --check . || black --check ." -fmt = "ruff format . || prettier --write . || black ." +build = "cargo build --release" +test = "cargo test" +lint = "bunx --no-install --bun prettier --check ." +fmt = "bunx --no-install --bun prettier --write ." diff --git a/package.json b/package.json new file mode 100644 index 0000000..5799b58 --- /dev/null +++ b/package.json @@ -0,0 +1 @@ +{"devDependencies":{"prettier":"3.10.1"},"name":"lithoglyph","private":true} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..2d39aff --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,24 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + prettier: + specifier: 3.10.1 + version: 3.10.1 + +packages: + + prettier@3.10.1: + resolution: {integrity: sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==} + engines: {node: '>=14'} + hasBin: true + +snapshots: + + prettier@3.10.1: {} From a7d38a812ec269f233fcc71101bb60fb05fc7bd7 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 02/19] chore(mise): keep Prettier off JCS package.json and install deps before lint/fmt Add .prettierignore for package.json and pnpm-lock.yaml so Prettier does not undo JCS canonical form. Prefix the lint and fmt aliases with bun install --frozen-lockfile so bunx --no-install finds Prettier. --- .prettierignore | 4 ++++ mise.toml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..bd4ef62 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +# package.json is JCS-canonical and pnpm-lock.yaml is tool-generated (LANGUAGE-POLICY §1.4). +# Prettier must not reformat them. +package.json +pnpm-lock.yaml diff --git a/mise.toml b/mise.toml index c218636..6d69227 100644 --- a/mise.toml +++ b/mise.toml @@ -38,5 +38,5 @@ gnu-grep = "latest" task = "go-task" build = "cargo build --release" test = "cargo test" -lint = "bunx --no-install --bun prettier --check ." -fmt = "bunx --no-install --bun prettier --write ." +lint = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ." +fmt = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ." From 2bb3ed438cb9201d4c18ec94f31a2a7db2d9ee86 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 03/19] ci: remove retired runtime-policy.yml and its actions.lock entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit standards .github/workflows/README.adoc marks runtime-policy.yml RETIRED; its checks live in the governance workflow. Its 'mixed toolchains' rule contradicts LANGUAGE-POLICY §1.4, which requires bun.lock, deno.lock and pnpm-lock.yaml together. --- .github/workflows/actions.lock | 2 - .github/workflows/runtime-policy.yml | 75 ---------------------------- 2 files changed, 77 deletions(-) delete mode 100644 .github/workflows/runtime-policy.yml diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index d7fcd45..7d9ff99 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -49,8 +49,6 @@ workflows: - 'softprops/action-gh-release@v3.0.4' '.github/workflows/rhodibot.yml': - 'actions/checkout@v7.0.1' - '.github/workflows/runtime-policy.yml': - - 'actions/checkout@v7.0.1' '.github/workflows/rust-ci.yml': [] '.github/workflows/scorecard.yml': [] '.github/workflows/secret-scanner.yml': [] diff --git a/.github/workflows/runtime-policy.yml b/.github/workflows/runtime-policy.yml deleted file mode 100644 index 43dd0aa..0000000 --- a/.github/workflows/runtime-policy.yml +++ /dev/null @@ -1,75 +0,0 @@ -# This workflow is managed by gh actions-lock. -# SPDX-License-Identifier: MPL-2.0 -# This workflow is managed by gh actions-lock. -# This workflow is managed by gh actions-lock. -# This workflow is managed by gh actions-lock. -# Runtime and package-manager policy check. -# -# Authority: hyperpolymath/standards LANGUAGE-POLICY.adoc §1. -# Ordering: Bun (1st) > Deno (2nd) > pnpm (3rd) > npm (last resort). -# -# REPLACES npm-bun-blocker.yml, which failed any build carrying `bun.lockb` with -# the message "npm/bun artifacts detected. Use Deno instead." That gate blocked -# what is now the FIRST-choice runtime and mandated the second. It was present in -# 55 repositories. -# -# What this fails on, deliberately: -# MIXED TOOLCHAINS -- two different package managers' lockfiles in one repo. -# That is real, actionable drift: two dependency graphs that can disagree. -# What it does NOT fail on: -# Using bun, deno, pnpm or npm. npm is LAST but PERMITTED; the check reports -# the tier in use so drift is visible without blocking legitimate work. -name: Runtime Policy -on: - push: - branches: [main, master] - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: read - -jobs: - runtime-policy: - name: Runtime Policy - runs-on: ubuntu-latest - timeout-minutes: 10 - permissions: - contents: read - steps: - - uses: actions/checkout@v7.0.1 - - - name: Report runtime tier and reject mixed toolchains - run: | - set -euo pipefail - - bun=0; deno=0; pnpm=0; npm=0 - [ -f bun.lockb ] || [ -f bun.lock ] && bun=1 || true - [ -f deno.lock ] || [ -f deno.json ] || [ -f deno.jsonc ] && deno=1 || true - [ -f pnpm-lock.yaml ] && pnpm=1 || true - [ -f package-lock.json ] && npm=1 || true - - total=$((bun + deno + pnpm + npm)) - - if [ "$total" -eq 0 ]; then - echo "::notice::No JS/TS package manager in use — nothing to check." - exit 0 - fi - - # Report the tier actually in use (LANGUAGE-POLICY.adoc §1). - [ "$bun" -eq 1 ] && echo "Bun — tier 1 (preferred)" - [ "$deno" -eq 1 ] && echo "Deno — tier 2 (accepted; existing projects are grandfathered)" - [ "$pnpm" -eq 1 ] && echo "pnpm — tier 3" - [ "$npm" -eq 1 ] && echo "::warning::npm lockfile present. npm is tier 4, the last resort — permitted, never preferred. See LANGUAGE-POLICY.adoc §1." - - if [ "$total" -gt 1 ]; then - echo "::error::Mixed toolchains: $total package managers have lockfiles in this repository." - echo "Two dependency graphs that can disagree is real drift. Pick one — preferring the" - echo "highest tier present — and delete the others' lockfiles." - exit 1 - fi - - echo "✅ Single package manager in use." From 4e68213a7614e920ae248d603f3f1b57aa8a810e Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 04/19] chore(root-shape): allow JS manifest, locks and .prettierignore at root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These files must sit at the repository root: the runtimes and Prettier read them from there (LANGUAGE-POLICY §1.4). --- .machine_readable/root-allow.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.machine_readable/root-allow.txt b/.machine_readable/root-allow.txt index cae1ccb..a1a42c3 100644 --- a/.machine_readable/root-allow.txt +++ b/.machine_readable/root-allow.txt @@ -139,3 +139,10 @@ contractiles/ # repo-local normative contractiles (Dustfile/Mustfil .bot_directives/ # bot behaviour directives .meta/ # REQUIRED-FILES.md — repo self-description tasks/ # task-runner fragments (Justfile/Mustfile shards) + +# ─── JS manifest and locks (LANGUAGE-POLICY §1.4) ─────────────────────────── +package.json # JCS-canonical manifest; pins JS tooling (LANGUAGE-POLICY §1.4) +bun.lock # tier-1 lock, required (LANGUAGE-POLICY §1.4) +deno.lock # generated compatibility lock (LANGUAGE-POLICY §1.4) +pnpm-lock.yaml # generated compatibility lock (LANGUAGE-POLICY §1.4) +.prettierignore # keeps Prettier off the JCS package.json and pnpm-lock.yaml; Prettier reads it from the root From 3a5f9d7bdd10403ebd6791f732d16b6593e220f6 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 05/19] chore(root-shape): allow the gitignored node_modules that bun install creates --- .machine_readable/root-allow.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.machine_readable/root-allow.txt b/.machine_readable/root-allow.txt index a1a42c3..5eadf75 100644 --- a/.machine_readable/root-allow.txt +++ b/.machine_readable/root-allow.txt @@ -145,4 +145,5 @@ package.json # JCS-canonical manifest; pins JS tooling (LANGUAGE-P bun.lock # tier-1 lock, required (LANGUAGE-POLICY §1.4) deno.lock # generated compatibility lock (LANGUAGE-POLICY §1.4) pnpm-lock.yaml # generated compatibility lock (LANGUAGE-POLICY §1.4) +node_modules/ # generated by `bun install` (lint/fmt aliases); gitignored, never tracked .prettierignore # keeps Prettier off the JCS package.json and pnpm-lock.yaml; Prettier reads it from the root From 10f7615f2f8bee8a23a84277d4737dc69217a0bd Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 06/19] chore(js): declare MPL-2.0 licence in package.json package.json is JSON, so it cannot carry an SPDX comment header. The standard "license" field records the licence instead. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5799b58..3d98cc9 100644 --- a/package.json +++ b/package.json @@ -1 +1 @@ -{"devDependencies":{"prettier":"3.10.1"},"name":"lithoglyph","private":true} +{"devDependencies":{"prettier":"3.10.1"},"license":"MPL-2.0","name":"lithoglyph","private":true} From 1f2b7f6c99ad11e7cf36495b4f1c5dc09022c574 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 07/19] fix(mise): expose lint/fmt as tasks and install prettier first --- mise.toml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/mise.toml b/mise.toml index 6d69227..fbc8618 100644 --- a/mise.toml +++ b/mise.toml @@ -36,7 +36,21 @@ gnu-grep = "latest" # Task runner alias [alias] task = "go-task" -build = "cargo build --release" -test = "cargo test" -lint = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ." -fmt = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ." + +[tasks.setup] +description = "Install pinned JS dev tools (Prettier) from bun.lock" +run = "bun install --frozen-lockfile" + +[tasks.build] +run = "cargo build --release" + +[tasks.test] +run = "cargo test" + +[tasks.lint] +depends = ["setup"] +run = "bunx --no-install --bun prettier --check ." + +[tasks.fmt] +depends = ["setup"] +run = "bunx --no-install --bun prettier --write ." From 4bd33463f9b4056cb17970c1bb557704499aef8c Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 08/19] docs(policy): Bun is tier 1, Deno is a fallback (owner ruling) --- .github/copilot-instructions.md | 2 +- docs/practice/AI-CONVENTIONS.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 1cf2861..ee49589 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 ReScript) -- No Node.js / npm / bun (use Deno) +- No Node.js / npm (use Bun, tier 1; Deno and pnpm are fallbacks) - No Go (use Rust) - No Python (use Julia or Rust) diff --git a/docs/practice/AI-CONVENTIONS.adoc b/docs/practice/AI-CONVENTIONS.adoc index bf53db7..2bb240b 100644 --- a/docs/practice/AI-CONVENTIONS.adoc +++ b/docs/practice/AI-CONVENTIONS.adoc @@ -65,7 +65,7 @@ MAINTENANCE-CHECKLIST.a2ml, or SOFTWARE-DEVELOPMENT-APPROACH.a2ml in the reposit | Banned | Use Instead | |---------------------|--------------------| | TypeScript | ReScript | -| Node.js / npm / bun | Deno | +| Node.js / npm | Bun (tier 1); Deno, pnpm as fallbacks | | Go | Rust | | Python | Julia / Rust | From 9963d3d93c44f08fbfb4988bf4e9dab2cf0ef709 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 09/19] fix(mise): use real build/test commands and pin bun Use the repo's real build/test entrypoints: build/just/lithoglyph.just. Pin bun to 1.4 so mise installs a Bun that reads the v2 bun.lock. --- mise.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mise.toml b/mise.toml index fbc8618..8526bb3 100644 --- a/mise.toml +++ b/mise.toml @@ -6,7 +6,8 @@ rust = "latest" # and a local `zig build test` fails in ways CI never sees. A local toolchain # that disagrees with CI turns every build into a guess about which one is right. zig = "0.15.2" -bun = "latest" +bun = "1.4" +just = "latest" denojs = "latest" # Package managers @@ -42,10 +43,10 @@ description = "Install pinned JS dev tools (Prettier) from bun.lock" run = "bun install --frozen-lockfile" [tasks.build] -run = "cargo build --release" +run = "just build" [tasks.test] -run = "cargo test" +run = "just test" [tasks.lint] depends = ["setup"] From ca34cd67aff36a0380bc3bdd3ba4310c90d111be Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 10/19] chore(mise): narrow Prettier to its own files and drop deno.lock Remove deno.lock: this branch added it (the base has none), and Bun is the tier-1 runtime, so bun.lock is the lockfile (owner ruling). Narrow lint and fmt from . to the files Prettier owns (js, mjs, cjs, json, md). .prettierignore exclusions still apply, and --no-error-on-unmatched-pattern keeps repos with no such files green (owner ruling). --- deno.lock | 19 ------------------- mise.toml | 4 ++-- 2 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 deno.lock diff --git a/deno.lock b/deno.lock deleted file mode 100644 index 245355d..0000000 --- a/deno.lock +++ /dev/null @@ -1,19 +0,0 @@ -{ - "version": "5", - "specifiers": { - "npm:prettier@3.10.1": "3.10.1" - }, - "npm": { - "prettier@3.10.1": { - "integrity": "sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==", - "bin": true - } - }, - "workspace": { - "packageJson": { - "dependencies": [ - "npm:prettier@3.10.1" - ] - } - } -} diff --git a/mise.toml b/mise.toml index 8526bb3..5f4bb49 100644 --- a/mise.toml +++ b/mise.toml @@ -50,8 +50,8 @@ run = "just test" [tasks.lint] depends = ["setup"] -run = "bunx --no-install --bun prettier --check ." +run = 'bunx --no-install --bun prettier --check --no-error-on-unmatched-pattern "**/*.{js,mjs,cjs,json,md}"' [tasks.fmt] depends = ["setup"] -run = "bunx --no-install --bun prettier --write ." +run = 'bunx --no-install --bun prettier --write --no-error-on-unmatched-pattern "**/*.{js,mjs,cjs,json,md}"' From b2162ccc4bd504ed0c2b30a9db90d3448d0d058d Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:22 +0000 Subject: [PATCH 11/19] ci: restore runtime-policy.yml from main (owner ruling) Restore .github/workflows/runtime-policy.yml and its actions.lock entry exactly as they are on main. The file has no Bun-ban lines to change: it already ranks Bun first (Bun > Deno > pnpm > npm). Note that its mixed-toolchains rule will fail this branch, which carries both bun.lock and pnpm-lock.yaml. --- .github/workflows/actions.lock | 2 + .github/workflows/runtime-policy.yml | 75 ++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 .github/workflows/runtime-policy.yml diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 7d9ff99..d7fcd45 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -49,6 +49,8 @@ workflows: - 'softprops/action-gh-release@v3.0.4' '.github/workflows/rhodibot.yml': - 'actions/checkout@v7.0.1' + '.github/workflows/runtime-policy.yml': + - 'actions/checkout@v7.0.1' '.github/workflows/rust-ci.yml': [] '.github/workflows/scorecard.yml': [] '.github/workflows/secret-scanner.yml': [] diff --git a/.github/workflows/runtime-policy.yml b/.github/workflows/runtime-policy.yml new file mode 100644 index 0000000..43dd0aa --- /dev/null +++ b/.github/workflows/runtime-policy.yml @@ -0,0 +1,75 @@ +# This workflow is managed by gh actions-lock. +# SPDX-License-Identifier: MPL-2.0 +# This workflow is managed by gh actions-lock. +# This workflow is managed by gh actions-lock. +# This workflow is managed by gh actions-lock. +# Runtime and package-manager policy check. +# +# Authority: hyperpolymath/standards LANGUAGE-POLICY.adoc §1. +# Ordering: Bun (1st) > Deno (2nd) > pnpm (3rd) > npm (last resort). +# +# REPLACES npm-bun-blocker.yml, which failed any build carrying `bun.lockb` with +# the message "npm/bun artifacts detected. Use Deno instead." That gate blocked +# what is now the FIRST-choice runtime and mandated the second. It was present in +# 55 repositories. +# +# What this fails on, deliberately: +# MIXED TOOLCHAINS -- two different package managers' lockfiles in one repo. +# That is real, actionable drift: two dependency graphs that can disagree. +# What it does NOT fail on: +# Using bun, deno, pnpm or npm. npm is LAST but PERMITTED; the check reports +# the tier in use so drift is visible without blocking legitimate work. +name: Runtime Policy +on: + push: + branches: [main, master] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + runtime-policy: + name: Runtime Policy + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + steps: + - uses: actions/checkout@v7.0.1 + + - name: Report runtime tier and reject mixed toolchains + run: | + set -euo pipefail + + bun=0; deno=0; pnpm=0; npm=0 + [ -f bun.lockb ] || [ -f bun.lock ] && bun=1 || true + [ -f deno.lock ] || [ -f deno.json ] || [ -f deno.jsonc ] && deno=1 || true + [ -f pnpm-lock.yaml ] && pnpm=1 || true + [ -f package-lock.json ] && npm=1 || true + + total=$((bun + deno + pnpm + npm)) + + if [ "$total" -eq 0 ]; then + echo "::notice::No JS/TS package manager in use — nothing to check." + exit 0 + fi + + # Report the tier actually in use (LANGUAGE-POLICY.adoc §1). + [ "$bun" -eq 1 ] && echo "Bun — tier 1 (preferred)" + [ "$deno" -eq 1 ] && echo "Deno — tier 2 (accepted; existing projects are grandfathered)" + [ "$pnpm" -eq 1 ] && echo "pnpm — tier 3" + [ "$npm" -eq 1 ] && echo "::warning::npm lockfile present. npm is tier 4, the last resort — permitted, never preferred. See LANGUAGE-POLICY.adoc §1." + + if [ "$total" -gt 1 ]; then + echo "::error::Mixed toolchains: $total package managers have lockfiles in this repository." + echo "Two dependency graphs that can disagree is real drift. Pick one — preferring the" + echo "highest tier present — and delete the others' lockfiles." + exit 1 + fi + + echo "✅ Single package manager in use." From f9a1838856604b7ad1fa459b925a5304a5006519 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:23 +0000 Subject: [PATCH 12/19] chore(dependabot): add a bun entry beside npm lint and fmt install Prettier from bun.lock with --frozen-lockfile, and Dependabot treats Bun as its own ecosystem, so an npm-only entry would bump package.json without bun.lock. The bun entry uses the same directory and schedule as npm, and the npm entry stays (owner ruling). --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0b66a8b..e8cf0e4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -51,6 +51,12 @@ updates: schedule: interval: "weekly" + # Bun (bun.lock): same directory and schedule as npm, so Dependabot keeps bun.lock in step + - package-ecosystem: "bun" + directory: "/" + schedule: + interval: "weekly" + # Python/pip - package-ecosystem: "pip" directory: "/" From 1367b7db6a9f8a6b67e66d448b96cfb928f5457d Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:23 +0000 Subject: [PATCH 13/19] chore(dependabot): group npm and bun updates so both lockfiles move together --- .github/dependabot.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e8cf0e4..e7d69ea 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,6 +3,11 @@ # Covers common ecosystems - remove unused ones for your project version: 2 + +multi-ecosystem-groups: + js-locks: + schedule: + interval: "weekly" updates: # GitHub Actions - always include - package-ecosystem: "github-actions" @@ -48,14 +53,14 @@ updates: # Node.js/npm - package-ecosystem: "npm" directory: "/" - schedule: - interval: "weekly" + multi-ecosystem-group: "js-locks" + patterns: ["*"] - # Bun (bun.lock): same directory and schedule as npm, so Dependabot keeps bun.lock in step + # Bun (bun.lock): in the js-locks group with npm, so one PR moves pnpm-lock.yaml and bun.lock together - package-ecosystem: "bun" directory: "/" - schedule: - interval: "weekly" + multi-ecosystem-group: "js-locks" + patterns: ["*"] # Python/pip - package-ecosystem: "pip" From a58cc757771b43f6f58fe81092fa2a0bc76f0c14 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:23 +0000 Subject: [PATCH 14/19] chore(package): pretty-print package.json so licence checks can read it --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3d98cc9..5df58e3 100644 --- a/package.json +++ b/package.json @@ -1 +1,8 @@ -{"devDependencies":{"prettier":"3.10.1"},"license":"MPL-2.0","name":"lithoglyph","private":true} +{ + "devDependencies": { + "prettier": "3.10.1" + }, + "license": "MPL-2.0", + "name": "lithoglyph", + "private": true +} From 458c4f10e30c941d4afd1ec52a934e2f4115f2cc Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:23 +0000 Subject: [PATCH 15/19] chore(mise): apply owner rulings on JS tooling - Keep only bun.lock: drop pnpm-lock.yaml / deno.lock next to package.json - Drop Deno from mise [tools] - lint/fmt as [tasks] that install first: bun install --frozen-lockfile && prettier over . - build/test tasks call just or a real crate; no cargo at a crate-less root - .prettierignore keeps Prettier off the JCS package.json - Align repo policy text to Bun first where it said Deno-only --- .github/dependabot.yml | 2 +- .machine_readable/ai/.clinerules | 2 +- .machine_readable/ai/.windsurfrules | 2 +- .machine_readable/root-allow.txt | 4 +--- .prettierignore | 5 ++--- mise.toml | 7 ++----- pnpm-lock.yaml | 24 ------------------------ 7 files changed, 8 insertions(+), 38 deletions(-) delete mode 100644 pnpm-lock.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e7d69ea..450149e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -56,7 +56,7 @@ updates: multi-ecosystem-group: "js-locks" patterns: ["*"] - # Bun (bun.lock): in the js-locks group with npm, so one PR moves pnpm-lock.yaml and bun.lock together + # Bun (bun.lock): in the js-locks group with npm, so one PR moves package.json and bun.lock together - package-ecosystem: "bun" directory: "/" multi-ecosystem-group: "js-locks" diff --git a/.machine_readable/ai/.clinerules b/.machine_readable/ai/.clinerules index 32565bc..018c10f 100644 --- a/.machine_readable/ai/.clinerules +++ b/.machine_readable/ai/.clinerules @@ -25,7 +25,7 @@ # BANNED LANGUAGES # TypeScript -> ReScript -# Node.js / npm / bun -> Deno +# Node.js / npm / yarn / Deno -> Bun (Bun first) # Go -> Rust # Python -> Julia or Rust diff --git a/.machine_readable/ai/.windsurfrules b/.machine_readable/ai/.windsurfrules index 32565bc..018c10f 100644 --- a/.machine_readable/ai/.windsurfrules +++ b/.machine_readable/ai/.windsurfrules @@ -25,7 +25,7 @@ # BANNED LANGUAGES # TypeScript -> ReScript -# Node.js / npm / bun -> Deno +# Node.js / npm / yarn / Deno -> Bun (Bun first) # Go -> Rust # Python -> Julia or Rust diff --git a/.machine_readable/root-allow.txt b/.machine_readable/root-allow.txt index 5eadf75..6c834f2 100644 --- a/.machine_readable/root-allow.txt +++ b/.machine_readable/root-allow.txt @@ -143,7 +143,5 @@ tasks/ # task-runner fragments (Justfile/Mustfile shards) # ─── JS manifest and locks (LANGUAGE-POLICY §1.4) ─────────────────────────── package.json # JCS-canonical manifest; pins JS tooling (LANGUAGE-POLICY §1.4) bun.lock # tier-1 lock, required (LANGUAGE-POLICY §1.4) -deno.lock # generated compatibility lock (LANGUAGE-POLICY §1.4) -pnpm-lock.yaml # generated compatibility lock (LANGUAGE-POLICY §1.4) node_modules/ # generated by `bun install` (lint/fmt aliases); gitignored, never tracked -.prettierignore # keeps Prettier off the JCS package.json and pnpm-lock.yaml; Prettier reads it from the root +.prettierignore # keeps Prettier off the JCS package.json; Prettier reads it from the root diff --git a/.prettierignore b/.prettierignore index bd4ef62..49c40e2 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,3 @@ -# package.json is JCS-canonical and pnpm-lock.yaml is tool-generated (LANGUAGE-POLICY §1.4). -# Prettier must not reformat them. +# SPDX-License-Identifier: MPL-2.0 +# package.json is JCS-canonical (LANGUAGE-POLICY §1.4); Prettier must not reformat it. package.json -pnpm-lock.yaml diff --git a/mise.toml b/mise.toml index 5f4bb49..c60f375 100644 --- a/mise.toml +++ b/mise.toml @@ -8,7 +8,6 @@ rust = "latest" zig = "0.15.2" bun = "1.4" just = "latest" -denojs = "latest" # Package managers pnpm = "latest" @@ -49,9 +48,7 @@ run = "just build" run = "just test" [tasks.lint] -depends = ["setup"] -run = 'bunx --no-install --bun prettier --check --no-error-on-unmatched-pattern "**/*.{js,mjs,cjs,json,md}"' +run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ." [tasks.fmt] -depends = ["setup"] -run = 'bunx --no-install --bun prettier --write --no-error-on-unmatched-pattern "**/*.{js,mjs,cjs,json,md}"' +run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ." diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml deleted file mode 100644 index 2d39aff..0000000 --- a/pnpm-lock.yaml +++ /dev/null @@ -1,24 +0,0 @@ -lockfileVersion: '9.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -importers: - - .: - devDependencies: - prettier: - specifier: 3.10.1 - version: 3.10.1 - -packages: - - prettier@3.10.1: - resolution: {integrity: sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==} - engines: {node: '>=14'} - hasBin: true - -snapshots: - - prettier@3.10.1: {} From 4d365ff3ec40443dca1424c646d9d69ed98c4aac Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:23 +0000 Subject: [PATCH 16/19] chore: apply owner rulings (Bun-only Dependabot, Bun-first docs) --- .github/copilot-instructions.md | 2 +- .github/dependabot.yml | 8 +------- .github/pull_request_template.md | 2 +- .machine_readable/ai/.clinerules | 2 +- .machine_readable/ai/.cursorrules | 2 +- .machine_readable/ai/.windsurfrules | 2 +- EXPLAINME.adoc | 10 +++++----- docs/RSR_OUTLINE.adoc | 2 +- docs/lithoglyph/AFFINESCRIPT-PORT.adoc | 3 ++- docs/practice/AI-CONVENTIONS.adoc | 2 +- 10 files changed, 15 insertions(+), 20 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ee49589..17c5b79 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 ReScript) -- No Node.js / npm (use Bun, tier 1; Deno and pnpm are fallbacks) +- No Node.js / yarn (use Bun, tier 1; Deno, pnpm, npm are fallbacks) - No Go (use Rust) - No Python (use Julia or Rust) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 450149e..acfbf4a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -50,13 +50,7 @@ updates: schedule: interval: "weekly" - # Node.js/npm - - package-ecosystem: "npm" - directory: "/" - multi-ecosystem-group: "js-locks" - patterns: ["*"] - - # Bun (bun.lock): in the js-locks group with npm, so one PR moves package.json and bun.lock together + # Bun (bun.lock): in the js-locks group, so one PR moves package.json and bun.lock together (no npm entry: no npm lockfile here) - package-ecosystem: "bun" directory: "/" multi-ecosystem-group: "js-locks" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 65789e9..f6a772b 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/ai/.clinerules b/.machine_readable/ai/.clinerules index 018c10f..405a15a 100644 --- a/.machine_readable/ai/.clinerules +++ b/.machine_readable/ai/.clinerules @@ -25,7 +25,7 @@ # BANNED LANGUAGES # TypeScript -> ReScript -# Node.js / npm / yarn / Deno -> Bun (Bun first) +# Node.js / yarn -> Bun first; Deno, pnpm, npm as fallbacks # Go -> Rust # Python -> Julia or Rust diff --git a/.machine_readable/ai/.cursorrules b/.machine_readable/ai/.cursorrules index 5255a80..aeec85f 100644 --- a/.machine_readable/ai/.cursorrules +++ b/.machine_readable/ai/.cursorrules @@ -24,7 +24,7 @@ # BANNED LANGUAGES # TypeScript -> use ReScript -# Node.js / npm / bun -> use Deno +# Node.js / yarn -> use Bun first; Deno, pnpm, npm as fallbacks # Go -> use Rust # Python -> use Julia or Rust diff --git a/.machine_readable/ai/.windsurfrules b/.machine_readable/ai/.windsurfrules index 018c10f..405a15a 100644 --- a/.machine_readable/ai/.windsurfrules +++ b/.machine_readable/ai/.windsurfrules @@ -25,7 +25,7 @@ # BANNED LANGUAGES # TypeScript -> ReScript -# Node.js / npm / yarn / Deno -> Bun (Bun first) +# Node.js / yarn -> Bun first; Deno, pnpm, npm as fallbacks # Go -> Rust # Python -> Julia or Rust diff --git a/EXPLAINME.adoc b/EXPLAINME.adoc index 5ea33fa..a587b54 100644 --- a/EXPLAINME.adoc +++ b/EXPLAINME.adoc @@ -85,11 +85,11 @@ How this is implemented: Caveat: -* Dependabot has **no Deno or Bun ecosystem**, and `pnpm` only rides under the - `npm` ecosystem (itself banned). For this Deno-first estate Dependabot cannot - watch the runtime dependencies; the `npm`/`pip` entries are retained only for - transitional/legacy manifests and are otherwise inert. Deno dependency - currency is managed via `deno.json`/`deno.lock`, not Dependabot. +* Bun is the tier-1 JS runtime (Deno, pnpm, npm as fallbacks). Dependabot + watches `bun.lock` through its `bun` ecosystem. It has **no Deno ecosystem**, + so where Deno is used its dependency currency is managed via + `deno.json`/`deno.lock`, not Dependabot. The `pip` entry is retained only for + transitional/legacy manifests and is otherwise inert. * Do **not** add Dependabot as a ruleset *bypass* actor: that lets bumps skip the required checks (secret-scanning, SAST), removing the safety gate and the "it broke" signal. Auto-merge-on-green gives fast merges without it. diff --git a/docs/RSR_OUTLINE.adoc b/docs/RSR_OUTLINE.adoc index 2c0ae5c..bda0274 100644 --- a/docs/RSR_OUTLINE.adoc +++ b/docs/RSR_OUTLINE.adoc @@ -229,7 +229,7 @@ project/ * TypeScript/JavaScript (use ReScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) -* npm, Bun, pnpm, yarn (use Deno) +* Node.js, yarn (use Bun first; Deno, pnpm, npm as fallbacks) * Go (use Rust) == STATE.a2ml diff --git a/docs/lithoglyph/AFFINESCRIPT-PORT.adoc b/docs/lithoglyph/AFFINESCRIPT-PORT.adoc index 25984fb..b579006 100644 --- a/docs/lithoglyph/AFFINESCRIPT-PORT.adoc +++ b/docs/lithoglyph/AFFINESCRIPT-PORT.adoc @@ -9,7 +9,8 @@ Lithoglyph's scripting layer is to be **AffineScript**, not ReScript. This is not a local preference. Per the Hyperpolymath Standard, **ReScript and -TypeScript are banned estate-wide**, and npm/bun are replaced by Deno. The +TypeScript are banned estate-wide**, and the JS runtime is Bun first (Deno, +pnpm, npm as fallbacks; Node.js and yarn stay banned). The estate-level plan and inventory live in the coordination repo: `nextgen-databases/docs/migration/RESCRIPT-TS-AFFINESCRIPT-MIGRATION.adoc` diff --git a/docs/practice/AI-CONVENTIONS.adoc b/docs/practice/AI-CONVENTIONS.adoc index 2bb240b..9659f62 100644 --- a/docs/practice/AI-CONVENTIONS.adoc +++ b/docs/practice/AI-CONVENTIONS.adoc @@ -65,7 +65,7 @@ MAINTENANCE-CHECKLIST.a2ml, or SOFTWARE-DEVELOPMENT-APPROACH.a2ml in the reposit | Banned | Use Instead | |---------------------|--------------------| | TypeScript | ReScript | -| Node.js / npm | Bun (tier 1); Deno, pnpm as fallbacks | +| Node.js / yarn | Bun (tier 1); Deno, pnpm, npm as fallbacks | | Go | Rust | | Python | Julia / Rust | From f406a747464ffd55e1cd6bb5f7062785049b00e2 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:23 +0000 Subject: [PATCH 17/19] chore: apply owner leftover rulings (L1 contract files Bun-first, L2 ReScript -> AffineScript) --- .claude/CLAUDE.md | 4 ++-- .github/copilot-instructions.md | 2 +- .machine_readable/ai/.clinerules | 2 +- .machine_readable/ai/.cursorrules | 2 +- .machine_readable/ai/.windsurfrules | 2 +- .machine_readable/arrival-pack/arrival-pack.ncl | 2 +- .machine_readable/descriptiles/anchors/ANCHOR.a2ml | 2 +- CLAUDE.md | 6 +++--- analytics/RSR_OUTLINE.adoc | 2 +- beam/RSR_OUTLINE.adoc | 2 +- docs/RSR_OUTLINE.adoc | 2 +- docs/lithoglyph/RSR_OUTLINE.adoc | 2 +- docs/practice/AI-CONVENTIONS.adoc | 2 +- geo/RSR_OUTLINE.adoc | 2 +- studio/RSR_OUTLINE.adoc | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 0ff1b94..4bcb594 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -69,8 +69,8 @@ svalinn (TLS) → lith-http (Elixir :4000) → BEAM NIFs → core-zig (C ABI) - **Nickel** — Configuration ### BANNED -- TypeScript, Python, Go, Java, Node.js, npm -- Deno (use Bun) +- TypeScript, Python, Go, Java, Node.js, yarn +- JS runtime/package manager: Bun first; Deno, pnpm, npm as fallbacks ## Build Commands diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 17c5b79..46aff42 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -36,7 +36,7 @@ Copyright (c) Jonathan D.A. Jewell ## Banned Languages -- No TypeScript (use ReScript) +- No TypeScript (use AffineScript) - No Node.js / yarn (use Bun, tier 1; Deno, pnpm, npm are fallbacks) - No Go (use Rust) - No Python (use Julia or Rust) diff --git a/.machine_readable/ai/.clinerules b/.machine_readable/ai/.clinerules index 405a15a..a038499 100644 --- a/.machine_readable/ai/.clinerules +++ b/.machine_readable/ai/.clinerules @@ -24,7 +24,7 @@ # Rust: transmute (unless FFI with // SAFETY: comment) # BANNED LANGUAGES -# TypeScript -> ReScript +# TypeScript -> AffineScript # Node.js / yarn -> Bun first; Deno, pnpm, npm as fallbacks # Go -> Rust # Python -> Julia or Rust diff --git a/.machine_readable/ai/.cursorrules b/.machine_readable/ai/.cursorrules index aeec85f..08a58c9 100644 --- a/.machine_readable/ai/.cursorrules +++ b/.machine_readable/ai/.cursorrules @@ -23,7 +23,7 @@ # Rust: transmute (unless FFI with // SAFETY: comment) # BANNED LANGUAGES -# TypeScript -> use ReScript +# TypeScript -> use AffineScript # Node.js / yarn -> use Bun first; Deno, pnpm, npm as fallbacks # Go -> use Rust # Python -> use Julia or Rust diff --git a/.machine_readable/ai/.windsurfrules b/.machine_readable/ai/.windsurfrules index 405a15a..a038499 100644 --- a/.machine_readable/ai/.windsurfrules +++ b/.machine_readable/ai/.windsurfrules @@ -24,7 +24,7 @@ # Rust: transmute (unless FFI with // SAFETY: comment) # BANNED LANGUAGES -# TypeScript -> ReScript +# TypeScript -> AffineScript # Node.js / yarn -> Bun first; Deno, pnpm, npm as fallbacks # Go -> Rust # Python -> Julia or Rust diff --git a/.machine_readable/arrival-pack/arrival-pack.ncl b/.machine_readable/arrival-pack/arrival-pack.ncl index a24e9ac..e0de37d 100644 --- a/.machine_readable/arrival-pack/arrival-pack.ncl +++ b/.machine_readable/arrival-pack/arrival-pack.ncl @@ -73,7 +73,7 @@ The descriptive family (working name *descriptiles*) describes what-is; the **co - **Before you invent, rename, or consolidate anything: STOP and check the map + IS-NOT.** ## Estate language policy (overridable per-repo via AGENTIC) -Deny: **Nix, Node/npm, TypeScript, Python, Go, AGPL**. (Guix, not Nix.) +Deny: **Nix, Node.js, yarn, TypeScript, Python, Go, AGPL**. (Guix, not Nix. JS: Bun first; Deno, pnpm, npm as fallbacks.) --- diff --git a/.machine_readable/descriptiles/anchors/ANCHOR.a2ml b/.machine_readable/descriptiles/anchors/ANCHOR.a2ml index f87c3a5..ae090e6 100644 --- a/.machine_readable/descriptiles/anchors/ANCHOR.a2ml +++ b/.machine_readable/descriptiles/anchors/ANCHOR.a2ml @@ -35,7 +35,7 @@ owns = [ [implementation-policy] allowed = ["Rust", "Idris2", "Zig", "Scheme", "Shell", "Just", "AsciiDoc", "Markdown"] -forbidden = ["Node.js", "npm"] +forbidden = ["Node.js", "yarn"] [golden-path] smoke-test-command = [ diff --git a/CLAUDE.md b/CLAUDE.md index 2104e72..8e41675 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,7 +6,7 @@ SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell - + # You are in the hyperpolymath estate — orient before acting @@ -53,7 +53,7 @@ The descriptive family (working name *descriptiles*) describes what-is; the **co - **Before you invent, rename, or consolidate anything: STOP and check the map + IS-NOT.** ## Estate language policy (overridable per-repo via AGENTIC) -Deny: **Nix, Node/npm, TypeScript, Python, Go, AGPL**. (Guix, not Nix.) +Deny: **Nix, Node.js, yarn, TypeScript, Python, Go, AGPL**. (Guix, not Nix. JS: Bun first; Deno, pnpm, npm as fallbacks.) --- @@ -67,4 +67,4 @@ Deny: **Nix, Node/npm, TypeScript, Python, Go, AGPL**. (Guix, not Nix.) - **Golden path** (ANCHOR) — `just test && just quality` → Core tests pass; Quality gates pass; No unresolved critical security findings. - **State** — phase ip-rename-complete; maturity experimental; % complete; status active. - + diff --git a/analytics/RSR_OUTLINE.adoc b/analytics/RSR_OUTLINE.adoc index ede631f..4fa8ae5 100644 --- a/analytics/RSR_OUTLINE.adoc +++ b/analytics/RSR_OUTLINE.adoc @@ -166,7 +166,7 @@ project/ === Prohibited * Python outside `salt/` directory -* TypeScript/JavaScript (use ReScript) +* TypeScript/JavaScript (use AffineScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) diff --git a/beam/RSR_OUTLINE.adoc b/beam/RSR_OUTLINE.adoc index ede631f..4fa8ae5 100644 --- a/beam/RSR_OUTLINE.adoc +++ b/beam/RSR_OUTLINE.adoc @@ -166,7 +166,7 @@ project/ === Prohibited * Python outside `salt/` directory -* TypeScript/JavaScript (use ReScript) +* TypeScript/JavaScript (use AffineScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) diff --git a/docs/RSR_OUTLINE.adoc b/docs/RSR_OUTLINE.adoc index bda0274..8b39a5d 100644 --- a/docs/RSR_OUTLINE.adoc +++ b/docs/RSR_OUTLINE.adoc @@ -226,7 +226,7 @@ project/ === Prohibited * Python outside `salt/` directory -* TypeScript/JavaScript (use ReScript) +* TypeScript/JavaScript (use AffineScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) * Node.js, yarn (use Bun first; Deno, pnpm, npm as fallbacks) diff --git a/docs/lithoglyph/RSR_OUTLINE.adoc b/docs/lithoglyph/RSR_OUTLINE.adoc index ede631f..4fa8ae5 100644 --- a/docs/lithoglyph/RSR_OUTLINE.adoc +++ b/docs/lithoglyph/RSR_OUTLINE.adoc @@ -166,7 +166,7 @@ project/ === Prohibited * Python outside `salt/` directory -* TypeScript/JavaScript (use ReScript) +* TypeScript/JavaScript (use AffineScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) diff --git a/docs/practice/AI-CONVENTIONS.adoc b/docs/practice/AI-CONVENTIONS.adoc index 9659f62..5eaf9b5 100644 --- a/docs/practice/AI-CONVENTIONS.adoc +++ b/docs/practice/AI-CONVENTIONS.adoc @@ -64,7 +64,7 @@ MAINTENANCE-CHECKLIST.a2ml, or SOFTWARE-DEVELOPMENT-APPROACH.a2ml in the reposit | Banned | Use Instead | |---------------------|--------------------| -| TypeScript | ReScript | +| TypeScript | AffineScript | | Node.js / yarn | Bun (tier 1); Deno, pnpm, npm as fallbacks | | Go | Rust | | Python | Julia / Rust | diff --git a/geo/RSR_OUTLINE.adoc b/geo/RSR_OUTLINE.adoc index ede631f..4fa8ae5 100644 --- a/geo/RSR_OUTLINE.adoc +++ b/geo/RSR_OUTLINE.adoc @@ -166,7 +166,7 @@ project/ === Prohibited * Python outside `salt/` directory -* TypeScript/JavaScript (use ReScript) +* TypeScript/JavaScript (use AffineScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) diff --git a/studio/RSR_OUTLINE.adoc b/studio/RSR_OUTLINE.adoc index ede631f..4fa8ae5 100644 --- a/studio/RSR_OUTLINE.adoc +++ b/studio/RSR_OUTLINE.adoc @@ -166,7 +166,7 @@ project/ === Prohibited * Python outside `salt/` directory -* TypeScript/JavaScript (use ReScript) +* TypeScript/JavaScript (use AffineScript) * CUE (use Guile/Nickel) * `Dockerfile` (use `Containerfile`) From 48939eb706ed3802b7d92e1f336e85afbc9120d2 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:23 +0000 Subject: [PATCH 18/19] docs: name AffineScript in place of ReScript Owner ruling: the client-libraries row and the Tier 1 lists now name AffineScript, and ReScript joins the banned list in .claude/CLAUDE.md. --- .claude/CLAUDE.md | 4 ++-- analytics/RSR_OUTLINE.adoc | 2 +- beam/RSR_OUTLINE.adoc | 2 +- docs/RSR_OUTLINE.adoc | 2 +- docs/lithoglyph/RSR_OUTLINE.adoc | 2 +- geo/RSR_OUTLINE.adoc | 2 +- studio/RSR_OUTLINE.adoc | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 4bcb594..8220adc 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -64,12 +64,12 @@ svalinn (TLS) → lith-http (Elixir :4000) → BEAM NIFs → core-zig (C ABI) - **Factor** — GQL runtime (concatenative) - **Elixir** — OTP control plane, HTTP API - **Rust** — BEAM NIF (Rustler), studio backend -- **ReScript** — Client libraries (if needed) +- **AffineScript** — Client libraries (if needed) - **Bun** — JavaScript runtime and package management - **Nickel** — Configuration ### BANNED -- TypeScript, Python, Go, Java, Node.js, yarn +- TypeScript, ReScript, Python, Go, Java, Node.js, yarn - JS runtime/package manager: Bun first; Deno, pnpm, npm as fallbacks ## Build Commands diff --git a/analytics/RSR_OUTLINE.adoc b/analytics/RSR_OUTLINE.adoc index 4fa8ae5..bcc624a 100644 --- a/analytics/RSR_OUTLINE.adoc +++ b/analytics/RSR_OUTLINE.adoc @@ -146,7 +146,7 @@ project/ === Language Tiers -* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, ReScript +* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, AffineScript * **Tier 2** (Silver): Nickel, Racket, Guile Scheme, Nix * **Infrastructure**: Guix channels, derivations diff --git a/beam/RSR_OUTLINE.adoc b/beam/RSR_OUTLINE.adoc index 4fa8ae5..bcc624a 100644 --- a/beam/RSR_OUTLINE.adoc +++ b/beam/RSR_OUTLINE.adoc @@ -146,7 +146,7 @@ project/ === Language Tiers -* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, ReScript +* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, AffineScript * **Tier 2** (Silver): Nickel, Racket, Guile Scheme, Nix * **Infrastructure**: Guix channels, derivations diff --git a/docs/RSR_OUTLINE.adoc b/docs/RSR_OUTLINE.adoc index 8b39a5d..367ec3f 100644 --- a/docs/RSR_OUTLINE.adoc +++ b/docs/RSR_OUTLINE.adoc @@ -206,7 +206,7 @@ project/ === Language Tiers -* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, ReScript, Gleam +* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, AffineScript, Gleam * **Tier 2** (Silver): Nickel, Guile Scheme, Idris2, OCaml * **Infrastructure**: Guix channels, derivations, Julia batch scripts diff --git a/docs/lithoglyph/RSR_OUTLINE.adoc b/docs/lithoglyph/RSR_OUTLINE.adoc index 4fa8ae5..bcc624a 100644 --- a/docs/lithoglyph/RSR_OUTLINE.adoc +++ b/docs/lithoglyph/RSR_OUTLINE.adoc @@ -146,7 +146,7 @@ project/ === Language Tiers -* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, ReScript +* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, AffineScript * **Tier 2** (Silver): Nickel, Racket, Guile Scheme, Nix * **Infrastructure**: Guix channels, derivations diff --git a/geo/RSR_OUTLINE.adoc b/geo/RSR_OUTLINE.adoc index 4fa8ae5..bcc624a 100644 --- a/geo/RSR_OUTLINE.adoc +++ b/geo/RSR_OUTLINE.adoc @@ -146,7 +146,7 @@ project/ === Language Tiers -* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, ReScript +* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, AffineScript * **Tier 2** (Silver): Nickel, Racket, Guile Scheme, Nix * **Infrastructure**: Guix channels, derivations diff --git a/studio/RSR_OUTLINE.adoc b/studio/RSR_OUTLINE.adoc index 4fa8ae5..bcc624a 100644 --- a/studio/RSR_OUTLINE.adoc +++ b/studio/RSR_OUTLINE.adoc @@ -146,7 +146,7 @@ project/ === Language Tiers -* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, ReScript +* **Tier 1** (Gold): Rust, Elixir, Zig, Ada, Haskell, AffineScript * **Tier 2** (Silver): Nickel, Racket, Guile Scheme, Nix * **Infrastructure**: Guix channels, derivations From 13efc51754390b0d92e76b090bee0ed342a361f6 Mon Sep 17 00:00:00 2001 From: CLAUDE <355856132+HoTT-stuff@users.noreply.github.com> Date: Sat, 5 Dec 2026 08:42:23 +0000 Subject: [PATCH 19/19] chore(mise): replace go-task with just The recipes live in the Justfile, so go-task is not needed. --- mise.toml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mise.toml b/mise.toml index c60f375..2638900 100644 --- a/mise.toml +++ b/mise.toml @@ -12,7 +12,6 @@ just = "latest" # Package managers pnpm = "latest" cargo = "latest" -go-task = "latest" # Formatting & Linting shfmt = "latest" @@ -33,10 +32,6 @@ gnu-grep = "latest" [env] # Common environment variables -# Task runner alias -[alias] -task = "go-task" - [tasks.setup] description = "Install pinned JS dev tools (Prettier) from bun.lock" run = "bun install --frozen-lockfile"