Files
aji/docs/plan/phase-6-source-language.md
T

107 KiB
Raw Blame History

Phase 6 — Source language

Non-normative. Part of the implementation plan.

Goal: .aji source that lowers deterministically and explicitly to AIR, with diagnostics mapped back to source spans.

Phase 6A (brought forward, owner decision 2026-10-05). First a minimal frontend for the frozen semantics of Phases 0–3, with no new semantics. Its principle: .aji removes mechanical work but never hides a semantically significant action.

Removed SSA values, block parameters, the hand-written CFG, the features [...] header (inferred), intermediate values, boilerplate
Kept explicit move, borrow and mutable borrow, allocation, resource ownership, capabilities, effects, task spawn and join, channel ownership transfer, locking, cancellation, fallible I/O

Targets and the evaluation order are in README.md. Phase 6A is specified by RFC 0013. Generics, contracts, modules and the formatter (P6-4, P6-6, P6-8) stay for the full Phase 6.

Exit criterion: all reference programs and examples/ are authored primarily as .aji and pass the conformance corpus through the frontend.

Spec inputs: spec 01, 02, 03 §4, 06 §3–4, 13 §1–2; reference/grammar.ebnf.

Rule: a source feature is acceptable only if its lowering to AIR is deterministic, explicit and mechanically verifiable (spec 01 §8). The frontend is outside the TCB; the verifier still checks its output.

Phase 6A tasks (RFC 0013, spec 15)

ID Status Task Depends Output Done when
P6A-1 done Spec 15, grammar, E7xxx, E3101 suggested_effects, E0006 canonical_header, Quick Reference — spec 15, reference/grammar.ebnf, docs/agent/quick-reference.md RFC 0013 accepted
P6A-2 done Lexer and parser with spans (full 6A grammar; one precise E7001, no recovery) P6A-1 src/frontend/{lex,parse}.zig every spec 15 example parses; syntax errors are E7001
P6A-3 doing Names and source types: variables, functions, types, built-in operations, outcome arms P6A-2 src/frontend/check.zig E7002–E7007 accept/reject tests
P6A-4 doing Lowering: control flow, variables → SSA/block parameters, frame storage, lexical borrow ends, outcome matches, block forms (scope, shield, lock), select, byte literals, feature closure P6A-3 src/frontend/lower.zig lowered AIR verifies; lowering is a pure function
P6A-5 done Source spans on lowered AIR; verifier diagnostics and trap records carry source_location and air_location P6A-4 src/frontend/spans.zig, src/diag.zig every diagnostic of a .aji file points at source
P6A-6 done CLI: aji check/run/lower file.aji P6A-4 src/main.zig same flags and run record as for .air
P6A-7 doing .aji twins for the Phase 0–3 conformance tests (same outcome or code) and the reference programs P6A-5 tests/conformance/source/ for the freeze (owner decision): the three reference programs (programs/parallel_map, channel_transfer, tcp_echo_tasks) pass with AIR equivalence on every schedule seed, and every source construct has a run/accept and, where it rejects, a reject test (tools/source_coverage.py, 56/56). Further twins are added gradually
P6A-8 done Source Reference Bundle (directory, QUICK.md front door, AIR reference only under air/), harness profile aji_source with per-group documentation metrics, Quick Reference examples checked against conformance programs, raw and normalized size metrics P6A-6 docs/agent/source-bundle.txt, tools/eval/languages/aji_source.json bundle measured; every Quick Reference example is an excerpt of a checked program
P6A-9 done Dev regression on tasks M and C: Aji/AIR vs Aji/source, all three native agents, both conditions run again on p6a-candidate (12 cells) P6A-8 results note criteria below reported
P6A-10 done Phase 6A exit review all plan status targets reported (exit review below)
P6A-12 done Source type-check completeness: errors fully determined by the source type system are reported by the frontend as E7xxx at the source construct, never left to the verifier on the lowered AIR (checkpoint 2: E1001 ×4 in a source run). Not a layer 7 blocker; to be closed before the Phase 6A freeze P6A-4 src/frontend/lower.zig for each verifier type rule reachable from source, a source test expecting the E7xxx
P6A-11 done Malformed generated AIR is a compiler bug: when a .aji module passed the frontend but its AIR fails to parse or is structurally invalid, report an internal compiler diagnostic (with the source construct), not the AIR parse error mapped back (found by the M checkpoint: void fall-through lowered to ret %) P6A-4 src/check.zig, error registry a test that injects malformed lowering gets the internal diagnostic

P6A-9 criteria (owner decision, fixed before the runs)

Compared per agent with the frozen Aji/AIR run of the same task:

Measure Criterion
IR-form diagnostics (E0001–E0006, E5001, E5002; ajieval profile) decrease ≥ 80 %
agent output tokens decrease ≥ 50 %
tool calls decrease materially
Aji semantic guarantees unchanged (same verifier, same evaluator gates)
VSR no regression
uncached provider input (strong agents) substantial decrease
weakest agent (GLM) an earlier Aji/AIR failure becomes a PASS, or repair cycles drop sharply

Also reported:

  • wall time;
  • unique_docs_read and reading per group (quick_reference, source_docs, air_docs);
  • diagnostic classes;
  • source bytes, lowered AIR bytes (raw and normalized);
  • type mismatches (E1001 + E7005), counted apart from the IR-form classes so that relabeling cannot improve them.

Order (owner decision, after P6A-8):

  1. M checkpoint (diagnostic, not P6A-9). Task M only, Aji/source, the three native agents, run from the frozen commit tagged p6a-m-checkpoint. The Quick Reference and the Source Reference Bundle stay unchanged until this run is done, so the comparison stays clean. Bundle hash at the tag: sha256 24cca814c7be1826ea797a1cc9759d0e0dd996bc6561f7b46f0ad1f4e77a2843, over sha256sum of the files of zig-out/agent/source/, sorted.
  2. Compare with the frozen Aji/AIR runs and classify the effect. Nothing changes automatically on the strength of M.
  3. Task C waits for layers 7–8.
  4. Layer 7, then layer 8; the concurrency programs of the Quick Reference (tests/conformance/source/quickref/) leave PENDING and pass.
  5. Freeze one Phase 6A commit and run M + C × 3 agents: this is the official P6A-9.
  6. Phase 6A review (P6A-10); only then any decision about further frontend changes.

Type mismatches (E1001, E7005) stay a separate category from the IR-form diagnostics.

Status (2026-10-05). Steps 1–2 are done in two checkpoints (results). Checkpoint 1 found two toolchain defects, fixed in 222c0c8. Checkpoint 2 gave AIR 2/3 and source 3/3, with IR-form diagnostics at 0 in source. The owner closed the IR-tax diagnosis at the engineering level: layer 7 GO. Remaining order:

  1. layer 7 (tasks, channels);
  2. layer 8 (lock, select, cancellation);
  3. every concurrency example of the Quick Reference passes;
  4. Phase 6A candidate freeze;
  5. official P6A-9: M + C × 3 agents.

The cost hypothesis stays open: it needs repetitions.

Lowering layers (P6A-3/4), each with accepted (golden AIR), rejected (E7xxx) and verifier-caught tests in tests/conformance/source/:

Layer Content Status
1 scalars, expressions, functions, control flow, variables carried across joins, short-circuit and/or, casts done
2 structs (named construction, declaration-order lowering), enums (Enum::Variant), exhaustive match over enums (no _) and integers (_ required), match as an expression; outcome matches and or trap move to layer 5 with the fallible operations done
3–4 addressable values (frame storage chosen by lowering), lexical borrows (ref r = …;/mut r = …;), places and writes, arrays, slices, split_at, slice.copy, byte strings, proven indexing for the verifier's fact form; move comes with linear values in layer 5 done
5 explicit move for linear values (E7003 with the move x hint), own/own_array, regions with an explicit region borrow, outcome matches (match kind decided by the parser), or trap, built-in error enums, cap<mem.alloc> and cap.narrow.budget; linear aggregates stay rejected (E0006); aji lower --stats reports mechanical_air_eliminated done
6 intrinsics as plain calls (outcome match / or trap), resources by name with a per-operation borrow, explicit closes and data borrows, cap.narrow.prefix, byte-string paths, unsafe operations under effects [unsafe], trusted rejected, preserved parameter names; source/AIR run-record equivalence (equivalent:) for hello, file copy, TCP echo, prefix narrowing, random done
7 scope blocks, task.spawn/join/cancel/cancelled, task<T>/sender<T>/receiver<T>, channels (make, dup, send, recv, close_sender, close_receiver), endpoint operands by name, rebinding of variables on outcome edges, joins carry live variables only; source/AIR equivalence with the Phase 3 task and channel programs done
8 lock blocks over mutex<T> (guard never a source value; unlock at every exit), mutex.make/take, select (one borrow per endpoint, unsent values bound back on every edge), shield, task.check_cancel, task.join_cancel; linear values never in frame storage; source/AIR equivalence with the Phase 3 mutex, select and cancellation programs; every Quick Reference example passes done

Phase 6A exit review (2026-10-05, owner decision: PASS)

Delivered:

  • the .aji 0.1 frontend, layers 1–8, over the frozen semantics of Phases 0–3;
  • one canonical spelling per construct, deterministic and canonical lowering, a source map for every diagnostic and trap;
  • internal compiler errors for malformed lowering (P6A-11);
  • source-level type errors (P6A-12);
  • the Source Reference Bundle with a checked Quick Reference (P6A-8);
  • the three reference programs in source with AIR equivalence, and source construct coverage 56/56 (P6A-7, freeze criterion).

Defects found by the experiments and fixed:

  • interpreter memory grew with the number of executed steps (222c0c8);
  • void fall-through lowered to malformed AIR (222c0c8).

P6A-9 (results):

Measure Result
IR-form diagnostics 9 → 0
VSR 4/6 → 5/6
program size 17–26 KB → 7–11 KB
documentation read 6–36k AIR tokens → Quick Reference + 0.4–8.6k
N3 on M AIR FAIL → source PASS, the second time
output-token criterion (≥ 50 %) not met: −36 % for N1+N2, model-dependent

Earlier Phase 6A targets (size ≤ 1.5× Rust, output ≤ 2× Rust) were not measured against Rust in P6A-9. Rust/Zig against Aji/source belongs to the next held-out benchmark.

Open, not blocking:

  • P6A-7 twins of the remaining conformance tests, added gradually;
  • harness: documentation accounting for partial reads; where the status fields are recorded.

Tasks (full Phase 6)

