forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 26c159dcacee649b1e14bb47fa46893ff018d251

2026-09-30

Merge lane-av1444altref: the 8x8 compound leaf now warps CHROMA per plane like libaom -- ll444_c byte-exact (0 wrong, was 317)Ahmet Kaan Gümüş · 26c159d
Merge lane-av1444altref: the 8x8 compound leaf now warps CHROMA per plane like libaom -- ll444_c byte-exact (0 wrong, was 317)

The 4:4:4 lossless alt-ref residual was NOT a rounding difference: decode_inter_block8's compound arm
warped the luma intermediates and left both chroma planes TRANSLATIONAL, while libaom's
dec_build_inter_predictor runs av1_init_warp_params + av1_warp_plane inside its PLANE loop
(reconinter_template.inc:248/262 -> reconinter.c:156) with a per-plane bail at reconinter.c:61
(block_height < 8 || block_width < 8). An 8x8 GLOBALMV compound leaf therefore had its chroma predicted
by translation from the block's top-left, which is exactly why every affected sample was +/-1 with a
bottom-right gradient (the MV is the affine derivative at the block CENTRE) and why the luma of the same
blocks was exact.

Four chroma warp calls added (U ref0/ref1, V ref0/ref1), each guarded by warp_plane_allowed(chroma_w,
chroma_h); the same-class sweep also closed a latent defect where the SINGLE-REF arm guarded on width
only, so a 4:2:2 BLOCK_8X4 chroma block warped where libaom bails.

Evidence: ll444_c 0 differing bytes (cmp -l empty), 18/18 decode-order pictures clean;
gate a_lossless_444_altref_leaf8_warp_chroma_is_byte_exact (byte-exactness on all 3 planes, oracle-flip
control arm, reachability counter, committed fixture sha256 999a41d8...); mutation proof reds by name
with (0,147,170) vs (0,0,0). Main re-verified: check clean, gate green, lossless/444/422/warp/obmc
101 passed 0 failed. The oracle's rung now carries a picture index (aom_ec_pict_idx), closing the
pairing hole the previous lane named.
lane-av1444altref: FIX the 4:4:4 lossless alt-ref cell -- the 8x8 compound leaf warped LUMA only and left both CHROMA planes translational (0 wrong bytes now, was 317)Ahmet Kaan Gümüş · 97cb2e0
lane-av1444altref: FIX the 4:4:4 lossless alt-ref cell -- the 8x8 compound leaf warped LUMA only and left both CHROMA planes translational (0 wrong bytes now, was 317)

ROOT CAUSE, and it is not a rounding difference: decode_inter_block8's compound arm called
warp_affine_compound on the LUMA intermediates (49205 ref0, 49239 ref1) and left the chroma arms
(inter0_u/inter1_u/inter0_v/inter1_v) translational. libaom warps PER PLANE -- reconinter_template.inc:248
av1_init_warp_params + :262 build_one_inter_predictor -> reconinter.c:156 av1_warp_plane, both INSIDE
dec_build_inter_predictor's plane loop (decodeframe.c:701-768), i.e. run for every plane with that
plane's own subsampling/origin/extent -- with a per-plane bail at reconinter.c:61
'if (block_height < 8 || block_width < 8) return;'. So an 8x8 GLOBALMV (affine) compound leaf had its
chroma predicted by TRANSLATION from the block's top-left corner.

WHY THE SIGNATURE WAS +/-1 WITH A BOTTOM-RIGHT GRADIENT: a GLOBALMV block's MV is the affine's local
derivative at the block CENTRE, so a translation agrees with the warp at the centre and diverges
linearly with distance from it -- zero at the top-left, growing toward the bottom-right, 1-2 LSB on
this content. A wrong reference/weight would give a uniform offset and a rounding difference a +/-1
scatter with NO spatial gradient; the LUMA of the very same blocks was exact, which is the sharpest
refutation of the rounding class.

FIX: four chroma warp calls -- U ref0 (49333), U ref1 (49369), V ref0 (49432), V ref1 (49468) -- each
guarded by warp_plane_allowed(chroma_w, chroma_h) (mirrors reconinter.c:61) and passing the plane's
own origin/extent/subsampling.
SAME-CLASS SWEEP, and it found a latent defect: the 8x8 leaf's SINGLE-REF arm guarded its chroma warp
on WIDTH only (chroma_w >= 8), so a rect chroma block 8 wide and under 8 high (4:2:2 BLOCK_8X4) warped
where libaom bails on block_height < 8; now warp_plane_allowed(chroma_w, chroma_h) (50379). All four
inter arms now warp per plane.

RESULT: ll444_c 0 differing bytes (cmp -l vs aomdec --rawvideo empty), all 18 decode-order pictures 0 in
EC_AV1_PREFILT_WIDE_DUMP; parent 317 (0 Y / 147 U / 170 V), first diff decode picture 8.
PAIRING HOLE CLOSED: the oracle rung had no picture counter, so block identity was ambiguous -- the
oracle now carries aom_ec_pict_idx (decodeframe.c:89, bumped at :5493) and the rung (EC_CPRED,
decodeframe.c:691) prints picture + full block identity + every sample, moved to the end of the plane
loop to match the our-side rung (EC_CPRED, decode.rs:37184 in reconstruct_mc_rect); join is per PIXEL.
The 7 diff cells in decode picture 8 are all 8x8 blocks: mi(8,72), mi(20,28), mi(52,46) compound_idx=0
COMPOUND_WEDGE with GLOBALMV on BOTH refs, plus mi(20,30) the inter-intra leaf.
GATE: stream::tests::a_lossless_444_altref_leaf8_warp_chroma_is_byte_exact (stream.rs:8395) -- all 3
planes of all 16 displayed frames vs aomdec --rawvideo through the shared count_rawvideo_diffs
comparator (size mismatch is a failure, not a pass); arm 2 rotates ONE byte of the oracle's own output
(first U sample of frame 0) and requires the same comparator to report (0,1,0); reachability from
compound_warp_hits_8 delta > 0. Fixture committed byte for byte
(crates/ec-av1/fixtures/ll444_c_altref_leaf8_warp.obu, 512220 B, sha256
999a41d88a092840456d5e9de83590ab819a8a14686a694889e63c2258ff2bb8); scripts/fixture-library.tsv
regenerated.
MUTATION PROOF: with the fix reverted (4 chroma warp blocks deleted, the single-ref guard back to
chroma_w >= 8) the gate reds BY NAME -- left (0,147,170) right (0,0,0) at stream.rs:8437 -- and is green
again after restore. Verified by Main: cargo check clean; the new gate passes; lossless/444/422/warp/obmc
101 passed, 0 failed.
Merge lane-av1labelspace: label-space class sweep CLOSED (one family broken+fixed, one proven correct, 12 rungs structurally correct), and the 320x236/322x248 fork is reachable from aomenc's DEFAULT threaded encodeAhmet Kaan Gümüş · 0cea07a
Merge lane-av1labelspace: label-space class sweep CLOSED (one family broken+fixed, one proven correct, 12 rungs structurally correct), and the 320x236/322x248 fork is reachable from aomenc's DEFAULT threaded encode

The sweep over every env-gated rung that prints an mi coordinate, by family:
- A, the main partition walk (decode.rs:34933-35107): the ONE broken family -- the 16-level
  rung printed at16 raw while its 32-level sibling printed at32*MI. Fixed in lane-av1partadvance
  (72aa9e73); pixels did not move, only the label.
- B, the rect partition walk (52346/52692/52836): all three levels carry the same *4 conversion
  relative to their own index -> one space. PROVEN CORRECT, not the bug.
- C, the 12 mi-printing rungs (OUR_PART, EC_LEAF, EC_RECT64TU, EC_INTRA128, EC_SPLITSTRIP,
  TRACE_RECT_COEFF x3, TRACE_RECT32_END, EC_HALV, TRACE_RECT64_END): every one prints raw with
  no multiplier -- ONE uniform convention with no sibling to disagree with, so the shape cannot
  occur. PROVEN CORRECT structurally.
No second instance of the bug exists. Pixel-space rungs (OUR_PRED/EC_MCPUSH/EC_OBMCREC) print a
different quantity and are correctly excluded.

REACHABILITY, one variable: same y4m, same flags, only --threads=8 vs --threads=1 --row-mt=0.
--threads=8 -> 16562 B (the diverging family), Y 234349 / U 56957 / V 52981, 0/16 exact.
--threads=1 --row-mt=0 -> 16459 B sha256 dccfb20853ff1e8cb629590fdcc8380a7c4e58292477b8154a03eea05431178b,
Y 0 U 0 V 0, 16/16 exact. Not tiles: both streams are cols=1 rows=1 uniform_spacing; threading
changes the rate-control/RD decisions, so the two are genuinely different content. Since aomenc
DEFAULTS to multi-threaded, an ordinary 'aomenc --codec=av1 ... --cpu-used=0' command produces the
diverging content: the defect is reachable, not a fixture artifact. This strengthens, and does not
contradict, lane-av1gapremeasure's finding that --threads=1 / --row-mt=0 / --end-usage=q all make
it exact.

No gate and no decoder change in this lane: the defect is not fixed and its mechanism is still not
located in code (fork pinned at coefficient read 6, inside a V-plane 8x8 unit's sign/Golomb tail).
A pixel gate for an unexplained defect would be the ratchet pattern this wave has been removing.
Merge lane-av1422lpf: the 4:2:2 lossless inter chroma panic family is SEVEN sites, all fixedAhmet Kaan Gümüş · 15ad394
Merge lane-av1422lpf: the 4:2:2 lossless inter chroma panic family is SEVEN sites, all fixed

The previous lane found five; this one found seven (two are the INTRA twins of sites 1 and 5) and
measured the previous lane's 'site 3' to be NOT a bug (those counts are already per-axis: on the
failing cell write=(8,16) ss=(1,0) gives 4 rows x 1 col against a (4,16) plane block). Per site the
change is an EXTENT, and every one of them is identical at 4:2:0 and 4:4:4 where the chroma plane block
is square -- the two exceptions are named: site 1's stride*blk_h differs for a 64x128 4:2:0 block
(32x64 plane block), and site 4's VERT arm (4,8)->(4,16) at ss_y==0, because a PARTITION_VERT_4 pair
pairs on COLUMNS while ss_x==1 so the pair is 8x16 luma and 4:2:2 subsamples X only (HORZ_4 needs no
third shape at 4:2:2: each 16x4 strip is its own chroma reference with an (8,4) plane block).
END STATE, all diffs against a PRISTINE-MAIN binary built in a separate worktree, not claims:
- panics remaining on the three cells: 0 (was 3). Two now REFUSE BY NAME ('Golomb tail'), one decodes.
- regressions over 33 cells: 0. 6/6 4:2:2 committed pins EXACT, 17/17 4:2:2 lossy EXACT, 4/4 4:2:0
  lossless EXACT, 2/2 4:4:4 lossless EXACT, all-intra controls EXACT, and the pre-existing divergences
  (AB/O/Q/S, ll444_c altref) show IDENTICAL counts.
