spec: single normative source, accept RFC 0004, freeze AIR format 0, fuel
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)
This commit is contained in:
1 parent
dc36b5cfc0
commit
03dda1245a
24 files changed
+268
-63
No files matched your search
@@ -59,15 +59,16 @@ ownership transfer
|
||||
|
||||
## Source of truth
|
||||
|
||||
When documents disagree, use this precedence order:
|
||||
The specification is the single normative source. When documents disagree, use this precedence order:
|
||||
|
||||
1. accepted RFCs;
|
||||
2. files in `docs/spec/`;
|
||||
3. files in `docs/reference/`;
|
||||
4. examples;
|
||||
5. README prose.
|
||||
1. files in `docs/spec/`;
|
||||
2. files in `docs/reference/`;
|
||||
3. examples;
|
||||
4. README prose.
|
||||
|
||||
Until an RFC is explicitly marked Accepted, the spec remains authoritative.
|
||||
RFCs are architectural decision records with rationale, not a normative layer. Accepting an RFC means its rule changes are integrated into `docs/spec/` (and `docs/reference/`) in the same change; from then on the spec, not the RFC, is authoritative. If an accepted RFC and the spec disagree, the spec wins and the RFC is out of date.
|
||||
|
||||
AIR format 0 is a frozen semantic baseline (spec 07 §8.7): do not change the meaning of existing format-0 constructs; extend only as §8.7 allows, otherwise introduce a new format version through an RFC.
|
||||
|
||||
## Normative language
|
||||
|
||||
@@ -130,7 +131,7 @@ zig fmt --check build.zig build.zig.zon src tools
|
||||
|
||||
Toolchain: Zig 0.17.0. Workflow, layout and definition of done: `CONTRIBUTING.md`. Implementation plan and current phase: `docs/plan/README.md`. Documentation layout and where new documents go: `docs/README.md`. Unresolved spec gaps: `docs/design/open-questions.md` — log new ones there instead of guessing.
|
||||
|
||||
`aji` CLI output contract: diagnostics are JSON Lines on stdout, human notes on stderr; exit codes 0 accepted/returned, 1 rejected, 2 usage/I/O error, 3 not yet implemented, 4 trapped. `aji run` prints one JSON run record.
|
||||
`aji` CLI output contract: diagnostics are JSON Lines on stdout, human notes on stderr; exit codes 0 accepted/returned, 1 rejected, 2 usage/I/O error, 3 not yet implemented, 4 trapped, 5 execution limit exceeded. `aji run [--fuel N]` prints one JSON run record. Never use wall-clock timeouts to end runs or tests; use fuel (spec 11 §7).
|
||||
|
||||
## Testing policy
|
||||
|
||||
|
||||
Reference in new issue
Block a user