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:
1 parent
778d563182
commit
72192c2331
12 files changed
+2097
-22
No files matched your search
+20
-1
@@ -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`.
|
||||
|
||||
@@ -91,22 +91,4 @@ I/O completion reordering
|
||||
|
||||
## Agent benchmark
|
||||
|
||||
Compare Aji, Zig, Rust and C under the same task specifications and agent model.
|
||||
|
||||
Primary metric:
|
||||
|
||||
```text
|
||||
P(correct program | one generation/repair iteration)
|
||||
```
|
||||
|
||||
Secondary metrics:
|
||||
|
||||
- iterations to verified solution;
|
||||
- tokens consumed;
|
||||
- verifier/compiler repair loops;
|
||||
- runtime defects;
|
||||
- memory/concurrency bugs;
|
||||
- regression rate after change;
|
||||
- context required to modify the system;
|
||||
- runtime speed;
|
||||
- binary size.
|
||||
Superseded by the Agent Language Evaluation Protocol: [`../evaluation/protocol.md`](../evaluation/protocol.md) (spec 14).
|
||||
@@ -18,6 +18,6 @@ Non-normative. Part of the [implementation plan](README.md).
|
||||
| P8-4 | todo | `explain` and repair-candidate coverage for every registry code | P8-2 | `src/diag.zig`, spec 10 | every code has structured fields and at least one repair candidate kind |
|
||||
| P8-5 | todo | Verification report artifact (spec 10 §6) combining all `src/report/` outputs | P8-2 | `aji report` | single deterministic JSON document; schema documented |
|
||||
| P8-6 | todo | Packages: dependencies, lockfile, content addressing, sandboxed declared build extensions | — | spec 12, `src/pkg/` | dependency resolution is deterministic; unsafe dependencies reported separately |
|
||||
| P8-7 | todo | Benchmark harness: Aji vs Zig, Rust, C on shared task specs | P8-2 | `bench/` | records P(correct \| one iteration), iterations, tokens, defects |
|
||||
| P8-7 | todo | Integrate `ajid` with the evaluation scaffold (E0-3) so Aji runs use the agent protocol | P8-2, E0-3 | scaffold adapter | scaffold drives Aji through `ajid`; protocol §28 records complete |
|
||||
| P8-8 | todo | External agent trial on a reference task | P8-2…P8-5 | trial report in `docs/plan/` | exit criterion passes |
|
||||
| P8-9 | todo | Phase exit review; Aji 0.1 release-candidate checklist | all | plan status | all phases done; spec status updated |
|
||||
Reference in new issue
Block a user