|
1 | 1 | # SPDX-License-Identifier: MPL-2.0 |
| 2 | +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk> |
2 | 3 |
|
3 | | -# AI Assistant Instructions |
| 4 | +# AI Assistant Instructions — nextgen-typing |
4 | 5 |
|
5 | | -## Repository Focus |
6 | | -- `rsr-template-repo` is treated as a Rhodium Standard Repository; obey the Rhodium policies and keep `.machine_readable/` authoritative. |
7 | | -- All machine-readable content lives under `.machine_readable/` — state files (a2ml), bot directives, and contractiles. |
8 | | -- Prefer to keep generated files out of source control, and regenerate them with the documented commands before committing. |
| 6 | +## ⛔ Placement Boundary (read first) |
| 7 | + |
| 8 | +nextgen-typing is the **coordination repo** for the type-theory pipeline |
| 9 | +(katagoria → typell → typed-wasm → PanLL). It is NOT a code repo: no compiler, |
| 10 | +kernel, language, or single-project code — and no single-project proofs, |
| 11 | +benchmarks, or tests. |
| 12 | + |
| 13 | +If content implements or proves something about ONE project, it belongs in that |
| 14 | +project's repo. Use the routing table: |
| 15 | +- `.machine_readable/bot_directives/placement.a2ml` (authoritative, CI-enforced) |
| 16 | +- `AGENTS.md` / `CLAUDE.md` (human-readable) |
| 17 | + |
| 18 | +Only these belong here: coordination/architecture docs, `.machine_readable/` |
| 19 | +state, estate governance/CI scaffold, and CROSS-project proofs (importing ≥2 |
| 20 | +constituent repos) under `verification/proofs/`. |
9 | 21 |
|
10 | 22 | ## Workflow |
11 | | -1. Inspect `.machine_readable/6a2/STATE.a2ml` for blockers and next actions. |
12 | | -2. Respect any constraints listed inside `.machine_readable/AGENTIC.a2ml` when tooling changes are requested. |
13 | | -3. After finishing edits, update STATE with your outcomes and commit with a concise, imperative message. |
14 | | - |
15 | | -## Delivery Promises |
16 | | -- Mention in summaries whether STATE, `.machine_readable/contractiles/`, or `.machine_readable/bot_directives/` changed. |
17 | | -- Keep this file in sync with the repository's status; update it if the governance changes. |
18 | | - |
19 | | -[foundational-integrations] |
20 | | -# These tools form the architectural floor for all hyperpolymath repos. |
21 | | -# Integrate them incrementally as the project matures. |
22 | | - |
23 | | -proven = "Formally verified safety library — replace raw string/JSON/URL/crypto ops" |
24 | | -panic-attacker = "Static analysis — run `just assail` before every commit" |
25 | | -feedback-o-tron = "Autonomous bug filing — auto-report upstream dependency failures" |
26 | | -verisimdb = "Cross-repo analytics — emit scan results and build metrics" |
27 | | -vexometer = "Irritation surface analysis — measure friction in CLI/UI tools" |
28 | | -hypatia = "Neurosymbolic CI/CD — safety-triangle routing for automated fixes" |
29 | | -boj-server = "MCP gateway — all external service integrations route through BoJ" |
30 | | - |
31 | | -[floor-raise-checklist] |
32 | | -step-1 = "Ensure 0-AI-MANIFEST.a2ml exists at repo root" |
33 | | -step-2 = "Ensure Mustfile.a2ml + Trustfile.a2ml + Dustfile.a2ml in .machine_readable/contractiles/" |
34 | | -step-3 = "Add `assail` recipe to Justfile and wire into pre-commit hook" |
35 | | -step-4 = "Add proven integration reference in .machine_readable/integrations/" |
36 | | -step-5 = "Add verisimdb feed configuration" |
37 | | -step-6 = "Add feedback-o-tron integration for upstream reporting" |
38 | | -step-7 = "Add vexometer hooks for friction measurement (CLI/UI repos)" |
| 23 | + |
| 24 | +1. Read `0-AI-MANIFEST.a2ml`, then `.machine_readable/6a2/STATE.a2ml` for |
| 25 | + blockers and next actions. |
| 26 | +2. Respect `.machine_readable/6a2/AGENTIC.a2ml` constraints. |
| 27 | +3. Before creating any file, confirm placement against `placement.a2ml`. |
| 28 | +4. After edits, update STATE with outcomes; commit with a concise message. |
| 29 | + |
| 30 | +## Conventions |
| 31 | + |
| 32 | +- Licence MPL-2.0 + SPDX header on every file (never AGPL). |
| 33 | +- `.a2ml` state files live in `.machine_readable/` only, never the repo root. |
| 34 | +- Banned languages: TypeScript→ReScript, npm/Node→Deno, Go→Rust, Python→Julia/Rust. |
| 35 | +- Containers: Podman + `Containerfile`. Build/test via `just`. |
| 36 | +- No unsound escape hatches: believe_me, assert_total, postulate, sorry, |
| 37 | + Admitted, unsafeCoerce, Obj.magic. |
| 38 | +- Full rules: `docs/practice/AI-CONVENTIONS.adoc`. |
0 commit comments