ID Status Task Depends Output Done when
P6-1 doing Complete the source grammar: expressions, match, borrow blocks, task.scope, select, defer, ?, generics, lifetimes, contracts, attributes — (may start after P2) reference/grammar.ebnf, spec 01 every construct in examples/ is covered; grammar is LL(k) or otherwise documented as unambiguous
P6-2 doing Lexer and parser with spans P6-1 src/frontend/{lex,parse}.zig all examples/ parse; syntax errors are registered diagnostics
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 (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 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, 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 todo Phase exit review all plan status exit criterion passes

The standard-library track implements nineteen compiler-pinned modules and qualified standard enum names. STD-3/RFC 0021 completes P6-3 with explicit manifest source mapping, acyclic linking, direct qualified names, imported struct literals and task workers. Dependency fetching/resolution is separate package work; STD-4/RFC 0022 completes explicit generics and structural constraints. STD-5/RFC 0023 adds whole-value linear structs/enums/fixed arrays, complete unpack/match, explicit exchange and ownership-preserving allocation failure through all layers (spec 15 §16). STD-6a/b/RFC 0024 resolves Q-036 with initialized buffer and safe std.vec, explicit growth, returned failure ownership and draining (spec 15 §17). STD-6c/RFC 0025 adds safe owning Deque with existing source primitives. STD-6d.1/RFC 0026 adds pure std.hash; STD-6d.2/RFC 0028 adds safe owning U64Map after the explicit error_values prerequisite (RFC 0027). STD-6d.3/RFC 0029 adds explicit static function parameters for general hash/equality/order operations with existing AIR calls/workers. STD-6d.4/RFC 0030 implements the general owning-key std.hashmap contract; its full GC/stress validation passes and Q-037 is resolved. STD-6d.5/RFC 0031 implements general owning std.hashset with duplicate input return; its conformance, GC/schedule, CLI and documentation checks pass. STD-6d.6/RFC 0032 implements safe owning std.heap with explicit order; conformance, GC/schedule, CLI and documentation checks pass. STD-7a/RFC 0033 implements bounded std.io composition with explicit progress, resource loans and exact effects; conformance, GC/schedule, CLI and documentation checks pass. STD-7b/RFC 0034 implements safe owning buffered file adapters with explicit finish/discard and first-error/no-retry behavior; conformance, GC/schedule, CLI and documentation checks pass. STD-7c/RFC 0035 adds pure caller-buffer lexical paths and Copy component ranges; conformance, GC/schedule, CLI and documentation checks pass. The owner adopts STD-0..7 as an intermediate foundation and resumes language work (2026-10-07); remaining std system/service milestones stay in the backlog. P6-11 implements explicit borrowed returns over the existing AIR; RFC 0036 remains Proposed pending owner adoption (Q-034). These increments do not complete Phase 6.

P6-11 implementation review (2026-10-07)

RFC 0036 remains Proposed for owner adoption; its spec integration and implementation are prepared together. Borrow functions preserve explicit origins through ordinary/generic/package calls; exact-mode ref/mut bindings retain a named parent. Named returns transfer only their owned ancestor chain, and ordinary verifier/interpreter semantics decide provenance, aliasing, task loans and traps. Static function parameter borrow contracts and borrow joins stay outside this task.

Validation: full conformance 1,135/1,135 with no failures or pending tests; 56 focused conformance cases including a frozen Phase 1 AIR twin and four canonical AIR goldens; per-step collection and 200 schedule seeds across four quanta for the concurrent fixture; 61 generic regression cases; unit tests, format and bundle/example checks; CLI integration 133 checks, generic/module integration 20/36 checks, hosted smoke. Independent read-only review by Claude found a misleading feature diagnostic when spawning a borrow-returning function and missing array bounds in unused generic signatures. Both were fixed and independently rechecked. Added cases cover those failures, valid generic bounds, normal scope/shield/lock returns, an unjoined task and lock-guard escape. Source construct coverage is 119/119. Quick Reference/source budget is recorded in RFC 0036 and docs/agent/README.md. P6-8 is implemented below; larger syntax/contracts work still needs its separate spec gate.

P6-8 formatter (2026-10-07)

aji fmt formats one source file without linking, specializing, verifying or running it; --check emits a JSON status, and explicit --write atomically replaces a regular file while preserving permissions. Libraries and semantically rejected programs remain formattable. Original token spellings, comments and declaration order are retained; output is re-tokenized before exposure, and layout traversal is iterative. No syntax, AIR feature, verifier/runtime state or diagnostic code is added. Invalid syntax reports the existing E7001. The CLI contract and layout are spec 15 §11; the public-corpus/CLI script runs in CI.

Validation: unit tests and Zig formatting pass, including 10,000-term expressions, comments/CRLF, continuation indentation and statement groups. The formatter CLI suite passes 3,146 checks over 853 public files: 844 parse and format idempotently, nine existing syntax-error fixtures report E7001, and 548 successful lowerings retain byte-identical AIR. The suite also checks explicit writes, unchanged inode/mtime, permissions, symbolic/hard links, FIFO rejection, JSON/exit codes and a source run. Full conformance remains 1,135/1,135. Independent read-only review by Claude identified layout/comment handling defects; fixes were independently rechecked and covered by unit cases. Original source files are not rewritten. Documentation budgets are recorded in docs/agent/README.md. Review found the separate existing block-statement ambiguity Q-040; resolving its syntax belongs to P6-1/P6-2 and is not inferred by the formatter. This increment does not complete Phase 6.

P6-1/P6-2 block boundary increment (2026-10-07)

Q-040 is resolved in spec 15 §4 and the grammar (DD-016): leading bare if, match and {…} finish before outer expression operations in statement/tail position. The enclosing } selects a tail, ; an explicit discard, otherwise a block statement must yield void or diverge. This E7006 guard prevents silent reinterpretation of former expressions such as {2i64} -3i64; parenthesized continuations and nested expression contexts remain available. The parser marks block statements, ordinary/generic lowering checks the guard, and the formatter derives line boundaries from statement spans. No AIR feature, diagnostic code or verifier/runtime state is added. P6-1/P6-2 remain open for the rest of their grammar work.

Validation: full conformance passes 1,154/1,154 with no failures or pending tests, including 19 focused source cases covering stores, other unary starts, tails, explicit contexts/discards, generic bodies, mixed diverging/value branches and lexical borrow ends. Unit tests, Zig formatting, bundle/example checks and 120/120 construct coverage pass. The formatter/CLI suite passes 3,267 checks over 872 public files: 860 parse idempotently, 12 syntax-error fixtures reject with E7001, and 557 successful lowerings preserve byte-identical AIR. A before/after comparison over the original 853 public files finds no exit-code changes and identical AIR for all 548 successful lowerings. Independent read-only review by Claude found the silent value-discard risk in the initial design; the guard fixes it, and final review found no remaining issues. Budgets are recorded in docs/agent/README.md; frozen evaluation inputs are unchanged.

P6-7 E7006 reason increment (2026-10-07)

DD-017/spec 15 §10 registers 28 stable E7006 categories, explicitly selected at all 130 frontend rejection sites. Borrowed and non-materializable moves cannot be counted as move_copy; permitted generic Copy transfers remain accepted. The compiler rejects future unclassified E7006 emissions at compilation. The JSON field follows existing code-specific fields, retaining their values, positions and messages. No code, rejection rule, language/AIR syntax or verifier/runtime state changes. P6-7 remains open for its source-span/twin requirements.

ajieval summary adds occurrences and affected runs by (code, reason), with log availability; profile/checkpoint expose per-run counts. Code totals and the historical compact-code extraction stay intact. Whole JSON records provide reasons; historical, malformed or unparsed records remain unknown and missing logs remain unavailable. These are observed outputs over the entire transcript, without a pre-acceptance cutoff; they do not establish repair cost or justify implementing RFC 0038. New cohort timing, strata and missing-data policy remain evaluation decisions. Frozen evaluation inputs and historical records are unchanged.

Validation: full conformance passes 1,154/1,154; CLI passes 130 checks including 72 public E7006 fixtures, generic/package cases, deterministic serialization and non-E7006 preservation. A comparison over 872 public files finds no changes beyond the new reason: all 557 accepted AIR outputs and every original diagnostic payload remain identical. The 26 ajieval self-tests pass (one environment skip), including historical uncertainty, unknown future reasons, native transcripts, code-total conservation, run incidence and checkpoint JSON. Independent read-only review by Claude found no defects in the extension; its registry-scope suggestion was incorporated. Bundle growth is recorded in docs/agent/README.md. This completes the independent instrumentation prerequisite, not RFC 0038 or Phase 6.

RFC 0037/DD-018 prepares spec integration and implementation of one factual related_locations record on identified E2101/E2104 conflicts and E4302 tasks. Existing definition positions identify selected borrows; each task loan carries constant-sized spawn metadata through cancelled-join handle replacement. Typed JSON appends the array after the old envelope. Each related position maps independently, including imports and specializations; absent mappings omit source coordinates while retaining AIR coordinates. Primary fields, first-conflict selection and source duplicate suppression are unchanged; no block/repair inference, code, syntax, feature, transfer rule or runtime change is introduced. RFC 0037 remains Proposed for owner adoption; P6-7 remains open for the remaining span/twin work.

Validation: unit tests and full conformance pass, 1,160/1,160 with no failures or pending tests, including six new source/AIR positive/rejected counterparts and repeated cancelled joins. CLI passes 267 checks/161 context records, covering public rejects, function parameters, second split results, call-result definitions, exact source mapping from public annotations, generics and packages. Unit tests cover typed/key-ordered JSON, missing mappings, two cancelled-handle replacements and deduplication retaining the first conflict. Cancellation conformance passes with collection before every instruction and 200 schedule seeds under multiple quanta. Across 1,199 original public AIR/source/std/example files, removal of only the appended metadata recovers byte-identical outputs and exit codes, including all 701 successful check/lower outputs. Source construct coverage remains 120/120. Independent read-only review by Claude found no implementation issues. Bundle measurements are recorded in docs/agent/README.md; frozen evaluation inputs remain untouched. No repair-cost experiment or RFC 0038 implementation is included.

P6-7 diagnostic-envelope correction (2026-10-07)

DD-019/spec 10 §2 fixes three legacy duplicate-field emissions discovered during compatibility review: E3202 unsupported narrowing and E7002 unknown source capability kinds use capability_kind, preserving the stable envelope kind; E2102 unlock with a live child borrow reports borrow and guard separately. Consumers previously reading a capability payload from the duplicate kind must use capability_kind; former last-key-wins readers retain the selected E2102 borrow identity. Codes, rejection/transfer rules, primary positions, messages, guard/loan state and deterministic execution are unchanged. No new syntax, feature or repair is introduced; P6-7 remains open.

Validation: the new pipeline test reproduces a failure before correction and passes afterwards; unit tests and full conformance pass, 1,162/1,162 with no failures or pending tests, including a source unknown/known capability pair. All final source/AIR diagnostics are checked for noncolliding fields and parsed as JSON with duplicate members forbidden, after frontend fields and source mapping. CLI passes 271 checks/161 context records with a strict JSON reader and targeted checks for all three corrected forms. Across the 1,199-file compatibility baseline, only the two known legacy AIR collision records change beyond the earlier related metadata; all successful outputs and exit codes remain identical. Independent read-only review by Claude found no missed emission or implementation defect; its recommendation to validate final mapped records is implemented in conformance. Budgets are recorded in docs/agent/README.md; frozen evaluation inputs and historical reports are unchanged.

P6-2 source scope-name increment (2026-10-07)

