Files
aji/docs/evaluation/results/2026-10-05-native-smoke.md
T
dev 80f5143c0e plan: Phase 6A brought forward, P4/P5 paused; M and C become dev material
Owner decision after the native smoke: a minimal .aji frontend over the
frozen Phase 0-3 semantics (removes SSA, block parameters, CFG, feature
header; keeps every semantically significant action explicit), with
quantitative targets; quick reference and generic diagnostics in
parallel; new harder held-out benchmark; four conditions Rust, Zig,
Aji/AIR, Aji/source. Protocol: seen held-out tasks become dev material.
2026-10-05 10:09:53 +03:00

94 lines
4.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-10-05 — Track B native smoke (E-N)
Non-normative. An infrastructure check and a first look; **not evidence** for any hypothesis (protocol §39a, §39b). Negative findings are kept (protocol §37).
The tasks are private. They are called **M** (memory-safety-heavy streaming task) and **C** (concurrency-heavy bounded task) here. Their names and contents are not published.
## Setup
- 2 tasks × 3 languages × 3 native agents × 1 run = 18 runs.
- Frozen state verified by `ajieval freeze`; cells run sequentially in a shuffled order.
- Agents:
- N1: Codex 0.160.0 + `gpt-6.1-sol` (effort high);
- N2: Claude Code 2.1.288 + `claude-opus-5-5` (effort high);
- N3: OpenCode 1.18.34 + `zai-coding-plan/glm-5.3-flash`.
- Shell commands had no network in every agent.
- References in Rust, Zig and Aji/AIR passed the frozen evaluators before the freeze, after one evaluator integration fix (version 2).
## Outcome
| Agent | Rust | Zig | Aji/AIR |
|---|---|---|---|
| N1 Codex | 2/2 | 2/2 | 2/2 |
| N2 Claude Code | 2/2 | 2/2 | 2/2 |
| N3 OpenCode/GLM | 2/2 | 2/2 | 1/2 |
17 of 18 runs were accepted. The one failure is N3 on Aji/AIR, task C: no source file was produced. The run ended with 32k output tokens after 11 tool calls, and the agent reported that its generation limit was exhausted. Classification: `BUDGET`. Separately, N3 on Aji/AIR, task M, hit the 1-hour wall-time limit, but its final repository passed the evaluator.
## Cost (the informative part)
Time per task (M / C):
| | Rust | Zig | Aji/AIR |
|---|---|---|---|
| N2, seconds | 129 / 63 | 179 / 161 | 412 / 581 |
| N1, seconds | 442 / 235 | 584 / 399 | 498 / 561 |
| N3, seconds | 637 / 1 387 | 2 358 / 1 603 | 3 600 (limit) / 840 (failed) |
Means per language, all agents:
| | Rust | Zig | Aji/AIR |
|---|---|---|---|
| uncached provider input | 29k | 72k | 101k |
| tool calls | 16.7 | 40.7 | 36.5 |
**Size of the accepted solutions.** Aji/AIR source is 1.1–3.7× the bytes of the Rust solution of the same task by the same agent; the median is about 3×. Against Zig it is 1.5–3.1×. Output tokens are 4–8× Rust for N2.
**Documentation.** Every Aji/AIR run read about 30–36k unique tokens of the 35k-token Agent Reference Bundle, which is nearly all of it. Rust runs read no documentation, and Zig runs read 3–13k tokens.
**Diagnostics.** Counts are occurrences in command outputs.
- N1 and N2 on Aji/AIR:
- only `E0006`, the `features [...]` header and its dependency closure, 2–6 occurrences per run;
- no ownership, borrow, resource or concurrency diagnostics at all.
- N3 on Aji/AIR, task M (about 78 occurrences):
| Group | Codes | Occurrences |
|---|---|---|
| IR form | `E5001` SSA 30, `E5002` CFG and block arity 13, `E0001` parse 6, `E1001` types 8 | 57 |
| Borrow rules | `E2101` 6, `E2105` 4, `E2106` 4, `E2102` 1 | 15 |
| Header | `E0006` | 1 |
| Runtime | `T0008` bounds trap | 1 |
## Reading (hypotheses for the next step, per protocol §38)
1. **At this difficulty the strong agents are at the ceiling in every language.** The run cannot show compression. It measures only what Aji costs.
2. **The cost of Aji/AIR is not in its safety rules.** The strong agents produced no safety diagnostics. Most of the weak agent's errors were IR form (SSA, block parameters, CFG), about 3:1 against borrow rules.
3. **The cost has three sources:**
- a fixed documentation read of about 33k tokens per run;
- verbosity: about 3× the source and 4–8× the output tokens, which is the likely cause of the one failure (generation limit);
- writing IR by hand.
The third source is specific to the condition `Aji/AIR`. Removing it is what the `Aji/source` condition (Phase 6) is for.
4. **The verifier caught every safety mistake the weak agent made** (borrow errors before running, one bounds trap at run time). This externalization is what the hypothesis relies on, but in this run it did not pay for its cost.
5. **`E0006`, the dependency closure in the header, is the only friction for strong agents.** It is bookkeeping, not reasoning.
## Measurement issues
- Track B "first attempt" is derived from transcripts by a heuristic. It reports `True` for a run with dozens of verifier errors, so it is unreliable until fixed (`harness`).
- Diagnostic counts are occurrences, so a diagnostic printed twice counts twice.
## Decision (owner)
The directions are 1 + 2, then 3:
1. Phase 6A, a `.aji` frontend over the frozen semantics, without semantic change.
2. An Agent Quick Reference and generic diagnostics (`E0006` canonical header).
3. A new, harder held-out benchmark.
Tasks M and C are dev material from now on. They serve as `Aji/AIR` vs `Aji/source` engineering regression, never as evidence for `.aji`.
## Not done
No language change follows from this run directly. Candidates and the next experiment are decided by the owner. Each candidate must be justified generally (spec 14 §12) and never by these tasks.