Commit Graph
248 Commits
Author SHA1 Message Date
Anees Iqbal 88a5a8d641 matrix: the golden table and the runtime without the old-runtime wording
The golden hash table compiles through Device::from_queries (docs/
VALIDATION.md already says so), not Device::new, so the matrix's
comments and its problem message say that. The gate keeps its behaviour
under its own name: results.golden_table_moved (was old_path_moved),
GOLDEN_FIX (was OLD_PATH_FIX), and the leg's problem "GOLDEN TABLE
MOVED" (was "OLD PATH MOVED"), with VALIDATION.md's line and the test
following. The "new runtime" of results.py's and instructions.tsv's
comments is now the runtime.

Unchanged, because readers depend on them: the exemption phrase
"old-runtime regression fix" (matched in the subjects of commits since
the table's last bless), and the record keys harness-new/,
harness-new-warm/, harness-gpu-new/ and harness-alone/<row>/<pair>/new,
which the harness prints from its --runtime value and which the 60
stored notes under refs/notes/matrix hold: a base's records are compared
key by key, so renamed keys would compare nothing against every stored
base.
2026-11-20 13:10:00 -08:00
Anees Iqbal 3656f31676 DriverWorkaround keeps the two answers every device takes; the driver-defect refusal goes
DriverWorkaround held 26 variants; Device::from_queries takes only ClippedCoverageNotMetals and
TessellatorNotMetals, on every device, and the batch's earlier commits removed every reader of
the other 24. They go, and the enum's docs now say what it is: a device answer that no Vulkan
query tells apart, noted on every device.

Needs::DriverDefect and Unsupported::driver_defect named a DriverWorkaround measured on a
driver's identity. No site constructs it any more; they go, with their arms in the permanence
match, the validation engine's outcome map and its key test, the conformance verdict's device
gap, the error tests and the refusal surface script.

Docs that named deleted variants are rewritten to what the code does now: the f32 denormals in
an entry that declares the 16-bit float controls are the device's own on every device; the stage
bound is the one bound a kernel's plan is held under; the uniform view is a Uniform block (the
texel form went with ExternalUniformReadsSkipACache); the Intel venues' note no longer claims the
RPL-P's profile takes a workaround.

