- spec 08 §7.1: platform-independent accounted size table shared by
max_value_size and max_local_frame; enum tag is the smallest of
1/2/4/8 bytes; borrows 8, slices 16; checked arithmetic, overflow is
E5101 with found = "overflow"
- every materializable type in a module must be at most 1 MiB,
checked before functions are verified; each oversized type reported
once
- E5101 fields no longer truncate huge sizes
- conformance: frame_too_large, value_too_large, size_overflow
- Q-020 resolved; Phase 1 closed
- all Phase 1 tasks done, exit criterion met
- README and architecture reflect the implemented modules
- open question Q-020: size bound for SSA array values
- air: types local/ref/mut/array/slice/slice_mut, from-returns,
multi-result binding, 18 new instructions; feature gating reports
E0006 feature_not_declared; borrow-typed block parameters gated by
borrow_joins; printer and round-trip tests for all new forms
- verifier: second-class and zeroable type rules (E1001); local.alloc
only in entry (E5002); frame size accounting (E5101); stages init
(E1010), borrow (E2101, E2102, E2105-E2108) and bounds facts (E2103);
value types shared between stages
- interp: frame cells, places, slices, deep copies between storage and
SSA values, T0008 bounds traps
- features arrays and ownership supported; implemented_phase = 1
- conformance: 5 accept, 18 reject, 11 run tests for Phase 1, including
the file-copy core exit program; 6000 mutants without a crash
- RFC 0005 Accepted (revision 2)
- spec 07 §8.8 types and syntax; spec 07a contracts for features
ownership and arrays; spec 08 §11-§14 borrows, facts, initialization,
stage order; spec 03 frame storage, second-class borrows, static
region generations
- grammar: from-returns, multi-result, new types and opcodes
- feature registry: ownership and arrays published; heap added and
regions moved to Phase 2; borrow_joins reserved and unscheduled
- codes E2105-E2108, T0008
- Q-009, Q-010 resolved; Phase 1 and Phase 2 plans updated; Own test
moved to phase 2
1. frame-derived borrows never escape (new E2108); aggregate escape
impossible by the second-class rule
2. local.alloc only in the entry block (E5002); frame size limit with a
normative accounting table (E5101)
3. path linearity of borrows; full borrow state compared at joins; only
the accepted program set is normative
4. slice.sub takes (start, len) with overflow-free checks; slice.split
ranges; slice.copy copies len(src) into the prefix of dst, no overlap
5. explicit fact table for borrow.index.proven
Phase 1 memory design for features ownership and arrays, recording the
owner's decisions on Q-009 (second-class borrows, `from` on returns),
Q-010 (static-only region generations) and phase order (no heap in
Phase 1; Own, heap and regions move to Phase 2).
- reference/air-features.md: normative feature registry (arrays,
atomics, capabilities, channels, effects, islands, ownership, regions,
sync, tasks; all reserved), dependency closures, reasons for E0006
- spec 07 §8.1/§8.5/§8.7: features are mandatory, validated before the
body, full dependency closure declared, sorted canonically; every
extension belongs to a feature; published feature semantics immutable
- spec 05 §8: features vs effects vs capabilities
- src/air/features.zig: registry, validation, sync test with the docs
- parser validates features first; E0006 carries `reason`
- `aji features` prints supported AIR format, language and features
- conformance: unknown, reserved and duplicate feature tests
- plan: feature publication tasks in phases 1-5
Owner decisions after the Phase 0 review:
- precedence: docs/spec/ is the single normative source; RFCs are
decision records whose accepted rules are integrated into the spec in
the same change (AGENTS.md, docs/README.md, rfcs/README.md, DD-011)
- RFC 0004 Accepted (scope: AIR format 0, language 0.1)
- AIR format 0 frozen as the semantic baseline; spec 07 §8.7 defines the
only permitted additive changes, everything else needs `air 1` (DD-012)
- Q-019 resolved: deterministic instruction fuel (spec 11 §7). Outcome
`limit_exceeded` is a runner outcome, not a trap; `aji run --fuel N`,
exit code 5; conformance runs always use fuel (default 1 000 000,
`fuel:` header); fuel/schedule budget/quantum kept separate for P3
(DD-013)
- all Phase 0 tasks done; exit criterion met (41 conformance tests,
run records compared across two runs)
- RFC 0004 Amendment 1 documents format-0 additions; status stays
Proposed pending owner acceptance
- open question Q-019: non-terminating programs in test tooling
- README/CONTRIBUTING: current state and `aji run`
- src/interp/machine.zig: format-0 interpreter on the air64 target;
checked/wrapping arithmetic, shifts, casts, aggregates, calls with a
1024-frame limit, traps as records with T0xxx codes
- aji run: prints one JSON run record; exit code 4 on trap
- conformance runner: `expect: run` with `result:`/`trap:`, every run
executed twice and compared byte-for-byte; header keys must be single
lowercase words
- Phase 0 corpus: 3 accept, 19 reject, 15 run tests (41 total)
- text AIR format 0: grammar (reference/air-text.ebnf) and module,
block, SSA, type and canonical-form rules (spec 07 §8)
- instruction contracts for format 0 (new spec 07a)
- traps: stable T0xxx codes and trap records (spec 01 §6)
- integer edge cases and explicit casts (spec 02 §2.1)
- fixed verifier resource limits (spec 08 §7)
- target description with pointer_bits (spec 09 §9)
- new codes E0001-E0006, E1003, T0001-T0007
- resolves Q-001, Q-003..Q-008, Q-018; Q-002 resolved for format 0
- docs/roadmap/ -> docs/plan/ (implementation-plan.md becomes plan/README.md)
- docs/reference/design-decisions.md -> docs/design/decisions.md (+ DD-008..010)
- SPEC.md and docs/spec/INDEX.md merged into docs/spec/README.md
- new docs/design/open-questions.md: spec gaps found so far (Q-001..Q-018)
- new docs/dev/architecture.md and docs/dev/testing.md
- docs/README.md: layout, precedence, where new documents go
- update links in README, AGENTS, CONTRIBUTING, sources and test docs
Draft specification, RFCs, reference registries and examples, plus the
reference-implementation skeleton: build.zig, diagnostic envelope with
error-code registry synced to docs, aji CLI, conformance runner with seed
tests, CI and contributor docs.