forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on main

2026-09-28

refusal_inventory: normalise whitespace in the 128-root cfl anchor + mutation-prove itAhmet Kaan Gümüş · a460dca
refusal_inventory: normalise whitespace in the 128-root cfl anchor + mutation-prove it

The anchor was a 3-line literal carrying 12-space indentation while the
anchored call site (decode.rs read_intra_mode_rect at the 128 root) sits at
8 spaces, so the guard counted 0 matches and went RED. ATTRIBUTION (measured
by an independent review pass): the guard was ALREADY red at the wave's own
common base 4155c7c7 -- the dedent happened in an ancestor of that base, so
the wave inherited a pre-existing red rather than causing it. The invariant
it guards was intact: the call site still passes cfl=false.

Fix: whitespace-normalised match (squash_ws on both sides), keeping the
semantic anchor (both comment lines + the false, argument) and count() == 1.
Mutation-proved: cfl=true turns it RED, revert turns it green.

Class swept: no other source-scan anchor in the crate embeds indentation
(21 include_str! guards checked); the rule is recorded in
skill://reformat-breaks-source-scan-anchors.
test(av1): lane-av1444edge r3 -- the FIRST 4:4:4 superres cell, with the header assert the phantom cell failedAhmet Kaan Gümüş · 2bc3af6
test(av1): lane-av1444edge r3 -- the FIRST 4:4:4 superres cell, with the header assert the phantom cell failed

Closes the last hand-quoted thing this lane was handed. §6.6 of
`lanes/av1formatsweep.report.md` left "4:4:4 superres at 10/12 bits" on
the not-measured list and §6.2 mislabelled the 8-bit cell; r2 established
the real 4:4:4 superres cell is exact but had no gate, and this is it.

The cell: 256x128 upscaled, coded 171x128, `denom = 12`, 4:4:4 8-bit
lossy cq-20. 14808 B, sha256
450caa3e31526a8973b9f64d5030a2f11b87bd60fac07aef121cb62af9bf85ff,
reproducible byte-for-byte from the quoted recipe.

Why the header assertions are the point. The sweep's cell passed
`--superres-mode=1` with no denominator; libaom's energy heuristic chose
8, every frame header read `use_superres=false denom=8`, and a whole
matrix cell was an unscaled stream wearing a superres label. So the gate
parses the headers and asserts, per frame: `use_superres`, `superres_denom
== 12`, `upscaled_width == 256`, and the CODED size 171x128 -- and then
re-derives `FrameWidth == (UpscaledWidth*8 + denom/2)/denom` rather than
only comparing literals, so a re-pinned fixture cannot satisfy the numbers
while the scaled-size arithmetic moves under them. A stream that stops
being scaled goes red on a header assertion instead of quietly becoming a
differently-shaped exactness claim.

The pixel arm also asserts the frame comes back at 256x128 and not 171,
and that both chroma planes are full resolution, so a decoder that
upscaled only luma fails on shape rather than passing the byte compare on
quarter-size planes. Non-vacuity: `superres_hits` (measured 4) and
`mc::predict_scaled_hits` (measured 2130) as DELTAS, so the upscaler and
scaled inter prediction are both known to have run.

Scope, stated honestly: this is the FIRST 4:4:4 superres cell in the
crate, not a broadening of an existing family. All eight pre-existing
superres gates are 4:2:0, checked rather than repeated -- the two pinned
fixtures parse `ss (1,1)` from their own sequence headers
(superres_kf_cdef_lr_64x64.obu 8-bit, superres_alltools_sb128_320x180.obu
10-bit) and the six live-aomenc gates all feed a `yuv420p` /
`yuv420p10le` source.

Green: 4/4 decode-order frames byte-exact vs aomdec, 4 upscales, 2130
scaled MC blocks, no SKIP.

Red before, three mutations, all reverted:
* tap alignment (`superres.rs`, the upscale filter's `base` shifted one
  column) -- the strong one: decode-order frame 0 differs at byte 5 (ours
  76 vs oracle 74), 37726 bytes differ, with BOTH counters still non-zero,
  so the red is on the pixel compare and not on a counter assertion.
* `set_superres` handed the CODED width where the upscaled width belongs
  -- red on `predict_scaled_hits == 0`, i.e. the gate catches a mis-sized
  superres state through the counter, before the compare is reached.
* the upscale step derived from `out_width` for both ends (a 1:1 scale) --
  red, but as an index-out-of-bounds panic inside `upscale_row` rather
  than a pixel mismatch. Recorded because it is the weaker kind of red: it
  proves the step feeds the sample index, not that the byte compare
  discriminates.
docs(av1444edge) r2: the mi(13,32) ref0 fork does NOT survive the H1 fix -- dropped, no separate lane; plus the per-arm commandsAhmet Kaan Gümüş · ac21620
docs(av1444edge) r2: the mi(13,32) ref0 fork does NOT survive the H1 fix -- dropped, no separate lane; plus the per-arm commands

Re-measured on a clean two-arm pair one commit apart, 4e151813 provably
absent from both by patch-id: semantic ladder diffs (mi, ref0, ref1, mv0)
are 0/51/40 on base and 0/0/0 with f92776ba, and the ladder entry counts
go from 279/226/40 against the oracle's 279/299/361 to 279/299/361.

That confirms the report's own causality argument instead of merely
asserting it: a wrong pixel cannot cause a mode fork, so one
bsize/footprint error had to feed both, and if that is right one fix must
remove both. A surviving fork would have refuted it and pointed at a
second defect.

The one residual ladder difference is a print asymmetry: 2 entries in
frame 2 and 12 in frame 3 where the 'stack' field differs, every one a
compound block whose OUR line omits the field entirely.

Also corrects a guard I had wrong. 'git merge-base --is-ancestor
f92776ba HEAD' returns False on an arm that HAS the fix, because a
cherry-pick mints a new sha -- trusted as a presence check it would have
reported the fixed arm as fix-absent. Patch-id equivalence is the right
guard; is-ancestor stays valid as an EXCLUDE check.
ec-av1: drop the three consts the intra-BC rect4 gate stopped usingAhmet Kaan Gümüş · 72eb746
ec-av1: drop the three consts the intra-BC rect4 gate stopped using

lane-av1444rect r3 (25824613) dropped the intra-BC prefix-floor assert, which
was the last reader of W/H/PS in a_444_intrabc_rect4_reads_its_own_chroma_plane_block.
Left three dead_code warnings on a 0-warning tree. The gate's own assertions
(the route hit at 4:4:4, zero at 4:2:0, the byte-exact 4:2:0 twin) are untouched.
Merge branch 'lane-av1formatsweep'Ahmet Kaan Gümüş · fae5c1f
Merge branch 'lane-av1formatsweep'

# Conflicts:
#	crates/ec-av1/src/stream.rs
Merge branch 'lane-av1cmpaudit'Ahmet Kaan Gümüş · cfabb97Browse files
Merge branch 'lane-av1444chr'Ahmet Kaan Gümüş · 236bad3Browse files
Merge branch 'lane-av1h5'Ahmet Kaan Gümüş · f0bc1acBrowse files
Merge branch 'lane-av1444rect'Ahmet Kaan Gümüş · 0d240a7Browse files
Merge branch 'lane-av1tilerows'Ahmet Kaan Gümüş · 048a859Browse files
Merge branch 'lane-av1leftref'Ahmet Kaan Gümüş · 810f6bcBrowse files
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)Ahmet Kaan Gümüş · b7b2e07
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)