- the three cells are NOT byte-exact, and the lane says why: the panic is gone but a single-key-frame
  4:2:2 lossless stream diverges on the INTRA path with the SAME counts on this tree and on main -- a
  separate pre-existing defect that seven extent sites cannot fix. Converting a LOUD PANIC into a
  named refusal plus a separately-owned divergence is the improvement, and no gate was left asserting
  the old behaviour.
Two new gates with per-site mutation proofs (every mutation reds by name) and three new pins
(W/X/Y_intrabc.obu).
lane-av1422lpf: pin the three panic witnesses and gate all seven sitesAhmet Kaan Gümüş · d840e80
lane-av1422lpf: pin the three panic witnesses and gate all seven sites

Committed code refuses 4:2:2 at the sequence header, so the decode-level
half of this gate cannot run here. What is committed is the byte pin
(size + fnv1a64) plus refusal-by-name for the three cells that used to
panic, and a source-scan arm with one assertion per site.

Every scan assertion has a forbidden twin and a required twin, so neither
an unreverted site nor a matcher that stopped matching can pass. Two of
the matchers (sites 5 and 6) were DEAD on first write -- the revert
mutation still passed because the literal being searched for never
matched even with the fix in place, since the line-anchored form cannot
span the fix's own comment. Measured and corrected: the gate now also
builds a whitespace-flattened form of each body for the matchers that
span an argument list, and every site's revert mutation reds it.
Merge lane-arf-gm-lossless: FIX the user-reachable 4:2:0 lossless alt-ref divergence (one line in record_mi_chroma)Ahmet Kaan Gümüş · a153942
Merge lane-arf-gm-lossless: FIX the user-reachable 4:2:0 lossless alt-ref divergence (one line in record_mi_chroma)

ROOT CAUSE, one line: a 4x4 CHROMA transform unit is 4 << ss luma px per axis, i.e. 1 << ss LUMA mi,
so its context cell is the STEP-ALIGNED group of mi that a block may cover only PART of. A block
starting mid-cell -- a 16x4 / 4x16 1:4 strip, whose mi row/col is ODD at 4:2:0 -- stamped its own
origin plus the mi below it, so the strip above a block handed that block a 'left neighbour' libaom
never had, and the block's chroma txb_skip context came off the wrong cell. record_mi_chroma now
aligns the published origin to the chroma cell: (mi_r & !(step_y - 1), mi_c & !(step_x - 1)) -- which
is also where libaom's per-plane 2-D left/above_context_map cell lives (indexed in the PLANE's own 4x4
units, not in luma mi). A CHROMA_MIDCELL_PUB_HITS [row, col, both] counter proves the witness really
walks the realigned path, so the gate cannot pass on a stream whose chroma units all start on a cell
boundary.
THREE TICKET CORRECTIONS, all measured: global motion is NOT the trigger (--auto-alt-ref=1
--enable-global-motion=0 diverges too, and by MORE: 1242219 vs 1088573 wrong; every GM model in the
headers is Identity); the 'ARF alone refuses' premise does not hold at 16 frames (that cell DIVERGES
like ARF+GM; the refusal appears one knob away: --sb-size=64, --enable-dual-filter=0,
--enable-intra-edge-filter=0, --max-reference-frames=3, or a shorter cut); the real trigger is lossless
AND alt-ref AND a 1:4 rect strip (--enable-rect-partitions=0 / --enable-1to4-partitions=0 each make it
exact). Lossy with alt-ref was already exact (cq30, 17/17).
FIXED: five configurations of the 320x240 testsrc2 cell plus testsrc2 416x240 and mandelbrot 320x240
all go to 0 wrong, EXACT in decode order (17/17, 16/16), each with a per-cell control (a flip in the
oracle's own aom.f2 moves Y by exactly +1 and knocks exactly one frame out). Pre-fix shape: first
divergence at decode-order frame 2 (the first frame predicting from the ALTREF slot) at luma (264,0),
only 299 of 1200 luma blocks wrong -- a wrong-PREDICTION wedge downstream of one wrong context read,
not an entropy flood.
NOTE: the lane's edit ALSO appeared as an uncommitted duplicate in the primary checkout (a worktree
edit leak, the same 13-line hunk); it was saved to /tmp and discarded so the merge could proceed. The
branch is the source of truth and carries the same line plus the counters.
lane-av1422lpf: fix the 4:2:2 lossless chroma extent family (7 sites)Ahmet Kaan Gümüş · 4058fb3
lane-av1422lpf: fix the 4:2:2 lossless chroma extent family (7 sites)

The `--lossless=1` 4:2:2 inter chroma panic at decode.rs:37565 was a
family, not one line. Seven sites each index a block's chroma PLANE
BLOCK -- libaom's per-axis `(bw >> ss_x) x (bh >> ss_y)` shape -- with
the ENCLOSING SQUARE `max(side >> ss_x, side >> ss_y)`. The two are the
same number exactly when `ss_x == ss_y` (4:2:0 and 4:4:4 on a square
block), so every fix below is byte-identical there; at 4:2:2 the square
is the LUMA side and each site ran off its own buffer.

1. read_inter_chroma_lossless:  mu_units(.., stride * stride) ->
   stride * blk_h. Not 4:2:2-only either: a 64x128 4:2:0 block's plane
   block is 32x64 and ll420_a.obu panicked on the old expression.
2. decode_inter_block's lossless TX_4x4 unit replay: index the composed
   grid at chroma_stride, not chroma_side.
3. NOT A BUG, measured: the replay's unit counts are already per-axis
   (`write_h >> ss_y(fctx)`). Recorded in the report, not changed.
4. the strip chroma rect's VERT arm: a PARTITION_VERT_4 strip pairs on
   columns while ss_x == 1, so the pair is 8x16 luma and at ss (1,0) its
   plane block is 4x16, not the 4:2:0 4x8. This changes chroma_stride
   and chroma_buf_h for the WHOLE of decode_inter_block at 4:2:2; the
   lossy 4:2:2 corpus is re-quoted in the lane report and is unchanged.
5. the mu-chunk lossless walk (single-ref and compound): pass the
   prediction buffer's own chroma_stride, not chroma_side.
6. the intra-in-inter twin of site 5, both call sites.
7. read_intra_chroma_lossless: stride * blk_h, the intra twin of site 1.

All three cells stop panicking. They do not yet decode byte-exact: two
now refuse with a Golomb-tail desync and one diverges, and an all-intra
4:2:2 lossless key frame diverges with the SAME Y count on this tree and
on main, so that residual is a pre-existing intra-path defect outside
this family. Numbers and controls in lanes/av1422lpf.report.md.
ec-av1: align a chroma unit's context publication to its chroma cellAhmet Kaan Gümüş · c84b51a
ec-av1: align a chroma unit's context publication to its chroma cell

4:2:0 lossless + alt-ref + 1:4 rect strips diverged in 15 of 16 shown
frames (1 088 573 wrong samples) or refused with 'a Golomb tail longer
than this decoder reads', one encoder knob away.

record_mi_chroma published a transform unit's coefficient context at the
BLOCK's mi origin, but a 4x4 chroma unit is 4 << ss luma px = 1 << ss
luma mi per axis: a 16x4 / 4x16 1:4 strip starts mid-cell at 4:2:0 and
stamped one mi row/col past the cell it owns. The block below then read a
'left neighbour' libaom never had (its per-plane left/above_context_map is
indexed in the plane's own 4x4 units) and its chroma txb_skip context came
out one base high: ours 2, libaom 8, pre-state identical, at frame 2 block
mi (4,0) of the pinned 5-frame witness.

Align the origin down to the cell (step from the unit's own luma span, so
4:2:0/4:2:2/4:4:4 each align by their own), add the chroma_midcell_pub_hits
counter the gate needs to prove the realigned path is walked, and pin
420_lossless_arf_1to4_320x240_5f.obu (28394 B) behind a decode-order +
shown-frame per-plane gate. Mutating the alignment back to the identity
turns that gate red with the very refusal string above.
Merge lane-av1422h242map: NO height rule -- the 4:2:2 divergence is CONTENT-triggered and broad (report only)Ahmet Kaan Gümüş · aab99b0
Merge lane-av1422h242map: NO height rule -- the 4:2:2 divergence is CONTENT-triggered and broad (report only)

Swept 18 frame heights at width 320 on the R-arm recipe: 13 of 18 DIVERGE. The exact-height set MOVES
with the encoder recipe (exact at 236/240/250/254 without --end-usage=q, exact at 230/240/250 with it
-- 236 passes in one arm and fails in the other, 230 the reverse), so height is not the variable.
Three independent proofs of CONTENT: (1) the moving exact set above; (2) at height 242, smptebars is
byte-exact 16/16 (decode order 17/17) while testsrc2 and mandelbrot both diverge at the same width and
recipe; (3) 10 of 11 4:2:0 controls at the same geometries are byte-exact, so the class is 4:2:2's own,
and the single 4:2:0 failure (320x236) reproduces av1oddluma's cell by sha256.
This supersedes the '4/4 diverging at height 242' framing from the previous round: 242 is not special,
it was a small-sample artifact of one recipe. Every cell carries the per-cell oracle-flip control
(+1 in the named plane, one fewer exact frame). No bypass committed; report only.
lane-av1422h242map: 4:2:2's height-242 rule is CONTENT, not height; mechanism is the sub-8x8 chroma leaf DC_PRED left edge (report only)Ahmet Kaan Gümüş · ba1a576
lane-av1422h242map: 4:2:2's height-242 rule is CONTENT, not height; mechanism is the sub-8x8 chroma leaf DC_PRED left edge (report only)

Swept width 320 x heights 226..260, both the av1422re4222 recipe and
--end-usage=q, 52 cells, per-cell oracle-flip control on every one.

13 of 18 heights diverge (226 228 230 232 234 238 242 244 246 248 252
256 258 260); 236 240 250 254 are byte-exact.  The exact-height set MOVES
with the recipe, and height 242 is byte-exact with smptebars while
diverging with testsrc2 and mandelbrot -- so the trigger is content, not
geometry.  10 of 11 4:2:0 controls at the same geometries are exact.

Localised on R422_320x242: pre-loop-filter (PREFILT), chroma-only, luma
byte-exact on every frame; wrong chroma is a bounded 42-row band at the
right of centre, not the whole plane (the previous report's 'whole plane'
was a padded-vs-cropped plane-split artefact).  The first wrong unit is a
flat 4x4 chroma leaf whose DC_PRED reads its left edge FOUR ROWS TOO HIGH:
ours (above + left@rows 156..159)/8 = 182, libaom's = above alone = 202.
ss_y == 0 makes that displacement non-zero; at 4:2:0 it is a no-op.

Not the same mechanism as the 4:2:0 320x236/322x248 pair: that one has
11198 wrong luma on frame 0 and forks entropy at read 6; this one is
luma-exact and is a prediction value.

Also names a separate finding: five 4:2:2 cells intermittently emit
out-of-range samples (65280..65535) on an 8-bit stream, nondeterministic
across repeated decodes, never on 4:2:0.

Report only.  No source change; the EC_AV1_ALLOW_422_PROBE bypass and the
cell driver were patch-run-restore, stream.rs:1803 reads
'if seq.subsampling_x != seq.subsampling_y {' again and git status is
clean.
Merge lane-av1screen12: LIFT the 12-bit screen-content refusal -- both halves of its claim were falseAhmet Kaan Gümüş · 236ebb2
Merge lane-av1screen12: LIFT the 12-bit screen-content refusal -- both halves of its claim were false

The refusal said a 12-bit frame with allow_screen_content_tools=1 is unsupported because 'neither
palette nor intrabc has a 12-bit witness'. Both halves were false, and both are now witnessed:
- 12-bit PALETTE (screen=true, allow_intrabc=false): screen12_palette.obu 3616 B sha256 adfe26c6...,
  2 frames, 76 palette / 43 palette-UV blocks, 0 wrong vs BOTH the instrumented aomdec and ffmpeg.
- 12-bit INTRABC: the standing note '12-bit intrabc has no producer' was a RECIPE artefact, then
  refuted -- --tune-content=screen does not decide the frame-header bit in this oracle build (libaom's
  content detector does, av1/encoder/encoder.c:2404); the same 8-bit source tiled with -vf tile=2x2
  gives allow_intrabc=true at 8, 10 AND 12 bits. screen12_intrabc.obu 482 B sha256 a3b6b94c..., 1
  frame, 11 intrabc / 36 palette blocks, 0 wrong vs aomdec and ffmpeg.
- 12-bit LOSSLESS + palette (CodedLossless and screen content in one frame):
  screen12_lossless_palette.obu 11698 B sha256 ec7942c9..., 2 frames, 80 palette / 59 palette-UV, 0
  wrong.
Three gates, each asserting the stream's OWN sequence header is 12-bit, that a frame header really
carries allow_screen_content_tools (and allow_intrabc for that arm), that the palette/palette-UV/
intrabc hit DELTAS are non-zero, and that the live recipe reproduces the committed pin byte for byte
(length + fnv1a64) -- so a stream that merely set the header bit fails instead of passing untested.
Pin names are literals. Control: flipping bit 0 of the ORACLE's 12-bit high byte (index 1, a bit that
can never carry) gives exactly (1,0,0,frames,frames-1) -- +1 wrong luma, one fewer exact frame.
Refusal inventory updated in both copies; 56 refusal-census tests green.
lane-av1screen12: lift the 12-bit screen-content refusal; three 12-bit palette/intrabc witnessesAhmet Kaan Gümüş · eeb5937
lane-av1screen12: lift the 12-bit screen-content refusal; three 12-bit palette/intrabc witnesses

