P6A-9 results and Phase 6A exit review (PASS)
- docs/evaluation/results/2026-10-05-p6a-9.md: 12 paired cells on p6a-candidate, criteria fixed before the runs (output-token criterion reported as not met), owner's assessment and hypothesis statuses - phase 6 plan: P6A-9 and P6A-10 done, exit review; plan README: P6A done, P4/P5 unpaused, next held-out benchmark Rust/Zig/Aji-source with three difficulty levels, Aji/AIR only as a control - checkpoint note renamed to its actual date (2026-10-05)
This commit is contained in:
1 parent
591f0aea19
commit
0972ed2a5e
4 files changed
+145
-9
No files matched your search
+2
-2
@@ -1,4 +1,4 @@
|
||||
# 2026-10-06 — M checkpoints: Aji/AIR vs Aji/source (Phase 6A)
|
||||
# 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.
|
||||
|
||||
@@ -50,7 +50,7 @@ In source, "docs read" counts the Quick Reference plus the language and diagnost
|
||||
|
||||
**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-06)
|
||||
## Owner's assessment (2026-10-05)
|
||||
|
||||
| Hypothesis | Status |
|
||||
|---|---|
|
||||
@@ -0,0 +1,96 @@
|
||||
# 2026-10-05 — P6A-9: Aji/AIR vs Aji/source, official run (Phase 6A)
|
||||
|
||||
Non-normative. The official dev regression of Phase 6A: tasks **M** (memory-safety-heavy streaming task) and **C** (concurrency-heavy bounded task), the private former smoke tasks, not named here. Each cell ran once, so this is not statistical evidence for the protocol's hypotheses (protocol §39a). Negative findings are kept (protocol §37). The private-side work was split between a clean-context operator (task variants, evaluator support, freeze, runs) and an independent reference writer. The reference writer saw only the task statement, the `aji_source` starter workspace and the Source Reference Bundle. This repository received only numbers, diagnostic codes, gate names and documentation file names.
|
||||
|
||||
## Setup
|
||||
|
||||
- **Matrix:** 2 tasks × {Aji/AIR, Aji/source} × 3 native agents = 12 cells.
|
||||
- Cells were shuffled and the order frozen before the first run (order seed 1574333046).
|
||||
- They ran one at a time, each with a fresh workspace and HOME.
|
||||
- Nothing was changed between the freeze and the last cell.
|
||||
- **Toolchain:** tag `p6a-candidate` (`591f0ae`).
|
||||
- AIR bundle sha256 `0052fa75…f939`.
|
||||
- Source Reference Bundle sha256 `43c050ed…7d597b`.
|
||||
- **Agents:** native configurations identical to both M checkpoints:
|
||||
- N1 Codex + `gpt-6.1-sol` (high);
|
||||
- N2 Claude Code + `claude-opus-5-5` (high);
|
||||
- N3 OpenCode + `zai-coding-plan/glm-5.3-flash`.
|
||||
- **Tasks and evaluators:** version 2 of both tasks. M and C use one evaluator implementation, whose `aji_air` path is unchanged.
|
||||
- **References.** All 8 pass their final evaluator with every gate true: M and C × {Rust, Zig, Aji/AIR, Aji/source}. The two Aji/source references were written independently and passed the public test on the first attempt.
|
||||
- **Baseline.** The earlier AIR results (native smoke, checkpoints) are dev material only. Both conditions were run again here on one toolchain.
|
||||
|
||||
## Outcome
|
||||
|
||||
| | Aji/AIR | Aji/source |
|
||||
|---|---|---|
|
||||
| M | 2/3 (N3 FAIL) | **3/3** |
|
||||
| C | 2/3 (N3 FAIL) | 2/3 (N3 FAIL) |
|
||||
| total | 4/6 | **5/6** |
|
||||
|
||||
The three failures are alike. N3 wrote no source file: one reply hit the output length limit after about 32k reasoning tokens. All three are classified toolchain no, evaluator integration no, model logic not applicable (there is no program). No Aji diagnostic was produced in those cells.
|
||||
|
||||
## Paired cells (AIR → source)
|
||||
|
||||
| Task · agent | result | IR-form | output tokens | uncached input | tool calls | repair cycles | seconds | docs read |
|
||||
|---|---|---|---|---|---|---|---|---|
|
||||
| M · N1 | PASS → PASS | 2 → 0 | 15.0k → 15.7k | 46.7k → 52.1k | 20 → 36 | 2 → 5 | 523 → 703 | AIR 33.5k → QR 3.6k + 7.8k |
|
||||
| M · N2 | PASS → PASS | 5 → 0 | 35.9k → 20.2k | 90.7k → 56.3k | 29 → 27 | 2 → 5 | 404 → 375 | AIR 9.6k → QR + 0.7k (AIR 0.4k) |
|
||||
| M · N3 | **FAIL → PASS** | 0 → 0 | 32.3k → 53.8k | 54.0k → 221.8k | 12 → 39 | 0 → 2 | 839 → 2 078 | AIR 33.3k → QR + 8.6k |
|
||||
| C · N1 | PASS → PASS | 2 → 0 | 14.8k → 11.6k | 43.6k → 52.5k | 18 → 27 | 3 → 4 | 595 → 475 | AIR 13.5k → QR + 5.4k |
|
||||
| C · N2 | PASS → PASS | 0 → 0 | 36.2k → 18.2k | 112.0k → 53.3k | 24 → 20 | 1 → 1 | 453 → 269 | AIR 6.2k → QR + 0.4k |
|
||||
| C · N3 | FAIL → FAIL | — | 32.3k → 41.0k | — | 11 → 15 | — | 896 → 1 086 | AIR 33.6k → QR + 8.2k (AIR 1.6k) |
|
||||
|
||||
How to read the table:
|
||||
|
||||
- **IR-form** counts `E0001`–`E0006`, `E5001` and `E5002`.
|
||||
- **Docs read** counts distinct tokens read: the AIR bundle in the AIR condition; the Quick Reference plus the language and diagnostics files in the source condition.
|
||||
- **Program size:** 17–26 KB of AIR against 7–11 KB of `.aji`. `mechanical_air_eliminated_raw` is 0.82–0.88.
|
||||
- **Source diagnostics** that appeared: `E7005`, `E7001`, `E7006`, `E7007`. There was no `E1001`, no `E7900` and no IR-form code.
|
||||
|
||||
## Against the criteria fixed before the runs (plan, P6A-9)
|
||||
|
||||
| Criterion | Result |
|
||||
|---|---|
|
||||
| IR-form diagnostics decrease ≥ 80 % | **met**: 9 → 0 |
|
||||
| agent output tokens decrease ≥ 50 % | **not met**: N2 −44 % and −50 %; N1 +4 % and −22 %; N1+N2 together −36 % (101.9k → 65.7k) |
|
||||
| tool calls decrease materially | **not met**: N1 up, N2 slightly down |
|
||||
| Aji semantic guarantees unchanged | **met**: the same verifier and the same evaluator gates |
|
||||
| VSR no regression | **met**: 4/6 → 5/6 |
|
||||
| uncached input decrease (strong agents) | **partly**: N2 −38 % and −52 %; N1 +12 % and +20 % |
|
||||
| weakest agent: earlier AIR failure becomes PASS | **met on M** (second time, now on one toolchain); not on C |
|
||||
|
||||
The output-token criterion is reported as not met. It was not revised after the result.
|
||||
|
||||
## Owner's assessment (2026-10-05)
|
||||
|
||||
**Phase 6A: PASS.** The architecture `agent → .aji → AIR → verifier` is confirmed. There is no reason to return to agents writing AIR directly.
|
||||
|
||||
> Phase 6A validated the separation between the agent-facing source language and the machine-facing AIR. Direct AIR imposed substantial representation and documentation overhead. The `.aji` frontend eliminated observed manual IR-form failures while preserving AIR verifier semantics and improved aggregate reliability from 4/6 to 5/6 in the frozen P6A-9 experiment. Cost improvements were model-dependent: substantial for Claude, mixed for Codex. GLM showed a repeated AIR-fail/source-pass result on task M, providing preliminary evidence for Model Capability Compression, while task C demonstrated that source representation cannot compensate for failures in higher-level problem reasoning.
|
||||
|
||||
| Hypothesis | Status |
|
||||
|---|---|
|
||||
| Direct AIR imposes a large representation tax | confirmed |
|
||||
| `.aji` removes the manual IR tax | confirmed |
|
||||
| The Quick Reference lowers the documentation tax | strongly supported |
|
||||
| `.aji` keeps AIR's safety guarantees | confirmed by architecture and tests |
|
||||
| `.aji` does not reduce reliability | P6A-9 passed |
|
||||
| `.aji` lowers the cost for strong models | mixed |
|
||||
| Aji helps a weaker model | preliminary, repeated signal (N3 on M: AIR FAIL → source PASS in checkpoint 2 and in P6A-9) |
|
||||
| Model Capability Compression as a general effect | not yet shown |
|
||||
| Aji is cheaper than Rust/Zig | not tested by this experiment |
|
||||
|
||||
Task C marks a boundary. N3 failed before writing any code in both conditions, after about 32k tokens of reasoning about the task. The language can remove programming-language reasoning; it cannot replace the model's problem-solving.
|
||||
|
||||
## Follow-ups
|
||||
|
||||
- **Language.** Phase 6A is closed and the later phases are unpaused. The source syntax is not tuned to P6A-9, and the N1 cost is not "fixed".
|
||||
- **Next held-out benchmark.**
|
||||
- Conditions: Rust, Zig and Aji/source; Aji/AIR stays only as a research control.
|
||||
- Difficulty levels:
|
||||
- easy: a ceiling for strong models;
|
||||
- medium: near the weak model's limit;
|
||||
- hard: beyond it.
|
||||
- Where H4 should show: tasks where a weaker model understands the task and starts implementing, but fails on memory, resources or concurrency.
|
||||
- **Harness.**
|
||||
- Documentation accounting for partial reads (N2 opened many files with low distinctive-line coverage).
|
||||
- Where `agent_status` and `evaluation_status` live in the run record.
|
||||
+9
-4
@@ -120,9 +120,14 @@ Phase 6 therefore comes forward as **Phase 6A**: a minimal `.aji` frontend over
|
||||
|
||||
1. Phase 6A: `.aji` frontend for all of Phases 0–3 (RFC 0013).
|
||||
2. In parallel, generic improvements without semantic change: an Agent Quick Reference (5–8k tokens) with an index into the full reference; repair-oriented diagnostics (`E0006` canonical header, done).
|
||||
3. Engineering regression on the old tasks M and C, which are dev material now: `Aji/AIR` vs `Aji/source`. Measure source size, output tokens, tool calls and bundle use.
|
||||
3. Engineering regression on the old tasks M and C, which are dev material now: `Aji/AIR` vs `Aji/source`. Measure source size, output tokens, tool calls and bundle use. **Done** (P6A-9): IR-form diagnostics 9 → 0, VSR 4/6 → 5/6, cost model-dependent.
|
||||
4. A new private held-out benchmark (clean-context author), harder by the number of interacting invariants (resource ownership + cancellation + bounded memory + several tasks + failure paths + changing existing code), not by size.
|
||||
5. Native and controlled runs over the conditions `Rust`, `Zig`, `Aji/AIR` and `Aji/source` on Codex, Claude Code and GLM, with a weaker model added if needed. `Aji/AIR → Aji/source` measures the price of the representation; `Rust/Zig → Aji/source` measures the effect of the semantics, the verifier and the language.
|
||||
5. Native and controlled runs over the conditions `Rust`, `Zig` and `Aji/source` on Codex, Claude Code and GLM, with a weaker model added if needed; `Aji/AIR` only as a research control (owner decision after P6A-9). `Rust/Zig → Aji/source` measures the effect of the semantics, the verifier and the language.
|
||||
- Tasks at three levels:
|
||||
- easy: a ceiling for strong models;
|
||||
- medium: near the weaker model's limit;
|
||||
- hard: beyond it.
|
||||
- H4 is expected on medium tasks where a weaker model understands the task and starts implementing, but fails on memory, resources or concurrency. In P6A-9, task C was hard for GLM: it failed before writing code in both conditions.
|
||||
|
||||
Targets for Phase 6A, measured on dev tasks:
|
||||
|
||||
@@ -149,6 +154,6 @@ Targets for Phase 6A, measured on dev tasks:
|
||||
| P1 | done (exit review in the phase file) |
|
||||
| P2 | done (exit review in the phase file) |
|
||||
| P3 | done (exit review in the phase file); P3-10, P3-11 moved to P7 |
|
||||
| P6A | next: minimal `.aji` frontend over Phases 0–3 (RFC 0013), brought forward after the native smoke |
|
||||
| P4, P5 | paused until P6A and the next held-out experiment |
|
||||
| P6A | done (exit review in `phase-6-source-language.md`; P6A-9 [results](../evaluation/results/2026-10-05-p6a-9.md)): the agent-facing source language over AIR is the architecture |
|
||||
| P4, P5 | unpaused after P6A (owner decision, 2026-10-05) |
|
||||
| P7, P8 | not started |
|
||||
@@ -31,8 +31,8 @@ Targets and the evaluation order are in `README.md`. Phase 6A is specified by RF
|
||||
| P6A-6 | done | CLI: `aji check/run/lower file.aji` | P6A-4 | `src/main.zig` | same flags and run record as for `.air` |
|
||||
| P6A-7 | doing | `.aji` twins for the Phase 0–3 conformance tests (same outcome or code) and the reference programs | P6A-5 | `tests/conformance/source/` | **for the freeze (owner decision):** the three reference programs (`programs/parallel_map`, `channel_transfer`, `tcp_echo_tasks`) pass with AIR equivalence on every schedule seed, and every source construct has a run/accept and, where it rejects, a reject test (`tools/source_coverage.py`, 56/56). Further twins are added gradually |
|
||||
| P6A-8 | done | Source Reference Bundle (directory, `QUICK.md` front door, AIR reference only under `air/`), harness profile `aji_source` with per-group documentation metrics, Quick Reference examples checked against conformance programs, raw and normalized size metrics | P6A-6 | `docs/agent/source-bundle.txt`, `tools/eval/languages/aji_source.json` | bundle measured; every Quick Reference example is an excerpt of a checked program |
|
||||
| P6A-9 | todo | Dev regression on tasks M and C: the frozen `Aji/AIR` runs vs new `Aji/source` runs, same agents (all three native agents) | P6A-8 | results note | criteria below reported |
|
||||
| P6A-10 | todo | Phase 6A exit review | all | plan status | targets reported |
|
||||
| P6A-9 | done | Dev regression on tasks M and C: `Aji/AIR` vs `Aji/source`, all three native agents, both conditions run again on `p6a-candidate` (12 cells) | P6A-8 | [results note](../evaluation/results/2026-10-05-p6a-9.md) | criteria below reported |
|
||||
| P6A-10 | done | Phase 6A exit review | all | plan status | targets reported (exit review below) |
|
||||
| P6A-12 | done | Source type-check completeness: errors fully determined by the source type system are reported by the frontend as `E7xxx` at the source construct, never left to the verifier on the lowered AIR (checkpoint 2: `E1001` ×4 in a source run). Not a layer 7 blocker; to be closed before the Phase 6A freeze | P6A-4 | `src/frontend/lower.zig` | for each verifier type rule reachable from source, a source test expecting the `E7xxx` |
|
||||
| P6A-11 | done | Malformed generated AIR is a compiler bug: when a `.aji` module passed the frontend but its AIR fails to parse or is structurally invalid, report an internal compiler diagnostic (with the source construct), not the AIR parse error mapped back (found by the M checkpoint: void fall-through lowered to `ret %`) | P6A-4 | `src/check.zig`, error registry | a test that injects malformed lowering gets the internal diagnostic |
|
||||
|
||||
@@ -69,7 +69,7 @@ Order (owner decision, after P6A-8):
|
||||
|
||||
Type mismatches (`E1001`, `E7005`) stay a separate category from the IR-form diagnostics.
|
||||
|
||||
**Status (2026-10-06).** Steps 1–2 are done in two checkpoints ([results](../evaluation/results/2026-10-06-m-checkpoints.md)). Checkpoint 1 found two toolchain defects, fixed in `222c0c8`. Checkpoint 2 gave AIR 2/3 and source 3/3, with IR-form diagnostics at 0 in source. The owner closed the IR-tax diagnosis at the engineering level: **layer 7 GO**. Remaining order:
|
||||
**Status (2026-10-05).** Steps 1–2 are done in two checkpoints ([results](../evaluation/results/2026-10-05-m-checkpoints.md)). Checkpoint 1 found two toolchain defects, fixed in `222c0c8`. Checkpoint 2 gave AIR 2/3 and source 3/3, with IR-form diagnostics at 0 in source. The owner closed the IR-tax diagnosis at the engineering level: **layer 7 GO**. Remaining order:
|
||||
|
||||
1. layer 7 (tasks, channels);
|
||||
2. layer 8 (`lock`, `select`, cancellation);
|
||||
@@ -91,6 +91,41 @@ Lowering layers (P6A-3/4), each with accepted (golden AIR), rejected (`E7xxx`) a
|
||||
| 7 | `scope` blocks, `task.spawn`/`join`/`cancel`/`cancelled`, `task<T>`/`sender<T>`/`receiver<T>`, channels (`make`, `dup`, `send`, `recv`, `close_sender`, `close_receiver`), endpoint operands by name, rebinding of variables on outcome edges, joins carry live variables only; source/AIR equivalence with the Phase 3 task and channel programs | done |
|
||||
| 8 | `lock` blocks over `mutex<T>` (guard never a source value; unlock at every exit), `mutex.make`/`take`, `select` (one borrow per endpoint, unsent values bound back on every edge), `shield`, `task.check_cancel`, `task.join_cancel`; linear values never in frame storage; source/AIR equivalence with the Phase 3 mutex, select and cancellation programs; every Quick Reference example passes | done |
|
||||
|
||||
## Phase 6A exit review (2026-10-05, owner decision: PASS)
|
||||
|
||||
**Delivered:**
|
||||
|
||||
- the `.aji` 0.1 frontend, layers 1–8, over the frozen semantics of Phases 0–3;
|
||||
- one canonical spelling per construct, deterministic and canonical lowering, a source map for every diagnostic and trap;
|
||||
- internal compiler errors for malformed lowering (P6A-11);
|
||||
- source-level type errors (P6A-12);
|
||||
- the Source Reference Bundle with a checked Quick Reference (P6A-8);
|
||||
- the three reference programs in source with AIR equivalence, and source construct coverage 56/56 (P6A-7, freeze criterion).
|
||||
|
||||
**Defects found by the experiments and fixed:**
|
||||
|
||||
- interpreter memory grew with the number of executed steps (`222c0c8`);
|
||||
- void fall-through lowered to malformed AIR (`222c0c8`).
|
||||
|
||||
**P6A-9** ([results](../evaluation/results/2026-10-05-p6a-9.md)):
|
||||
|
||||
| Measure | Result |
|
||||
|---|---|
|
||||
| IR-form diagnostics | 9 → 0 |
|
||||
| VSR | 4/6 → 5/6 |
|
||||
| program size | 17–26 KB → 7–11 KB |
|
||||
| documentation read | 6–36k AIR tokens → Quick Reference + 0.4–8.6k |
|
||||
| N3 on M | AIR FAIL → source PASS, the second time |
|
||||
| output-token criterion (≥ 50 %) | not met: −36 % for N1+N2, model-dependent |
|
||||
|
||||
**Earlier Phase 6A targets** (size ≤ 1.5× Rust, output ≤ 2× Rust) were not measured against Rust in P6A-9. Rust/Zig against Aji/source belongs to the next held-out benchmark.
|
||||
|
||||
**Open, not blocking:**
|
||||
|
||||
- P6A-7 twins of the remaining conformance tests, added gradually;
|
||||
- Q-023;
|
||||
- harness: documentation accounting for partial reads; where the status fields are recorded.
|
||||
|
||||
## Tasks (full Phase 6)
|
||||
|
||||
| ID | Status | Task | Depends | Output | Done when |
|
||||
|
||||
Reference in new issue
Block a user