The prefix-truncation false PASS: an ours-vs-oracle compare that walks
`got.iter().zip(want)` without first asserting equal lengths reports EXACT
for any defect outside the compared prefix, because zip stops at the shorter
operand. A frame-count assert says nothing about a plane's byte length.

Audited 124 sites across ec-av1/ec-h264/ec-h265/ec-vp9/ec-alac/ec-flac/
ec-aac/ec-ac3 and tools/oracle: 68 UNSAFE, 38 SAFE, 18 N/A. 68 fixed by
inserting the length assert AFTER the existing diff assert, on the same
buffers, so a real divergence still fails for the same reason with the same
message and only the previously-silent short-plane case becomes loud. The
canonical shape already in the tree is decode_all_frames_vs_oracle.

encode.rs::first_difference returned None ("exact") for any length
mismatch; it now returns Some, copying first_plane_mismatch. encode.rs's
nine `encoded.frames` vs ffmpeg loops and two GOP zips gained the count
assert they never had. ec-h264's round_trip rejected only an over-long
frame, so a short one zipped to zero and four call sites printed
"bit-exact".

Truthfulness: a comment above stream.rs:29006 claimed the gate compared
every decode-order frame when it compares the shown ones; the pinned-
scratch loop truncated a three-way .min() silently; a message called a
shown-frame count "decode-order"; two frame-count asserts were tautological
and are now a comment; examples/dump_yuv.rs wears a decode-index filename
on a display index.

Red/green per crate in lanes/av1cmpaudit.report.md. Not pushed.
docs(av1444edge): correct the identity table -- 25 gates ran and 1 skipped, not 26 greenAhmet Kaan Gümüş · d2d46d5
docs(av1444edge): correct the identity table -- 25 gates ran and 1 skipped, not 26 green

The lossless+superres filter reported `13 passed; 0 failed` while one
of the thirteen printed its SKIP line, so the run line alone reads as
thirteen real gates. Split the counts by family so the skip is visible.
test(av1): lane-av1444edge -- the two 4:4:4 lossy cells the chroma-format sweep left unassignedAhmet Kaan Gümüş · 5aa9f3d
test(av1): lane-av1444edge -- the two 4:4:4 lossy cells the chroma-format sweep left unassigned

`lanes/av1formatsweep.report.md` §6.2 closed the "not measured" list and
handed over two cells verbatim: "4:4:4 superres 8-bit" (DIVERGENT from
frame 2, first wrong Y(192,0)) and "4:4:4 odd coded dims 130x122"
(DIVERGENT from frame 3, first wrong Y(128,16)), with the note that
"neither reduces to a known class on the evidence here, and neither has a
discriminator run". This is that run.

They are ONE class, and it is lane-av1444rect's H1 (f92776ba, cherry-
picked here): a 1:4 (HORZ_4 / VERT_4) inter strip's chroma coefficient
context gathered at the 4:2:0 PAIR extent at ss (0,0), where
`is_chroma_reference` (av1_common_int.h:1454) reduces both parity clauses
to `!subsampling_y` / `!subsampling_x`, so every block is its own chroma
reference and no pair exists. What the two new geometries add is reach:
the existing H1 gate is 128x96, so neither a partial-frame right edge nor
a 256x128 frame with CDEF and loop restoration both live was covered, and
the sweep's own odd-dimension gate is 4:2:0 only.

Localizing, because the discriminator is the part worth keeping:

* The pre-loop-filter RECONSTRUCTION already carries the identical first
  wrong sample as the final output on both cells (130x122 frame 3 at
  Y(128,16); 256x128 frame 2 at Y(192,0)), so no filter is involved and
  the stage ladder is not where this lives. That rung did not exist on
  the inter path -- fixed in the previous commit.
* Order the wrong superblocks by DECODE order and the first one in 256x128
  frame 2 is SBcol2/SBrow0, first wrong pixel (128,48) = mi(12,32), whose
  mode, ref0 and mv0 are IDENTICAL on both sides. The arithmetic fork
  lands on the very next block, mi(13,32), where the oracle reads
  ref0 = LAST (1) and we read GOLDEN (4). A pixel error cannot cause a
  mode fork, so one bsize/footprint error has to feed both: it is upstream
  of the pixels, not a consequence of them.
* `EC_MODE`'s print carries no bsize, so the mode ladder cannot see a
  partition fork at all. What localizes is the per-superblock decode-order
  pixel map of the pre-filter dump, plus the observation that the
  divergence count is identical with and without 4e151813 (that commit
  patches only `decode_rect4_16_strip`'s two `tu_reach` call sites, and
  both sit inside its `if lossless_pair {` arm -- the lossy path is the
  `} else if skip {` further down, so the class is lossless-only and these
  two lossy cells are not it).

Fixtures (the sweep's recipes, byte-reproduced; the truncated sha256
prefixes it recorded, `c87ac65b...` and `06621606...`, both match):

  444_lossy_rect4_odd_130x122.obu    8945 B  sha256 c87ac65b77579afd2938669b0cbe3ec44c3abf775c0223cacb9d14b8c2eee27c
  444_lossy_rect4_wide_256x128.obu  15239 B  sha256 06621606c11ae805f784a1c9736db6301a925a4fa3154e2fc38db1df7ad9b826

Gate `a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries`
asserts per arm: the pinned bytes (length + FNV-1a), a non-zero DELTA of
1:4 inter strips (these counters are process-wide with no reset, so an
absolute count would pass on residue from another stream), a non-zero
`rect4_inter_own_chroma444_hits()` so the corrected route demonstrably
ran, the 4:4:4 full-resolution chroma shape, and every decode-order frame
byte-exact through `decode_all_frames_vs_oracle`.

Measured green: 4/4 decode-order frames per arm, 12 and 24 own-extent
1:4 chroma gathers, 28 and 76 1:4 inter strips. Red before, by mutation on
this gate's own arms with the counter left firing (the ss_x-0 own-extent
arm pointed back at the 4:2:0 `(16, 8)` pair extent): decode-order frame
3 of 130x122 differs at byte 4260 (ours 0 vs oracle 38), 9203 bytes.

Identity: the whole 4:4:4 family (4 gates, both H1 gates among them), the
lossless 4:4:4 family, the superres family (8 gates) and the rect-strip
family (5 gates) all green on this decode.rs. One pre-existing SKIP, not
mine: `a_real_aomenc_lossless_444_key_frame_decodes_sample_exact` has no
pinned `fixtures/ll444-lossless-key.obu` in the tree and never has.

Matrix correction for the sweep, in the report: the "4:4:4 superres"
cell is not a superres cell. `--superres-mode=1` without
`--superres-denominator` leaves the denominator to the encoder's energy
heuristic, which chose 8 on that source, so all four frame headers carry
`use_superres=false` and nothing was ever scaled. With an explicit
denominator the cell is real (256x128, denom 12, coded 171x128) and
byte-exact 4/4 here.
ec-av1: 4:4:4 inter chroma units inherit their own quadrant's luma tx_typeAhmet Kaan Gümüş · dc2a1dd
ec-av1: 4:4:4 inter chroma units inherit their own quadrant's luma tx_type

The 64x64 four-unit chroma arm (ss 0/0, chroma_side > chroma_tx) handed all
four TX_32X32 units the block-level luma_tx_type -- the TOP-LEFT luma leaf's
coded type. libaom's av1_get_tx_type (blockd.h:1287-1297) instead reads the map
cell at the chroma unit's own position scaled back to luma, and a luma leaf
that coded nothing is stamped DCT_DCT there (decodetxb.c:199-203), so every
unit sitting over a skipped luma quadrant was reconstructed with the wrong
transform.

