forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b628d0d99953f635a6fac3f7a6e2a89a2d72fb07

2026-09-29

gate_coverage: bind a hoisted `for (...,) in <name>` arm tableAhmet Kaan Gümüş · db9b45e
gate_coverage: bind a hoisted `for (...,) in <name>` arm table

Wave 3a integration. lane-av1txsearch landed
`print_tx_size_search_census`'s `unresolvable == 0` assertion, whose
stated purpose is to go red the moment a gate body builds the flag in a
shape the resolver cannot bind. lane-av1lossy128x96 then landed a gate
written exactly that way -- `for (label, search, want_mode, want_len,
want_fnv) in arms` with the arm table hoisted into `let arms` -- and the
assertion fired, as designed.

`bound_values` strategy (3) only understood an array spelled INLINE after
`in`. With a named collection it read past the `for` line to the next `[`
in the body, which is the gate's unrelated `&[..]` flag list, found no
digits, and returned an empty set. The gate's two arms were sitting
verbatim in the source the whole time.

New strategy (3b) follows the `for` line's collection name back to its
`let` binding and takes that column. Two details are load-bearing: the
word-boundary guard (`let arms_foo` must not answer for `let arms`), and
the `=` hop, because the binding's TYPE annotation is itself bracketed
(`[(&str, &str, TxMode, usize, u64); 2]`) -- scanning for the first `[`
after the name returns the type, not the table.

Red-before: with `merge(set)` replaced by `let _ = set;` the new case in
`the_resolver_binds_a_format_built_flag_in_both_directions` fails with
"the unmutated body should resolve to both values, got {}". Restored,
and the census reports the gate as `=0 and =1 (one arm each)` with
`unresolvable 0`.
lane-av1rawhelper r2: update the stranded call site added by 7b9f46faAhmet Kaan Gümüş · 2e1da96
lane-av1rawhelper r2: update the stranded call site added by 7b9f46fa

Main's tree has two call sites of assert_rawvideo_matches; this branch's base
predated 7b9f46fa, which added a_lossless_block_clips_its_transform_grid_at_the
_frame_edge's arm at stream.rs:7165. git merge-tree reported the merge CLEAN and
the merged tree failed to compile with E0061. Depth taken from the pin's own
parsed sequence header (bit_depth=10, decode_probe), not from the gate's doc.
lane-av1rawhelper: derive assert_rawvideo_matches packing from the stream's bit depthAhmet Kaan Gümüş · e95fa15
lane-av1rawhelper: derive assert_rawvideo_matches packing from the stream's bit depth

The helper packed our samples as u16 for every stream while aomdec --rawvideo
writes 8 bits per sample for an 8-bit stream, so an 8-bit caller died on a
raw-SIZE assert (ours 2x the oracle) without comparing a single sample, and the
failure read like a data bug. Nothing in the signature said the helper was
high-bit-depth only.

- stream_bit_depth(): the depth comes from the stream's own sequence header
- pack_rawvideo(): 1 byte/sample at 8-bit, 2 LE at 10/12-bit, u8 range asserted
- assert_rawvideo_matches(): takes the caller's depth label and asserts it
  against the parsed header, failing by name before any packing
- new gate: a real aomenc 8-bit stream compared sample-for-sample, plus a
  wrong-label arm that pins the loud failure so a reverted check is caught
Merge lane-av1lossy128x96 @ 9ecb36de — gate the 128x96 4:4:4 lossy tx-size-search cellAhmet Kaan Gümüş · 6f07b44
Merge lane-av1lossy128x96 @ 9ecb36de — gate the 128x96 4:4:4 lossy tx-size-search cell

# Conflicts:
#	crates/ec-av1/src/stream.rs
Merge lane-av1dumpyuv @ 60a7788a — dump_yuv / raw_to_y4m / lr-sgr harness derive or assert the sample depthAhmet Kaan Gümüş · 7bd9ad4
Merge lane-av1dumpyuv @ 60a7788a — dump_yuv / raw_to_y4m / lr-sgr harness derive or assert the sample depth

The three non-test surfaces that consume raw decoded planes now carry the
sample depth as data instead of assuming it: dump_yuv's example harness
derives it, raw_to_y4m.py asserts it, and the lr-sgr pin harness takes it.
A 10-bit N-frame stream is byte-identical in length to a 2N-frame 8-bit
stream, so length alone cannot distinguish them; that limit is disclosed in
the raw_to_y4m module docstring rather than left as a silent hole.
Merge lane-h264reallib @ 25c996b2 — real-media-library test sites reshaped to #[ignore] with fact-based reasons, plus four follow-upsAhmet Kaan Gümüş · 616d822
Merge lane-h264reallib @ 25c996b2 — real-media-library test sites reshaped to #[ignore] with fact-based reasons, plus four follow-ups

Real-library tests that silently SKIP when ffmpeg/ffprobe or a media file is
absent are reshaped to #[ignore] carrying the concrete reason each site needs
its dependency, so 'not run' stops reading as 'passed'.

Four follow-ups in the same tip:
  * ec-probe: a silent skip replaced by a named SKIP that states what was
    missing rather than returning quietly;
  * ec-aac: two env::var("HOME").unwrap() -> unwrap_or_default() so a
    HOME-less run degrades instead of panicking;
  * ec-h264: one hardcoded absolute manifest path -> CARGO_MANIFEST_DIR-relative.

NOTE (do not amend): the branch's commit message cites line numbers that the
SAME commit's rustfmt pass renumbered. The citations were accurate when
written and are stale at this tip; they are left as-is deliberately.
Merge lane-av1rect8x16 @ ee56661f — test-only refusal_inventory gate for decode_block_rect's `_` armAhmet Kaan Gümüş · c987fbf
Merge lane-av1rect8x16 @ ee56661f — test-only refusal_inventory gate for decode_block_rect's `_` arm

Lands one new entry in the inventory plus its enumeration/witness gate
`every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table`:
the nine textual `decode_block_rect(` matches in decode.rs are 1 declaration +
8 call sites, every call site passes `bw`/`bh` as integer literals and is a
32-level PARTITION_HORZ/VERT/HORZ_A/_B/VERT_A/_B arm of read_sb128_root's
`match part32`, so the caller shape set is exactly {32x16, 16x32} and their
chroma halves under 4:2:0/4:2:2/4:4:4 all have coefficient rows.

FIX IN THIS COMMIT: the inventory comment at refusal_inventory.rs:556 read
"All nine call sites", which contradicts the test's own
`assert_eq!(sites, 8)` and the lane report. Rewritten to state the accurate
arithmetic: nine textual matches = 1 declaration + 8 call sites.

Zero merge surface against wave 3: the branch is refusal_inventory.rs
(+246/-0) and lanes/av1rect8x16.report.md only. Merged --no-ff, no conflicts.
lanes/av1pins r4: lr_sgr gets its asserts, plus two corrections to my own r3 claimsAhmet Kaan Gümüş · 1b5bc7e
lanes/av1pins r4: lr_sgr gets its asserts, plus two corrections to my own r3 claims

The frame count was the substantive fix: the old body passed pics.len() as
ffmpeg's EXPECTED count, so a zero-frame decode asked ffmpeg for zero frames and
compared nothing. Red-before by mutating apply_sgrproj_stripe (+1 on its first
output sample) lands on a PIXEL assert -- and on a CHROMA plane, which luma alone
would have missed.

Records two errors of mine. r3's 'the machine-local-pin population is zero' is
false: pinned_warp_stream_decodes_pixel_exact reads 14 more uncommitted pins
through a directory concat! literal my scanner could not match, and the invariant
I handed the preflight lane is too weak to catch it. And my '4 ignored gates
assert nothing' scan was wrong for that same gate, whose asserts live in a helper
it delegates to.
test(av1): give pinned_lr_sgr the pixel asserts it lacked, and un-ignore itAhmet Kaan Gümüş · 0777cd0
test(av1): give pinned_lr_sgr the pixel asserts it lacked, and un-ignore it

r3 left this gate `#[ignore]`d on a FACT, not a judgement: its body `eprintln!`d
per-frame mismatch flags and returned, so it could not go red on a decode
regression. That is now fixed and the ignore is gone.

THE SUBSTANTIVE FIX is the frame count, not the asserts. The old body passed
OUR OWN decode's length as ffmpeg's expected count:

    let reference = ffmpeg_decode_sequence(&stream, 192, 128, pics.len());

so a decoder that emitted ZERO frames asked ffmpeg for zero frames, the zip
compared no pairs, and the gate passed having proved nothing -- the exact
vacuous-pass shape `cmpaudit` swept elsewhere in this crate. The count now comes
from the FIXTURE (`FRAMES = 1`, measured), so a lost frame reds on the count.

