diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 0ff1b94..8220adc 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -64,13 +64,13 @@ 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, npm -- Deno (use Bun) +- TypeScript, ReScript, 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 1cf2861..46aff42 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -36,8 +36,8 @@ Copyright (c) Jonathan D.A. Jewell ## Banned Languages -- No TypeScript (use ReScript) -- No Node.js / npm / bun (use Deno) +- 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/.github/dependabot.yml b/.github/dependabot.yml index 0b66a8b..acfbf4a 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" @@ -45,11 +50,11 @@ updates: schedule: interval: "weekly" - # Node.js/npm - - package-ecosystem: "npm" + # 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: "/" - schedule: - interval: "weekly" + multi-ecosystem-group: "js-locks" + patterns: ["*"] # Python/pip - package-ecosystem: "pip" 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 32565bc..a038499 100644 --- a/.machine_readable/ai/.clinerules +++ b/.machine_readable/ai/.clinerules @@ -24,8 +24,8 @@ # Rust: transmute (unless FFI with // SAFETY: comment) # BANNED LANGUAGES -# TypeScript -> ReScript -# Node.js / npm / bun -> Deno +# 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 5255a80..08a58c9 100644 --- a/.machine_readable/ai/.cursorrules +++ b/.machine_readable/ai/.cursorrules @@ -23,8 +23,8 @@ # Rust: transmute (unless FFI with // SAFETY: comment) # BANNED LANGUAGES -# TypeScript -> use ReScript -# Node.js / npm / bun -> use Deno +# 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 32565bc..a038499 100644 --- a/.machine_readable/ai/.windsurfrules +++ b/.machine_readable/ai/.windsurfrules @@ -24,8 +24,8 @@ # Rust: transmute (unless FFI with // SAFETY: comment) # BANNED LANGUAGES -# TypeScript -> ReScript -# Node.js / npm / bun -> Deno +# 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/.machine_readable/root-allow.txt b/.machine_readable/root-allow.txt index cae1ccb..6c834f2 100644 --- a/.machine_readable/root-allow.txt +++ b/.machine_readable/root-allow.txt @@ -139,3 +139,9 @@ 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) +node_modules/ # generated by `bun install` (lint/fmt aliases); gitignored, never tracked +.prettierignore # keeps Prettier off the JCS package.json; Prettier reads it from the root diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..49c40e2 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: MPL-2.0 +# package.json is JCS-canonical (LANGUAGE-POLICY §1.4); Prettier must not reformat it. +package.json 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/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/analytics/RSR_OUTLINE.adoc b/analytics/RSR_OUTLINE.adoc index ede631f..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 @@ -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..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 @@ -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/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/docs/RSR_OUTLINE.adoc b/docs/RSR_OUTLINE.adoc index 2c0ae5c..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 @@ -226,10 +226,10 @@ project/ === Prohibited * Python outside `salt/` directory -* TypeScript/JavaScript (use ReScript) +* TypeScript/JavaScript (use AffineScript) * 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/lithoglyph/RSR_OUTLINE.adoc b/docs/lithoglyph/RSR_OUTLINE.adoc index ede631f..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 @@ -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 bf53db7..5eaf9b5 100644 --- a/docs/practice/AI-CONVENTIONS.adoc +++ b/docs/practice/AI-CONVENTIONS.adoc @@ -64,8 +64,8 @@ MAINTENANCE-CHECKLIST.a2ml, or SOFTWARE-DEVELOPMENT-APPROACH.a2ml in the reposit | Banned | Use Instead | |---------------------|--------------------| -| TypeScript | ReScript | -| Node.js / npm / bun | Deno | +| 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..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 @@ -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/mise.toml b/mise.toml index bd7261e..2638900 100644 --- a/mise.toml +++ b/mise.toml @@ -1,38 +1,24 @@ [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" +bun = "1.4" +just = "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 +28,22 @@ 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 ." + +[tasks.setup] +description = "Install pinned JS dev tools (Prettier) from bun.lock" +run = "bun install --frozen-lockfile" + +[tasks.build] +run = "just build" + +[tasks.test] +run = "just test" + +[tasks.lint] +run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ." + +[tasks.fmt] +run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ." diff --git a/package.json b/package.json new file mode 100644 index 0000000..5df58e3 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "devDependencies": { + "prettier": "3.10.1" + }, + "license": "MPL-2.0", + "name": "lithoglyph", + "private": true +} diff --git a/studio/RSR_OUTLINE.adoc b/studio/RSR_OUTLINE.adoc index ede631f..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 @@ -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`)