forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b1b8a39e2dd6da906a0befb88cec884e624bda84

2026-10-04

lane/av1422ibcrect: the ss (1,0) non-split chroma gather is entered by a real 4:2:2 64x32 intraBC stripAhmet Kaan Gümüş · b1b8a39
lane/av1422ibcrect: the ss (1,0) non-split chroma gather is entered by a real 4:2:2 64x32 intraBC strip

Witnesses the site lane/av1422gathercensus left STOP-unwitnessed.

Entry condition: decode_intrabc_owned_rect is reached only through
decode_block_rect64 at the 64 root; its non-split chroma gather needs
cw = bw >> ss_x <= 32 and ch = bh >> ss_y <= 32, i.e. a 64x32
(PARTITION_HORZ, or the 64x32 strip of HORZ_A/HORZ_B) or 64x16
(PARTITION_HORZ_4) strip at ss (1,0), non-skipped, non-lossless.

Four aomenc encodes (all 4:2:2, sb64, screen content, intrabc, cpu-used=0,
each under 0.6 s of encode time). One of them - a 384x288 geq sinusoid whose
last superblock row is half outside the frame, which forces the 64-root
partition to the gathered HORZ/SPLIT edge bit - enters the site 24 times
(6 strips x 4 frames) with bw=64 bh=32 cw=32 ch=32 skip=false, and decodes
byte-exact against ffmpeg on all four frames.

The probe measured both gathers at every entry: the luma-span
around_mi_rect and the pair rule around_mi_422_chroma. The double count is
visible in the vote magnitudes (full = 2 x sampled where the extra cells are
coded) but changes no dc_sign_ctx and no coded bit on any of the 24 entries,
so no symbol and no pixel differs - which is why this stream cannot name a
first wrong sample. A deliberately inverted vote makes the same print move
24 of 24 times, so the zero is a measurement, not an inert comparator.

Second finding: the branch entered is the leaves == None twin of the census's
cited call sites (which sit in the leaves.is_some() branch and additionally
require TX_MODE_SELECT plus a txfm_partition split; this stream is
TX_MODE_LARGEST, so that branch fires 0 times).

No source change: decode.rs at this tip equals the base commit. The only
commit is lanes/av1422ibcrect.report.md. No fixture is committed; the witness
is reproducible from the recipe and sha256 recorded in the report.
Merge lane/av1422gathercensus: the ss (1,0) chroma-gather enumeration is closedAhmet Kaan Gümüş · 3973273
Merge lane/av1422gathercensus: the ss (1,0) chroma-gather enumeration is closed

98 gather call sites. 39 already route through around_mi_422_chroma. The
rest are inside a 4:4:4 or 4:2:0 guard, or are a 1-cell gather where the
pair rule reads the same cell. One site is structurally reachable at 4:2:2
and unwitnessed: decode_intrabc_owned_rect's around_mi_rect at the non-split
chroma block. Zero hits on the committed 4:2:2 corpus, and the instrument
fired on a 4:4:4 control, so the zero is a real zero. No route without a
witness. Comment only. No decode change.
lane/av1422gathercensus: close the ss (1,0) chroma-gather enumerationAhmet Kaan Gümüş · 1530537
lane/av1422gathercensus: close the ss (1,0) chroma-gather enumeration

Mechanical census of every chroma coefficient-context gather in decode.rs
that can run at ss (1,0) without around_mi_422_chroma: 39 already routed,
1 unwitnessed (decode_intrabc_owned_rect 18022/18061 — structurally
reachable, 0 hits over the committed 4:2:2 corpus), 9 guarded to 4:2:0/
4:4:4 only, 4 single-cell-equivalent, rest luma-only. Comment-only change;
report in lanes/av1422gathercensus.report.md.
Merge lane/av1muchunkluma: c3 and c4 were the intra-in-inter gather, already fixedAhmet Kaan Gümüş · 4674af4
Merge lane/av1muchunkluma: c3 and c4 were the intra-in-inter gather, already fixed

The class report's luma-first samples (Y(62,6) and Y(126,3) of shown frame 1)
reproduce on the tree before bd762046 and are gone on current main. Both
streams enter the intra-in-inter side>64 walk (64 and 96 units) and the
compound counter stays 0. Pinned and gated. Restoring the square gather reds
both gates on those luma samples. No decode change.
ec-av1: pin the two compound-content 4:2:2 streams the iis gather closed, and gate themAhmet Kaan Gümüş · d04b2aa
ec-av1: pin the two compound-content 4:2:2 streams the iis gather closed, and gate them

lane-av1muchunk422class left c3_grad128_comp and c4_grad256_comp diverging
luma-first (Y (62, 6) and Y (126, 3) of shown frame 1) and reported them as
"not the DC-sign class". Re-measured on current main: both are byte-exact, and
the site that owns both is the intra-in-inter `side > 64` mu-chunk chroma
gather fixed by bd762046 -- the class report's tree predates that fix, and the
pre-fix control binary reproduces both streams' first wrong samples exactly.
No decode code is changed here.

Adds fixtures/422_muchunk_iis_128root_grad128.obu (34449 bytes, sha256
e801ce5596c9ed72) and fixtures/422_muchunk_iis_128x256_grad256.obu (68925,
90232481d39afa53) -- the hunt's c3/c4 bytes, re-encoded byte-identically by
this lane from the frozen grad128/grad256 y4m sources with the hunt's argv.

Two gates assert pinned length+FNV, 4:2:2 sequence-header shape, the
intra-in-inter unit counter delta (64 / 96) with the compound-named counter
unmoved, the oracle-free luma plane FNV of shown frame 1 plus the single
sample that moved first (75 / 93) with shown frame 0 as control, then every
plane of every shown frame against ffmpeg and the decode-order aom oracle (7
frames). Restoring the plain around_mi gather reds both gates on shown frame
1's luma plane; decode.rs was restored byte-for-byte afterwards.
Merge lane/av1muchunk422iis: the intra-in-inter side>64 gather was the bare around_miAhmet Kaan Gümüş · e1c8617
Merge lane/av1muchunk422iis: the intra-in-inter side>64 gather was the bare around_mi

decode.rs:46820 called around_mi(unit_mi, unit_luma_w). At 4:2:2 that counts
each chroma column twice, so the DC-sign row forks. The earlier sweep listed
around_mi_rect and did not see this spelling. The walk now uses
around_mi_422_chroma(unit_mi, unit_luma_w, unit_luma_h) at ss (1,0). The
pinned i5_grad256_iis stream (667 bytes, sha 64794f27...) is byte-exact vs
ffmpeg on all 6 shown frames. Restoring the square gather reds the gate at
V[12196], chroma (190, 36), the pre-fix value 147. 4:2:0 and 4:4:4 keep the
old call. The compound walk is untouched. c3 and c4 still diverge luma-first.
ec-av1: route the intra-in-inter side>64 mu-chunk chroma gather through the 4:2:2 pair ruleAhmet Kaan Gümüş · 5b9e8bc
ec-av1: route the intra-in-inter side>64 mu-chunk chroma gather through the 4:2:2 pair rule

The intra-in-inter `side > 64` mu-chunk walk gathered its per-unit CHROMA
coefficient context with the plain luma `around_mi`, which at ss (1, 0) sums
`unit_luma_w / MI` above cells where libaom sums `txb_w_unit` -- twice as
many -- so `dc_sign_ctx`'s signum flipped whenever the doubled above vote
cancelled the left one. Route it through `around_mi_422_chroma` with the
unit's per-axis luma footprint, the same ss (1, 0) gate the eight sibling
chroma gathers use; 4:2:0 / 4:4:4 keep the plain gather verbatim.

Pins the hunted stream i5_grad256_iis.obu as
fixtures/422_muchunk_intra_in_inter_128x256.obu (667 bytes, sha256
64794f278eee738d) and gates it: the site counter delta is 96, shown frame 2's
V plane is byte-exact against ffmpeg (all planes, all 6 shown frames) and
against the decode-order oracle (7 frames), and restoring the square gather
reds the gate on V (190, 36) of shown frame 2, ours 147 vs ffmpeg 146.

