rfc: 0015 scalar atomics and the Aji memory model accepted (revision 2) and integrated into the spec

The Aji RC11 profile (RC11 with NO-THIN-AIR; stronger than ISO C11/C++20) as
normative axioms in spec 04 §20; DRF-SC; linear atomic<T> for AtomicScalar
with atomic.new/atomic.take; ref<atomic<T>> operands; ordering tables incl.
cmpxchg failure table and two results; effects [atomic] / [atomic, atomic.weak];
target atomic_widths and E4203; E4202; enumerator as oracle (observed ⊆ allowed,
exact equality on the normative litmus corpus). Feature atomics stays reserved
until P5-2a. Q-015 resolved; record/replay and Q-017 moved to Phase 8.
RFC 0003 superseded. AIR bundle +1.9 %.
This commit is contained in:
dev committed 2026-10-06 00:30:35 +03:00
1 parent 702d69b2c1
commit 2bbbd2135c
24 files changed
+927 -142

No files matched your search

+4
View File
@@ -39,6 +39,8 @@ aji run --record failure.ajr app.aji
aji replay failure.ajr
```
In the deterministic profile the run record together with `--seed`, `--schedule-seed` and `--quantum` already reproduces a run exactly, weak-memory choices included (spec 04 §42). A replay file for hosted or native runs would also have to record reads-from choices, modification orders and the SC order; its format (Q-017) is Phase 8 work (RFC 0015).
## 5. Concurrency exploration
Test mode may systematically or pseudo-randomly vary scheduling at synchronization points.
@@ -64,6 +66,8 @@ When `select` has multiple ready branches, deterministic mode must choose accord
Rule (RFC 0012, spec 04 §39): a draw from the schedule generator among the ready arms, counted in the run record's `schedule.choices`.
Weak-memory choices (which allowed write a non-`seq_cst` read reads, spec 04 §42) are drawn from the same generator and counted the same way.
## 7. Execution limits
Wall-clock time MUST NOT determine whether a run, test or verification terminates or what its outcome is.