diff --git a/docs/evaluation/protocol.md b/docs/evaluation/protocol.md index 5f095b5..5396ee6 100644 --- a/docs/evaluation/protocol.md +++ b/docs/evaluation/protocol.md @@ -209,7 +209,7 @@ test ## dev -Visible to Aji developers. +Visible to Aji developers. A held-out task whose results have been seen and used to choose a design direction becomes dev material from then on (for example, the two native-smoke tasks after 2026-10-05). It may serve for engineering regression, never as evidence for that design. Used for: diff --git a/docs/evaluation/results/2026-10-05-native-smoke.md b/docs/evaluation/results/2026-10-05-native-smoke.md index e1de366..08da9f7 100644 --- a/docs/evaluation/results/2026-10-05-native-smoke.md +++ b/docs/evaluation/results/2026-10-05-native-smoke.md @@ -78,6 +78,16 @@ Means per language, all agents: - 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. diff --git a/docs/plan/README.md b/docs/plan/README.md index 52e6cf4..d999521 100644 --- a/docs/plan/README.md +++ b/docs/plan/README.md @@ -108,7 +108,31 @@ Evaluation runs alongside the phases; each stage starts when the language featur | E-E | todo | Stage E: maintenance campaign M1–M8 | E-D | stage report | | E-1 | todo | First confirmatory experiment: 8 held-out tasks × 3 languages × 4 model classes × 6 runs = 576 runs (protocol §40); thresholds frozen beforehand (§35) | E-A fixes | published evaluation | -Until Phase 6 delivers the source language, Aji runs use the condition `Aji/AIR`; after Phase 6, `Aji/source` is evaluated as a separate condition. Every Phase 3+ semantic RFC re-measures the Agent Reference Bundle (`docs/agent/README.md`). +Until Phase 6 delivers the source language, Aji runs use the condition `Aji/AIR`; after Phase 6, `Aji/source` is evaluated as a separate condition. + +**Roadmap after the native smoke (owner decision, 2026-10-05).** The smoke showed that agents pay mostly for writing compiler IR by hand, not for Aji's semantics: + +- SSA and CFG errors dominated; +- AIR is about 3× the size of Rust; +- the ~33k-token bundle is read in full. + +Phase 6 therefore comes forward as **Phase 6A**: a minimal `.aji` frontend over the frozen semantics of Phases 0–3, lowering to the same AIR that the same verifier checks. Phases 4 and 5 are paused. The order is: + +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. +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. + +Targets for Phase 6A, measured on dev tasks: + +| Quantity | Target | +|---|---| +| source size | ≤ 1.5× Rust | +| agent output tokens | ≤ 2× Rust | +| SSA/CFG diagnostics written by the agent | effectively 0 | +| feature-header diagnostics | 0 (the frontend infers the feature closure) | +| safety guarantees | unchanged, because the same AIR is verified | Every Phase 3+ semantic RFC re-measures the Agent Reference Bundle (`docs/agent/README.md`). ## Task conventions @@ -125,4 +149,6 @@ Until Phase 6 delivers the source language, Aji runs use the condition `Aji/AIR` | 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 | -| P4–P8 | not started; semantic development paused until the E-S smoke test is analysed (owner decision) | +| 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 | +| P7, P8 | not started | diff --git a/docs/plan/phase-6-source-language.md b/docs/plan/phase-6-source-language.md index e7b912d..430a5d4 100644 --- a/docs/plan/phase-6-source-language.md +++ b/docs/plan/phase-6-source-language.md @@ -4,6 +4,15 @@ Non-normative. Part of the [implementation plan](README.md). **Goal:** `.aji` source that lowers deterministically and explicitly to AIR, with diagnostics mapped back to source spans. +**Phase 6A (brought forward, owner decision 2026-10-05).** First a minimal frontend for the frozen semantics of Phases 0–3, with no new semantics. Its principle: `.aji` removes mechanical work but never hides a semantically significant action. + +| | | +|---|---| +| **Removed** | SSA values, block parameters, the hand-written CFG, the `features [...]` header (inferred), intermediate values, boilerplate | +| **Kept explicit** | move, borrow and mutable borrow, allocation, resource ownership, capabilities, effects, task spawn and join, channel ownership transfer, locking, cancellation, fallible I/O | + +Targets and the evaluation order are in `README.md`. Phase 6A is specified by RFC 0013. Generics, contracts, modules and the formatter (P6-4, P6-6, P6-8) stay for the full Phase 6. + **Exit criterion:** all reference programs and `examples/` are authored primarily as `.aji` and pass the conformance corpus through the frontend. **Spec inputs:** spec 01, 02, 03 §4, 06 §3–4, 13 §1–2; `reference/grammar.ebnf`.