The guard read `bit_depth == 12 && header.allow_screen_content_tools` and its
string claimed "neither palette nor intrabc has a 12-bit witness". Both halves
were wrong: the bit only opens the palette-mode and `use_intrabc` SYMBOLS, and
both reconstructions are already depth-parameterised (`read_palette_colors_y` /
`_uv` read at `bit_depth(fctx)`, the colour-index map writes u16 samples).

Measured, guard lifted, each arm byte-exact against the instrumented aomdec
--rawvideo AND ffmpeg, 0 wrong samples, with a +1 control on the oracle's own
frame-0 luma high byte (exactly +1 wrong luma byte, one fewer exact frame):

  arm                  pin                          frames  palette/uv/intrabc
  palette              screen12_palette.obu         2       76 / 43 / 0
  palette + intrabc    screen12_intrabc.obu         1       36 / 34 / 11
  lossless + palette   screen12_lossless_palette.obu 2       80 / 59 / 0

The "12-bit intrabc has no producer" note was a RECIPE artefact:
--tune-content=screen does not decide that frame-header bit in this oracle
build (libaom's content detector does, encoder.c:2404). An untiled
smptebars=size=128x96 source reads allow_intrabc=0 with and without the flag;
the 256x192 -vf tile=2x2 source the repo's own intrabc census uses reads =1 at
8, 10 and 12 bits.

Mutation proof: truncating read_palette_colors_y's first colour to 8 bits
(bit-preserving) reds the palette gate with 119726 differing bytes, first at
byte 1.

Inventory: both copies of the string (REFUSALS row and its PROVEN pair) are
gone -- 33 refusals + 33 proven -> 32 + 32. refus: 56 passed; gate_coverage:
20 passed, 282 gates, NEVER_EXERCISED_8BIT 0 of 26, NEVER_EXERCISED_10BIT
0 of 26.
Merge lane-av1422losslesspanic: the 4:2:2 lossless INTER panic is a FIVE-site family, not one line (report only)Ahmet Kaan Gümüş · 1766d69
Merge lane-av1422losslesspanic: the 4:2:2 lossless INTER panic is a FIVE-site family, not one line (report only)

Reproduced: decode.rs:37565  via
read_inter_chroma_lossless -> decode_inter_block -> decode_inter_frame_tile_with_cdfs, on three cells
(W/X/Y_intrabc at 4:2:2 --lossless=1, 320x240, the last two tiled and 10-bit). Instrumented geometry:
cpx=12 cpy=0 org=(0,0) reg=(4,16) blk=(4,16) stride=4 tw=160 th=240 need=64 alloc=16.
WHY 4:2:2-ONLY, from our own contract: decode_inter_block hands the caller the PER-AXIS pair
(chroma_stride, chroma_buf_h) at ss(1,0) but the SQUARE chroma_side at 4:2:0 and 4:4:4, while
read_inter_chroma_lossless's doc says stride is 'the block's SQUARE chroma side, even for a 2:1 strip'
-- a contract that holds exactly when the chroma plane block is square, i.e. 4:2:0 (side/2) and 4:4:4
(side), NOT at 4:2:2 where an 8x16 luma strip's chroma is 4x16.
Measured discriminator: 4:2:0 lossless exact 16/16 in three configurations, the committed 4:4:4
lossless gates all pass, and the committed 4:2:2 lossless/IBC pins are byte-exact -- so the lossless
INTRA/IBC 4:2:2 chroma path is fine and the gap is specifically lossless INTER 4:2:2.
NOT FIXED, deliberately: only a one-line extent was asked for; measured, sites 1-3 only walk the panic
forward to sites 4 and 5. Site 4 changes chroma_stride/chroma_buf_h for the whole of decode_inter_block
at 4:2:2 INCLUDING the lossy arms that currently measure byte-exact (the first real regression
surface), and site 5 is a different layer entirely (a 4x4 chroma unit read at luma-plane strides 128
and 64). No cell decodes byte-exact with 1-3 applied, and a partial fix on a path no gate covers turns
a LOUD panic into silent corruption. No gate committed for the same reason.
TWO NEW 4:2:0 FINDINGS, outside this lane's scope and both user-reachable: 4:2:0 lossless with
--lag-in-frames=25 --auto-alt-ref=1 --enable-global-motion=1 DIVERGES (1254308 wrong, 1/16 exact), and
4:2:0 lossless with ARF and no global motion is REFUSED by name ('a Golomb tail longer than this
decoder reads'). Being chartered separately.
lane-av1422losslesspanic: the --lossless=1 4:2:2 panic is a family of five extent sites, not a one-liner; report only, nothing fixedAhmet Kaan Gümüş · 9204526
lane-av1422losslesspanic: the --lossless=1 4:2:2 panic is a family of five extent sites, not a one-liner; report only, nothing fixed

Main asked for a one-line extent fix in read_inter_chroma_lossless. Measured,
it is not one line, so the tree is back at ef9d7c97 and this commit carries
the site inventory instead.

Reproduced on all three --lossless=1 4:2:2 cells (W_intrabc 130320 B,
X_intrabc_tiled 131696 B, Y_intrabc_10b 202281 B) at decode.rs:37565,
'range end index 20 out of range for slice of length 16'. Instrumented
geometry at the failing call: reg=(4,16) blk=(4,16) stride=4, 64 elements
needed against the square's 16.

4:2:2-only because decode_inter_block hands the caller the per-axis
(chroma_stride, chroma_buf_h) pair at ss (1,0) and the square at 4:2:0 and
4:4:4. Discriminator measured: four 4:2:0 lossless recipes are byte-exact or
refuse by name and never reach the line, the six a_lossless_444_* gates
pass, and the committed 4:2:2 lossless IBC pins decode exact -- so the gap
is lossless INTER 4:2:2 specifically.

Applying sites 1-3 in turn walks the panic forward through the inventory:
  1. decode.rs:37580  mu_units(stride*stride) -> stride*blk_h
  2. decode.rs:45037  unit split indexed at chroma_side -> chroma_stride
  3. decode.rs:45023  unit rows/cols from the luma-per-ss height -> chroma_buf_h
  4. decode.rs:39995  4:2:2 strip chroma rect handed the 4:2:0 pair's (8,4)/(4,8)
  5. decode.rs:4366  4x4 CHROMA unit read at prediction strides 128 and 64,
                     failing prediction buffer empty -- not reached, measured
Each is format-preserving at 4:2:0 and 4:4:4. Site 4 changes chroma_stride
and chroma_buf_h for the whole of decode_inter_block at 4:2:2 including the
lossy arms that currently measure byte-exact; site 5 is the chroma
prediction source never having been resolved per axis on this path.

Sites 1-3 are reverted. No cell decodes byte-exact with them, and a partial
fix here would convert a loud panic into a plausible wrong picture on a path
no gate covers. No gate committed either: a gate whose only red is 'still
panics' is a ratchet on a defect, not a fix.

The height-242 4:2:2 divergence is untouched and still open, not chased.
Merge lane-av1cmpframe: count_rawvideo_diffs attributes planes PER FRAME (instrument fix)Ahmet Kaan Gümüş · 27c1687
Merge lane-av1cmpframe: count_rawvideo_diffs attributes planes PER FRAME (instrument fix)

The plane table is now built per frame from each decoded picture's OWN plane lengths (the same source
pack_rawvideo lays bytes out from -- not a formula, not width*height, not the first picture), with a
monotone cursor walking the spans as the byte index advances and frames_exact comparing each frame's
own span instead of a fixed stride, so a stream whose frames differ in size is attributable too (the
old form could not express it). Signature unchanged, no caller changed.
The gate counts the truth ITSELF -- it re-runs aomdec --rawvideo, packs our pictures, walks its own
per-frame table -- and asserts the helper agrees on three axes: the per-plane split equals the
independent per-frame count with each plane <= its own capacity; frames_exact equals the independently
counted exact frames; and a byte inside FRAME 5's U plane moves U by exactly +1 leaving Y and V at
baseline -- the arm the old code cannot pass, since that byte is past every frame-0 threshold and the
old attribution put it in V. Mutation (fix reverted to the first-picture form) reds it with the old
numbers digit for digit, including V 330673 > its own 302080 capacity.
Caller sweep: count_rawvideo_diffs was the ONLY mis-attributing site (oracle_plane_diffs and the
ffmpeg control's per-plane counters are frame-aware; count8 is frame-0 by declared subject and is
named, not changed; the byte-equality helpers do no attribution).
Re-measured with the fixed instrument, each with the flip control: 320x236 234349/56957/52981 (0/16
exact, new pin 420_oddheight_320x236_diverging.obu 16562 B sha256 84e4d1ab...), 322x248
36286/13359/13001 (0/16), 320x232 0/0/0 16/16, 320x248 0/0/0, 324x236 0/0/0 -- i.e. the debt's own
figures, now emitted by the crate's own instrument rather than a lane-local script.
Three earlier reports quoted a per-plane split from the broken helper (lanes/av1422anom.report.md:90
and :176, lanes/av1422h232.report.md:31-35, lanes/av1cmpaudit2.report.md:71): their TOTALS and
frames_exact stand and every zero is a zero under any attribution, but the non-zero U/V splits are
unattributed; the debt records that.
count_rawvideo_diffs: attribute planes PER FRAME, from each picture's own plane lengthsAhmet Kaan Gümüş · 163eefd
count_rawvideo_diffs: attribute planes PER FRAME, from each picture's own plane lengths

The helper packed frames correctly (pack_rawvideo walks decoded) and then
attributed every differing byte with FRAME 0's thresholds forever, so on a
multi-frame stream everything after frame 0's luma landed in plane V: the
pinned 320x236 stream reported wrongV=330673 inside a 302080-byte plane. Every
gate asserted zeros, so nothing could see it.

The plane table is now built per frame from each decoded picture's own y/u/v
lengths -- the source pack_rawvideo itself uses, not a formula and not the first
picture -- and frames_exact compares each frame's own span instead of a fixed
stride, so a stream whose frames differ in size is attributable too.

New control the_counting_oracle_diff_attributes_planes_per_frame on a new
committed pin 420_oddheight_320x236_diverging.obu (16562 B, sha256 84e4d1ab...):
it counts the truth itself, then asserts the helper agrees -- per-plane split,
frames_exact, and a byte inside frame 5's U plane moving U and not V. Reverting
the fix to the first-picture form reds it with left [11198, 2416, 330673]
against right [234349, 56957, 52981].

Caller sweep: oracle_plane_diffs (per-frame dump files) and the 10-bit ffmpeg
control arm (per-picture plane Vecs) were already frame-aware; count8 scores
frame 0 by its own declared scope. This was the only site.

Re-measured with the fixed comparator: 320x236 -> 234349/56957/52981 0/16 and
322x248 -> 36286/13359/13001 0/16, which are the debt's own recorded figures;
320x232 / 320x248 / 324x236 -> 0/0/0 16/16. Control: flip byte 0 moves each
count by exactly +1.

INSTRUMENT fix: no decoder behaviour touched. Report in
lanes/av1cmpframe.report.md, including the three earlier reports whose per-plane
split was mis-attributed.
Merge lane-av1422re4222: the 4:2:2 refusal is STILL earning its keep, for two concrete reasons (report only)Ahmet Kaan Gümüş · b920c1a
Merge lane-av1422re4222: the 4:2:2 refusal is STILL earning its keep, for two concrete reasons (report only)

23 of 30 reachable 4:2:2 cells are byte-exact on the LIVE comparator pair (the crate's audited
count_rawvideo_diffs + decode_all_frames_vs_oracle, both batch controls green before any cell was
measured), with a PER-CELL control on the same comparator: every cell measured four times, clean plus
one bit flipped in the ORACLE's own bytes at frame 0's first Y, U and V byte (indices derived from the
first decoded picture, so the three really land in three planes). A cell reading 0 clean and 0
flipped does not occur once in 30 -- the comparator reads both sides.
The seven that are not exact are narrow and specific, not coverage: 4 of 4 reachable cells at frame
HEIGHT 242 diverge (chroma-only, up to 22988 wrong presented samples, whole chroma plane of the
keyframe, luma exact, present pre-loop-filter), and 3 of 3 --lossless=1 4:2:2 cells PANIC at one named
line (decode.rs:37565, for an arithmetically 4:2:2-only reason). The 4:2:0 controls at the same
geometries are exact, so the retraction's premise (that this was the shared odd-height 4:2:0 defect)
no longer holds now that lane-av1422chrtx has fixed that one.
RECOMMENDATION: keep the refusal -- lifting would expose users to chroma-only corruption across a
family of ordinary heights AND to a decoder panic on lossless content -- then (1) fix
read_inter_chroma_lossless's stride for a non-square 4:2:2 plane block, (2) sweep 4:2:2 frame heights
232..250 at one width to map the remainder trigger, (3) re-run the table and only then decide between
a narrowed refusal and a lift. The refusal string and header behaviour are NOT changed here: that is a
shipped-capability call. No source change; the probe bypass was patch-run-restored.
lane-av1422re4222: re-measure the 4:2:2 surface on a live comparator; 23/30 exact, 4 diverge at height 242, 3 lossless cells panicAhmet Kaan Gümüş · d5d0289
lane-av1422re4222: re-measure the 4:2:2 surface on a live comparator; 23/30 exact, 4 diverge at height 242, 3 lossless cells panic

Report only, no source change. The EC_AV1_ALLOW_422_PROBE bypass and the
temporary cell driver were patch-run-restore and are not in this commit.

The six committed 4:2:2 pins re-verify byte-exact (0 wrong samples on every
plane of every frame, presented and decode order) with a per-cell oracle-byte
flip control on each. 4 of the 12 previously-'exact' fresh cells were only
ever measured by the retracted tautological counter; on the crate's own
count_rawvideo_diffs, O_odd322x242 carries 1612 wrong presented samples.

New coverage this round: odd width/height, tile columns alone, tile rows
alone, 2x2 tiles at an odd geometry, screen content via --lossless=1,
40-frame alt-ref inter with warped motion and compound, and 4:2:0 controls
at the same geometries.

Result: 23/30 exact. Four cells at frame height 242 diverge, chroma-only,
luma byte-exact, already differing at EC_AV1_PREFILT_DUMP (deblock, CDEF and
LR exonerated). Three --lossless=1 4:2:2 cells panic at decode.rs:37565,
where read_inter_chroma_lossless sizes its scratch by a square chroma side
that a 4:2:2 4x8 plane block does not have.

The retraction's premise is overturned: the odd-height 4:2:0 defect was
fixed by lane-av1422chrtx, and 4:2:0 at 232/240/242/248 is exact here, so
the 4:2:2 height-242 divergence is its own defect, not that one resurfacing.

Recommendation: keep the refusal, for the 4/4 height-242 divergence and the
3/3 lossless panic rather than for the old coverage argument. The refusal
string and header behaviour are unchanged.
Merge lane-av1gapremeasure: the odd-height cells are OPEN and reachable via ONE flag; the per-plane attribution of the shared comparator is brokenAhmet Kaan Gümüş · 52e14b7
Merge lane-av1gapremeasure: the odd-height cells are OPEN and reachable via ONE flag; the per-plane attribution of the shared comparator is broken

Resolution of the contradicting measurements, and both sides were right: the single variable is
aomenc's --end-usage=q. Without it (the encoder's DEFAULT rate mode, which ignores --cq-level: 8281
b/f vs 3393 b/f) the streams diverge; with it, or with --threads=1, or with --row-mt=0, they are
exact. NOT the content (his webm demuxed and re-encoded with these flags is 0/0/0 in six arms) and
NOT the remux (re-running his exact aomenc line with --obu -o file.obu is cmp-identical, same sha256).
The default-end-usage recipe reproduces f0 16023 on 320x236 -- the same number I measured -- and
f0 Y 2170 on 322x248, matching av1oddluma's recorded frame-0 count, so the entropy-fork narrowing
stands. Re-measured family: 320x236 (16562 B sha256 84e4d1ab..) OPEN/reachable; 322x248 (16131 B
sha256 9e8c9c6c..) OPEN/reachable; 320x232 (15773 B sha256 6832c3cd.. = the committed pin,
byte-identical) CLOSED; 320x248 CLOSED; 324x236 CLOSED -- every cell with the +1 control.
INSTRUMENT DEFECT FOUND (stream.rs:10424-10436): count_rawvideo_diffs attributes planes with
ABSOLUTE, non-frame-scaled thresholds computed from the FIRST picture, so on a multi-frame stream
every sample after frame 0's luma is counted as plane 2 -- which is why the diverging stream reports
wrongV=330673 when V holds only 302080 bytes over 16 frames. Per-frame byte counts and frames_exact
are sound (they sum to the reported total); ONLY the per-plane split is meaningless on multi-frame
streams. Fix chartered to the same lane.
Rest of the sweep: 12-bit decode CLOSED (7 pins, 27 dumps, 0 wrong), rect residual tables CLOSED
(r512.obu 3/3 exact, and its recipe is the default-end-usage one so that row is not recipe-blind),
SEG_LVL UNREACHABLE and the record CORRECT (census reproduces 162 seg-enabled frames; census control
reports features 5/6/7 when enabled), the 4:4:4 64x64 sibling-DC row STALE.
lanes/av1gapremeasure: WITHDRAW the odd-height 'closed' row -- it was my recipeAhmet Kaan Gümüş · 167e8c7
lanes/av1gapremeasure: WITHDRAW the odd-height 'closed' row -- it was my recipe

