spec: accept RFC 0012 and integrate waits, channels, select and mutex

revision 2 per owner review: reserved-feature dependencies may change
until publication (general rule, DD-014); task.join.cancel returns the
handle on cancelled with loans still LOANED; channel.sender.dup from
ref<sender<T>> (MPSC, receiver_dup reserved); task.wait required by
every suspending operation, task.join included, only in modules
declaring cancellation; sent values and handles come back as block
parameters on closed/cancelled edges; explicit channel states

spec 04 §37-§41 and pointers in §11-§16, §35, §36; spec 05 §9, 07
§8.11, 07a, 08 §14, 11 §6-§7; features cancellation, channels, sync
published (implementation pending); rwlock, channel_transfer,
receiver_dup, guard_transfer reserved; effect task.wait; E4304, E4305;
Q-013 resolved; bundle +15.8 % tokens (recorded)
This commit is contained in:
dev committed 2026-10-04 16:27:38 +03:00
1 parent 4230c78dd1
commit b82bc35c5f
19 files changed
+387 -67

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ Reason: timeouts make test outcomes depend on machine speed; a trap code for exh
## DD-014 — AIR feature negotiation
AIR format 0 uses the mandatory `features [...]` header as an explicit semantic compatibility contract. Every post-baseline AIR 0 extension belongs to a registered feature (`reference/air-features.md`). Modules MUST declare every feature they use and its dependency closure. Implementations MUST validate the feature set before validating the module body. Unknown, unsupported, undeclared, duplicated or dependency-incomplete features are reported as `E0006` with a structured `reason`. Feature semantics are immutable once published. `aji features` reports what a toolchain supports.
AIR format 0 uses the mandatory `features [...]` header as an explicit semantic compatibility contract. Every post-baseline AIR 0 extension belongs to a registered feature (`reference/air-features.md`). Modules MUST declare every feature they use and its dependency closure. Implementations MUST validate the feature set before validating the module body. Unknown, unsupported, undeclared, duplicated or dependency-incomplete features are reported as `E0006` with a structured `reason`. Feature semantics are immutable once published. `aji features` reports what a toolchain supports. While a feature is reserved, no valid module can use it, so its dependency set may change; on publication the dependencies freeze with its semantics (owner decision on RFC 0012).
Reason: format 0 is frozen; features make it an extensible protocol without an older implementation half-parsing a module it cannot understand. One code with a reason keeps the §8.7 exception for `E0006` intact.
+2 -2
View File
@@ -18,7 +18,7 @@ Status values: `open`, `resolved`.
| Q-010 | resolved | P1 | Region generation checks: static, dynamic, or both |
| Q-011 | resolved | P2 | Effect hierarchy and discharge |
| Q-012 | resolved | P2 | Capability representation and host instantiation |
| Q-013 | open | P3 | Deterministic `select` rule and scheduler seed |
| Q-013 | resolved | P3 | Deterministic `select` rule and scheduler seed |
| Q-014 | resolved | P3 | `Send`/`Share` derivation for aggregates holding capabilities |
| Q-015 | open | P5 | Operational weak-memory model for the interpreter |
| Q-016 | open | P0 | Floating-point determinism |
@@ -107,7 +107,7 @@ Binary AIR has a `CAPABILITY_TABLE` (spec 07 §6). Undecided: how capabilities a
Spec 04 §14 and spec 11 §6 require a stable rule in deterministic mode but do not define it. Also undecided: scheduler seed format and which choice points are recorded.
**Proposed (RFC 0012):** ready arms chosen by a draw from the schedule generator (not textual order); task choices and arm choices share one stream and one `choices` count. The schedule seed was settled by RFC 0011.
**Resolved (RFC 0012, spec 04 §39):** ready arms chosen by a draw from the schedule generator (not textual order); task choices and arm choices share one stream and one `choices` count. The schedule seed was settled by RFC 0011.
## Q-014 — `Send`/`Share` for aggregates holding capabilities