Does not touch the compound walk, c3 or c4.
Merge lane/av1muchunk422class: the DC-sign fix closes the compound arm, not the classAhmet Kaan Gümüş · 8e08618
Merge lane/av1muchunk422class: the DC-sign fix closes the compound arm, not the class

The hunt's compound streams c1 and c2 were wrong before the gather fix and
are byte-exact after it. The pinned compound stream stays exact. The class
is not closed. i5_grad256_iis (128x256, intra-in-inter, 0 compound hits, 24
site-8 hits) is unchanged by the fix and still wrong at V chroma (36, 190)
of shown frame 2. The first wrong symbol is the same DC-sign row fork. The
walk is the intra-in-inter side>64 loop, which still calls
around_mi(unit_mi, unit_luma_w) at decode.rs:46820. The earlier sweep listed
around_mi_rect sites and did not see this bare around_mi call. c3 and c4
diverge luma-first and are a different defect. No decode change.
lane-av1muchunk422class: the DC-sign fix closes the compound arm, not the classAhmet Kaan Gümüş · 078084b
lane-av1muchunk422class: the DC-sign fix closes the compound arm, not the class

Re-decoded the hunt's still-present streams (no aomenc spent) against ffmpeg
per plane on current main. c1_rot128_comp and c2_rot128_comp_lo -- the two
other compound-arm 128-root 4:2:2 streams -- are byte-exact on all six shown
frames post-fix, from pre-fix U/V (and trailing Y) divergence. The class
itself is NOT closed: i5_grad256_iis still diverges, byte-identical before
and after the fix, first wrong sample V chroma (190,36) of shown frame 2, and
its first entropy fork is the same signature the fix targeted -- dc_sign_ctx
1 vs the oracle's 0 on a TX_32X32 chroma sign -- but in the intra-in-inter
side>64 walk (decode.rs:46820 still gathers with the un-pair-ruled
around_mi). c3/c4 diverge luma-first and are not this class. Report only; no
code changed.
Merge lane/av1422mismatch9: the span-mismatch 9 is a shape count, not a pixel missAhmet Kaan Gümüş · 483046d
Merge lane/av1422mismatch9: the span-mismatch 9 is a shape count, not a pixel miss

SB128RECT_REPLAY_SPAN_MISMATCH_HITS compares luma_span (chroma_tx << ss_x)
with luma_span_h (chroma_tx << ss_y). At 4:2:2 those differ by construction,
so the counter fires on every 128-root rect unit of that shape. Both pinned
strips read (72 replay, 9 mismatch), and every one of the 144 replayed units
is 64x32. The replay re-stamps the same left/above context cells. It writes
no pixels. The strip pin stays byte-exact vs ffmpeg. The gate now asserts
the measured pair (72, 9) and reds if the expected count is flipped to 10.
No decode behaviour change.
av1: assert the measured 9 on SB128RECT_REPLAY_SPAN_MISMATCH_HITSAhmet Kaan Gümüş · 08f717d
av1: assert the measured 9 on SB128RECT_REPLAY_SPAN_MISMATCH_HITS

The counter reads 9 on each pinned `422_intrabc_sb128_strip*.obu` cell and
nothing explained it. It is not a pixel miss: the predicate
(`luma_span != luma_span_h`) is a span DIFFERENCE, true by construction at
ss (1,0); the replay re-stamps with the same per-axis pair the in-loop walk
used; and `record_mi_chroma` writes only the left/above context arrays, no
pixel. A temporary trace dumped 144 replayed units, all wh=(64,32).

`the_422_block_128rect_chroma_chunk_gather_stays_per_axis` now asserts the
measured (72, 9) per pin, with the reason, and its doc plus the counter and
accessor docs are corrected to say the counter is a 4:2:2 shape test, not
the divergence test it was named for. Red-before: flipping the expected
count to 10 fails with left 9 / right 10.

Report: lanes/av1422mismatch9.report.md
Merge lane/av1422gather3: the 128-root rect chroma gather takes the 4:2:2 pair ruleAhmet Kaan Gümüş · cb271bc
Merge lane/av1422gather3: the 128-root rect chroma gather takes the 4:2:2 pair rule

decode_block_128rect was the one of the three named gathers that a 4:2:2
stream can enter. It fired 72 times on each pinned sb128 strip and still
used around_mi_rect, which counts each chroma column twice. It now uses
around_mi_422_chroma at ss (1,0). Output is unchanged on all 21 committed
4:2:2 cells, so the gate is a source scan plus the 72-unit reach counter.
Dropping the guard reds it: the ss (1,0) guard must appear once, found 0.

The other two named sites sit inside chroma_444 guards (ss 0,0). Zero hits
on all 21 committed 4:2:2 cells. Not routed. Comments only.
av1: the 128-root rect chroma gather was not taking the 4:2:2 pair ruleAhmet Kaan Gümüş · 973f04a
av1: the 128-root rect chroma gather was not taking the 4:2:2 pair rule

