Files
aji/docs/rfcs/0000-template.md
T
dev 6eceb4405b E0-1: Agent Reference Bundle and Phase 2 baseline
- docs/agent/bundle.txt: minimal AIR reference by file and section
  (grammar, instructions, types, traps, verifier rules, resources,
  effects, capabilities, intrinsics, heap/regions, unsafe, runtime
  contract, diagnostics and registries); syntax-example.air verifies
  and runs
- zig build agent-reference: deterministic bundle and report (files,
  sections, bytes, lines, words); section extraction ignores fenced code
- tools/agent_bundle_tokens.py: cl100k_base, o200k_base and Qwen2.5 BPE
  counts; growth warnings >10 % and review >20 % against history.json
- baseline after Phase 2: 104 250 bytes, 16 197 words, ~27.3k tokens
- CI builds the bundle and counts tokens (non-blocking)
- evaluation protocol 0.2: benchmark families, Aji/AIR and Aji/source
  conditions, 36-run engineering smoke test, order of work
- RFC template and AGENTS.md: report bundle growth
2026-10-04 15:44:26 +03:00

76 lines
1.9 KiB
Markdown

# RFC NNNN: Title
Status: Draft
Scope: —
Language version: 0.x
Supersedes: —
<!-- Status values and lifecycle: README.md. On acceptance, integrate the normative rules into docs/spec/ in the same change. -->
## Motivation
Which of the mission goals (AGENTS.md) does this improve, and what fails today without it?
## Precise invariant
The property preserved or established, stated so that a verifier could check it.
## Normative rule changes
Exact MUST/SHOULD/MAY text to add to or replace in `docs/spec/`, with file and section.
## Verifier implications
New abstract state, transfer functions, and complexity bound.
## Interpreter / runtime implications
Runtime rule, if any. Deterministic interpreter behavior.
## AIR changes
For each new or changed instruction: operand types, result types, ownership effects, memory effects, concurrency effects, capability/effect requirements, trap behavior, verifier transfer function. Explain why it is not syntax sugar.
## Valid example
```text
```
## Rejected example
```text
```
Expected diagnostic:
```json
```
## Diagnostics impact
New or changed codes in `docs/reference/error-codes.md`.
## Spec integration
Files and sections of `docs/spec/` and `docs/reference/` that receive the normative rules on acceptance.
## Compatibility and migration
Which AIR format version is affected. A change to the meaning of an existing construct requires a new format version (spec 07 §8.7).
## Agent complexity impact
Required for semantic features (spec 14 §6):
- New concepts the agent must understand:
- New state the verifier must track:
- Additional syntax or instructions:
- Interaction with existing features:
- 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):
## Alternatives considered
## Unresolved questions