Cross-checked against Agent06-5's 320x236 fixture on the same comparator: my f0
diff (16023 bytes) equals Main's digit for digit, and both streams were measured
in one run with a +1 flip control each.

The variable is --end-usage=q, not the source, not the container round-trip and
not threading:
- his content + my flags: 0/0/0 16/16 in six arms;
- his exact aomenc line with --obu output: cmp-IDENTICAL to his file, so the
  webm remux is byte-preserving;
- his command + --threads=1 or + --row-mt=0: 16459 B, 0/0/0 16/16;
- his command + --end-usage=q: 6787 B, 0/0/0 16/16 -- the defect disappears.
aomenc's DEFAULT end-usage is the only configuration measured to reach it.

Re-measured the family on that recipe: 320x236 (16562 B, sha256 84e4d1ab) and
322x248 (16131 B, sha256 9e8c9c6c, f0 Y 2170) are 0/16 frames exact -- OPEN;
320x232 (sha256 6832c3cd = the committed pin), 320x248 and 324x236 are 0/0/0
16/16 -- closed.

Also records a defect in count_rawvideo_diffs: its plane split uses absolute
thresholds, so on a multi-frame stream everything past frame 0's luma is
attributed to V (it reported 330673 wrong V in a 302080-byte plane).

Report only; no source change.
lane-av1labelspace: label-space class sweep done, and the two cells are reachable from aomenc's DEFAULT threaded encodeAhmet Kaan Gümüş · 052d1d3
lane-av1labelspace: label-space class sweep done, and the two cells are reachable from aomenc's DEFAULT threaded encode