Verified: nothing yet; the gate follows.
2026-11-20 11:57:41 -08:00
Anees Iqbal 912bf785ce Simdgroups: the vertex grouping note goes, with its fact's reader
The planner's ruling: no VertexSimdgroupGrouping. lower/simd recorded it for a vertex function's
simdgroup or quad operation where the stage takes no required subgroup size and the profile
carried DriverWorkaround::VertexGroupingNotApples (ANV's 8-vertex interleaved subgroups); no
profile carries that variant since the fact tables went, so it was recorded nowhere. The note,
its reader (regroups_vertices), its codec tag, its conformance degradation and code, its
validation allowance, deferral and bound text, API.md's catalogue entry and the engine_simd and
c3 tests that named it go.

The public surface moves with this commit and the batch's earlier ones: the api_signatures table
(regenerated by signatures.py) drops PrecisionNote::VertexSimdgroupGrouping (the translator's
and the runtime's re-export), Feature::PixelCoverage and Feature::CentroidVarying (link's split
refusal), and DescriptorView::UniformTexel (the views' rung 1); REFUSALS.md (regenerated) drops
the two features, and the reach table their rows.
2026-11-20 11:56:55 -08:00
Anees Iqbal 92ce7950fc Docs: "the runtime", not "the new runtime"
There is one runtime, so the prose of the harness, validation, devtools,
the translator's lockstep module, .config/nextest.toml and the refusal
surface and conformance coverage generators says "the runtime"
(scratch newrt.py: a word replacement, identifiers such as new_runtime
and NewRuntime untouched). docs/REFUSALS.md and
docs/CONFORMANCE-COVERAGE.md are regenerated from the edited scripts.

Four harness passages said the runtime makes no heap and no texture
over a buffer, and has no Managed mode. The runtime has all three
(Device::new_heap_buffer and heap textures, Buffer::new_texture,
Device::new_managed_buffer); the harness's own backend refuses the two
texture sources. They now say the harness makes neither on the runtime,
and the Managed note names Device::new_managed_buffer. The refusal
strings keep the words the harness's described test matches ("makes no
heap", "makes no texture over a buffer").

Left: three fixture comments (.metal under validation's public
fixtures, whose text keys the golden tables and the committed AIR) and
scripts/matrix, whose keys (harness-new) carry the same naming.

Verified locally: the refusal surface, Metal coverage, conformance
coverage and API signature checks pass.
2026-11-20 11:52:56 -08:00
Anees Iqbal be2c5d567e Fragment: the multisampled in-shader depth test is one typed gap on every device, Feature::MultisampledShaderDepthTest
The planner's ruling. A fragment function that runs its draw's depth test itself at more than one
sample, without returning its depth, needs each sample's depth. The two forms that gave it were
keyed on measured facts (VkProperty::SampleFragCoordDepth on RADV, CenterFragCoordDepth on
MoltenVK) that no query produces, so development already refused it on every device, as
Unsupported(FramebufferFetch, NotImplemented) at the depth attachment, which a play cannot count
apart from framebuffer fetch's own refusals. It is now its own kind.

- error/mod.rs: Feature::MultisampledShaderDepthTest.
- lower/fragment/depth_test.rs: depth_test_form refuses with it; the module docs say why.
- docs/REFUSALS.md regenerated with its reach row (--check passes); api_signatures.tsv blessed
  (it also takes the extrapolation commit's removal of DriverWorkaround::PerspectiveReadsExtrapolated).
- Tests: engine_fragment's per-sample depth and stencil-before-depth refusals, and
  engine_fragment_imageblock's multisampled tested write, assert the new kind at the depth
  attachment.

The forms keyed on the two never-produced properties, and the window-depth varying that feeds the
computed one, go with the other never-produced vocabulary.
2026-11-20 10:36:12 -08:00
Anees Iqbal ffc3208151 Docs: delete the cites of the deleted runtime lanes
The runtime_lane tests went with the old runtime, so every cite of one
was false. Each cite is deleted outright, in the conformance cases and
probes, the engine fixtures README, the translator's precision-note and
profile docs, one engine test comment and the i915 counter's header.
Where a sentence only restated what a deleted lane held or showed (the
"what the port changes" paragraphs, the "stays a lane assertion"
sentences, the lane's own model kept "exactly as" it stated it), the
sentence is deleted; the Metal facts the cases record stay.

Two runtime claims beside the cites were false of the live runtime and
now say what it does: a command queue of 0 command buffers is
Refusal::NoCommandBuffers, and a heap texture's size is the device
image's own requirement, held by its property.

Verified: git grep runtime_lane finds nothing. Not built yet; the gate
for the whole pass follows.
2026-11-20 10:27:17 -08:00
Anees Iqbal f3b9e0253a Pull-model interpolation: a sample or offset read where the quad may have left is one typed gap on every device
The planner's ruling. interpolant_reads refused a read at a sample or an offset outside the
fragment function's first block, or after a discard in it, only on a driver with
DriverWorkaround::InterpolationNeedsTheWholeQuad, which nothing sets since the driver-fact tables
went: development lowered the shape on every device, RADV included, whose InterpolateAtSample and
InterpolateAtOffset read garbage where the quad's other invocations have left.

- lower/stage_io/plan.rs: the structural test stays as it was (Sample or Offset, past the first
  block or after a discard in it) and refuses on every device, as its own kind:
  Unsupported::not_implemented(Feature::DivergentInterpolation), so a play counts it apart from
  PullModelInterpolation's select, phi and store refusals.
- error/mod.rs: Feature::DivergentInterpolation; PullModelInterpolation's doc points at it.
- device/profile.rs: DriverWorkaround::InterpolationNeedsTheWholeQuad deleted.
- The coverage loop's rung-1 form, beside it: lower/fragment/coverage.rs read the fact nothing
  set, so development read a looping function's sample-qualified varyings inside the loop on
  every device, where the helper invocations of a partly covered quad have left. The entry now
  reads each such varying at every sample a pipeline of the device may have before the loop, on
  every device (samples_before_loop, stage_io::read_at_every_sample).
- SEMANTICS_VERSION 2205.
- docs/REFUSALS.md regenerated (scripts/refusal-surface, with the new reach row); --check passes.
- Tests:
  - rt's every_device_refuses_interpolation_where_the_quad_may_have_left (lavapipe): a sample
    read in a branch, an offset read in a branch and reads after a discard in the first block
    are refused, Unsupported(DivergentInterpolation), NotImplemented; the same reads in the first
    block, and before a later discard, are made and draw the colour.
  - engine_pull_model: pm_offset_after_discard (reads past the first block) is refused on every
    committed profile at 1 and 4 samples, before what its reads need is asked.
  - engine_coverage_loop: a looping function's sample-qualified varying is read at every sample
    by constant index from 0, a power of two of them and at least the pipeline's samples, and at
    no computed sample.
2026-11-20 09:53:17 -08:00
Anees Iqbal 23b8d08409 Conformance: no case declares shared-in-system-memory
The runtime's side announces only the codes of the precision notes its states, textures and
sampler states carry. shared-in-system-memory is not one: it was the deleted runtime's notice
for a Shared buffer on a device without unified memory. Every case that read an answer back
through a Shared buffer declared it, so the declaration held on no run.

What goes:
- the declaration in every case, and the prose and measurements that justified it;
- the allowances methods left returning nothing (the trait's default stands), and the helpers
  that only carried the declaration: replay::shared_memory_notice, fresh-contents' copy of it,
  mesh_draws::mesh_notice_allowances, buffer-tails' and buffer-textures' allowances,
  render-depth-stencil-state's pass_notices, blit-encoder-commands' NOTICES and its notices
  field, sparse-mappings' reaches_a_shared_buffer, format-footprints' shared_texture_buffers,
  and the entries of sample-positions' and visibility's notice lists;
- the SharedInSystemMemory kind, its ALL entry and its code;
- compressed-moves' prose about notices of the deleted runtime (staged-texture-copy,
  shadowed-texture);
- imports that only the removed code used;
- docs/FAST-PATHS.md's sentence on the declaration, and coverage.py's count of the helper.

The prose a removed paragraph shared with other notices is kept for those notices. Tests that
counted a case's declarations count what is left; that includes depth-resolve-pairs,
stencil-resolve-pairs and pass-attachment-pairs, whose counts the previous commit left at the
deleted kinds'. A new test, every_kind_is_a_catalogued_precision_note, holds every kind to an
entry of docs/API.md section 9; it fails on any kind no precision note announces.

Verified: cargo fmt --all. The gate runs once over this range.
2026-11-20 09:14:19 -08:00
Anees Iqbal 9a1c8fe6dc metal2vulkan-rt takes the runtime's name: metal2vulkan-runtime, published
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.
2026-11-20 09:10:02 -08:00
Anees Iqbal 7596ec76db Translator: its comments cite no deleted runtime crate or lane
The translator's comments cited the deleted runtime's files and the deleted validation lanes
(runtime_lane::*) as where a measurement or a mirror test lived, and called rt "the new runtime".
The measurements now stand as measured, and "the new runtime" says "the runtime". The crate
docs' last line names metal2vulkan-rt as the Metal-like runtime built on this API, and
scripts/api-docs no longer says the runtime uses the hidden env_vars and repro modules (nothing
outside the crate does).

Left for the translator-switch commit, which deletes what they describe: driver_facts.rs,
profile.rs, derive.rs, lockstep.rs's resident-table domains, the old render descriptor key
(compile/api.rs and its pinned test), DriverDeviation's doc in error/mod.rs, function_storage.rs,
and the Device::new notes in engine_private_render_state, engine_simd and engine_arith.

Comments only, plus the crate-root doc line and one script comment.
2026-11-20 07:59:12 -08:00
Anees Iqbal 5d725aeec7 Delete metal2vulkan-runtime, with every test and script that read it
The cutover deletes the old runtime: crates/metal2vulkan-runtime and its workspace member go.
Nothing in the workspace depends on it any more: the harness and conformance lost their old arms,
and validation dropped its dependency in its own commit.

Adapted in this commit, so no gate reads the deleted tree:
- CI and scripts/linux-gate-ci: the crate's per-feature clippy group, its `-p` in the Windows
  clippy and the test step, and its private-doc-links row go. Packaging needs no edit: the
  workspace's published crates are now metal2vulkan and metal2vulkan-air.
- The published-crates test lists those two; devtools' carried trees and the five nextest groups
  of the old crate's tests go.
- scripts/api-signatures: the crate leaves CRATES, FLOORS and the header, its self-test trees name
  rt (read by the same rules), and the table is re-blessed (the old crate's 4555 rows go);
  api_signatures.rs pins the three crates left.
- scripts/refusal-surface: the old crate's tree and its sections go (RuntimeGap, AppleOnly,
  Problem and the problem enums it forwards to), with their 87 reach rows, the `--delegations`
  verb and the test that counted the old Problem's delegations; docs/REFUSALS.md is regenerated.
  The basis check now holds rt's refusal enums alone, which it already required.
- scripts/api-cost-coverage goes: it measured only the old crate's surface.
- feature_vocabulary.rs: the old crate's two enable tables go; the Khronos and validation tables
  stay held to the vocabulary.
- The conformance coverage generator's by-hand roots read rt instead of the old crate, and
  docs/CONFORMANCE-COVERAGE.md is regenerated (MTLResourceOptions' row, which only the old crate
  modelled, gives way to rt's MTLCommandBufferError).
- scripts/matrix: the harness times the new runtime alone (`--runtime new`), so the rules that
  judged it against the old one go: the new-over-old budget with its floors (floors.tsv,
  gpu-floors.tsv), ceilings, card variance and status table (status.tsv), the frozen arm, the
  base spread and the timing once more it set off, the re-timed pairs, the five creation rounds
  and the old runtime's parked tests and records. A harness row's time is judged as a cross-GPU
  outlier, with its alone runs as before, and the frame and burst rows by their stored
  instruction counts; the creation rows run once, in their own process. docs/VALIDATION.md's
  matrix section says these rules.

Checked locally (python, no build): signatures.py --check and --selftest, refusal_surface.py
--check, --selftest and --missing-basis, coverage.py --check and --selftest, and scripts/matrix's
49 tests pass. The compile gate (fmt, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Windows
clippy for gnullvm and msvc, workspace Rustdoc, packaging, the touched crates' suites on the host
and on lavapipe) runs on this sha as potluck jobs that the landing note names.
2026-11-20 07:01:01 -08:00
Anees Iqbal ac90becd94 Conformance: the old runtime's side goes; rt's side is the only one, held to one ledger
The cutover deletes metal2vulkan-runtime, so the conformance suite stops depending on it.

What goes: the old runtime's side (runtime_side.rs, runtime_work.rs, states.rs) and its runs in
run.rs, report.rs and the command; the cost verb, the timing-coverage verb, `times`' leg of ours,
the `--rt`, `--default-policy`, `--leg`, `--call` and `--cold-shaders` flags; the four split
binaries that drove the old runtime directly; coverage.rs; and the old side's ledger,
known-gaps.tsv. The harness half of the cutover landed separately.

What stays: rt_side is the only runtime side, and `conformance replay` runs it (CI's
`replay --cpu` now replays rt on lavapipe). Its ledger, known-gaps-rt.tsv, is the one ledger, with
the rows it held; a call rt_side does not answer yet stays Failure::unavailable on it, as before.
The cases keep every allowance: the old runtime's Degradation kinds become the suite's own codes
(degradation.rs, the same `metal2vulkan-degrade-<kind>` codes), and the old runtime's Metal value
enums the cases state become the suite's own (values.rs). The old side's descriptor helpers that
rt_side and its tests used move to rt_side/fields.rs. Recordings keep their `costs` and our times
as data; `deny_unknown_fields` still reads them.

The coverage generator reads rt_side alone, and docs/CONFORMANCE-COVERAGE.md is regenerated.
The README describes the suite as it now is.

Checked: coverage.py --check and --selftest locally. The compile gate (fmt, clippy plain,
--cfg m2v_gpu, --cfg m2v_cpu_icd and for aarch64-apple-darwin, workspace Rustdoc, the suite on the
host and on lavapipe, and the lavapipe replay) runs on this sha as potluck jobs that the landing
note names.
2026-11-20 06:19:03 -08:00
Anees Iqbal a9acc24aa0 Coverage map: rows rt and the translator answer through their own calls, per-row sizes, refusals by rt's names
The fast switch to metal2vulkan-rt marked missing every runtime row whose old counterpart rt
does not hold under the same name. rt's and the translator's Rustdoc answer more of them:
- 28 runtime rows are implemented: the 9-argument texture and buffer-to-texture copies and the
  options form with no option, `enqueue`, `commandBufferWithUnretainedReferences` (the same call
  as `commandBuffer`), every `withRange:` setter of both encoders (a loop of the single setter),
  `useResources:count:usage:` and `useHeaps:count:`, both encoders' memory barriers,
  `newBufferWithBytesNoCopy` (Device::import_host_memory and a buffer in its block),
  `MTLCreateSystemDefaultDevice` (Device::new), `MTLCopyAllDevices`
  (Instance::physical_devices), a texture's `storageMode` through its descriptor, and
  `renderPassDescriptor` (RenderPassDescriptor's Default);
- 23 translator rows are implemented: MTLLibrary and MTLFunction by the translator's Library
  and Function (from_metallib, function, functions, library_type, install_name, properties,
  function_constants_dictionary, reflection), and MTLFunctionDescriptor by FunctionDescriptor;
- maxBufferLength and a texture descriptor's resourceOptions are the consumer's;
- 53 missing rows take their own size and note: encoder calls (S for loops of existing calls and
  store action options, M for stride binds and indirect draws, L for vertex amplification),
  render pass fields, a texture buffer's descriptor and alignment, function options;
- refusals are named by rt's types: Gap::IndirectCommandBuffers, Gap::KernelInput and
  Gap::DrawInput for function tables, RenderPipelineKind::VertexAmplification and Tessellation,
  RenderPassKind::TextureType and NoAttachment, Gap::TextureBuffer;
- 629 notes no longer name the old runtime's items (RuntimeGap's variants, FeatureRow's rows,
  its compiled_reflection, function_handle, allocated_size, new_library_with_source and
  BlitOption).
coverage.py's group names follow (buffers, encoder calls, command buffer options, function
options). docs/METAL-COVERAGE.md and docs/CONFORMANCE-COVERAGE.md regenerated: implemented
593, missing 1118, out of scope 424.

Verified: every implemented row resolves by the test's own rules in its crate's sources (a
script run of them: runtime 237, translator 356, none missing); every `Type::name` a note names
is held by rt or the translator (14 checked; the same check over the table before this commit
finds 26 it does not hold). The compile job is named in the hand-off.
2026-11-20 06:02:37 -08:00
Anees Iqbal 8871d40bdf Validation: delete the old runtime's lane, parity harness, player backend and old-only tools
The old runtime goes at the cutover, and validation's old-runtime-only parts go with it:

- runtime_lane/ (the old runtime's device tests) and the Metal predication probe that pinned
  its streams. Its one rt-based module, the replay player's rt device tests, moves to
  replay/rt_replay.rs with its three old-runtime comparisons cut (the census test on both
  runtimes goes; its rt half is its own test) and a pipeline cache directory of its own in the
  scratch root.
- parity/ (Metal programs compared with the old runtime alone) and its Metal records under
  corpus/observations/parity.
- The player's old backend (replay/old_runtime): command-replay always plays on the new runtime,
  and `--runtime` is gone.
- corpus-draw-ab and format-scout (old-runtime-only tools), scripts/making-bench (corpus-draw-ab's
  bench), and the eleven public fixtures only the deleted sources used.
- The nextest overrides of runtime_lane tests, the queue-plan test group and the few-channels
  profile; the matrix's device-test filter now names replay::rt_replay.
- VALIDATION.md, REPLAY-STREAM.md and validation's README lose the lines of what went.

The candidate executor's runtime path, and validation's dependency on metal2vulkan-runtime, go in
the next commit.
2026-11-20 05:42:33 -08:00
Anees Iqbal 220473aafd Coverage map: the runtime's counterparts are metal2vulkan-rt's, and the test reads rt's sources
The old runtime is being deleted, and the coverage map's 649 runtime rows named its items. Every
runtime row now names metal2vulkan-rt's counterpart or none:
- 180 rows whose counterpart rt holds under the same name keep it;
- 29 take rt's name for it: DeviceProperties fields that are Device methods, the heap placements
  that are Device::new_heap_buffer and Device::new_heap_texture, the lod-clamp and stencil
  setters, the dispatch type taken by CommandBuffer::compute_command_encoder, and a texture's
  getters through Texture::descriptor;
- 73 are out of scope as rt's README gives them to its consumer: labels, MTLHeap and its
  descriptor, MTLBinaryArchive and every descriptor's binaryArchives, a resource's options, a
  texture's parent and shareable getters, a library's and a function's device;
- 367 are missing, each with a group, a size and a note: indirect command buffers (71), function
  tables, handles and dynamic libraries (38), mesh (33) and tile (26) pipelines and their calls,
  encoder calls (59), argument encoders (24), libraries and functions as runtime objects (25),
  and smaller groups. Their sizes are the group's, to be refined.

coverage.py names metal2vulkan-rt as the runtime and gains the new groups;
metal_coverage.rs reads crates/metal2vulkan-rt/src. docs/METAL-COVERAGE.md and
docs/CONFORMANCE-COVERAGE.md regenerated from the table (implemented 542, missing 1171, out of
scope 422).

Verified: every implemented runtime row resolves in rt's sources by the test's own rules (a
script run of them over the tree: 209 of 209); the compile job is named in the hand-off.
2026-11-20 05:28:07 -08:00
Anees Iqbal 54bf558a74 matrix: the batched harness job tidies as the node's last planned job; a once-more timing lays out again
Follow-up to ef5b888c2f: its unit test expected the batched harness job not to tidy, but it is the
node's last planned job, and the once-more timing is decided only after it. The once-more job lays
the tree out again (potluck pushes the carry's mirror again for its dispatch) and tidies as well.
The docstring says so and the test expects it. Verified: scripts/matrix tests in a potluck job.
2026-11-19 22:39:16 -08:00
Anees Iqbal ef5b888c2f matrix: a node's harness timings in one exclusive job, and its re-times in one more
What: gpu_node times all of a node's GPU legs in ONE job that holds the node alone (--exclusive),
the legs in turn, each still timing its one GPU with nothing else running; the legs whose old
runtime spread past results.BASE_SPREAD are timed once more together in one more such job. retime
does the same for a Linux node's outlier legs (a Windows node's leg stays its own job). A job's
timeout is its leg count times one leg's: size() keeps a run's minutes per leg.

Why: the supervisor measured homelab GPU jobs waiting 8.6 job-hours an hour from 20:15 to 22:30,
29% of it behind exclusive runs (5% before). The matrix round at 1ae9003019 took 10 exclusive runs
of 2-6 min (ms01 3, um870 2, gem10 2, um790 2, the mini 1), and each drained its node first. One
exclusive job per node per round drains each node once.

Verified: scripts/matrix/test_matrix.py in a potluck job (see the landing note).
2026-11-19 22:38:30 -08:00
Anees Iqbal 6e010b843f rt lock budget: a test that counts nothing says so, and the matrix shows its leg as not counted
A lock-budget test on a node that names no M2V_LOCK_EVENT returned early and passed, printing a
LOCKS-UNMEASURED line the matrix's filter dropped with the rest of a passing test's output. The
gem10 and um870 legs passed that way at 1ae9003019 while every leg that counted failed, and the
report could not tell them apart.

Each budget test now names its record (Locks::open takes its key) and prints, where it counts
nothing, 'LOCKS <test>: not counted, the node names no M2V_LOCK_EVENT' and
'M2V-MATRIX uncounted lock_budget/<key>'. The matrix keeps that line as it keeps a record
(KEEP matches 'M2V-MATRIX '), results.parse_suite collects it, leg_entry stores the leg's keys
(results.leg_uncounted), and the leg's verdict line ends in 'not counted: <keys>'. No node
setting changes.

Verified: scripts/matrix's unittest suite, 87 tests, OK locally, with the new
UncountedTests case (a passing test's line through matrix.KEEP, parse_job and verdict_line).
2026-11-19 21:12:49 -08:00
Anees Iqbal 09eefd5be8 matrix: an argument the usage does not name prints the usage and starts no run
`scripts/matrix/matrix run --help` took --help as an option it ignored and started a full run at
development's tip (stopped by hand after two minutes, before it dispatched anything). main() now
walks its arguments: run takes one SHA, --legs LEG,... and --dry-run; show takes one SHA; anything
else (--help, -h, a misspelt option, a second SHA, --legs without its list) prints the usage and
exits before git or a run is touched.

Test: ArgumentTests in test_matrix.py; the first test calls run_cmd under the old main().
2026-11-19 19:33:11 -08:00
Anees Iqbal a69cb43486 translator: threadgroup memory reads zero until the program writes it, on Device::from_queries
On the new runtime's profile every Workgroup variable that holds a
function's threadgroup memory has a null initializer: the threadgroup
arena (declared threadgroup variables, [[threadgroup(n)]] regions and the
imageblock, memory::arena) and the typed threadgroup objects
(lower::access::local). One form on every device: the Vulkan 1.3 floor
requires shaderZeroInitializeWorkgroupMemory; a profile without it
refuses such a function, Unsupported{ZeroedThreadgroupMemory}.
Device::new's profile is unchanged (ProfileFacts::ROWS keeps
ThreadgroupStart::Unwritten), so the old runtime's SPIR-V is too.

The translator's own Workgroup words get none, as it writes each before
any read: the emulated SIMD-group scratch and vote word, the object
stage's mesh grid, the mesh wrapper's count and staged indices, the
emulated payload and the binder's scan and merge kernels.

The builder refused a null of an array whose length is a specialization
operation (spirv/ir/constant.rs, ConstRule::NullType); an arena with
regions, and the emulated scratch, have such lengths. spirv-val's
IsTypeNullable reads an array's element type alone, so the builder now
takes it. That refusal is what made rt report a probe's emulated variant
as missing (Gap::PartialSimdgroups after Later::lower's Refused).

The profile verifier also refuses a Workgroup initializer other than a
null (VUID-StandaloneSpirv-OpVariable-04734).

docs/API.md states the form with Metal's words on threadgroup memory;
SEMANTICS_VERSION 2192; REFUSALS.md and api_signatures regenerated.

Tests: engine_zeroed_threadgroup (null initializers through from_queries
on four profiles, zeros on the interpreter in both orders and two
threadgroups, the emulated variant's arena zeroed and scratch not,
Device::new uninitialized, the vk12 floor refused),
a_specialization_sized_array_has_a_null, a_workgroup_initializer_is_only_a_null,
the profile facts' fingerprint.
2026-11-19 13:52:35 -08:00
Anees Iqbal 1d09ff5d10 scripts: the gate scripts match their lists in the shell, not through a piped grep -q under pipefail
scripts/linux-gate-policy's overlaps() piped printf into `grep -qxF` under `set -euo pipefail`.
bash line-buffers its stdout, so grep can exit at its first match while printf is still writing;
printf then ends with SIGPIPE, pipefail gives the pipeline its status, and a match reads false.
The overlap went unseen and the policy accepted a scratch directory inside the checkout:
linux_gate_policy::a_scratch_directory_may_not_overlap_a_protected_path failed so on a loaded
msi (53490 at b14260ea79) and passed alone (53581). overlaps() now matches the lists with a
`[[ ... == *...* ]]` test. scripts/linux-gate's bsdtar check had the same shape
(`tar --version | grep -q bsdtar`) and is matched the same way.

A new integration test, no_quiet_grep_under_pipefail, reads every script under scripts/ that
sets pipefail and fails on a quiet grep after a single pipe, with a unit test of its detector.
Verified: see the check job named in the landing.
2026-11-19 11:19:24 -08:00
Anees Iqbal 6de7e37ba5 replay judge: a finished rt play prints its judged totals, held equal to the base
The replay player prints, on the new runtime, the matrix's judged metrics of a play: one
`M2V-MATRIX metric replay-rt/STEM/RANGE/NAME N` record per metric, `N` the play's executed total
(`Report::total`) of submissions, passes, barriers less `texture_clear_barriers`, bytes copied and
pipelines created, and of the new textures zeroed, the clears and the zero-initialized ones as one
count and their bytes as one. The split between a clear and a zero-initialized texture follows
where the pool places it and may differ between two plays of one stream, so the two are judged
summed, and the barrier after an upload's clears is left out of the barriers. A play that did not
finish its range (it stopped, or ended before frame F's present where it plays to F) or whose
backend skipped anything prints none (`judged_records`).

The matrix's rule holds a `replay-` metric equal to the base's, failing a change either way, and
fails a leg that lacks a record its base has: a short play does not pass (`EQUAL_METRICS`). The
counters' docs say the split may differ between two runs of one program; VALIDATION.md and
REPLAY-STREAM.md say what the judge does.

Tests: the judged totals on the fake backend (the net barriers, the summed zeroings, a counter
not reported as 0, no other counter, the range in the key), a short play, a stopped one and a
skipping one printing nothing, and the rule's equality and missing-record cases in
test_results.py. Verified: cargo fmt; `python3 -m unittest discover -s scripts/matrix` (84 tests,
OK). The Rust build, clippy and tests run in the checks dispatched at this commit.
2026-11-19 11:15:33 -08:00
Anees Iqbal 3955d3bd01 docs: CONFORMANCE-COVERAGE re-derived for the running-signal case's declaration; the generator names NewRuntimeAccepted
The running-signal case now loosens two sites with Loosening::AnyOf on rt's
run, so the derived counts move: 11 SDK items move from 'no case reaching it
loosens anything' to 'loosens some site', and the tolerances grow from 15 to
17. The generator mapped each Justification constructor to its variant except
new_runtime_accepted, and that is the first one a case module names. It now
maps it to NewRuntimeAccepted.

Verified: the_conformance_coverage_document_is_what_the_sources_derive failed
in m3-max-52651 before this commit. coverage.py --selftest passes.
2026-11-19 08:21:53 -08:00
Anees Iqbal 6fccd785c8 matrix: the 780M's create_64MiB/first_take row leaves the status list, within its limit on every leg
Round 940f37188b (10 of 11 legs pass; the UHD 630 venue unstable) lists the row among the status
entries within their limits: within its limit on every leg of its card that timed it. gem10's
leg (52484) read 1.004 on the five interleaved samples (rt 6829.1 against old 6802.4 us medians)
and um870's 1.00 (6969.6 against 6987.5). The row's earlier 1.08 (round 391db1e57a) was one
reading.
2026-11-19 08:20:05 -08:00
Anees Iqbal b74e8387d7 matrix: the UHD 630's sampling_deep_64x64x16 row leaves the status list, within its limit on every leg
Round 391db1e57a reported the entry stale: the row was within its limit on every leg of its card
that timed it. Ruled by the planner on 2026-11-19 with the round's other readings.

Verified: matrix-unit.sh.
2026-11-19 06:45:09 -08:00
Anees Iqbal 8a2a6d71c4 matrix: the Iris Xe's alu and long_4cb and the 3090's 64 MiB creation take ruled ceilings; the Windows rt suite room
Ruled by the planner on round 951b93a645:
- 8086:a7a0 alu and long_4cb: the rt README's recorded Gen12 gap under the biased slot word (a
  change before an identical loop moves a kernel -18% to +14%, mechanism not shown; neutral arm
  m3-max-51663). Medians 1.139 and 1.141 (m3-max-51733).
- 10de:2204 create_64MiB first_take and device_first: the 2080's known gap, the driver's
  allocation of host-visible system memory against old's import of its own pages. One line for
  both 3090s at the higher card's medians, 2.841 and 1.943 (um870, m3-max-51756); ms01 reads
  2.359 and 1.673 (m3-max-51747).
The ruling named 1.14, 2.84 and 1.94. A ceiling under its row's own median fails the row at once,
so each is rounded UP to cover the median, as every earlier ceiling was (1.877 to 1.88): alu
1.14, long_4cb 1.15, first_take 2.85, device_first 1.95. The planner is told.

The Windows rt suite's default room goes from 4 to 8 GiB. In the same round its run on the UHD
630 went over 4 GiB in 34 s (m3-max-51691, exit 137). The retry at twice the room is capped at the
kind's default, so a kill at the default was never retried and the leg reported no suite.

Verified: the matrix unit tests run after landing (matrix-unit.sh).
2026-11-19 05:18:26 -08:00
Anees Iqbal df54c9a8e8 matrix: the RX 550's constant rows leave the ceilings, both under old in round 951b93a645
The planner's rule for these two ceilings (1.20 each): the next round's ratio lowers them, and a
row at or under 1.0 leaves the list. In the round at 951b93a645 (jobs m3-max-51721, m3-max-51731,
gem10's RX 550, RADV POLARIS12, Mesa 26.2.6) the wall ratios are constant_managed 0.956 and
constant_private 0.953, with GPU p50 1972.6 us vs old 2094.4 us and 2013.8 us vs old 2101.8 us.
Both rows are within HARNESS_BUDGET, so the leg judges them without a ceiling.

Verified: the only test that names the RX 550 leg patches HARNESS_CEILINGS to {}; the matrix unit
tests run after landing (matrix-unit.sh).
2026-11-19 05:08:48 -08:00
Anees Iqbal 4913a812df conformance: the coverage document counts a field-by-field facts type by field, and rt's label rows
A facts call running said nothing of which of its fields were compared, so a field the new
runtime's side refuses read as covered beside its call. The coverage document gains a section
that counts each facts type answering field by field (a struct with a crate::case::Field field)
by field: its fields, the ones a side may refuse, the leaf each records at (read from the type's
node), and the new runtime's ledger rows that refuse each at that leaf, of the cases whose module
calls a Side method answering the type. A Field whose node records it at no leaf this can read
stops the generator.

The six pipeline descriptor cases' label rows (pipeline-descriptor-* and compute-descriptor-*,
every venue: the consumer's own, label) go into known-gaps-rt.tsv. Their binaryArchives rows wait
for memory2's every-stream count of binary archives, which their head will cite.

Verified at this commit: coverage.py --check passes on the regenerated document; the build, the
suites and the lavapipe replays run in the lane's check job.
2026-11-19 04:44:16 -08:00
Anees Iqbal 118b5b530d matrix: the RTX 2080's 64 MiB creation rows take their ruled known-gap ceilings
The planner ruled create_64MiB/first_take 2.30 and create_64MiB/device_first 2.14 on 10de:1e87,
from the medians of the alternated run m3-max-51634 (base 7cda47f536 and head 296e110c0f, the
higher of the two): the driver's own allocation of 64 MiB of host-visible system memory takes
about 12.5 ms where the old runtime imports pages it mapped itself in about 5.8 (m3-max-48212),
and it stays the driver's memory because an import as the allocator costs every submission on
every AMD card. row_limit applies HARNESS_BUDGET on top, as for the 1.40 lines. The 3090 has
no line yet: it takes one from its own rows.
2026-11-19 04:12:30 -08:00
Anees Iqbal a76d7f1eea matrix: a harness row out in both passes is judged by its lowest level, re-timed alone in fresh processes
A host can give each process a wall-time level of its own. On the RTX 3090 at homelab-um870-1,
sampling_deep_4x16x252 took about 37 or about 80 us a run, one level a process, at equal GPU
time and CPU instructions, and the old runtime drew the levels as well (rounds b0c08e51b5,
7cda47f536 and 6b535f55c9). The outlier's second pass is already a fresh job, so a fresh
process, but two passes both landed high in 6b535f55c9 and failed the leg on a level the code
does not set: m3-max-51629 timed the row in 39 processes over every commit of the range at 36.8
to 40.0 us.

Now the second pass of a leg with a harness row's cross-GPU outlier also runs each such row
(results.alone_rows, at most RETIME_ROWS, the furthest out first) alone in RETIME_PAIRS pairs,
old then new, then new then old, every process on a fresh driver cache and store, its times kept
as harness-alone/<row>/<pair>/<runtime>. time_outliers judges a row out in both passes by the
lowest of the new runtime's samples (both passes and the alone runs) over the lowest the base
recorded of it: still out, it fails, "high in every process"; brought back, it is parked with
every sample, "levels, no verdict", so a high level grown more frequent stays visible. The alone
keys are never judged on their own. GPU-time rows and counts are unchanged; no ceiling moves.

Verified: python3 test_matrix.py and test_results.py (potluck job named in the landing).
2026-11-19 04:12:19 -08:00
Anees Iqbal e9c324a8f4 conformance: the decode cases' bound loosens metal2vulkan-rt's run alone; the old runtime's rows are as they were
The planner's ruling on the twelve old-side RADV rows f1aa961e34 added: the frozen old runtime
takes no new ledger row, so the case's notice-justified bound is scoped to the new runtime and the
old runtime's side keeps what it had, which was no bound.

A new justification, Justification::NewRuntimeNotice (Justification::new_runtime_notice), holds
on metal2vulkan-rt's run as a degrade notice does, where the run announced it; on the old
runtime's run it holds nowhere and faults nothing (Unjustified::OldRuntime, which faults_the_case
excludes beside VenueCompresses), so the site compares as if the case loosened nothing. The venue
says which side ran (Venue::new_runtime: true on the rt side, false on the old runtime's and on
Metal's), and replay hands it to the comparison (Offered::on_new_runtime). compare's check that a
named justification exists treats it as it treats a notice.

The ten BC1 to BC5 decode cases loosen each round's texels by NewRuntimeNotice
(compressed-texel-decode). known-gaps.tsv is the ledger as it was before ae452ee883: the twelve
RADV rows go, and the 89 BC rows that commit's series removed (lavapipe 44, the RTX 5080 Laptop
40, RADV BC4 and BC5 5) and their comment are back, since the old runtime's sites differ again
as they did.

docs/API.md: the catalogue says the cases' bound is the new runtime's alone.
scripts/conformance-coverage: the justification vocabulary reads new_runtime_notice;
docs/CONFORMANCE-COVERAGE.md regenerated.

Test: tests::a_notice_scoped_to_the_new_runtime_leaves_the_old_runtimes_site_its_one_row (the old
runtime's site is its one divergence, unfired for OldRuntime; rt's announced; rt without the
notice faults).
2026-11-19 02:01:42 -08:00
Anees Iqbal fd065160c5 matrix tests: the excess-void test expects its rows in row order
The rows are judged and listed in key order (alu before create_state/first); 50745 failed the
new test on that order alone. Verified in the matrix unit job dispatched with this commit.
2026-11-19 00:59:05 -08:00
Anees Iqbal 2fe8ac55c1 matrix: a host-time row past its limit by less than old's own move is VOID for the round
The frozen arm's second rule, beside FROZEN_DRIFT (the planner's ruling of 2026-11-19, reading
(a)): a row judged by its host time, and not by re-timed pairs, whose excess over its limit
(ratio over limit, less 1) is smaller than its own old time's move from the base in the round
is VOID, since the old runtime's drift alone could carry it there. GPU-time rows and rows judged
by their re-timed pairs are never voided by it. Neither rule makes a row red; the paired re-time
judges a red row.

harness_budget parks such a row as VOID with its excess and the move; the report's table reads
VOID for it (over_lines, through excess_voids); each leg's lines name the rows each rule voided
(print_leg). docs/VALIDATION.md states the rule.

The venue-wide reading was withdrawn: the frozen arm's largest moves sit on cold creation rows
(create_4KiB/device_first +88% on one leg of 7cda47f536) and would void nearly every host-time
row.

Verified: test_a_host_time_row_past_its_limit_by_less_than_old_s_own_move_is_void, in the
matrix unit job named in the next commit or the landing message.
2026-11-19 00:58:05 -08:00
Anees Iqbal 4fa157187f matrix: status.tsv drops the 14 entries whose rows were within their limits
The round at 7cda47f536 named 14 entries for removal (results.entries_within): every row of each
was within its limit on every leg of its card that timed it. Removed by exact card and row: ten
of memory2's create_* records, three of the planner's 2026-11-18 gaps (a7a0 create_state/first,
and 1e87 and 2204 create_private_16MiB/first_take; 1e87 frame_5cb), and identity's a7a0
sampling_deep_64x64x16. The known gaps they cite stay in the runtime guide; a row that goes over
again reads NEW, as the file's rule says.

Verified: the round's report in ~/.cache matrix log for 7cda47f536 lists exactly these 14.
2026-11-19 00:52:09 -08:00
Anees Iqbal 67d621ce0b matrix: a Linux job's tree carries Metal's observations, which the stream device tests read
The GPU legs' tree was laid out without any observations, on the reasoning
that nothing the legs ran read them. Since b28b4975b5 the legs also run the
replay player's stream device tests, and two of them
(a_pointer_written_at_a_recorded_address_reaches_its_node and
a_private_buffer_takes_its_bytes_before_a_dispatch_and_is_compared_after)
take a public case's Metal output from the committed Metal observations. Every
Linux rt leg of the matrix at 7cda47f536 failed both with NeedsMetal { gap:
Missing } (jobs 50451-50454), and nothing else.

The tree now carries corpus/observations/metal (37 MiB of the 1.5 GiB) and
still none of the other backends' observations.

Verified: test_matrix's new
test_the_tree_carries_metal_s_observations_and_no_other_backend_s; the
legs' re-run follows on development.
2026-11-19 00:15:35 -08:00
Anees Iqbal 7cda47f536 matrix: an owned row fails only 3% past its owned ratio; a one-pass outlier is timed again
An open record in status.tsv now names the ratio its row was owned at (the new `owned` column,
filled for the existing entries from the matrix note of b0c08e51b5). The harness budget names a
row past its limit that an open record holds and fails nothing while the ratio it is judged by,
after its re-time, is within 3% of the owned ratio (results.OWNED_WORSE); more than 3% worse, the
row fails its leg again. A known gap's row fails only past a ceiling a ruling gave it
(HARNESS_CEILINGS), as before; one without a ruled ceiling is listed and fails nothing. The
report's table shows the owned ratio and whether the row is within it, and after the table names
every open record and gap whose rows are within their limits on every leg of their card that
timed them, for removal (results.entries_within).

A cross-GPU outlier of a harness row's time on the new runtime no longer fails a leg from one
pass: once every leg is in, the legs with one have their harness timed once more (Run.retime: a
node's legs in turn, the nodes at once, each job holding its node alone), and an outlier fails
only where both passes agree (results.time_outliers with the first pass); one that only one pass
has is parked and named. Outliers of other records fail at once, as before.

Verified: the matrix's unit tests (test_results.py, test_matrix.py), run from scripts/matrix in
a potluck job; new tests cover the owned verdicts (within, worse, re-timed, a first take), the
gaps with and without a ruled ceiling, the removal list, the two-pass outlier rule and the
re-time's jobs.
2026-11-18 23:45:49 -08:00
Anees Iqbal b28b4975b5 matrix: the GPU legs run the replay player's stream device tests; status rows lose closed owners
The GPU legs' archive held metal2vulkan-rt alone, so the replay player's
stream device tests (metal2vulkan-validation's runtime_lane::replay_streams,
17 on the old runtime, and runtime_lane::rt_replay, 24 on the new) ran on
lavapipe only. A break in the player or a runtime's stream path that only a
GPU shows waited for a lane's play of a recorded stream to find it, as the
old arm's pin stop did. The archive now holds the validation crate too, and a
leg runs the runtime's tests and those two modules (DEVICE_TEST_FILTER). The
Windows leg is unchanged until the validation crate is shown to build there.

status.tsv, by the planner's ruling of 2026-11-18:
- 10de:1e87 frame_5cb is a gap row: the runtime guide's known gaps carry it
  (crates/metal2vulkan-rt/README.md, NVIDIA's latency per submission).
- 8086:a7a0 frame_5cb and 10de:2204 create_state/first are within their
  limits; their closed lanes' names are cleared (a row gets an owner when it
  goes over).
- identity's rows wait for their card's native table, the guest-visible test;
  "Iris swing unresolved" was stale.

Verified: see the check job named in the landing message (unit tests of the
matrix script, the archive built with both packages under --cfg m2v_gpu, the
filter's selection listed, and the selected tests run on a GPU).
2026-11-18 23:14:02 -08:00
Anees Iqbal 6c002974ed rt known gaps: NVIDIA holds a take's first submit for the block-maker's allocation; the ring's wait is the link's copy
NVIDIA's first take of a new 16 MiB Private buffer. On the 3090 and the 2080 the first take ran
1.10 to 1.34 times old's. A probe on ac1896537f split it. The fill rides in the take's own
submission: one vkQueueSubmit2 with one submit info, the upload leading the command buffer, and
23-26 us on the GPU. The added time is that submit call itself: 603 us on the 3090 and 579 us on the
2080, against a median of 2 to 3 us. The call began 67 us (75 us) into the block-maker's next 16 MiB
Private vkAllocateMemory of 661 us (647 us), which the take had set off by leaving the class under
8 MiB free, and returned 9 us (7 us) after that allocation. Driver 620.70.06, um870's 3090 and
um790's 2080, jobs m3-max-50032 and 50033 (probe 71841cbe6b).

The planner ruled it a known gap, not a fix: the hold is bounded by one allocation per block made,
which is the time the take would spend allocating on its own thread, and the only dodges are a
timer or an idle guess. So:
- the rt README's known gaps of memory blocks say it;
- 10de:1e87's and 10de:2204's create_private_16MiB/first_take take a ceiling of 1.40;
- their status rows read gap.

The capture ring's wait. A probe play of one consumer's stream on the 3090 (m3-max-50027, probe
db1d5c1929 on ac1896537f) timed each of 258 ring-fulls. The ring-full is 63.3 MiB. Its copy took
33.4 ms on the GPU, 1.99 GB/s, of the 33.6 ms the commit waited (medians). The queue behind earlier
work took 0.03 ms, the submission 0.04 ms and the wake 0.13 ms. The card sits in a Thunderbolt 3
enclosure whose link runs at 20 Gb/s (boltctl). The README's known gaps now give the numbers.

Verified: the numbers above, from those jobs' probe lines.
2026-11-18 21:50:53 -08:00
Anees Iqbal 81b7fff5ff matrix: the harness's rows run with the validation layer disabled by the loader
Every harness and matrix instruction row is meant as a release build without the validation
layer (the planner's budget form). By reading, nothing enabled the layer for the harness's
timing jobs: the harness is a release binary, rt's Instance enables no layer, and only the device
suite points the loader at the carried layer. This makes it hold by construction: the harness
jobs export the loader's documented VK_LOADER_LAYERS_DISABLE (loader 1.3.234 and later) naming
VK_LAYER_KHRONOS_validation alone, since Mesa's device-select layer picks the card. The run's
summary says so once.

Verified: the scripts/matrix unittest suite, 70 tests OK, run locally.
2026-11-18 20:03:19 -08:00
Anees Iqbal 4cb685e075 matrix: frame rows on a node whose CPU clock follows the load are judged by instructions per frame
On the Ryzen 7 7840HS nodes the cores' mean clock tracked the frame rows' pass time (r = -0.88
over twelve passes of one build on the Radeon 780M, job m3-max-49287), so the host time of a
frame row measures the clock its passes found, and the legs there read VOID or venue unstable on
it. The planner's ruling: on such a node the frame rows of every card it hosts are judged by the
new runtime's instructions per frame, their time kept as a cross-GPU outlier check.

results.CLOCK_FOLLOWS_LOAD lists the CPU by potluck's cpu_model fact, which the leg's note now
keeps (`cpu`). There, harness_budget names a frame row's time and judges nothing on it (the
instructions gate judges it; a latency from idle row by its workload's count), the leg re-times
none of them (RETIME_SELECT's skipre, results.retime_skip), base_spread leaves them out, and
over_rows lists only their counts. time_outliers is unchanged and still judges their time
across GPUs. The verdict line names the rule that judged each row. docs/VALIDATION.md states it.

Verified: PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s scripts/matrix, 70 tests OK
(new: the budget, re-time, spread and over-table reading on and off the listed CPU; the verdict
line's rules; the harness job's skip pattern).
2026-11-18 19:03:54 -08:00
Anees Iqbal dfa92ba821 matrix: the creation round's device totals are kept apart, as its gauges at drop already were
Every harness process prints its device's totals over the device's life
(`M2V-MATRIX metric harness-<runtime>/device/<total>`, since ebfc68ebb7) once its workloads have
run. The first creation round's processes (5849a7f029: one per runtime, their output kept whole)
are harness processes of their own, so each printed `harness-<runtime>/device/stamps_not_available`
a second time beside the other rows' process, and every GPU leg of matrix 749c939440 failed on
"record metric harness-new/device/stamps_not_available: recorded twice". The device's gauges at
drop had the same double and were already kept apart by CREATES_APART, which renamed only gauges.
CREATES_APART now renames every record of the device's life, of any kind, to
`harness-<runtime>/creates/device/...`, so the totals take the same road as the gauges and each
key is recorded once. A base without the renamed keys judges nothing on them.

Verified: the matrix's Python tests (test_results, test_matrix) pass, locally and in the job
named in the landing message; the creation test now feeds a device total through both the other
rows' process and the creation process and asserts each key once; with the gauge-only program it
fails on the same "recorded twice" line the matrix printed.
2026-11-18 17:41:12 -08:00
Anees Iqbal e987f3147f matrix test: the node's ready carry is the build's (made, why), as gpu_node reads it
Verified: the matrix's Python tests in the job named in the landing message.
2026-11-18 17:27:11 -08:00
Anees Iqbal e04254de14 matrix: a timing leg names its old runtime's own spread, and is timed again past 10%
The planner's rule for timing legs: each prints the BASE arm's own spread across its passes;
past 10% the leg is VOID and is timed once more at another time, and a leg VOID twice is
reported as "venue unstable", never as a red row. In a matrix harness leg the base arm is the
old runtime, and the rows it times more than once in a leg are the re-timed ones: its main run
and each re-timed pair's (RETIME_PAIRS). results.base_spread takes, of each such row, the old
runtime's largest time over its smallest, less 1, on the time the row is judged on (its GPU time
where gpu_judged), and the largest of the rows; a creation row's first samples are cold, spread
by nature and judged cold against cold, so none counts; with no row re-timed it is n/a and voids
nothing.

Past BASE_SPREAD (10%), harness_budget names every problem the leg's times would raise VOID and
parks it, and the problems of its records and counts stand; the over table reads VOID on each of
the leg's times. The matrix (Run.timed_again) times such a leg's harness once more, after the
node's other jobs (the Windows host's right after its own), and judges that timing. The leg's
line names its base spread and what came of a first timing; a leg VOID in both reads `venue
unstable`, verdict UNSTABLE, which the run counts apart and which does not fail it. A node's last
job is now the last one it actually runs, the re-timing included, so the tree and the carry's
mirror are tidied after it.

Verified: the matrix's Python tests, new ones: the spread on time and on GPU time, n/a with no
re-timed row, a cold first sample never counting; a leg past it failing on its records alone and
the same row failing within it; the verdict line's spread, n/a and UNSTABLE; the over table's
VOID; and a node's harness timed once more after its other jobs, once only, its last job the
tidying one. In the job named in the landing message.
2026-11-18 17:27:11 -08:00
Anees Iqbal 7e33975f58 matrix: NVIDIA's first take of 64 MiB is judged on the new runtime's own part
The planner's ruling on create_64MiB/first_take on NVIDIA's legs: the gate changes, not the
ceilings. From the next round on the row is judged on the new runtime's own part, its first take
less the time inside the driver's calls the same process recorded, against the old runtime's whole
first take, each the median of the five creation processes; the driver's part and the whole ratio
are shown beside it, with the gap's name. An own part past the row's limit (1.03 times its floor,
the parity every row gets) fails the leg as a regression of its own.

The driver's part is `first_allocation_total`, the new runtime's `vkAllocateMemory` time on the
harness's thread in the same take, kept from every process already (FIRST_KEEP). rt counts no
`vkMapMemory` time, so the map stays in the own part, the stricter reading. On 5f2494bfc5 the
allocation took 9902 of the 2080's 12521 us first take (old's whole 5668 us), and 14164 of 17013
us and 10013 of 15066 us on the 3090's legs (old 4865 and 6166 us), against 954-1061 us on RADV.

The table OWN_PART_GATES names the row and its driver's part for the two NVIDIA cards the matrix
runs, which takes the place of their ceilings (1.88 and 2.26), deleted with their status.tsv gap
entries: the row is now over only when its own part is, which is a regression, not the gap. The
over table names such a row's kind `own part`. docs/VALIDATION.md says how the gate judges.

Verified: the matrix's Python tests, two new: the gated row within on its own part though 2.4
times old whole, past it as a regression, a process without its driver's part failing, an extra
leg held to its card's gate and another card's row judged whole; and the over table listing the
row by its own part alone. In the job named in the landing message.
2026-11-18 17:14:56 -08:00
Anees Iqbal 749c939440 matrix status: the first interleaved round's rows over their limits take their owners
The round at 5f2494bfc5 is the first with both runtimes interleaved, the noise meter's base, so
its 39 rows over their limits are owned here, by the owners main named:

- memory2: the creation rows that time block allocation or a take, 12 rows: create_64MiB on the
  XTX, 2080 and 3090; create_64MiB/first_take on the 780M (both), RX 550, XTX and Iris Xe;
  create_private_16MiB/first_take on the 2080, 3090, UHD 630 and Iris Xe.
- entry: create_state/first on the 3090 (both of its legs).
- identity: the translator's GPU rows, 12: wide_bindings on the RX 550, sampling_deep_64x64x16 on
  the UHD 630, and on the Iris Xe constant_managed, constant_private, constexpr_sampling, the five
  sampling_deep rows, threadgroup_scan and waves, noted "Iris swing unresolved".
- Known gaps by the planner's rulings of 2026-11-18: create_64MiB/first_take on the 3090 (as
  before) and on the 2080, the same NVIDIA large Shared allocation: in this round the new
  runtime's allocation calls (create_64MiB/first_allocation_total) took 9902 of the 2080's
  12521 us first take, as they took 14164 of 17013 us and 10013 of 15066 us on the 3090's two
  legs, against 954-1061 us on RADV; and create_state/first on the Iris Xe, the meter's artifact.

The notes that waited for this round go: the 64 MiB rows on the four RADV cards were "unjudged
until the first interleaved round", and the Iris Xe's GPU rows had "one time-boxed investigation
after the first interleaved round"; both are now open records. The Iris Xe's vote_loop and
zero_products keep their card's variance (CARD_VARIANCE), and the frames' commit_to_complete rows
need no entry, gone since 6605f18ddf.

Verified: the matrix's Python tests (the stored table reads) in the job named in the landing
message.
2026-11-18 16:55:12 -08:00
Anees Iqbal 5849a7f029 matrix: each runtime's creation rows run in a process of their own, cold against cold
The planner's rule: a cold first sample is compared cold against cold. The creation rows ran in
five processes that each timed both runtimes, the new runtime first, so the driver's
process-wide setup fell on the new runtime's first pipeline and the old runtime's first samples
came after it, warm. Measured on the Iris Xe (job 48650, ms01 alone, both runtimes from the
harness at cb25e3a83e, five processes each): the old runtime's create_state/first was 5265.8 us
behind the new runtime in one process and 16732.8 us in a process of its own (0.315x);
device_first 0.167x, first_call 0.099x. The one-process ratio new/old 1.302 at first was a
cold-against-warm ratio; cold against cold it is 0.410.

Of the two forms the planner allowed, each runtime's own fresh process is the cheaper: the
harness does not change, and the extra five processes a leg runs take about a second each
(create_state's processes on the Iris ran in under one second). The other form, one unrelated
pipeline before either runtime in a shared process, would need harness code and leaves the
first samples process-warm, not cold. So each of the five rounds now runs `--runtime new` and
`--runtime old` in processes of their own, each on a fresh driver cache and store, the order
alternating from round to round (new first in rounds 1, 3 and 5); the first round's two outputs
are kept whole, the later rounds' first samples as before. The records, their names and the
budget's medians do not change.

Verified: the matrix's Python tests in the job named in the landing message (the harness-runs
test now pins the processes and their order).
2026-11-18 16:35:27 -08:00
Anees Iqbal 6605f18ddf harness, matrix: the frames' commit-to-complete row is gone after its one round
The planner's frame ruling showed the frames' old figure, their last command buffer's
commit-to-complete time (`<row>/commit_to_complete`), beside the new throughput row for one round,
unjudged, then deleted. The round at 5f2494bfc5 is that round. The harness no longer prints the
record, the matrix no longer has a shown-rows table (its one row was this), and the docs and
the frames test lose it. The frames' latency from idle stays a row of its own.

Verified: the harness gate in the job named in the landing message (clippy plain, m2v_gpu and
m2v_cpu_icd, rustdoc, unit tests, the matrix's Python tests).
2026-11-18 16:28:03 -08:00
Anees Iqbal ca92b2aa9e harness: a compute state row's first dispatches 64x1x1, the streams' commonest size; one thread beside it
The create_state row's first dispatched one thread (1x1x1), a size of few dispatches: 3.9% of the
compute dispatches in the discrete replay recordings (from 3 to 5 kernels) and at most 0.5% in the
unified ones, by identity's census of every stream's threadsPerThreadgroup. A runtime that
compiles its pipeline for the dispatch's size (the old runtime) compiled the first at 1x1x1, where
a program's first dispatch runs at its own size. The first now dispatches one threadgroup of
FIRST_THREADGROUP, 64x1x1: the commonest size over the five streams of record, 24.1% of their
compute dispatches (41.7% of the unified recordings', 7.1% of the discrete ones', where 128x1x1
leads with 39.3%; 128x1x1 is 23.3% overall). Each thread's 16 bytes are checked.

Today's form stays beside it, shown and never judged: another content's first (the kernel with
other constants) dispatched as one thread, create_state/first_one_thread
(CreateReport::one_thread_first_us; results.SHOWN_FIRST). The name has no digits so the matrix's
FIRST_KEEP keeps it from every creation process, which a results test holds. The warm-up stays at
one thread. docs/VALIDATION.md and the crate doc say it; the authored device test asserts the
compute row has the one-thread first.
2026-11-18 16:27:00 -08:00
Anees Iqbal 43809bcc09 matrix: the Windows build is sized from its measured runs, 10 GiB and 15 minutes
Its jobs reserved 16 GiB for 60 minutes. Measured on the mini: a peak of 6.7 GiB and 29 s, 4m02s
and 3m45s a run (m3-max-48387, -48266, -48124); the longest cargo build of the 50 runs the
matrix keeps took 6m45s (29 crates compiled). 10 GiB is 1.5 times the peak, and 15 minutes over
twice the longest build, for a cold one. The minutes stay the floor of the measured sizing, and
a run that wants more RAM still runs again with twice its room, up to the default.

Verified: test_matrix (the sizing and retry tests at the new defaults).
2026-11-18 15:51:27 -08:00
Anees Iqbal d3bfe3815d harness, matrix: a frame row is its throughput, and its latency from idle a row of its own
The planner's metric for the frame rows. A frame row's time was its runs' last command buffer's
commit-to-complete time with two runs in flight, which mixes the time a frame adds with how long
it waits behind the one before. Now `frame` and `frame_5cb` (Plan::frames) carry two figures,
each the steady time (best window of ten) of the harness's own completed-handler times:

- THROUGHPUT, the row of record (matrix_time): two runs in flight, from one run's last completed
  handler to the next's. The pairs around the waits that read the gauges after runs 100 and 200
  (GAUGE_RUNS) are left out, as an untimed run sits between them.
- LATENCY FROM IDLE, the row `<row>_from_idle` (FROM_IDLE): as many runs again after the timed
  ones, one in flight, each committed once the one before it completed, from just before its first
  commit to its last completed handler.

The completed handlers now report the time of their commit and of their own run against one
origin (Completions, Handled), so the commit-to-complete times, the throughput and the latency
come from one record. The frames' commit-to-complete time is still printed, as
`<row>/commit_to_complete`, which the matrix shows and does not judge (SHOWN_ROWS) for one round.
Each latency row takes the ceiling and floor its workload's row has (listed_row), in the budget,
the over table and the re-time selection, and is re-timed through its workload's runs. Other
workloads are unchanged, long_4cb's commit-to-complete time included. The shape follows core's
one-run-in-flight probe (3eaec97076), without its environment gate.

Verified: test_results (a new test: a latency row past its workload's ceiling and the budget,
the commit-to-complete row shown and never judged, the over table and the re-time selection
choosing the latency rows); the harness's unit tests gain the throughput and latency arithmetic
(the gauge pairs left out) and matrix_time's frames case; the harness gate job named in the
landing message runs clippy, rustdoc, the unit tests and the authored workloads on lavapipe.
2026-11-18 15:51:27 -08:00