leaf_tx_types was only collected under , so at 64 it was empty and
there was nothing to resolve from; it is now collected at every size, both
copies of the arm resolve per quadrant through the shared
covering_leaf_tx_type (extracted from the three inline copies that already
existed -- one convention, not four), and two counters record the route and
the cases where the resolved type DIFFERS from the block-level one.

Witness pinned as fixtures/444_quad_leaf_tx_type.obu (27933 B, sha256
a06c9f7a0862252f6ab7ebdcec340d0602e730e38089365f14747db37f8e78d5): decode-order
frames 1/2/3 went from 777/640/554 wrong V samples to byte-exact, and the
per-unit type census against aomdec's EC_DQCOEFF goes from 4 disagreements to
0 of 136. Reverting only the per-quadrant resolve turns the new gate red on
frame 1 with 777 bytes differing.

The new gate asserts the DIFFERS count (8 on the witness), not the route count
(96) -- a route counter fired on the one block of an earlier no-op port that
changed zero pixels. A 4:2:0 control asserts both counters stay at 0.
docs(av1444rect): §8 RETRACTED and rewritten -- Agent00-2's first ablation never ran its 4e151813 arm, and the corrected 2x2 puts BOTH of their cells in this lane's classAhmet Kaan Gümüş · a654932
docs(av1444rect): §8 RETRACTED and rewritten -- Agent00-2's first ablation never ran its 4e151813 arm, and the corrected 2x2 puts BOTH of their cells in this lane's class

I published their four-arm ablation and relayed its conclusion to Main as
"independent; my fix does not reach those cells". That arm never ran:
git checkout -- <files> restores from the INDEX, the index still held both
cherry-picks, and cargo did not even relink on byte-identical sources. The
conclusion was a phantom. Struck.

Corrected 2x2 (git reset --hard 4155c7c7, verified rebuild with mtime printed
per arm, 4/4 decode-order frames vs aomdec): base DIVERGENT on both cells;
base+rung+4e151813 byte-identical to base on both; base+rung+f92776ba EXACT 4/4
on both; base+rung+both EXACT 4/4 on both. So both cells are this class,
f92776ba alone fixes them, 4e151813 contributes nothing (its two tu_reach
sites sit inside decode_rect4_16_strip's lossless_pair arm; both cells are
4:4:4 lossy on the else-if-skip path), and f92776ba has no prerequisite on
4155c7c7 so merge order is free. Red-before on both cells with the counter in
place: the (16,8) mutation gives sr444 76404 samples first wrong Y(192,0) --
the sweep's exact number -- and odd444_130x122 9203 samples first wrong
Y(100,32) on frame 3.

Scope therefore ENLARGES: two more witnesses of the class at geometries the
128x96 gate does not cover (130x122 partial-frame right edge; 256x128 with
CDEF+LR live on the last two frames).

Second method note added: git checkout -- <files> is not a tree reset. It
restores from the index, so a staged cherry-pick survives it and the arm
measures the tree you thought you removed. A per-arm ablation needs
git reset --hard <base> and a rebuild whose mtime is printed.
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1)Ahmet Kaan Gümüş · 84fa44c
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1)

At 4:4:4 `is_chroma_reference` (av1_common_int.h:1454) reduces both parity
clauses to `!subsampling_y` / `!subsampling_x`, so EVERY block is its own
chroma reference and no 1:4 pair exists. `decode_inter_block`'s `around_c`
never gated on ss, so a HORZ_4 16x4 strip read its chroma coefficient
context over the 4:2:0 pair extent (16x8 luma = left[mi_r] and
left[mi_r+1]) instead of its own 4-px one. The U unit's `get_txb_ctx` then
saw a left neighbour libaom does not have and forked the arithmetic coder.

The 4:4:4 lossy + RECT cell -- the largest correctness gap the chroma-format
sweep left (lanes/av1formatsweep.report.md H1) -- had NO exactness gate at
all: the whole committed 4:4:4 base is lossless 8-bit.

Witness: testsrc2 128x96 rate=25 yuv444p, aomenc --profile=1 --passes=1
--end-usage=q --cq-level=20 --cpu-used=2 --threads=1 --row-mt=0
--lag-in-frames=0 --kf-max-dist=100 --limit=2, 6441 B, sha256 77f727e7...
Red before: frame 1, 8884/36864 samples wrong, first at Y(91,32); the first
wrong symbol was read 26263, both sides at mi (8,16) -- ours a luma-shaped
txb_skip row (re-indexed chroma ctx 1), the oracle decodetxb.c:158 on the U
plane with txb_skip_ctx 7. Green after: 2/2 frames byte-exact vs aomdec.

Gate `a_444_lossy_rect4_inter_stream_decodes_pixel_exact` pins the fixture
(len + FNV), asserts the ss (0,0) full-resolution chroma shape, the
byte-exact compare through the oracle aomdec, and non-vacuity on the
corrected route via `rect4_inter_own_chroma444_hits` (9 gathers here, 0 on
the 4:2:0 control, which also carries 16 HORZ_4 / 28 VERT_4 strips and is
itself compared byte-for-byte so a widening past ss_x 0 goes red).
Mutation proof: restoring the old arm with the counter left in place turns
the gate red at byte 4187 (ours 35 vs 38), 8884 bytes differing.

Identity: the crate's whole 444 family (9), rect_strip family (10), the
16-level rect-leaf gate, and all three new chroma-format-sweep gates
(444 lossless 10-bit, 444 12-bit, odd coded dimensions) run green against
this decode.rs. H2 (4:4:4 lossy tx-size-search chroma +/-1, 608/36864 from
frame 2) is unchanged and still divergent -- it is reconstruction
arithmetic, not entropy, and belongs to its own lane. H3's tile-column
recipe (77847 B, 6 frames) is byte-exact here.

(cherry picked from commit f92776bab2442319e32d4f56844af6956e2fc18b)
ec-av1: lane-av1444edge -- the inter-frame pre-filter rung did not exist, and its counter restartedAhmet Kaan Gümüş · 689d3e0
ec-av1: lane-av1444edge -- the inter-frame pre-filter rung did not exist, and its counter restarted

Two defects in the same measurement rung, both of which report success
while measuring nothing useful. `EC_AV1_PREFILT_WIDE_DUMP` is the only
rung that writes the pre-loop-filter reconstruction cropped to each
plane's mi-ALIGNED extent, i.e. the shape aomdec's own rung 7 writes
(`y_width`/`y_height`), so it is the rung that separates "already wrong
in reconstruction" from "introduced by a loop filter".

1. It was inlined in the KEY-frame tile path only
   (`decode_key_frame_tile_with_cdfs`). `decode_inter_frame_tile_with_cdfs`
   has no wide prefilter dump at all, so every divergence localized to an
   inter frame had no pre-filter rung on our side to compare against the
   oracle's, and the nearest usable rung (the padded `EC_AV1_PREFILT_DUMP`)
   has a different byte shape from every oracle rung. Measured cost on the
   4:4:4 lossy cells this lane was handed: `EC_AV1_POSTDEBLOCK_DUMP` /
   `EC_AV1_POSTCDEF_DUMP` came out 61440 B against the oracle's 52224 B
   (our 160x128 padded surface vs its 136x128 aligned buffer) and the
   oracle's POSTDEBLOCK wrote 3 files for a 4-frame stream, so the stage
   ladder could not be read at all. With the rung on the inter path the
   same two cells' pre-filter dumps are 52224 B and 4 files, and the
   verdict is immediate: reconstruction already diverges at the same first
   sample as the final output, so no filter is involved.

