air: feature negotiation for AIR format 0 (DD-014)

- 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
This commit is contained in:
dev committed 2026-10-04 12:49:29 +03:00
1 parent 03dda1245a
commit 19dff5dd52
24 files changed
+366 -17

No files matched your search

+3 -2
View File
@@ -49,8 +49,9 @@ Everything under `src/` except `main.zig` is part of the trusted computing base
2. **Spec first.** If the behavior is not specified, change the spec (or write an RFC for major changes) before code. Never let the implementation define semantics silently.
3. **Tests first.** Add conformance tests (`accept` and `reject`) for every verifier rule touched.
4. **Implement.**
5. **Diagnostics.** A new rejection needs a code in `docs/reference/error-codes.md` *and* `src/diag.zig`; the unit test fails if they drift.
6. **Run** `zig fmt`, `zig build test`, `zig build conformance`.
5. **Features.** A new AIR construct belongs to a feature in `docs/reference/air-features.md`; publishing a feature means specifying it fully, changing its status to `published` in the registry and `src/air/features.zig`, and adding it to `supported`.
6. **Diagnostics.** A new rejection needs a code in `docs/reference/error-codes.md` *and* `src/diag.zig`; the unit test fails if they drift.
7. **Run** `zig fmt`, `zig build test`, `zig build conformance`.
## Definition of done