spec: accept RFC 0006 and integrate effects and capabilities

- spec 05 §9-§12: flat effects, checking rule, capability model,
  instantiation by parameter name, lifetime, fallible narrowing,
  intrinsic calls, runtime
- spec 07 §8.9, 07a (cap.narrow, intrinsic, run result), 08 stage
  order, 11 not_instantiated outcome
- new reference/effects.md and reference/capabilities.md (kinds,
  scopes, built-in cap_error)
- features effects and capabilities published
- Q-011, Q-012 resolved
This commit is contained in:
dev committed 2026-10-04 13:36:46 +03:00
1 parent 3fd1513c86
commit fb4338cea6
10 files changed
+245 -13

No files matched your search

+5 -4
View File
@@ -80,12 +80,13 @@ Fuel exhaustion is a decision of the execution environment, not behavior of the
- a program's semantics are the same with or without a fuel limit, except that a limited run may end early with `limit_exceeded`;
- for a given module, inputs and fuel limit, the outcome is deterministic.
The three run outcomes are therefore:
The run outcomes are therefore:
```text
returned the program finished
trapped the program failed (T0xxx)
limit_exceeded the environment stopped the program
not_instantiated the environment did not start the program (spec 05 §10.2)
returned the program finished
trapped the program failed (T0xxx)
limit_exceeded the environment stopped the program
```
Running without a fuel limit is permitted (for example `aji run program.air`). Conformance, fuzz and stress runs MUST use a fuel limit.