-
-
Notifications
You must be signed in to change notification settings - Fork 0
policy: canon's Bun row contradicted Enforcement Rule 1 #673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -85,7 +85,7 @@ for the canonical statement. | |||||
| | Language/Tool | Use Case | Notes | | ||||||
| |---------------|----------|-------| | ||||||
| | **AffineScript** | Primary application code | Compiles to typed-wasm; affine/linear types. Replaces ReScript across the estate (RS/TS/JS → AffineScript → typed-wasm). | | ||||||
| | **Bun** | JS/TS runtime & package management (tier 1) | Default for all new work. Executes `.ts` directly, no build step. Uses an npm-compatible `package.json` plus `bun.lock` — both are expected, not anti-patterns. | | ||||||
| | **Bun** | JS runtime & package management (tier 1) | Default for all new work. Runs compiled ESM/JS directly — no bundler step. Uses an npm-compatible `package.json` plus `bun.lock` — both are expected, not anti-patterns. | | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MEDIUM RISK Suggestion: The table formatting for the Bun row is inconsistent with the rest of the file and will likely break the Markdown rendering. Additionally, the execution note should be updated to include
Suggested change
|
||||||
| | **Deno** | JS/TS runtime (tier 2) | Grandfathered. Existing Deno projects need not migrate; prefer over pnpm/npm where Bun cannot be used. | | ||||||
| | **Rust/SPARK** | Performance-critical, systems, WASM, CLI tools, safety-critical | "Rust" always means "Rust/SPARK" per terminology note above. Preferred over Ada where reachable. | | ||||||
| | **Zig** | **APIs, FFIs, gateways, client SDKs (estate default 2026-05-28)**, memory-safe systems where Rust/SPARK is overkill | Zig is the estate-wide default for all API/FFI/gateway/client-SDK work unless explicitly special-cased; Idris2 owns ABIs. Completed V-lang→Zig migration 2026-05-28. | | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Scope Enforcement Rule 2 to Deno.
Line 88 requires Bun projects to track both
package.jsonandbun.lock, but Line 187 still says “No package.json for runtime deps”. Because Bun is the default for new work, this gives mutually exclusive instructions. Scope Rule 2 to Deno so agents do not remove the required Bun manifest.Suggested correction
🧰 Tools
🪛 LanguageTool
[misspelling] ~88-~88: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...ESM/JS directly — no bundler step. Uses an npm-compatible
package.jsonplus `bun...(EN_A_VS_AN)
[misspelling] ~88-~88: This word is normally spelled as one.
Context: ...lus
bun.lock— both are expected, not anti-patterns. | | Deno | JS/TS runtime (tier 2) ...(EN_COMPOUNDS_ANTI_PATTERNS)
🤖 Prompt for AI Agents