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
@@ -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