Files
aji/docs/README.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

47 lines
2.5 KiB
Markdown

# Documentation
## Layout
| Directory | Kind | Purpose |
|---|---|---|
| [`spec/`](spec/) | **Normative** | What a conforming implementation MUST do |
| [`rfcs/`](rfcs/) | Decision records | Major design proposals and their rationale; accepted changes live in `spec/` |
| [`reference/`](reference/) | Normative registries | Grammar, error codes, intrinsics, type properties, litmus tests, glossary |
| [`design/`](design/) | Non-normative | Short design decisions and the open-questions log |
| [`plan/`](plan/) | Non-normative | Implementation plan, per-phase task breakdowns, conformance plan |
| [`evaluation/`](evaluation/) | Non-normative | Empirical evaluation of the Aji hypothesis (spec 14): protocol, stages, integrity rules |
| [`dev/`](dev/) | Non-normative | How the reference implementation is built and tested |
## Precedence
The specification is the single normative source. When documents disagree (from `AGENTS.md`):
1. `spec/`;
2. `reference/`;
3. examples;
4. README prose.
RFCs are not in this list: accepting an RFC integrates its rules into `spec/` in the same change, after which the RFC is the record of *why*, and the spec is the record of *what*.
`design/`, `plan/` and `dev/` never override the above. If a plan or dev document contradicts the spec, the plan or dev document is wrong.
## Where to put a new document
| You are writing… | Put it in |
|---|---|
| a MUST/SHOULD rule | the matching `spec/NN-*.md` |
| a major change to memory, concurrency, effects, AIR or unsafe | `rfcs/NNNN-title.md` from `rfcs/0000-template.md` |
| a new error code, intrinsic or grammar rule | `reference/` (and `src/diag.zig` for codes) |
| a new AIR feature bundle | `reference/air-features.md` (and `src/air/features.zig`) |
| a small decision with a one-paragraph reason | `design/decisions.md` as the next `DD-NNN` |
| a gap or ambiguity you found but cannot resolve now | `design/open-questions.md` as the next `Q-NNN` |
| tasks, milestones, sequencing | `plan/` |
| benchmark tasks, evaluation methodology (public dev material only) | `evaluation/`; hidden tests go to the private benchmark repository |
| implementation architecture, conventions, test how-to | `dev/` |
## Reading order
New to Aji: [`../README.md`](../README.md) → [`spec/README.md`](spec/README.md) → spec 00, 01, 03, 04, 07, 08, 13.
Starting implementation work: [`plan/README.md`](plan/README.md) → the current phase file → [`dev/architecture.md`](dev/architecture.md) → [`dev/testing.md`](dev/testing.md).