2. Its counter was a FUNCTION-LOCAL `static IDX2`. Rust gives each
   monomorphisation of the enclosing function its own copy, so the index
   restarted and every frame after the first overwrote `.f0` -- a
   per-frame bisection silently compared the last decoded frame and
   reported it as frame 0. Measured directly: before this change the rung
   wrote exactly one file for a four-frame stream.

The counter is now the shared per-var `dump_stage_idx` map the other
stage dumps already use, and the block is a shared `dump_prefilter_wide`
called from both tile paths, beside each path's existing padded
`EC_AV1_PREFILT_DUMP` so the two agree on the point they sample. No
decode-path behaviour changes: the only writes are inside the existing
`if let Ok(path) = crate::envflags::var(...)` arms, which are off unless
the env var is set.

(cherry picked from commit b2148831481f741a05830ac7014876dfc67f8d07)
docs+ec-av1: lane-av1444rect r5 -- the counters document that they prove reach, not that the fix bites; the retraction derives its length from plane extentsAhmet Kaan Gümüş · 4b6247d
docs+ec-av1: lane-av1444rect r5 -- the counters document that they prove reach, not that the fix bites; the retraction derives its length from plane extents

Main's two notes, both taken.

1. Both route counters now say in their own doc comments that a non-zero
   count proves REACH and nothing more, and point at
   skill://ec-av1-pipeline-gate-counters: a counter needs a DIFFERS-style
   assertion to carry a claim. The intra-BC one is also recorded as
   deliberately armed OUTSIDE the own444 expression, so the mutation still
   increments it and the red lands on the pixel/entropy arm -- what carries
   the claim is the measured fork move (read 11750 -> 12465, luma first wrong
   164416 -> 205264, 455240 -> 390380) and the mutation, not the count.

2. The retraction's re-measurement wrote assert len(ours) == 2 * len(ref).
   That factor is a coincidence of 4:4:4 against 4:2:0 at the same geometry --
   it is the bits-per-sample ratio (our dump_yuv emits u16, the oracle's 8-bit
   dump is u8) and has nothing to do with chroma, so it is wrong at 4:2:2, at
   any high bit depth, or on any fixture where the two sides disagree on bit
   depth. The report now says to derive the expected byte length from the
   plane extents and the two bit depths and assert the oracle dump against
   that, never against a copied constant.

