From af094dd85fa2f1b8b122acd020ff8f2b2a66e170 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 00:55:00 +0000 Subject: [PATCH 1/5] 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..2b49e26f --- /dev/null +++ b/bun.lock @@ -0,0 +1,15 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "gitbot-fleet", + "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..ffc90e87 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "gitbot-fleet", + "private": true, + "devDependencies": { + "prettier": "3.10.1" + } +} From a11331d7cd4c70b955c43718a0404a71069c4602 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 05:53:05 +0000 Subject: [PATCH 2/5] chore(js): stop ignoring JS lock files and commit all three LANGUAGE-POLICY section 1.4 needs bun.lock, deno.lock and pnpm-lock.yaml in the tree so the governance js-runtimes checks can run frozen installs. Removes the lock entries from .gitignore and adds the regenerated locks. --- .gitignore | 1 - deno.lock | 19 +++++++++++++++++++ package.json | 8 +------- pnpm-lock.yaml | 24 ++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 deno.lock create mode 100644 pnpm-lock.yaml diff --git a/.gitignore b/.gitignore index 1ea4a3a6..ee55cd9b 100644 --- a/.gitignore +++ b/.gitignore @@ -144,7 +144,6 @@ package-lock.json **/package-lock.json bun.lockb yarn.lock -pnpm-lock.yaml .npmrc *.db *.db-journal 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 ffc90e87..1c83e09c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1 @@ -{ - "name": "gitbot-fleet", - "private": true, - "devDependencies": { - "prettier": "3.10.1" - } -} +{"devDependencies":{"prettier":"3.10.1"},"name":"gitbot-fleet","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 37f21c64e7e8c03ca0e5904598938aa4934c9ac9 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 06:20:16 +0000 Subject: [PATCH 3/5] 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 924f9da8e5c184354ab717512aeb3eb756456f3b Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 11:58:01 +0000 Subject: [PATCH 4/5] 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 1c83e09c..50538b75 100644 --- a/package.json +++ b/package.json @@ -1 +1 @@ -{"devDependencies":{"prettier":"3.10.1"},"name":"gitbot-fleet","private":true} +{"devDependencies":{"prettier":"3.10.1"},"license":"MPL-2.0","name":"gitbot-fleet","private":true} From c69a9826091c8742801ea9f9ab205225c2c6b48e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 20:27:27 +0000 Subject: [PATCH 5/5] chore(mise): real tasks, no Prettier/JS lockfiles Define build/test/lint/fmt as [tasks.*] run from robot-repo-automaton (the root has no Cargo.toml). Drop the Prettier setup and its bun, deno and pnpm lockfiles: Prettier needs a JS runtime, would reformat canonical JSON, and a root pnpm-lock.yaml trips Rhodibot's ban list. lint and fmt use cargo fmt. --- .gitignore | 1 + .prettierignore | 4 ---- bun.lock | 15 --------------- deno.lock | 19 ------------------- mise.toml | 23 +++++++++++++++++++---- package.json | 1 - pnpm-lock.yaml | 24 ------------------------ 7 files changed, 20 insertions(+), 67 deletions(-) delete mode 100644 .prettierignore delete mode 100644 bun.lock delete mode 100644 deno.lock delete mode 100644 package.json delete mode 100644 pnpm-lock.yaml diff --git a/.gitignore b/.gitignore index ee55cd9b..1ea4a3a6 100644 --- a/.gitignore +++ b/.gitignore @@ -144,6 +144,7 @@ package-lock.json **/package-lock.json bun.lockb yarn.lock +pnpm-lock.yaml .npmrc *.db *.db-journal diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index bd4ef62d..00000000 --- a/.prettierignore +++ /dev/null @@ -1,4 +0,0 @@ -# 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/bun.lock b/bun.lock deleted file mode 100644 index 2b49e26f..00000000 --- a/bun.lock +++ /dev/null @@ -1,15 +0,0 @@ -{ - "lockfileVersion": 2, - "configVersion": 1, - "workspaces": { - "": { - "name": "gitbot-fleet", - "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 deleted file mode 100644 index 245355dc..00000000 --- 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 a0b07f07..6e201cdb 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 tasks. The root has no Cargo.toml, so run from the crate. +# Prettier is not a mise tool: it needs Node, which is banned by +# LANGUAGE-POLICY, and canonical JSON here must not be reformatted. +[tasks.build] +dir = "robot-repo-automaton" +run = "cargo build --release" + +[tasks.test] +dir = "robot-repo-automaton" +run = "cargo test" + +[tasks.lint] +dir = "robot-repo-automaton" +run = "cargo fmt --check" + +[tasks.fmt] +dir = "robot-repo-automaton" +run = "cargo fmt" diff --git a/package.json b/package.json deleted file mode 100644 index 50538b75..00000000 --- a/package.json +++ /dev/null @@ -1 +0,0 @@ -{"devDependencies":{"prettier":"3.10.1"},"license":"MPL-2.0","name":"gitbot-fleet","private":true} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml deleted file mode 100644 index 2d39affb..00000000 --- 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: {}