Class sweep over every env-gated rung that prints an mi coordinate:

- Family A, the main partition walk (34933-35107): the one broken family.
  32-level printed at32.0 * MI, 16-level printed at16.0 raw. Fixed in
  lane-av1partadvance; pixels did not move.
- Family B, the rect partition walk (52346/52692/52836): PROVEN CORRECT. SB
  prints sb_r*16, 32 prints r32*8, 16 prints sr*4 -- all three carry the same
  *4 relative to their own at index, so one space. I had this down as
  un-audited last lane; it is clean.
- Family C, twelve mi-printing rungs (OUR_PART, EC_LEAF, EC_RECT64TU,
  EC_INTRA128, EC_SPLITSTRIP, TRACE_RECT_COEFF x3, TRACE_RECT32_END, EC_HALV,
  TRACE_RECT64_END): PROVEN CORRECT structurally -- every one prints its mi
  position raw with no multiplier, one convention applied uniformly, so there
  is no sibling level to disagree with.
- Pixel-space rungs (OUR_PRED, EC_MCPUSH, EC_OBMCREC) print pixels, a
  different quantity from an mi coordinate; right not to be in either space.

No second instance of the bug exists.

The bigger result: Agent08-2's 320x236 is exact on main and mine is not. Single
variable experiment -- same source y4m, same flags except --threads=1
--row-mt=0 instead of --threads=8:

  --threads=8           16562 B  Y 234349 U 56957 V 52981  0/16 exact
  --threads=1 row-mt=0  16459 B  Y 0 U 0 V 0               16/16 exact

Not tiles: both report cols=1 rows=1 uniform_spacing=true. aomenc threading
changes RD decisions, not tiling, so it produces different content and THAT
content walks the bug.

So the defect is reachable from aomenc's DEFAULT configuration -- no --threads,
no --row-mt=0 -- not a fixture artifact. Sparse and content-specific is still
true, but the content is an ordinary multi-threaded encode.

No gate committed: no decoder change in this lane. The anti-drift unit test
Main asked for is NOT added and the gap is declared in the report, not
buried -- it would need two rungs on a live stream plus an oracle comparison to
mean anything, and the rungs already agree after the fix.
Merge lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space (instrument fix)Ahmet Kaan Gümüş · e1c57ec
Merge lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space (instrument fix)

NOT a stride defect: the walk was already right. The 32-level rungs print at_mi * MI
(r32 * BLOCK_MI), while the 16-level rungs printed their at_mi RAW -- the same walk, the same
quantity, two label spaces 4x apart. lane-av1oddgolomb compared our TRACE partition_w16 mi=(0,1)
against aomdec's EC_PART mi_row=0 mi_col=4 and read a 4x child-advance bug; it was an artifact of
comparing across label spaces (the class this crate has been bitten by before). Fixed: the three
16-level rungs now print at16.0 * MI, at16.1 * MI. No walk change: sr/sc, at16, the bounds check
(already using sr * SUB_MI), has_half(sc * SUB_MI, ..) and every decode_block call are untouched.
Proof the fix moves ONLY the label: our label now equals the oracle's including the msac rng
(mi_row=0 mi_col=4 bsize=6 ctx=0 rng=39176 both), and the pixels did not move -- I re-measured the
divergence myself on this branch, byte for byte the same as main (o320x236.obu: f0 16023, f1 22751,
f2 19846, f3 20473 differing bytes per frame, with the +1 control).
Sweep extended to 51 cells: 49 / 51 exact. Every geometric hypothesis is now DEAD -- height 236 is
not the trigger (318x236, 322x236, 324x236, 326x236, 330x236 all exact; only 320x236 fails), width
322 is not the trigger (322x232/236/240 exact; only 322x248 fails), and non-multiples of 8 are mostly
exact. The two failures are SPARSE and CONTENT-SPECIFIC: two (width, height, content) triples of 51,
with no geometric predicate separating them -- so the two cells are unexplained again, and that is
the finding rather than a regression.
lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space; the walk was rightAhmet Kaan Gümüş · f838878
lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space; the walk was right

Main was right to make me check the label before the decoder. It is a label
defect.

The 32-level arm prints its mi position as at32.0 * MI (r32 * BLOCK_MI,
with at32.0 == r32 * 2). The 16-level arm, 130 lines down in the SAME walk,
printed at16.0 raw -- same quantity, no * MI, so 4x smaller. Comparing
'partition_w16 mi=(0,1)' against aomdec's 'EC_PART mi_col=4' read as a child
advance bug; it is two label spaces.

Fix: let (lbl_r, lbl_c) = (at16.0 * MI, at16.1 * MI) on the three 16-level
rungs. The walk -- sr/sc, at16, the bounds check, every decode_block call --
is untouched.

Proof, independent of the trace:
- Label now reads EC_PART mi_row=0 mi_col=4 bsize=6 ... rng=39176, matching
  aomdec's exactly including the msac rng.
- Pixels byte-identical before and after: 320x236 Y234349/U56957/V52981 and
  322x248 Y36286/U13359/V13001, both unchanged. A label fix moves the label
  and nothing else.

So the mechanism I reported last lane DOES NOT EXIST, and that is the finding.
The two cells are unexplained again: entropic fork at coefficient read 6 of
frame 0, inside a V-plane 8x8 unit's sign/Golomb tail, with the walk, the
partition values, the scan, the placement, all_zero, eob and every base
ctx/level all verified equal to aomdec.

Sweep: 51 cells now, 49 exact (27-cell core re-run unchanged at 25/27, plus
24 new cells all exact). Rate 2/51. The geometric hypothesis is dead --
318x236, 324x236, 326x236, 330x236, 322x236 are all EXACT, and 318/322/324/
326/330/236 are all non-multiples of 8. Sparse and content-specific.

No gate committed: there is no decoder change to pin, and pinning an
unexplained defect is what the ratchet pattern has been.
Merge lane-av1oddgolomb: candidate 1 REFUTED -- the fork points at the 32x32 SPLIT child advance (report only)Ahmet Kaan Gümüş · f7f488f
Merge lane-av1oddgolomb: candidate 1 REFUTED -- the fork points at the 32x32 SPLIT child advance (report only)

The sign/Golomb tail I sent this lane to chase is a CONSEQUENCE, not the cause. Partition VALUES are
identical on both sides (3, 3, 3, 0, 8, 2, 2, 3) and contexts agree, so the entropy decisions are
right. What differs is the CHILD COORDINATE after step 3, a PARTITION_SPLIT at BLOCK_32X32: libaom's
four 16x16 children sit at mi(0,0), mi(0,4), mi(4,0), mi(4,4) (16-px offsets) while our trace reads
them at mi(0,0), mi(0,1), mi(1,0), mi(1,1). Step 8 still agrees (mi(0,8), the 32x32 sibling 32 px
away), so the 32x32-level advance is CORRECT and only the 16x16-level advance is in question.
Mechanism for the 312 bits: after our V-plane unit's eob=50 our trace goes straight to a dequant, a
partition_w16 and an EC_PAL palette block with NO dc_sign/golomb for that unit, while libaom reads a
full sign/Golomb tail for the same eob -- the two sides read different symbol streams from there on.
Ruled out unchanged: walk order within a block, all_zero, eob, the scan, coefficient placement, base
ctx/levels, every partition value.
NO code change and NO gate committed: the lane declined to ratchet a mechanism it had not located in
code, which is the right call. The line-level decision is the next lane's first task.
lanes/av1gapremeasure: the debt's remaining ec-av1 gap list, re-measured on mainAhmet Kaan Gümüş · 1129c84
lanes/av1gapremeasure: the debt's remaining ec-av1 gap list, re-measured on main

12-bit decode support, rect residual tables and the odd-height cells are CLOSED
(0 wrong samples vs the instrumented aomdec on 27 + 9 + 80 frame-dumps, each
with a one-flipped-oracle-byte +1 control). SEG_LVL is UNREACHABLE and the record
is correct (census reproduces 162 seg-enabled frames, per-feature
[96,0,0,0,0,0,0,0]; census control reports features 5/6/7 when enabled). The
12-bit allow_screen_content_tools refusal is OPEN but broader than its own
string: lifted locally, 6 real aomenc 12-bit arms decode 0/0/0 2/2.

Report only; no source change.
lane-av1oddgolomb: the fork is the partition walk's child advance after a 32x32 SPLIT; the sign/Golomb tail is a consequenceAhmet Kaan Gümüş · 46f2dab
lane-av1oddgolomb: the fork is the partition walk's child advance after a 32x32 SPLIT; the sign/Golomb tail is a consequence

Candidate 1 is REFUTED. Oracle EC_TRACE partition symbols against our
EC_AV1_TRACE, frame 0 of 320x236:

  step  oracle                    value   ours                       value
  3     mi(0,0) bsize=9 (SPLIT)   3       partition_w32 mi=(0,0)     3
  4     mi(0,0) bsize=6           0       partition_w16 mi=(0,0)     0
  5     mi(0,4) bsize=6           8       partition_w16 mi=(0,1)     8
  6     mi(4,0) bsize=6           2       partition_w16 mi=(1,0)     2
  7     mi(4,4) bsize=6           2       partition_w16 mi=(1,1)     2
  8     mi(0,8) bsize=9           3       partition_w32 mi=(0,8)     3

Every VALUE matches. Only the child COORDINATES differ, and only for the
16x16 children of a 32x32 SPLIT: libaom steps 16 px (4 mi), we step 4 px
(1 mi), so our walk re-enters the interior of the leaf it just decoded
and reads a PARTITION_HORZ_4 + a palette block that libaom never reads
there. That is the 312 bits.

The 32x32-level advance agrees (step 8), so the bug is one stride in one
arm, not the whole walk.

No decoder change; the tree matches 0224d10c. The exact line is NOT
located and I did not edit blind -- the report names the arm and the
deciding measurement (compare the SPLIT arm's stride against its HORZ/VERT
siblings, which step correctly at the 32x32 level).
Merge lane-av1oddluma: the remaining two 4:2:0 cells are an ENTROPIC fork at read 6 (report only)Ahmet Kaan Gümüş · 9f86b7c
Merge lane-av1oddluma: the remaining two 4:2:0 cells are an ENTROPIC fork at read 6 (report only)

