Repository navigation
Expand file tree
/
Copy path.cursorrules
More file actions
53 lines (43 loc) · 2.03 KB
/
Copy path.cursorrules
File metadata and controls
53 lines (43 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
# Authoritative source: docs/practice/AI-CONVENTIONS.adoc
# Read 0-AI-MANIFEST.deed in the repo root FIRST for canonical file locations.
# LICENSE
# All original code: MPL-2.0 (SPDX header required on every file).
# Copyright: Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
# METADATA FILES
# .deed metadata files go in .machine_readable/ ONLY.
# BANNED PATTERNS
# Idris2: believe_me, assert_total, assert_smaller, unsafePerformIO
# Haskell: unsafeCoerce, unsafePerformIO, undefined, error
# OCaml: Obj.magic, Obj.repr, Obj.obj
# Coq: Admitted
# Lean: sorry
# Rust: transmute (unless FFI with // SAFETY: comment)
# JS RUNTIMES — ordered preference, reach for the first that can do the job
# (standards/3-practice/LANGUAGE-POLICY.adoc section 1, ruled 2026-07-29)
# 1. Bun default for all new work; runs .ts directly, no build step
# 2. Deno being REMOVED per owner ruling 2026-08-26; migrate to Bun
# 3. pnpm only where an upstream toolchain needs a node_modules layout
# 4. npm last resort; permitted, never preferred — a noted decision
# TypeScript is EJECTED for new application code — AffineScript
# (JaffaScript face) is the language. TypeScript survives only where
# AffineScript cannot reach (narrow transitional carve-out). Do NOT
# migrate Bun to Deno — that inverts the current ruling.
# BANNED LANGUAGES
# Go -> use Rust
# Python -> use Julia or Rust
# CONTAINERS
# Runtime: Podman (never Docker)
# File: Containerfile (never Dockerfile)
# Base: cgr.dev/chainguard/wolfi-base:latest
# ABI/FFI STANDARD
# ABI definitions: Idris2 with dependent types (src/interface/abi/)
# FFI implementation: Zig with C ABI (src/interface/ffi/)
# Generated C headers: src/interface/generated/
# BUILD SYSTEM
# Use just (Justfile) for all build, test, lint, and format tasks.
# CODE STYLE
# Use descriptive variable names.
# Annotate and document all files.
# Add SPDX-License-Identifier headers to every source file.