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
@@ -48,7 +48,7 @@ Reason: Zig's standard library changes between minor versions; an unpinned toolc
|
||||
|
||||
## DD-009 — CLI diagnostics are JSON Lines on stdout
|
||||
|
||||
`aji` writes one JSON diagnostic per line on stdout, human notes on stderr, and uses fixed exit codes (0 accepted or returned, 1 rejected, 2 usage/I/O, 3 not yet implemented, 4 trapped).
|
||||
`aji` writes one JSON diagnostic per line on stdout, human notes on stderr, and uses fixed exit codes (0 accepted or returned, 1 rejected, 2 usage/I/O, 3 not yet implemented, 4 trapped, 5 execution limit exceeded).
|
||||
|
||||
Reason: agents consume diagnostics programmatically (spec 10); mixing prose into the machine channel breaks repair loops.
|
||||
|
||||
@@ -57,3 +57,21 @@ Reason: agents consume diagnostics programmatically (spec 10); mixing prose into
|
||||
Tests live in `tests/conformance/phase<N>/{accept,reject}/` with `expect`/`phase`/`spec` header lines that the runner strips before parsing.
|
||||
|
||||
Reason: AIR is the conformance format (spec 07 §1), and keeping metadata out of the AIR grammar lets the grammar evolve independently of the test harness.
|
||||
|
||||
## DD-011 — The specification is the single normative source
|
||||
|
||||
RFCs are decision records. Accepting an RFC integrates its rules into `docs/spec/` in the same change; afterwards the spec is authoritative and the RFC keeps the rationale.
|
||||
|
||||
Reason: a permanent "accepted RFC overrides spec" rule makes old RFCs conflict with the current spec over time; one normative source keeps agents from having to reconcile layers.
|
||||
|
||||
## DD-012 — AIR format 0 is a frozen semantic baseline
|
||||
|
||||
After Phase 0, the meaning of existing format-0 constructs does not change. Later phases may only add instructions, types, features and codes under the rules of spec 07 §8.7; anything else needs `air 1` and an RFC.
|
||||
|
||||
Reason: a stable foundation lets generated code, tests and tools rely on format 0 indefinitely.
|
||||
|
||||
## DD-013 — Deterministic fuel instead of timeouts
|
||||
|
||||
Runs are bounded by fuel (executed AIR instructions), never by wall-clock time. Exhaustion is the outcome `limit_exceeded` (exit code 5), not a trap.
|
||||
|
||||
Reason: timeouts make test outcomes depend on machine speed; a trap code for exhaustion would make the test harness part of the language semantics.
|
||||
@@ -24,7 +24,7 @@ Status values: `open`, `resolved`.
|
||||
| Q-016 | open | P0 | Floating-point determinism |
|
||||
| Q-017 | open | P5 | Replay file format |
|
||||
| Q-018 | resolved | P2 | Runtime diagnostics (traps) vs verifier diagnostics |
|
||||
| Q-019 | open | P3 | Non-terminating programs in test tooling |
|
||||
| Q-019 | resolved | P3 | Non-terminating programs in test tooling |
|
||||
|
||||
## Q-001 — Text AIR grammar
|
||||
|
||||
@@ -123,3 +123,5 @@ The error registry covers verifier/compiler errors. Traps and runtime check fail
|
||||
## Q-019 — Non-terminating programs in test tooling
|
||||
|
||||
A program may legitimately loop forever, so the language cannot bound execution. The conformance runner and `ajid` still need a way to stop a run without making the outcome depend on wall-clock time. Options: a deterministic step budget that is a tooling parameter (reported as "budget exhausted", never as a language trap), or explicit `fuel:` in test headers. Must be decided before scheduler stress tests (P3), which multiply run counts.
|
||||
|
||||
**Resolved:** deterministic instruction fuel (spec 11 §7). Wall-clock time is never used to determine semantic test termination. Fuel exhaustion is an execution-runner outcome (`limit_exceeded`, CLI exit code 5), not an Aji trap.
|
||||
Reference in new issue
Block a user