decode_block_128rect's per-chunk chroma unit walk gathered its
coefficient context with the square-cut around_mi_rect, so at ss (1, 0)
its above dc vote summed 16 luma mi cells where libaom's
get_txb_ctx_general reads txb_w_unit = chroma_tx / 4 = 8 chroma cells
(one chroma column per pair of luma mi columns -- both luma cells of a
column carry the covering unit's whole-unit dc sign). The gather now
routes through around_mi_422_chroma under the ss guard, verbatim
around_mi_rect at every other shape, the same rule the mu-chunk walks
take.

Reachability measured: the walk fires at ss (1, 0) on both pinned
422_intrabc_sb128_strip*.obu cells, 72 chroma unit gathers each
(sb128rect_chroma_replay_hits().0). No committed cell discriminates the
change -- all 21 committed 4:2:2 cells are byte-exact against ffmpeg
with the pair rule, exactly as the pre-change tree was -- so
the_422_block_128rect_chroma_chunk_gather_stays_per_axis pins the
routing by source scan and carries a 72-unit reachability arm. Both
mutations (guard removed; guard kept with the square gather) red it.

lanes/av1muchunk422sym.report.md's other two rows are closed as
unreachable at ss (1, 0): decode_intra_sub8_leaf and
decode_inter_sub8_rect2 gather those chroma contexts only inside their
if chroma_444 arms (ss 0/0), 0 probe hits over the whole 4:2:2 corpus.

Also corrects decode_block_128rect's stale prose that called 4:2:2
refused by name (it is admitted; SB128RECT_REPLAY_SPAN_MISMATCH_HITS
fires there on byte-exact cells).
Merge lane/av1muchunk422sym: 4:2:2 mu-chunk chroma dc-sign was counting luma cellsAhmet Kaan Gümüş · a117ce2
Merge lane/av1muchunk422sym: 4:2:2 mu-chunk chroma dc-sign was counting luma cells

The compound 128-root pin's V miss is the DC sign of the last mu chunk on
decode frame 2. The sign value matched; the CDF row did not. around_mi_rect
at ss (1,0) counts each chroma column twice, so the above vote is -8 instead
of 0 and dc_sign_ctx picks the other row. The walk now uses
around_mi_422_chroma on that axis pair, same as the other 4:2:2 chroma
gathers. Forcing the compound site back to the square gather reds the pin:
shown frame 2's V plane moves, first sample chroma (36, 60), the sample the
diagnosis named. 4:2:0 and 4:4:4 stay on the old gather.
av1: the 4:2:2 mu-chunk walk's chroma dc-sign context read luma cellsAhmet Kaan Gümüş · f2fb6dd
av1: the 4:2:2 mu-chunk walk's chroma dc-sign context read luma cells

The compound 128-root mu-chunk walk (and its single-reference and IntraBC
twins) gathered each chroma unit's coefficient context with the plain rect
gather. At ss (1, 0) one CHROMA column spans two luma mi columns, so that
gather sums the unit's above dc sign over 16 luma mi cells where libaom's
get_txb_ctx_general reads txb_w_unit = 8 CHROMA cells. dc_sign_ctx sees only
the vote's signum, so the doubled above vote flips its row exactly when above
and left cancel.

Measured on 422_muchunk_compound_128root.obu, decode frame 2, the last mu
chunk (cr 1, cc 1) of the walk: our V unit at chroma (bc 8, br 16) read
dc_sign_cdf[1] where the oracle read row 0 -- same sign value, different CDF
row, so the entropy state forked there. It is the first wrong symbol of the
stream, and the fix makes all 7 decode-order frames byte-exact against the
instrumented aomdec and all 6 shown frames byte-exact against ffmpeg.

Route that gather through the 4:2:2 pair rule (around_mi_422_chroma) when ss is
(1, 0), the plain rect gather everywhere else: 4:2:0 and 4:4:4 keep it verbatim
and are unaffected (at 4:2:0 both extents double, so the signum never moved).

Gate: a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk gains
the exactness half the diagnostic lane handed over -- pinned fnv1a64 of shown
frame 2's V plane (0xa0e58bf4207b29ba, pre-fix 0xc4e7fdb873433479) and of shown
frame 0's control plane, plus the decode-order oracle compare. Restoring the
square gather reds the pinned hash with exactly the pre-fix value.

the_intrabc_128rect_chroma_chunk_walk_stays_per_axis now also pins that walk's
4:2:2 routing: its chroma chunk walk is reachable at ss (1, 0) on
422_intrabc_sb128_strip.obu (EC_IBC128_BANDS prints), but no committed fixture's
votes cancel there, so the source scan -- not a pixel compare -- is what stops
the routing being reverted.

Residue named in lanes/av1muchunk422sym.report.md: the chroma rect gathers of
decode_block_128rect, decode_intra_sub8_leaf and decode_inter_sub8_rect2 are
the same class but different walks, and need their own reachability measurement.
Merge lane/av1muchunk422div: the compound 128-root miss is V coefficients, not the walk sizeAhmet Kaan Gümüş · 5ae8dcd
Merge lane/av1muchunk422div: the compound 128-root miss is V coefficients, not the walk size

422_muchunk_compound_128root.obu is luma-exact and U-exact. V is wrong on
decode frames 2-5. Frames 3 and 5 are skip blocks inheriting the bad region.
The intrinsic miss is the last mu chunk of the compound side>64 walk, chroma
(32..63, 64..127). Prediction matches the reference. The dequant ladder matches
the oracle until that chunk's last two chroma units, where signs diverge and
our side emits one extra non-zero unit. The 4:2:2 stride at that site is
already per-axis; restoring the square would reintroduce the OOB the lpf lane
closed and would not touch this miss. No decode change. Next is a paired
symbol ladder on that chunk's chroma context, not another size fix.
ec-av1: diagnose the 128-root compound mu-chunk divergence (no fix)Ahmet Kaan Gümüş · 3e6e38c
ec-av1: diagnose the 128-root compound mu-chunk divergence (no fix)

422_muchunk_compound_128root.obu is the counter witness for the compound
`side > 64` mu-chunk walk. This lane measures where its V plane diverges
from the oracle and names the arm.

Measured (decode order, ours post-filter vs instrumented aomdec
EC_AV1_FINAL_DUMP): Y and U bit-exact on every frame; V exact on frames
0, 1, 6 and 2138/2063/2105/1988 samples wrong on frames 2/3/4/5. Display
order (ffmpeg rawvideo) agrees: 2063/2138/2105/1988 on shown frames 1-4.

First wrong sample: decode frame 2, plane V, chroma (36,60) -> luma
(72,60) -> mi (15,18); the intrinsic region is the walk's LAST mu chunk
(cr=1, cc=1), mi rows 16..31 x cols 16..31, plus a deblock bleed band.

A temporary env-gated probe at both mu-chunk allocation sites (EC_AV1_MUDBG,
reverted) shows the compound site fires only for decode frames 2 and 4 (the
two intrinsically wrong frames) and the single-reference twin only for
frame 1 (bit-exact); every unit's cu/dst_start/chroma_stride/chroma_buf_h is
as designed, so the walk's addressing is not the defect. Pre-filter dumps,
EC_CPRED (prediction is a verified identity copy of the reference), and
EC_DQCOEFF pairing (identical unit-for-unit until frame 2's last chroma
units, which diverge at sign level and add one unit on our side) place the
divergence in that chunk's chroma coefficient context.

No code change: the charter's fix allowed only a square-restore at this
site, and the probe proves the per-axis stride there is already correct
(restoring the square would re-introduce the W_intrabc OOB the lpf lane
closed) without touching this divergence. The pinned counter gate is
untouched.

Report: lanes/av1muchunk422div.report.md
Merge lane/av1muchunk422b: the two side>64 walks are reachable at 4:2:2Ahmet Kaan Gümüş · 960bdff
Merge lane/av1muchunk422b: the two side>64 walks are reachable at 4:2:2

The prior 12-attempt hunt read 0 because aomenc split every 128 superblock
and the lossless path bypasses the allocation. Lossy 128-root streams enter
both walks. The intra-in-inter pin is the one byte-exact stream of eight
(391 bytes) and the gate asserts the counter moved; forcing the bump off
reds it at 0 units. The compound pin is a counter witness only: 7 of 8
generated streams diverge from ffmpeg, so that gate does not claim pixels.
A lossless control fires the guard and allocates 0 units, which is why a
lossless hunt cannot see this site.
ec-av1: pin witnesses for the two side>64 mu-chunk walks at 4:2:2Ahmet Kaan Gümüş · 18c7610
ec-av1: pin witnesses for the two side>64 mu-chunk walks at 4:2:2

lane-av1muchunk422 reported "12 attempts, 0 entries" on the compound
(site 2) and intra-in-inter (site 8) `side > 64` mu-chunk walks: every
recipe it tried read `part128 none=0`, so aomenc split every 128
superblock on its 384x256 frames. Left there, the two walks had no
witness at 4:2:2.

Root cause of the miss: the streams that reach these walks are
128-as-the-whole-frame (PARTITION_NONE forced via --sb-size=128 and
--min/max-partition-size=128) and LOSSY. Each arm has a lossless branch
that returns before the unit loop, so the obvious lossless candidate
reaches the guard and allocates nothing -- which is also why the prior
lane's `site 2 = 0` reading was real, and why these counters count at
the ALLOCATION and not at the guard.

Two new per-unit counters, MU_CHUNK_COMPOUND_UNITS and
MU_CHUNK_INTRA_IN_INTER_UNITS, bump at the arm's allocation; the
compound one is routed through `is_compound` so the single-reference
twin of site 2 (site 5), which shares this exact source text, does not
alias it. Two pinned fixtures and two gates:

- compound: counter witness ONLY (32 units). 7 of the 8 streams this
  lane generated diverge from ffmpeg and this fixture is one of the
  seven, so the gate asserts no pixels; the divergence is V-plane on a
  fixed column band and tracks the 128-root COMPOUND path (a NEW defect,
  out of this lane's charter).
- intra-in-inter: byte-exact over 7 decode-order frames (6 shown + 1
  hidden alt-ref) AND the site counter moved (16 units). Red-proven by
  forcing the bump off: the gate reds with "the site counter this gate
  names did not move".

Both gates assert the other arm's counter at zero, assert the fixture is
a 4:2:2 128x128-superblock stream, and pin length + FNV-1a64. The
intra-in-inter gate also decodes W_intrabc.obu as a counter-proof: it
fires the guard 8 times and allocates 0 units.
ec-av1: the BLOCK_INVALID table is not a doctestAhmet Kaan Gümüş · 4475a3b
ec-av1: the BLOCK_INVALID table is not a doctest

rustdoc compiled the bare fence above BLOCK_4X8 and failed with
"missing enum for enum definition". The lib suite on that same tree was
794 passed, 0 failed. Marking the fence as text removes the false test:
the host that failed it now runs 0 doctests and passes.

2026-10-03

ec-av1: pin the flipped-oracle gate's frame count to the fixtureAhmet Kaan Gümüş · d5d2837
ec-av1: pin the flipped-oracle gate's frame count to the fixture

a_420_oracle_comparator_counts_a_flipped_oracle_sample passed decoded.len()
as ffmpeg's expected frame count. That is the count-vacuity shape the
ceiling of 0 exists to catch, and it red the sweep on main and on both
running server suites. The pin is 420_mixll_256x128_6f: 6 shown frames,
asserted before the call, and that constant is what ffmpeg receives.
Merge lane/av1muchunk422: 12 attempts, 0 entries on the side>64 walksAhmet Kaan Gümüş · 6d3c29f
Merge lane/av1muchunk422: 12 attempts, 0 entries on the side>64 walks

The two side>64 mu-chunk walks (compound, intra-in-inter) stayed at 0 on
every 4:2:2 attempt. The instrument was live: the same probes read 272 and
628 on committed 4:2:0/128 controls, and 32 on a 4:4:4 intra-in-inter
control. aomenc split every 128 superblock in these recipes (part128 none=0),
so side>64 was never true. Four of the twelve were the same 16855-byte
stream: a rate=1 source makes every inter frame a skip, so compound and
global-motion flags changed nothing. No decode change, no pin. A later hunt
has to force a 128 inter root (128x128 or 128x256 as the whole frame) and
must not reuse the rate=1 source.
lane-av1muchunk422: 12 recipes, 0 entries into the two side>64 mu-chunk walksAhmet Kaan Gümüş · 5111c5a
lane-av1muchunk422: 12 recipes, 0 entries into the two side>64 mu-chunk walks

lanes/av1muchroma.report.md left sites 2 (compound) and 8 (intra-in-inter)
unwitnessed at 4:2:2. This lane hunts a witness and does not find one.

12 aomenc 4:2:2 recipes over 384x256 sources, each capped at 180 s, all
encoded rc=0 and decoded clean. None reached either site.

The instrument is five env-gated EC_MUCHUNK422 eprintlns (two site probes,
three on the side>64 guards themselves), reverted in this commit. Verified
live before use against committed fixtures: site 2 fires 272x on
gm_small_side_witness and 628x on reelc_sb128_inter_witness, site 8 fires 32x
on 444_intra_in_inter_128root_mu_chroma, and the site-5 twin fires 13x on
422_sb128_3f. So the zero is not a missing-probe zero.

Measured cause: every one of the 12 reads part128: none=0, i.e. aomenc always
split its 128 superblocks, so no 128-root inter block exists and side > 64 is
never true in either arm. The committed controls that do reach these walks are
small frames (128x128, 128x256) where a 128 SB is the whole frame. Separately,
recipes 1/2/3/7 produced byte-identical streams -- the rate=1 source gives every
inter frame as a trivial skip, so the compound and interintra flags changed
nothing; 8 distinct bitstreams were really exercised.

No witness, no pin, no gate. decode.rs is unchanged: the allocation under both
walks is the enclosing-square chroma_side, sound by the prior lane's arithmetic,
and an unwitnessed case warrants no fix.
Merge lane/av1422open2: the two census2 cells are already exactAhmet Kaan Gümüş · 65a8db9
Merge lane/av1422open2: the two census2 cells are already exact

s422_320x246 and s422_322x246 were the chroma-only residue av1422census2
left open. Same bytes (sha aebd3a10..., ee96617f...). Both are 0/0/0 vs
ffmpeg on current main. The close is 459e425d (4:2:2 IntraBC 1:4 strips
code their own chroma): the parent still reads 0/7810/5531 and 0/3437/2222,
and 459e425d reads 0/0/0. A sibling that predates that commit still lists
them open; that report is stale. Both rows are already inside
the_pinned_422_corpus_cells_decode_pixel_exact, which is green. No new
gate, no decode change.
lane/av1422open2: both census2 cells are byte-exact at current main -- the closing fix is 459e425dAhmet Kaan Gümüş · ed7f0af
lane/av1422open2: both census2 cells are byte-exact at current main -- the closing fix is 459e425d

s422_320x246 and s422_322x246 are both 0/0/0 wrong Y/U/V samples against ffmpeg
8.1.3 at main 2be65e1b, 16 displayed frames each, first divergence none. Nothing
to fix and no site to name.

Both fixtures are already committed (sha256 aebd3a10... and ee96617f...), byte
for byte the census sweep artifacts the old report measured, and both sit
inside the green gate the_pinned_422_corpus_cells_decode_pixel_exact, run here
green with a non-zero per-plane coefficient-unit census on each.

Bisected by building a probe per commit and running the committed cmpff
comparator on each tree: the parent 1bc6f543 reads 0/7810/5531 and 0/3437/2222
(reproducing lane-av1422luma's own published red), 459e425d reads 0/0/0 on both.
The census's shrink-only reading was a correct observation of a wrong tree; the
same writer had a second half rather than there being a second writer.

Comparator liveness: 30 flip arms (2 cells x 5 frames x 3 planes), all moving
their own plane by exactly +1 and no other, mapping pinned before flipping. A
4:2:0 control cell is exact in the same run. The probe bypass was applied in
scratch trees only and every one is restored and removed.
Merge lane/av1knobshold: rank the exclusive KNOBS holdersAhmet Kaan Gümüş · b1dc4fe
Merge lane/av1knobshold: rank the exclusive KNOBS holders

28 running tests take knob_write. Together they hold the lock for 1634s.
The ~50s test that looked like a server wedge ranks 8th. The top four hold 62%
of that time: the_future_tpl_window (418s), filter_stage_bytes (228s),
the_lookahead_holds_one_group (212s), tile_bytes (157s). The two *bytes*
tests are throughput probes; shortening them would delete the measurement.
No lock change, no ignore. Report only.
lane/av1knobshold: rank the 28 running speed::KNOBS holders by wall timeAhmet Kaan Gümüş · df3d3a7
lane/av1knobshold: rank the 28 running speed::KNOBS holders by wall time

Measurement only: speed.rs untouched, no test shortened, no #[ignore] added.

53 tests take knob_write for their whole body (28 run, 25 ignored). All 28
running holders measured one-per-invocation with --test-threads=1; none hit
the 420s per-test ceiling or the 1500s global cap.

Total 1634s of exclusive KNOBS time. Top four hold 62%: the_future_tpl_window
(418s), filter_stage_bytes (228s), the_lookahead_holds_one_group (212s),
tile_bytes (157s). The 50s holder named in av1intertxwedge.report.md measured
50.27s and ranks 8 of 28.

Also maps lock_gate_counters: separate Mutex, 11 of the running KNOBS holders
take both locks.
Merge lane/av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hangAhmet Kaan Gümüş · 56662b6
Merge lane/av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hang

encoder::tests::an_inter_clip_codes_both_inter_set_tx_types_both_decoders_read_exactly
finishes in 50.5s alone, twice, identical hits and byte count. The encode holds
speed::KNOBS exclusively for that whole 50s. On a loaded host the harness parks
in futex_do_wait behind that lock and the log names whichever test printed last.
Host 3 later printed the same test ok. A 12-thread encoder subset reproduced the
wave14 thread shape (main parked, one sibling running, no aomenc child) and the
running thread moved between real encode frames, so it is a convoy, not a livelock.
No lock inversion: every site takes KNOBS then GATE_COUNTER_LOCK. No production
change, no ignore. The wave16 --skip of this test was a disposition of a misread
wedge; the test itself is fine.
lane-av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hangAhmet Kaan Gümüş · f1a1335
lane-av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hang

The wave14 wedge on an_inter_clip_codes_both_inter_set_tx_types_both_decoders_read_exactly
is not a hang in that test. Alone at --test-threads=1 it finishes twice, 50.56 s and
50.47 s, identical hits and byte count, 99% CPU and no child process.

The wait is speed::KNOBS (RwLock<()>). The test holds it exclusive across a ~50 s
encode, and the rest of the suite queues behind it; the wave14 signature (main in
futex_do_wait, one sibling R) is that convoy, and the test is named only because it
was last-printed. Reproduced at --test-threads=12: two subset runs still going at
30 min, final stack 7 of 9 threads parked on KNOBS against one worker, and the
target test printed ok in both.

Ruled out: no ABBA (every knob_write/lock_gate_counters site takes KNOBS then the
gate lock), no spin-wait (par.rs is condvar-based), no infinite loop. Sampled the R
thread three times at 20 s and it was a different thread each time, advancing
through different encode stages.

No fix: the cause is not local to this test. No #[ignore] added. The one asymmetry
worth a decision -- this test flips the same process-global lever as its two
siblings at encoder.rs:5513 and :5637, which both carry #[ignore = "sets
process-global search levers: run it alone"], while this one does not -- is logged
in the report rather than actioned.

Evidence, stacks and repro commands in lanes/av1intertxwedge.report.md.
Merge lane/av1floorshift: the floor-shift chroma planes were already per-axisAhmet Kaan Gümüş · 853835e
Merge lane/av1floorshift: the floor-shift chroma planes were already per-axis

The two sites the earlier reports named as floor->> allocators had already been
ported. decode_key_frame_tile_with_cdfs and decode_inter_tile allocate
(width >> ss_x, height >> ss_y). width and height are multiples of 4 (block grid
times 32, or mi times 4) and ss is a 1-bit header field, so the shift equals
round_ss for every k and every ss in {0,1}. Structurally exact, not corpus luck.

The odd cell is where a floor would show: 420_odd65x65_key is 65x65, crop 33x33,
not a floored 32x32. Counted shortfall 0 and crop-disagreement 0 on that cell, on
422_key_64x64, and on a 4:4:4 witness, with the allocator actually invoked on all
three. A static gate exhausts mi 1..=512 and ss in {0,1} on both the coded and
true extents. 4:4:0 is uncodable (subsampling_y needs subsampling_x) and is spelled
out rather than swept. No production code changed. The other halving hits in the
file are not plane allocations, are already closed, or are test-only.
lane-av1floorshift: the floor->> chroma planes are already per-axisAhmet Kaan Gümüş · 35997f1
lane-av1floorshift: the floor->> chroma planes are already per-axis

The two frame chroma plane allocators (decode.rs:36380 key frame,
54161 inter) size U and V as (width >> ss_x) x (height >> ss_y) --
already the per-axis form. The open question was floor vs crop: `>>`
floors where libaom's own producer (round_ss) crops.

Structurally exact, for every input: width/height are
block_grid(..) * 32, and ss is a 1-bit header field, so 32k >> ss ==
round_ss(32k, ss) for every k and every ss <= 1. The same for the
true extent (mi_cols * 4). No fix warranted.

Adds three counters and two gates: an invocation counter for
non-vacuity (the shortfall is 0 on every real input, so the gate
would otherwise pass with the instrument removed), a decidability
counter that names the floor/crop disagreement when one occurs, and
a shortfall counter that reads the allocator's OWN (cw, ch) rather
than recomputing the shift beside it -- an earlier draft recomputed
it and could not bite.

Mutation: restoring `width / 2, height / 2` at both sites reds with
an out-of-bounds read in the tile walk (the defect's real
consequence). Isolating it, one sample short of tripping that bound,
reds the gate's own assertion at 48 samples.
Merge lane/av1muchroma: the skip-arm chroma grid was the one short squareAhmet Kaan Gümüş · 9ceb046
Merge lane/av1muchroma: the skip-arm chroma grid was the one short square

The report that named every chroma_side * chroma_side site as too short at 4:2:2 was
wrong for 11 of 12. lane-av1-422j redefined chroma_side in decode_inter_block as the
enclosing square, (side >> ss_x).max(side >> ss_y), so those sites allocate twice their
per-axis extent. Shrinking them to the plane block reds the pinned 4:2:2 gates, because
the block-tail replay strides by chroma_side. The 4:4:4 quadrant arms are structurally
unreachable at 4:2:2 (guarded ss_x==0 && ss_y==0). Two side>64 walks are live at 4:2:0
and 4:4:4 and unreached by the committed 4:2:2 corpus; no fix was written for them.

The one short site is decode_block's SKIP arm, which kept side >> ss_x and sized a 64x64
block's chroma as 32x32 against a 32x64 plane block. Now chroma_side * chroma_height.
Latent: the only consumer sums the slice and reads grid[0], and a skip block is zeros,
so the seven pinned 4:2:2 gates stayed green either way. The new gate reads the
allocation's real length and reds by exactly 64 samples when the square is restored.
lane-av1muchroma: size decode_block's skip-arm chroma grid per axisAhmet Kaan Gümüş · 66fb257
lane-av1muchroma: size decode_block's skip-arm chroma grid per axis

The `chroma_side * chroma_side` mu-chroma sites split in two once measured.

Under decode_inter_block `chroma_side` is `(side >> ss_x).max(side >> ss_y)`
-- the ENCLOSING square lane-av1-422j introduced -- so at 4:2:2 those eleven
sites allocate 2.0x their per-axis extent: oversized, never short. The
block-tail mu_chroma_units replay strides the assembled grid by chroma_side,
so the square IS the writer/reader contract there; shrinking sites 11/12 to
chroma_w * chroma_h reds two pinned gates. Left alone.

decode_block has its own binding, `side >> ss_x`, which at 4:2:2 is half the
plane block: site 1 sized a 64x64 block's chroma at 32x32 = 1024 where the
plane block is 32x64 = 2048. Latent, not live -- the only consumer reduces the
plane through neighbour_state, which sums the slice and reads grid[0], and a
skip block is all zeros -- but an allocation half the block it names traps
the next per-row consumer. Sized per axis.

Gate: s422_322x240.obu, the smallest 4:2:2 fixture that reaches the site, with
two paired counters. skip_arm_chroma_rect_shapes is the non-vacuity arm (it
fires only where per-axis and square differ); skip_arm_chroma_short_samples
reads the allocation's real length and must stay 0. Restoring the square reds
it by 64 samples. A first draft keyed the counter on `chroma_side !=
chroma_height` and did not bite -- that proxy was replaced by the
length measurement.

Reachability, from an env-gated probe over the pinned 4:2:2 corpus (10
fixtures) and the 51 4:4:4 gates: sites 4/7/10 are guarded ss_x == 0 && ss_y
== 0, so 4:4:4 only -- unreachable at 4:2:2 structurally. Sites 2/8 are the
side > 64 mu-chunk walks: live at 4:2:0 and 4:4:4, unreached at 4:2:2, and
sound where they sit, so no fix was invented for the unwitnessed case. Sites
3/5/6/9/11/12 are reached and already correct.

palette_uv_side and the floor-> chroma plane allocators are untouched and
named still-open in the report.
Merge lane/av1paletteuv: palette_uv_side is the 4:2:0 plane block, and nothing else reaches itAhmet Kaan Gümüş · 94cba4d
Merge lane/av1paletteuv: palette_uv_side is the 4:2:0 plane block, and nothing else reaches it

tile.rs:5004 computes (side/2).max(4). That is libaom's per-axis plane block only when
ss_x == ss_y == 1. At 4:2:2 the map should be (side/2, side); at 4:4:4 it should be
(side, side). The decoder already reads the map per-axis, which is why those formats
are byte-exact today. The writer site is the square one left.

Measured unreachable for any non-4:2:0 shape: both encoder files' non-test source
resolves subsampling to exactly {(1,1)}; the five encode_key_frame_inner call sites
all pass a 4:2:0 constructor; Picture::check refuses 4:2:2- and 4:4:4-shaped pictures
by call; the public colour door writes headers only. A real 4:2:0 screen encode fires
9 chroma palette blocks and round-trips U/V exactly.

The gate states the arithmetic (the square is not the 4:2:2 or 4:4:4 map) and is
red-proven by dropping the halving, raising the floor, pinning the map to 4, and by
opening a non-4:2:0 door. Dropping .max(4) stays green and the test says why: the
admitted domain already halves to 4, so the floor is unreachable. No production code
changed. The mu-chroma square sites and the floor-shift chroma allocators stay open.
lane-av1paletteuv: gate tile::palette_uv_side as the 4:2:0 plane blockAhmet Kaan Gümüş · 0ec5cf8
lane-av1paletteuv: gate tile::palette_uv_side as the 4:2:0 plane block

palette_uv_side(side) = (side / 2).max(4) is named in
lanes/av1subsizesweep.report.md as a "4:2:2/4:4:0 palette map mis-sized"
site. Measured, not fixed: the value IS libaom's plane-1 block at 4:2:0
(blockd.h:1512 -> plane_block = block >> ss, +2 when under 4), and no
reachable path can hand the writer a 4:2:2 or 4:4:4 frame. The decoder's
counterpart (decode.rs:20914-20933) is already per-axis, which is why
those shapes decode byte-exact today.

Census in encode::tests::
the_chroma_palette_map_side_is_the_420_plane_block_and_nothing_else_reaches_it

  arm 1  the value equals libaom's per-axis formula over all 57 sides in
         palette_bsize_ctx's square domain, and the premise is stated as
         arithmetic: the square is NOT the 4:2:2 or 4:4:4 map
  arm 2  the non-test encoder names exactly one chroma shape, (1,1);
         key_frame_headers_colour (the only public door for a caller-chosen
         ColorConfig) reaches no tile writer; encode_key_frame_inner has 5
         non-test call sites, all 4:2:0; Picture::check refuses a 4:2:2-
         and a 4:4:4-shaped picture, by call
  arm 3  a real screen-content encode fires 9 chroma palette blocks and
         round-trips U/V exactly, so arm 1 is not arithmetic over dead code

Five mutations measured biting: drop the halving, raise the floor, pin the
map to 4, flip Colour::color_config to subsampling (0,0), and add one
crate::tile:: line to key_frame_headers_colour. Dropping .max(4) is NOT a
mutation -- palette_bsize_ctx refuses bw*bh < 64, so side 8 already halves
to 4 and the floor is unreachable in the admitted domain; the test body
says so instead of leaving a green floor-mutation reading as coverage.

Runs: --lib palette 26 passed / 0 failed; --lib screen 19 passed / 0 failed
/ 4 ignored; 4:2:2 pin 16 chroma palette unit windows and 4:4:4 pin 4
windowed palette chroma units, both byte-exact vs aomdec. The full --lib
suite exceeded a 3000 s local timeout mid-run (server job by project rule).

Still open, named not edited: the mu-chroma chroma_side*chroma_side sites
and the floor->> chroma plane allocators. The forward unblock is also
named: if a non-4:2:0 encoder colour config ever appears, write_color_index_map
and palette_uv_bits both take a single `side`, so the map writer must go
per-axis (bw, bh) the way decode_color_index_map_wh already is before any
non-4:2:0 palette can be written at all.
Merge lane/av1p1pin: pin the 4:4:4 sb128 chroma-tile witnessAhmet Kaan Gümüş · 81fd9b0
Merge lane/av1p1pin: pin the 4:4:4 sb128 chroma-tile witness

lanes/av1witness2recheck rebuilt the hunt's P1 recipe and found it byte-exact on main,
but the bytes were not pinned -- the existing 4:4:4 sb128 fixture is a different stream.
Rebuilt from the report's exact ffmpeg and aomenc lines: 595 bytes, sha256
68773f2c6e01a2d211bf0213479accb4c2c360132c0e1bc3b326eab7861925b1, matching the hunt.
Recipe did not drift.

The gate compares all 3 frames and 3 planes against both aomdec rawvideo and ffmpeg
yuv444p, and asserts the guarded 128-root VERT path fired (edge-VERT 6, part128 VERT 6,
intra VERT 6; the HORZ counters stay 0, which is this stream's shape). Three mutations
red it: the counter ceiling, one aomdec sample, one ffmpeg sample. No decode-path change.
lane-av1p1pin: pin the 4:4:4 sb128 128-root rect witness, gate it byte-exactAhmet Kaan Gümüş · c4b999c
lane-av1p1pin: pin the 4:4:4 sb128 128-root rect witness, gate it byte-exact

Recipe P1 of lanes/av1witness2recheck.report.md was measured but never
pinned: its 595 bytes lived only under /tmp. Rebuilt from the report's
exact ffmpeg+aomenc lines -- sha256
68773f2c6e01a2d211bf0213479accb4c2c360132c0e1bc3b326eab7861925b1, so the
recipe did not drift.

Pinned as fixtures/444_sb128rect_chroma_tile_witness.obu (distinct from
444_sb128rect_lr_witness.obu) and gated by
a_444_sb128_rect_chroma_tile_witness_is_byte_exact: all 3 frames, all 3
planes byte-exact vs aomdec and ffmpeg yuv444p rawvideo, plus census
deltas proving the guarded 128-root VERT chroma tiling fired 6 times
(edge_vert, part128 vert, intra_vert) with HORZ still 0.

Non-vacuous, three mutations, three reds: counter expectation 6->7 reds;
a flipped U sample reds the aomdec arm; a flipped V sample placed after
the aomdec block reds the ffmpeg arm alone. No decode-path edit.
Merge lane/av1graincensus: census the picture the caller receives, after grainAhmet Kaan Gümüş · 927c533
Merge lane/av1graincensus: census the picture the caller receives, after grain

census_unwritten_final runs before apply_grain, over the clean planes. The grain
destination is allocated uninitialised and written by the band copy, so the picture
the caller receives on a grained frame was the one buffer no census had looked at.
lanes/unwritten-dep.report.md sections 6 and 8 declined to claim it. This measures it.

The census sits inside apply_grain, on both returns, so the property is the
function's rather than one of the four stream.rs call sites. uninit_plane poisons
the buffer only when the sentinel is live; every shipped build keeps the
with_capacity plus set_len corner-cut.

A poison count cannot see a sample that was READ and then overwritten -- the noise
kernels overwrite every sample they read -- so the initial-content gate (two fills,
0xDEAD vs 0xBEEF) now includes the grain fixture. Neutering the clean-row copy is
invisible to the poison census and reds that gate.

Proven: deleting the post-grain call reds with "scanned 0 samples ... class:
census-never-ran". Grain fixtures stay byte-exact vs ffmpeg.
av1graincensus: census the grained picture, and cover uninit_plane's unsafeAhmet Kaan Gümüş · 852b5e2
av1graincensus: census the grained picture, and cover uninit_plane's unsafe

census_unwritten_final runs in stream.rs before apply_grain, and
apply_grain is the one stage after it that allocates a NEW picture:
film_grain::uninit_plane, Vec::with_capacity + set_len, no fill.
lanes/unwritten-dep.report.md sections 6 and 8 both decline to claim
anything about that buffer, so the picture the caller actually receives
was unmeasured.

- decode.rs: census_unwritten_grained at apply_grain's return, with its
  own GRAINED_UNWRITTEN_SAMPLES / GRAINED_CENSUS_SCANNED pair. The
  scanned/found pairing is the same one the other two censuses use, so a
  build with the call deleted cannot pass. census_sentinels is now the
  shared counting body, returning None when the fill is off, so neither
  caller can publish a meaningless zero. plane_poison and
  plane_sentinel_on become pub(crate) so the fill and the count cannot
  disagree about the value or the predicate.
- film_grain.rs: uninit_plane fills with that poison when
  plane_sentinel_on(). Counting == poison over ambient garbage is not a
  census -- a hole survives with probability ~1/65536, not always. With
  the sentinel off, every shipped build, the allocation is still
  with_capacity + set_len, so the documented corner-cut is untouched.
  Both returns of apply_grain census, so the property is the function's
  rather than one branch's.
- stream.rs: the gate, a synthetic control counting 5 rather than the
  pre-grain arm's 7 (so reading the wrong counter reds), and per-fixture
  scanned > 0, which is reachable only by grain having run.

Measured 0 unwritten on s422_grain_160x128, grain_cdef_lr_128x128 and
reelb_arf_witness. Mutations: deleting the call reds via scanned > 0; one
sentinel sample forced into a grained picture reds with exactly 3, the
fixture's 3 grained frames.

Class sweep, same lane: with copy_clean_rows neutered the census stays
correctly 0 -- the noise overwrites every sample it reads -- so it cannot
see a READ of uninitialised memory. That gate had no grain fixture at
all, leaving uninit_plane's unsafe uncovered; s422_grain_160x128 is added
and proven to bite (allocdet goes red on the same mutation, 0xDEAD vs
0xBEEF).

Report: lanes/av1graincensus.report.md
Merge lane/av1sitecensus: two subsize guards claimed per site, not per levelAhmet Kaan Gümüş · f5333e1
Merge lane/av1sitecensus: two subsize guards claimed per site, not per level

The walk census claimed two guards by LEVEL, so deleting either left the test green.
The key-frame 8x8 SECOND resolution (decode.rs:37621) feeds decode_leaf_rect8 on a raw
part8 whose VERT shape is 4x8, BLOCK_INVALID at 4:2:2; the census's AtResolution(KF, 8)
row finds the OTHER 8x8 guard in the function. The inter decoder's own 128-root guard
(decode.rs:54495) sits above match part128, whose half128_inter arms descend into 128x64
and 64x128 rects, also BLOCK_INVALID at 4:2:2; no row claimed it because the inter
decoder never routes through read_sb128_root.

Each new row is anchored on a string unique in the decode body and searched FROM that
anchor, not from the function top -- the find()-returns-the-first-guard defect, closed
once already in this file. Deleting either guard reds the census and names the site.
No decode-path line changed.
lane/av1sitecensus: claim two subsize guards per SITE, not per levelAhmet Kaan Gümüş · 1698dbd
lane/av1sitecensus: claim two subsize guards per SITE, not per level

W1-6 from the refusal plan, closing av1subsizesweep "Not closed" #2.

The walk census claimed every guard by LEVEL, so two guards were deletable
without the test noticing:

  - decode.rs:37621, the SECOND key-frame 8x8 resolution. The
    decode_leaf_rect8 row is AtResolution(KF, 8), which finds the FIRST
    (8, 8) guard in the function, 37322.
  - decode.rs:54495, the inter decoder's OWN 128-root guard. The
    decode_block_128rect row names read_sb128_root, which the inter
    decoder never routes through, so nothing claimed it at all.

Both feed BLOCK_INVALID-at-4:2:2 rect walks (4x8 off a raw part8; 128x64 /
64x128 off the half128_inter! arms).

New section (g) of
every_chroma_walking_leaf_dispatch_is_guarded_or_closed_with_a_reason: one
row per site, anchored on a string unique in the decode body, searched from
the anchor rather than the function top, with the dispatch required to
follow the guard. Deleting either guard reds the row and names the site;
moving it below the dispatch reds the ordering assert.

Both mutations proven red and restored; the diff is the +128 of the new
section alone. No decode-path line touched. Closes #2 only -- the census is
still a derived site list, so #1 stands.
Merge lane/hash0ee1edf403: the campaign value is not an artefact shapeAhmet Kaan Gümüş · e4f7cf8
Merge lane/hash0ee1edf403: the campaign value is not an artefact shape

The one campaign measurement never explained -- reelb_rect64_intra16x4_witness's sentinel
hash 0ee1edf403 at 8d6998d7 -- was swept by a byte-exact truncation sweeper (SHA-256 state
walked one byte at a time, digest checked after every offset, 629821474 shapes per frame
order, both lex and numeric order) plus run-to-run nondeterminism, film-grain planes,
cross-fixture contamination over the whole corpus, hash-function variants, swapped columns,
and every dump rung. Zero matches.

The sweeper has teeth: it reproduces reelb_arf_witness's known truncation (97ef82c0ce) at
exactly frames 0..4 plus 13320192 bytes of frame 5, the shape the earlier lane reported by
hand. The negative is therefore a measurement, not a silence.

The finding: on 8d6998d7 the plain and sentinel runs produce BYTE-IDENTICAL frame files, so
every artefact shape collapses to the campaign's own plain value a26438168c. No shape sweep
can reach 0ee1edf403 -- the divergence lies outside the artefact space, and the decode is
proven invariant under every ambient content tested. The value stays an open instrument
question, not a decode defect, and the truncation class that produced its sibling is closed
by dumpio.
lane/hash0ee1edf403: the campaign value is not an artefact shape, and the sweep now runs at one-byte granularityAhmet Kaan Gümüş · 989776d
lane/hash0ee1edf403: the campaign value is not an artefact shape, and the sweep now runs at one-byte granularity

0ee1edf403 (reelb_rect64_intra16x4_witness.obu at 8d6998d7, sentinel run) is still
not reproduced, and the report argues why a further shape sweep cannot reach it:
the plain and sentinel runs produce BYTE-IDENTICAL frame files here, so every
shape built from this tree's bytes collapses to the campaign's own plain value
a26438168c.

What is new is the granularity. hash0ee1-trunc.c walks a SHA-256 state one byte
at a time and checks after every offset, so the truncation family is closed at
offset 1 rather than 4096: 629821474 shapes per frame order, both orders, zero
hits. The sweeper is validated on the control that IS a known truncation --
reelb_arf_witness's 97ef82c0ce is found at exactly frames 0..4 plus 13320192 bytes
of frame 5, the shape unwritten-dep reported by hand -- and its SHA-256 is pinned
against hashlib.

Also swept here, none of it reaching the target: run-to-run nondeterminism at
N=8 per fill under MALLOC_PERTURB_, MALLOC_MMAP_THRESHOLD_=0 heap recycling, four
thread counts and CPU oversubscription; the film-grain uninitialised plane, which
EC_AV1_PLANE_SENTINEL does not gate and which NO_GRAIN shows does not reach
output; cross-fixture directory contamination for all 126 other fixtures, whole
and truncated; mixed-fill directories; 3706 gap/run/substitution byte sets; 140
splices; 36 hash-function and listing forms; all 127 fixtures x 2 fills x both
orders (the target is not another fixture's hash); and all ten EC_AV1_*_DUMP
rungs.

Verdict stays OPEN with the candidate list narrowed to host-specific ambient
content reaching output on the campaign host, an unmeasured build, an unguessable
harness shape, or a transcription slip -- each with its falsifier. Read-only on
the decode path: no crate source is edited.
Merge lane/h26xpinloud: the h26x test pins fail loudly on an Ok-but-short writeAhmet Kaan Gümüş · 3dd5d25
Merge lane/h26xpinloud: the h26x test pins fail loudly on an Ok-but-short write

ec-h264 and ec-h265 wrote their test pins with fs::write(..).ok()? and handed the path
straight to ffmpeg as decoder input. The Err path was closed (the helper bails), but a
write that returns Ok while leaving a short file was not -- ffmpeg would then read a
truncated stream and the test would report a wrong or missing comparison, not a failure.
The same silent-truncation class the ec-av1 dump and pin lanes closed, one hop removed.

A per-crate helper (not a cross-crate dependency) stats the file after the write and fails
loudly with the site, the path, the bytes on disk, the bytes owed, and the OS error -- or,
for the write that returned Ok and left a short file, the explicit statement that there was
no OS error. The failure semantics each site already had are kept: the callers bail, and
the one site that panicked before keeps a panicking twin. The sweep found a fifth
same-shape site (ec-h265's write_au) and fixed it too, and made the rd-trace write fatal
where a length check is impossible (append mode, no knowable total).

Proven with a real Ok-but-short write: a /dev/null symlink makes fs::write return Ok with
on-disk length 0 for 1234 bytes owed, and each crate's test asserts the failure line names
the path and the shortfall, then a whole-file control reads back byte-identical.
Merge lane/av1witness2recheck: the two witness2 4:4:4 panics are closed on mainAhmet Kaan Gümüş · fcbe228
Merge lane/av1witness2recheck: the two witness2 4:4:4 panics are closed on main

A measurement lane: no code changed. It rebuilt the hunt's two exact recipes (sha256
68773f2c.. and 72bed279.., byte-identical to the hunt's, so the recipe did not drift) and
decoded both with a provenance-checked probe built from its own tree.

Both decode clean on current main -- 3 frames, 320x256, empty stderr, no refusal -- and
both are byte-identical to aomdec --rawvideo AND to ffmpeg -pix_fmt yuv444p rawvideo. At
fe3e8418, P1 panicked at decode.rs:17631 (the chroma-tiling assert) and P2 panicked at
decode.rs:3766 (index 16 of a 16-entry table in reconstruct). Both are closed: P1 by
349b3918 (lane-av1-444sb), P2 by b6d4b528 (lane-av1leaf8oob), and the byte-exactness of
BOTH traces to one shared commit fa70a68c (4:4:4 intrabc rect chroma: size the plane block
from ss_size_lookup, not a halving) -- exact at that commit, not exact one before.

No Wave-1 lane to charter. P1's bytes are not pinned in-tree (the existing 4:4:4 sb128
fixture is a different stream); the bytes and the recipe are preserved in the report.
lanes/av1witness2recheck: W1-7 -- both witness2 4:4:4 panics are closed on mainAhmet Kaan Gümüş · b407ed7
lanes/av1witness2recheck: W1-7 -- both witness2 4:4:4 panics are closed on main

Re-ran the hunt's two exact recipes at b8385c93. Both reproduce the
fe3e8418 bytes byte-for-byte (68773f2c... / 72bed279..., no recipe drift),
and both decode clean AND byte-exact against aomdec and ffmpeg on main.

Control: the same streams panic at fe3e8418 at the hunt's own lines
(decode.rs:17631 128-rect chroma assert, decode.rs:3766 OOB in
PlaneBuf::reconstruct), so the witnesses are still live; only main moved.

P1 closed by 349b3918 (lane-av1-444sb, the ss-aware 128-rect chroma unit
walk; the assert is now the per-axis invariant at decode.rs:24515).
P2 closed by b6d4b528 (lane-av1leaf8oob, decode_leaf8's intrabc closure
sized chroma with the 4:2:0 halving; its gate pins these exact bytes as
fixtures/444_leaf8_oob.obu and passes here).

Byte-exactness on both streams is a later, shared fix: fa70a68c, measured
directly as exact at fa70a68c and diverging at f33b9d41.

No Wave-1 lane to charter for either site. P1's bytes are not pinned
anywhere in-tree; noted in the report if a permanent 4:4:4 sb128 fixture
is wanted.

No code edited, no fixtures committed.
Merge lane/av1oracleguard: the 4:2:0 ffmpeg oracle helpers refuse a non-4:2:0 streamAhmet Kaan Gümüş · 269e1fd
Merge lane/av1oracleguard: the 4:2:0 ffmpeg oracle helpers refuse a non-4:2:0 stream

After the 4:2:2 lift, the three 4:2:0 oracle helpers (ffmpeg_decode_sequence and its 10- and
12-bit twins) would silently CONVERT a 4:2:2 or 4:4:4 stream to 4:2:0 (-pix_fmt yuv420p,
width*height/4 sizing), so a 4:2:2 gate built on them would compare the wrong planes and
pass green. assert_420_oracle_stream reads the stream's OWN color_config subsampling from
its sequence-header OBUs and refuses before the ffmpeg spawn, naming the real subsampling,
the chroma shape, and the sibling helper to use.

Proven both ways: a flipped oracle sample moves the comparator's count by exactly one (and
nothing else moves), so 4:2:0 still measures byte-identical; and a 4:2:2 pin is refused by
all three helpers, with the message naming the sibling -- red before, green after, and the
red failure text is the hazard itself. Verified no existing gate feeds a wrong-shape pin to
these helpers (the 4:2:2/4:4:0 pixel-exactness battery stays green).
Merge lane/av1bookkeep: the inventory's two unregistered rows, and the seventh 4:2:2 cellAhmet Kaan Gümüş · 53601b1
Merge lane/av1bookkeep: the inventory's two unregistered rows, and the seventh 4:2:2 cell

The refusal inventory listed 33 strings but PROVEN carried 31 rows, and its own discipline
only checked one direction (every row names a live refusal) -- nothing checked that every
listed refusal has a row. Registered the two missing rows with their existing gates: the
BLOCK_INVALID subsize refusal -> a_422_header_over_a_420_tile_refuses_the_subsize_libaom_
calls_corrupt (NegativeGate), and the filter-intra capability claim ->
a_sb_level_horz_vert_strip_admits_no_filter_intra_symbol (Enumeration). Each is red-proven
by deletion.

And the corpus gate's own precondition is now discharged: it pinned six of the seven
measured-diverging 4:2:2 cells and said the branch must not land until s422_384x240 closed
and the corpus re-measured 51/51. The cell IS closed on main (BYTE-EXACT, U=0 V=0 Y=0 over
17 decode frames, re-measured on this tree), and the committed fixture
422_palette_intra_in_inter_384x240_17f.obu is byte-identical to the sweep's
s422_384x240.obu (same sha256 bf1c658e..a815b) -- the seventh cell is pinned with the
exactness re-measured here, and the doc states the closure.
ec-av1: the 4:2:0 ffmpeg oracle helpers refuse a non-4:2:0 streamAhmet Kaan Gümüş · 8b97983
ec-av1: the 4:2:0 ffmpeg oracle helpers refuse a non-4:2:0 stream

`ffmpeg_decode_sequence`, `_10bit` and `_12bit` ask ffmpeg for a 4:2:0
pix_fmt and slice chroma at `width * height / 4`. ffmpeg does not refuse a
mismatched stream, it CONVERTS it, so the helper's own byte-count assert
still passes and a gate built on it compares converted chroma against our
real 4:2:2 chroma and passes green. `lanes/av1subsizesweep.report.md` names
this as the dangerous form.

Each helper now reads the stream's OWN `color_config.subsampling_x/y` from
its sequence-header OBUs (the `stream_bit_depth` pattern) and refuses
anything but (1,1), naming the real subsampling, the chroma shape it means,
and the sibling to use. The guard is the first statement, before the spawn,
so a host without ffmpeg still proves it. The correct siblings
(`_422`, `_422_depth`, `_444`) already existed.

The `_10bit` sibling was not in the assignment's target list but is the same
hazard with the same arithmetic, so it got the same one-line guard. The diff
is 256 insertions and 0 deletions: every existing line is byte-identical, so
the 4:2:0 path is unchanged by construction.

Non-vacuity both ways: on the 4:2:0 pin `420_mixll_256x128_6f.obu` the
per-plane mismatch count is [0,0,0] and one flipped oracle U sample moves it
to [0,1,0]; and `422_key_64x64.obu`, `s422_352x242_10b.obu` and
`s422_12bit_160x128.obu` are refused with (1,0), 4:2:2 and the sibling name
in the message. Reducing the guard to a no-op turns both refusal tests red.

No pre-existing test fed a non-4:2:0 stream to these helpers: a fixture-keyed
scan of every test function returns only this lane's own refusal tests, and
the shape-filtered run (68 tests) and the `pixel_exact` family (257 tests)
are green with EC_AV1_REQUIRE_FFMPEG=1.
lanes/av1bookkeep: the lane report for the inventory rows and the seventh 4:2:2 cellAhmet Kaan Gümüş · 2af0609
lanes/av1bookkeep: the lane report for the inventory rows and the seventh 4:2:2 cell

Two commits of code, this file third. It records the measurements both commits rest
on, the red proofs (row deletion x2, guard-wording mutation, fnv mutation), and what
this lane did NOT establish: the charter's "94-cell census on the merged tree" has no
artifact in lanes/ or ~/.cache/census422*/, so it is neither reproduced nor cited --
what is measured is the 95/95 ffmpeg-oracle run on this tree, which is a different
instrument and is labelled as such.