Q-041 is resolved in spec 15 §7 (DD-020): source scope names are lexical identifiers, used only as the named first operand of task.spawn. Ordinary plain/moved value use rejects E7006 invalid_expression, with name and type: scope, before any misleading E7003 transfer hint. Borrowing and assignment retain their existing reasons; non-name/wrong-type spawn operands retain E7005. Ordinary shadowing, saved completion identity, live-child/loan checks and function-local AIR scope flow are unchanged. Formerly accepted aliases and scope-valued expressions now reject. No new source syntax, diagnostic code/reason, feature or verifier/runtime state is introduced. P6-2 remains open for its remaining block forms.

Validation: unit tests and full conformance pass, 1,186/1,186 with no failures or pending tests, including 24 new source fixtures (four runs, twenty rejects). New cases cover aliases, block/branch/scope yields, aggregates, arguments, specialized bodies, shadowing, outer/nested scope lookup and unjoined children. Scope tests pass with 200 schedule seeds and collection before every instruction; the strengthened return case joins a task holding a ref loan, while break/continue cases join mutable loans. CLI diagnostics pass 206 checks over 88 public E7006 fixtures, including exact imported generic locations, unchanged alternate reasons and deterministic/hosted runs at three quanta. Formatter checks pass 3,359 assertions over 900 public files, with 888 parsed files, 12 syntax-error fixtures and 565 identical successful AIR outputs. Coverage remains 120/120. Across 1,208 original public source/AIR/std/example files, all 2,084 check/lower outputs and exit codes are byte-identical, including 560 successful source lowerings. Independent read-only Claude review found no accepted bypass or cleanup regression; its immutable-assignment spec clarification is included. Bundle growth is recorded in docs/agent/README.md; frozen evaluation inputs remain unchanged. This completes Q-041, not Phase 6.

P6-9 executable examples (2026-10-07)

Four legacy examples now use implemented source syntax: disjoint parallel map, Island channel transfer, atomic publication and a bounded journal. The hello package now enters through .aji, retaining its AIR counterpart. All 27 example source files are checked through 24 standalone entry points and two explicit packages, including the module helper. Five larger source/AIR reference pairs already live in tests/conformance/source/programs/; their stress validation completes this task. P6-10 remains open.

No language/spec, AIR, diagnostic, verifier or interpreter rule changes. Existing ownership, borrow, effect, capability and task rules enforce explicit joins, resource consumption and release/acquire ordering; existing source rejects such as layer9/reject/use_after_send.aji retain E2001. Previously unparsable examples become executable. The journal creates a fresh file, checks length/offset before writing, documents its payload-only CRC and blocks further appends after partial I/O failure; explicit close remains required. This is an application example, not a durable-log contract or an implementation of source requires/ensures.

Validation: unit tests and full conformance pass, 1,186/1,186. All five reference pairs pass with 200 schedule seeds and collection before every instruction. New CI checks pass 3,662 CLI calls: every example/package, independent journal encoding/CRC/offset checks, overflow without writes, partial hosted writes, and concurrent source/AIR record equality at 200 seeds across three quanta. Linux raises the failed file's quota before retry to verify poisoning; the branch without prlimit also passes, retaining the original quota. Independent Claude review found the old-file offset error and two integration issues; these are corrected. A separate formatter correction preserves spaces in unpack/grouped range forms, with a failing-before/passing-after unit test and CLI AIR-fidelity test. Source Bundle hashes are unchanged for all 16 files; Quick Reference, AIR and token budgets do not grow. Frozen evaluation inputs remain unchanged.

P6-5 fields named len (2026-10-07)

The implementation follow-up from P6-9 is resolved: nominal values and ref/mut receivers dispatch .len through ordinary field access, using the declared field type. Array field types are also available to inference for chained access such as header.len.len. Arrays and slices, including slices of structs, retain their built-in length behavior. Spec 15 §5 already defines these rules; no spec, bundle, AIR, verifier or interpreter change is required.

Existing borrow/load/end and whole-value ownership rules remain authoritative: reading a Copy field succeeds, conflicting borrows reject E2101, and projecting a linear field rejects E1001. Missing struct fields now produce E7002 with type and field, replacing the misleading array/slice E7005. Enum field access and type mismatches retain E7005. A struct length field does not prove slice bounds: the out-of-bounds regression still traps T0008. This restores specified source behavior without changing accepted AIR semantics or runtime state.

Validation: full conformance passes 1,201/1,201, including all 15 new cases; the new cases also pass with collection before every instruction. Unit tests, generic CLI integration (32 checks), formatting checks and coverage (120/120) pass. The formatter passes 3,437 checks over 916 public files, with 582 identical successful AIR outputs. Imported generic fields preserve declared types, source locations and source/AIR run-record parity. Across 1,233 original public files, all 2,134 check/lower results agree after normalizing absolute versus relative diagnostic file paths; all 570 successful source lowerings are byte-identical. Independent read-only Claude review found no remaining issues. P6-5 remains open for its other source-layer work.

P6-7 block positions and lifetime twins (2026-10-07)

Generated block labels now carry the explicit source span of their creating construct, including branch joins, loop headers/exits/steps and short-circuit expressions. E3002 at a resource-state join therefore identifies the source construct instead of falling back to 1:1. Annotations expose label positions; canonical AIR and verifier/runtime rules are unchanged. Existing source-location deduplication now preserves errors on distinct constructs. The borrowed-buffer-element fixture consequently expects both allocation and destruction diagnostics.

Eight Phase 2 AIR rejection twins and five successful source runs cover owner/region/resource lifetimes and explicit release. Eleven further rejects cover every join form and distinct diagnostics. The CI CLI suite checks exact primary/AIR positions, label annotations, code parity and imported generic provenance. Existing ownership and borrow invariants, explicit cleanup and deterministic execution remain authoritative; no spec, diagnostic code, bundle or evaluation input changes. P6-7 remains open for the remaining twins.

Validation: unit tests and full conformance pass, 1,225/1,225; all 24 new cases pass with per-instruction collection. Lifetime CLI checks pass 188 assertions, related-location checks 301, coverage 120/120 and formatting checks pass. The formatter checks 940 public files with 606 identical AIR outputs. Across 916 original public sources, check outcomes and all 421 accepted canonical AIR outputs are unchanged; four diagnostic outputs gain source positions, one also recovering a previously suppressed error. Independent read-only Claude review found no remaining issues.

The parser-range follow-up is resolved in the P6-2 increment below.

P6-2 complete parser ranges (2026-10-07)

Twelve parser sites now finish parsing their bodies/operands before capturing the node's end. Nested type closers track the consumed first half of >> independently of the token cursor. These changes restore complete block, prefix, move and if ranges, including cancellation arms; syntax, acceptance rules, primary diagnostic positions and canonical AIR are unchanged.

Three unit regressions failed before the correction and pass afterwards. They check exact ranges, AST containment, file/namespace provenance, comments, CRLF and nested closers. The existing CI formatter suite also validates nonempty ordered annotation ranges and reconstruction of canonical AIR across successful public lowerings. No normative document, bundle or evaluation input changes; P6-2 remains open for its remaining grammar work.

Validation: unit tests, formatting checks and full conformance pass, 1,225/1,225. Across 940 public sources, all check/lower outputs and exit codes remain unchanged, including 606 successful canonical lowerings. The formatter passes 4,139 checks; lifetime and related-position CLI suites pass 188/301 checks. Independent read-only Claude review found no remaining issues.

P6-5 whole-array argument increment (2026-10-07)

Q-023 is resolved in spec 15 §5 / DD-021. Explicit temporary arguments preserve the array for a known ref/mut array parameter, including specialized and imported calls; other arguments and borrow bindings retain slice behavior. Shared reborrows and child-first temporary cleanup use existing AIR primitives. Exact types/lengths/modes, aliasing, bounds, named retained origins and task loans remain authoritative. Local whole-array bindings cannot serve as array-borrow origins or task loans; forwarding an existing array-borrow parameter can. No syntax, instruction, code, feature, verifier/runtime state or frozen evaluation input changes. Source bundle growth is recorded in docs/agent/README.md; AIR is unchanged. P6-5 remains open.

Validation: 32 new conformance cases pass with per-instruction collection and 200 scheduler seeds; full conformance is 1,257/1,257 and unit tests pass. CLI integration passes 85 checks, including deterministic/hosted and package provenance. Formatter checks 971 public files (963 parsed, eight existing syntax errors, 624 identical AIR outputs); source coverage is 121/121. Old/new CLI comparison over the 940 preceding public sources retains all diagnostic outputs and 606 successful canonical lowerings. Independent read-only Claude review passes.

P6-2 dereferenced argument places (2026-10-07)

The existing grammar (place = … | "*" unary) and spec 15 §5 permit ref *p / mut *p as call arguments. The parser formerly rejected the leading *, although ref (*p) worked. Inline borrow parsing now admits that existing dereference production, preserving postfix binding and stopping before outer binary/cast operations. Other invalid prefix operands remain syntax errors. No normative rule, syntax form, diagnostic code, bundle, feature, verifier/runtime state or evaluation input changes; P6-2 remains open.

The invariant is unchanged borrow mode, aliasing, provenance and child-first temporary cleanup through existing AIR verification. Runtime and deterministic interpreter semantics are unchanged. Positive source examples forward shared/mutable scalar, array and generic parameters; rejected examples retain E7005 for invalid referents/modes, E2101 for aliasing, and E7006 for misplaced/unchecked borrows. Former syntax errors for these grammatical places now reach those semantic checks; previously accepted source retains canonical AIR. Two parser regression groups failed before the fix and cover precedence, complete ranges, comments and CRLF. Formatter checks compare bare and parenthesized spellings and preserve canonical AIR.

Read-only review also found a missing formatter space in grouped ref (*p) / mut (*p) arguments. The grouped-form regression failed before correcting the keyword spacing; both spellings now preserve tokens and canonical AIR. The separate existing source type-position gap is recorded as Q-042 without changing its semantics here.

Validation: 12 new conformance tests pass with per-instruction collection; full conformance is 1,269/1,269 and unit tests 126/126. Formatter passes 4,357 checks over 983 public files (975 parsed, eight existing syntax errors, 631 identical AIR outputs); source coverage stays 121/121. Old/new CLI comparison over the 971 preceding public sources preserves all diagnostics and 624 successful canonical lowerings. Final independent Claude review passes.

P6-2 structural type positions (2026-10-07)

Q-042/spec 15 §10 closes source annotation gaps using the verifier's existing pure position predicates. Nested borrows, non-value content, fields/payloads, local annotations and known unused generic/static-contract constructors reject E7005 at their own annotation; restrictions involving unknown parameters wait for substitution. Graph-content properties retain E2111. The invariant remains that second-class borrows cannot be stored or nested in forbidden positions. AIR independently enforces the same rule; no ownership transfer, runtime allocation/cleanup or deterministic interpreter behavior changes.

Thirty-four conformance fixtures cover valid runs/unused headers, forbidden positions, specialization and graph-diagnostic preservation. CLI checks exercise exact fields/positions, all diagnostic commands, package reachability and source/AIR/hosted parity. Existing invalid-source fixtures now expect the earlier E7005. No syntax, code, feature, verifier/runtime state or evaluation input changes; source bundle growth is recorded in docs/agent/README.md. Q-043 records the separately reproduced Copy-content validation gap. P6-2 remains open; the historical P6A-12 checkpoint does not establish completeness for the current language.

