Files
aji/docs/plan/phase-8-agent-protocol.md
T
dev 72192c2331 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
2026-10-04 15:36:32 +03:00

2.2 KiB

Phase 8 — Agent protocol

Non-normative. Part of the implementation plan.

Goal: a long-running machine interface (ajid) and audit artifacts that let an external coding agent implement and repair Aji programs without reading prose diagnostics; a benchmark that measures whether Aji achieves its mission.

Exit criterion: an external coding agent implements or repairs a reference task using only the protocol and the repository spec.

Spec inputs: spec 10, 12, 13 §5; plan/conformance-suite.md (agent benchmark).

Tasks

ID Status Task Depends Output Done when
P8-1 todo Specify ajid transport and method schemas (parse, typecheck, verify, compile, run, test, trace, inspect, explain, benchmark) — (may start after P2) spec 10 request/response schemas versioned and published
P8-2 todo ajid server over check.zig: parse, typecheck, verify, run, test P8-1 src/ajid/ protocol conformance tests; responses deterministic
P8-3 todo trace and inspect: verifier state summaries per value and instruction P8-2 src/ajid/ an agent can query ownership/borrow state at any instruction
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 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