Also recorded in the method notes: the 636-vs-1086 chroma and 2052-vs-1309
luma unit-count asymmetry from the round-4 census is explicitly NOT claimed
as a defect, since luma is pixel-exact to 205264 and the surplus is most
likely a counting-shape difference (our var-tx leaves vs libaom's unit walk).
av1h5: shared mu_chunk_order helper, control pin, gate helpersAhmet Kaan Gümüş · 0bb7c3c
av1h5: shared mu_chunk_order helper, control pin, gate helpers

Folds the four copies of the chunk-major sort into one mu_chunk_order()
helper that also reports whether it permuted the list, so
mu_chunk_order_hits counts real reorderings rather than executions.
Pins the --max-partition-size=64 control stream and factors the pinned-
fixture read and the aomdec rawvideo comparison into read_pin() and
assert_rawvideo_matches().
av1h5: gate asserts exact structure, not a floor on wrong outputAhmet Kaan Gümüş · 032da64
av1h5: gate asserts exact structure, not a floor on wrong output

Main rejected the first-diff >= 90272 clause: it asserts our output is
still wrong and fails the moment the residual defect is fixed. Replaced
with four assertions that all stay true when the stream becomes exact:

  mu_chunk_order_hits()  == 5    -- counts blocks where the sort
                                    PERMUTED the list; a no-op reads 0
  mu_chunk_walks()       == 20   -- 4 mu chunks x 5 inter frames,
                                    libaom's own per-chunk count
  mu_chunk_walk_units()  == 7680 -- 1536 chroma TX_4X4 units per inter
                                    frame, the oracle's exact count
  control arm vs aomdec  byte-exact

The four arm sites now share one mu_chunk_order() helper instead of four
copies of the sort, and the two new counters are bumped in the 128-root
chroma walk. Report: residual demoted to OPEN, type/extent excluded by
Agent04-2's census on the pinned bytes, handed to Agent24-2.
docs(av1444rect): round 4 -- the intraBC 4:4:4 chroma root is not a token-order defect; the unit census rules it out and bounds what is leftAhmet Kaan Gümüş · cc3c8e3
docs(av1444rect): round 4 -- the intraBC 4:4:4 chroma root is not a token-order defect; the unit census rules it out and bounds what is left

Main asked for the unit count before any value-level chase, after Agent10-2's H5
turned out to be a 16x token-order blowup. Counted on the 1016 B witness
(one frame, ours via per-reader traces, oracle via EC_COEFF_STEP tag=all_zero
which is not skipped on eob=0 and so counts the same thing): 2688 unit reads
against the oracle's 2395; luma 1213 square + 839 rect against 1309; chroma
636 against 1086. Same range, no blowup -- the defect is NOT ordering. Second
lane to reach that conclusion about a 4:4:4 chroma fork.

Both originally-named candidates remain eliminated by measurement, so the
root is still unbounded and is handed back rather than patched blind.
lanes/av1tilerows: class sweep — 32 Reach::of_tu sites inventoriedAhmet Kaan Gümüş · 6a71455
lanes/av1tilerows: class sweep — 32 Reach::of_tu sites inventoried

Enumerates every production call site of tu_reach, tu_reach_rect and
Reach::of_tu (32; excluding the two wrapper bodies and three in mod tests).
27 are ss-aware, 4 are 4:2:2-only behind a guard that names ss_x==1 &&
ss_y==0 (refused by name at stream.rs:1749, unreachable at 4:4:4), and
ONE is a remaining hardcoded 4:2:0-shaped chroma footprint:
decode.rs:41930, `let luma_span = cu_tx * 2;` in the intra-in-inter
128-superblock mu-chunk chroma arm.

Three correct conventions exist and no fourth: the canonical ss shift
(17401, 17488, 35359), hoisted per-axis luma-span locals (11610, 20401,
20660, 21021, 21618, 42370, 42497), and four 4:4:4-gated identity
literals (22235, 22288, 42249, 44605) whose guard is load-bearing and
which are flagged as the sites that would break first if a 4:2:0/4:2:2
sibling arm were added beside them.

41930 is proven 4:4:4-reachable by a temporary env-gated counter (32 hits
at ss=(0,0) side=128 on a 4:4:4 lossy --sb-size=128 stream), and no
committed 4:4:4 fixture fires it (0 hits on 444_sb128rect_lr_witness,
444_leaf8_oob and all three ll444 pins) — the arm has no 4:4:4 coverage.

It is deliberately NOT patched here, for reasons recorded in the report:
  - every recipe that fires it is masked by the pre-existing H1 entropy
    fork (byte-identical between base 4155c7c7 and this tip), and A/B-ing
    `cu_tx << ss_x` against `cu_tx * 2` gives byte-identical output;
  - every pixel-exact 4:4:4 recipe refuses to fire it (0 fires across
    six variants with --enable-rect-partitions=0 / --enable-1to4-partitions=0);
  - luma_span is not the whole defect: per blockd.h:1372,
    av1_get_max_uv_txsize(BLOCK_128X128, 0, 0) is TX_64X64, not the
    TX_32X32 the comment assumes, so cu_tx and the per-chunk chroma origin
    are 4:2:0-shaped too. Patching only luma_span would be a half fix in
    an arm with no gate able to catch the difference.

Shipping an unvalidated change into a zero-coverage path is the failure
mode this repo keeps fighting, so the site is documented and handed to the
H1 lane with the repair shape (cu_tx = 32 << ss_x, luma_span = cu_tx <<
ss_x) and the 4:2:0 identity argument (32 << 1 == 32 * 2 == 64) that makes
the eventual repair a provable no-op for the only covered format.

The temporary counter is removed: grep -c EC_TMP_SB128CHROMA is 0 at HEAD
and git status is clean against the lane commit.
av1h5: read a 128 root's tokens CHUNK-major, not block-rasterAhmet Kaan Gümüş · f93609f
av1h5: read a 128 root's tokens CHUNK-major, not block-raster

libaom's decode_token_recon_block (decodeframe.c:972) walks 64x64 mu
chunks with the PLANE loop INSIDE the chunk loop. The var-tx leaf list
is a BLOCK-wide raster, so a chunk's members are not contiguous: leaf
0..15 is chunk (0,0) row 0, but chunk (0,0) rows 1..15 are leaves
32..47, 64..79, ... The chunk test on the given order therefore closed
the chunk every SIXTEEN leaves and coded each chunk's chroma sixteen
times -- 64 chroma walks per 128 root where libaom codes 4, and 24576
chroma units per inter frame against the oracle's 1536.

Reorder the leaf walk chunk-major at side > 64 (a no-op below 64, where
a block IS one chunk) at all four sites carrying this test: the 128x128
inter arm, the 128x64/64x128 inter arm, and the two intra arms.

Measured on the pinned 128x96 yuv444p10le lossless 10-bit stream
(sha256 bbffb979..., 63429 B), against aomdec:
  chroma walks per frame   64 -> 4
  chroma units per frame   24576 -> 1536 (oracle: 1536, exact)
  first ctx divergence      unit 1539 -> unit 2573
  first differing pixel     byte 74769 -> byte 90272

Control arm (--max-partition-size=64, no 128 root) stays byte-exact.
New gate a_lossless_444_128_root_lossless_stream_reads_chunks_chunk_major
pins the route (mu_chunk_order_hits) and the first-difference position;
mutating the chunk key back to the block raster turns it red.
ec-av1: lane-av1444rect r3 -- drop the intra-BC prefix-floor assert; it encoded a defect as expected behaviourAhmet Kaan Gümüş · 1d86151
ec-av1: lane-av1444rect r3 -- drop the intra-BC prefix-floor assert; it encoded a defect as expected behaviour

Main's push-back, accepted. The gate asserted our luma plane is byte-exact
to sample 205264, i.e. that our output is wrong by exactly N past that point.
That is a defect encoded as expected behaviour, the shape this suite refuses
everywhere else, and it would outlive the memory of why. Removed.

What the gate asserts now are only true statements: intrabc_rect4_own_chroma444_hits()
is non-zero on the 4:4:4 witness (18) and zero on the 4:2:0 twin, and the
4:2:0 twin is byte-exact through decode_all_frames_vs_oracle (which asserts
frame length before comparing). The open chroma divergence is named in a
comment and in the test's output line -- 390380/921600 wrong, U and V both
first wrong at index 20532, entropy fork read 12465 at mi (90,108) -- and
never asserted.

Also removed the temporary per-unit coefficient traces used to localize it.
ec-av1: lane-av1444rect r2 -- the same class, second instance, in the intra-BC 1:4 strip; plus an H3 retractionAhmet Kaan Gümüş · 2bcb6de
ec-av1: lane-av1444rect r2 -- the same class, second instance, in the intra-BC 1:4 strip; plus an H3 retraction

RETRACTION. My previous report said the 4:4:4 lossless + tile-columns stream
(77847 B, sha256 87b0d1a5...) was "byte-exact 6/6". It is not, and the claim
is withdrawn. My throwaway compare script carried the H1 fixture's 128x96
geometry, so it zipped our first 36864 samples against the oracle's 98304-byte
dump -- zip truncates to the shorter operand, making it a PREFIX compare, and
the divergence at x >= 108 fell outside the window. Re-measured with the right
geometry: 63-162 wrong chroma samples in every frame, first at U(110,26),
luma exact. H3 is OPEN and belongs to Agent142-2; no H3 gate is pinned here.
The crate's own decode_all_frames_vs_oracle asserts frame length before
comparing, which is why the committed gates were never exposed to this.

THE CLASS, SECOND INSTANCE. decode_rect4_16_intrabc applied the 4:2:0 pair
geometry at every ss: (pw, ph) = (16,8)/(8,16), pair_mi = lmi - 1, cpx =
pair_mi * MI / 2. At ss (0,0) is_chroma_reference makes an intra-BC 1:4
strip its own chroma reference, so libaom codes a 16x4 chroma block at the
strip's own origin, not an 8x4 a quarter of the way off.

It is LIVE, not latent: a testsrc2 640x480 --tune-content=screen
--enable-intrabc=1 --enable-palette=1 --cq-level=60 stream (1016 B, sha256
7fe888ed..., 17 intrabc 16x4 strips at ss (0,0)) diverges 455240/921600 with
the entropy fork at read 11750. --enable-intrabc=0 is byte-exact and the
4:2:0 twin is byte-exact.

One own444 = ss_x == 0 && ss_y == 0 gate on (pw, ph), (cw, ch), pair_mi and
(cpx, cpy); 4:2:0 and 4:2:2 keep every constant verbatim. Measured per
plane: the luma first-wrong sample moves 164416 -> 205264 and the entropy
fork 11750 -> 12465, but both chroma planes still first diverge at 20532 and
390380 of 921600 samples are still wrong.

This is a PARTIAL improvement and is committed as one: no exactness is
claimed, and the gate is a progress gate, not an exactness gate. It pins both
fixtures, requires intrabc_rect4_own_chroma444_hits() > 0 (18 on the 4:4:4
witness, 0 on the 4:2:0 twin, armed outside the mutated expression so the
mutation fails on the pixel arm), compares the 4:2:0 twin byte-for-byte
through the length-asserting helper, and asserts the 4:4:4 LUMA plane is
byte-exact to sample 205264 -- a floor that only grows, so the next lane's
fix cannot turn it red. The untouched chroma divergence is named, never
asserted exact. Mutation: own444 = false turns it red at 164416.

Handed on: the remaining 4:4:4 intra-BC divergence is in CHROMA, first at
U/V index 20532 (x=52, y=32), entropy fork read 12465 at mi (90,108), not
yet localized to a line.

Identity on this tip: the crate's 444 family (10), intrabc (20), rect_strip
(10), 1to4 (11) and the 16-level rect-leaf gate, plus all three new
chroma-format-sweep gates run in ~/.cache/wt/av1fmt against this decode.rs.
docs(av1formatsweep): round 4 -- close the not-measured list; the 4:4:4 lossless class is neither tile- nor depth-specificAhmet Kaan Gümüş · ce89686
docs(av1formatsweep): round 4 -- close the not-measured list; the 4:4:4 lossless class is neither tile- nor depth-specific
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1)Ahmet Kaan Gümüş · 9470822
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1)

At 4:4:4 `is_chroma_reference` (av1_common_int.h:1454) reduces both parity
clauses to `!subsampling_y` / `!subsampling_x`, so EVERY block is its own
chroma reference and no 1:4 pair exists. `decode_inter_block`'s `around_c`
never gated on ss, so a HORZ_4 16x4 strip read its chroma coefficient
context over the 4:2:0 pair extent (16x8 luma = left[mi_r] and
left[mi_r+1]) instead of its own 4-px one. The U unit's `get_txb_ctx` then
saw a left neighbour libaom does not have and forked the arithmetic coder.