Validation: full conformance 1,303/1,303; all 34 new fixtures also pass with per-instruction collection. Unit tests and formatting checks pass. CLI integration passes 74 checks, existing generics/buffers/linear suites pass, and formatter passes 4,453 checks over 1,015 public files (1,007 parsed, eight existing syntax errors, 631 identical AIR outputs). Source coverage remains 121/121. Comparison of 983 preceding public sources finds only five expected invalid-type diagnostic changes, with no check acceptance changes and all other canonical lowerings identical. All 333 public AIR files preserve check diagnostics and acceptance. Independent Claude review passes after clarifying feature-gate precedence.

P6-2 dynamic owning-array content (2026-10-08)

Q-043/spec 15 §10 enforces the existing Copy-content requirement for source own_array<T> annotations and own.array repeated values before AIR emission. One AST property query follows nominal fields/payloads and generic parameter states without calling lowering recursively. User type names precede built-ins; imported fields use their declaring namespace. Unused generic/static headers reject provable linear content; unknown parameters defer to substitution. A query-local cache shares completed branches, keeps positive witnesses final and rechecks negative results whenever a new positive proof is learned. Parameter-state queries repeat until that generation stabilizes; memo lookup is a linear scan, trading peak cost for implementation simplicity. Parameter rotations and deep nominal chains cannot hide a known linear leaf; iref content remains phantom and graph-root properties retain E2111.

The preserved invariant is that repeated dynamic heap arrays contain Copy values, so bulk release cannot destroy nested resources. AIR independently retains the same type/operation checks; allocation budgets, initialization, owner transfer, explicit release and deterministic interpreter behavior are unchanged. Valid Copy allocations run with explicit release; rejected annotations and repeated linear values report E7005 with constraint and type_constructor. Existing invalid-source codes/priority may change, including Copy violations preceding simultaneous layout errors. No syntax, code, feature, verifier/runtime state or evaluation input changes. Source bundle growth is recorded in docs/agent/README.md; P6-2 remains open.

Validation: full conformance 1,335/1,335; all 32 new fixtures also pass with per-instruction collection. Unit tests pass 128/128, including counted acyclic/cyclic diamond queries; the cyclic case failed before the cache correction. CLI integration passes 119 checks with exact annotations/value positions, nested package imports and source/AIR/hosted parity. Formatter passes 4,563 checks over 1,047 public files (1,039 parsed, eight existing syntax errors, 638 identical AIR outputs); source coverage remains 121/121. Comparison of all 1,017 preceding public sources preserves every check/lower result and all 631 successful canonical lowerings. No AIR verifier/runtime files change. Independent Claude review passes after checking shadowing, generic rotations, cache invalidation and the complete declaration snapshot used by the shared Copy predicate.

P6-2 inferred array literals (2026-10-08)

Q-045/spec 15 §5/§10 applies the existing member-position rule to each inferred array element before construction and the exact verifier Copy predicate to repetitions. Borrow elements reject E7006 invalid_literal; forbidden constructors and non-Copy repeats reject E7005 at the value with structured fields. Element validity precedes expected-type agreement; annotation errors still reject first. Existing linear lists preserve explicit moves and complete-value transfer, including missing-move and duplicate-owner diagnostics.

The invariants are that second-class borrows cannot become stored members and repetition cannot duplicate a linear value. AIR still independently checks the same rules. No allocation, lifetime, task transfer, cleanup, deterministic interpreter behavior, syntax, code/reason, feature, verifier/runtime state or evaluation input changes. Valid linear lists explicitly unpack/release their owners; Copy and temporary-slice programs run unchanged. Invalid-source errors formerly reaching E1001/E0006/E7900 now stop earlier; the preceding own.array borrow-array fixture now rejects at its literal. New source tests and CLI/package/profile checks cover the changes. Source bundle growth is recorded in docs/agent/README.md; Q-046 records the separate inferred-wrapper audit, and P6-2 remains open.

Validation: full conformance 1,364/1,364; all 29 new fixtures pass with per-instruction collection. Unit tests pass 128/128. CLI integration passes 152 checks covering exact positions/fields, all diagnostic commands, never-valued calls, generic package provenance, source/AIR/hosted parity and formatter idempotence; the preceding own.array suite remains 119/119. Formatter passes 4,664 checks over 1,078 public files (1,070 parsed, eight existing syntax errors, 642 identical AIR outputs); source coverage remains 121/121. Comparison of 1,049 preceding public sources finds only two expected invalid-program diagnostic changes, with unchanged acceptance and every other canonical lowering identical. No AIR verifier/runtime files change. Independent Claude review passes.

P6-2 inferred constructor content (2026-10-08)

Q-046/spec 15 §10 validates inferred content before forming constructor results/outcomes. own.new and region storage require Copy using the verifier's exact property predicate; own.pack excludes root borrows while retaining whole linear transfers and failure recovery. Void/never arguments reject E7005 at the argument instead of malformed AIR/E7900 or a null-block panic. Existing explicit-move checks precede these checks. own.array retains its Copy fields/priority, mutexes retain element rules and endpoint feature gates, and graph content retains the verifier's existing E2111/E1001 precedence. Generic failures locate the substituted value in template source, including imported modules.

The preserved invariants are that second-class borrows cannot become owned content and Copy-only allocation cannot hide or destroy a linear value. AIR independently enforces the same type, property and ownership rules. Allocation authority/budgets, ok/err payloads, explicit release, resource recovery, runtime state and deterministic interpreter behavior are unchanged. Positive runs release linear contents and distinguish successful/failed packing; rejected tests cover nonvalues, borrows, owners, nominal values and tasks. No new syntax, code/reason, feature, verifier state or evaluation input changes. Source bundle growth is recorded in docs/agent/README.md; P6-2 remains open, with the separate Q-044 property-query cost audit outstanding.

Validation: full conformance passes 1,422/1,422, units and Zig formatting pass. The 58 new conformance fixtures pass with collection before every instruction; the new CLI suite passes 302 checks across diagnostic commands, exact fields/locations, imported generic templates, source/AIR/hosted runs and formatter fidelity. Existing owning-array, literal and linear CLI suites pass 119, 152 and 49 checks. The formatter corpus passes 4,862 checks on 1,134 public files (1,126 parsed, eight existing syntax errors, 657 identical successful AIR outputs); the two final graph regression fixtures additionally preserve formatted AIR in CLI checks. Independent read-only review by Claude confirmed the constructor-specific rules and identified the existing feature-dependent graph diagnostic, covered by paired fixtures. Comparison with the previous compiler on 1,078 existing public sources changes one invalid region allocation from E1001 to E7005; accepted programs retain byte-identical AIR. The former compiler successfully lowered 642 of these sources, including that invalid program. Source coverage remains 121/121.

P6-2 non-value operands (2026-10-08)

Q-047/spec 15 §10 distinguishes typed operation inputs from divergent control flow. Never-valued operands reject E7005 at the operand with expected/found fields before later inputs or instruction emission; existing void mismatches remain unchanged. This covers calls, operators, aggregate inputs, conditions, ranges/indices, sizes, atomics, channels and stored values. select checks send values before endpoint borrows. Return/tail/statement/branch divergence remains valid. Variable assignment by name and var initialization retain ordinary binding/annotation checks; divergence skips a frame store just as it already did an SSA update. Place writes require a value: accepting a divergent RHS would otherwise bypass target checks, a regression found and corrected during independent read-only review with Claude. Attempted emission after unconditional divergence reports E7006 unreachable; a unit test verifies that the terminated block remains intact.

The preserved invariants are that no missing value becomes an operand or store and no write/borrow is emitted after control flow terminates. AIR independently retains its type, ownership, lifetime and effect/capability rules. Runtime cleanup, abnormal-path resource handling, deterministic execution and accepted-source canonical AIR are unchanged. Positive cases cover variable receivers in SSA/frame storage, normal/trapping branch paths, ownership and returned views; rejected cases cover non-value inputs and malformed place targets. Former compiler aborts now produce a diagnostic or valid variable-receiver divergence. Invalid diagnostic order may change, including place RHS errors before unknown targets. No new syntax, diagnostic code/reason, feature, verifier/runtime state or evaluation input changes. Source bundle growth is recorded in docs/agent/README.md. P6-2 remains open; Q-048 is the separately reproduced store-mode gap, and Q-044 remains an implementation-cost audit.

Validation: full conformance passes 1,497/1,497; unit tests and Zig formatting pass. The 75 new fixtures pass with collection before every instruction and the CLI suite passes 635 checks, including exact positions/fields across diagnostic commands, source/AIR/hosted trap/return parity, formatting and imported generic reachability. Existing constructor/literal/owning-array/linear CLI suites pass 302/152/119/49 checks. Final comparison on 1,136 preceding public sources (659 successful old lowerings) has zero changed check or canonical lower outputs. The formatter corpus passes 5,098 checks on the first 1,200 public files (1,192 parsed, eight existing syntax errors, 676 identical AIR outputs); CLI formatting covers all 75 new fixtures, including the eleven later additions. Source coverage remains 121/121.

P6-2 source place access modes (2026-10-08)

Q-048/spec 15 §10 rejects stores through shared borrows, and checks explicit mut bindings/arguments before whole-array-to-slice conversion. Scalar stores require exactly mut<T>; dereferenced slices reject. E7005 carries expected/found borrow types at the place (binding/store) or argument. Existing whole-array E7006 and RHS evaluation order remain. Valid exclusive stores, shared reborrows, projections, array/slice views and owned content use unchanged AIR. Previously accepted mut bindings through shared fields/indices/ranges now reject; invalid argument diagnostic details can change.

The preserved invariant is that explicit mut cannot create exclusive access from shared access. AIR independently enforces borrow/store modes, aliases, lifetimes and linear content/projection restrictions. No runtime state, allocation, cleanup, deterministic interpreter behavior, syntax, code/reason, feature or evaluation input changes. Positive source/AIR runs exercise scalar/field/index/range writes and owning content; rejected cases cover shared modes and retained verifier rules. Q-049 records the separate unresolved Copy-let frame-content policy. Bundle growth is recorded in docs/agent/README.md; P6-2 remains open.

Validation: full conformance passes 1,543/1,543; units and Zig formatting pass. The 46 new fixtures pass with collection before every instruction; CLI integration passes 348 checks, including exact fields/positions, diagnostic commands, formatting, imported generic templates and source/AIR/hosted execution. Existing array-argument/non-value/linear/borrow-return CLI suites pass 85/635/49/133 checks. Comparison on 1,211 preceding public sources (673 successful old lowerings) changes only the message of two rejected inputs; accepted AIR is byte-identical. All eleven new runtime fixtures also retain the previous compiler's AIR. The formatter corpus passes 5,289 checks on 1,257 public files (1,249 parsed, eight existing syntax errors, 686 identical AIR outputs); coverage remains 121/121. Independent read-only review by Claude approved the access-mode checks and confirmed the two diagnostic-message changes.

P6-2 nominal query cost (2026-10-08)

