# 2026-10-05 — M checkpoints: Aji/AIR vs Aji/source (Phase 6A) Non-normative. Diagnostic dev runs on task **M** (the memory-safety-heavy streaming task of the native smoke; private, not named here), one run per cell. **Not evidence** for any hypothesis in the protocol's sense (protocol §39a). Negative findings are kept (protocol §37). The private-side work was done by a clean-context operator; this repository received only numbers, diagnostic codes and documentation file names. ## Setup - Agents as in the native smoke: N1 Codex + `gpt-6.1-sol` (high), N2 Claude Code + `claude-opus-5-5` (high), N3 OpenCode + `zai-coding-plan/glm-5.3-flash`. - Aji/source: the Source Reference Bundle (`QUICK.md` front door, `docs/agent/README.md`), sha256 `24cca814…a2843` in both checkpoints. - Each checkpoint ran from a frozen tag, with cells in a shuffled order, one at a time, each with a fresh workspace and HOME. ## Checkpoint 1 (tag `p6a-m-checkpoint`) Aji/source × 3 agents, compared with the frozen Aji/AIR smoke runs. | Agent | AIR | source | IR-form AIR → source | output tokens AIR → source | |---|---|---|---|---| | N1 | PASS | PASS | 0 → 1 | 13.3k → 15.4k | | N2 | PASS | FAIL | 6 → 0 | 30.6k → 12.3k | | N3 | PASS | FAIL | 50 → 7 | 156k → 55.8k | Both source failures were classified with `toolchain_bug = yes`. The programs were correct on all evaluator cases. Two toolchain defects caused the failures and the diagnostics. | Defect | Cause | Effect | |---|---|---| | A | The interpreter's memory grew with the number of executed steps. | Under the evaluator's 1 GiB limit the host process ran out of memory: N2 failed 4 cases, N3 failed 5. | | B | A void function ending in an `if` (or `if`/`else`, `match`, block or void call) was lowered to `ret %`. | Malformed AIR. Every `E0001` counted in the source runs came from this. | Both were fixed in `222c0c8`, with a memory-invariant test, a collect-every-step conformance mode and fall-through tests. ## Checkpoint 2 (tag `p6a-m-checkpoint-2`) Both conditions on the same fixed toolchain: M × {AIR, source} × 3 agents = 6 cells. | | N1 AIR → source | N2 AIR → source | N3 AIR → source | |---|---|---|---| | result | PASS → PASS | PASS → PASS | FAIL → PASS | | IR-form diagnostics | 0 → 0 | 4 (`E0006`) → 0 | 0 → 0 | | repair cycles | 2 → 6 | 1 → 3 | 0 → 1 | | tool calls | 22 → 32 | 29 → 37 | 15 → 38 | | output tokens | 16.2k → 13.9k | 55.3k → 32.4k | 32.4k → 46.7k | | uncached input | 54.0k → 67.4k | 130.7k → 77.7k | 62.9k → 87.8k | | seconds | 658 → 600 | 763 → 702 | 797 → 1 491 | | AIR docs read | 33.0k → 0 | 35.9k → 1.5k | 33.7k → 2.1k | | source docs read | — → 3.6k + 6.2k | — → 3.6k + 6.6k | — → 3.6k + 7.9k | | program bytes | 19.0k → 7.5k | 17.1k → 7.8k | 0 → 17.0k | In source, "docs read" counts the Quick Reference plus the language and diagnostics files. **The one failure.** N3 on AIR produced no program. It made 15 reads, then its last reply hit the output length limit, with about 32k reasoning tokens. The CLI exited without writing a file. Classification: toolchain no, evaluator integration no, model logic not applicable. The same pattern as N3 on task C in the native smoke. **Memory.** Peak RSS of the source programs on the largest cases was 12–38 MB. Run on the fixed toolchain, the checkpoint-1 workspaces need 20–26 MB; they needed 700–1 360 MB before the fix. ## Owner's assessment (2026-10-05) | Hypothesis | Status | |---|---| | H_representation: direct AIR imposes a large representation overhead that the frontend removes | confirmed for design | | H_documentation | strongly supported | | H_source_correctness | checkpoint passed | | H_model_capability_compression | preliminary positive signal (N3: AIR no program, source accepted) | | H_cost_reduction | unresolved (N1 more expensive in source, N2 cheaper, N3 not comparable; one run per cell is too noisy) | The diagnosis "direct AIR is the main cost of Aji/AIR" is closed at the engineering level, and layer 7 is unblocked. The criterion "AIR 3/3, source 3/3" was not applied literally. Its purpose was to show that source does not regress, and checkpoint 2 gave AIR 2/3 against source 3/3. > Phase 6A checkpoints demonstrate that direct AIR imposes substantial representation and documentation overhead. The `.aji` frontend eliminates observed manual IR-form failures while preserving verifier-enforced semantics. Evidence for model-capability compression is promising but not yet statistically established. ## Follow-ups - **P6A-12 (source type-check completeness).** N1's source run in checkpoint 2 got `E1001` ×4: a source type error that the frontend let through and the verifier reported on the lowered AIR. - **Harness: termination labels.** A reply that ended with `finish_reason=length` was recorded as `exited`. An HTTP 429 after an accepted solution was recorded as `error_exit`. The agent's transport status and the evaluation status are to be kept apart.