spec: agent efficiency objectives and evaluation protocol

- spec 14: Model Capability Compression, design objectives (correctness
  externalization, small semantic surface, explicit semantics, local
  reasoning, machine repairability, deterministic feedback, bounded
  context / Agent Reference Bundle), economic objective, design review
  requirement, hypotheses H1-H6, non-goals, anti-overfitting rule
- docs/evaluation/protocol.md: Agent Language Evaluation Protocol 0.1
  (tasks T01-T10, maintenance and seeded-bug benchmarks, metrics,
  statistics, stages A-E, success and falsification criteria)
- docs/evaluation/README.md: integrity rules, stage readiness
- RFC process: mandatory Agent complexity impact section
- AGENTS.md: overarching objective and anti-overfitting rule
- plan: evaluation track E0-1..E-1; P8-7 integrates ajid with the
  scaffold; conformance plan points to the protocol
This commit is contained in:
dev committed 2026-10-04 15:36:32 +03:00
1 parent 778d563182
commit 72192c2331
12 files changed
+2097 -22

No files matched your search

+20 -1
View File
@@ -33,7 +33,7 @@ Non-normative. The order in which the Zig reference implementation is built, and
| P5 | [phase-5-atomics-and-memory-model.md](phase-5-atomics-and-memory-model.md) | Atomics, orderings, fences, weak-memory interpreter, schedule exploration, replay | atomic publication litmus/conformance tests | Q-015, Q-017 |
| P6 | [phase-6-source-language.md](phase-6-source-language.md) | `.aji` parser, lowering, generics, contracts, formatter | all reference programs authored primarily as `.aji` | — |
| P7 | [phase-7-native-backend.md](phase-7-native-backend.md) | LLVM lowering, native runtime, three targets, ABI tests | interpreted and native executions pass the same corpus | — |
| P8 | [phase-8-agent-protocol.md](phase-8-agent-protocol.md) | `ajid`, inspect/trace, verification report, benchmark | external agent implements/repairs a reference task using only protocol + spec | — |
| P8 | [phase-8-agent-protocol.md](phase-8-agent-protocol.md) | `ajid`, inspect/trace, verification report; benchmark harness per the evaluation protocol | external agent implements/repairs a reference task using only protocol + spec | — |
## Dependency graph
@@ -86,6 +86,25 @@ These run through all phases rather than belonging to one.
| Features | Every phase from P1 publishes its feature bundles (`../reference/air-features.md`) when their semantics are specified, and adds them to `supported` when implemented. `aji features` is the discovery interface for agents. |
| Packages | Minimal `aji.toml` reading for capabilities in P2; dependencies, lockfile and sandboxed build extensions in P8 (spec 12). |
## Evaluation track (spec 14, `../evaluation/protocol.md`)
Evaluation runs alongside the phases; each stage starts when the language features it needs are implemented.
| ID | Status | Task | Depends | Done when |
|---|---|---|---|---|
| E0-1 | todo | Define the Agent Reference Bundle (spec 14 §3.7) and a deterministic size measurement (bytes and tokens) recorded per release | — | bundle manifest in the repository; size reported in CI |
| E0-2 | todo | Private benchmark repository: task specs, evaluators, reference implementations, hidden tests for T01–T04; dev/validation/test split | — | evaluator hashes published; nothing hidden in this repository |
| E0-3 | todo | Language-neutral agent scaffold and run recorder (protocol §5, §28) | — | identical loop drives Aji, Rust and Zig; every run record complete |
| E0-4 | todo | Rust and Zig baseline solutions and pinned local documentation | E0-2 | baselines pass the hidden tests |
| E-A | todo | Stage A pilot: T01–T04 × Aji/Rust/Zig × 3 model classes × 3 runs = 108 runs (protocol §39); not headline evidence | E0-1…E0-4, Phase 2 | pilot report: effect size, broken tasks, cost, instrumentation |
| E-B | todo | Stage B: T05–T07 | Phase 3 | stage report |
| E-C | todo | Stage C: T08, litmus repair | Phase 5 | stage report |
| E-D | todo | Stage D: T09, T10 | Phases 3–5, stable features | stage report |
| 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, agents write text AIR directly; Stage A results must state this.
## Task conventions
- IDs are `P<phase>-<n>` and never reused. A task split later becomes `P1-4a`, `P1-4b`.