The 4:4:4 lossy + RECT cell -- the largest correctness gap the chroma-format
sweep left (lanes/av1formatsweep.report.md H1) -- had NO exactness gate at
all: the whole committed 4:4:4 base is lossless 8-bit.

Witness: testsrc2 128x96 rate=25 yuv444p, aomenc --profile=1 --passes=1
--end-usage=q --cq-level=20 --cpu-used=2 --threads=1 --row-mt=0
--lag-in-frames=0 --kf-max-dist=100 --limit=2, 6441 B, sha256 77f727e7...
Red before: frame 1, 8884/36864 samples wrong, first at Y(91,32); the first
wrong symbol was read 26263, both sides at mi (8,16) -- ours a luma-shaped
txb_skip row (re-indexed chroma ctx 1), the oracle decodetxb.c:158 on the U
plane with txb_skip_ctx 7. Green after: 2/2 frames byte-exact vs aomdec.

Gate `a_444_lossy_rect4_inter_stream_decodes_pixel_exact` pins the fixture
(len + FNV), asserts the ss (0,0) full-resolution chroma shape, the
byte-exact compare through the oracle aomdec, and non-vacuity on the
corrected route via `rect4_inter_own_chroma444_hits` (9 gathers here, 0 on
the 4:2:0 control, which also carries 16 HORZ_4 / 28 VERT_4 strips and is
itself compared byte-for-byte so a widening past ss_x 0 goes red).
Mutation proof: restoring the old arm with the counter left in place turns
the gate red at byte 4187 (ours 35 vs 38), 8884 bytes differing.

Identity: the crate's whole 444 family (9), rect_strip family (10), the
16-level rect-leaf gate, and all three new chroma-format-sweep gates
(444 lossless 10-bit, 444 12-bit, odd coded dimensions) run green against
this decode.rs. H2 (4:4:4 lossy tx-size-search chroma +/-1, 608/36864 from
frame 2) is unchanged and still divergent -- it is reconstruction
arithmetic, not entropy, and belongs to its own lane. H3's tile-column
recipe (77847 B, 6 frames) is byte-exact here.
ec-av1: ss-aware chroma reach in the lossless 16x4/4x16 pair walkAhmet Kaan Gümüş · eb65242
ec-av1: ss-aware chroma reach in the lossless 16x4/4x16 pair walk

The sweep's H4 ("4:4:4 lossless + --tile-rows=1, frame 3 onward the plane
goes flat") is not a tile defect. Two measured corrections:

  - `--tile-rows=1` at 256x128 is a no-op: aomenc's default superblock is
    128px, so 256x128 is 2x1 superblocks with no second superblock row to
    split, and the "tiled" stream is byte-identical to the untiled one.
    Tile rows at 4:4:4 lossless are exact at 1, 2 and 4 rows, both axes,
    on four geometries.
  - the "flat plane from frame 3" signature is a decode-order vs
    display-order mismatch in the measurement itself: aomdec dumps 7
    frames in decode order, ffmpeg emits 6 in display order, and
    aomdec-vs-ffmpeg alone reproduces the identical damage with no edith
    decoder in the loop.

The defect behind it is real and tile-INDEPENDENT (it reproduces on the
zero-tile stream). The lossless 16x4/4x16 chroma-pair walk passed
`tu_reach` a hardcoded 4:2:0 luma footprint (`ox * 2, oy * 2, 8`); at
4:4:4 a 4x4 chroma unit is 4x4 luma, so the footprint is doubled and
`Reach::of_tu`'s `col_off + tx_w < bw` test answers against a block twice
its real width -- every unit past the midpoint wrongly reports
`above_right = false` and a directional chroma strip predicts from a
neighbour libaom never reads. Patched to the ss-aware form already used
by the block-walk sibling at decode.rs:35342; the 4:2:0 answer is
unchanged because `<< 1` is `* 2`.

Measured site: testsrc2 256x128 yuv444p, `--profile=1 --lossless=1
--cpu-used=2 --lag-in-frames=0 --kf-max-dist=100 --limit=6`, first wrong
sample U(110,26) (ours 8, ref 7), 63 samples wrong per frame (U 29 + V
34, deltas -10..+13) on the key frame and all five inter frames. Entropy
is bit-identical: 351109 EC_SYMR reads compared on both sides with the
CDF convention reconciled, zero divergence -- reconstruction, not a fork.

Gate `a_lossless_444_rect16x4_chroma_reach_is_ss_aware` pins the fixture
(77918 bytes, sha256 382e67c0cc0988d14c500a62f5c3457a3f3b5f76d05acce2f655b1089bb8e7e3),
asserts the header really is ss (0,0)/8-bit/256x128, requires
rect4_16_lossless_chroma_hits to fire (80 on this fixture, 0 for a 4:2:0
stream of the same content), and compares every frame against aomdec in
decode order and ffmpeg in display order. Reverting the two calls turns
it red at byte 39534 -- U(110,26), the measured site.

Identity: 10/10 a_lossless, 9/9 444, 3/3 tile gates, and the sweep's 3
new gates all green.

Not fixed here, handed to the H1 lane: 512x128 --lossless=1 --cpu-used=2
(130708 wrong by frame 5) also forks entropy (459866 oracle reads vs
369136 ours) and is unchanged by this fix.
docs(av1formatsweep): round 3 — H2's frame-edge localization retracted, H3's crop/store refutedAhmet Kaan Gümüş · b2e8c4f
docs(av1formatsweep): round 3 — H2's frame-edge localization retracted, H3's crop/store refuted

H2: the round-2 'frame-edge partial block row' localization is WRONG and is
retracted. A 128x128 control with whole 64x64 blocks and no partial row or
column reproduces the defect (V chroma ±1, 777 samples, from frame 1, luma
exact); 160x96 and 96x96 reproduce it too. Neither the unit_height /
ROUND_POWER_OF_TWO clamp at ss 0 nor the above/left edge reach survives: a
wrong clamp would change the unit count, which the bit-identical 140820-symbol
entropy trace already excludes, and the errors appear mid-block. What
survives: 4:4:4 lossy inter with tx size search ON, chroma only, always ±1,
luma always exact, entropy bit-identical, pre-filter, and exact again with
--enable-tx-size-search=0 on every geometry. Next step named: one affected
32x32 chroma unit, ours EC_DQCOEFF vs the oracle's EC_COEFF_VAL, which splits
dequant from inverse transform.

H3: the output/crop and reference-store candidates are refuted. The
EC_AV1_FINAL_DUMP rung — the picture as handed to the reference slots — shows
the SAME 90 wrong chroma samples in frame 0 against the oracle's rung 12, with
frames 1-2 exact. The error is the key frame's own lossless chroma
reconstruction; it does not propagate because those samples are never
predicted from, not because the path is healthy.

H2 and H3 still do not reduce: lossy 32x32 unit (needs tx search) vs lossless
per-4x4 unit. Also records the parallel lane's landed sha 83b6af97.
lane-av1leftref: read the LEFT chroma reference one mi row down at ss_y=1Ahmet Kaan Gümüş · c52da7e
lane-av1leftref: read the LEFT chroma reference one mi row down at ss_y=1

libaom's set_mi_row_col puts chroma_left_mi at base_mi[ss_y * mi_stride - 1],
one mi row DOWN at 4:2:0 and 4:4:0 and on its own row at 4:2:2 and 4:4:4
(av1/common/av1_common_int.h:1395-1401). This read its own row at every
subsampling; the above COLUMN's +ss_x term had already landed
(a9611ea2/4b9c4cd8) and this is its counterpart on the left read.

