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
This commit is contained in:
dev committed 2026-10-04 15:44:26 +03:00
1 parent 72192c2331
commit 6eceb4405b
13 files changed
+470 -11

No files matched your search

+53 -3
View File
@@ -1,7 +1,8 @@
# Aji Agent Language Evaluation Protocol
Version: 0.1
Version: 0.2
Status: Proposed
Changes in 0.2: T01–T10 are benchmark families (§9); Aji conditions `Aji/AIR` and `Aji/source` (§2); engineering smoke test before the pilot (§39a); stage order (§30a).
Purpose: empirical validation of the Aji language hypothesis (spec 14)
# 1. Goal
@@ -48,6 +49,15 @@ C
C is useful as a low-level baseline but is not required for every experiment.
Aji is evaluated as two separate conditions:
```text
Aji/AIR the agent writes text AIR directly
Aji/source the agent writes .aji source lowered to AIR (from Phase 6)
```
Results MUST be labelled with the condition. Comparing the two answers whether an agent needs a high-level source language at all, or whether AIR is the better agent-facing interface while `.aji` serves humans.
## Model capability
At least four capability classes:
@@ -241,7 +251,9 @@ Broken tasks are removed before results are examined.
---
# 9. Task classes
# 9. Benchmark families
T01–T10 below are **benchmark families**, not concrete tasks. Each family names the properties it exercises and gives an illustrative task. The private corpus contains concrete tasks that instantiate a family with different wire formats, storage models, requirements and hidden mutations (for example a family T03 task might be "A17 Segmented Journal"). The published descriptions are therefore never the evaluated tasks, which keeps this protocol public without disclosing the held-out corpus (§7, §29).
## T01 — Binary Frame Decoder
@@ -1309,6 +1321,28 @@ No claims about concurrency yet.
---
# 30a. Order of work
```text
E0-1 Agent Reference Bundle, baseline after Phase 2
↓
Phase 3 structured concurrency
↓
second bundle measurement
↓
private benchmark repository (in parallel, outside this repository)
↓
E0-3 harness
↓
engineering smoke test (§39a)
↓
Stage A pilot on Aji/AIR (§39)
```
The full Stage A is deliberately run after the basic Phase 3, so that early benchmark work does not start shaping the language before its concurrency model exists.
---
# 31. Stage B — Phase 3 validation
After structured concurrency:
@@ -1495,9 +1529,25 @@ Do not add syntax or instructions merely because one model struggled with one ta
---
# 39a. Engineering smoke test
Before the pilot, a small run checks the infrastructure, not the hypothesis:
```text
2 families (e.g. binary frame decoding, append log)
× 3 languages (Aji/AIR, Rust, Zig)
× 3 model classes
× 2 runs
= 36 runs
```
It verifies that task statements are equivalent across languages, the harness works, the Agent Reference Bundle is sufficient, token and cost accounting is right, traces are stored completely and prompts carry no bias. No result of the smoke test is reported as evidence.
---
# 39. First concrete experiment
As soon as RFC 0008 is implemented, run a pilot:
After the smoke test (§39a), run a pilot:
```text
tasks: