AIR: types island<T>, frozen<T>, arc<T>, iref<T>; 16 instructions (island.create/alloc/root/borrow/freeze/destroy, frozen.root/borrow/ release, arc.from_frozen/new/clone/release/root/borrow, iref.eq); features islands (depends on heap) and arc (depends on islands) published. Verifier: IslandSafe/ArcSafe (E2111 at the owner type), container child borrows (one mut access per island), Send/Share rows (island not Share), linear owners, mem.alloc effect, element rules (recursion through iref). Interpreter: graphs with never-reused identities, T0010 for a foreign iref, O(1) freeze/conversion/transfer, arc counts in a trace hook (Options.arc_events), budgets per the quota table, collector support. .aji layer 9: types, operations, island.at/frozen.at/arc.at as borrow places with explicit container borrows, iref ==/!=. Frontend fix: joins carry only variables the construct assigns (and that are read again), so an unchanged linear value is never a block argument while borrowed. Tests: 10 AIR (phase4), 6 .aji run + 12 rejects (layer9), the reference program island-pipeline in .aji, equivalent to an independently hand-written AIR program (36 on 30 schedule seeds); unit tests for the arc count trace and O(1) transfer. Quick Reference §7 graphs (checked excerpt of quickref/graphs.aji); coverage 61/61. Bundle growth: AIR +7.0%, Quick Reference +0.6k, source docs +4.2k (recorded). Spec: quota rows match the header-reserved count; idioms and iref recursion in spec 03 §22; P4-11 (air-text.ebnf gaps) recorded.
Aji Specification 0.1
Status: Draft 0.1. The specification is the single normative source (see precedence in ../README.md). RFCs record decisions and rationale; their accepted rules are integrated here.
The specification is split by semantic domain. Rationale for major decisions lives in ../rfcs/; short decisions in ../design/decisions.md.
Files
| File | Status | Topic |
|---|---|---|
| 00-status-and-conformance.md | Normative draft | Conformance, safety, profiles |
| 01-language-overview.md | Normative draft | Language shape and control flow |
| 02-types-and-values.md | Normative draft | Primitive/composite types, properties |
| 03-memory-model.md | Normative draft | Ownership, regions, islands, frozen graphs |
| 04-concurrency-and-atomics.md | Normative draft | Tasks, synchronization, memory model, atomics |
| 05-effects-and-capabilities.md | Normative draft | Authority and effect tracking |
| 06-resources-and-errors.md | Normative draft | Linear resources and error handling |
| 07-air.md | Normative draft | Canonical IR, text format |
| 07a-air-instructions.md | Normative draft | Per-instruction contracts |
| 08-verifier.md | Normative draft | Verification rules |
| 09-runtime-and-abi.md | Normative draft | Runtime, FFI, MMIO/DMA |
| 10-diagnostics-and-agent-protocol.md | Normative draft | Stable diagnostics and ajid |
| 11-determinism-and-replay.md | Normative draft | Deterministic testing/replay |
| 12-packages-and-build.md | Normative draft | Manifest/build model |
| 13-contracts-and-unsafe.md | Normative draft | Contracts, proof status and unsafe boundaries |
| 14-agent-efficiency.md | Normative draft (design objectives) | Agent efficiency, Model Capability Compression, design review requirement |
| 15-source-language.md | Normative draft | The agent-facing source language .aji 0.1 (Phase 6A), lowering to AIR |
Reading order
Implementers: 00 → 01 → 03 → 04 → 07 → 08 → 13. The most consequential files are 03, 04, 05, 07, 08, 11 and 13.
Central semantic model
local value
│
├── ref<T> / mut<T> borrows
│
├── Own<T> per-object ownership
│
├── Region bulk lifetime
│ │
│ └── Island<T> closed movable mutable graph
│ │
│ └── freeze → Frozen<T>
│
└── synchronized sharing → Mutex/RwLock/Atomic/Channel
Concurrency is deliberately ordered by preference:
ownership transfer
→ shared immutable data
→ synchronized shared state
→ atomics
→ unsafe raw concurrency
Changing the spec
- Small clarifications and gap fills: edit the file directly, in the same change as the tests that exercise them.
- Changes to memory safety, concurrency, effects/capabilities, AIR or unsafe semantics: write an RFC first (
../rfcs/0000-template.md). On acceptance, integrate its rules into this directory in the same change. - AIR format 0 is frozen (spec 07 §8.7). Incompatible changes require a new format version.
- Known gaps are tracked in
../design/open-questions.md. Close the entry when the spec answers it.