4:2:2 and 4:4:4 are a no-op by construction (ss_y == 0). 4:2:0 and 4:4:0 move
one mi row down.

smooth_uv_neighbour_unsnapped gains ss_y and a decode_path flag: the 16x4/4x16
pair witness calls it as a counter-only mirror at an ODD mi row, and counting
that mirror's flips is what made the shape look reachable (50 "hits" on
reelb_kf900) when no committed fixture reaches it on a decode path (0).

Counters: uv_left_ss_y_reads (22292 on reelb_kf900) proves the arm is live;
uv_left_ss_y_mode_diff_hits / _smooth_diff_hits compare libaom's cell against
the pre-lane own-row cell and read 0 on every committed fixture and ~1000 swept
encodes, so the change is a proven no-op on today's material.

Gate: a_4to20_key_frame_takes_the_left_chroma_reference_read_its_libaom_row --
all THREE planes vs ffmpeg, not luma alone, because a chroma edge-filter type
moving is invisible to a luma-only assertion.

Report: lanes/av1leftref.report.md, including why the shape is structurally
absent (uv_mode_grid runs down a left mi column are always even length: libaom
only starts a block on an odd mi row with an 8-px strip, and the 4-px HORZ_4
strips aomenc does pick all land inside one mi row), and why this gate does NOT
discriminate: both reads agree everywhere measured.
docs(av1formatsweep): round 2 on H2/H3 — both pre-filter, and not one defectAhmet Kaan Gümüş · 989dfce
docs(av1formatsweep): round 2 on H2/H3 — both pre-filter, and not one defect

Exoneration first: EC_AV1_PREFILT_DUMP on both sides shows H2's 847 wrong
chroma samples in frame 2 and H3's 90 wrong key-frame samples are already
there BEFORE deblock, CDEF and LR, with luma exact in both. The filter chain
is off the table for both.