Red-before with the live comparator and the +1 control (flipping oracle byte 0 moves Y by exactly
+1 on both cells): 320x236 Y 234349 / U 56957 / V 52981, 0/16 frames exact, frame 0 Y 11198; 322x248
Y 36286 / U 13359 / V 13001, frame 0 Y 2170. Framing corrected: that is 15% and 2.7% of a frame, not
whole-frame divergence -- sparse.
Entropic, and pinned to a read: pairing EC_ECDUMP_IN by (value, range), reads 0-5 are identical with
our constant +15 bit convention, and the offset BREAKS at read 6 -- inside the first TX_8X4 luma unit
of the 8x8 block at mi (0,4), the unit right after the 16x16 block at mi(0,0). Our side consumes 312
extra bits inside that one unit.
Ruled out WITH evidence, not assumption: block walk order (the 16x16 at mi(0,0) -> its U -> its V ->
the next block at mi(0,4) matches the oracle's EC_ECDUMP mi/bc/br sequence); all_zero (1,1,1,0,0,0
both); eob (3, 50, 50 both); the scan table; the coefficient PLACEMENT (the oracle's positions
transposed by (p%8)*8 + p/8 are EXACTLY ours); and the CDF row/context (c=48 ctx=22, c=46 ctx=21,
c=42 ctx=21, c=38 ctx=22, c=49/47 level=1 all identical).
Two candidates named for the deciding measurement, in order: the SIGN/GOLOMB TAIL of the V-plane 8x8
unit (eob=50 with mostly-zero base levels is tail-shaped, and 312 bits is tail-sized), else a unit
count difference. No decoder change; the tree is byte-identical to 5b27ed79.
lane-av1oddluma: 320x236 / 322x248 are an entropic fork at coefficient read 6; narrowed, not fixedAhmet Kaan Gümüş · 5fad710
lane-av1oddluma: 320x236 / 322x248 are an entropic fork at coefficient read 6; narrowed, not fixed

Not the tx_type class: both carry LUMA errors, which a chroma tx_type
change cannot produce. Frame 0 (the keyframe) is already wrong in both, so
no propagation, no MC, no loop filter.

Divergence is entropic. Pairing EC_ECDUMP_IN by (value, range) on both
sides, reads 0-5 are identical and read 6 differs (ours side=4 ctx=2
bit=1010; oracle TX_8X4 at plane 0 mi=(0,4) ctx=1 bit=683) -- 312 extra
bits consumed inside one unit.

Measured and ruled out: block walk order, all_zero (1,1,1,0,0,0), eob
(3,50,50), the coefficient scan, the coefficient placement (the oracle's
positions transpose exactly to ours under (p%8)*8 + p/8, and
default_scan_gen is the documented row-major transcription of libaom's
column-major table), and every base ctx/level on the read-5 unit.

The deciding measurement is named in the report: diff the sign / post_golomb
tail of the V-plane 8x8 unit (EC_COEFF_STEP tag=sign|post_golomb vs our
TRACE dc_sign|golomb). If the first differing c is a Golomb-bits read the
bug is in the b-plane Golomb context, not in any scan or table.

The 'dimension not a multiple of 8' trigger is FALSE: 324 is 4 mod 8 and
324x240 is exact; 236 is 4 mod 8 and 320x236 fails. No geometric split in
the data, so no trigger rule is claimed.

No decoder change; the tree matches 5b27ed79.
ec-av1: bind the 10-bit film gate's pin names as literals so the fixture census can prove themAhmet Kaan Gümüş · 9714b2b
ec-av1: bind the 10-bit film gate's pin names as literals so the fixture census can prove them