Also added, matching the three sibling pins: a dimensions assert per frame, an
explicit `reference.len() == FRAMES` before the zip, and per-plane per-frame
pixel asserts. The diagnostic print is KEPT and now runs BEFORE the asserts, so a
failure still names the shape of the divergence.

On "does it compare only frame 0": it does not, and the loop is unchanged in
that respect -- it always visited every frame. This pin simply holds ONE frame,
which is why the pre-r4 run printed `frame 0` and nothing else.

RED-BEFORE, on a PIXEL assertion, by mutating the decoder arithmetic the pin
exercises -- `restoration.rs::apply_sgrproj_stripe`, +1 on its first output
sample:

  frame 0: y_mismatch=false u_mismatch=true v_mismatch=true
  panicked at stream.rs:30374: assertion `left == right` failed:
    pinned_lr_sgr_stream_call_unique_dump frame 0 U vs ffmpeg (pinned lr-sgr)
  test result: FAILED. 0 passed; 1 failed

Worth stating: the mutation landed in a CHROMA plane, so the gate caught it on
the U assert while luma stayed clean. A luma-only compare would have missed it.
Reverted (restoration.rs is clean) and the gate returns green.

The count assert is proven separately: `FRAMES = 2` reds at stream.rs:30328
with "decoded 1 frame(s), the pinned stream holds 2 -- a short decode would
otherwise ask ffmpeg for the same short count and compare nothing", not on a
pixel.

Plain run (no `--ignored`): 1 passed; 0 failed; 0 ignored; 0 measured; 0.10s,
printing "1 frame(s) byte-exact vs ffmpeg from .../crates/ec-av1/fixtures/
lr-sgr-r7.obu". The ignore was never justified by cost -- it was 0.10 s under
`--ignored` too.

`#[ignore]` in stream.rs 37 -> 36. gate_coverage 10 passed, refusal_inventory
15 passed. Tests only, no decoder change (the sgrproj mutation was reverted
before this commit; `git status` on restoration.rs is empty).
lanes/av1pins r3: the four remaining untracked pins, and the class closedAhmet Kaan Gümüş · 9ca92c7
lanes/av1pins r3: the four remaining untracked pins, and the class closed

All four pins recovered byte-for-byte from the runner libraries -- the original
mismatch witnesses, not re-encodes (golden7's recovered pin reproduces the
delta=2 its own doc records, which a re-encode could not). Three gates go live
on the r2 bar; the film-grain gate was already live but PANICKED on a clean
checkout via a concat! literal plus .unwrap(), the worst shape in the class.
One gate stays ignored on a fact, not a judgement: pinned_lr_sgr asserts nothing,
so it cannot fail on a decode regression.

New shared require_pin(): a missing pin is a hard failure naming the path and the
generator -- never a raw io panic, never a silent skip.
test(av1): commit the four remaining untracked pins; three gates go live, one earns a factual ignoreAhmet Kaan Gümüş · 6ff049e
test(av1): commit the four remaining untracked pins; three gates go live, one earns a factual ignore

Same defect r2 closed, three gates deeper. Four pins lived only in the gitignored
root `fixtures/` and reached the runners through a `fixtures -> ~/gates/library/
fixtures` symlink, so a clean checkout had no bytes at all. `.gitignore` on main
now negates `crates/*/fixtures/**`, so all four commit with a plain `git add`
(verified: `git check-ignore -q` returns 1, "not ignored", for each).

  golden4-pin.obu                  137 B  sha256 1754023e44e46edaebc2c05065bf1c65db1a41354577cbf71c0e8ebe737ae14a
  golden6-mismatch.obu             452 B  sha256 c56909b98542192b03f3a945e153475aa57a58a1586bf166513297296cb225b3
  golden7-forwarding-mismatch.obu  152 B  sha256 81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be
  lr-sgr-r7.obu                    192 B  sha256 6b95b20e3377430ffae0b2ce86fad9502e0dedf13cd6c38ab7f5af4a8b21f33d

RECOVERED, NOT RE-ENCODED. I first reproduced golden4/golden7 from the
cdf-forwarding recipe and captured golden6 from a throwaway harness built on the
crate's own `panned_test_card`, then found the original bytes still on the runner
libraries and fetched those instead -- they are the actual historical mismatch
witnesses, which a re-encode is not. The originals also self-validate: golden7's
committed doc records `non_last_ref_hits` delta=2 for this stream, and the
recovered pin reproduces exactly 0->2. (The throwaway capture harness was deleted;
`grep -c zz_throwaway` = 0.)

THREE GATES GO LIVE, on the same bar r2 applied:
  pinned_golden4  1 passed 0.11s, prints "non_last_ref_hits before=0 after=1"
  pinned_golden7  1 passed 0.10s, prints "non_last_ref_hits before=0 after=2"
  a_real_aomenc_stream_with_film_grain_decodes_pixel_exact  1 passed 0.10s
None touches a process-global, and the counter each reads is printed, never
asserted. `#[ignore]` in stream.rs 41 -> 37.

THE FILM-GRAIN GATE WAS THE WORST AND WAS ALREADY LIVE. It read its pin through a
`concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures/...")` literal and
`.unwrap()` -- the gitignored root, with no graceful skip -- so a clean checkout
with no runner library would PANIC, not skip. That shape can never be satisfied
by a committed pin at all, which is why it is now `crate_pin` + `require_pin`.

`require_pin` is new and shared: a missing pin is a hard failure naming the path
and the generator and pointing at EC_AV1_GATE_DUMP_PIN. Never a raw io panic,
never a silent skip -- the two shapes this class has taken.

ONE GATE STAYS IGNORED, ON FACTS. `pinned_lr_sgr_stream_call_unique_dump` asserts
NOTHING: it `eprintln!`s per-frame mismatch counts and returns, so it cannot go
red on a decode regression and un-ignoring it would add a test that reports pass
unconditionally. Its pin is now committed too, so the old "reads a pinned fixture
under the gitignored fixtures dir" reason was false and is replaced with the two
reasons that are still true (asserts nothing; needs EC_LR_CALL_DUMP=1 for a
window). What would close it: give it the pixel asserts its siblings have, then
un-ignore. Measured plain run under --ignored for the record: 1 passed 0.10s,
"frame 0: y_mismatch=false u_mismatch=false v_mismatch=false".

Meta-gates after the change: gate_coverage 10 passed, refusal_inventory 15 passed.
r2's two gates re-verified green. Tests only, no decoder change.
lanes/av1pins r2: the two pins were still #[ignore]d, so a plain run executed nothingAhmet Kaan Gümüş · 7e04950
lanes/av1pins r2: the two pins were still #[ignore]d, so a plain run executed nothing