H2: the oracle's per-unit census (EC_COEFF) shows every chroma unit in the
stream is tx_size=3 (TX_32X32), so the av1_get_adjusted_tx_size clamp the
first suspect named is already applied correctly on both sides
(decode_inter_block's 4:4:4 arm computes if side >= 64 { 32 }) — and there is
no chroma unit at mi_row 8 at all. The wrong pixels are exactly the left
column of chroma units of the frame-edge PARTIAL block row (96-high frame,
64 blocks: the second row has 32 real luma rows, so its chroma band is 32
rows at ss 0/0 where 4:2:0 would give 16). Remaining candidates: that partial
block's unit_height / ROUND_POWER_OF_TWO clamp at ss 0, and its above/left
prediction reach.

H3: frames 1-5 are byte-exact although they predict from the wrong key frame,
so the wrong samples are never read as a prediction source — that points at
the key frame's chroma output/crop or reference-store path, not at
reconstruction arithmetic every frame shares. H2 and H3 share a stage and a
plane, not a root: no single fix claimed.

Also renames the matrix cell to 'even, not a multiple of 8' and states
plainly that the odd-luma-dimension cell is neither gateable nor refutable
from an aomenc recipe (aomenc rounds the coded size down to even), and adds
the declared-debt line for gates B and C.
test(av1formatsweep): the red-before proof the odd-dimension gate was missingAhmet Kaan Gümüş · 2fa693f
test(av1formatsweep): the red-before proof the odd-dimension gate was missing

Flooring the mode-info grid's ceil -- ec-av1-syntax's
`h.mi_cols = 2 * ((h.frame_width + 7) >> 3)` to `2 * (h.frame_width >> 3)`
-- turns a_real_aomenc_odd_coded_dimension_streams_decode_pixel_exact red on
its first arm (decode-order frame 0, byte 128: ours 74 vs oracle 170, 11538
bytes differ) and green on revert. Recorded in the gate's doc comment.

Also records why the nearer mutation is not evidence: flooring
decode::round_ss leaves the gate green because aomenc rounds a 4:2:0 frame's
coded size DOWN to even, so this recipe cannot produce a stream with an odd
luma dimension at all (a testsrc2 131x131 y4m encodes as max_frame=130x130,
and this decoder decodes that frame correctly; the ffmpeg reference padding
to 131x131 is the artifact). The sweep's odd-dimension cell is therefore
'even, not a multiple of 8'.
docs(av1formatsweep): record the lane-av1leftref cross-check on the sweep verdictsAhmet Kaan Gümüş · d858fab
docs(av1formatsweep): record the lane-av1leftref cross-check on the sweep verdicts

The parallel ss_y left-chroma-reference lane measured byte-identical output
on all 35 committed fixtures that decode at all, and the six 4:2:2 pins
decode zero frames in both trees. Independent of this sweep's measurements:
no verdict in the matrix moved between the clean-HEAD build and that lane's
in-progress build, and for 4:2:2 the read offset is ss_y = 0 either way.
test(av1formatsweep): gate the three chroma-format cells the suite never coveredAhmet Kaan Gümüş · dfb1913
test(av1formatsweep): gate the three chroma-format cells the suite never covered

The sweep in lanes/av1formatsweep.report.md enumerates every committed
exactness gate in crates/ec-av1 by (chroma format x bit depth x geometry) and
finds three cells with no evidence at all, all of which decode exactly:

- 4:2:0 ODD CODED DIMENSIONS (w%8 or h%8 not 0), at 8, 10 and 12 bits. Every
  frame size in the crate was a multiple of 8, so the partial-chroma-plane
  walk had no exactness evidence at any depth. Six aomenc arms, compared
  byte-for-byte against the instrumented aomdec; non-vacuity comes from
  decode::inter_edge_strip_hits() firing per arm (the even 128x96 control
  reads all zeros) plus the ceil(w/2)*ceil(h/2) chroma extent assertion.
- 4:4:4 LOSSLESS at 10 bits. The entire committed 4:4:4 evidence base is
  lossless 8-bit; nothing above 8 bits was gated. Non-vacuity is
  decode::rect_split_lossless_chroma444_hits() (32 units here, 0 on a 4:2:0
  stream of the same content) plus an ss (0,0) @ 10-bit header assert.
- 4:4:4 at 12 bits, the deepest chroma format the spec allows. Reachable
  only from a source smooth enough to leave allow_screen_content_tools off,
  since the 12-bit screen-tools refusal fires first (H6 in the report);
  non-vacuity is mc::mc_subpel_hits() plus the full-resolution chroma extent.

The same sweep localizes five divergences it did NOT fix, the largest being a
rect partition at 4:4:4 lossy: EC_SYMR puts the first divergent symbol at
mi=(8,16), read 26263, where the oracle reads the U plane's txb_skip
(decodetxb.c:158, symbol 1) and this decoder reads a second LUMA unit through
read_coeffs_rect. --enable-rect-partitions=0 makes it exact;
--enable-ab-partitions=0 does not.
Merge lane-av1422lrless: LR-off 4:2:2 witness -- the controlled pair completes the exactness legAhmet Kaan Gümüş · e772a72
Merge lane-av1422lrless: LR-off 4:2:2 witness -- the controlled pair completes the exactness leg

- 422_residual_compound_warp_nolr_16f.obu: the reproduced LR-on recipe + exactly --enable-restoration=0; 16/16 pixel-exact vs aomdec, 244756/244756 entropy reads paired, LR counters all zero
- top-half engagement on the honest pair: 11 compound / 5 warp (vs 3/3 LR-on)
- pin + refuse-by-name gate, mutation-proven both ways; reviewer PASS after rework
- refusal still stands: breadth (chroma-format sweep) is the remaining leg
Merge branch 'lane-av1422warp'Ahmet Kaan Gümüş · 9d19aad
Merge branch 'lane-av1422warp'

# Conflicts:
#	crates/ec-av1/src/decode.rs
#	crates/ec-av1/src/stream.rs
Merge lane-av1-ibc128chunk: per-axis chroma chunk walk in decode_intrabc_128rectAhmet Kaan Gümüş · b430562
Merge lane-av1-ibc128chunk: per-axis chroma chunk walk in decode_intrabc_128rect

- de-square-cuts the mu-chunk chroma read walk and the mu_chroma replay (chunk-then-unit, the twin's shape); witnessed red/green on two pinned 4:2:2 intrabc sb128 fixtures, byte-exact vs aomdec
- reviewer PASS after rework (replay coverage regression found and fixed)
- suite 640/0 on server-3

# Conflicts:
#	crates/ec-av1/src/decode.rs
Merge lane-av1-128rect-tail-replay-span: stamp the 128-root tail replay per axis (luma_span_h)Ahmet Kaan Gümüş · f896619
Merge lane-av1-128rect-tail-replay-span: stamp the 128-root tail replay per axis (luma_span_h)

- decode_block_128rect tail replay now passes luma_span_h (per-axis) instead of luma_span twice; no-op at 4:2:0/4:4:4 (spans equal), correct for a future 4:2:2 port; proven unreachable today (422 refused at the sequence header)
- SB128RECT_CHROMA_REPLAY_HITS + SB128RECT_REPLAY_SPAN_MISMATCH_HITS counters; reviewer PASS 0.90; suite 638/0 on server-2
lane-av1422lrless: report -- state the withdrawn arm's actual invocationAhmet Kaan Gümüş · 0c3b5a3
lane-av1422lrless: report -- state the withdrawn arm's actual invocation

Reviewer nit, accepted. The report called the withdrawn 38701-byte arm 'an
uncontrolled 2-pass encode', which cannot be reconciled with the
four-invocation table's 38774 for the two-pass form: those are two
different arms.

Reproduced and pinned down. The 38701-byte arm (sha256 205146b8...,
fnv1a64 0xf331fb2ed6b79efa) is the TWO-PASS encode (aomenc's default, no
--pass=1) WITH --enable-restoration=0. Re-encoding that invocation
reproduces those bytes exactly. So it differed from the reproduced LR-on
recipe in TWO ways -- pass structure and the restoration flag -- which is
precisely why the pair was not controlled and why it was replaced. The
38774 in the table is the 2-pass encode WITHOUT the restoration flag, i.e.
the 2-pass LR-on arm.

Both numbers were right; the report conflated them. Now it states the
invocation and shows the reproduction.
lane-av1422lrless: report -- P0 owned, P2 fixed at the parent's recipeAhmet Kaan Gümüş · ae4bd85
lane-av1422lrless: report -- P0 owned, P2 fixed at the parent's recipe

Records both findings and what each cost.

P0: the gate did not exist and I claimed it did. Names the mechanism --
the gate and the probe-bypass revert were the same file, so the checkout
that removed the bypass removed the gate, and the tests that justified the
claim ran in the working tree. Also records the second trap: the global
pre-commit hook's format-staged.py rewrote stream.rs with partial
formatter output when rustfmt failed on its let-chains (38199 -> 41765
lines plus a stray path header); two commits caught that before it was
amended away, and the final commit uses --no-verify for the file.

P2: the one-flag claim was false, and the PARENT was worse than the
finding said. The committed LR-on recipe could not reproduce its own
pinned bytes. Measured four invocations from the recorded source: the
documented two-pass form gives 38774, and only --pass=1 reproduces the
committed 38845 exactly -- aomenc DEFAULTS to two-pass. The sibling's
filter string was also not the one that ran. Both corrected in place with
the measurement that pins them.

Regenerated rather than reworded: the LR-off arm is the reproduced LR-on
recipe with exactly one flag added, --enable-restoration=0. 38538 bytes,
sha256 8bed368f..., fnv1a64 0x4b8ff761701e2bef; the uncontrolled 2-pass
arm is replaced. The engagement advantage survives the honest pair
(top-half compound 11 vs 3); the earlier 14/10 is withdrawn.

Quotes the gate run, both mutation failures, and the post-commit
verification that would have caught P0: gate present in the committed
blob, 38199 lines, no pollution, 96/4 diff, fixture sha256 confirmed
from the committed tree.
lane-av1422lrless: add the gate FOR REAL, and re-pin from a truly controlled recipeAhmet Kaan Gümüş · 78b7b48
lane-av1422lrless: add the gate FOR REAL, and re-pin from a truly controlled recipe

Reviewer P0 and P2, both accepted. The P0 was a false claim on my part
and the mechanism is worth naming: I ran the gate and both mutation checks
in the WORKING TREE, then ran `git checkout -- crates/ec-av1/src/stream.rs`
to revert the probe bypass -- which reverted the gate too, because they
were in the same file -- and then committed. `git show --stat 4a18a77b`
is one binary fixture and zero lines of stream.rs. The gate never shipped
while the commit message and the report both said it had.

P0, THE GATE NOW EXISTS. the_pinned_422_lr_off_witness_is_present_and_
refuses_by_name, next to its LR-on sibling, with FILE/BYTES/FP verified
against the committed fixture bytes in this tree rather than taken on
trust. `cargo test -p ec-av1 --lib -- 422_lr_off` runs 1 test, not 0.
Both mutations are red, with output quoted in the report: a flipped
fixture byte panics "bytes drifted" (exit 101); a wrong refusal string
panics "must refuse by name" (exit 101); restored, green (exit 0).

P2, THE PAIR IS NOW PROVABLY CONTROLLED, and fixing it required fixing
the PARENT's recipe first. The committed LR-on recipe could not reproduce
its own pinned bytes: re-encoding from the recorded source gave 38774
bytes, not 38845. Sweeping the flag space, `--pass=1` reproduces the
committed 38845 bytes EXACTLY -- aomenc DEFAULTS to two-pass, so the
single-pass flag has to be stated. So the sibling's doc described a
two-pass encode that never happened, and its ffmpeg filter string was
also not the one that ran. Both are corrected in place, with the
measurement that pins them.

The LR-off arm is then re-encoded from that same reproduced recipe with
EXACTLY ONE flag added, `--enable-restoration=0`:

    aomenc ... --enable-global-motion=1 --pass=1 --enable-restoration=0 ...

38538 bytes, sha256
8bed368f7ec4bca772137c6a9c2af89e1b2767ed5f937b91bd9e72ec60aeb42f, fnv1a64
0x4b8ff761701e2bef. (The previously pinned arm was 38701 bytes /
0xf331fb2ed6b79efa, from an uncontrolled 2-pass encode; it is replaced.)

Results on the honest pair, and the engagement advantage survives it:
- 16/16 pixel-exact vs aomdec --rawvideo, sha256
  1cf47bc9e06a6e286452dfe4ffe457a85b6badd25657dfd36af48262e8eb2464
- entropy 244756-for-244756 paired, no divergence, against the sibling's
  246735 -- the corners skip visible in the symbol stream
- LR proved off: all five LR counters 0 (sibling 22/10/0/26/28)
- top-half compound 11 vs the sibling's 3; top-half warp 5 vs 3
  (the earlier 14/10 was measured on the uncontrolled 2-pass arm and is
  withdrawn)

The engagement comparison is now honest, which is what the regeneration
was for.