Q-044 replaces repeated nominal walks with a shared property table and memoizes the earlier AIR accounted-size query by index/depth. The invariant is exact structural classification: existing tag rules, graph/iref boundaries, ownership classes, diagnostic ordering and depth guards remain. The verifier rebuilds caches rather than trusting callers; lowering classifies only after finite-layout checks. No verifier rule, AIR meaning, diagnostic/code/reason, source syntax, feature, interpreter state, allocation/cleanup behavior or bundle text changes. Nominal size states have the documented polynomial bound V × (V + 2), preserving the former depth-dependent calculation. Valid deep diamonds/phantom nodes and rejected cycles, oversized values, annotations and constraints have source/AIR fixtures; runtime allocation uses the checked cache.

Validation: units and Zig formatting pass; full conformance is 1,560/1,560, with all 17 new fixtures also passing collection before every instruction. Counted tests cover shared/cyclic queries, witness visits and layout rejection before classification; 256 small mixed graphs compare cached predicates, witnesses, depth guards and sizes against uncached derivations. CLI integration passes 110 checks, including source/AIR/hosted execution, actual allocation accounting, imported types and diagnostics. Existing generic/content/store-mode suites pass 32/302/348 checks. Old/new comparison changes zero outputs on 1,257 public sources (686 old lowerings) and 333 public AIR checks. Coverage remains 121/121. Claude independently ran units and approved review. P6-2 remains open; Q-049 is a separate owner-policy question.

P6-1/P6-2 grammar surface increment (2026-10-08)