lane-film10fix's decode-order gate built its pin name from a loop variable, so
`crate_pin(pin)` handed the helper a runtime string: the fixture-library census cannot
resolve it and invariant 4 reported the gate as UNPROVEN ('name built at runtime -- this
census cannot resolve it'), which turns the suite preflight RED on a tree whose tests all
pass. Same class as the earlier flags-built-by-format! blind spots: the gate is correct,
the CENSUS cannot see it.

Fix: the pin paths are bound once from literals into an array and the loop iterates that,
so the argument to crate_pin is a literal at the call site. `the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame`
still passes (1 passed), and invariant 4 no longer names it.
Merge lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTXAhmet Kaan Gümüş · 1d5fb9c
Merge lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX

libaom (av1/common/blockd.h, quoted in the report): the chroma unit's tx_type is the SAME
xd->tx_type_map cell the luma unit stamped (scaled by subsampling_x/y), then reduced by the INTER
transform set -- and at 32 points that set is EXT_TX_SET_DCT_IDTX, whose name says it: DCT_DCT plus
IDTX, so av1_ext_tx_used[DCT_IDTX][IDTX] is true and the luma's coded IDTX survives. The clamp to
DCT_DCT is txsize_sqr_up_map[tx_size] > TX_32X32 (64 and up), NOT >= 32.
Ours was a HARDCODED '32-point chroma is DCT_DCT' rule in read_plane and read_rect_chroma_unit,
ordered BEFORE the armed intrabc_chroma_tx slot, so an intrabc block's inherited IDTX was never even
consulted. read_inter_plane was already correct (reduce_inherited_chroma_tx_type's sqr_up == 32 arm
IS libaom's inter set verbatim); only the two intrabc readers that go through read_plane /
read_rect_chroma_unit were wrong. Both now resolve intra / inter-armed / size separately, so the only
behaviour change is: a 32-point chroma unit of an intrabc block moves from DCT_DCT to IDTX, and only
when the luma coded IDTX (the slot is armed exclusively under intrabc_dv.is_some(), both set sites
verified). 64-point chroma still reduces to DctDct, intra chroma at 32+ untouched, sub-32 units
byte-identical, lossless clamp untouched.
Proof: 420_oddheight_320x232.obu U 5772/V 12086 -> 0/0/0, 16/16 frames exact; a fresh 320x248
U 14343/V 16310 -> 0/0/0; the 27-cell sweep goes 19 -> 25 exact (newly exact 320x232, 322x232,
324x232, 320x248, 324x240). The non-vacuity control is re-run AFTER the fix (flipping a real oracle
byte moves the count by exactly +1 in the right plane and spoils exactly one frame), and the tripwire
gate is FLIPPED as required: the_pinned_420_oddheight_witness_is_pinned_and_decodes_byte_exact asserts
(0,0,0) with exact == frames, with a mutation proof (restoring DctDct reds it by name with
left (0,200,17658) vs right (0,0,0)).
Two cells still diverge with LUMA errors (320x236 Y 234349, 322x248 Y 36286) -- a separate,
unlocalised mechanism, disclosed in the report's not_done rather than folded into this claim.

Conflict resolution in stream.rs: lanes film10fix and chrtx both appended to the control area.
Kept film10fix's ffmpeg-comparator control whole (ours), took chrtx's new count_rawvideo_diffs
3-arg call and its flipped gate, and repaired the doc comment the splice left describing the
superseded ratchet.
lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX; fix the tx_type clamp and flip the tripwireAhmet Kaan Gümüş · a3e343b
lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX; fix the tx_type clamp and flip the tripwire

libaom's av1_get_ext_tx_set_type (blockd.h) resolves a 32-point chroma
unit to EXT_TX_SET_DCT_IDTX when the block is_inter, and
av1_get_tx_type's chroma branch reads the SAME xd->tx_type_map cell the
luma unit stamped. So an Intra-Block-Copy block whose luma coded IDTX runs
the IDENTITY transform on its chroma.

read_plane and read_rect_chroma_unit both hardcoded '32-point chroma is
DCT_DCT', reading libaom's clamp as tx_size_sqr_up >= TX_32X32 when it is
txsize_sqr_up_map[tx_size] > TX_32X32 (64 and up). That arm ran before the
armed intrabc_chroma_tx slot could, so the inherited IDTX was swallowed and
a 32-point IDCT ran where libaom ran a plain copy of the dequantized
coefficients >>2.

Confined to 32-point chroma of an intrabc block whose luma coded IDTX:
64-point chroma still reduces to DctDct, intra chroma at 32+ is untouched,
sub-32 units are byte-identical.

- 320x232 and 320x248: 0/0/0 wrong, 16/16 frames exact each.
- Comparator control re-run: a flipped oracle byte reports exactly +1 in
  the right plane and one fewer exact frame.
- 27-cell sweep 19 -> 25 exact. 320x236 and 322x248 still fail, both with
  LUMA errors -- a separate odd-dimension defect, not claimed here.
- 4:4:4 chroma-tx gates pass; scoped intrabc/chroma run 68 passed, 0 failed.
- Ratchet flipped to exactness and renamed
  the_pinned_420_oddheight_witness_is_pinned_and_decodes_byte_exact;
  mutation proof reds with exactly the pre-fix (0, 200, 17658).
- The old non-vacuity test relied on the witness differing and was vacuous
  once it was exact; replaced by
  the_counting_oracle_diff_detects_one_flipped_oracle_byte.
Merge lane-film10fix: the two 'pre-existing 10-bit film' divergences are ALREADY EXACT (report + two controls)Ahmet Kaan Gümüş · 60a0116
Merge lane-film10fix: the two 'pre-existing 10-bit film' divergences are ALREADY EXACT (report + two controls)

Both charter-named cases measure 0 wrong on every plane on main: reelc_sb128_inter_witness.obu
(177773 B, sha256 09d99594...) with 15 shown frames and 13/13 counters firing (warp_plane_suppress=15,
cdef_idx=852, interintra_rect=118, obmc_edge_span=33, tr_reach_longer_side=600 ...), and
gm_small_side_witness.obu (1158066 B, sha256 f1cdbcbb...) with 33 shown frames and 3/3 counters
(gm_nontrans_small_side=1, tr_reach_longer_side=2295, uv_mode_grid_override=138). Both are also
byte-exact against the instrumented aomdec on ALL 50 decode-order frames, including the one hidden
frame each. The debt line was STALE: no lane report defers these to a '10-bit film round' -- the
nearest record (lanes/av1444.report.md:251-269) says they FAILED at 1ad7e0fc/b9530604, were attributed
to that lane's own record_uv_mode_mi change and were fixed there.
Lands two controls the previous audit left as read-only: every_ffmpeg_comparator_reds_on_a_one_sample_wrong_ffmpeg
(7 arms -- a PATH shim running the REAL ffmpeg and rotating one sample per plane, so the helpers are
red on Y, U and V separately and a chroma-dropping helper cannot pass a luma-only arm; the ffmpeg half
is exactly what both film gates rest on) and
the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame.
Report hygiene: the lane's JSON quoted tip sha 9944fa1b9c1c0b2e6b7e5b1e8f3d2a4c6b8e0f12, which does
not exist -- the real tip is 9944fa1bd6cbf0c5906ad3f7eeeae5e4b3a09ba7 (correct prefix, invented tail).
The other full shas quoted by lanes this wave were each verified to exist.
gate: the two "pre-existing 10-bit film" divergences are exact; control the ffmpeg comparator and the hidden frameAhmet Kaan Gümüş · e2357b9
gate: the two "pre-existing 10-bit film" divergences are exact; control the ffmpeg comparator and the hidden frame

Measured both charter-named 10-bit film cells on main (3f08ae3f) before
believing the debt line. Both are already exact, so there is no divergence to
localize and no mechanism to name:

  a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_...
    15 shown frames pixel-exact on every plane, 13/13 path counters fire
  a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_...
    33 shown frames pixel-exact on every plane, 3/3 counters fire

The debt line is stale. lanes/av1444.report.md:251-269 records the opposite:
those two gates FAILED at 1ad7e0fc / b9530604, were attributed to that lane's
own 4:4:4 record_uv_mode_mi change (class override-slot-on-one-arm), and were
fixed there. No lanes/ report defers these two cases to a 10-bit-film round.

Both film gates declare "pixel-exact on every plane" using nothing but
ffmpeg_decode_sequence_10bit's output. Verified live with a PATH shim that runs
the REAL ffmpeg and rotates exactly one byte of its rawvideo stdout, per
plane: 6 of 6 arms red (Y/U/V on both streams), each naming the tampered
plane. The comparators read the oracle.

Two real gaps closed instead.

1. every_ffmpeg_comparator_reds_on_a_one_sample_wrong_ffmpeg (7 arms).
   lane-av1cmpaudit2 controlled the five aomdec comparators; the ffmpeg half --
   the half both film gates rest on -- was audited by READING only. Reading
   proves it is live today; only a deliberately wrong reference proves it can
   FAIL. Adds a thread-local ffmpeg override (same shape and reason as the
   existing set_oracle_path: a process-global PATH edit leaks the tampered
   reference into sibling threads, and the crate denies unsafe_code) and
   routes all three ffmpeg_decode_sequence* helpers through it.
   arm 1, real ffmpeg: 8-bit 4:2:0, monochrome and the 10-bit film pin all
   count zero. arm 2, one sample wrong PER PLANE: red on Y, U and V
   separately, per helper. Per-plane rather than one arm because a helper that
   dropped chroma would pass a luma-only arm and leave both film gates green
   with chroma unchecked for 15 and 33 frames.
   Mutations, both reverted: (a) revert ffmpeg_decode_sequence to the bare
   "ffmpeg" -> "3 of 7 arms stayed GREEN, counted [0,0,0], expected [1,0,0]";
   (b) make ffmpeg_decode_sequence_10bit return zeros for V -> "left:
   [0, 0, 5702400], right: [0, 0, 0]" -- the retracted av1422remeasure defect
   reproduced inside the 10-bit helper.

2. the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame.
   Both film gates compare SHOWN frames only (ffmpeg emits shown frames only),
   so 1 of 16 and 1 of 34 decode-order frames per stream sat outside every
   gate -- class gate-blind-to-hidden-frames. Their doc comments claim the
   hidden frames were compared byte-exact against aomdec; that measurement
   lived in a lane report, so nothing re-ran it. This gate runs
   decode_all_frames_vs_oracle on both pins and asserts the frame COUNTS
   (16 = 15+1, 34 = 33+1) before the byte compare, so a stream that lost its
   hidden ARF cannot make the compare cover less than it claims. Measured
   exact: 50 decode-order frames, all three planes.
   Mutation, reverted: one byte wrong in our EC_AV1_FINAL_DUMP write ->
   "decode-order frame 0 of 16 differs from the oracle at byte 7 (ours 128
   vs 0), 1 bytes differ".

Sweep on this branch, 11 cells, 0 regressed: both charter cells above, plus
frame_edge_mv_clamping (52 frames), rect64_corner_tus (33),
hidden_arf_split_superblock (37), intra_1to4_strips (127 strips),
film_grain (grain_hits=1), the monochrome gate, and both comparator
controls. cargo check -p ec-av1 --all-targets: 0 errors, 0 warnings.

not_done is in the report: the 8-bit reference helper's frame-size formula
(w*h + 2*(w*h/4)) is wrong for ODD dimensions -- 4:2:0 chroma on 65x65 is
ceil(65/2)^2, not 4225/4 -- but it fails loudly through frame_count_diagnosis,
so nothing is mis-gated, and the control uses 320x240 for that reason. No full
suite run (Main's job).
Merge lane-av1422h232: the odd-height 4:2:0 divergence is a CHROMA TX-TYPE error, not geometry (report only)Ahmet Kaan Gümüş · 7430eb4
Merge lane-av1422h232: the odd-height 4:2:0 divergence is a CHROMA TX-TYPE error, not geometry (report only)

Narrowed to a named mechanism with the deciding measurement: for an inter/intrabc block whose LUMA
transform codes IDTX, our decoder resolves the 32-point CHROMA transform type to DctDct while libaom
inherits the luma's IDTX (TX_TYPE 9). Coeffs are byte-identical -- aomdec EC_DQCOEFF plane=1 txsize=3
txtype=9 eob=7 nz=0:-105,32:-80,64:-60,96:-40 vs ours the same quantized -6,-4,-3,-2 at side=32 --
so only the transform differs, and the residual identity closes it: IDTX makes the oracle's row-96
residual exactly the dequantized coefficients >>2 (-105>>2=-26, -80>>2=-20, -60>>2=-15, -40>>2=-10)
against a flat 202 prediction. Entropy is identical (EC_ECDUMP_IN plane=1 mi=(48,64) tx=3 is
(19742,34733,25032) oracle vs (19742,34733,25047) ours, same msac state in and out; our ctx=2 vs
oracle ctx=9 is the table's baked-in +7 chroma offset).
Red-before on the pinned 420_oddheight_320x232.obu: Y 0, U 5772, V 12086, 0/16 frames exact; keyframe
block is a 64x64 intrabc at (256,192) with chroma 32x32 at (128,96) clipped to 32x20 at the bottom
edge, luma correct and chroma PREDICTION correct (aomdec reads the identical block: EC_ISTEP
name=intrabc val=1, EC_DV dv_col=0 dv_row=-1344), so neither the copy nor the entropy is implicated.
Non-vacuity control: flipping byte 0 / 90000 / 1781000 of the REAL oracle dump moves the count by
exactly +1 in the right plane and frame.
Sweep: 27 cells (widths 320/322/324 x heights 224..256) -- 19 PASS. The trigger is CONTENT, not
geometry: an inter/intrabc block whose luma codes IDTX and whose chroma plane block reaches 32 points
with a nonzero coefficient (every failing cell carries txtype=9 with the 0,1,2,...,5,32,33 nonzero
index signature of an identity transform). No fix shipped: one deciding read of libaom's chroma
tx-type resolution was left undone rather than guessing a bit-exact decoder.
lane-av1422h232: the 4:2:0 odd-height defect is an IDTX/DCT_DCT chroma tx_type loss at 32 points; report only, no fixAhmet Kaan Gümüş · 8de1682
lane-av1422h232: the 4:2:0 odd-height defect is an IDTX/DCT_DCT chroma tx_type loss at 32 points; report only, no fix

Measured with a comparator that reads the oracle's bytes (one flipped
oracle byte moves the wrong count by exactly +1, in the right plane and
frame) on a frame-0 block that is a 64x64 Intra-Block-Copy at (256,192)
with luma tx_type IDTX.

Coefficients match aomdec exactly (eob=7, levels 6/4/3/2, msac state equal
in and out), but aomdec's EC_DQCOEFF says txtype=9 (IDTX) for the 32-point
chroma unit while we resolve DctDct. IDTX residual = the dequantized
coefficients >>2, which reproduces the oracle's row 96 exactly
(-105>>2=-26, -80>>2=-20, -60>>2=-15, -40>>2=-10).

27-cell sweep: 8 fail, and the rule is content, not geometry -- every
failing cell carries txtype=9 32-point chroma units. 320x236's luma
failure (234349 wrong Y) is a separate, unlocalised defect.

No code change; the tree matches main. The ratchet gate must still be
flipped to (0,0,0) by whoever lands the fix.
Merge lane-av1cmpaudit2: every oracle comparator is live, and a control test now guards the tautology classAhmet Kaan Gümüş · 1c33714
Merge lane-av1cmpaudit2: every oracle comparator is live, and a control test now guards the tautology class

The class a lane fell into tonight (a counter that packed our decoded samples and compared them
against the SAME samples while loading aomdec's output and never reading it, reporting 0 wrong on
18/18 cells) is now swept. Every comparator in the crate was audited by reading where it reads the
oracle bytes and where it compares: assert_rawvideo_matches (5568/5588/5595),
decode_all_frames_vs_oracle (10301/10302/10310), count_rawvideo_diffs (10369/10386), key_frame_diffs
(48384/48398), oracle_plane_diffs (49440/49452), 13 inline oracle compares (7 rawvideo, 6 final-dump),
encode.rs's ffmpeg_decode family, and the ec-vp8/ec-h264/ec-h265/ec-hw rawvideo gates are all LIVE.
assert_final_dump_matches does not exist under any name. Per report: only av1422remeasure is
TAUTOLOGICAL (already retracted); av1chromarect-r3, av1dcunit, av1ibcfork, av1loss444, av1txctxband
and av1422anom are LIVE; av1sb128fork's §1 pixel table is UNKNOWN (names no comparator and commits no
gate -- superseded by av1txctxband's live re-measurement of the same witness); av1ibcfork's by-hand
§5/§7 numbers came from examples/decode_probe.rs, which has no oracle call -- a caveat its committed
gates do not share.
Lands one committed control: every_oracle_comparator_reds_on_a_one_byte_wrong_oracle, so the class
cannot return silently. Verified here by mutation: making assert_rawvideo_matches compare ours against
ours reds it (0 passed; 1 failed).
report: lane-av1cmpaudit2 audit of comparator-that-never-reads-the-oracleAhmet Kaan Gümüş · 0053620
report: lane-av1cmpaudit2 audit of comparator-that-never-reads-the-oracle

Per-helper table (5 helpers + 13 inline gates in ec-av1, all LIVE),
per-report table over 7 recent lane reports, one UNKNOWN (a removed,
unpathed probe) whose headline is re-derived at 0 wrong of 2359296 with an
independently written two-dump comparator, and the not_done list.
gate: control the class comparator-that-never-reads-the-oracle with a one-byte-wrong oracleAhmet Kaan Gümüş · ec9aa3f
gate: control the class comparator-that-never-reads-the-oracle with a one-byte-wrong oracle

The retracted av1422remeasure per-cell counter packed our decoded samples
and compared that buffer against the same samples: aomdec's output was
written, length-checked, never read, and it reported '0 wrong on 18/18'.
Nothing about that mistake is visible from outside a helper, so it cannot
be caught by reading one.

every_oracle_comparator_reds_on_a_one_byte_wrong_oracle pins it from the
other side. aomdec_path() grows a thread-local override (same shape as the
existing FINAL_DUMP_PREFIX, and thread-local because the crate denies
unsafe_code and a process-global env var would leak one test's tampered
oracle into every sibling's comparison). The test points the override at a
shim that runs the REAL aomdec and rotates byte 7 of the --rawvideo output
and of EC_AV1_FINAL_DUMP frame 0, then asserts, on the byte-exact
420_odd65x65_key pin:

  arm 1, real oracle       -> all five comparators green
  arm 2, one-byte-wrong    -> all five comparators red

Control proof: mutating all five comparators to compare our buffer against
itself (the retracted defect) makes arm 1 pass and the control report
'5 of 5 stayed GREEN'. Four gates that reached the oracle without
lock_gate_counters() now take it.
Merge lane-av1422anom: the '18/18 byte-exact' was a tautology, and the defect is an ordinary 4:2:0 odd-HEIGHT reconstruction errorAhmet Kaan Gümüş · 86e6457
Merge lane-av1422anom: the '18/18 byte-exact' was a tautology, and the defect is an ordinary 4:2:0 odd-HEIGHT reconstruction error

RETRACTION (committed as lanes/av1422remeasure.RETRACTION.md): the previous lane's per-cell counter
packed our decoded samples and compared that buffer against the SAME samples -- aomdec's output was
loaded, length-checked and never read -- so its '0 wrong on 18/18 cells' was a tautology and is
withdrawn. What survives: the six committed 4:2:2 pins ARE genuinely byte-exact (re-verified with a
correct comparator), the twelve fresh 320x240 cells are exact, and the dc-sign finding is unaffected
(it rested on rung counts, not on the broken counter).
THE REAL FINDING, reachable today with no bypass and no refusal: ordinary 4:2:0 diverges at frame
heights 232 and 248 -- 320x232 gives 17858 wrong chroma samples of 593920 in ALL 16 frames including
the keyframe; 320x248 gives 30653; 320x240/242 and 322x242 are exact, so the passing heights are not
the multiples of 8 (232 and 248 are both multiples of 8 and both fail). Byte-identical numbers on
6d564cd6 and 11d366b1, so not a lane-av1odd440 regression. Localized: the wrong region is present at
EC_AV1_PREFILT_DUMP and unchanged through deblock/CDEF/LR (all three filters exonerated; a
--enable-restoration=0 encode still fails), and it is in the KEYFRAME, so motion compensation is
exonerated too -- the defect is in block reconstruction/residual/transform, interior, not an edge.
The rung-vs-returned-picture contradiction of the previous lane is also resolved: decode_frame takes
the dump prefix as a parameter and the rung IS built from the returned picture (0 of 17 frames differ
between a capture inside decode_frame and at the caller), so the rung was never mis-timed; the old
contradiction came from the broken counter.
Committed: the pin 420_oddheight_320x232.obu (15773 B), a RUNNING-count gate that asserts the current
defect state as a tripwire (it must be flipped to assert exactness when the fix lands), and the
report.
Merge lane-av1ichromatx: close the last block-level chroma tx_type handoff in decode_inter_blockAhmet Kaan Gümüş · 909de54
Merge lane-av1ichromatx: close the last block-level chroma tx_type handoff in decode_inter_block

The recorded defect (777/640/554 wrong V samples on the pinned 444_quad_leaf_tx_type witness) does
NOT reproduce on main: 0 wrong on all four frames, byte-identical to the instrumented aomdec. The
recorded numbers are the MUTATION red from lanes/av1444chr.report.md, not a live measurement, and
both fix commits are ancestors (6c33f204 four-unit 4:4:4 arms; 2142d2cf read_inter_rect_chroma
sibling). The three sites were relocated: A and B already resolve per unit; C (the whole-plane square
chroma arm's Some(luma_tx_type)) is an IDENTITY, not a defect -- its single chroma unit reads the
block's own MI (0,0) cell and luma_tx_type is leaves[0]'s coded type (41 reads, 0 differ). What
lands: read_inter_rect_chroma's block-level FALLBACK -- the one live block-level handoff -- is closed
with debug_assert!(leaf_tx_types.is_empty()) naming the defect shape, two counters, and a gate
asserting multi_fallback >= 2 so the assertion cannot go vacuous. Mutation (forcing the covering-leaf
resolve to miss) reds both the assertion and the gate; 0 occurrences of the bad shape across 90
streams (87 committed pins + 3 fresh server encodes).
ec-av1: close the last block-level chroma tx_type site in decode_inter_blockAhmet Kaan Gümüş · 4ebd218
ec-av1: close the last block-level chroma tx_type site in decode_inter_block

The recorded 4:4:4 lossy divergence (777/640/554 wrong V samples on frames
1/2/3 of fixtures/444_quad_leaf_tx_type.obu, sha256 a06c9f7a...) does NOT
reproduce on main: that stream is byte-identical to instrumented aomdec on
all four frames, before and after this change. Those numbers are the PRE-fix
figure from lanes/av1444chr.report.md; the fixes 6c33f204 (both four-unit
4:4:4 arms) and 2142d2cf (the read_inter_rect_chroma sibling) are already
ancestors of main.

Re-located by grep, the three block-level handoff shapes are: the four-unit
arm (per-unit since 6c33f204), the rect sibling's per-unit resolve (since
2142d2cf), and the whole-plane square arm, which is an IDENTITY -- its one
chroma unit reads the block's own MI (0,0) cell, and luma_tx_type is
leaves[0]'s coded type, measured at MI (0,0) in 15/15 vartx blocks.

What remained is the rect sibling's FALLBACK: the branch taken when no luma
leaf covers a unit's own cell. It fires 4x on the pinned rect witness, all on
a multi-unit chroma plane -- the shape where a block-level value could
mistype a unit. Every observed firing has an empty leaf list, i.e. a block
that coded a SINGLE luma transform whose stamp covers the whole plane, so the
fallback is correct there; the wrong shape is a fallback while leaves is
NON-empty. Measured over the 87 committed fixtures plus 3 fresh 4:4:4 lossy
streams: 0 occurrences. Closed with an assertion rather than a comment, plus
CHROMA_RECT_BLOCK_TX_FALLBACK{,_MULTI} and a gate that asserts the guarded
shape is reached (measured 4/4) so the assertion cannot go vacuous.

Red-before by mutation: forcing the covering-leaf resolve to miss on a
multi-unit plane turns the assertion red on the same witness --
"a multi-unit rect chroma plane fell back to the block-level tx_type while 5
luma leaves were coded". Reverted; green.

Neighbours re-quoted unchanged, all compared against instrumented aomdec:
the two four-unit gates (96 quad-resolved units, 8 differing; 88/96
single-reference), the rect-sibling gate (4 resolved, 2 differing), both
4:4:4-lossless gates, and per-frame byte comparison on 8 streams (4:4:4
quadrant, rect strip, two lossless 4:4:4, a 4:2:0 control, three fresh server
encodes) -- all EXACT, 0 wrong samples per frame. cargo check --all-targets
clean.
Merge lane-av1422remeasure: the 4:2:2 refusal is no longer a correctness guard (18/18 reachable cells byte-exact, report only)Ahmet Kaan Gümüş · 59edf7d
Merge lane-av1422remeasure: the 4:2:2 refusal is no longer a correctness guard (18/18 reachable cells byte-exact, report only)

Re-measured on main after lane-av1422warp (ebeac9c7) landed: every reachable 4:2:2 cell -- 6
already-committed pins plus freshly encoded testsrc2/mandelbrot cells at cpu-used 0 and 6 -- decodes
BYTE-EXACT against the instrumented aomdec, 0 wrong samples on any plane of any frame (up to 16/16
frames exact, 614400 samples). The recorded blocker (the dc-sign rect-path desync) is fixed and no
longer load-bearing. Recommendation: the refusal is not earning its keep as a correctness guard;
keep it only as a named-cell guard for 12-bit 4:2:2, which the local aomenc cannot produce. The
sequence-header refusal itself is NOT changed here -- that is a shipped-capability call. No source
change: git diff main..HEAD -- crates/ is empty, and the EC_AV1_ALLOW_422_PROBE bypass was
patch-run-restored, in no commit.
Merge lane-av1dcunit: the 2x1/1x2 rect tiled chroma walk must give each unit its OWN above-right reachAhmet Kaan Gümüş · 73a4a77
Merge lane-av1dcunit: the 2x1/1x2 rect tiled chroma walk must give each unit its OWN above-right reach

The assigned defect was already fixed on main (chromadc, e05a6ceb/2c0fd2b9, merged 15 minutes after
the report that spawned the ticket measured on the older base 5324a685), and the ticket's stated
mechanism is wrong for that witness: an intra-BC block never goes through av1_predict_intra_block, so
there is no per-unit DC and no per-unit above/left -- the prediction is ONE whole-plane-block motion
copy (decodeframe.c:686-688, reconinter_template.inc:228 makes the reference the destination itself),
which is exactly what the crate's whole-plane PALETTE_PRED override is.
The class sweep then found the sibling cell genuinely broken: decode_rect_split's chroma walk handed
EVERY unit the block-level reach, so a 2x1/1x2 grid's units resolved has_top_right over the block's
extent instead of their own (reconintra.c:196/1847). Both call sites now pass cu_reach. Verified here
by mutation: restoring the block reach reds the gate at frame 0 plane U sample 49374 (x=222,y=192),
130 samples wrong -- the lane's own numbers. Declared limit: the 1x2 palette gate stays GREEN under
that mutation, so it does not bite on this substitution.
Merge lane-av1odd440: the odd-luma 4:2:0 cell DECODES pixel-exact, and the 4:4:0 cell is not codable at allAhmet Kaan Gümüş · ef95bea
Merge lane-av1odd440: the odd-luma 4:2:0 cell DECODES pixel-exact, and the 4:4:0 cell is not codable at all

Cell 1 (4:2:0 at an ODD luma dimension) is now producible without any encoder dependence:
crates/ec-av1/examples/gen_coverage_cells.rs builds a 65x65 key frame deterministically (two runs,
same sha256), pinned as 420_odd65x65_key.obu (2305 B, sha256 66986019...) and gated by
an_odd_luma_420_key_frame_decodes_pixel_exact -- byte-identical to the instrumented aomdec (6403 raw
bytes both sides), with the gate also asserting the pin's OWN sequence header (max_frame 65x65,
subsampling (1,1)) and the decoded 65x65/33x33 extents so it cannot pass on the wrong stream.
Cell 2 (4:4:0, ss (0,1)) is proved NOT to be a codable chroma shape at all, three independent ways:
the writer sweep (180 profile/depth/mono/colour/shape combinations; the reachable set is exactly
{(1,1),(1,0),(0,0)} and an (0,0) and a (0,1) request write BYTE-IDENTICAL headers), the reader sweep
(the payload byte carrying subsampling_x is located by diffing an (0,0) against an (1,0) header and
all 256 of its values are read back -- not one parses as (0,1), with a nonzero parsed count asserted
so an empty sweep cannot pass), and the pin itself reading back (1,0). The 4:2:2 refusal string is
corrected to say 4:4:0 cannot arrive either, in both refusal-inventory copies.
Mutations: flooring round_ss to dim >> ss reds the odd-luma gate (left (1024,1024) vs right
(1089,1089), 6273 vs 6403 raw bytes); forcing the reader to read a subsampling_y bit and forcing the
writer to emit one each red the 4:4:0 gate. 155 scoped tests green.