forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 052d1d3f81ff6b9e7c09b93b58c5e772d825fcb3Filtered to crates/ec-av1/src/gate_coverage.rsClear filter

2026-09-29

gate_coverage: make the count-vacuity scan comment-aware, ceiling 1 -> 0Ahmet Kaan Gümüş · cefac45
gate_coverage: make the count-vacuity scan comment-aware, ceiling 1 -> 0

The last unpinned row in the ledger was not a count. It was a `///` doc
comment quoting the pre-r4 body of `pinned_lr_sgr_stream_call_unique_dump` --
prose about code, sitting inside the gate the prose describes, which already
spends FRAMES and asserts `pics.len() == FRAMES`. A line-based scan cannot
tell the two apart, so that row sat in the ledger for a whole round as an
unpinned count no reader could act on, and the ceiling could never reach 0.

`sites()` now skips lines whose trimmed start is `//`. Only the SITE scan
skips them: the pin-window walk still sees every line, because a `//`-led line
there is a comment BETWEEN an assert and its call, not a site.

A coverage change gets a coverage test, in the shape `pin_inventory` already
uses -- a SYNTHETIC source, not the live tree, because a fix to the very gate
that motivated this would otherwise delete the row that proves the scanner
works. Both halves are asserted, and the second is the one that matters:

  * half one: a count call inside a `///` doc comment is NOT a site. That is
    the real row this change removes.
  * half two, the control: the SAME call as real code IS still a site, still
    attributed to the right gate, and still PINNED by an assert above it. A
    scanner that skips comments by skipping the wrong thing is identical on
    half one, and a ceiling of 0 is exactly the state where an over-broad skip
    would go unnoticed.

count-vacuity sweep: 59 site(s); 58 spec-pinned, 1 not -> 58 site(s); 58
spec-pinned, 0 not. UNPINNED_CEILING 1 -> 0.

RED-BEFORE, both halves, with the skip removed and the ceiling at 0:

  test ...::a_doc_commented_count_call_is_not_a_site_but_real_code_still_is
    ... FAILED
  test ...::the_count_vacuity_sweep_finds_the_known_sites ... FAILED
  1 unpinned count site(s), ceiling is 0 -- a new one was added
  test result: FAILED. 1 passed; 2 failed

so neither half of this change can be reverted silently.
stream: run the SVT split-transform gate on a committed pin, count off the wireAhmet Kaan Gümüş · 1e73b1b
stream: run the SVT split-transform gate on a committed pin, count off the wire

`an_svt_screen_palette_block_with_a_split_transform_decodes_exactly` read its
stream from whatever `EC_AV1_SVT1_STREAM` named and SKIPped when that was
unset, so on a stock box it never ran -- and an oracle count that cannot be
pinned is the same defect as one that is not: the gate was handing ffmpeg the
length of our own decode as the expected frame count, with nothing on the box
able to prove the number wrong.

The crop is now committed: `crates/ec-av1/fixtures/svt1-split-tx-pin.obu`,
1838 bytes, sha256
c9d9c0ae934fba72fc9a9374bc36853f290796a8a4d6442140e239669e0b341f. It is a
REPLAY, not a fresh capture -- two independent encodes of

    ffmpeg -v error -f lavfi \
      -i "smptehdbars=s=192x152:r=12,drawgrid=w=8:h=8:t=1:c=black" \
      -frames:v 1 -c:v libsvtav1 -preset 8 -crf 50 \
      -svtav1-params "lp=1:screen-content-mode=1" -g 12 -f obu out.obu

produce those exact bytes (SVT-AV1 v3.1.2). `-frames:v 1` is the part lane-
svt1's own 6x5x6 search lacked: it ran FOUR frames per stream and the
~200k-sample misses that killed every candidate were on the INTER frames
(lanes/svt1.report.md). One key frame has no inter frames, and this one
reaches the fixed arm and is pixel-exact.

The count is derived from the WIRE, not from a literal: the gate parses the
pin's own OBUs with `Av1Parser` and asserts `decoded.len() == frame_headers`
BEFORE handing that number to the oracle. A header count would OVER-count a
stream carrying `show_existing_frame` (spec 5.9.5 codes no pixels, so the
header count exceeds the shown-frame count), so that case is asserted
impossible on this pin rather than assumed -- which is what makes "one header
== one shown frame" a checked fact here instead of an argument.

`EC_AV1_SVT1_STREAM` still overrides the pin for a re-capture, and
`crate_pin` is called with a string LITERAL on purpose: the pin inventory
scans for that spelling, and a const argument would leave this pin outside the
"every pin a gate reads is a committed crate-local copy" invariant.

Non-vacuity, measured: the gate runs on a stock box with the env var unset
(0.18s, no SKIP), and `skip_split_tx_override_hits() > 0` mutated to `> 1`
reds -- so the premise arm fires exactly once on this pin and the gate cannot
pass blind. The count assert mutated to `frame_headers + 1` reds with
"the stream codes 1 frame(s), the decode showed 1", which is also the proof
the wire count and the decode agree.

count-vacuity sweep: 59 site(s); 58 spec-pinned, 1 not -- the SVT gate no
longer spends a decode-derived `.len()` at all, so it leaves the population.
Merge lane-av1pinspec: 41 of 43 unpinned count sites spec-pinned, ceiling 43 -> 2Ahmet Kaan Gümüş · b6966d6
Merge lane-av1pinspec: 41 of 43 unpinned count sites spec-pinned, ceiling 43 -> 2

Sweep unchanged in population (60 sites, floor 40 intact) and now reads 58 spec-pinned, 2 not.
Per-group red-before (un-apply one group -> the real guard reds) and six value mutations, one per
derivation shape, each printing the decoded count. Handed forward: the SVT gate site (stream named
by env, not a committed pin, so a wire-header assert would ship unexercised) and one doc-comment
false positive the line-based scanner cannot tell from code.
gate_coverage: lower the count-vacuity unpinned ceiling 43 -> 2Ahmet Kaan Gümüş · fbed1b6
gate_coverage: lower the count-vacuity unpinned ceiling 43 -> 2

The number the nine stream.rs commits above bring it to, with the two that
survive the round named in the comment. Neither is a count to fix:

  * an_svt_screen_palette_block_with_a_split_transform_decodes_exactly reads
    its stream from the path EC_AV1_SVT1_STREAM names, and that crop is not
    committed to fixtures/ -- so no encode recipe, no --limit, no -frames:v and
    no frame count exists anywhere in the tree for it. The doc comment's
    "12-frame stream" is prose about one capture, and the env var accepts any
    file, so asserting 12 would pin a number nothing can check. Deriving one
    from the stream's own OBU frame headers is left on the table deliberately:
    the gate SKIPs on any box without that env var, so such an assert would
    ship unexercised.
  * the second is a '///' doc comment quoting the pre-r4 body of
    pinned_lr_sgr_stream_call_unique_dump -- the sweep's line-based scan cannot
    tell a doc comment from code. The gate it describes already spends FRAMES
    and asserts pics.len() == FRAMES.

The floor (>= 40 sites) is untouched and the site population is unchanged at
60: the fixes assert the encode's count ABOVE the call rather than spending a
named constant in place of .len(), so each site moves from "not spec-pinned"
to "spec-pinned by a prior assert" instead of vanishing from the class. 41
sites become pinned and 43 - 41 = 2 remain.

Red-before for all 41 at once: with this ceiling and stream.rs reverted to
3b691e13, the guard reds with "43 unpinned count site(s), ceiling is 2". Since
each fix removes exactly one site from the unpinned population, removing any
one of the 41 asserts puts unpinned at 3 and reds this same assert.
test(av1): give every count-vacuity scanner matcher a positive controlAhmet Kaan Gümüş · 91a96ff
test(av1): give every count-vacuity scanner matcher a positive control

The wave-3e refutation of the pins5 guard turned up a class the sweep's own
floor could not see: an UNEXERCISED MATCHER IN A SOURCE SCANNER. The floor
(s.len() >= 40) and the unpinned ceiling (43) both catch a LOST shape.
Nothing caught a matcher that has never fired, so the scanner advertised
coverage it did not have.

