The planner's amendment of the bound-buffers clause: the known gap now records two things, the
descriptor set's CPU and GPU cost, and a kernel's slower run on a device whose bound access costs
more than its address access. Why: how the Iris Xe streams' loss splits between the set and the
kernels' own accesses is not measured, and one filter kernel's loss there is measured as not the
set's (only its message kind differs), so the rule records the loss the owner accepted without
naming an unmeasured cause. The rest of the clause is unchanged; the clause's last lines are
re-wrapped.
Docs only.
The bound-buffers clause gains what the owner accepted with the form, in the style of the other
eleven and with no figures: a dispatch whose buffers differ from those its command buffer bound
last writes and binds a descriptor set, and that set's CPU and GPU cost on a device that takes the
form is recorded as a known gap. The figures belong in the runtime README's known gap. Also joins
a line the clause's earlier edit left short.
Docs only.
Rule 2's bound-buffers item now reads 'a device with' the pipeline-robustness feature (the
runtime enables the feature, a device does not), names 'a compute function's' buffer arguments in
place of 'a kernel's', and drops the commas around 'by structure'. Rule 3's clause says which
replaces which: for a compute function's buffer arguments, bound buffers where rule 2's query
takes them. The text is the planner's fourth round, wrapped to the file's width.
Verified: docs only; no line of the edited paragraphs passes 100 columns.
The owner's authorization of 11-26 (brief 'bound'): rule 2 counts twelve forms, the twelfth bound
buffers, stated as its query (the pipeline-robustness feature, robustBufferAccess2 and
robustBufferAccessUpdateAfterBind, then the limits its layout reaches) with the address form and
the check that stays by structure as known gaps; rule 3's direct addresses take a kernel's bound
buffers in their place where that query takes them. Worded by bound buffers, not by descriptor
type.
The owner chose this form, Telegram 2963, verbatim: "Correction, a-narrow sorry". That answers
the planner's question whose A-narrow option named the eleventh form; it replaces 2961. This
commit lands with the form's code (the commits before it), so development never holds the form
without its rule.
AGENTS.md, rule 2 only: "for ten only" becomes "for eleven only", the list's final "and" moves
before the new entry, and the entry names the query (the host-coherent flag of the memory type
Shared takes), the second form (on the cached type without coherence, what is flushed before
the GPU reads it and what is flushed then invalidated before the host reads it), and its known
gap (no device the tests run on shows a missed range; the flush's cost grows with the Shared
bytes a submission reaches). The planner accepted the wording with two changes, both applied.
Nothing else in AGENTS.md changes.
crates/metal2vulkan-runtime/README.md, the known gaps of memory blocks: a submission's flush
names every Shared range its command buffers reach, written or not, merged, so its cost grows
with the Shared bytes a submission reaches, not with what its commands wrote.
The cost on devices whose Shared type is host-coherent, as measured at 890f6580ac against
development 8f74582eb3, three alternated passes, each job alone on its node: 74045, Radeon RX
7900 XTX: every row passes, +43.1 user-space instructions per command buffer on burst_2000;
74046, Radeon 780M: burst_2000 1.0062 (+152.1 per command buffer) and frame_5cb 1.0115, a loss
by the planner's reading rule; +2 instructions per draw, 0 per dispatch, on both. The form
lands on the owner's word with those figures before him.
Checks: cargo fmt. The prose matches the code (coherence.rs, submit.rs, texture.rs, fill.rs,
command.rs, complete.rs, event.rs). docs/REFUSALS.md and error/basis.rs are unchanged under
refusal_surface.py. The quick and suites checks run at the rebased tip.
A fragment function's [[stencil]] output is the reference of both faces' stencil test for its
fragment (MSL Table 5.7, 5.2.3.5). On a device without VK_EXT_shader_stencil_export it was refused
at creation (StencilExport). Under the owner's grant (rule 2's tenth form, chosen by that
extension's query alone), such a device now draws it by bits; a device with the extension is
unchanged (FragStencilRefEXT, no fact, no note, the draw issued once).
Translator: the function stores no reference; each return kills the fragment where the draw's new
push field PushField::StencilBit k is below 8 and bit k of the output's low 8 is 0, and keeps
every fragment at 8 or more (one module, no specialization). The function states
RuntimeFact::StencilBitDraws (Mechanism::PushConstant) and its fragment stage the static note
PrecisionNote::StencilOutputOverlap. Refused there, naming the extension (Unsupported
StencilExport): a function that also writes a colour (the colour would be written by every
repeat) or memory, one whose returns cannot kill (an interlocked body, a loop over its covered
samples), a mesh pipeline, and a render pipeline made for indirect command buffers. Where the
device also lacks the pixel interlock, a function writing memory in a raster order group meets
that refusal first (RasterOrderGroups). SEMANTICS_VERSION 2301 -> 2302, ARTIFACT_FORMAT_VERSION
595 -> 596 (new codec members).
Runtime (depth_stencil::BitDraws, render_encoder::draw): with w the low 8 bits of the write masks
of the faces having a Replace operation, a draw whose stencil test is on and w is not 0 is drawn
once with every fragment kept under the reference 0 (Replace zeroes w's bits, every other
operation runs once), then once per bit k of w keeping the fragments whose output holds bit k,
under the reference 255, write mask (1 << k) & mask, Replace kept and every other operation Keep,
and no depth write; where the state writes depth under a compare other than Always and Never, the
first draw writes none and a last draw writes it with stencil write masks of 0. Each draw records
only the dynamic state that differs from the last; the encoder's tests and reference are recorded
again at the next draw. Counted in Metrics::stencil_bit_draws (the draws beyond the first).
Refused at a draw, Gap::Draw of DrawKind::StencilOutput: a face compare other than Always or Never
(the output decides that test), and, where w is not 0, a draw inside a Counting visibility
segment (every draw would add its samples). A Boolean segment is drawn. Vulkan Appendix I: the
repeats change stencil reference, operations and write masks between draws of one pipeline,
which Rule 2 lists as required (write masks) and strongly suggested (stencil parameters) to be
invariant; the note records the one difference the repeats make.
The note (rule 1): fragments of one draw that overlap leave the OR of their values. Where two
fragments of one draw reach one sample under Replace, the sample stores the OR of their outputs'
low 8 bits within the write mask, where Metal stores the later fragment's value; under a depth
test that writes, each fragment's stencil operation is chosen against the depth from before the
draw. Measured on an RTX 3090 (NVIDIA 620.70.06) under the validation layer 1.4.363.0, job
m3-max-73635: two triangles of one draw outputting 0x35 then 0x4a store 0x7f on the 32 texels both
reach, where Metal stores 0x4a, and 0x35 on the 32 one reaches, in 8 bit draws; the 780M (RADV)
and the Iris Xe (ANV), which list the extension, store 0x4a with 0 bit draws.
AGENTS.md rule 2: "for nine only" becomes "for ten only", the list ending with fragment stencil
output (the planner's text, relayed by main, word for word).
Tests: the translator's engine_stencil (every committed profile: the extension or the draws by
bits, L3 both ways; refusals for colour, memory, mesh and indirect command buffers); rt's host test
of BitDraws::of; rt's device cells (stencil_export.rs): the stencil alone and the stencil with the
depth under Always and Less over a quad, exact, texels of stencil 0 among them; the overlap row;
the refusals; the route of a 4-sample Depth32Float_Stencil8 source read at sample 0 into a
single-sample target under Always/Replace 0xff and depth Always with write, beside colour 0
RGBA8 of write mask none; the codec round trip; the mechanism table.
Docs: docs/API.md (the stencil output passage and the catalogue entry
metal2vulkan-degrade-stencil-output-overlap), rt README known gap and floor row,
docs/REFUSALS.md regenerated, api_signatures blessed. The conformance degradation and the
validation allowance (unbounded) of the note. known-gaps-rt.tsv: stencil-output and
stencil-output-loaded on NVIDIA, refused at renderCommandEncoder (draw 3's back face Equal against
the output) and divergent at case/stencil as a result. runtime-sources.sha256: the guard's inputs
changed only by mechanism.rs gaining the new fact's arm, which no existing artifact states, so no
run of an existing artifact changes.
Golden rows and the engine inventory (22 cells) are re-blessed on development: 20 move from the
StencilExport refusal to a module (stx_stencil_by_pixel, stx_stencil_discard,
stx_stencil_with_depth, stx_stencil_ms_by_sample, fragment_depth_stencil on nvidia-pascal-linux,
nvidia-rtx50-linux, nvidia-rtx5080-laptop and runtime-floor), and the 2 cells
stx_stencil_in_order and stx_stencil_ms_in_order on runtime-floor move from StencilExport to
RasterOrderGroups, still refused. Why: the memory-write refusal now runs on the emitted module
(pipeline/compile.rs), after the body's own refusals, so on a profile without the pixel interlock
the raster order group these functions write memory in is refused first; at the base the plan's
entry refused every [[stencil]] output on such a device before any body was lowered.
Verified (this tree, or the rt archive of d6bd77d203 where named; the rt and translator sources
there differ from this tree in the translator's test and a doc comment alone):
- msi check, job m3-max-73648 (this tree): fmt, signatures, refusals, clippy -D warnings with all
features plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Rustdoc, the rt nextest archive and the
conformance binary built; rt's whole suite on lavapipe under the validation layer 1.4.363.0,
738 tests run: 738 passed, 3 skipped; the lavapipe leg, 7 tests run: 7 passed: export enabled,
the overlap row storing {4a}, bit draws 0 on every cell.
- RTX 3090 (NVIDIA 620.70.06, layer 1.4.363.0), job m3-max-73635 (d6bd77d203): 7 passed; the
overlap row above, bit draws 8; the stencil alone and with depth under Always and Less, 64
texels exact, bit draws [8, 8, 9]; the route exact, bit draws 8; refused a colour beside the
stencil (StencilExport), Equal and a Counting segment (DrawKind::StencilOutput), a Boolean
segment drawn. Conformance stencil-output and stencil-output-loaded: refused at
renderCommandEncoder and divergent at case/stencil (4 elements, largest difference 80), the
four known-gaps rows.
- RTX 5080 Laptop GPU (NVIDIA 615.71.09, layer 1.4.363.0), job m3-max-73652 (this tree): 7
passed; overlap {7f} where both reach, {35} where one, bit draws 8; cells exact, bit draws
[8, 8, 9]; the route exact, bit draws 8; the same refusals; conformance replay with this tree's
binary matched the four NVIDIA rows (exit 0).
- Radeon 780M (RADV, Mesa 26.2.6), job m3-max-73636 (d6bd77d203), and Iris Xe (ANV, Mesa
26.2.6), job m3-max-73650 (this tree): 7 passed each, export enabled, overlap {4a}, bit draws 0.
- States-only plays of recorded streams, base 0c9db49765 against d6bd77d203, every play in
states-only mode, made and refused equal, refused 0: lavapipe, jobs m3-max-73632 and
m3-max-73631 (two streams: render 10643 and 9014, compute 15299 and 221); the RTX 3090 with
--device-type gpu, job m3-max-73638 (two streams: render 9834 and 10643, compute 214 and
15299); the RTX 5080, job m3-max-73652 (two streams: render 9014 and 9645, compute 221 and
250). Those two carry a library holding a [[stencil]] function that no recorded pipeline state
uses; no stream on either NVIDIA node makes a [[stencil]] pipeline (job m3-max-73646 and
m3-max-73652's scan).
- Owed: the translator and validation suites of this tree (the suites of d6bd77d203, job
m3-max-73627, failed in the memory refusal's test on runtime-floor, the runtime guard's hash
and the golden and inventory cells above; this tree fixes the first two).
The runtime never made a plan (it binds each draw and dispatch by the pipeline's interface), and
since the census digests each pipeline's content alone (two commits back) nothing in the tree calls
one. What only the plan reached goes with it:
- bind: BindState, BindShape and their shapes, BindingPlan and its instantiation
(DispatchCommands, DrawCommands, push, descriptor and root-table templates and writes),
plan.rs and plan/ (compute, resources, slots), instantiate.rs, resident.rs, the neutral
resources' plan side, the heap's member planning and table bytes, the mesh arguments pass
(MeshArguments, MeshArgumentsForm, fold_object_grid, metal_object_grid), ExecutionStatus and
StatusBits as public items, TextureShape::Buffer, IndirectRef with the four indirect call
variants (Dispatch::ThreadgroupsIndirect, DrawCall::Indirect, PatchesIndirect,
MeshThreadgroupsIndirect) and IndexBufferRef::fetch_end. Dispatch, DrawCall and IndexBufferRef
stay: validation states its cases' calls with them.
- error::BindError leaves the public surface; a crate-private BindError of three variants stays
as the error of the heap's view derivation, which lower::texture::slot's storage-read check
reads (bind::heap::tier_read_gaps). That check keeps only the storage view's format: the
sampled-view branch and ImageViewDesc were reached by the plan alone.
- vk::DrawCommand, the plan's draw output.
- pipeline: ComputePipeline::plan, RenderPipeline::plan; cache: VariantKey::covers and
large_buffer_form.
- The TexelRows form (bind::texel_rows, LoweringInputs::texel_rows, RuntimeFact and PushField
TexelRows) and the YCbCrInPlace form (bind::ycbcr_in_place, lower/sampler/in_place.rs,
LoweringInputs::ycbcr_in_place and ycbcr_planes_sampled, RuntimeFact and PushField
YCbCrInPlace, PrecisionNote FloatSampleFilter and HalfSampleFilter, Routine::Quad). Only the
binder set those inputs.
- The tests of the deleted items, and the plan halves of mixed tests. Of 6810 tests (`#[test]`
functions in the workspace) 309 leave and 11 come in their place: the lowering halves of mixed
tests, kept without the plan (the heap layout, the stage-in stride and region facts, the
emulated-simdgroup and bicubic facts, the iris-xe storage classes), and the kept tests of the two
renamed files. 50 others are edited to drop a plan half or a deleted item (the api_surface round
trips; the simd_emulated, extended-range, recursion, dynamic-root, handles, heap-storage-read
and mesh lowering cases). 6512 remain. engine_graphics_binder.rs and engine_heap_binder.rs keep
one and two tests and are renamed engine_unattached_colors.rs and engine_heap_groups.rs.
- The runtime guard test's list of files the runtime inputs reach without being inputs drops the
seven no input reaches since the cut: cache/digest.rs, lower/simd/divergent.rs,
lower/simd/workgroup.rs, pipeline/artifact.rs, pipeline/layout.rs, pipeline/stage_io.rs and
pipeline/vertex.rs; three of its reasons that named the plan or the binder say what reaches the file now.
559 public items leave (api_signatures.tsv: 55 structs, 26 enums, 140 variants, 245 fields,
52 methods, 24 associated constants, 7 constants, 5 functions, 5 impls). Consumer search, the
consumer's development at 92ffbed817, `git grep -w NAME` of each of the 112 removed names: 0 hits
for 105; the others are the consumer's own items: TessellationFactors 4 (its
Bound::TessellationFactors), YCbCrMatrix 3 (its own string and doc), texel_rows 2 (its own fn),
ThreadgroupsIndirect 6 (its own Dispatch enums and rt::Dispatch::Indirect), DrawIndexed 1 (a doc
naming MTLIndirectCommandType values), covers 109 and plan 105 (generic words; the `.covers(`
calls are its Extent's, the `.plan(` calls its video encoder's rate.plan). Its one import of
metal2vulkan::bind is the argument-buffer layout types, which stay.
The forms' audit. A texture over a buffer: the runtime's
tests::over::every_device_holds_a_texture_over_a_buffer_in_place. A two-plane YCbCr sample: no
runtime test; the runtime makes no texture of a two-plane YCbCr format (Gap::TextureFormat, the
runtime README's "A format is made where the translator's format table maps it" row), the
conformance cases ycbcr_gathers and ycbcr_textures record Metal's answers, and
known-gaps-rt.tsv lists the runtime's refusals (ycbcr-gathers-*, ycbcr-texel-reads-420v).
Versions:
- RUNTIME_VERSION 2550: it covers plan instantiation and the binder's run-time data. Nothing calls
those since step 2: the runtime never used the binder, and the own-context executor is gone. A
run of an unchanged artifact does nothing different, so the guard hash (runtime-sources.sha256)
moves alone, and the RUNTIME_VERSION doc is rewritten to name what it still covers.
- SEMANTICS_VERSION 2273: no output changes for any input that still exists. The TexelRows and
YCbCrInPlace forms, their facts, push fields and the two notes were reachable only through
LoweringInputs::ycbcr_in_place, ycbcr_planes_sampled and texel_rows. Only the binder set those;
the runtime sets none. The function key appended each of them only when set, so every surviving
key hashes the same bytes. Two type declarations stay where they were, so module words do not
move: bool in the bicubic types, uvec4 in the bicubic routines. Byte-identical modules are
expected, not verified here; the 252-row hash probe is the check.
- ARTIFACT_FORMAT_VERSION 591: the codec tags enum variants by name. The removed RuntimeFact,
PushField and PrecisionNote variants leave their tags unused, which cache/mod.rs's rule says
needs no bump: an old entry holding one fails to decode, which is a miss. No codec_struct field
is removed. That is why SamplerDesc.ycbcr stays.
The guard hash (crates/metal2vulkan-validation/runtime-sources.sha256) moves for the bind/
sources this deletes and edits and for vk/draw.rs, which leaves its list. No run of an unchanged
artifact changes: what stays in bind/ computes what it did (the heap's tier check takes the same
storage format; its removed sampled branch had no caller).
Docs: docs/API.md (section 5 is the interface; the binding and plan sections go), README.md,
docs/ARCHITECTURE.md, docs/HOWTO.md, docs/VALIDATION.md, the runtime README's DrawInput and
identity-domain rows, docs/REFUSALS.md (regenerated; the binder's section goes),
api_reference.md, api_signatures.tsv (blessed: removals only), tests/api_surface.rs, the
signatures floor (5000), the bind modules' own docs, and the public field docs of PushField,
RuntimeFact and SpecKey that named BindState, BindShape or BindingPlan. AGENTS.md: the project
table names pipelines and their interfaces, not binding plans; its "core lives in" line stays
true (bind/ still holds what the lowering reads).
Verified on 31692939d4, this commit's tree (steelbrain/cutbinder-probe-6): job m3-max-68107,
fmt, signatures, refusal surface, clippy -D warnings (workspace plain, --cfg m2v_gpu,
--cfg m2v_cpu_icd; the translator with no feature and with each alone; the AIR crate alone),
workspace Rustdoc -D warnings, each crate's private intra-doc links at 0, api-docs; job
m3-max-68109, the product, validation and conformance suites, doctests, and on lavapipe the
validation and runtime suites under --cfg m2v_cpu_icd, the conformance replay and the public
cases' qualification.
The push window's clause made the list end "..., and run-time texel offsets (...), and the push
window (...)". The first "and" goes, so the nine items read as one list. The planner ruled it inside
the edit the owner's word (Telegram 2686, option B) covers; no meaning changes and nothing else in the
owner's rules moves. Nothing in the tree parses this wording (one_path.rs names the rule only in a
message).
What: the push window is one value per device, `DeviceProfile::push_window`, the description's
maxPushConstantsSize up to 256 bytes, decided in the profile `Device::from_queries` derives
(device/profile.rs:115). Every window reads it: push placement (`lower::push::window`, `place`,
`spills` and `check_floor` take its bytes; lower/select.rs, lower/access/mod.rs and
lower/access/table.rs pass it), and in the runtime the one pipeline layout's push range
(device.rs:688), the kernel and render pipelines' push checks (pipeline.rs:2119, render.rs:1043)
and the encoder's push bound (encoder.rs:1759). With W that value, a kernel pushes in [0, W), a
vertex function in [base, W - 8) and a fragment function in [base, W); object and mesh functions
keep 0..32 and 32..64. A stage's fields past its window spill to its parameter block, whose
address the window holds, as they did past 256. `from_queries` refuses a maxPushConstantsSize
below 128, Vulkan's least, only (`Unsupported{PushWindow}`, required 128), and the runtime's
floor no longer lists maxPushConstantsSize (floor.rs: its row and PUSH_CONSTANT_BYTES go; the
layout's range was a constant 256). There is no constant 128 path, no switch and no environment
gate: the limit query is the only input. Ported from the held branch steelbrain/amdfloor-window
(d6880ca16b) onto today's development, every line reference confirmed against this tree.
Why: the owner's word choosing option B. A device reporting 128 bytes was refused by the floor;
it now runs with a window of 128.
AGENTS.md rule 2 takes the owner's authorized text: "for eight only" becomes "for nine only",
and the push window joins the list after run-time texel offsets.
Known gap (runtime README, Known gaps of indirect command buffers): in a window of 128 bytes a
command reaches 9 vertex slots, and 8 where the vertex function spills, against 25 and 24 at 256
((W - 8 - 16 - 28) / 8; from code: lower::push's
an_indirect_draw_s_vertex_function_pushes_25_or_9_slot_words). A kernel pushes 8 buffer
addresses beside its dispatch region at 128 bytes against 24 at 256, the rest from its ring.
Caches: a device of 128 and one of 256 share no cached artifact and no pipeline. The profile's
fingerprint hashes every ProfileFields field by Debug (device/profile.rs:312, :327), the limits
included (:346, maxPushConstantsSize at :625); `function_key` hashes the fingerprint
(pipeline/compile/key.rs:182, :189; passed at pipeline/compile.rs:2973), as does
`queried_render_descriptor_key` (key.rs:546); a cached artifact or pipeline loads only under an
equal fingerprint (cache/artifacts.rs:71, :204, :238; cache/envelope.rs:142); and the runtime's
enables digest, which the stage keys check, hashes it (metal2vulkan-runtime/src/device.rs:1533).
SEMANTICS_VERSION stays 2273: no module changes under an unchanged key. Every device
`from_queries` accepted before reports 256 bytes or more (it refused below 256), so its window is
256 as before and its modules are the same bytes; a device of fewer bytes was refused, so it
holds no artifact to go stale, and its modules are new under its own fingerprint. The golden
test at this tree found 0 cells changed under an unchanged key over the 15 committed profiles,
and 1855 under a changed profile fingerprint, runtime-floor's column alone (m3-max-68089; the rows
whose assembler Linux lacks are not observed there).
Golden table: runtime-floor.json and its generator drop the floor block's maxPushConstantsSize
of 256, so the profile reads Vulkan 1.3's least, 128, and its fingerprint moves. Its cells are
re-blessed on development (the bless needs macOS's assembler).
Validation: runtime-sources.sha256 is rewritten (d4a8dbf2...), since device/derive.rs and
device/profile.rs are runtime inputs the guard hashes.
Docs: the runtime README (the floor's limits note and table, compute Parameters, the render push
range, the indirect command buffers' known gaps), docs/API.md section 5 and the from_queries
paragraph, PushWindow's doc, reach.tsv and docs/REFUSALS.md (regenerated; the PushWindow row
only), the device profiles' README, and api_signatures.tsv (DeviceProfile::push_window). The
api_surface table is unchanged: no public type is added.
Tests: lower::push's placement at 256 and 128; from_queries (each committed profile's window is
its limit up to 256, runtime-floor's 128; 128 derives, 64 is refused with required 128); the
tessellation control range, the engine identity and spill tests in each profile's window; and
the runtime's push_window, patch and indirect token tests in two arms each, the device's own
limit and the limit held at 128 by the tests' device shim (tests/command.rs push_window_128,
DeviceOptions::described).
Verified:
- m3-max-68088 (this tree): fmt, the signatures table, the refusal surface, clippy -D warnings
plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, workspace Rustdoc -D warnings: each exit 0. The
runtime suite on lavapipe (--cfg m2v_cpu_icd): 647 passed, 3 skipped. Its push lines read
"push_window: the push window is 256 bytes", "push_window_128: the push window is 128 bytes",
"window 128, 12 buffers: 3 ring writes and 3 pushes over 3 dispatches", "icb_tokens: ... the
push window 256 bytes, 25 slot words", "icb_tokens_128: ... the push window 128 bytes, 9 slot
words", and draw_patches_full_range at 256 and _128 at 128.
- m3-max-68089 (this tree): the core crates 3881 of 3882 passed, 24 skipped; the one failure
is the golden table, stale under runtime-floor's moved fingerprint (1855 cells, one per row
observed on Linux, 0 new, 0 gone, 0 under a changed source, 0 changed under an unchanged key).
Validation 1314 passed, 3 skipped. The translator's push tests print each committed profile's
window: runtime-floor 128, the vertex function ending at 120, 9 inputs; the 14 others 256.
- m3-max-68067: the whole runtime suite on lavapipe at an earlier tree of this change
(a98af765ad, before the rebase onto 91fed9449c and the options alias) with a probe commit that
holds every device's limit at 128 in Device::open (steelbrain/amdfloorb-probe128, never landed):
647 passed, 3 skipped; the conformance replay exited 0; every push line read 128 bytes.
No card under 256 ran it; the 128 form ran on lavapipe with the limit held at 128.
The owner, Telegram 2599 (20:29 PST 11-21, through the relay), verbatim: "Re 98, I accept".
Item 98 put to him rule 2's text and this edit: "nine" becomes "eight", and the clause on
driver-zeroed memory is removed. Nothing else in the file changes.
The form left the code in 6812e2991c (no device enables VK_EXT_zero_initialize_device_memory;
the runtime writes every zero), after the RX 7900 XTX read back earlier processes' bytes from
memory allocated with the flag.
Checked at fee1d03dd4:
- No product code enables or reads the zero-initialize feature (git grep for
zero_initialize_device_memory, ZERO_INITIALIZE and zeroInitializeDeviceMemory). The runtime's
only mentions are a spec quote in a doc comment (surface.rs), a test that checks no device
enables the extension (tests/texture.rs), and the README line saying why. Validation's captured
profiles list what each device reports.
- The eight forms listed are the eight the code has: 16-bit floats, storage-image reads
without a format, 64-bit atomics, 64-bit floats, SIMD groups, unified memory, the attachment
feedback loop, and run-time texel offsets by maintenance8 (the owner's 2465).
- No test or generated doc reads rule 2's count or list. The runtime's one-path test
(tests/one_path.rs) checks product sources for identity names, not the list of forms.
The owner allowed a ninth query-chosen form (Telegram 2465): "I allow the ninth query. Use it
where you can". This answers the texel-offset question inside his compile-time order ("Multi
minute compiles are unacceptable").
What: the floor reads VK_KHR_maintenance8 and its feature maintenance8 where the device lists the
extension (one of OPTIONAL_EXTENSIONS, and one of the OPTIONAL features, each of which chooses one
of two forms; VkPhysicalDeviceMaintenance8FeaturesKHR is bound by hand, as ash 0.38 lacks it, its
layout checked as the crate compiles). Device creation enables both, Capabilities answers
texel_offset_operand, and the translator's description is told of Maintenance8 and
KhrMaintenance8 (shader_enables). The translator already takes a run-time offset on a sample as
the Offset operand where its profile has maintenance8 (lower::sampler::select::dynamic_offset).
Until now the runtime never enabled the feature, so with_enabled dropped it, and every run-time
offset that reached lowering became a switch of up to 256 ConstOffset arms. NVIDIA's compiler
takes minutes to create that switch (lane stagesize: 255 arms 193 s on an RTX 3090, the operand
80 ms). Canonicalization's unroll of a proven small nest is unchanged on every device.
A device without the feature keeps the branch: Intel's Windows driver for the UHD 630 (101.2145)
lists no VK_KHR_maintenance8 (vulkaninfo, job 64024). The runtime README records the branch's
compile time as a known gap of pipeline states, and its floor tables gain the extension and the
optional feature. AGENTS.md rule 2 changes in this commit: "for eight only" becomes "for nine
only", and the list gains run-time texel offsets.
Spec (1.4.366): VUID-RuntimeSpirv-Offset-10213 is the only gate on Offset outside a gather. The
value is OpBitFieldSExtract(v, 0, 4), in [-8, 7], inside the required minTexelOffset <= -8 and
maxTexelOffset >= 7 (VUID-RuntimeSpirv-OpImageSample-06435/06436). Gathers already took Offset
through shaderImageGatherExtended, which the floor requires. Enabling maintenance8 changes no
other path the runtime takes: its blits stay within one 3D image, it names no queue family
ownership transfer flag, and it merges no pipeline caches.
Caches: the translator is unchanged, so SEMANTICS_VERSION stays. The translator's profile
fingerprint (DeviceProfile::fingerprint, over every profile field, ImageCaps::dynamic_sample_offset
among them) moves on a device that has the feature, and with it every FunctionCompileKey and render
record name in the cache directory. A lowering made without the feature is not taken by a device
with it (tests::filter_nest's every_device_keeps_the_operand_s_and_the_switch_s_lowerings_apart).
Tests: tests::floor's a_run_time_texel_offset_is_the_sample_s_operand_where_maintenance8_is_reported
fails without the change (no Maintenance8 among the enables); the_optional_features_decide_the_
capabilities takes the eighth case. tests::filter_nest (device cfgs): the unrolled kernel, the
operand and the switch (a translator told of no maintenance8 on the same device, test-only) write
the same 64 sums; the module needs maintenance8 and holds no OpSwitch where creation enabled it,
and holds a switch otherwise.
setDepthBias:slopeScale:clamp: bounds the bias by its clamp: "Pass a positive or negative value to
limit the largest magnitude of a positive or negative bias, respectively. You can disable the bias
clamping functionality by passing 0.0" (Apple's page for the method, as fetched). Vulkan's
depthBiasClamp is the same bound (dbclamp: x for 0, min(x, clamp) above 0, max(x, clamp) below).
rt refused every clamp but 0 (DrawKind::DepthBiasClamp), where the deleted runtime passed it.
floor: depthBiasClamp joins REQUIRED. Every dumped venue reports it (vulkaninfo m3-max-48727 to
48731, 48736, 48737 and 61508 for the RX 550: RX 7900 XTX, the three 780Ms, RTX 2080, RTX 3090,
Iris Xe, RTX 5080 Laptop, llvmpipe, the UHD 630's Windows driver, KosmicKrisp on the M3 Max, RX
550), and Vulkan 1.4 and Roadmap 2022 require it.
render encoder: set_depth_bias keeps the clamp beside the bias and slope scale and records it in
vkCmdSetDepthBias, as dynamic state (no pipeline). It returns nothing now, as Metal's call does:
its only error was the clamp. DrawKind::DepthBiasClamp is deleted. The consumer's checkout names
both: rt_platform/render.rs:380 (`e.set_depth_bias(...)?`) and rt_platform/unbuilt.rs:873 (a test's
sample refusal of DepthBiasClamp); each needs a one-line change at its next pin.
AGENTS.md: the Scope sentence on features no guest has used is replaced with the planner's
wording: a feature a program can ask about is answered from the Vulkan query; one Metal gives every
Mac device with no way to ask is built, a typed refusal in the known gaps until it is.
Docs: the README's floor table, its depth bias paragraph and its render encoder known gaps;
docs/REFUSALS.md regenerated (Draw's basis and sites); api_signatures.tsv blessed (the setter's
signature, the variant gone). The conformance ledger drops render-state-depth-bias's refusal row.
Tests: every_device_tests_writes_and_biases_a_depth_attachment's first draw is biased by 2^23
(0.25 or 0.125 in the device's unit at depth 0.25) clamped to 0.0625, and the depth read back is
0.3125 on every device; the later draws' answers are unchanged in kind. The conformance case
render-state-depth-bias (a slope-scaled bias under the clamp -0.0125) now compares against Metal's
recording.
Before a published crate's public item is deleted, the lane searches the
consumer's checkout for it and names the hit or the zero in the commit message.
The consumer is asked only where a search cannot answer (a macro, a re-export).
A search takes seconds and leaves the same evidence as a round of messages.
The orphan pass deleted ArgumentBufferLayout::from_descriptors because nothing in
this tree called it; the consumer did, and its build broke at f53cd542b6. The
dead-code rule now says a public item of a published crate is used when a
consumer calls it, and that the consumer is asked before one is deleted.
The cutover deleted the translator's speed-for-accuracy switches, the driver-fact tables, the
device checks, docs/FAST-PATHS.md and tests::fast_paths. AGENTS.md still said they "stay correct
until the cutover deletes them", listed FAST-PATHS.md in the doc table, and named it among the
honest trade-offs that change with behaviour. Those three passages now say what is true:
- the doc table loses the FAST-PATHS.md row;
- the old-runtime paragraph becomes "No switches. Never add a policy switch, a fact-table row,
a device check or a ledger row.";
- "The honest trade-offs stay current" names REFUSALS.md, METAL-COVERAGE.md,
CONFORMANCE-COVERAGE.md and API.md's catalogue, without FAST-PATHS.md.
DevicePolicy itself stays: it now holds only the consumer's domain, containment and isolation
choices, none of which trades accuracy for speed.
Verified: git ls-tree shows no docs/FAST-PATHS.md and git grep finds no fast_paths under crates/
at the parent; the diff touches AGENTS.md only.
The cutover's last mechanical step. The old runtime is deleted, so its name is free: the crate
moves to crates/metal2vulkan-runtime, its package is metal2vulkan-runtime and its library
metal2vulkan_runtime, and every reference in the tree follows (sources, tests, scripts, CI,
generated tables and docs).
It is now a published crate, as AGENTS.md said it would be once it took the name: version 0.2.0
with the other two, the translator pinned exactly (=0.2.0, as the translator pins the AIR front
end), documentation, keywords and categories, and copies of the repository's four license files,
which the published-crates test now holds equal to the root's for three crates. CI packages it
with the others. Prose that said it was unpublished, or counted two published crates, says three.
AGENTS.md: facts only. The crate table row, the published-crates and version sentences, and the
paragraph on the old runtime, whose name the runtime now carries (listed for the owner).
Made by one script run on this tip. Verified by the job
named in the landing note.
Section 9 now catalogues rt's precision notes (53f3e522e9); the degrade-notice
catalogue it replaced described the deleted runtime's notices. The doc table
and the docs rule name it by what it is now. Docs only.
The old runtime crate is deleted (5d725aeec7), so the facts change: seven
crates, two published crates sharing one version, rt described as the
runtime (unpublished until it takes the name metal2vulkan-runtime), the
harness as the runtime's, no row for the deleted crate or its README, the
gate line without -p metal2vulkan-runtime, and FAST-PATHS.md as the
translator's switches alone. The owner's rule sentences that name the old
runtime are untouched; they are listed for him.
Docs only; nothing compiles differently.
The scope sentence said a Metal feature no replay stream uses is a typed
refusal until a stream needs it. The owner did not rule that and asked for
it to change: a feature no guest has used, in a replay stream or a live
session, is a typed refusal until one does, and a refusal a guest meets is a
bug, ranked by how often guests meet it.
Docs only; nothing compiles differently.
The owner allowed driver-zeroed memory as a device-chosen form ("I'll allow it", relayed by the
planner from the owner's Telegram reply on 2026-11-19). Rule 2's list now names it, before
unified memory: a device with the zero-initialize feature allocates its memory zeroed and a block
says so at its take; a device without it writes every zero itself. The README's first memory
bullet no longer says nothing the driver does counts: a block's bytes are undefined except where
a take answers BlockInfo::zeroed, whose rule (high-water per allocation, rt's own zero requests
unchanged) the bullet below it states.
Docs only. The form itself is the commits before this one (c5607a598b..f776af3cb3): checked by
m3-max-53011 (clippy x3, rustdoc), m3-max-53003 (rt+harness 152/152, api_signatures 3/3, rt on
lavapipe 365/365 with both device tests), the negative control m3-max-52975 (the outside-writes
test fails on 114d718d46), and device runs on the 780M (53019), Iris (53022) and RX 550 (53026),
369/369 each.
The owner allowed one more exception to optimal images, exactly a plane texture of an exported
surface: a linear image on the surface's own exported memory at the export's pitch and plane
starts, and the copy form of the same call, counted and recorded as a known gap, where the device
offers no such image or cannot meet the layout. The Shared-buffer exception is kept word for word.
Checked against Device::new_exported_surface as built: in place, each plane's image is bound to
the surface's exported memory (a dma-buf's per-plane import of it, or the opaque handle's one
allocation) at SurfaceExport::planes; otherwise SurfaceForm::Copy, counted in
Metrics::surfaces_copied, its gaps in the rt README.
The owner's order (relayed by the planner, Telegram message 1924): "Remove
unused lines from the rules." The eighth second form of rule 2, a small zero
image or the default sampler where a device lacks the null descriptor, is
unused: nullDescriptor is a floor feature (crates/metal2vulkan-rt/src/
floor.rs requires robustness2.null_descriptor), so no device above the floor
takes the zero-image form and no code holds it.
Verified: a grep of the tree's Markdown and Rust for another statement of
eight forms or of the zero-image form finds none outside AGENTS.md. The rules'
other named items (the attachment feedback loop's counted copy in
crate::over and the attachments' copies, the optional features in
floor::OPTIONAL, DevicePolicy, tests::fast_paths, docs/FAST-PATHS.md) exist.
The owner approved it on 2026-11-18, typed in the planner's session, verbatim: "I approve it", on the planner's question "allow it as an eighth query-chosen form". Rule 2's list now holds eight: a device without the nullDescriptor feature gives every element of the texture and sampler arrays that no resource owns a small zero image or the default sampler, recorded as a known gap. The closing sentence (a second form chosen by anything else is not allowed) is kept. Docs only; the form itself is not built yet (it waits for the Mac lane).
Owner rule 2 named five features whose query may choose a second form. The owner allowed two
more on 2026-11-18, relayed verbatim by the planner from the Telegram bot:
- "I allow it", answering whether unified memory, decided by the Vulkan device type, may be a
query-decided form. That is the one-or-two-copies choice for Managed buffers that
Device::has_unified_memory answers. It is decided by the physical device type alone, never by
a vendor or device ID. The earlier sixth form (explicit pitch) stays dropped.
- "Wait never mind, copying is fine if the gpu/driver genuinely doesn't support it", reversing
the typed refusal for attachment reads on a driver without the feedback-loop features. On
such a device a draw that reads its own render target goes through a counted copy of the
target, as the last form there, reported as a known gap. The Copies rule is unchanged: this
is not leave for a copy on any device that has the feature.
The rt test that enforces rule 2 (tests::one_path) forbids identity names, environment reads
and policy types. It does not list the allowed queries, so it does not change.
The owner ruled it on 2026-11-17 (to the planner, "Add it"), on the item "SIMD
groups: the subgroup size range and maximal reconvergence". Rule 2 now lists
five features: the four before, and SIMD groups, the subgroup size range with
its stages and operations, and maximal reconvergence.
What follows for the translator and the new runtime: the three SIMD-group tiers
(pinned, 32-lane clusters, emulated), the large-kernel trigger and the form for a
device without maximal reconvergence are allowed on the runtime's one path,
chosen by those queries. The identity-keyed stage-bound fallback stays out.
Measured behind it: every lab GPU and lavapipe has
shaderMaximalReconvergence except the UHD 630 under Windows (driver 101.2145);
there, the 53 benchmark kernels with simdgroup lockstep barriers compile on the
emulated tier whole. Pinning large kernels costs 1.3-4.4x GPU time and 2-19x
creation time on the Intel GPUs, so the size-range choice stays.
Rule 3 said "optimal images in real layouts" without the exception the owner
accepted for textures over Shared buffers, so the two contradicted each other.
The rule now names the exception and its conditions: a linear image on the
buffer's memory, in the device's own layout, created so its first use keeps the
bytes, with the alignment the guest reads from Metal's minimum linear texture
alignment; where a format query offers no linear image for a format and usage, a
counted copy at commit. The owner fixed these conditions and said they do not grow.
Doc-only change.
The owner's decisions on the runtime rewrite's rules:
- The workaround ladder loses its calibration rung. Where no single form wins on
every device, the form that is best on the slowest GPU is taken and the loss on
the others is recorded as a known gap. The ladder is now four rungs; the
thresholds' time box ends at rung 4.
- "One form" means one form per Vulkan capability. A second form chosen by a
feature's query is allowed only for the four features the floor cannot
require on every lab device: 16-bit floats, storage-image reads without a
format, 64-bit atomics and 64-bit floats.
- Copies: nothing is copied that Metal would not copy; a copy is only the last
form on a device with no other, reported as a known gap.
Doc-only change; nothing else refers to the removed rung.
What: a new, unpublished workspace crate, crates/metal2vulkan-rt, that will replace
metal2vulkan-runtime and take its name at the cutover. It has no public API yet. Its first test,
tests::one_path, reads the crate's product sources (line comments removed) and fails on:
- a vendor, device or driver identity name (vendor_id, deviceID, DriverId, driver_name ...);
- a GPU vendor's ID as a hex literal (0x1002, 0x10de, 0x8086 ...);
- an environment read (env::var, option_env!);
- a struct or enum named as a policy.
Two more tests prove the scan finds each form and passes prose and unrelated numbers.
AGENTS.md takes the owner's new rules, in priority order:
1. correct for documented Metal, with the device's arithmetic and static notes per operation;
2. one path for every device;
3. native-like speed;
4. small.
It also takes:
- the workaround ladder, the never-list and the thresholds;
- the matrix rules: every check fans out one leg per GPU at once, and the replay matrix runs on
development after each merge with deterministic metrics and leak gauges;
- the freeze: the old runtime, DevicePolicy switches, driver-fact tables, device checks and
docs/FAST-PATHS.md get regression fixes only until the cutover deletes them, and nothing new
of those kinds is added;
- the scope rule: below the floor is a typed refusal, and a Metal feature no replay stream uses is
a typed refusal until a stream needs it.
The crate table, the doc table, CI's crate lists and the gate commands in AGENTS.md,
CONTRIBUTING.md and docs/VALIDATION.md name the new crate.
Why: the owner's plan replaces the runtime with one that has no per-device code paths. These are
the rules every lane of that work follows from its first commit.
Verified: cargo fmt. Build, clippy and the crate's tests run on development after this lands.
x86_64-pc-windows-gnullvm (the primary Windows target) and x86_64-pc-windows-msvc, with
--all-targets --all-features and warnings denied. Clippy links nothing, so the Linux job
needs only the two targets' standard libraries. AGENTS.md's CI paragraph names the step.
Verified: the same clippy lines ran in potluck jobs on Linux (msi) for both targets.
kache 2.0 imports a crate's incremental state from another worktree's target only when both
targets sit inside their worktrees: a CARGO_TARGET_DIR outside its worktree is attributed to the
target's parent directory instead, and neither gives nor takes. AGENTS.md and CONTRIBUTING.md
now say so: target/ (Cargo's default), and target/gpucfg for --cfg m2v_gpu builds, as CI and
docs/VALIDATION.md already name it.
Verified on the M3 Max at 7dbedfd151 with three lean worktrees building metal2vulkan-air, then
the same comment edit to its lib.rs: the donor's first edit rebuilt from scratch in 3.89 s; a
second worktree with an in-tree target rebuilt it in 1.61 s, which kache explain records as
"automatic worktree seed"; a control with its target outside its worktree took 3.84 s,
recorded as a plain edit rebuild under the target's parent.
The owner asked for a nightly toolchain, -Zthreads, kache 2.0 with its incremental cache, and
Rust's incremental compilation on.
- rust-toolchain.toml pins nightly-2026-11-03 (rustc 1.101.0-nightly 1c3a65069), dated so every
machine runs one rustc, clippy and rustfmt. The published crates keep rust-version 1.98, which
this build no longer checks by itself (clippy's incompatible_msrv still flags newer std items).
- .cargo/config.toml passes -Zthreads=0 (a thread per core) through Cargo's profile rustflags,
which add to RUSTFLAGS instead of being replaced by it, so `--cfg m2v_gpu` lanes and CI's
-Dwarnings keep it.
- scripts/rustc-wrapper hands each compile to kache where kache is on PATH outside CI, and to
rustc otherwise; `RUSTC_WRAPPER=` (empty) builds without it.
- CARGO_INCREMENTAL=0 is gone from scripts/device-lane, AGENTS.md and CONTRIBUTING.md.
- CI installs the toolchain the file names; both Dockerfiles take the same nightly.
What the nightly asked of the code:
- Its standard library containers take more trait-solver levels (Box -> BoxRaw, RawVec ->
PhantomData), so proving a RenderCommandEncoder `Send` from a program's crate ran past the
default recursion limit (tests/consumer_auto_traits.rs failed, a future-incompat lint that will
become an error). The encoder now holds its own lowering in `OwnLowering`, whose `Send` impl is
written out over a compile-time proof that `RenderLowering` is `Send`, as `LoweringSlot` already
was. The runtime crate's own proofs need recursion_limit 256.
- New clippy lints: needless_range_loop, single_element_loop, new_instead_of_clear (a false
positive on a moved-from Vec: the part's segments are now taken explicitly),
needless_borrows_for_generic_args, redundant_closure, unnecessary_lazy_evaluations,
manual_range_patterns; AtomicU64::fetch_update is deprecated for try_update (present in 1.98).
- Cargo warns that `homepage` equals `repository`: homepage removed from the manifests.
- nightly rustfmt formats ir_id! invocations one argument per line.
Verified on the M3 Max: `cargo clippy --workspace --all-targets --all-features -- -D warnings`
clean on the nightly; `cargo build -v` shows -Zthreads on every rustc invocation and
scripts/rustc-wrapper in front of each.
One work packet, landed as 2 commits (4bf2c22aad..9090d9a1b1 on archive/development-linear-2026-10-28), in order:
* Drop the exact golden table, a duplicate of the default one
`DevicePolicy::exact_answers()` now sets only the runtime's switches (heap compression,
completion, batch order, render lowering, host-page textures), none of which a translation reads:
the table's own structural test held its profiles' fingerprints equal to the default table's, so
`golden_hashes_exact.tsv` pinned a subset of `golden_hashes.tsv` cell for cell. The table, its
comparison test, its structural test and the `samples` filter go; the bless writes the one table.
Verified: clippy (workspace, all targets, all features) clean; the golden module's structural
tests, fast_paths and published_crates pass (14 tests).
* State the native-arithmetic rule in AGENTS.md and the ledger
The owner ruled on 2026-10-27: "Just promise the GPU's native arithmetics, no more 'exact'
emulation." Rule 1 now says so: arithmetic and value answers are the device's own native form,
recorded as a precision note where they can differ from Metal's, and no path or switch emulates
Metal's bits where the device has a native form; capability emulation stays; the remaining
speed-for-accuracy switches (outside arithmetic) keep both forms, the fast one the default. The
"Scope is the device's" honesty rule names the native answer as a recorded near-equivalent.
docs/FAST-PATHS.md's opening says the same and what its tables hold.
Verified: tests::fast_paths passes.
The steps this packet landed as, in order:
- Wrap the option-space axis's two overlong lines
- Blank a source for the hand-modelled scan only where a match needs it
- Remove the self-test's trees when it is done with them
- Say that a sweep by ordinal states no value by name
- Record why an ordinal-stated value must not be resolved by field name
- Re-derive the generated documents at the landing tip
Content: the tree of `development` at 9e1c5a54d5, unchanged.
The steps this packet landed as, in order:
- Give AstcDecode its first check against Metal rather than against itself
- Inventory what the conformance suite verifies, not what we implement
- Leave no bytecode cache beside the coverage script
- Group the conformance inventory by SDK header as well as by container
Content: the tree of `development` at 0375c9b833, unchanged.
The steps this packet landed as, in order:
- Prove the conformance loop with two seed cases, recorded on this M3 Max
- Own the committed-AIR shader path, and three more exhaustive byte cases
- Compare a case's words in named columns, and keep the suite's two venues green
- Bump the runtime version and pin the runtime sources after the binding fix
Content: the tree of `development` at 4b4ecc5628, unchanged.
The owner lifts it: a device may keep what it checked or learned about
itself in an earlier session (its driver's answers and defects, checked
on the device). The bans on keying behavior to an app, a shader hash or
a corpus census stay. Doc-only; cargo fmt --all run.
AGENTS.md told agents to merge into master at once and to run the
checks and re-blesses there. The owner's rule (2026-10-11) is now that
no agent works on or advances master unless the user explicitly asks:
work happens on development, made from master when it is missing, or on
branches off it. The git workflow section, the loop's last step and the
definition of done now name development instead of master. The speed
rule is unchanged: merge at once, no pre-merge gate, fix forward.
Verified: docs only; cargo fmt --all left the tree unchanged, and the
only remaining mention of master in AGENTS.md is the new rule itself.
Rolls up everything since 43c46ac8 into a single commit. Its tree is
identical to the tree of private master at
b3c77f2d2b20a432be10591a2129547c10b1c24b.
- A Cargo workspace of five crates under crates/: metal2vulkan (the
translator and the metal2vulkan command), metal2vulkan-runtime (the
Metal API on Vulkan), metal2vulkan-air (the AIR front end),
metal2vulkan-validation and metal2vulkan-devtools.
- Dual license: GPL-2.0-or-later OR LGPL-3.0-or-later.
- docs/: API, architecture, fast paths, how-to, Metal coverage,
refusals, runtime porting and validation guides.
Private-Commit: b3c77f2d2b20a432be10591a2129547c10b1c24b
Rolls up everything since 9e0e99a4 into a single commit:
- src/native, src/passes, src/reflect, src/meta: AIR intrinsic lowering,
access-chain and pointer handling, constant/composite dedup, storage
and descriptor-slot fixes, function-constant folding.
- validation/: Metal and MoltenVK oracles, triage, observation contract,
and the case runner.
- validation/corpus and fixtures: new authored cases and re-recorded
candidate observations at the shipping fingerprint.
- tests/: module-level oracles for reflection, NonWritable, gated
varyings/system values/descriptor slots, loop budget, and fallback.
Both were being followed by habit and neither was written anywhere, so
each new contributor (human or agent) had to rediscover them:
- Never amend. An existing commit is history someone may already have
read; corrections belong in the next commit, not in a rewrite of the
last one.
- Every commit is a release candidate. Landing a half-applied refactor or
a fix whose test is still to come leaves the tree in a state where the
pre-commit gate no longer means what it claims. Large changes get split
into independently sound steps, not into a break followed by a repair.
The hard end-to-end ceiling per translation attempt is now 20 seconds,
in the corpus-triage worker guard that enforces it and in the AGENTS.md
and docs/VALIDATION.md statements of the contract. The 500-MiB memory
budget is unchanged.
Verified: corpus-triage unit tests (15) pass; fmt clean.
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.
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.