From a18f1492165369ce1ea55309b4142966201f1d4b Mon Sep 17 00:00:00 2001 From: "A.Shakhmatov" Date: Mon, 5 Oct 2026 21:43:16 +0300 Subject: [PATCH] docs: features are vertical through .aji; source-side complexity budget; M/C as regression corpus (owner decisions after P6A-9) --- AGENTS.md | 6 +++++- CONTRIBUTING.md | 1 + docs/rfcs/0000-template.md | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 7e0ffc7..18c3d61 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -111,7 +111,11 @@ Any change involving ownership, aliasing, atomics, tasks, cancellation, resource ## RFCs -Every RFC introducing a semantic feature includes `## Agent complexity impact` (spec 14 §6): new concepts, new verifier state, new syntax or instructions, interactions, effect on repairability, whether existing primitives suffice, and the Agent Reference Bundle growth (`zig build agent-reference`, `docs/agent/README.md`). Normative text an agent needs to write AIR enters the bundle through `docs/agent/bundle.txt`. +Every RFC introducing a semantic feature includes `## Agent complexity impact` (spec 14 §6): new concepts, new verifier state, new syntax or instructions, interactions, effect on repairability, whether existing primitives suffice, and the bundle growth (`zig build agent-reference`, `docs/agent/README.md`). Normative text an agent needs to write AIR enters the AIR bundle through `docs/agent/bundle.txt`. + +**Features are vertical (owner decision after P6A-9).** Agents write `.aji`; AIR is the machine-facing layer. A new semantic feature lands in one RFC and one phase through every layer: spec → AIR → verifier → interpreter → `.aji` syntax and lowering (spec 15) → Quick Reference → conformance tests in AIR and in `.aji`. A feature with no source syntax is not done. Its `Agent complexity impact` reports the source-side budget: Quick Reference growth, Source Reference Bundle growth (`tools/agent_bundle_tokens.py --source`), new concepts, new diagnostics and new syntax forms. The budget is not a hard limit; growth is justified, not silent. + +**M and C are a regression corpus.** The former smoke tasks M and C (now dev material) may show that nothing broke: no new diagnostics, no growth of the source/AIR ratio. They never decide a semantic question. Never tune the language to them. ## Changes to AIR diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 952d15a..80db10e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -65,6 +65,7 @@ Everything under `src/` except `main.zig` is part of the trusted computing base - [ ] Memory/concurrency/FFI/unsafe changes: the 8-point checklist from `AGENTS.md`. - [ ] AIR changes: the instruction contract from `AGENTS.md` / spec 07 §4. - [ ] Concurrency changes: deterministic scheduler tests and randomized schedule stress tests. +- [ ] Semantic features: `.aji` syntax and lowering (spec 15), the Quick Reference updated and its examples checked, `.aji` run and reject tests, `tools/source_coverage.py` passing with the new constructs listed. ## Commits diff --git a/docs/rfcs/0000-template.md b/docs/rfcs/0000-template.md index 91ae05b..dff846c 100644 --- a/docs/rfcs/0000-template.md +++ b/docs/rfcs/0000-template.md @@ -69,6 +69,9 @@ Required for semantic features (spec 14 §6): - Expected effect on repairability: - Could existing primitives express it? - Agent Reference Bundle growth (`zig build agent-reference` + `tools/agent_bundle_tokens.py`, tokens before → after; > 20 % needs a justification): +- `.aji` syntax for the feature (spec 15), new syntax forms: +- Quick Reference growth and Source Reference Bundle growth (`tools/agent_bundle_tokens.py --source`, tokens before → after per group): +- New diagnostics an agent sees in source: ## Alternatives considered