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

+5
View File
@@ -19,4 +19,9 @@ jobs:
- run: zig build test --summary all
- run: zig build conformance
- run: zig build && python3 tests/hosted/smoke.py
- run: zig-out/bin/aji run --grant out=io.write --grant heap=mem.alloc:64 docs/agent/syntax-example.air
- run: zig build agent-reference
- name: Agent Reference Bundle tokens (non-blocking)
continue-on-error: true
run: pip install --quiet tiktoken tokenizers && python3 tools/agent_bundle_tokens.py
- run: zig-out/bin/aji run --manifest examples/packages/hello/aji.toml | grep -q '"stdout":"hello, aji\\n"'