Measured every matcher in count_vacuity against the real scan target:

  ffmpeg_decode_sequence_444( -- NOT dead, my first read was wrong. It fires
  on five stream.rs gates (7030, 7545, 7735, 8439, 11643) and produces no
  count-vacuity SITE only because all five pass the spec const FRAMES rather
  than a decode-derived .len(). KEPT, with that reason recorded at the const.

  Nine spellings that fire on nothing anywhere in the crate -- DELETED, each
  with grep evidence that the string occurs nowhere outside the matcher table,
  so there is no hypothetical caller to name and no coverage is lost:
    diagnostic                          (probe substring, 0 fns)
    the_chroma_rect_gates, restore_gate,
    cdef_gate, superres_gate,
    grain_gate, sgate                   (encode helpers, 0 fn bodies)
    NFRAMES, frames_expected            (spec bindings, 0 fn bodies)

All tables are now single-sourced pub consts (CALLEES, PROBE_SUBSTRINGS,
ENC_HELPERS, FIXABLE_CANDS, AOMENC_LEAF, DISK_READ_LEAVES, PIN_WINDOW) and
every_scanner_matcher_fires_on_a_known_site iterates those same consts, so a
matcher cannot be added later without a control that has to pass. The brace
walk is extracted from sites() into fn_body_end so the control measures the
EXACT slice the scanner classifies with (control-and-measurement-drift).

Mutation: re-adding "sgate" to ENC_HELPERS reds the control --
  the encode-helper matcher `sgate(` matches NO fn body in stream.rs -- it is
  dead coverage (grep the crate: ...)
Restored, control ok.

The sweep is UNCHANGED, which is the proof the deletions cost nothing:
  count-vacuity sweep: 60 site(s); 17 spec-pinned by a prior assert, 43 not
  test result: ok. 3 passed; 0 failed
test(av1): generalise the count-vacuity guard, and hand the 43-site ledger forwardAhmet Kaan Gümüş · 9c0e824
test(av1): generalise the count-vacuity guard, and hand the 43-site ledger forward

Rebased onto main 97b4ee04. The preflight lane had independently landed the r5 pin
work, with a BETTER shape -- `crate_pin` string literals are resolvable name-by-name
and so never create the runtime-name blind spot my r5 form did. All three
conflicted hunks resolved to main's side; the duplicate pin commit became a no-op.
Diff vs main is now 3 files, +1215/-8, additions only.

The r7 anchor asserted ONE literal at the fixed gate and would have gone quiet as
other sites are fixed. It now asserts the general rule -- no decode-derived count
(`pictures.len()` / `decoded.len()` / `frames.len()`) may reappear at that gate
under any binding name -- plus an unpinned CEILING of 43, so a NEW site is an
immediate red and the ceiling drops only when a site is actually fixed.

The report carries the full 43-row ledger (a=1, b=37, c=4, ?=1) with bucket,
candidate, spec_in_scope and a per-row disposition; names the one genuinely
unclassified gate with its reason rather than guessing; records the three
detection bugs that each produced a plausible clean output (a line index handed to
a byte-offset walk; `assert_eq!` split by rustfmt; a `}` inside a format string
counted as a closing brace); and states the class note so the next reader does not
chase a nonexistent silent-pass bug -- a wrong count cannot pass silently, the
helper's length assert fires, and the defect is a MISATTRIBUTED RED that
`frame_count_diagnosis` now explains.

gate_coverage 18, refusal_inventory 19, count_vacuity 2, pin_inventory 3, 0 warnings.
test(av1): classify the count-vacuity sites by reading, and fix the first oneAhmet Kaan Gümüş · 862cfda
test(av1): classify the count-vacuity sites by reading, and fix the first one

Main's r7 item 1, done by READING rather than by regex, and printed per site so
the classification is auditable: `ROW <line> | <gate> | <count expr> | bucket |
candidate | spec_in_scope | <reason> | pixel_comparing`, on every run.

Buckets, computed from each gate's own body (string-aware extent):
  b  38  live aomenc encode -> the count belongs to the ENCODER
  a   1  stream read from disk -> the count belongs to the pin
  c   4  census/probe -> report only, never fix
  ?   1  unclassified, with the reason printed rather than a guess

A third offset bug, same family as the two r6 caught: the sweep handed its
body-walk a LINE index where a BYTE offset was required, so every
body-dependent classification read "unclassified" -- 40 of 44. It is the third
time in this lane that a line/byte or slice-boundary confusion has silently
produced a plausible-looking clean result.

FIXED: stream.rs:3895, `a_real_aomenc_segmentation_stream_with_map_inheritance_
decodes_pixel_exact`. `ffmpeg_decode_sequence(..., pictures.len())` now passes
`ENCODED_FRAMES` (40), the count its own `encode_aomenc_stream(...)` call
encodes. Our decode's length was the thing UNDER TEST, so using it as the
oracle's expected count was circular. Gate green, 2.05 s, now comparing 40
frames against ffmpeg's 40 rather than a self-fulfilling number.

The sweep's "known site" anchor MOVED with the fix: it used to assert
`pictures.len()` was still present, which went red the moment the fix landed.
It now asserts the opposite -- no site may pass `pictures.len()` again -- plus
that the dominant `frames.len()` shape is still found, so the sweep cannot go
quiet by either route.

NOT DONE, and this is the honest part: 38 of the 39 fixable sites. The sweep
prints a `candidate` (the numeric frame count in the gate's own encode call) and
it resolves for exactly ONE gate; the rest encode inside loops or through
per-gate helpers whose frame-count argument must be read per gate. I am handing
those back with the method rather than editing 38 call sites on a guess, for the
same reason r6 refused the 44-row table on an untrustworthy column.

gate_coverage 15, refusal_inventory 15, count_vacuity 2, pin_inventory 3, and the
fixed gate all green. 0 warnings. Lane-scoped CARGO_TARGET_DIR with touch-first.
test(av1): make the frame-count failure name the real cause, and classify the defectAhmet Kaan Gümüş · e107603
test(av1): make the frame-count failure name the real cause, and classify the defect

Main's r6 item 1, and it is the change that matters: a caller passing our own
decode's length as the oracle's expected count used to get

    expected N 4:2:0 frames, ffmpeg said: <empty>

with an EMPTY tail, because ffmpeg runs at `-v error` and succeeds. The message
named ffmpeg, said nothing about where N came from, and sent the next reader
hunting ffmpeg for a count ffmpeg never chose. All three helpers
(`ffmpeg_decode_sequence`, `_10bit`, `_444`) now share `frame_count_diagnosis`,
which reports the caller's count, ffmpeg's ACTUAL count, the byte arithmetic, and
states that `frames` is the caller's assertion rather than a measurement -- and
that if it came from our own decode_stream(), the disagreement is OURS.

Measured, same probe as r5:
    FRAME COUNT MISMATCH (4:2:0 192x128): the caller passed `frames=0`, ffmpeg
    produced 1 frame(s) (36864 bytes, 0 byte(s) not a whole frame, at 36864 B/frame).
    `frames` is the EXPECTED count the CALLER asserted -- it is NOT measured from
    ffmpeg... the fix is on OUR side, not ffmpeg's. ffmpeg itself exited cleanly.

This converts most of the 44 from confusing to diagnosable WITHOUT touching a
single caller, which is the whole point: 44 edits of unclear value was the risk.

`count_vacuity` keeps the floor and gains the note r6 item 3 asked for, naming
the TWO defect classes so the next reader does not repeat r4's mistake:
MISATTRIBUTED RED (what these sites are) vs SILENT PASS (a different defect with
a different fix, which these are NOT).

Sweep result, after fixing two detection bugs of mine: 61 sites, 17 spec-pinned,
44 not, across 30 distinct gates. The line/gate/count columns are exact (a
line-based scan with no body slicing). The `pixel_comparing` column is
APPROXIMATE and under-reports -- I sampled three gates it marks `false` and all
three plainly compare planes (4-5 plane-compare lines each). Its body slice is a
hand-rolled brace walk, and this crate's compare idioms vary enough that the
heuristic is not trustworthy. I am reporting that rather than shipping a 44-row
table derived from it: the classification needs a reader, not a regex.

Sites FIXED at the source: none beyond r4's. The 44 are reported with gate and
count expression, and fixing them means deriving each count from the fixture or
from the encoder's own frame count -- per-gate work across 30 gates, which is the
next lane, not this commit.

gate_coverage 15 passed, refusal_inventory 15, count_vacuity 2, pin_inventory 3,
pinned_golden3 green. 0 warnings. `#[ignore]` unchanged at 34.
test(av1): a pin scanner that sees every shape, and a count-vacuity sweepAhmet Kaan Gümüş · 6049140
test(av1): a pin scanner that sees every shape, and a count-vacuity sweep

The r3 inventory matched two single-name call shapes and reported "the
machine-local-pin population is zero". `pinned_warp_stream_decodes_pixel_exact`
read 14 pins through a directory `concat!` literal plus a runtime
`format!("{fixtures}/{n}.obu")`, matched neither, and was invisible to it.

`pin_inventory` resolves FIVE shapes: crate_pin("X"), pin_dir().join("X"),
a whole-file concat! literal, a directory literal + runtime name, and (e) the
shape THIS FIX INTRODUCED -- `crate_pin(&format!("{n}.ext"))`.

Shape (e) is the one worth reading. Rewriting the directory literal as a
committed-path lookup made the gate CORRECT and simultaneously INVISIBLE:
`crate_pin("` no longer appears, shape (a) found nothing, and the enumerator
reported a CLEAN tree while 14 pins were read. A false pass is worse than the
original gap -- the original at least showed up in a filesystem audit. It was
caught by the `reads.len() >= 20` floor in the invariant test, which is why that
floor is there. This is the general lesson: fixing a shape can blind the check
that was watching it, so the check needs a floor AND a capability test that does
not depend on the live tree.

Capability tests use SYNTHETIC source, not the live file -- asserting against
the live tree would rot the moment the fix lands, which is exactly how a scanner
loses its edge and reports a clean tree again. Two of the three bugs in this
scanner were found that way: a `format!` brace-escape that emitted `{n` instead
of `{n}`, and a `find(')')` that stopped at `len()`'s own paren and silently
yielded ZERO sites.

`count_vacuity` enumerates every site that passes a locally-derived count as the
oracle's expected frame count: 61 found, 13 spec-pinned by a prior assert, 48 not.

CORRECTION to r4, which reported this shape as a "vacuous pass" and told Main
so. MEASURED by calling `ffmpeg_decode_sequence(&stream, 192, 128, 0)` on a real
pinned stream under `catch_unwind`: it PANICS at `stream.rs:5110` with
"expected 0 4:2:0 frames, ffmpeg said: ". The helper asserts
`out.stdout.len() == frame_bytes * frames` unconditionally, so a wrong count
cannot pass silently -- it REDS, with a message blaming FFMPEG for a count OUR
decoder chose. The consequence is a MISATTRIBUTED RED, not a silent pass. r4's
FIX is still right (the count now comes from the fixture, so the red names the
real cause); the justification was wrong, and a sweep repeating it would send the
next reader after a bug that does not exist.

The 48 unpinned sites are REPORTED, not fixed: that is an unbounded change across
gates this lane does not own. The pin-class gates are all clean -- 0 unpinned
count sites in lr_sgr, check_pinned_warp_stream, golden3, sbpart and film-grain.

`pinned_warp_stream_decodes_pixel_exact` is live and green: 14 pins read from
`crates/ec-av1/fixtures/`, 1 passed 0 failed 0 ignored, 1.47 s.
`#[ignore]` 36 -> 35. gate_coverage 15 passed, refusal_inventory 15 passed.
Tests and test helpers only; the frames=0 probe was deleted before this commit.
test(av1): commit the 14 warp/ii/rect pins — recovered originals, not re-encodesAhmet Kaan Gümüş · 58978d8
test(av1): commit the 14 warp/ii/rect pins — recovered originals, not re-encodes

Same defect as r3's four, one level deeper, found by a scanner that could not
see it. `pinned_warp_stream_decodes_pixel_exact` read its pins through a
DIRECTORY `concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures")` literal plus a
runtime `format!("{fixtures}/{n}.obu")` over a name list. A scanner built on
single-name call shapes (`crate_pin("X")`, `pin_dir().join("X")`) matched neither,
so r3's "the machine-local-pin population is zero" was wrong: these 14 existed,
uncommitted, the whole time.

PROVENANCE: `recovered-original` for all 14. Fetched byte-for-byte from the runner
library (`~/gates/library/fixtures`), verified identical in three independent
locations (this worktree's staged copy, a local /tmp copy, and the runner library
itself) before committing — 14/14 identical, 0 mismatches. NOT regenerated: these
are the actual historical mismatch witnesses (a warp-mismatch, a warp-sample
clamp, interintra neighbour flakes, rect-strip flakes), and a re-encode would be a
different stream that must not be called the pin.

  warp-mismatch.obu    621 B  24cca5beb41c1078f8109d8fa7e35f10cc1eefb67c6d1d1ea248a0b6842287bb
  warp-flake-5.obu     602 B  1a99f9e5b257eed0ebae055441904d6c40962a26c0c2d63c3e051732569ff0a0
  warp-flake-7.obu     723 B  c2f8b93f5a59c56b1c4453ea789e0fc955557ed9b63c0e2cb8683fa483eff2b5
  ii-flake-1.obu       579 B  700ded3e61e15bc3573d339d7fcc6ab94500adb796c30021094d354306662238
  ii-flake-2.obu       581 B  edc4ad3a6c00c6bc909c626fa24433ef31a88ed519ed57403f5373a160e590af
  ii-flake-3.obu       670 B  994bfbdc952ecef18ae1560d5e7f121ba1000172e0bc2ad05e5b8cfaa17b15cb
  ii-flake-5.obu       681 B  f43fe77ea0e8ddd9c1524b642e09f935921cb0d00c4a60061a52d2260af38b9a
  ii-flake-6.obu       632 B  84a1f60011dfdb77ede98ce95a25d247d270b0af1cff2c44aa1e6b311ca63dce
  ii-flake-7.obu       654 B  61ba4d114aa55ebcf95ae691abbce3307146a2d969c0627ea3ceea02f3875574
  ii-flake-8.obu       635 B  f19d3d80ed564850cec02a26cfe7ab00e282afa7896821c535a117f5541bef5d
  ii-flake-9.obu       690 B  0df4874737cc615258c0fdfb4bcb157c9a3663127cbf0a896af44d4deb83c653
  rect-flake-1.obu     607 B  a3869b5d2bd8a8bc5413e0d039d5e3375a48601cdeb2edb8d4b732402926d357
  rect-flake-2.obu     601 B  c780ddee1adf25cf63a6ba70ff449820f6f4474b23ef16615c1e843ad0c86adb
  rect-flake-3.obu     572 B  3b23d204549b7bcfbd7166b1b3e2920580236c78de12e8f23f7fb64c1864f3e6

The gate now resolves them through `crate_pin` and its helper through
`require_pin`, so a missing pin is a hard failure naming the path and the
generator rather than a raw io panic. `.gitignore`'s
`!crates/*/fixtures/**` negation means a plain `git add` suffices — verified with
`git check-ignore -q` (returns 1, "not ignored") and by staging with no `-f`.

Committed on its own so the bytes are durable independently of the scanner and
gate-rewiring work that follows.
Merge lane-av1oracleskip r3 @ 7a865ee7 — the oracle-presence scan that closes the class structurallyAhmet Kaan Gümüş · b4cb053
Merge lane-av1oracleskip r3 @ 7a865ee7 — the oracle-presence scan that closes the class structurally

# Conflicts:
#	crates/ec-av1/src/gate_coverage.rs
gate_coverage: the oracle-presence scan — the class can no longer reopen silentlyAhmet Kaan Gümüş · 693b415
gate_coverage: the oracle-presence scan — the class can no longer reopen silently

r2 closed the bare `aomdec_path().is_file()` class on the current tree but left
the anti-regression procedural, and that is how the five r2 sites got there in
the first place: a guard written the old way compiles, passes review and
re-opens the hole. This adds the mechanical check, in the crate's existing
source-scan shape (include_str! over stream.rs/decode.rs/encode.rs, next to the
recipe re-derivation that already scans stream.rs).

The rule: a tool presence check (aomenc/aomdec/affine `_path().is_file()`,
plain or inverted) may appear only inside the probe that owns that path
(have_aomenc, aomdec_available, have_affine_aomenc), inside an assert!, or in
a comment. The scan derives each probe's line span from its fn opener to the
first column-0 brace and asserts it found all three, so a moved probe reds
instead of silently exempting the crate. Anything else fails naming file:line,
the line text, and the fix. Current state: 7 sites inspected, 7 allowed, 0
offenders.

Two floors, because a total alone hides a single broken matcher: a structural
total (MIN_SITES = 5 = three probes + two asserts, so prose churn is not
load-bearing) and a PER-PATTERN floor requiring each of the three path patterns
to match at least once. The per-pattern floor earned its place on its first
run by catching a real bug in the matcher one line above it —
`affine_aomenc_path().is_file()` CONTAINS `aomenc_path().is_file()`, so a
first-match scan credited the affine probe's line to the aomenc pattern; the
matcher now takes the longest match.

Mutations, both reverted (git diff on stream.rs empty, scan green):
- a bare `if aomdec_path().is_file()` injected into gate_444_lossy_live_exact
  -> RED naming `stream.rs:7634`;
- one pattern replaced by a non-matching `aomdec_path().exists()` -> RED on the
  per-pattern floor ("matched NOTHING … the gates it was meant to police would
  pass unreviewed"). With only a total floor this one PASSES: the other two
  patterns still add up to 6 sites.
`touch` on every scanned source before every run — these scans read
compile-time text.

Acceptance: gate_coverage + refusal_inventory 27 passed, 0 failed; the gates
the review named still pass with the oracle present (5 passed).
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`.
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.
gate_coverage: fix the two census defects that generated the false entriesAhmet Kaan Gümüş · 143cdf9
gate_coverage: fix the two census defects that generated the false entries

r2 corrected the false CLAIMS. This fixes the LOGIC, so it stops generating
them. gate_coverage.rs only: no gate, counter, fixture or decoder behaviour
touched, and stream.rs is byte-identical to HEAD.

1. gate_bodies() now recognises a gate by what it CALLS, not only by what it
   spells. fn_units parses every fn in stream.rs as (name, body); encoder_fns
   takes the transitive closure of fns reaching one that names
   aomenc_path(); the filter is `legacy_gate_tokens || contains aomenc_path()
   || any calls_fn`. The call test is deliberately the weak half of an OR, so
   the fix is strictly ADDITIVE: it can add gates but can never stop
   recognising one the old filter did, and the new test asserts exactly that
   containment. calls_fn requires `(` after the name and rejects a name that
   is the tail of a longer identifier, so inter_sb_none_gate does not "call"
   sb_none_gate.

2. covers_both_depths gained the third spelling of the lane-defon/reelckf blind
   spot: a body naming BOTH fixture formats builds both depths, whatever the
   parameter is called. The quotes matter -- a bare `yuv420p` substring test
   also matches `yuv420p10le` and would fire on every 10-bit gate, retiring
   entries on no evidence.

Before/after: 146 -> 230 gate bodies seen, 83 -> 107 classified 10-bit+.
Retired `enable-dual-filter` and `enable-flip-idtx` from the 8-bit list, each
citing the arrival assert that pays it (dual_filter_diff_hits() moved;
compared_class1 > 0). NEVER_EXERCISED_8BIT is down to one live entry
(enable-rect-tx, the tool with no header bit and no spelling anywhere).

RED-BEFORE, three mutations, all reverted. Mutating the helper-based
dual-filter spelling to =0 reds two tests: the 8-bit list correctly reports
the entry back as a hole, and the new detector test reports "seen, but its
=1 spelling is not visible" -- which separates recognition-broken from
tool-no-longer-enabled. Mutating --enable-dist-wtd-comp=1 -> 0 in a gate the
OLD filter already recognised reds at both depths, so the spelling path is
intact. Reverting only the pair-of-formats clause reds the flip-idtx entry
back plus the detector test. All 10 gate_coverage tests green after revert.

`enable-dual-filter` at 10 BITS STAYS, and that is the finding, not an
oversight: the only =1 witness calls inter_sb_none_gate with ten_bit=false, so
it builds an 8-bit stream only. The 10-bit entry now says so and names the
fix (pass `true` in that gate, assert the differing-direction counter still
moves). Reported rather than papered over.

Also recorded, as a separate row in the report and in-file: the
enable-tx-size-search claim is STILL unsettled, because 9 gates build the
flag into a format! variable neither flags_in nor settings_in can see. 113
name it (88 =0, 15 =1, 9 unknown) -- a floor, not a measurement. The report
gives the method: resolve the local binding the way gate_bodies now resolves
calls, then re-count.

New test the_detector_sees_the_gates_the_spelling_filter_missed pins all of
it, so the next blind spot of this shape fails loudly instead of quietly
overstating coverage again.
gate_coverage: correct four false claims and two stale countsAhmet Kaan Gümüş · c784567
gate_coverage: correct four false claims and two stale counts

An audit of every CLAIM in gate_coverage.rs against the code. No counter,
gate, or decoder behaviour changed -- the only non-comment lines in the diff
are three entry reason strings (272, 293, 376).

TWO ENTRIES THAT ARE NOT COVERAGE HOLES AT ALL.

`enable-dual-filter` (8-bit :270, 10-bit :374) said "never spelled by any
gate, so defaulted = unknown; no stream is proven to carry per-direction
interp filters". False on both halves. It IS spelled, as `=0`, by two gates.
And a stream IS proven to carry it:
`a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact`
spells `--enable-dual-filter=1` and hard-asserts `dual_filter_diff_hits()`
moved, which is exactly the arrival assert this file's own rule demands.
Measured on aom 3.13.3 with our own parser: flag left off the command line
parses `dual_filter=true` (6855 B), the same recipe with `=0` parses
`dual_filter=false` and encodes different bytes (6874 B). "Defaulted means
unknown" is the right rule; it was applied to a premise that does not hold.

`enable-flip-idtx` (8-bit :291) said "never spelled". Two gates spell it, one
of them the very gate the 10-bit list names. Ran it: 12 pixel-exact decodes,
6 of them 8-bit, 219 rect coefficient TUs of which 10 carry a 1D tx class,
and `compared_class1 > 0` hard-asserted. The 1D types demonstrably reach a
real 8-bit stream this decoder reconstructs exactly.

Both survive only as census artefacts, and the causes are structural:
`gate_bodies()` (:421) keeps a `#[test]` segment only if it spells
`--passes=1`/`ten_bit_tool_gate(`/`encode_10bit_gradients`, so a gate whose
recipe lives in a shared helper is invisible -- 165 of 311 segments are
filtered out and 6 of those spell `--enable-X=1`. And `covers_both_depths`
(:599) cannot see a `ten_bit`-parameterised recipe, so is_ten_bit files the
flip-idtx gate 10-bit-only and hides its 8-bit arm. Neither defect is fixed
here: the entries stay so this file's own test stays green, and the loud
flag for the coverage matrix is in lanes/av1distwtd.report.md.

VERIFIED TRUE, left alone: enable-rect-tx at both depths (and now PROVEN
rather than asserted -- aom has no header bit for it, `enable_rect_tx` is
read only in tx_search.c, so the decoder's gate is is_rect_tx_allowed from
partition shape); the cfl-intra, intrabc, restoration, 1to4, global-motion
and superres gate-naming comments, each checked against that gate's own
asserts; the cfl-intra gate's skipped-CfL name being the one overstatement,
its asserts cover directional 1:4 pairs and defer skipped-CfL to a different
gate; every DEFAULT_ON_TOOLS default, confirmed against `default_extra_cfg`
with CONFIG_REALTIME_ONLY 0; and the palette/intrabc content-dependence
(encoder.c:2079).

STALE COUNTS, corrected with the measured figure: "all 49 gates" naming
tx-size-search (now 113 name it: 88 `=0`, 15 `=1`, 9 via a format! the
census cannot see, so the claim no longer holds either way); "13 gates" for
tiling (19 spell a nonzero log2, 9 assert in-body, 10 via a helper); "all
three" superres gates (6); "Only 4 of the 45" 10-bit gates (83 of 146).
Rot-prone counts are now stated without a number where a number would rot.

The module doc's "a flag left off the line takes aomenc's default (on)" is
reworded to the point it was papering over: the default is 1, but a 1 proves
the encoder was ALLOWED the tool, never that a block used it -- palette and
intrabc are content-gated and speed_features.c re-masks per --cpu-used.

Evidence table, the claims-a-gate spot check, and the two structural defects:
lanes/av1distwtd.report.md.
av1: close the enable-dist-wtd-comp coverage hole with a real witness streamAhmet Kaan Gümüş · b93fec6
av1: close the enable-dist-wtd-comp coverage hole with a real witness stream

The coverage census listed `enable-dist-wtd-comp` in NEVER_EXERCISED_8BIT
with the reason "distance-weighted compound is unimplemented". That reason
was WRONG. The combine is implemented: `compound::dist_wtd_comp_weight_assign`
(lane-av1comp) and `mc::combine_compound`'s weighted path have been in the
tree for a long time. What was missing was a stream CARRYING the tool, so
the census read the entry as open and no gate ever proved the tool fires.

STEP 0 (producibility, against aom 3.13.3): the flag maps onto the sequence
header's `enable_jnt_comp` bit -- `av1_cx_iface.c:1062` ->
`order_hint_info.enable_dist_wtd_comp`, written at `bitstream.c:2681` under
`enable_order_hint` and AND-masked by it at `av1_cx_iface.c:1491`. The
parsed header is asserted, never the flag spelling. Measured: the same recipe
parses `jnt_comp=true` with `=1` and `jnt_comp=false` with `=0`, and the arms
differ on the wire (6855 B vs 6911 B). A flag the encoder accepted but
ignored would fail both asserts.

The gate: `--enable-dist-wtd-comp=1` over rotating mandelbrot at
`--min-partition-size=32 --cq-level=30` (both load-bearing -- at min=16 the
encoder emits 8x8 inter leaves this decoder refuses BY NAME before the
`compound_idx` read runs, and at cq 45/55 the stream has no compound block at
all). Three hard asserts: the PARSED header carries `enable_jnt_comp`; the
`compound_idx == 0` arm fired (`dist_wtd_comp_hits() > 0`); and every frame is
pixel-compared against the oracle with lengths asserted first.

decode.rs is additive only -- a `DIST_WTD_COMP_HITS` counter and two `hit!`
calls inside the existing `idx == 0` arm. No blend arithmetic is touched, so
the single-reference path is unaffected (neither bump site is reachable
without a second reference) and 12-bit is unaffected (`combine_compound`
already carries the `round_delta` post-round from lane-av112bit).

Measured: 25 oracle frames, 21 distance-weighted blocks. Red-before, both
directions. Mutating `dist_wtd_comp_weight_assign` to return the (8, 8)
simple average reds the pixel compare at decode-order frame 7 (552 bytes
differ); disabling the counter reds `dist_wtd_comp_hits > 0` with the pixels
still green, which is what separates "the counter can fire" from "the pixel
compare alone would catch it".

Regression: 35/35 compound gates green (8/10/12-bit, including the 12-bit
8x8 leaf) and 15/15 4:4:4 gates green. 4:4:4 reaches the same arm
independently (22 blocks at cq 20, 21 at cq 30, pixel-exact both) and 12-bit
reaches it too (15 blocks), so the tool is not 4:2:0-only.

2026-09-25

gate_coverage: retire the stale 8-bit enable-global-motion entry + classify 12-bit gates as high-depthAhmet Kaan Gümüş · 4753516
gate_coverage: retire the stale 8-bit enable-global-motion entry + classify 12-bit gates as high-depth

a_real_affine_global_motion_stream_decodes_pixel_exact loops [8u32, 10u32]
passing --enable-global-motion=1 pixel-exact at both depths since
lane-gmaffine r1, so the 8-bit hole was already closed; the entry survived
because no suite ran a tree containing both the gate and this test until
the ROTZOOM suite. is_ten_bit now also recognizes the 12-bit spellings
(encode_12bit(, --bit-depth=12, --input-bit-depth=12, yuv420p12le) so
12-bit gates land in the high-depth bucket.

2026-09-17

docs(av1): intrabc_hits counts DV READS (a refused rect-strip block bumps it but is never reconstructed); depth-parameterised recipe helper counts at both depths in the gate-coverage derivationAhmet Kaan Gümüş · b89dee0
docs(av1): intrabc_hits counts DV READS (a refused rect-strip block bumps it but is never reconstructed); depth-parameterised recipe helper counts at both depths in the gate-coverage derivation

2026-09-02

Merge branch 'lane-kf900' (5a28354): intrabc chroma tx_type and palette neighbour bandsAhmet Kaan Gümüş · 11a8d8e
Merge branch 'lane-kf900' (5a28354): intrabc chroma tx_type and palette neighbour bands

Chroma transform units under intrabc inherit the luma tx_type; palette
neighbour bands are recorded per mi. Clean merge, no conflicts.

Gates: intrabc (7 arms) / rect_strip_palette / palette / refusal_inventory /
gate_coverage / base_ctx_rect_offsets -- 23 passed. Both
split_transform_intra_block arms are green again; only
a_frame_edge_straddling_band_decodes_pixel_exact remains red (known
cross-product, mergefix lane).

Merged at r6 (5a28354) and NOT retired: the lane's r7 round is still running
in its worktree.
test(av1): enable-intrabc leaves the 10-bit never-exercised list -- the new palette+tx-size-search gate arms spell --enable-intrabc=1 and pixel-compare at 10 bitAhmet Kaan Gümüş · 94e1d30
test(av1): enable-intrabc leaves the 10-bit never-exercised list -- the new palette+tx-size-search gate arms spell --enable-intrabc=1 and pixel-compare at 10 bit

`never_exercised_10bit_matches_the_gate_recipes` caught this itself: the r6 gate arms
`smptebars-screen-txs-cq40/cq55` run at 8 AND 10 bit with `--enable-intrabc=1`, so the
10-bit coverage hole for the tool is closed by the same arms that gate the palette fix.
fix(av1): an intrabc block's chroma tx_type is inherited from its luma transform, not derived from the chroma intra mode -- every screen-content key frame with a real intra-block-copy block desynced at the first chroma eob symbolAhmet Kaan Gümüş · d68cb84
fix(av1): an intrabc block's chroma tx_type is inherited from its luma transform, not derived from the chroma intra mode -- every screen-content key frame with a real intra-block-copy block desynced at the first chroma eob symbol

libaom av1_get_tx_type (blockd.h) branches PLANE_TYPE_UV on is_inter_block, and
is_inter_block counts is_intrabc_block (blockd.h:373), so an intrabc block's
chroma tx_type is the colocated luma transform's coded type. We applied the
intra rule (intra_mode_to_tx_type of the chroma mode) and read DCT_DCT where
libaom had V_DCT: TX_CLASS_2D instead of TX_CLASS_VERT changes eob_multi_ctx,
the scan order and every nz context. Ladder (EC_TRACE_COEFF both decoders,
256x192 8-bit screen key frame): luma exact through after_bases rng=58543,
first divergence at the chroma eob, ref 65032 (eob 8) vs ours 37532 (eob 5).

The chartered premise -- a desync inside read_intrabc_dv -- was stale: the
oracle's EC_TRACE_IBC rung and our own trace both give dv=(-512,-608) at that
block, and a wrong DV predictor cannot move the bitstream position anyway.

Gate a_real_aomenc_screen_key_frame_reads_use_intrabc_on_rect_strips grows from
3 to 7 arms, spells --enable-intrabc=1, compares every frame of every decoding
arm and asserts a per-arm intrabc-block counter: 4 intrabc blocks across 3 arms,
all pixel-exact vs ffmpeg, 0 out-of-scope mismatches. gate_coverage drops
enable-intrabc from its 8-bit never-exercised list (its stated premise, "every
real stream's intrabc block sits under TX_MODE_SELECT", is disproven).
Merge branch 'lane-r14' (b86eb38): general sub_tx_size_map and (row,col,tw,th) var-tx leaves, plus rectangular inter leaf codingAhmet Kaan Gümüş · fcf808d
Merge branch 'lane-r14' (b86eb38): general sub_tx_size_map and (row,col,tw,th) var-tx leaves, plus rectangular inter leaf coding

Var-tx split now recurses with a general sub_tx_size_map and codes leaves by
(row, col, tx_w, tx_h) instead of a square-only shape, so a split transform on
a 1:4 inter strip with a 64-px axis decodes instead of refusing. Refusal
dropped from refusal_inventory.rs; gate_coverage drops enable-tx64 from the
never-exercised set.

Gate: real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal
Suite: 382 passed / 0 failed / 33 ignored.
test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage listsAhmet Kaan Gümüş · 52a7f38
test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage lists

The gate passes --enable-cfl-intra=1 at 8 and 10 bits, so both
NEVER_EXERCISED lists drop it. covers_both_depths also learns the
'for depth in [8usize, 10]' spelling: such a gate builds both streams from one
recipe, but its yuv420p10le arm made is_ten_bit classify it 10-bit only.
feat(av1): rectangular var-tx leaves -- the SPLIT transform of a 1:4 inter strip with a 64-px axisAhmet Kaan Gümüş · 00d3d4e
feat(av1): rectangular var-tx leaves -- the SPLIT transform of a 1:4 inter strip with a 64-px axis

libaom `sub_tx_size_map` (common_data.c) keeps a 1:4 strip's sub-transform
RECTANGULAR: [TX_64X16] == TX_32X16, [TX_16X64] == TX_16X32. r2 refused that
case by name because `read_var_tx_size` was square-only and its leaves were
`(row, col, tx_px)` triples.

This round transcribes the whole table (with a 19-entry unit test against
libaom's own order), generalises `read_var_tx_size` to `(tx_w, tx_h)` exactly
as `read_tx_size_vartx` recurses -- rect ctx, `sub_tx_size_map` step, the
TX_4X4 early return over `tx_h/4 x tx_w/4` cells -- and widens the leaf tuple
to `(row, col, tw, th)`. Both inter var-tx leaf loops now read a rectangular
leaf through `read_inter_plane_rect` with `LumaRect32x16Inter` (the 2-symbol
EXT_TX_SET_DCT_IDTX inter row at `tx_size_sqr_up == TX_32X32`), its own
`get_txb_ctx_general` neighbour context (a leaf is smaller than its block, so
`txb_skip_ctx` is not the lone-TU 0), and rect neighbour/deblock spans.

Measured on a 2160p 10-bit AV1 mkv: a 2 s mid-film segment decodes 14
rectangular 16x32 var-tx leaves and 16 16x64 strips, and both mid-film
segments move off this wall onto lane-intrarect's. The chartered pixel-exact
aomenc gate cannot yet hard-assert the arm: 60+ real aomenc runs show every
stream that contains a superblock-level 1:4 partition also contains another
lane's live refusal, which stops the decode first (measured reason written at
the parked assert). The new gate still sweeps the recipe at both bit depths and
hard-asserts that nothing mis-decodes silently.
Merge branch 'lane-rect1d': 1D transform classes on rect transforms gated at 10-bit (12/12); u16 plane dump exampleAhmet Kaan Gümüş · 8f81c4b
Merge branch 'lane-rect1d': 1D transform classes on rect transforms gated at 10-bit (12/12); u16 plane dump example

Merge resolution:
- decode.rs: the lane's `decode_leaf_rect` cat2 -> cat1 tx_size CDF-row fix is
  the SAME fix main already carries from lane-rectsplitx (a59645c..71c444a);
  main's hunk is kept and the lane's comment paragraph appended to it. The
  lane's rect_coeff_tu_hits / rect_class1_hits counters are kept at their
  original sites (`read_coeffs` for the 1D-class half, `read_coeffs_rect` past
  the `all_zero` early return), so the merged gate measures what the lane
  gated.
- dump_yuv.rs / gate_coverage.rs / stream.rs / lanes/rect1d-r1.report.md taken
  from the lane unchanged (no overlap with main's rectsplitx edits).

Gates on the merged tree, 16/16:
a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform 12/12 pixel-exact,
0 named refusals, 6 matches 10-bit, 219 rect coefficient TUs (10 of a 1D tx
class); coded_rect_strip_below_16x16, ab_partitions_below_16x16,
refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets all pass.
fix(av1): an intra block inside an inter frame refused a nonzero angle_delta_y -- the refusal claimed "this encoder never writes one" and aomenc writes one by defaultAhmet Kaan Gümüş · ac20fa3
fix(av1): an intra block inside an inter frame refused a nonzero angle_delta_y -- the refusal claimed "this encoder never writes one" and aomenc writes one by default

`read_intra_angle_info` writes angle_delta_y for any directional y_mode at
bsize >= 8x8 in an inter frame exactly as in a key frame, and aomenc's
--enable-angle-delta defaults to 1: the first gate attempt (seed 42) carries
4 such blocks. decode_inter_block now reads the delta and threads it through
its split-transform per-TU and block-level luma predictions, and derives
smooth_neighbor (get_intra_edge_filter_type) via Neighbours::modes_above_left
instead of the hardcoded `false` that decided the intra edge filter's
strength. New gate a_real_aomenc_inter_sequence_with_a_directional_intra_block
_with_angle_delta_decodes_pixel_exact (8-bit + 10-bit) asserts the hit counter
and compares every frame's Y/U/V vs ffmpeg. Flipping all 56
--enable-angle-delta=0 spellings to =1 leaves the 17 inter_sequence gates
green (no hidden defect). decode_inter_block8's 8x8 leaf keeps its refusal --
80 attempts never reached a directional 8x8 intra leaf -- reworded to a claim
about this decoder's coverage rather than about the encoder.
fix(av1): a 16x8/8x16 intra leaf reads tx_size_cdf[cat 1], not cat 2 -- wrong-row tx_depth desynced every 16-level rect strip under --enable-tx-size-searchAhmet Kaan Gümüş · 5f35cce
fix(av1): a 16x8/8x16 intra leaf reads tx_size_cdf[cat 1], not cat 2 -- wrong-row tx_depth desynced every 16-level rect strip under --enable-tx-size-search

lane-rect1d r1. `decode_leaf_rect` read its `tx_depth` symbol from
`cdfs.tx_size_cat2`, the table the 32-level strips (BLOCK_32X16/16X32) use.
libaom's `bsize_to_tx_size_cat` reads `bsize_to_tx_size_depth_table` and
subtracts one: BLOCK_16X8/8X16 (and the 1:4 BLOCK_16X4/4X16 this function also
decodes) sit at depth 2, so they read `tx_size_cdf[1]` -- the same table a
16x16 square block reads. Both tables carry three symbols, so the wrong one
still decodes a plausible depth, from the wrong probabilities: the range
diverges silently at the first such leaf and every later symbol in the tile
comes out of the wrong place.

Found by copying lane-rectclass's 1D-tx-class gate onto this tree (main's
`read_coeffs_rect` no longer refuses a 1D class, so the gate now DECODES those
TUs and the merge exposed the mismatch). Bisection: pinned stream
(sha256 5b3c8fc9... twice), coefficient range ladder ours vs instrumented
aomdec matched for 105 transform units and diverged at the 106th; the mode
ladder matched through `uv_mode` (rng 50640 both) and the next symbol was
aomdec's `name=tx_depth val=0 ctx=2 cat=1 rng=60682` against our cat-2 read.
Block: mi_row=24 mi_col=44, BLOCK_16X8, 10-bit seed 42.

Gate: `a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact`
(copied from lane-rectclass ef7a476, minus its two now-nonexistent refusal
strings and the vacuous `class1_refusals == 0` assert), plus a new
`rect_class1_hits` counter so the gate pins the 1D class on a RECTANGULAR
transform rather than settling for the square reader's own 1D types:
12/12 pixel-exact (6 of them 10-bit), 219 rect coefficient TUs, 10 of them a
1D tx class. `enable-flip-idtx` leaves the 10-bit coverage-hole list.

`examples/dump_yuv.rs`: raw u16 plane dump -- both prefilt dumps narrow to
`u8`, which is blind to exactly this defect at 10 bits.
feat(av1): 64x64 masked compound infers COMPOUND_DIFFWTD instead of refusingAhmet Kaan Gümüş · 6d86b95
feat(av1): 64x64 masked compound infers COMPOUND_DIFFWTD instead of refusing

libaom `read_compound_type` (decodemv.c 1634-1656) only codes a
`compound_type` symbol when `is_interinter_compound_used(COMPOUND_WEDGE,
bsize)`; `av1_wedge_params_lookup[BLOCK_64X64].wedge_types == 0`, so at
64x64 the type is INFERRED as COMPOUND_DIFFWTD and only the 1-bit
`mask_type` literal follows. This decoder read the symbol nowhere and
refused the block by name instead ("a masked compound 64x64 inter
block..."), which capped every `--enable-masked-comp=1` stream whose
superblock stayed unsplit.

The DIFFWTD mask build and blend are already size- and bit-depth-generic
(`mc::diffwtd_mask` carries the `bd - 8` round term, `blend_masked_compound`
takes the block dims), so the lift is the alphabet decision plus a narrow
counter. 64x64 is the only wedge-less size this decoder's square inter path
reaches; the rect shapes (64x32/32x64/64x16/16x64) are refused one level up
by "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular
residual coding" and gain nothing from code here.

Gate: a_real_aomenc_stream_with_a_diffwtd_compound_64x64_block_decodes_pixel_exact
(+ its 10-bit arm) -- --sb-size=64 --max/min-partition-size=64 pins every
block to the inferred size, --enable-masked-comp=1 --enable-diff-wtd-comp=1
--enable-dist-wtd-comp=0 leaves the inferred arm as the only masked choice;
per-attempt hit snapshots counted on decoded+compared attempts only.
6/6 pixel-exact both depths, diffwtd_inferred_hits 79 (8-bit) / 51 (10-bit).
gate_coverage NEVER_ON_10BIT is now empty: the 10-bit arm is the first
recipe to spell --enable-diff-wtd-comp=1 and fire it.
Merge branch 'lane-defon': every default-on aomenc tool is spelled on in a gate with a hard counter; forward keyframes counted; NEVER_ON_8BIT emptyAhmet Kaan Gümüş · 15a2683
Merge branch 'lane-defon': every default-on aomenc tool is spelled on in a gate with a hard counter; forward keyframes counted; NEVER_ON_8BIT empty

Auto-merged cleanly. Post-merge coverage print (fresh binary): NEVER_ON_8BIT
0 of 10 over 51 8-bit gates; NEVER_ON_10BIT only enable-diff-wtd-comp over 24
10-bit gates -- multi-tile is no longer a hole, so the list the tx4x8 merge
had already trimmed reconciles with the lane's by the test itself.
Merge branch 'lane-tx4x8': 4x8/8x4 leaves read tx_depth (TX_MODE_SELECT) and code TX_4X8/8X4 (ReelB head blocker); every rect shape carries its own libaom reach rowAhmet Kaan Gümüş · a07b869
Merge branch 'lane-tx4x8': 4x8/8x4 leaves read tx_depth (TX_MODE_SELECT) and code TX_4X8/8X4 (ReelB head blocker); every rect shape carries its own libaom reach row

Conflicts: cdf_state.rs (union -- main's eob_pt_*_class1 fields plus the
lane's eob_pt_32_luma pair and the two rect TxbSets, all three hunks),
decode.rs (lane's read_coeffs_rect: it implements the TX_CLASS_HORIZ/VERT arm
main refused; duplicate SCAN_4X8/SCAN_8X4 transcriptions collapsed to one,
trace names unified on rect_trace), encode.rs (lane's per-shape
HAS_TR_*/HAS_BL_* consts + rect_reach_tables win over main's
has_tr_rect_table/has_bl_rect_table, kept main's documented
Reach::rect_table_index as the index and its bijection test, kept main's
VERT_A/B tables), gate_coverage.rs (10-bit "multi-tile" hole closed by the
merged recipes -- its own test demanded the entry go), lanes/COMMON-20260901.md
(main's systemd-run suite section).
Merge branch 'lane-tx64x16': 32x32-level HORZ_4/VERT_4 (four 32x8/8x32 strips, ReelB mid-film blocker) gated on a band fixture at 8/10-bit; 1:4 gates assert out-of-scope pixel mismatchesAhmet Kaan Gümüş · 3ac3386
Merge branch 'lane-tx64x16': 32x32-level HORZ_4/VERT_4 (four 32x8/8x32 strips, ReelB mid-film blocker) gated on a band fixture at 8/10-bit; 1:4 gates assert out-of-scope pixel mismatches

Conflicts: decode.rs (kept main's base_ctx domain test read table[col][row],
kept the lane's transposed-scan-pair test), encode.rs (kept main's
has_tr_rect_table/has_bl_rect_table + rect_table_index from lane-rectx r5 and
folded the lane's 32x8/8x32 rows into them; the lane's HAS_*_RECT arrays and
Reach::rect_table are dropped as redundant), gate_coverage.rs (lane's side:
1:4 partitions leave NEVER_EXERCISED_10BIT).

2026-09-01

test(av1): the 32x32-level 1:4 gate fires and is pixel-exact -- 8-pixel bands, not gradientsAhmet Kaan Gümüş · 3e19c89
test(av1): the 32x32-level 1:4 gate fires and is pixel-exact -- 8-pixel bands, not gradients

r3 lifted the "a 32x32 partition type this decoder does not code (value=8)"
refusal with its gate #[ignore]d because no gradients-derived fixture ever made
aomenc's RD pick a 32-level HORZ_4/VERT_4 (class refusal-lifted-without-a-gate).
The content those shapes win on is 8-pixel BANDS: a 32x8 strip is flat, a 32x16
one straddles two bands, so HORZ_4 beats HORZ and SPLIT; a noise layer with an
explicit seed keeps the flat bands out of screen-content mode. Measured 16
HORZ_4 / 24 VERT_4 strips per frame at both bit depths.

Gate un-ignored unchanged in its asserts: 8-bit 7/8 attempts pixel-exact
(64 HORZ_4 + 72 VERT_4 + 136 coded strips), 10-bit 5/8 (48 + 48 + 96), zero
attempts out of scope, zero mismatches, refusals all named. gate_coverage:
enable-1to4-partitions leaves NEVER_EXERCISED_10BIT.

decode_probe now prints the rect4_32 counters (via stream::rect4_32_counters),
which is how the fixture search was measured rather than reasoned about.
test(av1): the last two NEVER_ON default-on tools -- forward keyframes and 10-bit interintra-wedge/one-sided compoundAhmet Kaan Gümüş · 0ef28ca
test(av1): the last two NEVER_ON default-on tools -- forward keyframes and 10-bit interintra-wedge/one-sided compound

--enable-fwd-kf=1 --fwd-kf-dist=8 on the altref hidden-frames gate (the only
gate that decodes show_frame==0 frames at all, and it runs both bit depths),
with a new decode::fwd_kf_hits() counter incremented in decode_stream for a KEY
frame coded with show_frame == 0 -- hard-asserted per depth: 42 frames decoded,
2 hidden, 3 forward keyframes, all pixel-exact vs the oracle in decode order at
both 8 and 10 bits.

Two new 10-bit gates through ten_bit_tool_gate:
- a_real_aomenc_10bit_stream_with_interintra_wedge_decodes_pixel_exact
  (--enable-interintra-wedge=1, 8/8 pixel-exact, wii_hits=3)
- a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact
  (--enable-onesided-comp=1, 8/8 pixel-exact, uni_comp_hits=5)

NEVER_ON_8BIT is now empty (0 of 10 over 45 gates); NEVER_ON_10BIT is down to
enable-diff-wtd-comp (the 10-bit gradients fixture decodes 8/8 pixel-exact with
diffwtd_hits == 0 -- encoder choice, it needs mandelbrot content in
ten_bit_tool_gate) and multi-tile (covbd2's, not this lane's).
wip(merge): lane-sub8 merged into main 61c6a5b -- conflicts resolved, gates RED, NOT for mainAhmet Kaan Gümüş · 6795386
wip(merge): lane-sub8 merged into main 61c6a5b -- conflicts resolved, gates RED, NOT for main

Conflict resolutions kept here so a successor need not redo them:
- decode.rs Neighbours::new -- main's mi-granular inter bands + sub8's four
  mi mode maps (sub8_mode_col/row, uv_mode_col/row).
- decode.rs record_split_luma_rect -- main's rect (w_mi,h_mi) span with
  sub8's record_mode_mi/record_uv_mode_mi calls.
- encode.rs Reach::top_right/bottom_left -- main's VERT_A/B tables kept,
  sub8's has_tr_4x4/has_bl_4x4 row kept, side-4 falls back to the ordinary
  table inside a VERT_A/B (no vert 4x4 row exists) with a corner-cut note.
- examples/decode_probe.rs -- main's EC_PROBE_OUT + dimensions print.
- refusal_inventory.rs -- sub8's sub-8x8 reader still refuses intrabc while
  main's 8x8-and-up reader reconstructs one; refusal string narrowed to
  "a sub-8x8 leaf that uses intrabc" and listed.
- gate_coverage.rs -- enable-1to4-partitions retired from the 8-bit list
  (sub8's gate passes =1), 10-bit entry reworded.

RED on the merged tree (both fail; each side is green alone):
- a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact (seed=100 cq=6)
- a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact
  (seed 55, luma (191,76) ours=127 ffmpeg=128, 3080 samples, bbox x94..191
  y76..127) -- green at main 61c6a5b, absent from the sub8 lane's tree.
test(av1): default-on tools spelled on in the gates that exercise them -- loopfilter-control=1 (2 8-bit + 1 10-bit deblock gate), enable-tx-size-search=1 (shared tx-select inter helper, both depths), enable-directional-intra=1 (directional chroma), enable-diff-wtd-comp=1 + new diffwtd_hits assert (masked compound), enable-onesided-comp=1 + new uni_comp_hits assert (interintra); gate_coverage counts a bit_depth-parameterised helper at both depths; NEVER_ON 6/7 -> 1/5Ahmet Kaan Gümüş · df86cfc
test(av1): default-on tools spelled on in the gates that exercise them -- loopfilter-control=1 (2 8-bit + 1 10-bit deblock gate), enable-tx-size-search=1 (shared tx-select inter helper, both depths), enable-directional-intra=1 (directional chroma), enable-diff-wtd-comp=1 + new diffwtd_hits assert (masked compound), enable-onesided-comp=1 + new uni_comp_hits assert (interintra); gate_coverage counts a bit_depth-parameterised helper at both depths; NEVER_ON 6/7 -> 1/5
fix(av1): SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)Ahmet Kaan Gümüş · 7820978
fix(av1): SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)

r1's red 16x64 gate was a STALE BASE, not a defect: rebasing lane-tx64x16 from
dc5553f onto main (5811ec5 -> 6d86d3a) turns
`a_real_aomenc_stream_with_a_superblock_level_1to4_partition_decodes_pixel_exact`
green with no change to the 1:4 wiring, and the r1 suite's "17 failures" drop to
2, neither of them this lane's:

- `decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule` (RED on main,
  not on this branch's diff): the test read `NZ_MAP_CTX_OFFSET_32X64/_64X32` as
  `[col][row]` (lane-rectsplit r2's column-major premise, later disproved and
  reverted) while the tables and their only real consumer -- `base_ctx`'s
  `TxClass::TwoD` arm, decode.rs:1829 -- are display-major `[row][col]`. Read in
  the consumer's order; table content untouched, so every merged rect gate keeps
  the reading it is green under.
- `gate_coverage::tests::never_exercised_8bit_matches_the_gate_recipes`: this
  lane's gate passes `--enable-1to4-partitions=1` at 8 bit, so the 8-bit hole is
  retired; the 10-bit entry stays and now says so.

Rebase conflicts resolved keeping BOTH SB partition arms (main's AB arms from
part32 r4 and this lane's HORZ_4/VERT_4), with `reduced_tx_set` threaded into
the 1:4 `decode_block_rect64` calls; the unreachable `_` arm now refuses an
out-of-range partition value instead of the (now coded) 1:4 pair.
test(av1): gate coverage sees default-on tools and non---enable-* spellingsAhmet Kaan Gümüş · 32a6763
test(av1): gate coverage sees default-on tools and non---enable-* spellings

Third instance of tool-disabled-in-every-gate: the derivation read "--enable-
only, so tools aomenc has on by default and the gates pin off through another
spelling were invisible -- --enable-tx-size-search=0 (34/41 8-bit gates, the pin
behind lane-ab16's real-stream PANIC), --loopfilter-control=0, single-tile
--tile-columns/--tile-rows, --cpu-used.

DEFAULT_ON_TOOLS (10 entries: tool, aomenc spellings, default, on-rule) plus
NEVER_ON_8BIT (6) / NEVER_ON_10BIT (7) pinned per bit depth under the unchanged
'defaulted means unknown' rule, with the off/defaulted split in each reason.
ALIASES maps --superres-mode onto enable-superres, which retires the two
enable-superres entries covbd deferred. Print helper extended.

gate_coverage 9/9, refusal_inventory 3/3.
test(av1): multi-tile gates with the coding tools ON, and the films' real tiling measuredAhmet Kaan Gümüş · 9c8c214
test(av1): multi-tile gates with the coding tools ON, and the films' real tiling measured

Every existing tile gate turns rect/ab partitions, tx-size search, cdef and
restoration OFF to isolate the per-tile loop -- the tool-disabled-in-every-gate
shape, under which a tile-edge defect in any of those tools is invisible.

- stream.rs: `run_multi_tile_gate` + 4 arms (2x2 grid and 4 columns, 8- and
  10-bit, intra and inter) through `decode_stream`, rect+ab partitions, default
  cdef and loop restoration on, deblocking left crossing tile boundaries. The
  parsed `tile_info` is asserted to carry the grid asked for (skipping
  `show_existing_frame` headers, which code no tile info) and `tile_hits` is
  asserted >= tiles*frames so a header claiming 4 tiles cannot pass on one
  decoded tile.
- The 8-bit 2x2 inter arm is `#[ignore]`d with an open defect documented in
  place: seed 42 mismatches in one 32x32 block at x[224..255] y[32..63] from
  frame 4 on; not cdef, not restoration, not deblocking; seeds 47/48 are exact;
  tile attribution unproven because the single-tile control refuses.
- decode_probe: prints the tiling of every frame header before decoding. Both
  of his AV1 films measure cols=1 rows=1 uniform over 181 headers each,
  confirmed independently by ffmpeg's trace_headers (tile_cols_log2=0,
  tile_rows_log2=0) -- multi-tile is NOT on the critical path for them.
- gate_coverage: 5 stale 10-bit entries deleted (global-motion and
  dist-wtd-comp were already closed by lane-cwarp and left this test red at
  main 9c35ecc; ab-partitions, rect-partitions and restoration are closed by
  the new 10-bit arms), plus a note on why tiling cannot join the
  `--enable-*` derivation.
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged treeAhmet Kaan Gümüş · 8c9548c
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged tree

NEVER_EXERCISED_10BIT keeps the union of both removals: main's three
(restoration, dist-wtd-comp, global-motion, closed by lane-hbdinter and
lane-cwarp) and hbdgates' six (filter/smooth/paeth intra, intra-edge-filter,
rect and ab partitions). gate_bodies()/is_ten_bit() take hbdgates' versions
(ignored gates excluded, helper-built recipes recognised).

a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact was #[ignore]d on
the branch because hbdgates' base lacked main's 10-bit LR fix (SGR box-sum
scaling, Wiener clamp). On the merged tree it passes 16/16 attempts
pixel-exact, lr_hits=28, so the #[ignore] is removed.
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabledAhmet Kaan Gümüş · 576f72d
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabled

His two films are yuv420p10le, so a tool gated only at 8 bits is ungated where
it matters (lane-covbd r1). Six of the seven holes close with real-aomenc
10-bit streams, pixel-exact vs ffmpeg on every shown frame:

- a_real_aomenc_10bit_intra_tools_stream_decodes_pixel_exact -- filter-intra,
  smooth-intra, paeth-intra, intra-edge-filter on one key frame, a separate
  hard-asserted counter each (6/6 attempts exact; filter_intra_hits=2
  smooth_pred_hits=16 paeth_pred_hits=3 intra_edge_filter_hits=22).
- a_real_aomenc_10bit_rect_and_ab_partitions_decode_pixel_exact -- the 8-bit
  free-partition/AB inter recipe at 10 bits (12/16 attempts exact, 4 named
  refusals; rect_partition_hits=32 partab_hits=4).
- a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact -- WRITTEN AND
  FAILING, so #[ignore]d with the pin in the attribute: seed 42, frame 0,
  plane Y index 122, ours 351 vs ffmpeg 350, on a stream where lr_hits=2.
  That is a real 10-bit loop-restoration defect for a follow-on lane; the gate
  is not weakened and enable-restoration stays a listed 10-bit hole.

intra.rs gains per-tool counters (smooth_pred_hits / paeth_pred_hits /
intra_edge_filter_hits) because smooth_uv_hits lumps SMOOTH..=PAETH together
and would have let a paeth-only stream "prove" smooth intra.

ten_bit_tool_gate() samples every counter PER ATTEMPT and sums only over
attempts that decoded AND compared, so a refused stream can never contribute a
firing; a pixel mismatch panics with plane + first-diff index + both values +
the firing deltas, never SKIPs.

gate_coverage: gate_bodies() now drops #[ignore]d gates (an ignored gate
exercises nothing) and recognises gates whose --passes=1 lives in the shared
10-bit helper; 45 -> 49 gates, 4 -> 7 ten-bit, NEVER_EXERCISED_10BIT 19 -> 13.