DD-022 synchronizes the grammar/spec 15 with implemented wrappers, binary literals, negative patterns, parenthesized places, declared borrow-return calls and list/arm delimiters. Ordered statement, header-brace and typed-built-in choices are documented; no LL(k) claim is made. Q-050 rejects empty qualified enum payload lists with E7001 at (, including generic/grouped/built-in variants and patterns. Ordinary f(), bare variants, non-empty payloads and outcome bindings retain their rules. No AIR, verifier/runtime, ownership/concurrency, feature or diagnostic-code changes.

Validation: units and Zig formatting pass; full conformance is 1,594/1,594, and all 34 new fixtures pass collection before every instruction, including select schedules. CLI integration passes 288 checks for syntax locations, packages, formatting and source/AIR execution. Old/new comparison changes zero check/lower outputs on 1,269 public sources (695 old lowerings); source coverage remains 121/121. The public formatter corpus passes 5,435 checks on 1,303 files, preserving 709 lowered outputs. Claude independently reviewed the change and reran units and CLI checks. Bundle growth is recorded in docs/agent/README.md. P6-1/P6-2 remain open; future syntax still needs its RFCs, and Q-051 is a separate ordinary-effect validation task.

P6-2 effect-name diagnostic increment (2026-10-08)

DD-023 resolves Q-051: ordinary effect declarations validate the existing registry after signature types/from and before body lowering. Templates/static contracts replace incorrect E0006 with E7002; name and effect identify the atom. Declaration/parameter positions and prior signature/template check order remain. Registered atoms, flat effect sets, static-contract uniqueness, effect coverage, explicit capabilities and AIR E0004 remain unchanged. No new code/reason, syntax, feature, verifier/runtime, ownership/concurrency or evaluation input changes.

Validation: units and Zig formatting pass; full conformance is 1,618/1,618, and all 24 new fixtures pass collection before every instruction. CLI integration passes 236 checks, including unused/package headers, diagnostic priority, formatter preservation, source/AIR execution, instantiation and independent AIR rejection. Existing generic/static-function/grammar suites pass 32/25/288 checks. Old/new comparison on 1,303 public sources (709 old lowerings) changes only the two corrected E0006 fixtures, preserving their primary positions and name; accepted AIR is byte-identical. Claude independently reviewed the change and ran units/fixtures and all 236 CLI checks. Bundle growth is recorded in docs/agent/README.md; P6-2 remains open.

P6-7 CFG resource-provenance correction (2026-10-08)

Rejection-twin work exposed accepted source that ended a task loan after cancelled-handle transfer through a block parameter. DD-024 resolves Q-052: task loans/scopes, guard parents and shield order now follow simultaneous CFG transfers, with a fixed point for later predecessors and backedges. Existing concurrency invariants and diagnostic codes apply; interpreter behavior and valid source lowering are unchanged. This enforces existing AIR format-0 rules, with no new source concept, syntax or feature.

Validation: units and Zig formatting pass; full conformance is 1,642/1,642. All 24 new AIR/source fixtures pass schedule stress and collection before every instruction. A counted 63-handle rotation test verifies convergence and retained spawn provenance. CLI integration passes 146 checks, including exact source/package/generic positions, three loan rejection twins and both correlated scope/task permutations; existing related-location and lifetime suites pass 349/188 checks. Old/new comparison changes zero diagnostics on 1,327 existing public sources and 338 AIR files, preserving all 715 old source lowerings. Claude wrote independent regressions and reviewed the implementation with additional loop/permutation/cancellation probes. Source bundle size is unchanged; AIR growth is recorded in docs/agent/README.md. The exhaustive rejection-twin inventory and P6-7 remain open.

P6-7 exhaustive rejection inventory (2026-10-08)

tools/source_reject_twins.py discovers all 199 public AIR rejection files, including new tests without manual metadata. The audited manifest verifies 27 same-code pairs: 13 new source fixtures, three existing source links and 11 existing lifetime/CFG pairs. It also records four mandatory E7xxx analogues and 15 cases without an implemented source spelling; these remain unmet rows alongside 153 pending audits. Q-053 records the conflict between the literal same-code criterion and spec 15's source boundary. The criterion and P6-7's doing status are unchanged; --require-complete fails.

Pairs compare operation/site, resource family, identity roles and stable rule facts, then independently check marked primary/related source positions against canonical AIR annotations. Early declaration errors and function budget sites have explicit checks; raw errors use spec 15 §10's exact duplicate projection. Cancellation witnesses preserve the reviewed regression context. Manual rule audits remain necessary. CI runs both the partial checker and 21 negative/positive checker regressions, including wrong operation, ordering, resource family, source position, related role and cancellation context. No compiler, verifier, runtime, normative rule, diagnostic code or reference bundle changes.

Validation: unit tests and Zig formatting pass; full conformance is 1,655/1,655. All 13 new source fixtures pass collection before every instruction. The pair checker verifies 27/199 and reports incomplete coverage; its completion gate rejects that inventory. Existing borrow-return, related-position and source-coverage checks pass (133, 355 and 121/121 respectively). Claude independently audited Phase 0–1 cases and reviewed the checker; its false-pair findings are covered by regression probes.

P6-7 public rejection-twin audit (2026-10-08)

Verified same-code coverage is 91/199 across ownership/resources, borrows, effects/capabilities, tasks, graphs, atomics, linear aggregates and buffer operations. The inventory retains 0 pending, 45 prescribed E7xxx analogues and 63 AIR-only cases; those 108 classified cases do not meet the literal same-code exit criterion (Q-053). P6-7 remains doing.

The checker documentation records the diagnostic-fact, independent-position and context witnesses. Named type tables preserve the nominal diamond; early cycle pairs pin the two artifacts that exist before lowering. Five CFG loan pairs pin original AIR, source and canonical lowering after a manual shape review: single br handoff, lend/plain merge, loop-carried loans, cancelled-handle forwarding and parent access after handoff. The final direct cbr/switch arm-argument cases are AIR-only under spec 15 §4, supported by inspection of lowering and every branch argument in the 740 successful lowerings of the preceding 1,352 public source fixtures. Ordinary atomic access now has a full-AIR twin: a shared field read retains the same load/type/use facts; its reported operand must be the actual load operand. The task-parameter feature pair validates each full repair header before comparing its missing closure; unrelated declared features do not decide that rule. Reserved channel endpoint elements retain their feature/construct at channel.make. The linear swap pair compares named enum tables and pins the array/unpack and specific arm where the old value leaks. Source-boundary analogues retain exact fields and independent markers; the nominal-call analogue records its local rather than linked declarations. The guard-unlock pair retains the returned view's mutex.borrow ancestor through the generated unlock. Fingerprints attest unchanged artifacts, not audit correctness, and introduce no provenance or lifetime analysis.

Validation: full conformance is 1,713/1,713; unit tests, Zig formatting, all 62 checker regressions and the 91-case source/AIR position check pass. All 66 source reject_twins fixtures and five atomic_access fixtures pass collection before every instruction; source coverage remains 121/121. The completion gate still rejects partial same-code coverage. Claude independently reviewed the feature/CFG witnesses, all remaining classifications and the atomic operand checks. New probes reject another scalar or borrow mode, an unrelated borrow reported as the operand, and inconsistent raw/source identities. Existing Git attributes force LF for pinned artifacts.

The frontend ordinary-dereference E4202 now adds concrete found and use fields, retaining the code, message, primary position and early failure. CLI tests pass 33 checks; comparison with the previous compiler passes 52, including generic/package provenance, first-error selection, untouched alternative errors and identical valid AIR. No SSA identity or AIR location is fabricated for a frontend rejection. Atomic access invariants, verifier/runtime rules and deterministic execution remain unchanged; valid reads use explicit atomic.load orderings. The schema is additive; the source bundle grows by 30 tokens (docs/agent/README.md). Q-053 remains the owner decision on the literal criterion; there are no unaudited public rows.

P6-7 nested-size rejection twins (2026-10-09)

Five Q-058 regression cases now have verified source/AIR twins with identical E5101 budget facts: finite nested value size, one-GiB anonymous content with an unrelated named declaration, mutex wrapper/content, checked-u64 size overflow and a local frame one byte over the limit. The nominal-context pair additionally compares the complete type declarations. Existing markers, canonical/annotated lowering, raw AIR diagnostic projection and independent source coordinates are checked by the regular twin tool. Same-code coverage is 96/205; 45 E7xxx analogues and 63 AIR-only cases remain unmet.

One row remains pending: nested_size_cycle_overflow.air reports E5101 before finite-layout validation, while the same source declaration necessarily rejects earlier with E1003. A separate source fixture preserves that actual code; it is not falsely linked as an E5101 twin. The current inventory's E7xxx analogue category cannot represent this earlier verifier-code rejection. Q-053's literal completion decision remains open; no rejection rule or diagnostic is changed for coverage. Full conformance passes 1765/1765; sixteen nested-size cases also pass with collection before every instruction. All 62 checker regressions pass, and source construct coverage stays 121/121. No fresh Claude review was available for this increment. P6-7 remains doing.

The final size row is now explicitly classified as source_early, retaining its authorable cyclic-array shape and unlike E5101/E1003 codes. The inventory tool pins both reviewed artifacts, AIR budget facts and source type facts, checks independent declaration markers, and requires lower/check rejection parity without fabricated AIR coordinates. It does not infer cycle equivalence or waive the same-code completion gate. All 205 AIR rows are classified: 96 same-code, 45 E7xxx analogues, one source-early analogue and 63 AIR-only; zero pending. Eight new failure probes cover artifact/fact/position drift, lower/check disagreement and a category that cannot satisfy --require-complete. All 70 checker regressions and 16 focused GC conformance cases pass. No compiler/normative/bundle changes or fresh Claude review. Q-053 and P6-7 remain open.

P6-1 source specification consistency (2026-10-09)

The Q-059 type-depth audit confirms a parser native-stack failure on a 37-KB, 4,096-depth AIR parameter type. Pending anonymous constructors now use an explicit arena-backed stack, preserving grammar, feature/member-gate order and diagnostic positions. Unit tests parse 32,768 levels and check deep unknown/malformed leaves; all unit/format checks and 1,765/1,765 conformance cases pass, and 364 public AIR checks preserve exact old/new outputs. The old crashing input now accepts. A 16,384-depth check still fails in the verifier's recursive size evaluation, so Q-059 remains open. No normative/bundle/feature/code change or new acceptance limit; no fresh Claude review was available.

The Q-059 size-query increment gives verifier sizing explicit continuations, iterates inner-budget visits and caches anonymous wrapper identities without changing size arithmetic or nominal cycle depth. Unit cases cover 32,768 anonymous/nominal levels, zero leaves, overflow/null caching, constructor identity and forged-cache rebuilding. The existing full 1,765-case snapshot, four new AIR/source zero/overflow fixtures and sixteen focused GC/quota cases pass; together the full/focused runs cover all 1,769 current conformance cases. Unit/format checks and test-extended pass, and 364 pre-existing AIR checks preserve exact old/new output. The new rejection twin brings P6-7 to 97/206, with zero pending, 45 source-error analogues, one source-early analogue and 63 AIR-only cases. A 16,384-depth probe now reaches the next failure in wellFormed; Q-059 and the phase stay open. No normative/bundle/feature or diagnostic code change, and no new syntax-depth limit; no fresh Claude review was available.

The Q-059 type-validity increment iterates anonymous position/length checks and finite-layout DFS, preserving graph stops, wrapper gates, enum payload order and sibling traversal after cycle back edges. Unit tests cover 32,768 anonymous/nominal levels and ordered cycle diagnostics; all unit/format checks and 1,769/1,769 conformance cases pass. Exact old/new exit/stdout/stderr comparisons pass on 366 public AIR files and 48 generated mixed cyclic graphs. The 16,384-depth CLI probe now passes wellFormed and aborts in Module.isLinearType, confirming the next property traversal failure. Q-059 and Phase 6 remain open; no normative/bundle/feature/code change or new syntax-depth limit, and no fresh Claude review was available.

The Q-059 anonymous property-query increment iterates linearity, structural predicates and dependency discovery, with explicit Send/Share transitions and unchanged saturated height/witness summaries. Unit cases cover 32,768 anonymous levels and phantom dependencies, 65,536 alternating ref/mutex edges, and saturation boundaries. Unit/format checks, test-extended, all 1,769 conformance cases and exact old/new comparisons on 366 public AIR files pass. Complete checking accepts 32,768 nested arrays; separate probes now verify failures in Type.eql at 65,536 and diagnostic printType at 32,768. Q-059 and Phase 6 remain open. No normative/bundle/feature/code change or new syntax-depth limit; no fresh Claude review was available.

The Q-059 equality/printing increment iterates structural type comparison and emits canonical suffixes through an explicitly allocated compiler stack. Constructor/leaf identities, array lengths, AIR spelling and diagnostic payloads remain unchanged. Deep unit cases cover equality/inequality and varied-length canonical round trips at 65,536 levels, plus allocation/writer errors. Unit/format checks, test-extended, all 1,769 conformance cases and exact old/new output comparisons on 366 public AIR files pass. The previous CLI failures now finish: equality at 65,536 accepts; invalid atomic content at 32,768 returns one E1001 with its complete found type. Q-059 remains open for uncached nominal/query call-path audits, with no normative/bundle/feature/code change or new depth limit. No fresh Claude review was available.

The Q-059 report audit confirms and removes recursion from capability-kind collection: aji report now completes for a verified 65,536-depth parameter. The scan sites, nominal-name boundary, deduplication and sorting remain unchanged. Unit/format checks, all 1,769 conformance cases and exact report-command output comparisons on 366 public AIR files pass. Call-path inspection confirms retained verifier/property caches but leaves low-level uncached nominal APIs open. A separately verified runtime zero-materialization crash is recorded as Q-060, with no new acceptance/trap limit. No fresh Claude review was available.

Spec 15's initial Phase 6A limits now point to its existing extensions. Its introductory diagnostic rule follows §10 and construct-specific codes; widening reports source E7005 while AIR retains E1002, including the corrected Quick Reference entry. Multi-result bindings include complete unpacking, byte escapes agree with the later exact list, and grammar comments locate graph access in §8. Old incremental limits link buffers/borrow returns to §17/§19. No grammar production, semantic rule or implementation changes. Six existing public fixtures confirm the reported code and deterministic successful AIR; Claude independently audited the corrections. The reference bundle rebuilds; source growth is +50/+47/+58 tokens across the three tokenizers, with unchanged Quick Reference token counts, AIR and std (docs/agent/README.md). P6-1/P6-5 remain open for their unimplemented surfaces.

P6-6 contract spec gate (2026-10-09)

Q-054/RFC 0039 Draft identifies the missing executable contract model. Public probes at 94414da demonstrate identical audit reports for mandatory/bypassable assertions, effects-empty mutation and ambient task.cancelled observation, E3001 after consuming an observed owner, and E0001 versus E0006 for candidate unfeatured/featured AIR headers. All runs use fuel 10,000. Claude independently audited the architecture and compatibility constraints. Predicate rules, old/result lifetime, coverage, statuses and type/module invariant boundaries need concrete normative rules before implementation; function contracts alone do not complete P6-6. Q-055 records the historical header-compatibility question from source inspection, without claiming an executed old-parser result. No compiler, semantic rule, registry, conformance fixture or normative bundle changes.

The next design increment prefers leading contract.pre/old/post operations, isolated uses currently E0004, with no entry predecessors, contract-only snapshots and per-return access checks. The candidate specifies pending-return dispatch, ordinary fuel/quantum accounting and temporary observations without resurrecting consumed values. Current ordinary observations before returning an owner accept and preserve 42; observing its old binding after a call transfer rejects E2001. Verified invariant probes return width 10 after a repaired exclusive update, expose an invalid mid-update Copy and trap T0003 in a shared reader. Source struct-zero rejects E7006, while AIR struct-zero accepts; Q-056 records that separate surface question. Claude independently reviewed the candidate and identified dispatch/availability clarifications. A body use of an unknown snapshot additionally yields E5001; use only by a post yields E0004s alone. Q-055 retains the invalid body-use rejection-code audit. All twelve targeted probes match their reported results, and local documentation links/diff checks pass. These are current-language probes of design obligations, not conformance tests for an implemented contract feature. Type/module boundaries, predicate closure and status rules remain open; Draft status and the full P6-6 exit criterion are unchanged.

The purity increment supplies a closed opcode/type candidate, authority-free Copy Data (including opaque iref identity), and greatest-fixed-point call closure. Read-only linear-record fields are admitted without loading owners/capabilities; auxiliary mut helpers can write fresh frame scratch, proved from entry signature restrictions and ordinary borrow rules. No write-summary subsystem or totality proof is claimed. Current probes confirm a scratch/helper/hash predicate (1), linear count read (7), identity after graph destruction (1), accepted Copy capability extraction, and E1001 for borrowed linear variant/nested owner inspection. Mutual recursion returns 1; nontermination is stopped by fuel and recursive frame exhaustion by T0007. Claude independently reviewed the freshness proof and identified the need to freeze predicate classification under §8.7; proposed feature dependencies and immutable classifications are explicit. Q-057 records the missing non-consuming observation surface required before full contract coverage. Type/module invariants, audit statuses, diagnostics and vertical implementation remain open; RFC 0039 stays Draft and normative bundles are unchanged.

RFC 0040 Draft develops Q-057 as a separate vertical prerequisite: selective shared enum dispatch and nested scalar/array owner views. Explicit match ref place creates only named payload views; skipped payloads stay owned, with no partial moves or general borrowed block joins. Current probes confirm a legal 65-payload enum returning 0 and E5101 for its value match. Unknown enum-view forms report E0004 alone; isolated owner-view forms report E0004, and a used owner-view result also reports E5001. All seven baseline probes are checked with the existing compiler; executed programs use fuel 10,000. Q-055's dependent-error interpretation remains open. These Draft rules allocate no feature/code and change no normative bundle, compiler or conformance fixture; type/module invariants, contract statuses and full P6-6 delivery remain open.

Claude independently reviewed RFC 0040; corrections preserve existing E0004 name lookup, distinguish E2102 SSA origins from E2108 frame roots, count unreachable ingress and clarify unchanged complete-state joins and pattern-binder status. Three further source probes independently confirm both ref-parameter place spellings (combined result 6), wrong SSA-root return E2102 and Copy-frame escape E2108. All ten probes confirm only current-language constraints, not the proposed operations' implementation.

The invariant-boundary research advances RFC 0039's type/module gate. Five baseline probes confirm projected scalar mutation, a library-wrapper bypass and independent-root drift (all return 1), plus E0001 for a new declaration and E0004 for a new type constructor. Claude's independent review identified the need for explicit in-place update of borrowed linear representations; extraction/replacement alone can require new allocation authority. The checked-type candidate separates unvalidated representation updates from persistent shared claims and requires stable observations, callback effects/loan checks and pending-result validation. Module state-root and boundary-only relations retain distinct scopes; exact metadata, source rules, statuses/proofs and vertical delivery remain open. No feature, normative bundle or implementation changes; P6-6 remains doing.

Eight further compatibility probes independently reproduce Claude's findings: exact predicate-bearing type spellings in seven positions report E0004 alone, while an opcode-first make/take/result-use shape reports E0004 twice and E5001. All thirteen current-language cases match their recorded outcomes; runs use fuel 10,000. Stable closure membership must be justified separately from point-in-time predicate purity so future interior-mutable reads cannot silently invalidate persistent claims. No complete AIR0 compatibility or implemented invariant is claimed.

Final review identified the need for instruction-internal observation places: ordinary AIR borrow.ref rejects Copy scalar and Copy struct SSA roots with E1001 (two independently verified probes, fifteen total). The candidate states evaluation-scoped materialization without widening general addressability or frame-content rules; RFC 0039 Copy ref-bindings use the same requirement. Exact activation-slot accounting remains a gate. Copy extraction preserves the original checked claim but gives the plain copy no claim; shared interior-mutable interfaces remain outside stable observations. No implementation is authorized by the research.

The accounting/status candidate proposes locals plus snapshot plus maximum simultaneous observation-place storage, separately bounded virtual return bindings, and a restricted proof classifier with unchanged predicate execution. Explicit assumed/documented modes retain ordinary legality checks; only assumptions require an unsafe boundary, and documentation grants no truth guarantee. Nine frame/stage baselines and five mode/unsafe baselines match the existing CLI (runs use fuel 10,000); none tests an implemented contract feature. Claude's independent review led to body-independent pre proof costs, explicit Copy/linear make accounting and total pre-types linearity queries, including invalid cycles. Exact proof-cost conventions, diagnostic collection, report/source/module schema and owner adoption remain gates. RFC 0039 stays Draft; P6-6 and its full four-status/invariant exit criterion remain open.

The proof/report refinement closes the candidate's opcode/node cost conventions and function/value row grammar, with deterministic fallback precedence and source metadata distinguished from AIR-derived truth. Fifteen research vectors and a finite independent truth oracle confirm their stated costs/results; five current-language CLI probes confirm canonical report equivalence, run independence, eligible scalar/view operations and the limit-vector structure (runs use fuel 10,000). A report component vector pins field order and site totals across four statuses. Claude independently checked the cost derivations, status/field ordering and feasibility; review corrected a target-width assumption and clarified unreachable origins and assumed-call accounting. These are design evidence, not implemented contract conformance. Module-claim metadata, source clause elaboration, diagnostic collection, owner adoption and full vertical delivery remain open; RFC 0039 stays Draft and P6-6 remains doing.

The module/source candidate develops persistent caller-owned module state without globals or visibility, separate boundary-only relations, narrow checked-type bindings, explicit operations and clause elaboration. Claude's review identified namespace hijacking and old/capture ambiguities; the reserved type.checked prefix preserves accepted checked modules/types, and eager old/document matching is explicit. Nineteen current-language baselines verify names/static applications, namespace collisions and reserved bindings, complete source rejections, Copy/linear/checked witness shapes and flat/tree record packing (runs use fuel 10,000). These constrain the proposal and do not implement contracts. Rooted-state owner selection, checked properties/ABI/positions, mangling/inventory schema, source/diagnostic/dispatch integration and vertical validation remain gates; RFC 0039 stays Draft and full P6-6 remains doing.

The property/type-position audit exposed a pre-existing accounted-size defect (Q-058): anonymous array/atomic/mutex edges incorrectly consumed a nominal-cycle depth budget. Corrected finite type sizes now enforce existing value/frame and allocation quotas. AIR/source boundary and rejection fixtures, a named-record heap quota pair and cached/uncached/cyclic unit checks cover the fix; a separate unverified native-recursion concern is recorded as Q-059. This correction adds no contract syntax, feature or adoption decision; checked properties and the remaining full P6-6 gates stay open.

The property/inventory refinement specifies candidate complete representation/position checks, inherited properties, recursive endpoint gates, dedicated representation traversal, forbidden zero manufacture, size versus ABI and representation-only result rendering. The inventory's universal raw-R proof is distinct from construction-site proofs and supplied declaration provenance. Twelve prior property baselines match 4cda448; eight new reproducible vectors verify ordinary identity/content restrictions and the Range predicate. The report research component includes six sites, seven boundaries and three checked identities with distinct type/site proofs. These are current-language/design checks, not implemented contracts. Claude's earlier property audit is incorporated; the live Herdr channel is unavailable for fresh review. Mangling/source-map, diagnostics/dispatch, compatibility and owner model selection remain gates; RFC 0039 stays Draft and full P6-6 remains doing.

The naming/provenance candidate fixes full descriptor bytes, ordinary-first collision allocation, emission categories and clause/witness maps. Three current-language naming groups pass ten CLI checks; seven proposed descriptors agree under two SHA-256 implementations. The diagnostic refinement preserves ordinary return/leak facts while isolating virtual post checks, orders required P/S subpasses, and bounds shortest real-call witnesses. Five executed return baselines and six graph vectors independently verify current constraints and proposed selection. No semantic/code/registry change is made; the vectors are not new-contract conformance. Binding/source-reason/trap schemas, Q-055 compatibility, owner adoption and full vertical implementation remain gates; RFC 0039 stays Draft and full P6-6 remains doing.

The AIR binding candidate supplies prefix/type/operation grammar, explicit root/form identity, exact shared adaptation, snapshot-use checks and proposed E8001 reasons/fields. Eighteen current-language probes verify view/alias/never-call constraints and isolated E0004 rejection of complete candidate prefixes. Claude independently reproduced all eighteen and the nine descriptor hashes/order cases; review clarified linear checked root access, repeated Copy-place budgets, SSA/root priority, source dedup positions and stable return-fact ordering. This is non-normative design evidence, with no implementation or registry change. Source reasons, trap/dispatch schema, compatibility, owner adoption and vertical tests remain gates; RFC 0039 stays Draft and P6-6 remains doing.

The runtime/context candidate specifies frame continuations, normal completion only after validation, free normalization before quantum checks, depth/fuel precedence, traced pending roots and exact additive failure context. Six ordinary groups pass 16 CLI runs at quantum 1; nine fixture variants pass GC-every-step record comparison (13 schedule cases, 26 interpreter runs). Six hypothetical schema components are explicitly unimplemented. Claude independently reproduced the CLI records and reviewed the rules; corrections fixed old/make/modify modes, race context and AIR-only byte-identity exploration. No normative/compiler/registry/bundle changes are made. Source reasons, compatibility/model adoption, RFC 0040 observations and full vertical runtime tests remain gates; RFC 0039 stays Draft and full P6-6 remains doing.

The source rejection/compatibility audit proposes eight new E7006 reasons and retains existing source type/name/transfer codes, error collection and mapped verifier obligations. Ten executed current-language AIR0 probes preserve full diagnostics and distinguish dependent undefined results from independent SSA errors; neither the historical parser nor contract semantics is executed. Owner selection of the module-state model, Q-055 compatibility/version policy and RFC representations remains necessary before normative integration and vertical implementation. No fresh Claude review was available for this increment. RFC 0039 remains Draft; P6-6 remains doing.

P6-12 pointer-sized cast guidance (2026-10-09)

Public development feedback identifies u8 → usize and usize → u64 casts rejected without explaining the target-independent rule. Spec 02 §2 already excludes usize/isize from widen, including conversions that fit under every current target. The registered numeric_cast_modes hint now states that rule, keeping the original E7005 message/fields and checked/wrapping alternatives. Source/Quick Reference cast tables explain it too; no semantic widening extension is adopted. Pointer identity as casts now follow the same source rejection instead of leaking AIR E1002 without advice. Six rejection fixtures and an explicit checked/wrapping runtime case cover the rule; hosted advice tests pass 208 checks including source API parity and fixed-width identities. Bundle growth is measured in agent/README.md. Parameter-mutability and array-to-slice advice from the same feedback remain open work; no new dev/model experiment or repair-round benefit is claimed.

Validation of cast guidance: units/format checks and all 1,776 conformance cases pass. Comparison of 1,403 pre-existing source files changes only the registered hint; all 500 accepted lowerings remain byte-identical.

P6-12 parameter and array-call advice (2026-10-09)

Public development feedback now has two narrowly registered candidates. E7001 at mut name: in a function parameter distinguishes value/local storage from an exclusive mut<T> contract, without choosing for the agent. An ordinary-call E7005 for a bare named, non-linear array with matching slice elements suggests the explicit ref or mut prefix required by the known parameter. Array expressions/projections, unlike elements, intrinsic/task operands and earlier name/move/arity failures are excluded. Generic/static specializations and imported calls retain the same rule and source provenance. Existing messages, payloads, code/location, accepted syntax/inference and loan lifetime remain unchanged. Prefix advice is not a verification claim: by-value parameter arrays still require an addressable local place.

The exclusivity/lifetime invariants, verifier transfer rules, explicit borrow creation/end and deterministic runtime are unchanged (spec 03; spec 15 §5). A positive source run covers mutable local copies, exclusive parameters and shared/exclusive slices; six rejection cases cover the triggers and nearby exclusions. Hosted advice tests pass 299 checks, including source API/package parity and generic/static repaired programs; whole-array integration passes 85 checks. Bundle growth is measured in agent/README.md. No language synonym, automatic conversion, semantic adoption or new dev/model experiment is introduced; the external repair-round measurement remains pending.

Validation: units/format checks and all 1,783 conformance cases pass; independent source-error collection passes 234 CLI checks. The six original trigger/exclusion diagnostics retain their complete envelopes after removing only the new candidate field.

Old/new comparison of 1,410 pre-existing source files preserves every diagnostic envelope after removing only the two new registered candidates, and all 501 accepted lowerings remain byte-identical. Advice is additionally emitted for the existing std/implicit_borrow rejection; its E7005 facts are unchanged. No fresh Claude review was available. P6-12 still awaits external development-run measurements.

P6-1 runtime value-depth repair (2026-10-09)

The Q-060 zero-materialization increment fills zeroable values iteratively, retaining field/element order, declaration identities, independent payloads, whole-local publication, allocator errors and fuel/scheduling. Unit cases cover 32,768 array/nominal levels with pending siblings and an allocation failure; a mixed AIR/source run pair checks initialization and subsequent writes. The original fuel-8 probe now returns normally and forty shallow mixed-type old/new records are identical. Follow-up probes independently confirm recursive local-load copying and sharing-preserving collection failures. Q-060 and Phase 6 remain open; no normative/bundle/feature/code change or new depth limit. No fresh Claude review was available.

Validation: all units/format checks, test-extended and 1,785/1,785 conformance cases pass; both new mixed-type cases also pass with collection before every instruction. A verified 32,768-level unit probe pins exact fuel 0–3 boundaries and instruction counts. Source/AIR semantics and bundle size are unchanged; the separate deep collector/copy failures are retained in Q-060.

P6-1 runtime storage/value copying (2026-10-09)

The Q-060 storage/value-copy increment replaces recursive aggregate/array copying with pending-sibling continuations. Every source payload occurrence remains independently copied; scalar/variant/declaration facts, identity handles, allocator errors and instruction/fuel counts remain unchanged. Deep unit cases cover 32,768 alternating levels, siblings/empty fields, duplicate payloads, identity leaves and failed local.store publication. A mixed Copy-record/enum/array AIR/source pair and 42 exact old/new run comparisons cover observable copying. The prior deep local.load probe now returns, while an added local.store independently reaches the remaining collector failure under its ordinary threshold. Units/format checks, test-extended and all 1,787 conformance cases pass. No normative/bundle/feature/code change or new depth limit; Q-060 and Phase 6 remain open. No fresh Claude review was available.

P6-1 collector/result-copy depth repair (2026-10-09)

The Q-060 sharing-preserving copy increment iterates payloads/cells/graphs and preserves forwarding identities, backing storage, projection paths, slice ranges, buffer metadata, mutex views and race shadows. Roots complete copying before execution resumes or a result escapes. Tests inspect cycles/sharing after freeing the old heap, fail each copier allocation request, traverse 32,768 internal payload/cell levels, and execute verified deep programmes under ordinary/per-step collection with exact fuel boundaries and live returned payloads. No normative/bundle/feature/code change or new depth limit is introduced.

Units/format checks, test-extended and all 1,787 ordinary conformance cases pass. Per-step collection passes 57 focused run cases plus 26 phase-3 run cases with stress 16; 146 old/new mixed-value and identity/schedule records are identical. The full per-step conformance run is still running at this checkpoint. Follow-up probes independently confirm valueBytes recursion on own.new and JSON output failure at std.json.Stringify's fixed nesting stack. Q-060 and Phase 6 remain open. No fresh Claude review was available.

P6-1 runtime value-size depth repair (2026-10-09)

The Q-060 runtime value-size increment replaces recursive array-value queries with a constant-state checked factor and unchanged leaf accounting. Zero-sized leaves, true overflow, maximum enum payloads and dynamic-count ordering retain their existing meanings; heap/region/graph charges and failure/release rules are unchanged. Deep verified allocation tests pin fuel 0–6 and zero/one-byte grant boundaries under ordinary/per-step collection. A nested-quota AIR/source pair checks exact charges, zero-sized contents, allocation failure and restored authority.

Units/format checks, test-extended and all 1,789 ordinary conformance cases pass; the deep allocation and new pair also pass per-step collection. Ten new-pair quota records and 426 generated allocation-oracle runs match the old interpreter exactly. The earlier full per-step collector suite remains in progress. No normative/bundle/feature/code change or accepted-depth limit; Q-060 remains open for serialization, and Phase 6/contract gates remain open. No fresh Claude review was available.

Runtime value JSON serialization (2026-10-10)

The Q-060 JSON increment emits nested values through explicit sequence continuations and one outer raw-value boundary, preserving field order, escaping, whitespace/options, integer bytes and opaque handles. Host traversal metadata is released on error or completion; Aji authority, payload ownership, fuel, collection and verifier rules are unchanged. Tests cover 112 option combinations, mixed 32,768-level codec values, outer nesting at the stringify boundary and writer/allocation failures. A new AIR/source enum/record/array result pair pins the existing run-record shape, and the original deep verified return now produces a complete record in deterministic and hosted profiles.

Units/format checks, test-extended and all 1,791 current ordinary conformance cases pass; the added pair also passes per-step collection in Debug. Forty-four old/new shallow records are byte-identical. The prior full Debug collector run has no completion result (785 passing records); its process disappeared, and a replacement full ReleaseSafe per-step run is in progress, retaining safety checks. No incomplete run is counted as a pass. There is no normative/bundle/feature/code change or new depth limit. Q-060's closing call-path audit and Q-059's uncached nominal queries remain open; the cache-free public runtime entry concern is inspection-only. Phase 6/contract gates remain open. No fresh Claude review was available.

Cache-free nominal runtime size queries (2026-10-10)

The Q-059 nominal size increment replaces recursive uncached sizing with temporary explicit continuations. The internal Zig query API now takes a host allocator and propagates metadata OutOfMemory separately from arithmetic overflow; runtime callers propagate it before authority charging. Cached reads, the static metric, quota/release behavior and instruction accounting are unchanged. The old direct 32,768-declaration query aborts; the new query returns one byte. Parsed, verified cache-free programmes at nominal depths 1,024 and 4,096 run successfully before and after, retaining six instructions; no old runtime failure at those depths is claimed.

Units/format checks, test-extended and all 1,791 ordinary conformance cases pass. Tests compare 7,168 shallow queries with an independent arithmetic oracle, fail every temporary metadata allocation and check cached success/null and partial-cache behavior. Fifty-four cached/cache-free quota/fuel/collection pairs (108 verified runs) have identical outcomes and instruction counts. All 370 public AIR checks preserve exact old/new exit/stdout/stderr. No normative/bundle/feature/code change or depth limit is introduced. The earlier full ReleaseSafe per-step suite remains in progress; Q-059's nominal property queries, Q-060's closing audit and Phase 6/contract gates remain open. No fresh Claude review was available.

Both new copy cases also pass with collection before every instruction; their shallow sharing-preserving GC behavior is covered separately from the retained deep collector failure.

Cache-free nominal property queries (2026-10-10)

The Q-059 property increment repairs all nine reproduced recursive uncached nominal queries. Public queries explicitly receive a compiler allocator and propagate OutOfMemory; temporary preparation uses the existing fixed points, while cached/terminal reads allocate nothing. Ownership, concurrency, verifier acceptance, runtime accounting and diagnostic facts remain unchanged. Deep queries, 18,432 independent-oracle comparisons, allocation cleanup and public generic-argument acceptance/rejection tests pass.

Units/format checks, test-extended and the 1,791-case property-engine conformance snapshot pass. All 370 AIR and 1,421 source CLI checks, plus 506 accepted lowerings, retain exact old/new outputs. Final full conformance after the public helper correction passes all 1,791 cases with exact corpus coverage. The earlier full ReleaseSafe per-step suite also remains in progress. No normative/bundle/feature/code change or depth limit is introduced; Q-059's closing audit, Q-060's closing validation and Phase 6/contract gates remain open. No fresh Claude review was available.

A subsequent read-only Claude review against the property base 897f538 found no defects in the classifications, worklist, cache preconditions or allocator/error lifetime. It did not build or run tests and did not observe the expanded suite. The helper-name wording and repeated-query preparation guidance are corrected; this does not review later source-parser changes.

Source type-syntax parser (2026-10-10)

The Q-059 source parser increment replaces recursive type/argument parsing with explicit array and argument-list frames, preserving static function arguments, sibling order, split angle positions, syntax failures and slice repair candidates. Unit tests inspect deep mixed types and static arguments and fail parser metadata allocations. The old 16,384-array source crashes in parsing; the new parser allows formatting, while full checking confirms the next failure in usesGenerics. A deep invalid slice annotation now returns its original E7001 candidate instead of crashing. The existing generic guard is not imposed on monomorphic syntax.

Units/format checks and all 1,791 conformance cases pass with exact corpus coverage. Hosted grammar/advice suites pass 288/299 checks; formatter integration passes 6,072 checks over 1,467 public files. All 1,421 source checks and 506 accepted lowerings preserve exact old/new outputs, as do 156 targeted syntax/argument/error probes; deep formatting is idempotent. No normative/bundle/feature/code change or new acceptance limit is introduced. Q-059's source AST/closing audit, Q-060's closing validation and Phase 6/contract gates remain open. No fresh Claude review was available.

Source generic-use detection (2026-10-10)

The Q-059 generic-use increment visits immutable AST fields/payloads through explicit work entries, retaining the original markers and field/element order. Metadata OOM propagates and pending entries are released; monomorphic syntax gains no new depth limit. Independent shallow comparisons (387), deep positive/negative types/expressions/blocks and work-allocation failure tests pass. The earlier failing source now passes usesGenerics and confirms the next failure in lower.resolveType at 16,384 array levels; complete checking at 4,096 still accepts.

Units/format checks and generic/static-function CLI integration (32/25) pass. All 1,791 conformance cases pass with exact corpus coverage; all 1,421 public source checks and 506 accepted lowerings retain byte-identical old/new exit/stdout/stderr. No normative/bundle/feature/code change or semantic flag is introduced. Q-059's source lowering/closing audit, Q-060's closing validation and Phase 6/contract gates remain open. Claude's property review does not cover this increment.

Source annotation resolution (2026-10-10)

The Q-059 annotation-resolution increment lowers anonymous source types with explicit continuations. Constructor-before-child and content-after-child checks preserve the old error priority and spans; nominal identity and syntax are unchanged. Tests cover 1,736 independent shallow comparisons, 32,768 mixed annotation levels, leaf rejection and allocation-error cleanup. Type-position/Copy-content integration passes 74/119 checks; all units/format checks and 1,791 conformance cases pass with exact corpus coverage. All 1,421 public source checks and 506 accepted lowerings retain byte-identical old/new exit/stdout/stderr.

The complete 4,096-array check still accepts; 16,384 now reaches the next confirmed native-stack failure in type_properties.firstInvalid. No normative/bundle/feature/code change or accepted-depth limit is introduced. Q-059's source property/closing audit, Q-060's closing validation and Phase 6 gates remain open. No fresh Claude review of this increment is claimed.

Source anonymous property scans (2026-10-10)

The Q-059 source-property increment makes syntax scanning and anonymous-array linearity iterative, retaining own_array priority, graph stops and nominal fixed points. The two complete 16,384-level source checks that previously aborted now accept; deep non-Copy content returns the original E7005. Tests cover 2,160 independent shallow anonymous comparisons, 32,768-level queries and zero work allocations on anonymous paths.

Units/format checks, Copy-content/generic CLI integration (119/32) and byte-identical old/new checks/lowerings (1,421/506) pass; all 1,791 conformance cases pass with exact corpus coverage. A separate 8,192-declaration source confirms the remaining linear/declaration stack failure before and after this increment. Named-source repair, source Ty/query closing checks, Q-060 validation and Phase 6 gates remain open. No normative/bundle/feature/code change or accepted-depth limit is introduced; no fresh Claude review is claimed.

Source nominal property continuations (2026-10-10)

The Q-059 nominal-source increment replaces native argument/declaration recursion with explicit continuations, retaining environment/path binding, ordered fields/payloads and cache generation rules. The previously crashing 8,192-Copy declaration check accepts; linear content returns E7005. Independent ordered-cache comparisons cover 4,613 roots (three queries each), while deep mixed/cyclic graphs and allocation-failure cleanup pass.

Units/format checks, nominal/Copy-content/static-function integration (110/119/25), all 1,791 conformance cases with exact coverage and byte-identical old/new checks/lowerings (1,421/506) pass. A separate invalid-atomic source confirms typeText stack failure at 65,536 array levels. Source Ty/query closing checks, Q-060 validation and Phase 6 gates remain open. No normative/bundle/feature/code change or accepted-depth limit is introduced; no fresh Claude review is claimed.

Source type text repair (2026-10-10)

The Q-059 source text increment removes recursive and repeatedly copied ancestor strings, preserving exact spelling/source nominal names and resource feature discovery. Its internal fallible APIs propagate host OOM instead of generating shortened type facts or AIR. The formerly aborting deep invalid-atomic check returns one E7005 with the complete 655,362-byte found type.

Units/format checks, 3,696 independent shallow comparisons, deep mixed output and failed-allocation/cleanup tests pass. Repair-advice/nonvalue/static-function integration (299/635/25) and old/new source checks/lowerings (1,421/506) pass; all 1,791 conformance cases pass with exact corpus coverage. A correct 65,536-array parameter accepts; a 16,384-array struct member independently confirms remaining airType native-stack failure. Source-to-AIR repair, Ty/query closing checks, Q-060 validation and Phase 6 gates remain open. No normative/bundle/feature/code change or accepted-depth limit is introduced; no fresh Claude review is claimed.

Source-to-AIR type conversion (2026-10-10)

The Q-059 conversion increment replaces native recursion with an output-target cursor, preserving source/AIR type shape, constructor allocation order and error publication. Structs with 16,384/65,536 array levels now pass complete checking. Tests cover 2,352 independent shallow comparisons, 65,536-level construction without work allocation, and per-node OOM/order/cleanup equivalence.

Units/format checks, nominal/Copy-content/static-function integration (110/119/25), all 1,791 conformance cases with exact coverage and old/new checks/lowerings (1,421/506) pass. A separate return-equality input confirms the next failure in Ty.eql at 65,536 array levels. Equality/closing query checks, Q-060 validation and Phase 6 gates remain open. No normative/bundle/feature/code change or accepted-depth limit is introduced; no fresh Claude review is claimed.