docs: close Phase 6 with owner-confirmed deferral of contracts and literal twins

This commit is contained in:
dev committed 2026-10-13 09:46:29 +03:00
1 parent a3224ea44e
commit 18d2976f24
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ At the owner’s request (2026-10-06), reusable std APIs were implemented in a s
| P2 | done (exit review in the phase file) |
| 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 |
| P6 | done, provisional (exit review in `phase-6-source-language.md`); contracts (P6-13) and literal same-code twins (P6-14) deferred pending owner decisions (RFC 0039, Q-053) |
| P6 | done (exit review in `phase-6-source-language.md`); contracts (P6-13) and literal same-code twins (P6-14) deferred by owner decision (2026-10-13; RFC 0039, Q-053) |
| P4 | done (exit review in the phase file) |
| P5 | done (exit review in the phase file): atomics through every layer; litmus 20/20 exact against the independent oracle; race detector on every run test |
| B1 | the first held-out benchmark after Phase 5 (owner decision, 2026-10-06): pre-registration [`b1-heldout-plan.md`](../evaluation/b1-heldout-plan.md) Accepted; private side: independent author → references → symmetric calibration → freeze → 162 runs |
+5 -5
View File
@@ -134,13 +134,13 @@ Lowering layers (P6A-3/4), each with accepted (golden AIR), rejected (`E7xxx`) a
| P6-3 | done (RFC 0021 Implemented) | Explicit package modules, direct imports and qualified nominal types | P6-2 | `src/frontend/modules.zig`, spec 15 §14 | deterministic graph/name resolution; source/AIR and CLI tests |
| P6-4 | done (RFC 0022 Implemented) | Type checking and monomorphized generics with structural constraints (`Copy`, `Send`, `Share`, `Freeze`, `Local`) | P6-3 | `src/frontend/generics.zig`, spec 15 §15 | generic code instantiates deterministically; constraint violations diagnosed |
| P6-5 | doing | Lowering to AIR: control flow, `?`, `defer` cleanup edges, borrow blocks, task scopes | P6-4 | `src/frontend/lower.zig` | lowered AIR verifies; lowering is a pure function (same input ⇒ same AIR bytes) |
| P6-6 | doing; proposed split to P6-13 (owner confirmation pending; spec gate: Q-054, RFC 0039 Draft) | Contracts: `requires`/`ensures`/invariants → contract table; status classification | P6-5 | frontend + verifier | each contract reported as PROVEN_STATICALLY / CHECKED_AT_RUNTIME / ASSUMED_UNSAFE / UNPROVEN |
| P6-7 | doing; literal criterion proposed split to P6-14 (owner confirmation pending, Q-053) | Source spans in diagnostics for verifier errors on lowered AIR | P6-5 | `src/diag.zig`, lowering | every conformance reject test has a source-level twin with the same code |
| P6-6 | moved to P6-13 (owner confirmed 2026-10-13; spec gate: Q-054, RFC 0039 Draft) | Contracts: `requires`/`ensures`/invariants → contract table; status classification | P6-5 | frontend + verifier | each contract reported as PROVEN_STATICALLY / CHECKED_AT_RUNTIME / ASSUMED_UNSAFE / UNPROVEN |
| P6-7 | done for the source-error scope; literal same-code criterion moved to P6-14 (owner confirmed 2026-10-13, Q-053) | Source spans in diagnostics for verifier errors on lowered AIR | P6-5 | `src/diag.zig`, lowering | every conformance reject test has a source-level twin with the same code |
| P6-8 | done | Formatter for implemented source syntax | P6-2 | `aji fmt`, spec 15 §11 | token/comment/declaration preservation; idempotence, identical AIR and CLI write/check tests |
| P6-9 | done | Port reference programs and examples to `.aji` | P6-5 | `tests/conformance/source/programs/`, `examples/` | all five source/AIR reference pairs and every example source/package pass |
| P6-11 | done (implementation; RFC 0036 Proposed) | Source functions/calls returning borrows with explicit `from` origin; Q-034 | P6-3/4 | spec 15, binding/call/return lowering, Quick Reference and source/AIR conformance | origin/lifetime and temporary-end rules specified; valid/rejected returned views use existing verifier/interpreter semantics |
| P6-12 | doing (advice/collection delivered; dev measurement pending) | Structured source repair advice and independent diagnostic collection; owner proposal 2026-10-09 | P6-2/4/7 | [repair plan](../design/source-diagnostic-repair.md), spec 15 §10, parser/lowering and CLI | advice applicability and additive fields specified/tested; independent item/body errors collected without partial AIR or cascades; bundle growth and public dev effect measured |
| P6-10 | done (provisional, owner confirmation pending) | Phase exit review | all | plan status | exit criterion passes (exit review below) |
| P6-10 | done (owner confirmed deferral of P6-6/P6-7, 2026-10-13) | Phase exit review | all | plan status | exit criterion passes (exit review below) |
| P6-13 | todo (deferred out of Phase 6) | Contracts, split from P6-6: blocked on RFC 0039 (Draft), Q-054, Q-055 owner decisions | owner | frontend + verifier | as P6-6 |
| P6-14 | todo (deferred out of Phase 6) | Literal same-code source twins, split from P6-7: blocked on the Q-053 criterion decision | owner | `tools/source_reject_twins.py` | `--require-complete` passes or Q-053 amends the criterion |
@@ -879,8 +879,8 @@ still fail in `blockBodyWant`/`expr`: shared control lowering, other callbacks,
Q-060 full per-step GC and Phase 6 exit review remain open.
## Phase 6 exit review (2026-10-13, provisional)
## Phase 6 exit review (2026-10-13)
Exit criterion (all reference programs and `examples/` authored as `.aji` and passing the corpus through the frontend): met. All five source/AIR reference pairs and every example pass; 1,793/1,793 conformance cases, unit tests and `zig fmt --check` pass at `f419063`; source construct coverage is 121/121 (519 run/accept, 904 reject tests). Codex's iterative lowering of block/if/match/select control is committed (`f419063`); its state-equivalence test tolerates the frozen reference's leaked arm scope on error exits, which is unobservable because `function()` resets scopes.
Not met and deferred, not claimed: P6-6 (contracts, RFC 0039 Draft) becomes P6-13 and P6-7's literal same-code criterion (97/206 verified, 108 classified as E7xxx analogues or AIR-only, Q-053) becomes P6-14. Q-060 (full per-step GC validation) and Q-061 (remaining lowering-depth callbacks) stay open as hardening, outside the exit criterion. This rescoping is an agent proposal and needs owner confirmation; reverting means restoring P6-6/P6-7 as blocking.
Not met and deferred, not claimed: P6-6 (contracts, RFC 0039 Draft) becomes P6-13 and P6-7's literal same-code criterion (97/206 verified, 108 classified as E7xxx analogues or AIR-only, Q-053) becomes P6-14. Q-060 (full per-step GC validation) and Q-061 (remaining lowering-depth callbacks) stay open as hardening, outside the exit criterion. The rescoping was proposed by the agent and confirmed by the owner on 2026-10-13.