r1's before/after table was measured under --ignored and did not say so, which made
it read as a fix when it was only a fix under a flag. A clean checkout cannot see a
committed pin, so the lane that fixed the pin hole left the ignore hole standing in
the same commit -- and the replacement reason string ('bisect aid, not a suite
gate') was a judgement, not a fact.

r2 removes both ignores (2e9086c0): no process-global, no counter, no lock, no
aomenc, 0.10-0.15 s each, ffmpeg already guarded. Plain-run evidence in the report,
plus the confirmation that neither appears in -- --ignored any more and the count
drops 41 -> 39. Records a meta-gate failure I caused and disproved (my own
concurrent run on the shared target dir), and hands back three sibling gates with
the same defect.
test(av1): un-ignore the two pins that are now committed -- the ignore reason is staleAhmet Kaan Gümüş · 04ca450
test(av1): un-ignore the two pins that are now committed -- the ignore reason is stale

`pinned_golden3_stream_decodes_pixel_exact` and `pinned_sbpart_stream_decodes_pixel_exact`
were `#[ignore]`d, so on a plain suite run they contributed nothing -- the same
hole in a different costume from the rc=0-skip one lane-av1pins just closed.

The ignore is stale, and it has been stale twice over. It was introduced at
c9fede5d (2026-08-28, lane-av1golden3) with the reason
`reads a pinned fixture path outside the repo; run manually`, and the doc comment
gave the real cause: "the file only exists on this machine's scratchpad". That was
true then. It stopped being true at 78c805bd, which committed both pins under
`crates/ec-av1/fixtures/` -- a path that travels in the runner tarball, so the
bytes are on every runner. lane-av1pins then replaced the reason with
"bisect aid, not a suite gate", which is ALSO wrong: with the bytes committed
these are ordinary decode-exactness gates, not bisect aids.

No condition that makes this crate ignore a gate applies. Measured on a5867794:
  * no process-global: neither body calls `force_sb128` or `knob_write`;
  * no counter, no `lock_gate_counters()`;
  * no aomenc: they decode committed bytes and compare to ffmpeg, so they are
    also not real-aomenc gates and stay out of the `gate_coverage` census;
  * cost 0.10-0.15 s each (measured), not a minutes-per-item recipe;
  * ffmpeg presence is already guarded by `have_ffmpeg()`, so
    `EC_AV1_REQUIRE_FFMPEG=1` makes a missing ffmpeg a hard failure rather than
    a silent skip.
Precedent: gate_coverage.rs records the 10-bit LR gate "was `#[ignore]`d on
that branch and passes un-ignored on main, which carries the fix".

Plain-run evidence (no `--ignored`), `--release --test-threads=1`:
  pinned_golden3 ... 1 passed; 0.15s; prints "4 frame(s) byte-exact vs ffmpeg
                      from .../crates/ec-av1/fixtures/golden3-pin.obu"
  pinned_sbpart  ... 1 passed; 0.10s; EC_SBPART_DIAG=1 walks all 24576 luma
                      samples ("DIAG frame 0: 0 luma mismatches ... of 192x128")
Both also execute under a plain substring filter (`-- pinned_`) with no
`--exact` and no `--ignored`, and neither appears in `-- --ignored` any more.
`#[ignore]` count in stream.rs 41 -> 39.

`a_real_aomenc_lossless_444_key_frame_decodes_sample_exact` needed no change: it
carries no `#[ignore]` and passes plainly (1 passed, 0.21s).

Meta-gates re-checked after the change, since un-ignoring changes the census
input: `gate_coverage` 10 passed, `refusal_inventory` 15 passed, both green on
6 consecutive runs.

Tests only, no decoder change. Follow-on NOT done here and reported instead:
three sibling pin gates carry the same stale reason and read pins that are still
untracked -- `pinned_golden4_stream_decodes_pixel_exact` (golden4-pin.obu),
`pinned_golden7_stream_decodes_pixel_exact` (golden7-forwarding-mismatch.obu) and
`pinned_lr_sgr_stream_call_unique_dump` (lr-sgr-r7.obu, which `.expect()`s the
read rather than skipping, so it would PANIC in a clean checkout if ever
un-ignored as-is).
report: state the two general rules the gate-1 deletion turned upAhmet Kaan Gümüş · e100a8a
report: state the two general rules the gate-1 deletion turned up

(1) A gate whose precondition is unreachable is dead weight ONLY when BOTH of
its halves are covered elsewhere. The bar for deletion is not "the assert
cannot fire" but "the assert cannot fire AND everything else the test did is
provably done elsewhere" -- #[ignore] is nearly free and still tells the next
lane what was tried, while a deleted unique assertion is not recoverable from
prose. Check every other assertion in a doomed test before cutting it, not just
the broken one.

(2) Grep the name you removed, after you remove it. Cutting the gate left a
live 'cargo test ... --nocapture' run-line in a sibling's doc comment pointing
at a test that no longer exists; the symbol search missed it because I had only
written doc mentions of that name myself. Same doc-drift class as every other
rename trap here: a removal is not done until the prose points at what now
exists.
r2: rebase onto merged main, delete the unreachable drl gate, re-verify the pinsAhmet Kaan Gümüş · fac47ce
r2: rebase onto merged main, delete the unreachable drl gate, re-verify the pins

Gate 1 is DELETED rather than kept-with-a-better-ignore, on evidence rather than
preference: its precondition is unreachable (r1), and its pixel half -- the
decode-vs-encoder-reconstruction compare on a 1280x768 force_sb128 sequence --
is already made four times over by the sibling sb128 gates at the same geometry.
Deletion therefore loses no coverage on either half, which is the condition
under which deleting a gate is right; had the pixel compare been unique, keeping
it with a fact-stating ignore string would have been the honest call.

The coverage claim moves to the test that now carries it,
every_drl_index_the_new_mv_pricer_offers_is_one_the_writer_can_signal
(encode.rs:15689), which is strictly stronger than the clip gate: it enumerates
the pricer's whole offer set against the writer's rule, and 0..=4 bounds the
DOMAIN rather than sampling it, since best_new_mv_syntax breaks at
entries.len() <= idx for idx > 0 and so no stack size can offer index 3 or 4.
A second pointer added at encode.rs:18618, where a cargo test run-line still
named the deleted gate.

note_drl_clamp and DRL_CLAMP_HITS are KEPT as the tripwire for the owning fix --
the invariant test goes red the moment the pricer is widened, and
tile::drl_clamp_hits() then shows the clamp on real content. The
#[cfg(test)] take_drl_clamp_hits had no reader left and is removed.

One rebase conflict, in the two 1:4 gates' comment slot: lane-av1pins had
independently re-run those gates on the seven-lane tree and recorded the same
two facts (pixel blocker gone, recipe never fires). Both records are kept side
by side in the resolved comment -- theirs is the merge-main evidence the
mandelbrot claim was dead, ours is the mechanism and the fix.

Three pins re-verified on merged main (aa0ac8c2, +58 commits) in a PLAIN pass,
0 ignored, private CARGO_TARGET_DIR, sources touched first: all green, every
pin byte-identical to r1 (8384/35179/34727 B, same fnv1a64), each printing its
counter and its control arm on one line.
tests: close the rest of the real-media-library class (4 sites)Ahmet Kaan Gümüş · b1bc5d6
tests: close the rest of the real-media-library class (4 sites)

Follow-ups to the shape sweep, all approved. Each was red on a runner for a
reason that had nothing to do with a decoder.

ec-probe/tests/library.rs:490 -- REMOVE the minimum-count assert rather than
ignore the test. The file's own header is the spec, and it says so at lines
5-6: "Files that have since moved are skipped and reported, never failed --
the manifest is a snapshot of a moving library." An empty `chosen` IS the
moved-files case, so the assert contradicted the contract the file declares:
the contract is the spec, not the assert. Replaced with a named SKIP and a
return, which is what "skipped and reported" asks for.
  before: red-on-runner whenever every manifest path had moved
  after:  1 passed; 0 failed; 0 ignored

ec-aac/tests/sbr_real_library.rs:4797 and ec-aac/tests/obs_real_content.rs:151
-- bare env::var("HOME").unwrap() -> unwrap_or_default(), the shape the five
sibling HOME reads in sbr_real_library.rs already use (:2710, :3426, :4109,
:4182, :4575). A HOME-less host is a fleet runner, so this was a panic there;
the batch has now hit that class from three directions.
  before: FAILED. 0 passed; 1 failed
          called `Result::unwrap()` on an `Err` value: NotPresent
  after:  1 passed; 0 failed; 0 ignored      (both, under `env -u HOME`)

ec-matroska/tests/matroska.rs:966 -- the manifest was read from a hardcoded
absolute path into the primary checkout, unlike every sibling. That defeats
worktree isolation even while the test is ignored: a run in a worktree or a
gate tree read the MAIN checkout's manifest, so it measured a different
tree's library than the one it was compiled from. Now `fixtures()`, i.e.
CARGO_MANIFEST_DIR-relative.

The two HOME fixes were proved by running them under `env -u HOME` -- the
runner shape -- before and after; the before-state panic is quoted above.

Class disposition after this commit: 6 fixed, 0 remaining red-on-runner,
14 already correct, the rest already ignored or false positives.
gate 1: delete the unreachable drl-clamp clip gate; the invariant test is the coverage claimAhmet Kaan Gümüş · a7e1d4c
gate 1: delete the unreachable drl-clamp clip gate; the invariant test is the coverage claim

The gate asserted drl_clamp_hits() > 0 on a real 1280x768 sb128 clip, but
DRL_CLAMP_HITS is provably unreachable while
every_drl_index_the_new_mv_pricer_offers_is_one_the_writer_can_signal holds, so
no recipe could ever satisfy it (153 attempts, 0; widening the pricer's offer
set to 0..5 fires the counter immediately and reverting silences it again).

Deletion loses no coverage on either half. The clamp half is this invariant
test, and it is strictly stronger than a clip gate: it enumerates the pricer's
whole offer set against the writer's rule, and 0..=4 bounds the DOMAIN rather
than sampling it (best_new_mv_syntax breaks at entries.len() <= idx for
idx > 0, so indices 3/4 are unreachable at any stack size). The pixel half --
the deleted gate's decode-vs-encoder-reconstruction compare on a 1280x768 sb128
sequence -- is already made four times over by the sibling sb128 gates at the
same geometry with the same force_sb128(true).

The coverage claim now lives on that invariant test's doc comment, which names
the deleted gate and both substitutes. note_drl_clamp and DRL_CLAMP_HITS are
KEPT as the tripwire for the owning fix, and the now-unused
take_drl_clamp_hits is dropped in favour of the non-destructive
tile::drl_clamp_hits() the enc_probe hunt reads.
gates: close the two blind 1:4 / delta_q recipes, prove the drl one unreachableAhmet Kaan Gümüş · 4359ea0
gates: close the two blind 1:4 / delta_q recipes, prove the drl one unreachable

Three `#[ignore]`d ec-av1 gates were blind because their recipe never provoked
the feature. Two are now closed with a pinned, red-proved fixture; the third
cannot be closed by any recipe and that is proved rather than assumed.

a_real_aomenc_stream_..._horz_vert_partition_and_delta_q_decodes_pixel_exact
  r1 swept 40 attempts with frame_count = 1 -- a single key frame, so the stream
  carried no `delta_q_present` at all (0 groups AND 0 drift on every arm, a
  different failure from "the drift never reached a rect64 block"). Replaced
  with testsrc2 512x384 x 4 frames at --cpu-used=0: 48 delta_q groups read, 17
  rect64 dequant calls with CURRENT_Q_IDX != base_q_idx, sb_rect_hits firing
  (inter_rect 64x32=2 32x64=2), 4 frames pixel-exact vs ffmpeg. `--cpu-used=0`
  is load-bearing (1 and 3 drift zero times); `--cq-level` is not. Pinned as
  fixtures/rect64_dq_drift.obu (8384 B, sha256 094e51bb...). The gate asserts
  the pin against a live re-encode, and a control arm re-runs the same command
  line with `--deltaq-mode=0` requiring 0 drift -- which is also the red-proof:
  reverting that flag turns the gate red on its own precondition with the pixel
  compare still green.

a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact (+ _10bit)
  The 22-line comment above the `#[ignore]` blamed a pre-existing inter-frame
  pixel defect. That is stale -- the pixel blocker cleared (both arms compare
  exact). The real cause is that `--min-partition-size=32` with the intra mode
  tools off never puts a 1:4 partition on aomenc's RD menu: measured, the
  32-level 1:4 counter is 0 in all 48 attempts at min-partition-size=16 and
  fires in 40 of 48 at 8 with `--enable-smooth-intra/paeth-intra/directional-
  intra/angle-delta=1`. Replaced both arms with mandelbrot 256x192 x 6 frames
  at --cpu-used=2 --cq-level=63: 32x8=8 8x32=11 (8-bit) and 32x8=12 8x32=7
  (10-bit), 6 frames pixel-exact each. Pinned as
  fixtures/intra14_256x192_{8,10}bit.obu. Same pin + control-arm shape; the
  `--enable-1to4-partitions=0` control is the red-proof.

a_128_superblock_clip_whose_drl_index_the_write_time_stack_cannot_carry_...
  UNPRODUCIBLE, and not for want of a recipe. DRL_CLAMP_HITS needs the search to
  pick a `ref_mv_idx` the write-time stack cannot signal, and in every mode the
  search's offer set is inside the signalable range: NEWMV's pricer enumerates
  0..3 and the writer's ceiling from start=0 is start+2 = 2; NEARMV's loop is
  1..=2 against a start=1 walk whose entries guard coincides; every compound
  InterInfo hardcodes ref_mv_idx: 0. The tree already asserts this over stack
  sizes 0..=4 in every_drl_index_the_new_mv_pricer_offers_is_one_the_writer_can_
  signal. Measured 153 clip x size x frames x q combinations: zero clamps, while
  a trace shows the search does pick index 2 (163x on mandelbrot 640x384x8) --
  which is exactly what the writer signals. Mutation proof: widening the
  pricer to 0..5 fires the counter on the first clips tried (9/2/2/1) and the
  same clips read 0 again on revert. The gate keeps its `#[ignore]`; its doc
  comment now carries the finding and the owning fix so the sweep is not
  repeated.

Instruments kept (both are what a recipe sweep reads from outside the test
binary): tile::drl_clamp_hits(), a non-destructive read of DRL_CLAMP_HITS, and
stream::rect64_qidx_drift_counters(), the (delta_q groups, rect64 drift) pair
whose two halves separate "no delta_q in the stream" from "delta_q that never
landed in a rect64 block". An earlier DRL-index histogram was removed rather
than shipped: it records the SIGNALLED index, downstream of the clamp, so it
structurally cannot show the 3+ bucket and answers none of the hunt's questions.
lane-av1rect8x16: run the footprint walk before the exact-table pinAhmet Kaan Gümüş · 4bb956e
lane-av1rect8x16: run the footprint walk before the exact-table pin

The exact-table pin masked the walk: deleting decode.rs:14791's `(16, 8) =>`
arm failed with the vague "decode_block_rect's chroma table changed" instead
of naming the strip that lost its row. The walk now runs first, so a deleted
row fails naming the strip and its subsampling.

Red-before, each reverted with decode.rs byte-identical, and each run after
touching decode.rs (this crate's census tests read compile-time sources, so a
stale binary would otherwise report the previous state):
- delete `(16, 8) =>`  (14791) -> RED: a 32x16 strip at subsampling (1,1)
  has a 16x8 chroma transform with no coefficient table -- LIVE
- delete `(16, 16) =>` (14801) -> RED: a 32x16 strip at subsampling (1,0)
  has a 16x16 chroma transform with no coefficient table -- LIVE
- the PARTITION_VERT call site's `16,` -> `8,` (34536) -> RED: the caller
  shape set changed -- an 8x16/16x8 caller makes this refusal LIVE
- a call site's `32,` -> `at32.0 * 2,` (34490) -> RED: non-literal strip size
- restored -> GREEN; all 16 refusal_inventory tests pass

Also states in the report that the 840-encode sweep is corroboration, not the
proof: it shows the refusal does not fire where the shape is coded, but cannot
show the shape is unreachable in a stream nobody encoded. The proof is the
static caller-shape-set derivation, and these assertions are what make the tree
enforce it.

Test code only. decode.rs untouched.
tests: make the real-library sweeps LOCAL-ONLY, and report the classAhmet Kaan Gümüş · fcb9ffb
tests: make the real-library sweeps LOCAL-ONLY, and report the class

real_library_streams_match_ffmpeg reds every fleet run with "only 0 real
files swept end to end; the sweep is the point". It is not a decoder defect:
the precondition is a PERSONAL media library, reachable only through the
gitignored fixtures/real-library-manifest.tsv that
scripts/scan-real-library.sh generates by scanning the user's own media
directories.

Both of its runner behaviours are wrong, which is why this is #[ignore] and
not an env-gated SKIP:
  - manifest absent  -> the existing "SKIP: missing" return prints GREEN,
    which is the silent-skip class this batch is removing;
  - manifest present, paths unresolvable (a host that ran the scan against
    an empty library) -> zero swept, `decoded >= 3` fails, red for a reason
    unrelated to the decoder.
An env gate whose variable is absent on the runner prints that same green --
the defect, not the fix. An ignore is visible in --list, cannot go green
silently, and leaves the assertion intact.

ec-aac's real_library_tracks_match_ffmpeg gets the identical one-liner: same
manifest, same "skip if missing then assert checked >= 3" shape, same two
failure modes.

Local verdict on the workstation, where the library is: 15 files decoded
bit-exact, 0 refused by name, 0 failures, 1918 s, across matroska and
mov/mp4 at 576px-3840px, with one file taking the container-demux fallback.
The decoder is fine. The 1918 s is now in the ignore reason so the next
person does not read a 30-minute wall time as a wedge.

lanes/h264reallib.report.md carries the full class sweep: 51 sites examined,
2 fixed here, 3 that need a decision (ec-probe library.rs:490, whose own
header comment the assert contradicts, and two bare HOME unwraps that want
unwrap_or_default), and the false positives that must not be touched.
dump_yuv/raw_to_y4m/lr-sgr harness: derive or assert the sample depthAhmet Kaan Gümüş · 46861fe
dump_yuv/raw_to_y4m/lr-sgr harness: derive or assert the sample depth

The depth-packing class the prior audit fixed in the test helpers was still
live on three non-test surfaces. `examples/dump_yuv.rs` packed every sample
as u16 LE unconditionally and its docstring named yuv420p10le as the
companion, so an 8-bit stream got a silent 2x-size file whose cmp against
aomdec --rawvideo failed on length and read like a decoder bug. The depth now
comes from the stream's own parsed sequence header; --depth is an ASSERTED
argument that names both depths and the consequence and writes nothing.

`scripts/raw_to_y4m.py` framed at w*h*3//2 with no depth anywhere, so a
10-bit stream was cut at half frame length and its trailing partial frame
dropped silently. DEPTH is now required and checked against the stdin length.

`scripts/lr-sgr-pin-harness.c` read /tmp/lr_full.bin at 1 byte per sample
with the depth recorded nowhere; the file length is now the assertion, and a
2x high-bit-depth capture is refused by name.

Sweep rows, including the seven sites examined and NOT fixed with reasons,
in lanes/av1dumpyuv.report.md.
lane-av1rect8x16: prove decode_block_rect's (4,8) chroma arm is unreachableAhmet Kaan Gümüş · 406d673
lane-av1rect8x16: prove decode_block_rect's (4,8) chroma arm is unreachable

The refusal "a rectangular chroma transform whose size has no coefficient
table" (decode.rs:14804) had no PROVEN row -- it was the audit round's
single unproven refusal. The sibling sweep that surfaced the gap
(every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table)
audits decode_rect_split's tables, not this function's, and so only ever
asserted the superblock-level 64x32/32x64 footprints. The 8x16 luma strip's
4x8 chroma was left unasked.

Answered: UNREACHABLE, and structurally so. All 8 call sites of
decode_block_rect are 32-level match part32 arms of read_sb128_root and pass
bw/bh as the integer literals 32, 16 or 16, 32, so the function's chroma
footprint set over every subsampling an AV1 color_config can carry is
{(16,8), (8,16), (16,16), (8,32), (32,16), (16,32)} -- all six have a row. A
16-level 2:1 luma strip is read by decode_leaf_rect, which carries the (4,8) /
(8,4) rows itself (decode.rs:15409-15420).

Measured, not assumed: 840 real aomenc 4:2:0 key-frame encodes, 826 of whose
parsed leaf lists provably code a 16-level 2:1 luma strip (via
horz_vert_intra_hits(), which fires only at the three decode_leaf_rect strip
sites), all 840 decoded to completion with the refusal firing 0 times.

every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table reads
the caller shape set out of decode.rs's own argument lists, pins the table's
six rows, walks the domain, and asserts the (4,8)/(8,4) residual as code.
Red under three mutations (an 8x16 caller, a new (4,8) row, a non-literal
strip size). Inventory: 32 -> 33 proven.

decode.rs, decode_rect_split and read_block_tx_size untouched; no existing
test weakened.
lanes: merge-wave-2 clean-checkout census (39 gates across 13 branches, all run from git archive)Ahmet Kaan Gümüş · f3a70c9
lanes: merge-wave-2 clean-checkout census (39 gates across 13 branches, all run from git archive)

Read-only verification of the wave-2 branches before their merge: every gate each
branch adds was re-run from a clean 'git archive' extraction of that branch tip,
which is the only shape that exposes a pin that exists in a worktree but was never
committed. 37 of 39 run in a plain pass; the two lane-av1pins pin gates were
ignored at the time and were un-ignored separately (lane-av1pinslive). No untracked
fixture, no absolute-path dependency, no env escape hid a gate.
gate_coverage: settle the enable-tx-size-search floor by binding format!-built flagsAhmet Kaan Gümüş · 9792668
gate_coverage: settle the enable-tx-size-search floor by binding format!-built flags

r3 left the entry as a FLOOR: 9 gate bodies build --enable-tx-size-search into
a format! variable that neither flags_in nor settings_in can see, so the count
was unclassified in an unknown direction. This settles it by measurement.

The templates: 10 sites, not 9 -- one segment spells the flag BOTH literally
and through a template, so the literal reader filed it and r3 never saw it.
Four binding shapes cover all ten (for-var loop, attempt-indexed let, tuple
loop read at the var's COLUMN, u8::from over a bool arm table). Every one
resolves to BOTH 0 and 1 from the gate's own text; not one is genuinely
runtime-dependent on an unknown argument.

spelling_values merges literal spellings with resolved template values;
bound_values does the resolution; resolved_on_state replaces
default_on_state, which is deleted rather than shimmed. Three details are
load-bearing and commented at the site: quoted-only for `let` bindings (the
`attempt % 2` in the initializer is not a flag value), position-aware for
tuple loops (the bit-depth column is not a flag value), and typed-literal
suffixes (0usize/8u8 are single tokens; 10u8 is still rejected).

Counts, from print_tx_size_search_census, which ASSERTS unresolvable == 0 so
the floor cannot come back: over 230 census-selected bodies, =0 only 86,
=1 only 13, both 17, unresolvable 0, not named 114. Thirty gates positively
enable the tool against the fifteen the literal reader saw. The 114 that leave
the flag off stay unknown, not exercised.

RED-BEFORE, both directions, reverted (diff clean after revert; 12 tests
green). Disabling the template needle reds the resolver test (the palette
gate resolves to {} instead of {0,1}) AND the census test (unresolvable 9;
nine both-value gates silently become "not named"). The same test also
mutates the GATE side for three template shapes and asserts the resolved set
moves. Disabling the literal needle instead reds four: both
never_on_*_matches_the_gate_recipes, the census test (=0 only 0, =1 only 0),
and the resolver test's sweep over every literal `=1` gate.

THE ENTRY IS RETIRED on an arrival assert, not on the spelling.
a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact
spells =1 and hard-asserts compared_tx_depths > 0; tx_depth is read ONLY under
the frame header's tx_mode_select bit (spec 5.11.16), so the counter IS the
parsed behaviour. Measured run of that gate: 12 pixel-exact decodes, 0 named
refusals, 6 of 12 at 10-bit, 219 rect coefficient TUs, flag arrival tx depths
53. The tx_select_inter_gate twins omit the flag deliberately and assert
txfm_split_hits moved (spec 5.11.17 var-tx tree read).

gate_coverage.rs only: stream.rs and every decoder file are byte-identical to
1aaf7e0b, no gate, counter or fixture touched.
Merge lane-av1superpin @ 9646f74d — superres den=9 + mode-2 pins, shared helper, report correctionsAhmet Kaan Gümüş · c1b1e89
Merge lane-av1superpin @ 9646f74d — superres den=9 + mode-2 pins, shared helper, report corrections

- crates/ec-av1/fixtures/:
  444_lossy_rect4_odd_130x122.obu (8945 B), 444_lossy_rect4_wide_256x128.obu
  (15239 B), 444_lossy_superres_256x128_d9.obu (17437 B),
  444_lossy_superres_256x128_d12.obu (14808 B),
  444_lossy_superres_mode2_256x128.obu (16620 B) and the shared
  a_444_superres_arm helper.
- crates/ec-av1/src/stream.rs: a_444_lossy_superres_stream_decodes_pixel_exact,
  a_444_lossy_superres_mode1_den9_stream_decodes_pixel_exact,
  a_444_lossy_superres_mode2_random_denom_stream_decodes_pixel_exact,
  a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries
  and the flag-ignoring control arm.
- crates/ec-av1/src/decode.rs, lanes/av1444edge.report.md,
  lanes/av1superpin.report.md, lanes/av1formatsweep.report.md.
- crates/ec-av1/src/gate_coverage.rs: the wave-wide retirement reconciliation
  (below).
- lanes/merge-wave-2.report.md: the wave's merge table, every conflict
  resolution, and the two post-merge fix tasks.

SPLICE from lane-park-av1444edge @ a02a2511 (that branch is NOT merged): the
§6.2 `130x122` row of lanes/av1formatsweep.report.md carries av1444edge's
CORRECTION — the cell is EXACT 4/4 (8945 B, sha c87ac65b…), the same H1
1:4-inter-strip chroma class, closed by lane-av1444rect's f92776ba (an ancestor
of main) and gated by
a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries.
The original measurement text is KEPT inside the row ("was DIVERGENT from f3,
11521 samples, first (f3, s2208) = Y(128,16); now EXACT 4/4"), not deleted.
Nothing else from a02a2511 is taken: its r4 gates are content-equivalent
duplicates of superpin's a_444_superres_arm, and its two other fixtures are
byte-identical blobs under different names.

Conflicts resolved:
* decode.rs (2 hunks, both @ours): one comment-only hunk where MAIN's text is
  more informative (it states what the counter is NOT evidence for), and one
  where theirs has no counterpart — INTRABC_RECT4_OWN_CHROMA444_HITS is a
  main-only addition from an earlier lane that superpin's older base predates.
* stream.rs: add/add at the end of `mod tests` producing INTERLEAVED hunks
  that split ours' last gate mid-statement, so marker surgery does not apply.
  Resolved by construction: this branch's stream.rs delta against its merge
  base is 933 added lines at a single hunk, so merged = HEAD verbatim + that
  block. That block re-adds a_444_lossy_rect4_inter_stream_decodes_pixel_exact,
  byte-IDENTICAL (5905 B, extracted and compared) to the copy main already has
  from lane-av1444rect e10a3b25, which superpin also carries; the appended
  copy is DELETED here. All six of this branch's gates are present exactly once
  afterwards.
* lanes/av1formatsweep.report.md (add/add): superpin's version with the spliced
  130x122 row, as above.

gate_coverage.rs — the union of the wave's retirements, so
never_exercised_{8,10}bit_matches_the_gate_recipes is green on derived
evidence rather than on an edit:
  enable-dist-wtd-comp (8b)  a_distance_weighted_compound_stream_decodes_pixel_exact
  enable-dual-filter   (8b)  a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact
  enable-dual-filter   (10b) a_real_aomenc_10bit_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact
  enable-flip-idtx     (8b)  a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_…
  enable-rect-tx  (8b and 10b) a_real_aomenc_{8,10}bit_stream_with_a_rect_transform_decodes_pixel_exact
Both lists are now empty; the census derives EMPTY (0 of 26 tools) at both
depths across 255 real-aomenc gate bodies. TOOL_UNIVERSE keeps all 26 tools,
enable-rect-tx included. The test was NOT weakened: it was red with
"the 8-bit list still names [\"enable-rect-tx\"] …" and
"the 10-bit list still names [\"enable-dual-filter\", \"enable-rect-tx\"] …"
immediately before this edit, and the retirement evidence is preserved as
comments above each emptied list.

Duplicate fixtures: measured after this merge, crates/ec-av1/fixtures/ holds
63 files with 63 DISTINCT sha256 prefixes — zero duplicates, so no blob is
carried twice under two names and no file was deleted for that reason.
lane-av1leftwit: the +ss_y left-reference shape is reachable, and pinnedAhmet Kaan Gümüş · aec3e0f
lane-av1leftwit: the +ss_y left-reference shape is reachable, and pinned

The shipped `+ss_y` term on `smooth_uv_neighbour_unsnapped`'s left read had no
witness, and the two claims standing in for evidence were both wrong.

1. "Structurally absent, because aomenc never starts a block on an odd mi
   row" -- 1 mi is 4 luma px, not 8; libaom's PARTITION_HORZ_4 puts its
   `i == 0` child on the PARENT's own mi row, which for a 16x16 is a multiple
   of 4 and therefore even (av1/decoder/decodeframe.c, `mi_row + i * bw / 4`),
   and av1_ss_size_lookup[..][1][1] is non-INVALID for every 4-px-tall bsize.
2. "Six committed 4:2:0 fixtures reach it, and on reelb_ss600_key_frame.obu the
   boolean flips" (a comment in decode.rs) -- never measured. Measured over all
   48 committed fixtures that decode, reelb_ss600 reads mode_diff=0
   smooth_diff=0 split1mi=0.

`uv_left_ss_y_reads` cannot tell "reached the shape" from "read two cells of
the same block", which is why both claims survived. New `uv_owner` per-cell
owner stamp (epoch-tagged per tile, written beside `uv_mode_grid`) plus
`UV_LEFT_1MI_SPLIT_HITS` / `uv_left_1mi_split_hits()` count decode-path reads
whose two cells were written by different blocks -- the run-of-length-1
geometry. It is NOT zero: 5 of 48 fixtures, 15 reads (gm_small_side 5,
reelc_sb128_inter 7, av112bit-{inter,compound,compound-masked} 1 each), all on
the decode path, all at even mi rows, with a 32x16 block above a 16x4 one.

The term is kept: `chroma_left_mi = base_mi[ss_y * mi_stride - 1]`
(av1_common_int.h:1411) is exactly the shipped read. What stays unwitnessed is
narrower and now says so: in all 15 reads the two blocks agree on `uv_mode`,
so the term moves no pixel (byte-identical on all five with the term reverted,
§6 of the report). A 115-encode targeted hunt -- 1-mi chroma bands, phase-
shifted vertical stripes, sub-transform noise, random mosaics, 36 real lavfi
arms, min/max-partition 4..128, lossless and cq 8..45 -- produced no
1-mi-tall leaf at all, and the `EC_LEFTSSY` leaf census says why: a wide block
codes 1-D structure almost for free, and content fine enough to force small
blocks stops at 8x8, which is 2 mi tall.

Gate: `a_committed_4to20_stream_presents_a_one_mi_left_neighbour_to_a_decode_path_read`
pins the census on two fixtures. Non-vacuous: removing the `uv_owner` stamp
drops both arms to 0 and fails it. Deliberately NOT a mutation of the term
itself, which leaves these reads untouched.

The 16x4/4x16 pair witness's counter-only mirror (decode.rs:17629) is kept --
it measures a live comparison and fires 51/24/121/0/1 on the fixtures
censused -- but both it and the `decode_path` flag no longer claim to be
evidence about this term.

Report: lanes/av1leftwit.report.md (hunt table, corpus census, red/green).
Merge lane-whtshape @ f541d062 — the lossless WHT shape-total fixAhmet Kaan Gümüş · ec131f6
Merge lane-whtshape @ f541d062 — the lossless WHT shape-total fix

- crates/ec-av1/src/transform.rs: a non-4x4 unit is RECONSTRUCTED as a 4x4
  raster instead of being asserted away — of libaom's
  highbd_inv_txfm_add_*_c only the 4x4 one carries a `lossless` branch, the
  rest fall through to the IDCT, and this call site was passing a rect
  lossless shape that no such function can accept.
- crates/ec-av1/src/decode.rs: decode_intrabc_rect no longer codes a rect
  intra-BC block's chroma plane as ONE rect transform unit.
- crates/ec-av1/fixtures/ll444_sb64_1to4_lossless.obu (51107 B).
- crates/ec-av1/src/stream.rs: a_444_lossless_sb64_intrabc_rect_chroma_walks_4x4_units.
- lanes/whtshape.report.md (the RELEASE premise refuted, the call site fixed,
  the residual fork named).

Conflict resolved in stream.rs: add/add at the end of `mod tests`. Both lanes
append at the same anchor and git produced TWO interleaved hunks that split
ours' last gate mid-statement, so the marker surgery does not apply. Resolved
by construction instead: this lane's stream.rs delta against the common base
is a single 199-line block appended at the tail, so the merged file is
HEAD's stream.rs verbatim (tail brace kept) + that block + the module's
closing brace. `cargo check -p ec-av1 --all-targets` is clean and the
per-parent `fn a_*` set difference shows zero lost and zero replaced.
Merge lane-av1lm444loss @ 9249442f — the lossless frame-edge TX-grid clip fix + gateAhmet Kaan Gümüş · cb2465d
Merge lane-av1lm444loss @ 9249442f — the lossless frame-edge TX-grid clip fix + gate

- crates/ec-av1/src/decode.rs: libaom clips the transform-unit grid at the
  frame edge (max_block_high/max_block_wide fold mb_to_bottom_edge /
  mb_to_right_edge in before the shift), so decode_token_recon_block now
  bounds the square AND the rect mu walks by the part of the block inside the
  frame, with the LOSSLESS_EDGE_CLIPPED / LOSSLESS_EDGE_CLIP_UNITS counters as
  the non-vacuity evidence. Identical arithmetic for a block that fits.
- crates/ec-av1/src/stream.rs: the H1 gate.
- lanes/av1lm444loss.report.md (appendix r2 diagnoses the remaining lead (b)
  blocking defect).

No conflict: decode.rs auto-merged — the region is disjoint from
lane-av1chrtx's per-unit leaf tx_type work (~7.8k/~28.2k) and from
lane-av1distwtd's compound counter.

Tip note: the branch head 5519aaf8 is one commit past this tip
("ec-av1: ss-aware chroma geometry + lossless TX_4X4 raster in
decode_intrabc_rect") and is NOT merged here; the dispatched tip is 9249442f.
That delta is the follow-on lead (b) work the report's appendix names as
still open.
Merge lane-av1dualfilter10 @ c2b969c8 — the 10-bit dual-filter witnessAhmet Kaan Gümüş · 4c293da
Merge lane-av1dualfilter10 @ c2b969c8 — the 10-bit dual-filter witness

Sits on top of lane-av1distwtd (c2b969c8 contains 1aaf7e0b), so only its own
delta lands here:
- crates/ec-av1/src/stream.rs:
  a_real_aomenc_10bit_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact,
  the 10-bit arm of the dual-filter witness. It is the evidence that retires
  the `enable-dual-filter` entry from NEVER_EXERCISED_10BIT — that entry was
  deliberately KEPT open by lane-av1distwtd r3 (8-bit exercised, 10-bit not),
  and this gate is the 10-bit arm distwtd's own note said would retire it.
  With it, both never-exercised lists are reconciled in the same wave:
  enable-dist-wtd-comp, enable-dual-filter (8- and 10-bit) and enable-flip-idtx
  (8-bit) are all retired; `enable-rect-tx` remains the one open entry and is
  reconciled in the lane-av1toolgates / merge step that follows.
- lanes/av1dualfilter10.report.md.

No conflict: stream.rs auto-merged (the gate appends at a different anchor
than the tile/superres sweep gates).
Merge lane-av1distwtd @ 1aaf7e0b — dist-wtd-comp witness gate + census detector fix + two retirementsAhmet Kaan Gümüş · deb9682
Merge lane-av1distwtd @ 1aaf7e0b — dist-wtd-comp witness gate + census detector fix + two retirements

- crates/ec-av1/src/decode.rs: DIST_WTD_COMP_HITS counter on the `compound_idx
  == 0` arm in decode_inter_block / decode_inter_block8, with
  dist_wtd_comp_hits() / reset_dist_wtd_comp_hits().
- crates/ec-av1/src/stream.rs: a_distance_weighted_compound_stream_decodes_pixel_exact
  — spells --enable-dist-wtd-comp=1 AND asserts the PARSED sequence header's
  enable_jnt_comp, with the =0 arm asserting false from the same recipe.
- crates/ec-av1/src/gate_coverage.rs: gate_bodies() now resolves CALLS as well
  as spellings (encoder_fns/calls_fn/fn_units/legacy_gate_tokens) and
  covers_both_depths() recognises the pair-of-pixel-formats marker; the new
  test the_detector_sees_the_gates_the_spelling_filter_missed pins the fix as
  strictly ADDITIVE against the old spelling-only filter. Retirements:
  enable-dist-wtd-comp, enable-dual-filter (8-bit) and enable-flip-idtx
  (8-bit) leave NEVER_EXERCISED_8BIT; enable-dual-filter STAYS in the 10-bit
  list with a corrected reason.
- lanes/av1distwtd.report.md.

Conflict resolved in stream.rs: add/add at the end of `mod tests` (both lanes
append there). Kept BOTH sides; the shared trailing `    }` / `}` was hoisted
out of the hunk, so ours' last test needed its closing `    }` re-inserted
between the two blocks — verified by `cargo check -p ec-av1 --all-targets`.

FOREIGN EDITS PRESERVED, NOT COMMITTED: while this merge was in flight two
untracked/unstaged changes belonging to other lanes appeared in the primary
checkout. Neither is part of this lane.
1. A 465-line addition to crates/ec-av1/src/gate_coverage.rs (the
   lane-av1txsearch `bound_values` / `spelling_values` / `resolved_on_state`
   detector work, which duplicates four functions this merge had just added).
   Byte copy: $HOME/.cache/merge-wave-2-keep/gate_coverage.rs.lane-av1txsearch-leak
   — its owner lands it in /home/user/.cache/wt/av1txsearch.
2. lanes/av1mergecheck.report.md (a sibling read-only review pass's verdict).
   Byte copy: $HOME/.cache/merge-wave-2-keep/av1mergecheck.report.md.foreign
   — left untracked in the worktree for its owner to commit.
ec-av1: gate the 128x96 4:4:4 lossy tx-size-search cell (already fixed by 6c33f204)Ahmet Kaan Gümüş · 2352b57
ec-av1: gate the 128x96 4:4:4 lossy tx-size-search cell (already fixed by 6c33f204)

The sweep's 128x96 U+V variant of the "4:4:4 lossy + TX size search" divergence
was measured unowned. It is not open: 6c33f204 ("4:4:4 inter chroma units
inherit their own quadrant's luma tx_type") closes it, and this lane measured
that on both sides of the fix -- decode-order frames 2/3 differ from the oracle
in 608/692 bytes at 4155c7c7 and in 0/0 at 6c33f204 and at HEAD, first wrong
sample U(2,31) ours 111 vs 112. What was missing is the GATE: that fix's own
witness is pinned at 128x128, so nothing watched this geometry.

The charter's discriminator (ours EC_DQCOEFF/OUR_DQ against the oracle's
EC_DQCOEFF, frame 2, 134 units) splits dequant from transform: comparing our own
decode before and after the fix, 4 of 134 units change their tx_type and 0 of
134 change their dequantized coefficient map. The fault was the transform-TYPE
selection, not the dequant -- already fixed, so this lane ships no decoder
change. (Oracle-vs-ours by index is NOT a valid pairing here: 80 of 134
"disagreements" on a byte-exact decode, because the two decoders walk units in
different orders.)

New gate, live aomenc, two arms, with the search asserted in the BITSTREAM
rather than in the flag: every frame header's parsed tx_mode is Select on the
--enable-tx-size-search=1 arm and Largest on the =0 control, so neither arm can
pass on the other's stream. Recipe identity pinned by length + fnv1a64
(search-on 21830 B / 0x1ba3fe9a4335bdbb, control 21296 B / 0x2f87d8e98c9db686;
sha256 in the doc comment). Non-vacuity: ss (0,0) at 8 bits, 128*96 planes,
the length-asserting aomdec compare, and chroma_quad_leaf_tx_diff_hits() >= 2
on the search arm against exactly 0 on the control.

Red-before: reverting ONLY the per-quadrant resolve in the two copies of the
64x64 four-unit chroma arm (counters and gate untouched) turns the gate red on
decode-order frame 2 with exactly 608 bytes differing, green on restore. The
128x128 twin's own gate and a 4:2:0 identity run of this recipe stay green.
Merge lane-av1pins @ 44a05b40 — three recovered pins committed under the crate + gate rewiringAhmet Kaan Gümüş · 3ad7999
Merge lane-av1pins @ 44a05b40 — three recovered pins committed under the crate + gate rewiring

- crates/ec-av1/fixtures/golden3-pin.obu (159 B),
  ll444-lossless-key.obu (7845 B) and sbpart-pin.obu (238 B): pins recovered
  from a scratchpad tmpfs reaps, now travelling with the repo.
- crates/ec-av1/src/stream.rs: new helper `crate_pin(name)` resolves
  `crates/ec-av1/fixtures/<name>` first and falls back to `pin_dir()`;
  pinned_golden3_stream_decodes_pixel_exact and
  pinned_sbpart_stream_decodes_pixel_exact read through it and assert a frame
  count match against ffmpeg before zipping; the two 1:4 gates' stale blocker
  comment is corrected (the pixel blocker is gone, the RECIPE never fires).
- lanes/av1pins.report.md.

Conflict resolved in stream.rs: the two lanes made COMPETING edits to the same
arm of a_real_aomenc_lossless_444_key_frame_decodes_sample_exact.
  ours (lane-av1skipfix): read the pin from the gitignored root `fixtures/`
    via `pin_dir()`, with an opt-in EC_REQUIRE_FIXTURES / EC_AV1_REQUIRE_AOMENC
    hard fail.
  theirs (lane-av1pins): read the pin that this same merge COMMITS, via
    `crate_pin()`, but with a bare SKIP.
Resolution = theirs' provenance and committed-pin path, plus ours' no-silent-
green intent made unconditional: the committed pin is read through
`CARGO_MANIFEST_DIR` and a missing file PANICS with the regeneration recipe,
which is strictly stronger than the opt-in env fail (there is no environment
left to escape). Not `@both` -- the two sides are the same statement.
Merge lane-av1superhbd @ a2da03e4 — 4:4:4 superres at 10 and 12 bits, measured exactAhmet Kaan Gümüş · 5a80321
Merge lane-av1superhbd @ a2da03e4 — 4:4:4 superres at 10 and 12 bits, measured exact

- crates/ec-av1/fixtures/: 444_lossy_superres_256x128_d12_10bit.obu (15803 B),
  _d12_12bit.obu (11023 B), _d9_12bit.obu (13015 B),
  444_lossy_superres_mode2_256x128_10bit.obu (17776 B) and _12bit.obu (14656 B).
- crates/ec-av1/src/stream.rs: the 4:4:4 superres 10/12-bit gates.
- lanes/av1superhbd.report.md (parsed-header table, exact verdicts, the
  formatsweep correction to propose).
Merge lane-av1tilemeasure @ df1370dd — tile-rows / superres / odd-size cells the format sweep left openAhmet Kaan Gümüş · 2affdfd
Merge lane-av1tilemeasure @ df1370dd — tile-rows / superres / odd-size cells the format sweep left open

crates/ec-av1/src/stream.rs: the tile/depth sweep gates.
lanes/av1tilemeasure.report.md.
Merge lane-av1toolgates @ 4c4bd3e2 — gate enable-rect-tx at both depths on the PARSED partition shapeAhmet Kaan Gümüş · b1042e5
Merge lane-av1toolgates @ 4c4bd3e2 — gate enable-rect-tx at both depths on the PARSED partition shape

crates/ec-av1/src/stream.rs: two new enable-rect-tx witness gates (8-bit and
10-bit depth arms) that assert the decoded partition shape rather than the flag,
which is what closes the enable-rect-tx coverage hole.
Merge lane-av1mutproof @ ffd8d138 — report-only: mutation proof of the 4:4:4 10-bit and 12-bit format-sweep gatesAhmet Kaan Gümüş · 49056b3
Merge lane-av1mutproof @ ffd8d138 — report-only: mutation proof of the 4:4:4 10-bit and 12-bit format-sweep gates

Lanes lanes/av1mutproof.report.md only; no source, fixture or gate change.
Merge lane-av1gates444 @ 555c83f3 — three new measured-EXACT 4:4:4 lossy gates (66x66 / 130x122 / 256x128)Ahmet Kaan Gümüş · 4cf36e1
Merge lane-av1gates444 @ 555c83f3 — three new measured-EXACT 4:4:4 lossy gates (66x66 / 130x122 / 256x128)

- crates/ec-av1/src/stream.rs: a_444_lossy_odd_66x66_stream_decodes_pixel_exact,
  a_444_lossy_odd_130x122_stream_decodes_pixel_exact and
  a_444_lossy_256x128_stream_decodes_pixel_exact, live-aomenc gates whose
  recipe is byte-identical to the format sweep's; red-before measured on two
  mutations and the third cell measured NOT to be a superres cell.
- lanes/av1gates444.report.md.

Known defect carried by this lane, to be fixed after the wave (NOT here):
the three gates share a `if !have_aomenc() { eprintln!("SKIP …"); return
Vec::new(); }` arm, so on a host without the oracle all three return green
having measured nothing. They need the EC_AV1_REQUIRE_AOMENC hard-fail shape.
Merge lane-av1skipfix @ 960be978 — skip-on-decode-error gates converted to attempt loops + EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · 605faee
Merge lane-av1skipfix @ 960be978 — skip-on-decode-error gates converted to attempt loops + EC_REQUIRE_FIXTURES

- crates/ec-av1/src/refusal_inventory.rs: GATES_THAT_SKIP_ON_A_DECODE_ERROR
  emptied — the four arms it named now loop.
- crates/ec-av1/src/stream.rs: a_real_aomenc_lossless_444_key_frame
  (a_real_aomenc_lossless_444_key_frame_decodes_sample_exact) stops reporting
  green on a missing pin; the 444 pin arm honours the repo-wide
  EC_REQUIRE_FIXTURES.
- crates/ec-flac/tests/xiph_vectors.rs, crates/ec-h264/tests/conformance.rs,
  crates/ec-opus/tests/conformance.rs: a missing corpus FAILS under
  EC_REQUIRE_FIXTURES.
- scripts/link-fixtures.sh: give a worktree the gitignored root fixtures/.
- lanes/av1skipfix.report.md (incl. the per-crate assert-site rows),
  lanes/COMMON-20260901.md.

The four-crate fixture asserts (ec-h264 / ec-flac / ec-opus / ec-av1) are
covered by this lane's own report — see lanes/av1skipfix.report.md, per-crate
assert-site rows; no separate coverage task is opened for them.

Tip note: the branch head b696d485 is three commits past this tip
(commit the 444 lossless key-frame pin, rewire its gate onto
CARGO_MANIFEST_DIR, extend the report) and is NOT merged here; the dispatched
tip is 960be978.
Merge lane-av1chrtx @ ea97eb0c — per-unit leaf tx_type in rect inter chroma + the per-unit coefficient censusAhmet Kaan Gümüş · 4c92898
Merge lane-av1chrtx @ ea97eb0c — per-unit leaf tx_type in rect inter chroma + the per-unit coefficient census

Lands the reviewed census stack on top of the chrtx work:

- decode.rs: read_inter_rect_chroma resolves each rect inter chroma unit's
  tx_type from its OWN luma leaf instead of a single shared value; read_coeffs_rect
  gains a plane parameter so the EC_COEFF_STEP trace tags the real plane.
- stream.rs: the per-unit coefficient census rung EC_CENSUS_UNIT and its gate
  a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does.
- fixtures/444_rect_strip_leaf_tx_type.obu (26839 B).
- lanes/av1chrtx.report.md, lanes/av1readcensus.report.md.

Tip note: the branch head 6cc9ea6f is one commit past this tip
("lanes/av1readcensus: name the actual branch/worktree and fix the gate
name") and is NOT merged here; the dispatched, reviewed tip is ea97eb0c.
ec-av1: settle the 4:4:4 coefficient-read count asymmetry by measurementAhmet Kaan Gümüş · cf7d7f8
ec-av1: settle the 4:4:4 coefficient-read count asymmetry by measurement

The av1444rect round-4 report left 636 square chroma reads against the
oracle's 1086 (and 2052 vs 1309 luma) as "most likely a counting-shape
difference", established neither way. This measures it.

A new per-unit census rung (EC_CENSUS_UNIT) counts one unit per
read_coeffs/read_coeffs_rect call -- the object the round-4 count measured
-- carrying plane, w/h, tx_type, eob, all_zero and the msac state before
and after the unit. Paired against the oracle's existing EC_COEFF /
EC_COEFF_VAL bracket per av1_read_coeffs_txb call BY post_rng, never by
plane label or walk position.

On every pixel-exact 4:4:4 arm the counts are identical, unit for unit:
ll444_minp8_inter 11292/11292 (3764 per plane both sides, 975/1793/1859
coded), 444_lossy_rect4_inter_witness 1373/1373, 444_quad_leaf_tx_type
192/192. Bucket (i) is the whole census; there is no asymmetry to explain.

The round-4 numbers came from 444_intrabc_rect4_witness, which DIVERGES
(390380 of 921600 samples wrong) -- there the surplus is the divergence
itself, so the count could never have separated the two hypotheses.
Verdict: counting shape, and not even that on a pixel-exact arm.

Gate: a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does
pins the walk's object shape on two exact arms -- the all-TX_4X4 lossless
stream and a mixed-shape rect4 stream, which is what makes a var-tx fold
visible. Mutation-proven: dropping 8x8 units turns it red by name. The
census is armed per frame from the sequence subsampling, so the 4:2:0
control asserts exactly (0, 0, 0).
ec-av1: gate enable-rect-tx at both depths on the PARSED partition shapeAhmet Kaan Gümüş · 0f3e8bf
ec-av1: gate enable-rect-tx at both depths on the PARSED partition shape

`enable-rect-tx` sat on NEVER_EXERCISED_8BIT and NEVER_EXERCISED_10BIT with
the reason "never spelled; rect transforms reach the decoder only through
partition shape". One gate per depth now spells `--enable-rect-tx=1` and
pixel-compares every frame against ffmpeg, but the flag is CONTEXT, not the
witness: enable_rect_tx has no sequence-header bit (aom reads it only in
tx_search.c), so it never reaches a decoder and cannot be what a decoder
path is proven by.

The witness is the parsed shape. rect_partition_hits() counts
PARTITION_HORZ/PARTITION_VERT symbols actually read; rect_coeff_tu_hits()
counts rectangular TUs that coded coefficients through read_coeffs_rect.
Both asserted > 0 over the arms that decoded AND compared, and the two are
not redundant: the cq20/tx-size-search=1 arm reaches a rect transform
through var-tx on a SQUARE block (many rect TUs, zero rect partitions),
while the rect partition only appears on the tx-size-search=0 arm.

RED-BEFORE, both counters, each on its own message: neutering
hit!(RECT_PARTITION_HITS) (5 sites) and hit!(RECT_COEFF_TU_HITS) (1 site)
each fails both gates. The flag-revert is NOT claimed: --enable-rect-tx=0
does not zero either counter (39 rect TUs against 210 on cq20, because
--enable-rect-partitions=1 already forces non-square transform sizes), and
with all partition shapes off the flag yields no rect transform at either
setting. =0 does redden the gate, but through the oracle -- its
tx-size-search=0 arm is a stream ffmpeg cannot decode past frame 6 of 15 --
so the frame-count assert fires first and proves nothing about the tool.

The recipe is spelled in each test body, not in the shared helper:
gate_coverage's gate_bodies() splits on "\n    #[" and keeps a segment only
if that segment contains `--passes=1`, so a helper-owned recipe is invisible
to the per-depth derivation. With the recipe in the helper the two gates
collapsed into one helper segment that classified as 10-bit, and the 8-bit
hole stayed open.

gate_coverage.rs is deliberately untouched: the two now-stale entry lines
(8-bit at :213-216, 10-bit at :265) belong to the lane fixing the
shared-helper detector, and never_exercised_{8,10}bit_matches_the_gate_recipes
fails with exactly the "delete those entries" message that sequences it.
docs(av1superhbd): the parsed-header table, the exact verdicts, and the formatsweep correction to proposeAhmet Kaan Gümüş · 5af8d8d
docs(av1superhbd): the parsed-header table, the exact verdicts, and the formatsweep correction to propose

Includes the 12-bit flag-combination attempt table (seven combinations, all
parsed allow_screen_content_tools=true on testsrc2-class content, refused by
name; mandelbrot parses false and decodes) so the next lane does not re-derive
the source choice, and the exact replacement text for the two
av1formatsweep.report.md lines this cell closes -- quoted, not applied.