spec 04 §20: Q-024 resolved (RMW events, initialization write, object orders, channel FIFO and capacity, C++20 release sequence); litmus corpus normative; P5-0 PASS; Phase 5 implementation GO

This commit is contained in:
dev committed 2026-10-06 07:26:47 +03:00
1 parent f8d2a99249
commit ce9ef03bc0
6 files changed
+89 -18

No files matched your search

+1 -1
View File
@@ -156,5 +156,5 @@ Targets for Phase 6A, measured on dev tasks:
| P3 | done (exit review in the phase file); P3-10, P3-11 moved to P7 |
| P6A | done (exit review in `phase-6-source-language.md`; P6A-9 [results](../evaluation/results/2026-10-05-p6a-9.md)): the agent-facing source language over AIR is the architecture |
| P4 | done (exit review in the phase file) |
| P5 | started with the RFC (owner decision, 2026-10-05): implementation on hold until the RFC is accepted, the M/C regression on `p4-frozen` passes and the litmus corpus is ready |
| P5 | implementation in progress (GO 2026-10-06): RFC 0015 accepted, M/C regression PASS, normative litmus corpus 20/20 against the independent oracle |
| P7, P8 | not started |
+24 -2
View File
@@ -10,6 +10,28 @@ Non-normative. Part of the [implementation plan](README.md).
**Blocking questions:** none. Q-015 was resolved by RFC 0015; Q-017 moved to Phase 8 with record/replay.
**Implementation GO (owner, 2026-10-06).** All three gates are closed:
| Gate | Result |
|---|---|
| M/C regression | PASS |
| RFC 0015 | Accepted |
| oracle self-tests | 21/21 |
| normative litmus corpus | 20/20 |
| Q-024 | resolved |
Order, strictly vertical:
```text
AIR types and instructions → verifier → interpreter weak-memory exploration
→ .aji → Quick Reference → litmus conformance → reference program
```
The first thing the interpreter must show:
- all 20 litmus tests give exactly the oracle's sets;
- programs without `atomic.weak` keep their interleaving behavior, with unchanged run records.
**Owner decision (2026-10-05, after the Phase 4 exit review).** Phase 5 starts with the RFC. Implementation is on hold until all three of these are done:
1. the RFC is reviewed and accepted;
@@ -53,9 +75,9 @@ Phase 4 commit frozen (tag p4-frozen)
| ID | Status | Task | Depends | Output | Done when |
|---|---|---|---|---|---|
| P5-0 | done (gate: owner verdict pending) | M/C regression on the frozen Phase 4 commit (tag `p4-frozen`): M, C × Aji/source × N1–N3, 6 cells, same agents, tasks, evaluators and procedure as P6A-9 | — | [`docs/evaluation/results/2026-10-06-p5-0.md`](../evaluation/results/2026-10-06-p5-0.md) | see "Regression gate" below; 6/6 PASS; R3 found frontend defect A (`ref` through `mut`), fixed with a regression test |
| P5-0 | done (PASS, owner 2026-10-06) | M/C regression on the frozen Phase 4 commit (tag `p4-frozen`): M, C × Aji/source × N1–N3, 6 cells, same agents, tasks, evaluators and procedure as P6A-9 | — | [`docs/evaluation/results/2026-10-06-p5-0.md`](../evaluation/results/2026-10-06-p5-0.md) | see "Regression gate" below; 6/6 PASS; R3 found frontend defect A (`ref` through `mut`), fixed with a regression test |
| P5-1 | done | RFC 0015: scalar atomics and the Aji memory model (supersedes RFC 0003); closes the owner's question list; resolves Q-015; scope of Q-017 | — | `docs/rfcs/0015-…` | Accepted by the owner and integrated into spec 04, 05, 07a, 11, 15 |
| P5-1a | done (owner review pending) | Litmus enumerator `tools/litmus` (an executable oracle derived from spec 04 §20, not the definition) and the normative corpus: the classes MP, SB, LB, release/acquire publication, `seq_cst` ordering (IRIW, SB with `seq_cst`), relaxed counter, CAS success/failure, fence publication, forbidden non-atomic race, atomic/non-atomic mixing, plus the handoffs (mutex, channel, spawn/join). Each test has allowed and forbidden outcome sets | P5-1 | `tools/litmus/`, `reference/concurrency-litmus.md`, `tests/litmus/` | the enumerator's allowed set equals every stated set, disagreements diagnosed (spec 04 §20.5); owner review |
| P5-1a | done (corpus normative, owner 2026-10-06) | Litmus enumerator `tools/litmus` (an executable oracle derived from spec 04 §20, not the definition) and the normative corpus: the classes MP, SB, LB, release/acquire publication, `seq_cst` ordering (IRIW, SB with `seq_cst`), relaxed counter, CAS success/failure, fence publication, forbidden non-atomic race, atomic/non-atomic mixing, plus the handoffs (mutex, channel, spawn/join). Each test has allowed and forbidden outcome sets | P5-1 | `tools/litmus/`, `reference/concurrency-litmus.md`, `tests/litmus/` | the enumerator's allowed set equals every stated set, disagreements diagnosed (spec 04 §20.5); owner review |
| P5-2 | done | Contract tables: `atomic.new`, `atomic.take`, `atomic.load`, `atomic.store`, RMW, `atomic.cmpxchg`, `atomic.fence` | P5-1 | spec 04 §42, spec 07a | all spec 07 §4 fields present, with the ordering tables of spec 04 §24 (integrated with RFC 0015) |
| P5-2a | todo | Publish feature `atomics` (depends on `effects`, `ownership`) | P5-3 | `reference/air-features.md`, `src/air/features.zig` | feature_not_declared / missing_dependency tests |
| P5-3 | todo | AIR parse/print, types (linear `atomic<T>`, AtomicScalar, not IslandSafe), ordering tables, `E4202` | P5-1a | `src/air/`, `src/verifier/` | `E4201` accept/reject for every operation and every cmpxchg success/failure pair; `E4202`; `E1001`, `E2111`, `E0006` cases |