From 9d8071574c144223d351906fe28ad3b9739dc0be Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 00:55:20 +0000 Subject: [PATCH 1/7] 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 +++++++++++++++ mise.toml | 27 ++++----------------------- package.json | 7 +++++++ 3 files changed, 26 insertions(+), 23 deletions(-) create mode 100644 bun.lock create mode 100644 package.json diff --git a/bun.lock b/bun.lock new file mode 100644 index 00000000..48a18364 --- /dev/null +++ b/bun.lock @@ -0,0 +1,15 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "valence-shell", + "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/mise.toml b/mise.toml index 6dd983f6..cc8d7ea2 100644 --- a/mise.toml +++ b/mise.toml @@ -1,34 +1,21 @@ [tools] # Language runtimes -node = "latest" -python = "latest" rust = "latest" -go = "latest" zig = "latest" -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 @@ -38,20 +25,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 00000000..5e404fc2 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "valence-shell", + "private": true, + "devDependencies": { + "prettier": "3.10.1" + } +} From a1a9e04a61975563c30e8e5d0a7b3070723b9783 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 02:36:01 +0000 Subject: [PATCH 2/7] chore(js): regenerate package.json and locks with js-runtimes Makes package.json JCS-canonical and adds deno.lock and pnpm-lock.yaml next to bun.lock, as LANGUAGE-POLICY section 1.4 requires. Fixes the governance js-runtimes checks. --- deno.lock | 19 +++++++++++++++++++ package.json | 8 +------- pnpm-lock.yaml | 24 ++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 deno.lock create mode 100644 pnpm-lock.yaml diff --git a/deno.lock b/deno.lock new file mode 100644 index 00000000..245355dc --- /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/package.json b/package.json index 5e404fc2..2d031840 100644 --- a/package.json +++ b/package.json @@ -1,7 +1 @@ -{ - "name": "valence-shell", - "private": true, - "devDependencies": { - "prettier": "3.10.1" - } -} +{"devDependencies":{"prettier":"3.10.1"},"name":"valence-shell","private":true} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 00000000..2d39affb --- /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 fec592bda874ea985d81f738e1ace078a6dafb18 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 06:39:47 +0000 Subject: [PATCH 3/7] 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 00000000..bd4ef62d --- /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 cc8d7ea2..a0b07f07 100644 --- a/mise.toml +++ b/mise.toml @@ -34,5 +34,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 b1ff8c9a35d380637bbe9c0f7f66f79ccf4c0fa9 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 06:40:09 +0000 Subject: [PATCH 4/7] 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 25e49a48..f19cf07a 100644 --- a/.machine_readable/root-allow.txt +++ b/.machine_readable/root-allow.txt @@ -1,2 +1,9 @@ .hypatia-ignore CLAUDE.md + +# ─── 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 dab1295e340966e2a8abdf1d7a9348cfd8e8eb98 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 10:06:41 +0000 Subject: [PATCH 5/7] chore(mise): provision Bun ahead of Deno in .mise.toml LANGUAGE-POLICY puts Bun first, then Deno. .mise.toml listed deno and no bun, failing the "environment provisions Bun first" guard. It has no banned runtimes to remove. --- .mise.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.mise.toml b/.mise.toml index bda9d2e6..1ccde07d 100644 --- a/.mise.toml +++ b/.mise.toml @@ -3,6 +3,7 @@ # = "asdf version management" # = "Run asdf install to install all tools" # = "Primary runtime" +bun = "latest" deno = "2.1.4" zig = "0.13.0" # = "Language runtimes" From 60abf690eacce9239cf89c02fd3bd0ce58bbb890 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 10:47:25 +0000 Subject: [PATCH 6/7] fix(mise): define build/test/lint/fmt as tasks, scope Prettier to files it manages [alias] holds tool-version aliases, so the commands were never runnable. Move them to [tasks], run cargo from impl/rust-cli, and ignore vendored, generated and estate-stamped paths so lint passes on a clean tree. --- .prettierignore | 10 ++++++++++ mise.toml | 23 +++++++++++++++++++---- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/.prettierignore b/.prettierignore index bd4ef62d..2117be21 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,13 @@ # Prettier must not reformat them. package.json pnpm-lock.yaml + +# Vendored, generated or estate-stamped content has no Prettier baseline: +# reformatting it would diverge from its source of truth. +alkahest-shell-transmuter/ +proofs/lean4/lake-manifest.json +.github/ +.claude/ +docs/wiki/ +docs/*.md +CLAUDE.md diff --git a/mise.toml b/mise.toml index a0b07f07..27c4ce55 100644 --- a/mise.toml +++ b/mise.toml @@ -32,7 +32,22 @@ 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 ." + +# Runnable commands (the [alias] table is for tool-version aliases only) +[tasks.build] +description = "Build the Rust CLI" +dir = "impl/rust-cli" +run = "cargo build --release" + +[tasks.test] +description = "Test the Rust CLI" +dir = "impl/rust-cli" +run = "cargo test" + +[tasks.lint] +description = "Check formatting with the pinned Prettier" +run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ." + +[tasks.fmt] +description = "Format with the pinned Prettier" +run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ." From b2382c73e02e4ebb3e780bac280e109c551a1fe8 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 12:08:37 +0000 Subject: [PATCH 7/7] 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 2d031840..401960b4 100644 --- a/package.json +++ b/package.json @@ -1 +1 @@ -{"devDependencies":{"prettier":"3.10.1"},"name":"valence-shell","private":true} +{"devDependencies":{"prettier":"3.10.1"},"license":"MPL-2.0","name":"valence-shell","private":true}