P6A-8: Source Reference Bundle and harness profile aji_source
- source bundle: a /docs directory with QUICK.md (Quick Reference plus a where-to-read table), language/*.md, diagnostics/errors.md and the AIR bundle only under air/; built from docs/agent/source-bundle.txt (> output files, @manifest includes) by zig build agent-reference - Quick Reference examples are checked: every aji block must be an excerpt of a conformance program in tests/conformance/source/quickref (zig build test fails otherwise); QR fixes found by the check (mut d = data, region not auto-borrowed, statement/borrow blocks that could not verify, io_error match) - frontend: task.*/channel.*/mutex.* are not-yet-implemented, not E7006 - aji lower --stats: mechanical_air_eliminated_raw and _normalized (each byte-string materialization counted as one constant; spec 15 §11) - harness: profile aji_source (doc_groups), per-file and per-group docs metrics on distinctive lines, profile columns (tool calls, lowered AIR raw/normalized, docs files read, IR-form and type-mismatch counts), dev-echo aji_source variant, scripted run and test, source token report - plan: P6A-8 done, P6A-9 criteria; Q-021/Q-022 resolved; unsafe block deferred
This commit is contained in:
1 parent
61be766634
commit
3e2d9b63a7
35 files changed
+1170
-106
No files matched your search
@@ -30,10 +30,41 @@ Targets and the evaluation order are in `README.md`. Phase 6A is specified by RF
|
||||
| P6A-5 | done | Source spans on lowered AIR; verifier diagnostics and trap records carry `source_location` and `air_location` | P6A-4 | `src/frontend/spans.zig`, `src/diag.zig` | every diagnostic of a `.aji` file points at source |
|
||||
| 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 | todo | `.aji` twins for the Phase 0–3 conformance tests (same outcome or code) and the reference programs | P6A-5 | `tests/conformance/*/source/` | twins pass; the reference programs in `.aji` pass `--stress` |
|
||||
| P6A-8 | todo | Source bundle and harness profile `aji_source` (Quick Reference first, full material indexed) | P6A-6 | `docs/agent/`, `tools/eval/languages/aji_source.json` | bundle measured |
|
||||
| P6A-9 | todo | Dev regression on tasks M and C: `Aji/AIR` vs `Aji/source` (size, output tokens, tool calls, bundle use, diagnostics) | P6A-8 | results note | targets checked (≤ 1.5× Rust size, ≤ 2× output tokens, no SSA/CFG or `E0006` diagnostics) |
|
||||
| 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 criteria (owner decision, fixed before the runs)
|
||||
|
||||
Compared per agent with the frozen `Aji/AIR` run of the same task:
|
||||
|
||||
| Measure | Criterion |
|
||||
|---|---|
|
||||
| IR-form diagnostics (`E0001`–`E0006`, `E5001`, `E5002`; `ajieval profile`) | decrease ≥ 80 % |
|
||||
| agent output tokens | decrease ≥ 50 % |
|
||||
| tool calls | decrease materially |
|
||||
| Aji semantic guarantees | unchanged (same verifier, same evaluator gates) |
|
||||
| VSR | no regression |
|
||||
| uncached provider input (strong agents) | substantial decrease |
|
||||
| weakest agent (GLM) | an earlier `Aji/AIR` failure becomes a PASS, or repair cycles drop sharply |
|
||||
|
||||
Also reported:
|
||||
|
||||
- wall time;
|
||||
- `unique_docs_read` and reading per group (`quick_reference`, `source_docs`, `air_docs`);
|
||||
- diagnostic classes;
|
||||
- source bytes, lowered AIR bytes (raw and normalized);
|
||||
- type mismatches (`E1001` + `E7005`), counted apart from the IR-form classes so that relabeling cannot improve them.
|
||||
|
||||
Order:
|
||||
|
||||
1. source bundle and harness profile (P6A-8);
|
||||
2. Quick Reference examples checked automatically (P6A-8);
|
||||
3. M/C `Aji/source` dev runs;
|
||||
4. comparison with the frozen AIR results;
|
||||
5. Phase 6A review;
|
||||
6. only then any decision about further frontend changes.
|
||||
|
||||
Lowering layers (P6A-3/4), each with accepted (golden AIR), rejected (`E7xxx`) and verifier-caught tests in `tests/conformance/source/`:
|
||||
|
||||
| Layer | Content | Status |
|
||||
|
||||
Reference in new issue
Block a user