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
@@ -16,6 +16,10 @@ Aji is a small, typed, verifiable systems language intended primarily for AI-gen
|
||||
|
||||
Human ergonomics matter, but they are secondary to verifier clarity and agent reliability.
|
||||
|
||||
Overarching objective (spec 14): **Model Capability Compression** — Aji SHOULD reduce the minimum model capability required to produce correct systems software, by moving reasoning about ownership, lifetime, aliasing, resources, authority, effects and concurrency from the model into the language, verifier and deterministic runtime. "Agent proposes, verifier decides." Every semantic feature is judged by the reasoning burden it adds for agents; the hypothesis is tested empirically by `docs/evaluation/protocol.md`.
|
||||
|
||||
Anti-overfitting (spec 14 §12): never add or shape a language feature to improve a specific benchmark task, and never seek out or use the private held-out benchmark corpus.
|
||||
|
||||
## Non-negotiable principles
|
||||
|
||||
Do not introduce:
|
||||
@@ -105,6 +109,10 @@ Any change involving ownership, aliasing, atomics, tasks, cancellation, resource
|
||||
7. deterministic interpreter behavior;
|
||||
8. backward-compatibility impact.
|
||||
|
||||
## RFCs
|
||||
|
||||
Every RFC introducing a semantic feature includes `## Agent complexity impact` (spec 14 §6): new concepts, new verifier state, new syntax or instructions, interactions, effect on repairability, and whether existing primitives suffice.
|
||||
|
||||
## Changes to AIR
|
||||
|
||||
AIR instructions must have explicit:
|
||||
|
||||
@@ -100,6 +100,8 @@ AI agent → verified executable system
|
||||
|
||||
The source representation therefore prioritizes semantic explicitness, bounded complexity, deterministic repair loops and mechanically enforceable invariants over convenience features designed primarily for manual authoring.
|
||||
|
||||
The overarching objective is **Model Capability Compression** ([spec 14](docs/spec/14-agent-efficiency.md)): by moving reasoning about ownership, lifetimes, resources, authority, effects and concurrency into the language, verifier and deterministic runtime, Aji should let a weaker model produce systems software as correct as a stronger model writes in Rust or Zig, at lower total cost. This is a hypothesis, tested by the [evaluation protocol](docs/evaluation/protocol.md); negative results are reported too.
|
||||
|
||||
## Reference implementation direction
|
||||
|
||||
The proposed reference implementation is written primarily in Zig and should be implemented in this order:
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
| [`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
|
||||
@@ -35,6 +36,7 @@ RFCs are not in this list: accepting an RFC integrates its rules into `spec/` in
|
||||
| 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
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# Evaluation
|
||||
|
||||
Non-normative. Empirical validation of the Aji hypothesis stated in [spec 14](../spec/14-agent-efficiency.md): that the language, verifier and runtime take over enough reasoning for weaker models to write correct systems software at lower cost (Model Capability Compression).
|
||||
|
||||
| Document | Purpose |
|
||||
|---|---|
|
||||
| [protocol.md](protocol.md) | Agent Language Evaluation Protocol 0.1: variables, tasks T01–T10, maintenance and seeded-bug benchmarks, metrics, statistics, stages A–E, success and falsification criteria |
|
||||
|
||||
## Integrity rules (protocol §7, §29; spec 14 §12)
|
||||
|
||||
- This public repository contains only the protocol and **dev** material. Hidden tests, evaluators and reference implementations of the **validation** and **test** sets live in a separate private benchmark repository.
|
||||
- Agents used to develop the language (including the agent working in this repository) MUST NOT see the held-out corpus.
|
||||
- Language features MUST NOT be introduced to improve a specific benchmark task; benchmark failures are classified first (protocol §38).
|
||||
- Negative results are kept and reported (protocol §37).
|
||||
|
||||
## Stages and language milestones
|
||||
|
||||
| Stage | Tasks | Requires | Status |
|
||||
|---|---|---|---|
|
||||
| A — Phase 2 validation | T01–T04 | Phase 2 (heap, regions, resources, capabilities, effects, deterministic I/O) | language ready; infrastructure pending (plan E0) |
|
||||
| B — Phase 3 validation | T05–T07 | Phase 3 (structured concurrency, schedule exploration) | blocked on Phase 3 |
|
||||
| C — Atomic validation | T08, litmus repair | Phase 5 (atomics, memory model) | blocked on Phase 5 |
|
||||
| D — Systems integration | T09, T10 | Phases 3–5; stable features | blocked |
|
||||
| E — Maintenance campaign | M1–M8 on T03, T07, T09, T10 | D | blocked |
|
||||
|
||||
Until the source language (Phase 6) exists, an Aji run means an agent writing text AIR directly. Stage A therefore measures AIR as the agent-facing language; results must say so.
|
||||
File diff suppressed because it is too large.
Load diff
+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 |
|
||||
@@ -58,6 +58,17 @@ Files and sections of `docs/spec/` and `docs/reference/` that receive the normat
|
||||
|
||||
Which AIR format version is affected. A change to the meaning of an existing construct requires a new format version (spec 07 §8.7).
|
||||
|
||||
## Agent complexity impact
|
||||
|
||||
Required for semantic features (spec 14 §6):
|
||||
|
||||
- New concepts the agent must understand:
|
||||
- New state the verifier must track:
|
||||
- Additional syntax or instructions:
|
||||
- Interaction with existing features:
|
||||
- Expected effect on repairability:
|
||||
- Could existing primitives express it?
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
## Unresolved questions
|
||||
+2
-1
@@ -43,6 +43,7 @@ An RFC that changes memory safety, concurrency, effects/capabilities, AIR or uns
|
||||
- rejected example;
|
||||
- diagnostics impact;
|
||||
- migration/compatibility notes, including the AIR format version affected (spec 07 §8.7);
|
||||
- alternatives considered.
|
||||
- alternatives considered;
|
||||
- **agent complexity impact** (spec 14 §6): new concepts the agent must understand, new state the verifier must track, additional syntax or instructions, interaction with existing features, expected effect on repairability, and whether equivalent behavior could use existing primitives. A feature that simplifies human syntax while increasing semantic ambiguity for agents should normally be rejected.
|
||||
|
||||
Template: [`0000-template.md`](0000-template.md).
|
||||
@@ -0,0 +1,424 @@
|
||||
# 14. Agent Efficiency and Model Capability Compression
|
||||
|
||||
Status: Normative draft (design objectives)
|
||||
Applies to: Aji language, AIR, verifier, runtime and agent tooling
|
||||
|
||||
This file states design objectives that every other part of the specification, every RFC and every tool is measured against. The empirical protocol that tests them is [`../evaluation/protocol.md`](../evaluation/protocol.md).
|
||||
|
||||
## 1. Motivation
|
||||
|
||||
Aji is designed for software produced and maintained primarily by AI agents.
|
||||
|
||||
Traditional systems languages require the programming agent itself to perform a large fraction of reasoning about:
|
||||
|
||||
- ownership;
|
||||
- lifetime;
|
||||
- aliasing;
|
||||
- initialization;
|
||||
- resource state;
|
||||
- concurrent access;
|
||||
- authority;
|
||||
- side effects;
|
||||
- failure paths;
|
||||
- platform behavior.
|
||||
|
||||
Aji deliberately moves part of this reasoning from the model into the language, verifier and deterministic runtime.
|
||||
|
||||
The project therefore has an additional design objective:
|
||||
|
||||
> Aji SHOULD reduce the minimum model capability required to produce correct systems software.
|
||||
|
||||
A smaller or less capable model using Aji should be able to approach the correctness of a substantially stronger model using a conventional systems language.
|
||||
|
||||
This property is called **Model Capability Compression**.
|
||||
|
||||
## 2. Core hypothesis
|
||||
|
||||
The Aji project is based on the hypothesis that:
|
||||
|
||||
```text
|
||||
model reasoning
|
||||
+
|
||||
language constraints
|
||||
+
|
||||
verifier reasoning
|
||||
+
|
||||
runtime guarantees
|
||||
|
||||
=
|
||||
|
||||
effective engineering capability
|
||||
```
|
||||
|
||||
Aji attempts to increase the contribution of:
|
||||
|
||||
```text
|
||||
language constraints
|
||||
verifier reasoning
|
||||
runtime guarantees
|
||||
```
|
||||
|
||||
so that less reasoning is required from the model itself.
|
||||
|
||||
The intended result is:
|
||||
|
||||
```text
|
||||
weaker model + Aji
|
||||
≈
|
||||
stronger model + conventional language
|
||||
```
|
||||
|
||||
for a useful class of systems-programming tasks.
|
||||
|
||||
This is an empirical objective and MUST be validated experimentally.
|
||||
|
||||
## 3. Design objectives
|
||||
|
||||
### 3.1 Correctness externalization
|
||||
|
||||
Properties that can be checked mechanically SHOULD not depend on the model remembering them.
|
||||
|
||||
Examples:
|
||||
|
||||
```text
|
||||
memory lifetime
|
||||
initialization
|
||||
bounds
|
||||
resource linearity
|
||||
capability use
|
||||
effects
|
||||
task lifetime
|
||||
data races
|
||||
atomic ordering constraints
|
||||
```
|
||||
|
||||
The preferred design is:
|
||||
|
||||
```text
|
||||
agent proposes
|
||||
verifier decides
|
||||
```
|
||||
|
||||
rather than:
|
||||
|
||||
```text
|
||||
agent must reason perfectly
|
||||
```
|
||||
|
||||
### 3.2 Small semantic surface
|
||||
|
||||
Aji SHOULD minimize the amount of language semantics an agent must understand simultaneously.
|
||||
|
||||
New language features require justification not only in terms of human ergonomics or runtime performance, but also in terms of additional reasoning burden placed on agents.
|
||||
|
||||
A feature SHOULD NOT be added when the same capability can be represented through a small combination of existing primitives without materially harming correctness or performance.
|
||||
|
||||
### 3.3 Explicit semantics
|
||||
|
||||
Hidden behavior increases the reasoning requirement of the model.
|
||||
|
||||
Aji therefore prefers:
|
||||
|
||||
```text
|
||||
explicit allocation
|
||||
explicit move
|
||||
explicit borrow
|
||||
explicit resource close
|
||||
explicit effects
|
||||
explicit capabilities
|
||||
explicit synchronization
|
||||
explicit failure edges
|
||||
```
|
||||
|
||||
over implicit runtime behavior.
|
||||
|
||||
### 3.4 Local reasoning
|
||||
|
||||
Whenever practical, program validity SHOULD be decidable from local information.
|
||||
|
||||
Preferred verifier properties include:
|
||||
|
||||
```text
|
||||
bounded analysis
|
||||
stable diagnostics
|
||||
explicit state transitions
|
||||
local ownership rules
|
||||
explicit CFG edges
|
||||
explicit resource state
|
||||
```
|
||||
|
||||
A language feature that requires large-scale inference across the whole program SHOULD justify that complexity.
|
||||
|
||||
### 3.5 Machine repairability
|
||||
|
||||
Diagnostics are an API consumed by agents.
|
||||
|
||||
Every verifier error SHOULD expose:
|
||||
|
||||
```text
|
||||
stable error code
|
||||
error category
|
||||
affected value
|
||||
instruction
|
||||
source location
|
||||
relevant previous state
|
||||
expected state
|
||||
machine-readable details
|
||||
```
|
||||
|
||||
An agent SHOULD NOT need to infer a semantic error by parsing human prose.
|
||||
|
||||
### 3.6 Deterministic feedback
|
||||
|
||||
Agent development loops SHOULD be reproducible.
|
||||
|
||||
Where possible:
|
||||
|
||||
```text
|
||||
same program
|
||||
same input
|
||||
same grants
|
||||
same seed
|
||||
same execution profile
|
||||
same schedule record
|
||||
```
|
||||
|
||||
MUST produce the same observable result.
|
||||
|
||||
This reduces the amount of probabilistic debugging the model must perform.
|
||||
|
||||
### 3.7 Bounded context requirement
|
||||
|
||||
Aji SHOULD be usable effectively without requiring the entire ecosystem to be loaded into the model context.
|
||||
|
||||
The project SHOULD maintain a minimal **Agent Reference Bundle** containing:
|
||||
|
||||
```text
|
||||
core language rules
|
||||
AIR instructions
|
||||
verifier rules
|
||||
diagnostic registry
|
||||
standard intrinsic signatures
|
||||
feature registry
|
||||
```
|
||||
|
||||
The size of this bundle MUST be measured for every major language version.
|
||||
|
||||
Growth of the Agent Reference Bundle is treated as a language complexity metric.
|
||||
|
||||
## 4. Model Capability Compression
|
||||
|
||||
Model Capability Compression exists when a lower-capability model using Aji reaches the quality of a higher-capability model using another systems language.
|
||||
|
||||
Example:
|
||||
|
||||
```text
|
||||
Mid model + Aji
|
||||
>=
|
||||
Strong model + Rust
|
||||
```
|
||||
|
||||
under the same language-neutral task specification and acceptance tests.
|
||||
|
||||
The project MUST NOT claim Model Capability Compression based on individual examples.
|
||||
|
||||
It must be demonstrated across a held-out benchmark suite and multiple independent runs.
|
||||
|
||||
## 5. Economic objective
|
||||
|
||||
Aji also targets lower:
|
||||
|
||||
```text
|
||||
cost per correct implementation
|
||||
```
|
||||
|
||||
and:
|
||||
|
||||
```text
|
||||
cost per correct modification
|
||||
```
|
||||
|
||||
Cost includes at minimum:
|
||||
|
||||
```text
|
||||
model inference
|
||||
agent retries
|
||||
verification iterations
|
||||
test iterations
|
||||
tool invocations
|
||||
```
|
||||
|
||||
Hardware execution cost MAY be reported separately.
|
||||
|
||||
The important metric is not cost per generated token.
|
||||
|
||||
The important metric is:
|
||||
|
||||
```text
|
||||
total cost / accepted solutions
|
||||
```
|
||||
|
||||
including failed attempts.
|
||||
|
||||
## 6. Design review requirement
|
||||
|
||||
Every RFC introducing a semantic feature SHOULD contain:
|
||||
|
||||
```text
|
||||
## Agent complexity impact
|
||||
```
|
||||
|
||||
covering:
|
||||
|
||||
- new concepts the agent must understand;
|
||||
- new state the verifier must track;
|
||||
- additional syntax or instructions;
|
||||
- interaction with existing features;
|
||||
- expected effect on repairability;
|
||||
- whether equivalent behavior could use existing primitives.
|
||||
|
||||
A feature that simplifies human syntax while increasing semantic ambiguity for agents SHOULD normally be rejected.
|
||||
|
||||
## 7. Syntax sugar
|
||||
|
||||
Human-facing `.aji` syntax MAY contain conveniences not present in AIR.
|
||||
|
||||
Syntax sugar is preferred when it:
|
||||
|
||||
- introduces no new semantic concept;
|
||||
- has one obvious canonical lowering;
|
||||
- does not hide allocation, authority, synchronization or failure;
|
||||
- does not make diagnostics ambiguous.
|
||||
|
||||
AIR remains the canonical explicit representation.
|
||||
|
||||
## 8. Agent-oriented standard library
|
||||
|
||||
Standard library APIs SHOULD prefer:
|
||||
|
||||
```text
|
||||
small number of orthogonal operations
|
||||
explicit ownership transitions
|
||||
explicit failure modes
|
||||
bounded allocation behavior
|
||||
machine-readable contracts
|
||||
```
|
||||
|
||||
over large convenience APIs.
|
||||
|
||||
Multiple APIs with nearly identical semantics SHOULD be avoided unless benchmarks demonstrate a meaningful benefit.
|
||||
|
||||
## 9. Evaluation obligations
|
||||
|
||||
At major language milestones, Aji SHOULD be evaluated across multiple model capability levels.
|
||||
|
||||
Minimum classes:
|
||||
|
||||
```text
|
||||
frontier
|
||||
strong
|
||||
mid
|
||||
small/local
|
||||
```
|
||||
|
||||
The exact models are not part of the language specification.
|
||||
|
||||
Model versions MUST be recorded with benchmark results.
|
||||
|
||||
Aji SHOULD be compared with at least:
|
||||
|
||||
```text
|
||||
Rust
|
||||
Zig
|
||||
```
|
||||
|
||||
and MAY additionally be compared with:
|
||||
|
||||
```text
|
||||
C
|
||||
C++
|
||||
```
|
||||
|
||||
where useful.
|
||||
|
||||
## 10. Primary hypotheses
|
||||
|
||||
The project tracks the following hypotheses.
|
||||
|
||||
### H1 — Correctness advantage
|
||||
|
||||
Agents produce correct systems programs more frequently in Aji than in conventional systems languages.
|
||||
|
||||
### H2 — Repair advantage
|
||||
|
||||
Agents require fewer compiler/verifier/test repair cycles to reach a correct program.
|
||||
|
||||
### H3 — Context advantage
|
||||
|
||||
Agents require less source and documentation context to safely modify an existing program.
|
||||
|
||||
### H4 — Model capability compression
|
||||
|
||||
Lower-capability models using Aji approach or exceed stronger models using conventional systems languages.
|
||||
|
||||
### H5 — Economic advantage
|
||||
|
||||
Expected cost per correct implementation or modification is lower with Aji.
|
||||
|
||||
### H6 — Maintenance advantage
|
||||
|
||||
The correctness advantage remains when modifying existing systems rather than only generating new programs.
|
||||
|
||||
## 11. Non-goals
|
||||
|
||||
Aji does not claim that:
|
||||
|
||||
- weak models always match frontier models;
|
||||
- verifier acceptance implies functional correctness;
|
||||
- Aji removes the need for tests;
|
||||
- Aji eliminates architectural mistakes;
|
||||
- every programming domain benefits equally;
|
||||
- reduced model capability is worth arbitrary runtime overhead;
|
||||
- benchmark-specific language features are acceptable.
|
||||
|
||||
## 12. Anti-overfitting rule
|
||||
|
||||
Language features MUST NOT be introduced solely to improve a specific benchmark task.
|
||||
|
||||
Benchmark tasks are evidence about the language.
|
||||
|
||||
They are not part of the language design.
|
||||
|
||||
The held-out benchmark corpus MUST remain unavailable to agents used in language development until evaluation.
|
||||
|
||||
## 13. Success condition
|
||||
|
||||
The strongest evidence for the Aji hypothesis would be a repeated result of the form:
|
||||
|
||||
```text
|
||||
Mid model + Aji
|
||||
```
|
||||
|
||||
being statistically non-inferior to or better than:
|
||||
|
||||
```text
|
||||
Strong model + Rust/Zig
|
||||
```
|
||||
|
||||
for correctness on systems-programming tasks while also requiring lower total inference cost.
|
||||
|
||||
A result of:
|
||||
|
||||
```text
|
||||
Frontier model + Aji
|
||||
>
|
||||
Frontier model + Rust/Zig
|
||||
```
|
||||
|
||||
is useful but is not by itself sufficient to establish Model Capability Compression.
|
||||
|
||||
## 14. Project principle
|
||||
|
||||
Aji should not require the agent to be smarter when the language can make the invalid program impossible.
|
||||
|
||||
The language, verifier and runtime are part of the reasoning system.
|
||||
@@ -23,6 +23,7 @@ The specification is split by semantic domain. Rationale for major decisions liv
|
||||
| [11-determinism-and-replay.md](11-determinism-and-replay.md) | Normative draft | Deterministic testing/replay |
|
||||
| [12-packages-and-build.md](12-packages-and-build.md) | Normative draft | Manifest/build model |
|
||||
| [13-contracts-and-unsafe.md](13-contracts-and-unsafe.md) | Normative draft | Contracts, proof status and unsafe boundaries |
|
||||
| [14-agent-efficiency.md](14-agent-efficiency.md) | Normative draft (design objectives) | Agent efficiency, Model Capability Compression, design review requirement |
|
||||
|
||||
## Reading order
|
||||
|
||||
|
||||
Reference in new issue
Block a user