Squash 147 commits (2026-08-20 through 2026-08-31) into one change on top
of the exact-kernel-grid work. Covers native lowering and pointer/layout
construction, AIR intrinsic and funnel-shift coverage, BDA address
preservation across aggregate calls, CFG structurization, function-constant
and visible-function specialization, the 30-second translation ceiling, the
authored-case corpus and linkage validation suite, and refreshed byte-exact
MoltenVK evidence.
The kernel-grid lowering in this tree supersedes the 324-line variant in
the parent commit; that file is reduced to its current 139-line form here.
Resulting tree is identical to 7174c7b. Prior history remains reachable at
tag pre-squash-backup and branch backup/pre-squash-7174c7b.
Claude-Session: https://claude.ai/code/session_01D1u4vU7Mr5QNWrnnRHC8iS
Overhaul the validation workflow around sharded authored cases, dependency-exact observations, incremental indexed corpus audits, bounded parallel translation, and native Metal/Vulkan comparison.\n\nExpand native AIR lowering, reflection, linked-function specialization, resource and stage-interface support, and structural CFG/pointer repair across the harvested macOS 26 corpus. Add exact intrinsic inventory, distributed 16x16x16 matrix lowering, explicit opaque tensor linkage, and regression coverage for the newly supported feature classes.\n\nThe final corpus verification accounts for all 88,819 indexed AIR modules under the current product fingerprint: 65,355 translate and validate directly, 23,464 require exact authored linkage, and zero fail or remain unresolved.
Add structural lowering fixes for function constants, byte aggregates, texture arrays, sampling, and SIMD operations. Harden corpus oracle planning and quarantine unsafe or non-comparable rows without GPU resubmission. Reject reused SPIR-V merge ownership and fast-fallback oversized systematic CFG failures so broken AIR returns promptly instead of emitting invalid bytes after lengthy retries.
Expand structural image, buffer, control-flow, and passthrough lowering, including driver-safe relooper limits and regression coverage.\n\nExpose buffer extent, type, and refined access in reflection v4 for downstream consumers.\n\nHarden corpus oracle planning and loop safety, quarantine non-semantic rows, and refresh the affected translation and execution ledgers.\n\nVerified with cargo fmt --all, workspace clippy with warnings denied, and serial product and validation test suites.
Replace the old drift/harvest scripts and generated corpus-test path with
Rust validation binaries that use JSONL ledgers as the durable corpus and
execution record.
- Move translate banking from validation/corpus/drift-ledger.jsonl to
validation/corpus/metal2vulkan-ledger.jsonl, and seed tracked Metal and
MoltenVK execution ledgers with hash-identified rows and output_b64
payloads.
- Add corpus-harvest, corpus-mint, corpus-remint, corpus-why, corpus-triage,
and corpus-run-{metal,vulkan,moltenvk} binaries for shard harvesting,
additive/remint translate banking, single-case fallback inspection,
status triage, and backend execution.
- Rework corpus runners to infer execution plans from shard-backed AIR at run
time, merge per-run deltas into sorted ledgers, support focused reruns, and
keep Metal oracle coverage available for translate FALLBACK rows while SPIR-V
backends remain gated on translate status=ok.
- Bound control-parameter seeding and add loop-budget instrumentation,
quarantine handling, subprocess timeouts, Ctrl-C worker cleanup, slow-case
logging, panic backtraces, and MoltenVK/Homebrew Vulkan discovery for safer
offline execution.
- Consolidate validation helpers for AIR stage/entry parsing, corpus source and
shard resolution, hashing, JSONL I/O, texture shape policy, translate-ledger
rows, runner status rows, and triage summaries.
- Remove obsolete Python drift/harvest scripts, generated corpus stubs,
broken/tolerances sidecars, TOOLCHAIN.lock, and unused validation harness
modules from the repo surface.
- Update validation, corpus, A/B, architecture, contributing, and agent docs,
plus gitignore rules, to describe the shard-backed ledger workflow and its
expected generated artifacts.