forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 35a444e578c005f88dd49f65ced4abe5c0f72d01

2026-09-30

lane-av1444d10: a byte-exact gate for the 352x242 10-bit 4:4:4 palette-chroma cellAhmet Kaan Gümüş · 35a444e
lane-av1444d10: a byte-exact gate for the 352x242 10-bit 4:4:4 palette-chroma cell

Pins the census cell s444_352x242_10b as a committed fixture and gates it
byte-exact against aomdec over all 17 decode-order frames. 4:4:4 is a format
this decoder claims to support, so an accepted-and-wrong cell cannot stay
probe-only.

The geometry, named: what 352x242 has and its five same-depth controls do not
is a block whose CHROMA is taller than the 32-pixel unit cap at ss (0,0), so
decode_block_rect's tiled chroma walk splits it (nh = 2). The sensitive axis is
chroma UNIT COUNT, not frame width or height -- which is why the census could
report "geometry-sensitive" without the mechanism.

Non-vacuity: pinned length + FNV-1a64; 16 shown frames at 352x242 with
full-resolution chroma; and CHROMA_PALETTE_WINDOW_HITS read as a delta with a
measured floor of 4, incremented only on the two fixed lines, so the gate cannot
pass without them running.

Mutation proof: with the two palette_window calls replaced by the whole-buffer
hand-off (counter untouched) the gate reds BY NAME -- "decode-order frame 0 of
17 (16 shown, 1 hidden) differs from the oracle at byte 328192 (ours 209 vs
216)" -- byte 328192 being decode frame 0 plane U row 224 col 64, the census's
own first bad sample. Restored: green.
lane-av1444d10: window the 32-capped chroma palette buffer per unit (the 352x242 4:4:4 chroma divergence)Ahmet Kaan Gümüş · 7f2ca30
lane-av1444d10: window the 32-capped chroma palette buffer per unit (the 352x242 4:4:4 chroma divergence)

The census cell s444_352x242_10b (10-bit 4:4:4, 352x242) diverged on U/V only,
0/1166/1413 over 17 of 17 decode frames, first bad sample at decode frame 0
plane U row 224 col 64. The filter chain is exonerated: the oracle's own
PREFILT dump equals its FINAL dump over every low byte, and our PREFILT
divergence set is identical to our FINAL one, so deblock/CDEF/LR/superres are
inert and this is a reconstruction defect.

A 32x64 rect block's chroma is 32x64 at 4:4:4, tiled into two 32x32 units.
Both units were handed the WHOLE block's palette prediction buffer, and
PlaneBuf::reconstruct reads its first side*side entries, so every unit
reconstructed the block's top-left corner. Unit (0,1) at pixel (64,224) wrote
the block's row-192 palette values (flat 209) where libaom writes row 224's
(216), and the neighbouring 32x32 PAETH block at (96,224), whose left edge is
that sample, then propagated 19 more wrong columns along its own top row.

Window both arms (the square-unit and the rect-unit one) with palette_window,
the way the luma split-transform and the 4x4 lossless chroma walks already do.
Merge lane-av1422census (REPORT ONLY): the 4:2:2 census, re-measured with a proven-live comparator -- and a live 4:4:4 defect found on the wayAhmet Kaan Gümüş · ca69286
Merge lane-av1422census (REPORT ONLY): the 4:2:2 census, re-measured with a proven-live comparator -- and a live 4:4:4 defect found on the way

THE DECISION INPUT, and it reverses the direction the day was drifting: **the 4:2:2 header refusal is still
earning its keep.** 50 4:2:2 cells measured (9 committed, 23 probe-only, 18 fresh): **34 byte-exact, 16
DIVERGE**, and all 50 still refuse by name on the shipped tree. The fresh aomenc sweep is the part that
matters -- 4:2:2 8-bit 5 of 12 exact (7 diverge), 4:2:2 10-bit 1 of 6 exact (5 diverge) -- because the
earlier "42 fresh encodes, all clean" sweep used ffmpeg's libaom wrapper at `-cpu-used 6` and a MALFORMED
y4m; at `-cpu-used 0` with altref and global motion the same content and geometries diverge 7 times out of
12. That sweep did not disprove the defect, it searched a partition tree the defect does not live in.
Controls at the same recipe and geometries: 4:2:0 **18 of 18 exact** (12 x 8-bit, 6 x 10-bit), 4:4:4 17 of
18 -- so the sweep failures are 4:2:2-specific, not "odd geometry" and not "this encoder".
Divergence is content-and-geometry sensitive, not a function of either alone: 322x242, 326x242 and 384x242
are exact at 8-bit while 320x242 diverges; 320x240 is exact while 322x240 diverges.

AND THE CENSUS FOUND A LIVE DEFECT OUTSIDE THE 4:2:2 QUESTION: `s444_352x242_10b`, 10-bit **4:4:4**,
chroma only (U 1166 / V 1413, Y 0), 17 of 17 frames bad, first at decode frame 0. Re-measured with the
4:2:2 bypass REVERTED and identical (0 / 1166 / 1413), so it is pre-existing on cc9f2668 and not a bypass
artefact. It is a format the decoder already claims, so it must end in a committed byte-exact gate.
Reported here because a census that found it and stayed silent would be a worse census.

THE COMPARATOR, and its liveness is proven rather than asserted: aomdec's OWN y4m header supplies the
geometry (passed explicitly; a frame-length mismatch is a hard error and it fired twice, catching two bugs
in the author's own first parser), attribution is per plane per DECODE frame from each frame's own plane
lengths with a monotone cursor, and an empty frame set is a hard error. 48 liveness arms (16 cells x Y/U/V)
all PASS: every flip moves the count by exactly +1 in the flipped plane with every other plane and frame
unchanged -- including a byte-exact cell (the only reading that can be a false green), a 10-bit exact cell,
decode frame 42 of a 43-frame cell, 4:2:0 and 4:4:4 controls, and 3 fresh sweep cells. Cells were found by
reading aomdec's header, not by filename, and deduplicated by sha256.

THE UNCOMFORTABLE FACT THE REPORT STATES PLAINLY: the 9 committed 4:2:2 fixtures are referenced only by
byte-pin plus refusal-by-name gates -- **there is NO committed gate anywhere that measures 4:2:2 pixels**,
so all 34 exactness numbers for 4:2:2 are probe-only evidence.
lanes/av1422census (report only): the 4:2:2 census, re-measured with a proven-live comparatorAhmet Kaan Gümüş · 0b3dc07
lanes/av1422census (report only): the 4:2:2 census, re-measured with a proven-live comparator

94 cells measured against the instrumented aomdec, per plane per DECODE frame,
with geometry as an explicit argument taken from aomdec's own y4m header and a
hard error on any length disagreement. 48 per-plane oracle-flip arms (16 cells
x Y/U/V), every one moving the count by exactly +1 in the flipped plane with
every other plane and frame unchanged.

50 distinct 4:2:2 cells: 34 byte-exact, 16 diverging, 0 refusing under the
bypass; all 50 refuse by name on the shipped tree.  4:2:0 controls 22/22 exact.
One 4:4:4 10-bit control diverges (s444_352x242_10b), pre-existing and
bypass-independent.

The corrected sweep (aomenc, the trigger recipe, a properly framed y4m)
diverges on 12 of 18 fresh 4:2:2 cells where the previous sweep read clean; the
old sweep used ffmpeg's libaom wrapper at -cpu-used 6 over a y4m libaom rejects
per frame.

No source change; the 4:2:2 header bypass is reverted and the tree is clean
apart from this report.  No product decision is recommended.

Regression on the clean tree: 181 passed; 0 failed; 2 ignored; 619 filtered out.
av1llvartx (report only): the two lossless var-tx publishes ARE reached by ten committed fixtures -- and the reason no cell can measure them is unobservability, not unreachabilityAhmet Kaan Gümüş · 97ca7f3
av1llvartx (report only): the two lossless var-tx publishes ARE reached by ten committed fixtures -- and the reason no cell can measure them is unobservability, not unreachability

The item I filed said no committed fixture reaches those two arms. MEASURED: ten do -- rect arm on 8
(ll444_c_altref_leaf8_warp 598 hits, 420_lossless_arf_1to4_320x240_5f 29, ll444_minp8_inter 30,
ll444_defaultp_inter_strip 48, ll444_sb64_1to4_lossless 3 + intrabc 1, ll444_intrabc_rect_l2 1 + intrabc
1, lossless_sb128_rect_kf 3, 420_lossless_tallinter_8x16 1) out of a 105-fixture sweep, each decoded on its
own thread so the thread-locals read back the decoding thread. My premise was wrong and is corrected.

WHY REVERTING THEM STILL LEAVES 94/94 EXACT, which is the useful part: they are UNOBSERVABLE on a
fully-lossless frame, not unreached. The arms publish 4 where an unwritten grid cell holds TXFM_CTX_INIT =
64 (decode.rs:29294), and the var-tx context read compares `neighbour_cell < tx_w`
(decode.rs:29151-29152, libaom's txfm_partition_context) while every READING block has tx_w >= 4 -- so 4
and 64 agree -- and on a lossless frame nothing reads a var-tx symbol at all. libaom, quoted: the var-tx
gate is `!xd->lossless[mbd->segment_id]` (decodeframe.c:1226-1245, with xd->lossless computed per frame at
:5194-5199 as qindex == 0 and all four deltas 0), so a lossless block always takes the else branch where
read_tx_size returns TX_4X4 (:1197) and set_txfm_ctxs publishes it over the block's own extent -- which is
exactly what these two arms port.

THE ARMS ARE LOAD-BEARING, on MIXED cells: over 188 generated cells (`--end-usage=q --cq-level=0
--aq-mode=1`; variance AQ is the only SEG_LVL_ALT_Q writer with no clamp at base 0) 93 change output when
the publishes are removed AND 93 also change under a wrong-value (33) substitution, so the value is
genuinely read. But the cross-tabulation is total and disjoint: all 93 revert-sensitive cells are ALREADY
red for an unrelated pre-existing defect (12k-46k wrong bytes of 294,912) and all 15 byte-exact reaching
cells are revert-insensitive. Pinning one therefore gives a gate that is red before the fix it witnesses,
so the disposition is ACCEPTED-UNCOVERED for that stated reason.

AND THE PREREQUISITE IS A NEW DEFECT, filed as its own debt line: a 5-frame stream decodes a SIXTH frame,
including a plain `--cq-level=20 --lossless=0` 5-frame stream, while 4-frame and shorter streams are exact.
Our committed 16-frame fixtures decode 17 frames and MATCH the oracle's 17, so this must be checked
against the oracle's own count before it is called a decoder tail defect -- the three counting shapes this
wave has already lost results to are the first suspects.

Verification: `cargo test -p ec-av1 --lib -- lossless 444 420 var-tx --skip
bitrate_target_lands_within_5_percent_over_48_frames` = 71 passed, 0 failed. All instruments removed:
decode.rs sha256 b9a8fbdd8f8d51458387cdf138df02a138a1f160486dcb4f49f8dbdcdc03ae7f, identical to cc9f2668.
Merge lane-av1422ctattr: the 4:2:2 seed is INTRABC, not DC -- and oracle rung 19 (EC_PIB) closes the blind spot that stalled three lanesAhmet Kaan Gümüş · 1b385ba
Merge lane-av1422ctattr: the 4:2:2 seed is INTRABC, not DC -- and oracle rung 19 (EC_PIB) closes the blind spot that stalled three lanes

ATTRIBUTION. The seed's chroma U(116,160) is the chroma of BLOCK_8X4 leaves at mi(40,58), and those leaves
are INTRABC; av1_predict_intra_block is NEVER called for them, so "which DC variant" was a CATEGORY ERROR.
The path is av1/decoder/decodemv.c:936-939 read_intrabc_info -> `if (is_intrabc_block(mbmi)) return;` ->
decode_token_recon_block's inter arm -> predict_inter_block (decodeframe.c:918, assert at :929) ->
dec_build_inter_predictor (decodeframe.c:688) -> av1_build_inter_predictor, which COPIES from the current
frame at the DV. Printed evidence, not inference: EC_DP mi_row=40 mi_col=58 bsize=2 inter=1 chroma_ref=1
skip_txfm=1 bw=2 bh=1 is_intrabc=1; EC_ISTEP name=intrabc val=1 rng=39264; EC_DV dv_col=0 dv_row=-1024
rng=40116; and NO EC_PIB / EC_PREDOUT8 / EC_PRED line at mi_row 40|41 mi_col 58 while the neighbour group
at mi(40,56) does print. Our parse is BIT-IDENTICAL to the oracle at the seed, so the divergence is purely
RECONSTRUCTION -- which repoints the hunt from intra prediction to the intrabc COPY geometry.

THE INSTRUMENT, and it is the durable part. av1_predict_intra_block has an early `if (use_palette) { ...;
return; }` plus two more early returns, so EC_PREDOUT8/EC_PREDND print on only SOME of the paths that
write a block; a chroma region where no rung fires was un-attributable, and the ladder looked as though no
block were there -- this cost three lanes, and one of them turned that silence into the wrong conclusion
("libaom used dc_top") by reading it off the predicted VALUE. Rung 19 EC_PIB prints the CALL IDENTITY
before any early return (mi_row, mi_col, plane, row_off, col_off, txw, txh, mode, use_palette,
filter_intra, bsize, px, py, hbd), in the same field order as EC_PREDOUT8/EC_PRED so the two lines read as
one, with EC_PIBWIN to isolate a single block; `use_palette=1` with no twin line IS a palette write. Also
added: EC_DP / EC_ISTEP(name=intrabc) / EC_DV and their assertions in check-aom-oracle-rungs.sh, plus
env-gated our-side traces for the same fields so the next lane compares parse-for-parse rather than by
value.

ORACLE BINARY NOT REBUILT, deliberately: the generator script is the source of truth, but
~/.cache/aom-oracle/build/aomdec is a SHARED binary that live lanes are using right now, so the rebuild
waits for a quiet moment rather than swapping it under running consumers. `scripts/check-aom-oracle-rungs.sh`
is green on this commit (rungs 19-21 asserted, base v3.13.3).
lane-av1422ctattr: the 4:2:2 seed is INTRABC, not DC -- a category error corrected, and the rung that closes the blind spotAhmet Kaan Gümüş · 960e10e
lane-av1422ctattr: the 4:2:2 seed is INTRABC, not DC -- a category error corrected, and the rung that closes the blind spot

ATTRIBUTION (the deliverable): the seed's chroma U(116,160) belongs to BLOCK_8X4 leaves at mi(40,58), and
those leaves are INTRABC. av1_predict_intra_block is NEVER called for them, so no DC variant exists and
"which DC variant" was a category error. Path: av1/decoder/decodemv.c:936-939 read_intrabc_info, then
`if (is_intrabc_block(mbmi)) return;` -> decode_token_recon_block's inter arm -> predict_inter_block
(decodeframe.c:918, assert(is_intrabc_block) at :929) -> dec_build_inter_predictor (decodeframe.c:688) ->
av1_build_inter_predictor, which COPIES from the current frame at the DV.

Proof, printed rather than inferred: `EC_DP mi_row=40 mi_col=58 bsize=2 inter=1 chroma_ref=1 skip_txfm=1
bw=2 bh=1 planes=3 is_intrabc=1`, `EC_ISTEP mi_row=40 mi_col=58 name=intrabc val=1 rng=39264`,
`EC_DV mi_row=40 mi_col=58 dv_col=0 dv_row=-1024 rng=40116` -- and NO EC_PIB / EC_PREDOUT8 / EC_PRED line
at mi_row 40|41 mi_col 58 in frame 0, while the neighbouring group at mi(40,56) does print. Our own parse
is BIT-IDENTICAL to the oracle at the seed (same use_intrabc=1 rng=39264, same DV dv_row=-1024 rng=40116,
same rng on the skip symbols), so the divergence is purely RECONSTRUCTION.

RUNG 19, EC_PIB -- the blind spot this wave hit three times, now closed: av1_predict_intra_block has an
early `if (use_palette) { ...; return; }` plus two more early returns, so EC_PREDOUT8/EC_PREDND print only
on SOME of the paths that write a block; a region where no rung fires was un-attributable and the ladder
looked as if no block were there at all. EC_PIB prints the CALL IDENTITY before any early return
(mi_row, mi_col, plane, row_off, col_off, txw, txh, mode, use_palette, filter_intra, bsize, px, py, hbd),
in the same field order as EC_PREDOUT8/EC_PRED so the lines read as one, with `EC_PIBWIN` to isolate one
block. `use_palette=1` with no twin line IS a palette write.

Also added: EC_DP / EC_ISTEP(name=intrabc) / EC_DV rungs and their check-aom-oracle-rungs.sh assertions,
plus env-gated our-side traces in decode.rs for the same fields, so the next lane compares parse-for-parse
instead of by value.
Merge lane-breconcile: land the census's ranked residue (8 items landed, 2 refuted), and name the open 4:4:4 lossless key-frame defectAhmet Kaan Gümüş · 8da2631
Merge lane-breconcile: land the census's ranked residue (8 items landed, 2 refuted), and name the open 4:4:4 lossless key-frame defect

The branch census (lanes/branchcensus2.report.md) ranked what main lacked; this lands the usable part and
REFUTES two items rather than carrying them.

LANDED (each behaviour-free where that is the claim, with the same proof: cargo check 0/0 errors/warnings
plus the 248-gate pixel_exact run green):
- refusal_inventory: each of the 32 PROVEN rows now says WHICH KIND of proof it carries (7 NEGATIVE, 25
  ENUMERATION) plus a label and a third tuple element, both consumer loops updated, and a new non-vacuity
  test.  REFUTED: the census quoted the BRANCH's comment as main's -- main's row already
  names a STRONGER gate (every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table), which
  reads all eight decode_block_rect call sites' literal bw/bh, pins the chroma table exactly and asserts
  (4,8)/(8,4) is UNPRODUCIBLE. The variant would carry no rows. Non-vacuity: 3 mutations, 3 REDs -- flip
  the row's tag; make NegativeGate dead; weaken the GATE while it still passes. Mutating the test's own
  expectation list also stayed GREEN and is reported as such.
- transform.rs + decode.rs:  and the lossless /EC_DQCOEFF twin with plane= and
  lv=, RE-DERIVED rather than cherry-picked because main has since generalised the lossless path to
   (any shape), so the plane is threaded through both.  is NOT
  landed: it is dead on its own branch's tip.
- Two  tags (2 lines), the plane-tagged OUR_MODE per-TU reader trace, and the readcensus
  header correction (that last one despite its motivating gap being closed by RECON_PLANE/recon_plane():
  that stamps the plane at RECONSTRUCTION and this names it at the READER, and the class
   has already produced two wrong claims).
- Two REPORT corrections main lacked: av1tilerows round 9 (the 4:4:4 128-root leaf-size fork is GONE on
  main -- 0 divergence over 36 frames, entropy lockstep across 217,570 reads) and av1444rect round 6
  (the fork's caller is NAMED: decode_intrabc_rect's non-lossless rect arm, ONE gather taken at the LUMA
  footprint serving a 4x8 chroma unit). Both cherry-picked clean; the av1444rect blob is byte-identical
  on both sides.
- The 13-branch test-count census, RE-MEASURED from scratch rather than trusted: fresh git-archive
  extracts give 712 raw/712 unique at 298f75c4, 742/742 at 9623bcab, 802/802 on this tree -- the
  reconciliation (712 + 30 = 742, delta 0, no duplicates) stands, and the report now states that today's
  tree is 802 and which figures were not re-taken.

NOT LANDED, each with its reason in the report: Proof::TablePin (refuted), census_plane (dead),
av1tilerows report rounds 2-7 (they measured an OLD main; round 9 supersedes), the report-only residue of
av1loss444mm / av1refusal / av1444chr, and lane-av1lm444loss (author-declared DO-NOT-MERGE).

OPEN DEFECT NAMED BY THIS WORK, and now owned: lanes/av1loss444mm.report.md r10 -- a 4:4:4 LOSSLESS KEY
FRAME reconstruction-only divergence, 21 U + 28 V samples off by up to +/-63, LUMA EXACT and the entropy
bit-identical. The instruments for it (the plane-tagged lossless dequant twin, TxParams.plane) are in this
merge; the fix is not.
lanes/breconciliation: the census's ranked residue, landed or refutedAhmet Kaan Gümüş · bf814a0
lanes/breconciliation: the census's ranked residue, landed or refuted

One line per census rank with the evidence, behaviour-freeness per source
commit with counts, the final-tree regression, the deliberate non-landings
with reasons, and a branch-containment table for a later prune.

The headline: six of eight census branches were landed, two were refuted or
partly refuted. `Proof::TablePin` is REFUTED -- its one row's gate on main
measures the reach domain the tag's premise calls unestablished, so the census
quoted the BRANCH's comment as main's. `census_plane()` is dropped as dead on
its own branch's tip. Everything else landed, and every one of the eight
branches is now source-complete in this work.
lanes/av1testcount: the 13-branch wave reconciled exactly, re-measuredAhmet Kaan Gümüş · 1684e95
lanes/av1testcount: the 13-branch wave reconciled exactly, re-measured

Lands lane-av1testcount's census (f0ae03c8 + f61ebe79), which main has never
carried. The wave reconciled at 712 -> 742 with delta 0: nothing lost, nothing
renamed, nothing duplicated, and the two names two branches each declared were
a coordination miss between lane-av1dualfilter10 and lane-av1distwtd rather
than a merge loss.

Re-measured because main has moved well past 9623bcab and the census's tip
column is 13 commits of build-time away from a fresh reading. Both anchors came
back exactly -- 712 unique at 298f75c4, 742 unique at 9623bcab, 0 duplicate
registrations at either -- so the arithmetic still stands on immutable commits.
Today's tree is 802, and the report now says so, so no reader mistakes this for
a count of the present.

The 13 per-branch tip counts were NOT re-taken and the report says which
figures are re-verified and which are the lane's own.
ec-av1: the plane-tagged OUR_MODE per-TU mode trace; fix the readcensus headerAhmet Kaan Gümüş · 585f203
ec-av1: the plane-tagged OUR_MODE per-TU mode trace; fix the readcensus header

Re-derives lane-av1444chr's `5a1388f2` (13 lines, env-gated print only,
cherry-picks clean on current main) plus lane-av1chrtx's `6cc9ea6f` header
correction.

OUR_MODE names the plane at the point that OWNS it. `PlaneBuf`'s `OUR_PRED`
rung cannot: reconstruction does not know which plane it is filling, which is
why main had to stamp it separately with RECON_PLANE/recon_plane(). This rung
is the reader-side counterpart, where `plane_idx` is a parameter, and it exists
because a rung whose plane must be guessed from its values has already produced
two wrong claims (class `rung-mislabels-plane`: `read_coeffs_rect` labelling
its unit `plane=0`, then a sweep reading a phantom second luma unit out of
that label). Diagnostic only -- no gate asserts decode behaviour off this line.

The H3 defect the lane chased is still open and unowned; the lane's own
conclusion was that the reach is faithful and the offset arithmetic is
exonerated, so the remaining line's owner was unidentified. That is unchanged.

Header: main named `lane-av1readcensus` / `~/.cache/wt/av1readcensus` for a
census that was cut on `lane-av1chrtx` in `~/.cache/wt/av1chrtx`. The gate
name the header was blamed for is already correct on main
(`a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does`),
so this is the 4-line header only, nothing else.
av1422ctrigger (report only): the encoder setting is FOUND, the reproducer is one command, and the availability hypothesis is REFUTEDAhmet Kaan Gümüş · 604fa6c
av1422ctrigger (report only): the encoder setting is FOUND, the reproducer is one command, and the availability hypothesis is REFUTED

The last 4:2:2 defect now has a recipe. TRIGGER: aomenc (not ffmpeg's libaom wrapper) with --profile=2
--limit=16 --lag-in-frames=25 --auto-alt-ref=1 --enable-global-motion=1 --pass=1 --cq-level=24
--threads=4 --kf-min-dist=0 --kf-max-dist=999999 --width=320 --height=242 --cpu-used=0, over
testsrc2=size=320x242:rate=25 yuv422p, wrapped as y4m with a 'FRAME' line before EVERY frame. Artifact
R422_320x242.obu 20,733 B sha256 909e58db18fd4b7590501e2cecfbc090cde49eb26c9a42e15b1ef1fc265843d8,
diverging at decode frame 0 BYTE 103156 -- the same first-bad byte as the corpus cell Q_odd320x242.

WHY THE PREVIOUS LANE'S 42 FRESH ENCODES MISSED IT: they used ffmpeg + libaom-av1 -crf 30 -cpu-used 6
-lag-in-frames 0, and at -cpu-used 6 the partition search lands on different block structures. Its y4m
was ALSO malformed: libaom's y4m_input_fetch_frame (y4minput.c:1163-1171) requires 'FRAME' before every
frame, and a full header per frame yields 'Loss of framing in Y4M input data' and zero frames encoded.

THE HYPOTHESIS IS REFUTED, and this is the useful negative. Our line is named
(crates/ec-av1/src/decode.rs:21076 PlaneBuf::edges and :21115 edges_rect -- 'let left = (x > self.tile_x0
&& down > y).then(...)', missing libaom's col_off term, its per-plane ss_x/ss_y choice between
chroma_left_available and left_available, and the bw < mi_size_wide[BLOCK_8X8] narrowing clause), but it
CANNOT be the writer: for the seed's BLOCK_8X4 leaf bw = 2, so the narrowing clause is dead,
chroma_left_available = left_available = (mi_col 29 > 0) = 1, n_left_px = 4, and libaom MUST then take dc
(182) -- yet the oracle's pixels are 202. So something ELSE wrote those pixels.

TWO INSTRUMENT GAPS BLOCK THE ANSWER, and they are why the lane stopped instead of guessing:
(1) the oracle's EC_PREDOUT8 rung (reconintra.c:1798, the DC path) prints mi_row/mi_col/plane/row_off/
col_off/txw/txh/mode/sum/row0/col0 but NOT have_left/n_left -- only the DIRECTIONAL EC_PRED rung (:1863)
prints those, so the previous lane's 'libaom used dc_top' was an inference from the value 202 rather than
a printed flag; and (2) EC_TRACE's EC_PART_VAL produced 346 entries with NO root covering mi_row = 20,
mi_col 24..31 -- the seed's own luma -- so the oracle's block structure at the seed is unreadable. The
oracle's EC_PREDOUT8 ladder has no entry at mi_col 29 anywhere in the frame and no plane-1 entry between
mi_col 24 and 32 at mi_row 20, and the palette early return (reconintra.c:1717-1739) is structurally
excluded for a BLOCK_8X4 sub-8 leaf (av1_allow_palette needs both dims >= 8) with all 299 EC_PALSYN_AOM
entries at even mi_col and none at mi_row 20.

Also measured: intra::dc (crates/ec-av1/src/intra.rs:683-726) is arithmetically CORRECT -- it implements
dc / dc_top / dc_left / dc_128 plus libaom's dc_predictor_rect, and the seed's 182 is exactly its
(Some,Some) arm -- so no change is needed there. Wrong region: chroma cols 116-139, rows 160-201 (24 of
160 cols, 42 of 242 rows, ~0.5% per plane), U and V, with luma exact.
ec-av1: the lossless OUR_DQW twin, plane-tagged, with the raw levels beside dqAhmet Kaan Gümüş · bb7bd46
ec-av1: the lossless OUR_DQW twin, plane-tagged, with the raw levels beside dq

Re-derives lane-av1loss444mm r3/r6/r7 (6dfd827e, 7586358f, c8ed05f3) onto
current main. The open defect it instruments is the 4:4:4 lossless KEY FRAME
reconstruction-only divergence (21 U + 28 V samples off by up to +/-63, luma
exact, entropy bit-identical), named in lanes/av1loss444mm.report.md r10 as
item (a) with a three-file search space.

The oracle's `EC_DQCOEFF` rung printed thousands of lines on a lossless
stream while ours printed NOTHING, because `dequant_and_inverse_typed_wh` is
the LOSSY route -- a lossless 4x4 unit goes to `dequant_and_inverse_wht4x4`.
That silence reads as "no coefficients" rather than "wrong function". The
twin prints the same `pos:value` nonzero form under the same `EC_DQCOEFF`
env var, plus:

- `plane=`, carried on a new `TxParams.plane` set by the reader that OWNS the
  unit. The per-unit census plane could not supply it: the callers that route
  a lossless 4x4 unit into the WHT are not all the ones that stamp the census
  plane (measured: 1663 of 1663 chroma units paired by count, 1660 against an
  empty grid). Without `plane=` a 4x4 chroma grid is indistinguishable from a
  luma one and an order-paired ladder collapses -- equal counts, value ratios
  of exactly 1.0, and only 16 of 2053 units matched.
- `lv=`, the RAW level grid the dequant consumed. If `nz` is empty while `lv`
  is not, `dequant_wh_into` is what zeroed it, and the line now says so
  instead of leaving the next lane to infer it (this is what retracted r6's
  "1650 units dequantized to empty").

Behaviour-free: `plane` reaches nothing but the env-gated eprintln, and it is
threaded through `dequant_and_inverse_wht` (which main has since generalised
to any shape, lane-whtshape) rather than only the 4x4 entry, so the raster
path's tiles carry it too.

`census_plane()` from 7586358f is NOT landed: on the branch's own tip it is
defined and never called, dead weight next to the field that replaced it.
Merge lane-av1420tall: site 1's 4:2:0 half is NOT POSSIBLE -- the lpf claim is refuted on its ARITHMETIC, not merely on its unpinned fixtureAhmet Kaan Gümüş · eb9de96
Merge lane-av1420tall: site 1's 4:2:0 half is NOT POSSIBLE -- the lpf claim is refuted on its ARITHMETIC, not merely on its unpinned fixture

The seven-site 4:2:2 lossless inter chroma panic family (3698787d, lane-av1422lpf) claimed its first site
was not 4:2:2-specific. An earlier pass showed the cited cell was unpinned and did not reproduce; this
lane settles the question exhaustively over the CALLER CONTRACT and answers it the other way.

INSTRUMENT WITH TEETH FIRST: an env-gated call at the top of read_inter_chroma_lossless reading ONLY
caller arguments (valid at any code state), computing writes against libaom's edge clip
(writes_units = reg_w >= 4 && reg_h >= 4), max_addr = (org_y + reg_h - 1) * stride + org_x + reg_w - 1,
need = max_addr + 1, alloc = u_len if non-empty else the pre-fix stride * stride, and keyed by CALL SITE
via #[track_caller] + Location::caller() -- without the call-site key, blk = 64x64 stride = 64 is
ambiguous between the side <= 64 site and the 128-root mu-chunk site. The teeth are established, not
assumed: all four 4:2:2 cells fire on their FIRST call and the pre-fix panic follows immediately
(ll422_noibc site=decode.rs:43666 ss=10 blk=32x64 stride=32 need=2048 alloc=1024 -> 'range end index 1028
out of range for slice of length 1024'; W/X/Y blk=4x16 stride=4 need=64 alloc=16). Every firing key is
ss=10 with a 2:1 plane block, all at the ONE side <= 64 lossless arm.

THE ZERO, over every pinned 4:2:0 and 4:4:4 cell at 18643bb5: ll420_a 44 calls / 6 keys, ll420_b 44 / 6,
ll420_c 43 / 7, ll420_d 86 / 4, ll444_a 145 / 10, ll444_b 153 / 11, ll444_c 1000 / 17 -- ZERO overruns,
exit 0 on every one. And the new committed control, the cell built to have the shape the arithmetic
wants, fixtures/420_lossless_tallinter_8x16.obu (52,138 B): 4 calls, 2 distinct keys, ZERO overruns.

So the original claim fails on its ARITHMETIC: at 4:2:0 a 2:1-tall plane block reaching these sites is
not merely absent from the corpus, it is not constructible through this caller contract. The instrument
and the 4:2:2 bypass live only uncommitted in a throwaway pre-fix worktree, as they must.
lane-av1420tall: site 1's 4:2:0 half is NOT POSSIBLE, not merely uncoded -- and the cell that proves it is pinnedAhmet Kaan Gümüş · e2b8d36
lane-av1420tall: site 1's 4:2:0 half is NOT POSSIBLE, not merely uncoded -- and the cell that proves it is pinned

The lpf report claimed site 1 (read_inter_chroma_lossless's composed-grid
extent) is not 4:2:2-specific, from a 4:2:0 panic on an unpinned ll420_a.obu
that the independent refutation pass could not reproduce. Both are settled
here, and neither claim survives as stated.

An env-gated instrument (built in a throwaway worktree at the pre-fix sha
18643bb5, NOT committed) counts, per (call site, ss_x, ss_y, blk_w, blk_h,
stride), whether the walk's last write -- dst[max..max+4] at
max = (org_y + reg_h - 1) * stride + org_x + reg_w - 4 -- exceeds the pre-fix
`mu_units(_, stride * stride)` allocation. #[track_caller] names which of the
nine call sites presented each key, which is what turns a shape census into a
site census.

Its tooth, required before any zero is trusted: all four 4:2:2 cells fire on
their first call and the pre-fix panic follows immediately --
ll422_noibc ss=10 blk=32x64 stride=32 need=2048 alloc=1024, and W/X/Y_intrabc
ss=10 blk=4x16 stride=4 need=64 alloc=16.

Its zero: 1475 calls across ll420_a/b/c/d and ll444_a/b/c, 0 overruns.

The cell that answers the question, pinned here because it was in no corpus:

  crates/ec-av1/fixtures/420_lossless_tallinter_8x16.obu
  sha256 76513799683e9b1b1bcd9c2d16ee7cfbc075a3d5e44a49058ec2b9e05d7c9c4e
  52 138 B, 4:2:0 lossless, 24 frames of 64x64
  aomenc --lossless=1 --kf-max-dist=3 --sb-size=64 --min-partition-size=16
          --max-partition-size=64 --enable-rect-partitions=1 --cpu-used=1
          --passes=1 --end-usage=q --cq-level=0 --lag-in-frames=0

It codes a 2:1-TALL luma inter block (side=32, write 16x32, twelve of them)
and presents the walk a 2:1-tall 4:2:0 chroma plane block:

  TALLKEY site=decode.rs:43666 ss=11 blk=8x16 stride=16 org=0,0 reg=8x16
          keycalls=1 keyover=0 totcalls=4 totover=0 maxaddr=247 alloc=256

blk_h (16) EQUALS stride (16): the walk addresses the last element of the
square and not one past it. The ticket's blk_h > stride predicate is false by
exactly the margin it needs.

Why that is the format and not the corpus: at ss (1,1) the site is handed
chroma_stride = chroma_side = side/2 while blk_h = write_h/2 <= side/2, for
every (write_w, write_h) the caller contract permits; at 4:4:4,
chroma_stride = side >= write_h. Enumerated exhaustively over side in
{8,16,32,64,128} and both axes in 1..=side: 0 overruns at 4:2:0 and 4:4:4 at
every one of the nine call sites, including the 128-root mu-chunk site whose
non-zero org is the only place an OFFSET could overrun (it does not: 4:2:0
maxaddr 4095 against alloc 4096). 4:2:2 is the sole format where stride is
not the enclosing square, because of one boolean:

  let chroma_422 = ss_x(fctx) == 1 && ss_y(fctx) == 0;
  let (chroma_stride, chroma_buf_h) = if chroma_422 {
      (write_chroma_w, write_chroma_h)   // the NARROW axis
  } else {
      (chroma_side, chroma_side)         // the square: 4:2:0 and 4:4:4
  };

so blk_h > stride becomes reachable exactly when write_h > write_w, which is
why every firing key is ss=10 with a 2:1 plane block.

One trap recorded in the report because it nearly faked a positive: the first
instrument compared max_addr + 4 > alloc instead of max_addr + 1 > alloc and
"fired" 1969 times on ll420_a, all of them square 32x32 blocks. An off-by-N in
the instrument reads exactly like an over-broad fix.

Regression: cargo test -p ec-av1 --lib -- 420 444 lossless intra
  --skip bitrate_target_lands_within_5_percent_over_48_frames
  158 passed, 0 failed, 2 ignored, 641 filtered out (227.71s).

No decoder change is committed -- the fixture and the report are the whole
deliverable. The instrument and the EC_AV1_ALLOW_422_PROBE bypass live only
uncommitted in the throwaway pre-fix worktree.
ec-av1: tag the EC_SYMR reads in read_eob and read_coeffs' tx_typeAhmet Kaan Gümüş · 37631b3
ec-av1: tag the EC_SYMR reads in read_eob and read_coeffs' tx_type

`set_symr_cdf` (msac.rs:428) existed and had 24 call sites, but nothing tagged
the two reads the 4:4:4 partition-walk work pairs against the oracle's
per-read `site=`: `read_eob`'s EOB_PT read and `read_coeffs`' tx_type read.
Both printed `cdf=` empty, so a CDF width could not be attributed to a read
FUNCTION -- n=7 reads identically as "width 8 = TX_SET_INTRA_1" and as "the
64-CLASS EOB_PT width", and that ambiguity is exactly what a tag settles.

Two lines, behaviour-free: `SYMR_CDF` is a `Cell<&'static str>` thread-local
reset after each symbol (msac.rs:491) and is read only by the EC_SYMR
eprintln, and the placement matches the 24 existing `y_mode`/`uv_mode` tags.

Report section 16 of the branch is NOT landed with it: it depends on rounds
2-7, which main does not carry, and its headline (a transform-CLASS fork at
read 41976) is retracted by `lanes/av1tilerows.report.md` 17 on merged main.
refusal_inventory: say WHICH kind of proof each PROVEN row carriesAhmet Kaan Gümüş · 28056ec
refusal_inventory: say WHICH kind of proof each PROVEN row carries

The table was a 2-tuple, so a row whose gate drives a hand-built stream into
the guard read exactly like a row whose gate sweeps an alphabet and shows
nothing reaches it. That distinction is what makes a row's strength legible,
and it was inexpressible.

Adds `Proof { NegativeGate, Enumeration }` + `label()`, a third tuple element
on all 32 rows (7 NEGATIVE, 25 ENUMERATION), and
`every_proven_row_names_which_kind_of_proof_it_carries` as the non-vacuity:
every variant is used by a row, the two labels do not collapse, and the
(4,8) chroma-table row's ENUMERATION tag is pinned to three pieces of
evidence inside that gate's OWN BODY -- the exact call-site count, the
(4,8)/(8,4) residual loop, and the unreachability assertion -- so the tag is
backed by the gate and not by its name.

The `Proof::TablePin` variant lane-av1refusalclaim r3 proposed is NOT carried:
its only row is that same (4,8) row, whose gate r3 wrote against was
`every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table`
(decode_rect_split's tables). Main's row names
`every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table`,
which reads all eight decode_block_rect call sites' own literal bw/bh, pins
the chroma table exactly, and asserts the (4,8)/(8,4) residual is
UNPRODUCIBLE. The reach domain r3 called unestablished is therefore measured,
so ENUMERATION is the honest tag and a variant with no row would be dead
weight. The enum's doc comment records when to re-add it.

2026-09-28

docs(av1444rect): round 6 -- the fork's caller is NAMED: decode_intrabc_rect's non-lossless rect arm, one gather taken at the luma footprint serving a 4x8 chroma unitAhmet Kaan Gümüş · 9e73b94
docs(av1444rect): round 6 -- the fork's caller is NAMED: decode_intrabc_rect's non-lossless rect arm, one gather taken at the luma footprint serving a 4x8 chroma unit

Main asked for the caller of the read_coeffs_rect(4,8,skip_ctx=0) shape at
bit 6893. Named with #[track_caller] on read_coeffs_rect and
read_inter_plane_rect, so every call site carries its own file:line and no
per-site edit was needed. The fork is decode.rs:13184 (plane 1) and 13202
(plane 2), inside decode_intrabc_rect at 12955: one
around_mi_rect((mi_r, mi_c), bw, bh) gathered at the LUMA footprint and
reused for a 4x8 chroma unit under a 4x16 luma plane block. At ss (1,1) the
two coincide after subsampling, which is why the 4:2:0 twin is byte-exact;
at ss (0,0) they do not. This is the sub-8 unit walk, the prior Agent142-2's
census established.

Also recorded, explicitly NOT claimed: at that bit the oracle reports mi
(90,108) while our unit sits at px (208,184) / mi (46,52), with every prior
read paired exactly. Either the oracle's xd->mi does not name the same block
our x,y does, or there is a position divergence not yet localised. Left for
the next lane rather than guessed at.

No decoder change this round; the probes are removed and the tree is clean
(grep EC_RCALL and EC_UCNT read 0 at HEAD, git diff empty against the
previous commit apart from this report).

(cherry picked from commit 0beaf6c53e97a9348ddafb31e08a6cdf6cbdeccc)
lanes/av1tilerows: round 9 — the 4:4:4 128-root leaf-size fork is gone on mainAhmet Kaan Gümüş · 129714d
lanes/av1tilerows: round 9 — the 4:4:4 128-root leaf-size fork is gone on main

Re-measured on a clean detached worktree at merged main e719050d (my fix
4e151813 is an ancestor there, reach call ss-aware, so the base is sound).

THE FORK NO LONGER EXISTS. Same recipe and stream as rounds 3-8
(v2_c40.obu, 4:4:4 lossy cq-40, --sb-size=128, 256x256, 36 shown frames):

  my base (rounds 3-8)      1415 ... 62614 ... diverges throughout
  merged main e719050d      0 on all 36 frames

And the authoritative measure:

  oracle reads 217570   merged-main reads 217570
  ENTROPY LOCKSTEP over 217570 reads

Identical read COUNTS and no value/range/symbol/post_rng divergence over
the entire stream. The read-41976 fork, the 32-vs-64 transform-class
disagreement, and every downstream desync are absent on main.

ATTRIBUTION: ONE NEGATIVE RESULT, NO GUESS. The obvious candidate in my
named area is av1h5's mu_chunk_order ("read a 128 root's tokens CHUNK-major,
not block-raster"), absent from my base. Ablated: 4155c7c7 + my fix +
8a91ee14 alone STILL DIVERGES (1415, 1582, 478, 62614, 60028, ...), so that
commit is not sufficient on its own. I could not build the all-three-av1h5
arm — cherry-picking 34b56884/f6fbad26 onto my base conflicts — so I report
the negative and stop rather than attributing the fix to a lane on a guess.

The parked inter-64x64 EC_PART_VAL alignment fix stays parked: main now
answers the question outright, so it is no longer needed.

(cherry picked from commit 571b4090b1d68400a34c65b56598bc47276bb7c4)

2026-09-30

census2: land the branch census (no unlanded decode-behaviour fix exists) and the four mislabelled partition rungs it measuredAhmet Kaan Gümüş · ba086c6
census2: land the branch census (no unlanded decode-behaviour fix exists) and the four mislabelled partition rungs it measured

The census classified all 16 unlanded branches. HEADLINE: no unlanded decode-behaviour fix exists --
every change to decode.rs that alters reconstruction landed on main by another route. 4bfe8d8e,
1a6e4f56, 5519aaf8 and 21759e06 are present verbatim (all four distinctive literals matched), three of
them later generalized per-axis, and two more arrive as CARRIED commits whose own messages say 'never
merged to main' while main carries their content (97b4ee04 for 3d0001bc, c0727d64 for 4bfe8d8e). The
unlanded residue is 1 test-bookkeeping enum, ~30 lines of env-gated diagnostic labelling, one diagnostic
instrument set, and five report files -- two of which name OPEN defects main's copy does not have
(lane-av1444rect's 'Round 6 -- the caller is NAMED', lane-av1leafsize's 'Round 9 -- the fork is GONE'
retraction), and one of which is author-declared DO-NOT-MERGE.

INSTRUMENT LANDED WITH IT (the census's own measurement arm, behaviour-free and env-gated): four
diagnostic rungs printed the RAW superblock / 16-grid index into fields labelled mi_row= / mi_col= --
EC_PART bsize=9 off by a whole BLOCK_MI factor (8), and EC_PART bsize=6, EC_PART_VAL bsize=6 and
TRACE partition_w16 all printing the raw 16-grid. The target form is main's OWN convention already used
at the same sites (the part32_pre rung eight lines above prints r32 * BLOCK_MI; decode.rs:35574 computes
(sr * SUB_MI, sc * SUB_MI) for the same sr/sc twenty lines below). Re-derived by hand because the
branch's original e55ad654 conflicts on context drift -- 19 insertions, 6 deletions, including its
10-line explanatory comment. It unblocks the 4:4:4 inter partition-walk divergence whose 7-entry class
is EOB_PT 32 at read 41976, a location that cannot be read off a rung whose coordinates are in the wrong
label space.

Verified on the merged tree: cargo check -p ec-av1 --all-targets 0 errors 0 warnings; refusal-surface
tests 20 passed 0 failed. The census's own measurement recorded pixel_exact 248 passed 0 failed
(847.60s) on main@52c62c15 + this re-derivation.
refutation pass 2: the 12-bit screen-content LIFT is genuinely supported (307 live cells exact); land the audit, correct the encoder size and the fork3 citations, and record fork3's coverage gapAhmet Kaan Gümüş · 43f8c58
refutation pass 2: the 12-bit screen-content LIFT is genuinely supported (307 live cells exact); land the audit, correct the encoder size and the fork3 citations, and record fork3's coverage gap

No merge refuted, over four NON-exactness merges. The high-risk one came back clean in the strongest
sense available: the 12-bit screen-content refusal LIFT was refutation-attempted and survived -- 3/3
gates green with non-zero feature counters, 3/3 pin sha256s matching, the old refusal string surviving
only in comments with its gate unreferenced, and 307 INDEPENDENT live 12-bit screen-content cells
(4:2:0, 4:4:4, mono, sb64, sb128, tiled 1x2/2x2, lossless, min-partition 4/8/16, cq 5/20/30/40/55, 1-4
frames) all byte-exact against a live aomdec: 0 wrong, 0 refusals, 0 size mismatches. The lifted path is
also gated non-vacuously: truncating read_palette_colors_y to 8 bits fails all three gates BY NAME.

CORRECTIONS (annotated in place, originals preserved):
- av1enchang: Av1Encoder is 2,944 B TODAY, not 18,168 -- 18,168 was correct at 99750756 and d202b8b4
  boxed carried_cdfs the same day (6.2x off if quoted as current). The boxing and the stack gate are
  confirmed: un-boxing DpbSlot::cdfs still gives SIGABRT exit 101 with 'fatal runtime error: stack
  overflow', and the size gate reds at 124736 B = 2944 + 7 x 15232.
- av1oddheightfork3: the cited lines have drifted (writer decode.rs:9749 not 9734; lossless publishes
  :30147/:18187 not :30020/:18185). More importantly the pass went BEYOND the report: 18 publishing
  callers remain and suppressing the publish for ALL of them reds 36 of 94 comparable fixtures plus 3
  hard decode refusals, so the whole-block publish is live code and the narrow suppression is right.
- By-value class: all seven headline sizes reproduce digit for digit (ec-av1 Av1Encoder 2944 / Encoded
  280; ec-opus Encoder 4072 / Decoder 1280; ec-ac3 Ac3Decoder 3160 / Ac3Encoder 2784; ec-vp9 Decoder
  768) and every crate's gate bites under its own mutation; no public signature changed.

COVERAGE GAP recorded in the fork3 report where it belongs (not_done, not evidence): the TX_4X4
publishes added to the two LOSSLESS arms (decode.rs:18187, :30147) are reached by NO committed fixture --
reverting only those two and re-sweeping all 104 fixtures leaves 94/94 exact with zero red. Correct per
libaom, provably harmless, and unmeasured.
Merge lane-av1422llodd (REPORT ONLY): the 242-tall 4:2:2 frame-0 divergence is 100% pre-filter, chroma-only -- and 'odd height' is REFUTEDAhmet Kaan Gümüş · da48b63
Merge lane-av1422llodd (REPORT ONLY): the 242-tall 4:2:2 frame-0 divergence is 100% pre-filter, chroma-only -- and 'odd height' is REFUTED

Zero source change; the branch adds lanes/av1422llodd.report.md and nothing else, and the primary
checkout was clean when it merged.

PREMISE REFUTED BY MEASUREMENT: 42 fresh 4:2:2 encodes across 8 widths (318..328) x 9 heights (236..256),
plus 4:2:0 and 4:4:4 at each height, are ALL 17/17 byte-exact -- INCLUDING 320x242, 321x242, 323x242 and
326x242 -- and the committed 322x242 cell V_tile2x2_odd is exact in the corpus. The wrong samples sit at
luma rows 160..207, not in the 242-height partial superblock row. So the height is a coincidence of the
four failing cells, and the four are aomenc-built with base_q=25 and sequence headers that differ from
the fresh encodes: the real factor is an ENCODER SETTING, still unidentified.

WHAT IS LOCALISED (and it is narrow): our intra-chroma DC folds the LEFT edge in where libaom uses the
ABOVE edge alone. Q_odd320x242 frame 0 U(160,116): ours 182 = (sum_above 808 + sum_left 644 + 4) / 8,
libaom 202 = dc_top = (808 + 2) / 4 -- and the left column (chroma col 115, rows 160..163 =
165,164,163,152) is BYTE-IDENTICAL on both sides, so the delta is the AVAILABILITY DECISION, not the
samples. The owning block is the CHROMA of a 2x2-mi (8x8 luma) block split into two 8x4 luma units with
chroma as two stacked 4x4 units (the 4:2:2 sub-8x8 chroma walk); our own parse names it
('TRACE partition_w8 mi=(40,58)' + 'TRACE sub8 skip mi=(40,58)/(41,58)'). Where the rule lives in libaom:
set_mi_row_col's chroma_left_available / chroma_up_available (av1/common/av1_common_int.h:1367-1379,
whose 'ss_y && bh < mi_size_high[BLOCK_8X8]' clause is DEAD at 4:2:2) consumed by reconintra.c:1744-1766
and :1329-1331 -> aom_dsp/intrapred.c:201-225 (dc_top vs dc). NOT yet confirmed as the line in OUR tree.

STAGES EXONERATED, each by measurement: every post-recon filter is inert (our PREFILT-vs-oracle delta
EQUALS our FINAL-vs-oracle delta exactly on all four cells -- O 48, AB 64, Q 801, S 49 -- and PREFILT ==
POSTDEBLOCK == POSTCDEF on our side); entropy parsing is sound (luma byte-exact on all four); the palette
colour-index maps are identical per side (167 maps, all 16544 color_idx values equal) and the
palette-prediction handoff has 466 PALSET with 0 stale; and the classes fixed earlier today are
different paths (W/X/Y all measure 17/17 exact on this tip).

NOT GATEABLE, stated plainly: 4:2:2 is refused at the sequence header
(crates/ec-av1/src/stream.rs:1803), so no committed fixture or test can reach this code and every
measurement required that guard patched out -- no source-scan substitute is offered. And no REPRODUCER
RECIPE exists yet: 42 fresh encodes did not reproduce it, so a committed fixture would pin a symptom
without a recipe.

Regression, baseline only (no source change): 181 passed, 0 failed, 2 ignored. Worth recording: a FIRST
run of the identical command reported 175 passed / 6 failed, and all six were external-aomdec tests
staging streams in std::env::temp_dir() hitting 'Os { code: 122, kind: QuotaExceeded }' from a full /tmp
tmpfs -- not a decode regression. Clearing /tmp/ec-av1-* returned the suite to 181/0.
lane-av1422llodd report: the 242-tall 4:2:2 frame-0 divergence is 100% pre-filter, chroma-only, and "odd height" is REFUTEDAhmet Kaan Gümüş · c74cc0b
lane-av1422llodd report: the 242-tall 4:2:2 frame-0 divergence is 100% pre-filter, chroma-only, and "odd height" is REFUTED

No source change. The census cluster (AB_inter_warp_odd, O_odd322x242,
Q_odd320x242, S_odd326x242_10b) fails at decode frame 0 on chroma only, with
luma byte-exact; our PREFILT equals our POSTDEBLOCK equals our POSTCDEF and the
PREFILT-vs-oracle delta equals the FINAL-vs-oracle delta exactly, so deblock,
CDEF and LR carry none of it.

The brief's premise is refuted by measurement: 42 fresh 4:2:2 encodes across
8 widths (318..328) x 9 heights (236..256) x 3 chroma formats are all
byte-exact, including 320x242 / 321x242 / 323x242 / 326x242, and the committed
322x242 cell V_tile2x2_odd is exact in the corpus too. Height is not the factor;
the failing cells are aomenc-built with base_q=25 and the setting that
reproduces them is still unknown.

Seed localised: the chroma of a 2x2-mi luma block split into two 8x4 units,
where ours folds the left edge into a DC (182 = above+left) and libaom uses
dc_top (202 = above only). The 167-block palette colour-index ladder is
identical on both sides (16544 values), which rules the palette path out.

Gate-ability: 4:2:2 is refused at the sequence header, so nothing here is
gate-able from a committed test, and no source-scan substitute is offered.
refutation pass: land the independent audit of the six exactness merges, and annotate the four reports whose figures it correctedAhmet Kaan Gümüş · 00ec0ee
refutation pass: land the independent audit of the six exactness merges, and annotate the four reports whose figures it corrected

No fix is refuted. 5 of 6 exactness claims CONFIRMED with every headline integer reproduced on the
lane's own before/after pair, measured with a comparator written from scratch (geometry an explicit
argument, both sides genuinely read, and per-cell liveness proven by flipping one oracle byte in each
of Y/U/V). The defects are all in report tables, and they are corrected in place rather than rewritten:

- av1444altref: the decode-order TOTAL is 397 (0 Y / 185 U / 212 V), not 317 -- 317 is the DISPLAY-order
  figure (it reproduces exactly on that basis), and the gap is the hidden picture. Per-picture f13 is
  15, not 80. The merge is still the commit that moves ll444_c: its first parent a20aba01 and the base
  3698787d both give 8/18 decode-order exact (0/185/212), 9367642a and all descendants give 18/18 (0/0/0).
- av1422llpred: X_intrabc_tiled is not 'no change' -- its U plane moves 421744 -> 421746 (+2) on the
  report's own display-order basis; W is exactly delta 0.
- av1422lpf: the 'Golomb tail' refusal on W/X does not occur at 3698787d (17/17 pictures, no message),
  and 'they do not decode to completion' is false -- rung 12 zips 17 frames per side. The
  4:2:0-specificity evidence does not reproduce either: the '1028 out of range for slice of length 1024'
  panic appears only on ll422_noibc, a 4:2:2 cell, and the cell the report used is pinned by no sha.
- av1422llinter2: '24 of 31 exact before' vs its own table's 23, and decode.rs:24618 is statically
  UNREACHABLE (24544 subsumes it) rather than 'already shape-generic' -- the conclusion 'no fourth
  reachable site' holds.

The six fixes themselves are untouched: the merge that closes the panic family panics at
decode.rs:37565:24 on its base exactly as reported and decodes 17/17 with exit 0 after; the altref gate's
comparator runs aomdec as a subprocess and reads its file off disk; and llinter2's three fixed arms were
re-measured with counters at 131/356/202 (W), 148/376/178 (X), 3/166/565 (Y).
Merge lane-av1444chromadc (REPORT ONLY): debt line 21 is ALREADY FIXED on main (by e05a6ceb, merged 2c0fd2b9), and the ticket's premise was wrongAhmet Kaan Gümüş · 5d5fc1e
Merge lane-av1444chromadc (REPORT ONLY): debt line 21 is ALREADY FIXED on main (by e05a6ceb, merged 2c0fd2b9), and the ticket's premise was wrong

r512.obu is BYTE-EXACT on main: 79,969 wrong samples (3.4%) -> 0, all three planes of all three frames,
and the seed sample (352,448) reads 202 -- the oracle's value -- not the sibling's 241. Fixture identity
checked, not assumed: crates/ec-av1/fixtures/r512.obu sha256 f587f0f980f149abce905e3ef66f2f1634f050c8
5430626eafb9c30a1e25bc21 equals the debt line's witness bytes.

PREMISE CORRECTED, and this is the useful part: the defect is NOT a DC predictor reading a sibling's
edges (av1_build_dc_predictor_sb). A skipped intra-BC block never reaches the DC predictors --
av1_predict_intra_block returns early through the use_palette branch (av1/common/reconintra.c:1717-1738)
and have_top/have_left sits on the far side of that return, so there IS no edge family here and the
ticket's four-way edge sweep was measuring nothing. It is a MAP OFFSET: libaom indexes the whole plane
block's palette map with the unit's own x = col_off << 2 / y = row_off << 2 (reconintra.c:1711-1712,
1727/1734), with col_off/row_off arriving per TRANSFORM UNIT from av1_predict_intra_block_facade
(:1966-1969, called at decoder/decodeframe.c:232); the pre-fix code called set_palette_pred with the
whole chroma_side x chroma_height buffer for every unit at offset 0. The closing commit windows the
override per unit (decode.rs:22274-22284, `at = (cu_row * chroma_tx_h + row) * chroma_side + cu_col *
chroma_tx`), and the CODED arm was verified by reading to have been per-unit already (22546-22559).

CLASS SWEEP, mutation M1 (restores the pre-fix whole-buffer shape) over four unit positions x
{skipped, coded}: the RULE is measured, not assumed -- a unit is wrong iff the override buffer VARIES
across the plane block, and then exactly at (1,0) and (1,1); (0,0) and (0,1) are never wrong because
they read offset 0, their own window. That is why the dirty map starts at x=352=320+32 and never at
x=320. Two cells where the buffer is CONSTANT (54, 166) are exact under M1 -- the defect is present in
the code and invisible in the pixels, which is exactly why a position sweep beats a single seed.
lane-av1444chromadc report: debt line 21 is ALREADY FIXED on main, and here is the proofAhmet Kaan Gümüş · 0e5808b
lane-av1444chromadc report: debt line 21 is ALREADY FIXED on main, and here is the proof

Re-measured the ticket's own sample on tip 81a21c7d: (352,448) is 202, the
oracle's value, not 241. All three planes of all three frames of
fixtures/r512.obu are byte-exact -- 79969 wrong samples (3.4%) is now 0.

The defect was closed by e05a6ceb, merged as 2c0fd2b9, both already on main.
No decode-path change is committed by this lane; the deliverable is the
red-before/green-after proof of that commit plus this line retired.

The ticket's premise was wrong and the report says so with the expression:
it is NOT a DC predictor reading a sibling's edges. A skipped intra-BC block
never reaches av1_build_dc_predictor_sb -- the prediction is the colour-map
override, and the offending expression is map[(r + y) * wpx + c + x] at
reconintra.c:1727 and :1734, which libaom evaluates with the UNIT's own
x/y into the whole plane block's wpx-strided map (decodeframe.c:232 calls
av1_predict_intra_block_facade once per transform unit). Ours handed every
unit the whole buffer, so (1,0), (0,1) and (1,1) all read offset 0.

Class sweep, all four unit positions x {skipped, coded}, M1-mutation vs the
oracle: a unit is wrong iff the override buffer VARIES across the plane block,
and then exactly at (1,0) and (1,1); (0,0) and (0,1) are never wrong. Three
of the seven multi-unit walks have a constant buffer and hide the defect in
their pixels -- including f1 mi=(32,32) at (128,128), which is why a
sample-level investigation could never have attributed f1 to it. The coded
arm was already per-unit (palette_window, decode.rs:22549).

f1 mi=(32,32) PROVEN the same defect: the only multi-unit override walk in
that dirty column, and f1 goes 22571 U + 41782 V wrong -> 0 with this fix
alone. The UV-palette source shares the fixed line but has no multi-unit
witness -- stated as the one argued-not-measured cell, not as coverage.

Gate: a_444_skipped_64x64_square_block_windows_its_chroma_override_per_unit
on fixtures/r512.obu, 6948 B, sha256 f587f0f980f149abce905e3ef66f2f1634f05
0c85430626eafb9c30a1e25bc21. Mutations, each reverted: M1 pre-fix shape ->
RED at 229728 (x=352,y=448); M2 stride chroma_side -> chroma_tx -> RED at
229824 (x=448,y=448), a DIFFERENT sample, so the gate is not a single-point
probe; M3 cu_row/cu_col transposed -> RED at 229728; restore -> GREEN.

Regression: 181 passed / 0 failed / 2 ignored / 618 filtered out.
Merge lane-av1422llinter2: a lossless chroma plane block is PER-AXIS -- 4:2:2's 4x8 block was coded as one TX_4X8 unit at ctx_offset 7, and the wrong CDF row desynchronised the whole frameAhmet Kaan Gümüş · 75564f7
Merge lane-av1422llinter2: a lossless chroma plane block is PER-AXIS -- 4:2:2's 4x8 block was coded as one TX_4X8 unit at ctx_offset 7, and the wrong CDF row desynchronised the whole frame

Three of the four remaining lossless 4:2:2 cells go byte-exact: W_intrabc 1/17 -> 17/17 decode frames,
X_intrabc_tiled 1/17 -> 17/17, Y_intrabc_10b 1/4 -> 17/17 (all three planes, all frames, cmp-verified
against the oracle), plus the probe cell ll422_noibc 2/16 -> 16/16.

NAMED EXPRESSION: av1_get_tx_size returns TX_4X4 for EVERY plane of a lossless block
(av1/decoder/decodeframe.c:1196-1197 returns TX_4X4 before TX_MODE_SELECT is ever read), so the chroma
plane block is a raster of TX_4X4 units whenever it is bigger than one -- and it is PER-AXIS:
av1_ss_size_lookup[BLOCK_8X8][ss_x][ss_y] (av1/common/blockd.h:1186) gives BLOCK_8X8 at 4:4:4 (2x2
units), BLOCK_4X8 at 4:2:2 (1x2) and BLOCK_4X4 at 4:2:0 (one unit). Our three 8x8-leaf gates read
`chroma_w == 8 && lossless(fctx)`, and chroma_w == 8 is SIDE >> ss_x == 8, i.e. ss_x == 0 -- 4:4:4
ONLY. 4:2:2 (chroma_w 4, chroma_h 8) fell through to a ONE-unit TX_4X8 read at ctx_offset 7, where
libaom's get_txb_ctx chroma branch (av1/common/txb_common.h:429-435, plane_bsize > txsize_to_bsize[tx]
=> offset 10) reads TWO units. The first unit's txb_skip (av1/decoder/decodetxb.c:158) then came out of
txb_skip_cdf[..][1] where libaom uses [..][11]; at an identical coder state those rows answer 1 and 0,
1 = all_zero, so we skipped a plane block libaom descends into -- read counts diverge from that symbol
and the coder is desynchronised for the REST of the frame. That is why the miss was ~90% of the first
inter frame while frame 0 (Key + intra + intrabc, never reaching decode_inter_block8's chroma arm) was
byte-exact, and why all of it sat pre-filter with every post-recon filter inert.

EVIDENCE (paired ladders, not inference): the oracle's EC_DBGCTX on the forked unit reads
`mi=2,0 plane=1 tx=0 above0=7 left0=0 base=1 off=10 ctx=11` where ours read
`EC_COEFF_STEP tag=all_zero plane=1 ctx=1 entry=33288` -- ctx 11 vs 1 from the same entry range; 55113
reads of EC_SYMR lockstep before the fork at decodetxb.c:158.

Fix: leaf8_inter_chroma_lossless takes the per-axis (blk_w, blk_h) and the composed grid's stride
instead of hardcoding (8,8)/8; all three gates became `lossless(fctx) && (chroma_w > 4 || chroma_h > 4)
&& !mono(fctx)` (the same predicate read_inter_chroma_lossless already uses for the offset-10 rows); the
intra-in-inter arm's (chroma_w, chroma_w) became (chroma_w, chroma_h) and Grid::Zero(64) became
chroma_w * chroma_h. At 4:4:4 every argument passes through verbatim and 4:2:0's 4x4 plane block keeps
its single-unit read, so those formats are unchanged by construction.

CLASS SWEEP: every lossless chroma gate in decode.rs enumerated -- the intra-frame 8x8 leaf, the >=8x16
inter arms and the sub-8 rect inter arm were already shape-generic; these three 8x8-leaf sites were the
only ones keyed to a chroma format's shape, all three are fixed, and no fourth exists.
Non-vacuity of the new arm via gate counters (bypass on, W_intrabc): chroma422_rect 88 -> 0 (the
one-unit 4:2:2 read is gone), chroma422_sub8 169 -> 391 (222 unit reads moved into the 4x4 walk),
chroma422_square unchanged at 3312.

Y_intrabc_10b also settles the localising lane's flagged discrepancy: the pre-fix build emitted only 4 of
the oracle's 17 decode frames and stopped SILENTLY -- the desync, not a missing refusal string.
NOT GATEABLE from a committed test: 4:2:2 is refused at the sequence header, so this is
measurement-plus-isolation evidence, and the report says so plainly.
lane-av1422llinter2 report: the lossless 4:2:2 inter divergence is fixed, and it is not gate-ableAhmet Kaan Gümüş · fe8c25f
lane-av1422llinter2 report: the lossless 4:2:2 inter divergence is fixed, and it is not gate-able

W_intrabc, X_intrabc_tiled and Y_intrabc_10b go from 1/17, 1/17 and 1/4
exact decode frames to 17/17, 17/17 and 17/17 on all three planes;
ll422_noibc goes 2/16 -> 16/16; the 4:2:2 corpus goes 24/31 -> 27/31 exact
cells, the four remaining being the separate odd-HEIGHT cluster. Seven
lossless 4:2:0 and 4:4:4 controls do not move a byte.

Names the expression (decodeframe.c:1197 + txb_common.h:429-435 against
three 8x8-leaf gates keyed to chroma_w == 8), the measurement that localised
it (a 55113-read EC_SYMR pair and the oracle's own EC_DBGCTX printing
off=10 against our ctx=1 at an identical coder state), the class sweep, and
why no committed gate can witness any of it.
lane-av1422llinter2: a lossless chroma plane block is per-axis, so the 8x8 leaf's TX_4X4 walk is gated on its SHAPE, not on 4:4:4Ahmet Kaan Gümüş · 3685753
lane-av1422llinter2: a lossless chroma plane block is per-axis, so the 8x8 leaf's TX_4X4 walk is gated on its SHAPE, not on 4:4:4

libaom's read_tx_size (av1/decoder/decodeframe.c:1197) returns TX_4X4 for
EVERY plane of a lossless block, and get_txb_ctx (av1/common/txb_common.h,
the chroma branch) reads txb_skip_ctx = combine_entropy_contexts(a,l) +
ctx_offset with ctx_offset 10 whenever the plane block is bigger than the
transform. The plane block is per-axis --
av1_ss_size_lookup[BLOCK_8X8][ss_x][ss_y] is 8x8 at 4:4:4, 4x8 at 4:2:2,
4x4 at 4:2:0 -- so a lossless 8x8 inter leaf codes a 2x2 raster of TX_4X4
units at 4:4:4, a 1x2 raster at offset 10 at 4:2:2, and a SINGLE unit at
offset 7 only at 4:2:0.

All three 8x8-leaf lossless arms (single-ref inter, compound inter,
intra-in-inter) gated that walk on `chroma_w == 8`, i.e. on ss_x == 0, so
4:2:2 fell through to the one-unit TX_4X8 read at offset 7. The first
4:2:2 chroma unit's txb_skip symbol then came out of the wrong CDF row
against an identical coder state, which desynchronises the rest of the
frame. The intra-in-inter arm additionally passed (chroma_w, chroma_w)
where the plane block is (chroma_w, chroma_h).

Gated on `chroma_w > 4 || chroma_h > 4` -- the same predicate
read_inter_chroma_lossless already uses to pick the offset-10 rows -- and
threaded the per-axis plane block and the composed grid's row pitch
through leaf8_inter_chroma_lossless and the intra call.
Merge lane-av1422llinter (REPORT ONLY): the lossless 4:2:2 inter divergence is localised, isolated to 4:2:2, and its whole magnitude is pre-filterAhmet Kaan Gümüş · b510942
Merge lane-av1422llinter (REPORT ONLY): the lossless 4:2:2 inter divergence is localised, isolated to 4:2:2, and its whole magnitude is pre-filter

Zero source change. Main verified the report-only claim: the branch's commit touches
lanes/av1422llinter.report.md and nothing else, and the primary checkout was left clean.

GEOMETRY CORRECTED: W_intrabc and X_intrabc_tiled are 320x240 4:2:2 (153,600 B/frame), NOT 300x256 --
the byte totals coincide, which is how a wrong guess stays plausible. Y_intrabc_10b is 300x256 10-bit.

DECODE-vs-DISPLAY ORDER, which the brief asked for and which changes the reading: display frame 1 is
DECODE frame 4. In decode order, decode frame 0 (shown; type=Key, intra, intrabc) is BYTE-EXACT, and
decode frame 1 -- HIDDEN (show=false), the FIRST inter frame -- is 138,708 of 153,600 bytes (90%) wrong,
with frames 2/3/4 at 127,180 / 83,617 / 123,247. So the divergence TRACKS THE HIDDEN FRAMES, exactly the
mis-localisation the brief warned about; the 16-frame YUV is display order and EC_AV1_FINAL_DUMP is
decode order (17 files each side, with a full display->decode map in the report).
WHAT FRAME 0 EXONERATES: frame 0 is pure intra + intrabc -- no reference-slot read, no MV, no interp
filter, no OBMC, no warp. Its exactness therefore exonerates the whole intra+intrabc path, and frame 1 is
where the first reference read, the first motion vector, the first interpolation, the first OBMC and the
first warp all happen.

STAGE ATTRIBUTION, by identity not assumption: every post-reconstruction filter is INERT on these cells
-- every frame header carries deltalf=false, lf_level=[0,0,0,0], cdef_bits=0, lr=[None,None,None],
superres=false -- and measured: our PREFILT == POSTDEBLOCK == POSTCDEF on f0..f3, the oracle's FINAL ==
PREFILT, and PREFILTER-vs-FINAL on decode frame 1 differs by exactly the same 138,708 bytes as FINAL-vs-
oracle, so 100% of the divergence is present BEFORE any filter.
INSTRUMENT TRAP FOUND: the oracle's POSTDEBLOCK.f1 and POSTCDEF.f1 are byte-identical to PREFILT.f2 --
those rungs are FRAME-OFFSET BY ONE, so the apparent 29,775-byte 'deblock delta' is a scheduling artefact.

TWO DISCREPANCIES FLAGGED, not asserted: Y_intrabc_10b does NOT refuse at frame 0 -- it emits 4 of the
oracle's 17 decode frames and stops SILENTLY, and the 'Golomb tail longer than this decoder reads' string
did not reproduce in three invocations of a freshly built bypassed binary (earlier the dc_sign lane saw
it on its build). And a census of 27 corpus cells puts 22 exact, with the 242-tall odd-height cells
failing at decode frame 0 in the intra key frame -- recorded as a SEPARATE defect.
lane-av1422llinter: the lossless 4:2:2 inter divergence is localised and isolated to 4:2:2Ahmet Kaan Gümüş · 677fb74
lane-av1422llinter: the lossless 4:2:2 inter divergence is localised and isolated to 4:2:2

Not fixed, not gated. The 4:2:2 sequence-header refusal means no committed
test can reach the inter coefficient path, so the evidence is measurement
plus a single-variable control, and this lane does not dress that up as a gate.

Localised: the first bad frame is DECODE frame 1 (hidden), not display
frame 1; every post-recon filter is proven inert; the divergence is entirely
pre-filter. The first divergent unit is the 2nd inter block of decode frame 1
(mapping to luma (0,16)), where the decoded values still agree but the msac
rng does not -- the offending read is in block 1's tx-size / 4:2:2 chroma
coefficient region.

Isolated by one source, one encoder, one setting, three chroma formats:
4:2:0 lossless 25/25 byte-exact, 4:4:4 lossless 25/25 byte-exact, 4:2:2
lossless bad at decode frame 1.

Census of 27 corpus cells: 22 exact. The odd-height cells (242 tall) fail at
decode frame 0 in the intra key frame and are a SEPARATE defect.
Merge lane-av1422llpred2: a chroma plane's reach is answered against the PLANE-SCALED block -- ll422_allintra now BYTE-EXACTAhmet Kaan Gümüş · ec5451f
Merge lane-av1422llpred2: a chroma plane's reach is answered against the PLANE-SCALED block -- ll422_allintra now BYTE-EXACT

Root cause: libaom answers a CHROMA plane's has_top_right/has_bottom_left against
scale_chroma_bsize(mbmi->bsize, ss_x, ss_y) (reconintra.c:1649 called from :1823), not the luma block's
shape -- so at ss (1,0) a BLOCK_4X4 leaf is answered as BLOCK_8X4. That widens blk_col_in_sb to 0 where
the one-mi-wide luma leaf reads column 1, taking libaom's 'leftmost column of superblock' arm
(reconintra.c:429-435), which the per-block has_bl_4x4 table denies to us. Ours took the table's FALSE,
never copied the below-left column, and the directional predictor's base term came off a replicated tail
-- which is exactly why row0/col0 and both plane edges stayed byte-identical while the interior moved.
Fix: Reach::of_tu_chroma with mi_bw/mi_bh from chroma_mi_shape(leaf_shape, ss_x, ss_y), a transcription
of scale_chroma_bsize; only the 4x4/4x8/8x4/4x16/16x4 family is remapped, so ss (0,0) and any block of
8 or more pass through unchanged.

Main verified on the branch with a bypassed release build vs aomdec --rawvideo: ll422_allintra is
BYTE-EXACT (was Y 0 / U 2984 / V 3067), prediction-sum disagreements 453 of 9600 -> 0, and the ll420 /
ll444 controls stay byte-exact. W_intrabc 917974/474453/487693 and X_intrabc_tiled 864325/421720/414871
-- the 16-frame lossless INTER cells barely move; they are a different mechanism. Oracle-flip control +1.
Placement was ruled out before the reach was blamed (mi_col 49 is the odd-column chroma-reference leaf
and setup_pred_plane snaps the origin to the even column; placement verified identical on both sides).
NOT GATEABLE: 4:2:2 is refused at the header, so no committed test reaches the path -- measurement plus
flip control is the evidence, and the change is not described as gated. Regression: 180 passed, 0 failed,
2 ignored (420/422/444/lossless/warp/intra).
lane-av1422llpred2: a chroma plane's reach is answered against the PLANE-SCALED block -- ll422_allintra is byte-exactAhmet Kaan Gümüş · 8530c01
lane-av1422llpred2: a chroma plane's reach is answered against the PLANE-SCALED block -- ll422_allintra is byte-exact

ROOT CAUSE (named expression): libaom computes `bsize = scale_chroma_bsize(mbmi->bsize, ss_x, ss_y)`
(reconintra.c:1649, called from av1_predict_intra_block at :1823), so a CHROMA plane's
has_top_right/has_bottom_left are answered against the PLANE-SCALED block shape, not the luma block's.
At ss (1,0) a BLOCK_4X4 luma leaf is answered as BLOCK_8X4 = 2 mi wide, 1 mi tall.

MECHANISM: that widening puts `blk_col_in_sb = (mi_col & (sb_mi_size - 1)) >> bw_in_mi_log2` at 0
where the one-mi-wide luma BLOCK_4X4 reads column 1 (reconintra.c:421), so libaom takes the
"leftmost column of superblock" arm (reconintra.c:429-435) -- `8 + 0 + 1 < 16 >> 0` is TRUE -- which the
per-block has_bl_4x4 table denies. Ours was `Reach::of(4, px, py, ...)` -> `Reach::bottom_left` ->
has_bl_4x4 at (row 8, col 1, per_side 16), index 257 -> HAS_BOTTOM_LEFT[3][32] = 84 = 0b0101_0100,
bit 1 CLEAR -> below_left = FALSE, so the below-left column was never copied and the directional
predictor's base term came off a replicated tail.

FIX: `Reach::of_tu_chroma(..)` with mi_bw/mi_bh from `chroma_mi_shape(leaf_shape, ss_x, ss_y)`
(encode.rs), the Rust transcription of scale_chroma_bsize -- only the BLOCK_4X4/4X8/8X4/4X16/16X4
family is remapped, every other size passes through, so at ss (0,0) and for any block of 8 or more this
is the block's own (bw/4, bh/4). For the failing unit: bw_log2 = 1, blk_col = (49 & 15) >> 1 = 0,
from_block = 8, sb_height = 16 - 8 = 8, `0 + 4 < 8 << 2 = 32` -> below_left TRUE.

WHY THE SIGNATURE WAS INTERIOR-ONLY: build_directional_and_filter_intra_predictors
(reconintra.c:1150-1158) copies n_left_px into left_col[0..3] and, only `if (n_bottomleft_px > 0)`, the
next n_bottomleft_px into left_col[4..7]; with the reach denied left_col[4..7] is never copied.
av1_dr_prediction_z3_c reads left_col[base]/[base+1] with base = (23*(c+1)+r) >> 6
(dr_intra_derivative[70] = 23). At p_angle 203 row 0 is above-driven and col 0 reads only left_col[0..3],
so row0/col0 stay byte-identical and only the interior base term moves -- coefficients untouched, hence
a bit-identical stream.

PLACEMENT WAS RULED OUT FIRST, not assumed: the oracle's rung reports mi_col=49 while the unit lands at
chroma x 96 -- both are right (49 is the ODD-column chroma-reference leaf, `is_chroma_reference`,
av1_common_int.h:1454, and setup_pred_plane snaps the plane origin back to the even column,
reconinter.h:392-393). Verified placement identical (both U planes agree byte-for-byte at chroma
x 96..99 on the failing rows; 2400 chroma units per plane = a perfect 160x240 tiling on both sides)
BEFORE blaming the reach.

MEASURED BY MAIN on this branch, bypassed release build vs `aomdec --rawvideo`, `cmp`:
- ll422_allintra: BYTE-EXACT (was Y 0 / U 2984 / V 3067); prediction-sum disagreements 453 of 9600 -> 0.
- controls ll420_allintra and ll444_allintra: still BYTE-EXACT.
- W_intrabc (16 frames): Y 917974 / U 474453 / V 487693 (U -53); X_intrabc_tiled: 864325/421720/414871
  (unchanged within a few samples) -- the 16-frame lossless INTER cells are a different mechanism.
Oracle-flip control: one oracle byte rotated moves the count by exactly +1.

NOT GATEABLE, stated plainly: 4:2:2 is refused at the sequence header, so no committed test build can
reach the fixed path; the evidence is the measurement table plus the flip control, and this change is
NOT described as gated. Regression: 420/422/444/lossless/warp/intra -- see the merge message.
lane-stackbox: box the by-value fields in ec-opus, ec-ac3 and ec-vp9, and gate each crate on a measured boundAhmet Kaan Gümüş · 06c89bf
lane-stackbox: box the by-value fields in ec-opus, ec-ac3 and ec-vp9, and gate each crate on a measured bound

Same class as ec-av1's stack sweep (d202b8b4): a large struct returned BY VALUE from a public
constructor is a stack cost the CALLER pays. The inventory from that lane named these; this lane re-measured
each one, boxed the dominant fields, proved no output changed, and added a per-crate gate.

  ec-opus::Encoder    87,024 -> 4,072  (21.4x)   silk_nb/mb/wb, silk_stereo_nb/mb/wb, silk_buf
  ec-opus::Decoder     7,576 -> 1,280  (5.9x)    silk (it was already at 92.5% of budget)
  ec-ac3::Ac3Decoder  20,024 -> 3,160  (6.3x)    Core::exps/bap/coeffs/delay
  ec-vp9::Decoder     10,944 ->   768  (14.3x)   frame_ctxs: Box<[FrameContext; 4]>, ctx: Box<FrameContext>

API COMPATIBILITY: no public field type changed in any of the three crates -- ec-opus::Encoder/Decoder
and ec-vp9::Decoder have private fields, ec-ac3::decode::Core is pub(crate) and Core itself is
crate-private, and every public method signature (Encoder::new, Decoder::new, Ac3Decoder::new,
Ac3Decoder::with_options, vp9::Decoder::new) is untouched. The only observable change is a few extra
heap allocations AT CONSTRUCTION, not on the per-frame path.

NO OUTPUT CHANGE, per crate, before vs after: ec-opus lib 36/0 -> 42/0 (the +6 are the new gates) and
conformance 28/0/16 -> 28/0/16 unchanged (its closed-loop range-state-exact gate against the
RFC-vector-verified decoder); ec-ac3 lib 36/0 -> 43/0 and both matrices 8/0 and 6/0 unchanged; ec-vp9
lib 10/0 -> 16/0 and ALL eight bit-exactness integration families unchanged (keyframe 3, inter_pixels 3,
hbd 1, subsampling 3, odd_dimensions 2, scaledref 3, intraonly 1). Main re-ran the three crates' lib
suites on the branch: 42/0, 16/0, 43/0.

DELIBERATELY LEFT INLINE: ec-opus::Encoder::analysis (2,168) + celt (1,592) -- together already under
budget, so a Box per field buys no bound and costs a per-frame indirection on a hot path. ec-vp9::Picture's
public fields are 96 B of Vec handles, not a stack cost. A measurement, not a shrug.

Gate modules: crates/{ec-opus,ec-ac3,ec-vp9}/src/stack_budget.rs, same shape as ec-av1's (inventory
printer, bound asserted by name, a real small-thread capability arm, non-vacuity control).

PRE-EXISTING REDS CARRIED, not caused here: ec-ac3
encode_matrix::real_fixtures_round_trip_through_our_decoder_and_the_oracle and ec-vp9
keyframe_exact::lossless_64_matches_ffmpeg both fail NotFound on a missing fixture (the same
fixture-root shape the fixture-library verifier complains about); and ec-vp9 generates 5 warnings
(unused read_partition, TM_PRED, partition_probs, x_mis, y_mis) which are present on main too.
lane-stackbox: box the by-value fields in ec-opus, ec-ac3 and ec-vp9, and gate each crate on a measured boundAhmet Kaan Gümüş · 958901b
lane-stackbox: box the by-value fields in ec-opus, ec-ac3 and ec-vp9, and gate each crate on a measured bound

Same class as ec-av1's stack sweep (d202b8b4): a large struct returned BY VALUE from a public
constructor is a stack cost the CALLER pays. The inventory from that lane named these; this lane re-measured
each one, boxed the dominant fields, proved no output changed, and added a per-crate gate.

  ec-opus::Encoder    87,024 -> 4,072  (21.4x)   silk_nb/mb/wb, silk_stereo_nb/mb/wb, silk_buf
  ec-opus::Decoder     7,576 -> 1,280  (5.9x)    silk (it was already at 92.5% of budget)
  ec-ac3::Ac3Decoder  20,024 -> 3,160  (6.3x)    Core::exps/bap/coeffs/delay
  ec-vp9::Decoder     10,944 ->   768  (14.3x)   frame_ctxs: Box<[FrameContext; 4]>, ctx: Box<FrameContext>

API COMPATIBILITY: no public field type changed in any of the three crates -- ec-opus::Encoder/Decoder
and ec-vp9::Decoder have private fields, ec-ac3::decode::Core is pub(crate) and Core itself is
crate-private, and every public method signature (Encoder::new, Decoder::new, Ac3Decoder::new,
Ac3Decoder::with_options, vp9::Decoder::new) is untouched. The only observable change is a few extra
heap allocations AT CONSTRUCTION, not on the per-frame path.

NO OUTPUT CHANGE, per crate, before vs after: ec-opus lib 36/0 -> 42/0 (the +6 are the new gates) and
conformance 28/0/16 -> 28/0/16 unchanged (its closed-loop range-state-exact gate against the
RFC-vector-verified decoder); ec-ac3 lib 36/0 -> 43/0 and both matrices 8/0 and 6/0 unchanged; ec-vp9
lib 10/0 -> 16/0 and ALL eight bit-exactness integration families unchanged (keyframe 3, inter_pixels 3,
hbd 1, subsampling 3, odd_dimensions 2, scaledref 3, intraonly 1). Main re-ran the three crates' lib
suites on the branch: 42/0, 16/0, 43/0.

DELIBERATELY LEFT INLINE: ec-opus::Encoder::analysis (2,168) + celt (1,592) -- together already under
budget, so a Box per field buys no bound and costs a per-frame indirection on a hot path. ec-vp9::Picture's
public fields are 96 B of Vec handles, not a stack cost. A measurement, not a shrug.

Gate modules: crates/{ec-opus,ec-ac3,ec-vp9}/src/stack_budget.rs, same shape as ec-av1's (inventory
printer, bound asserted by name, a real small-thread capability arm, non-vacuity control).

PRE-EXISTING REDS CARRIED, not caused here: ec-ac3
encode_matrix::real_fixtures_round_trip_through_our_decoder_and_the_oracle and ec-vp9
keyframe_exact::lossless_64_matches_ffmpeg both fail NotFound on a missing fixture (the same
fixture-root shape the fixture-library verifier complains about); and ec-vp9 generates 5 warnings
(unused read_partition, TM_PRED, partition_probs, x_mis, y_mis) which are present on main too.
rename the odd-height pin to match its state, and make three pin gates visible to the fixture censusAhmet Kaan Gümüş · 0cdc604
rename the odd-height pin to match its state, and make three pin gates visible to the fixture census

1. `420_oddheight_320x236_diverging.obu` -> `420_oddheight_320x236.obu` (git mv; the file's bytes are
   untouched, and its sha256/fnv pins are unchanged). It stopped diverging this batch, so the old name
   was a claim that had become false. The two comment sites that describe the historical divergence now
   say "then diverging" so the record is not silently rewritten.
2. Three gates built their pin path as `crate_pin(FILE)` with a `const FILE`, so the fixture census
   could not resolve the literal and reported all three as UNPROVEN (`FAIL [invariant 4]`):
   - the_counting_oracle_diff_attributes_planes_per_frame
   - the_pinned_420_oddheight_320x236_witness_decodes_byte_exact
   - a_420_lossless_alt_ref_1to4_strip_witness_is_byte_exact_in_decode_order
   Each now passes the literal through `crate_pin("...")`, which is the form the census can prove and the
   form every older pin gate in this file already used. `verify-fixture-library.sh` no longer reports
   invariant 4. The gates still assert size + fnv1a64 + byte-exactness; only the path expression moved.
3. `scripts/fixture-library.tsv` regenerated (line numbers shifted, plus the renamed path).

Still RED, and NOT from this commit: `verify-fixture-library.sh`'s invariant 2 (committed pins present
but not tracked by git) lists five scratch .obu files in the repo-root `fixtures/` directory -- which is
gitignored, and which is where `pin_dir()` resolves. It is RED identically on the pre-rename tree
(checked in a scratch worktree), so it is an environment/repo-shape issue for a separate batch, not a
regression here.
Merge lane-av1oddheightfork3: the odd-height var-tx fork is CLOSED -- a whole-block TXFM_CONTEXT publish was overwriting a var-tx tree's per-leaf sizesAhmet Kaan Gümüş · a0ac615
Merge lane-av1oddheightfork3: the odd-height var-tx fork is CLOSED -- a whole-block TXFM_CONTEXT publish was overwriting a var-tx tree's per-leaf sizes

REACHABLE IN PRODUCTION, no bypass and no refusal: this is an ordinary 4:2:0 stream from aomenc's
DEFAULT multi-threaded encode. Main verified the fix independently: the committed pin
`420_oddheight_320x236_diverging.obu` decodes BYTE-EXACT against `aomdec --rawvideo` on the branch
(cmp of the 16-frame dumps, 1,812,480 bytes each), where it was Y 234349 / U 56957 / V 52981 with 0/16
frames exact. The sibling `322x248` (16131 B, sha256 9e8c9c6c..., reproduced from the documented recipe
after validating that recipe against the committed 320x232 pin first) goes 0/0/0 too.

THE MECHANISM, and the ticket's two candidate shapes were resolved by measurement (oracle rung
EC_VARTXCTX, added through scripts/instrument-aom-oracle.sh as rung 18 -- which ALSO re-derives the
previously HAND-ADDED EC_VARTX print that lived in the oracle tree but in no script, so the next rebuild
cannot lose it): at mi(44,60) the oracle reads above=8 left=8 txw=8 txh=16 ctx=13, ours read above=8
left=16 ctx=12. `above` AGREES; `left` DIFFERS (8 vs 16).

THE DEFECT: `Neighbours::fill_lf_grid_rect`'s intra-only `txfm_partition_update_rect` -- the
`set_txfm_ctxs` stand-in -- was called by four INTRABC var-tx bodies
(decode_intrabc_rect, decode_intrabc_128rect, decode_intrabc_owned_rect, decode_rect4_16_intrabc) and
published the BLOCK's own footprint carrying the block's transform size. But libaom's
`parse_decode_block` is an EITHER/OR (decodeframe.c:1227-1236): the var-tx branch calls
`read_tx_size_vartx` and NEVER `set_txfm_ctxs`; inside that branch the only writer is the per-resolved-
leaf `txfm_partition_update(above_ctx+blk_col, left_ctx+blk_row, tx_size, tx_size)`
(av1_common_int.h:1684-1695). The whole-block write belongs to the ELSE branch. Concretely: the INTRABC
8x16 at mi(44,58) split into two 8x8 leaves (ctx=17 s=0 row 0, ctx=16 s=0 row 2 -- identical on both
sides) and the tree put 8 into left_txfm[44..48]; the whole-block publish then put the block's 16 back
over those same four cells, so the next block, the 8x16 INTRABC at mi(44,60), read ctx 12 instead of 13,
decided is_split 0 instead of 1, and read no children where aomdec read two.
(The ticket's suspected `txfm_partition_update_rect` rect-extent mistake is REFUTED and pinned by a new
test: the primitive's extent is the NODE and its value is the LEAF, exactly like `txfm_partition_update`,
and `mi_size_*[txsize_to_bsize[t]]*MI == tx_size_*[t]` holds for every TX_SIZE including the rect ones.)

THE FIX: `fill_lf_grid_rect` split into a wrapper, `fill_lf_grid_rect_after_vartx` and
`fill_lf_grid_rect_inner(.., publish_txfm_bands)`; the four var-tx bodies call the suppressing variant.
ONLY the band publish is suppressed -- the LUMA/UV tx-size grids, skip grid, ref/delta-lf grids and the
intrabc coverage stamp are unchanged, and no decode arithmetic moved (band init, context arithmetic and
the reader recursion are untouched).
SECOND LATENT FINDING, fixed with it: the two LOSSLESS tree-reader arms returned a 4x4 leaf grid and
wrote NOTHING, where libaom's else branch runs `set_txfm_ctxs(TX_4X4, xd->width, xd->height, 0)`; both
now publish.

SIBLING GRID, swept with a throwaway comparator over 104 committed .obu fixtures against live aomdec
--rawvideo: 62 comparable, 62/62 byte-exact on all three planes, every frame exact, NOTHING moved to a
non-exact reading. 41 the throwaway could not compare (probe refuses by name, or 10/12-bit packing
differs) and 1 the oracle refuses rest on the crate's own gates; the lane makes no claim on those.
lane-av1oddheightfork3: the odd-height var-tx fork is CLOSED -- a whole-block TXFM_CONTEXT publish was overwriting a var-tx tree's per-leaf sizesAhmet Kaan Gümüş · 685bcb0
lane-av1oddheightfork3: the odd-height var-tx fork is CLOSED -- a whole-block TXFM_CONTEXT publish was overwriting a var-tx tree's per-leaf sizes

The 320x236 and 322x248 cells measured 0/16 frames exact (Y 234349/U 56957/
V 52981 and Y 36286/U 13359/V 13001). The divergent read is the
`txfm_partition` symbol of the INTRABC 8x16 block at mi(44,60): ours read
ctx 12 where aomdec reads 13. The new oracle rung EC_VARTXCTX (rung 18 of
scripts/instrument-aom-oracle.sh, which also re-derives the hand-added
EC_VARTX print so a rebuild cannot drop either) shows `above` agreeing at 8
on both sides and `left` differing: 16 against 8.

The writer is Neighbours::fill_lf_grid_rect's intra-only TXFM_CONTEXT
publish, reached from four bodies that had just run a var-tx tree. libaom's
parse_decode_block is an either/or: the var-tx branch publishes per leaf
through txfm_partition_update and never calls set_txfm_ctxs, so the
whole-footprint write had no libaom counterpart -- it overwrote the two 8x8
leaves of the split 8x16 block at mi(44,58) with the block's own 16.

Fix: fill_lf_grid_rect is split so the four var-tx bodies can suppress that
publish; the two lossless tree-reader arms now publish TX_4X4 over the block,
which is what libaom's else branch writes and what makes the suppression
sound. No decode arithmetic changed.

Both cells are byte-exact against live aomdec (0/0/0, 16/16 frames), measured
both ways -- reverted and restored -- and 62/62 comparable committed fixtures
stay byte-exact. New committed byte-exactness gate
the_pinned_420_oddheight_320x236_witness_decodes_byte_exact, mutation-proved
(reverting the four call sites reds it by name with 234349/56957/52981), plus
txfm_partition_update_rect_extent_is_the_node_not_the_leaf, which pins the
rect extent the ticket suspected and refutes it. Regression: 181 passed,
0 failed, 2 ignored.
Merge lane-av1stacksweep: the by-value class gets a measured bound and a biting gate, and the last two inline CDF snapshots are boxedAhmet Kaan Gümüş · cd17c30
Merge lane-av1stacksweep: the by-value class gets a measured bound and a biting gate, and the last two inline CDF snapshots are boxed

THE CLASS, swept at last: a large struct returned BY VALUE from a public constructor is a stack cost the
CALLER pays, and the constructors NEST -- so one value's size is the multiplier and the chain length is
the other factor. lane-av1enchang fixed ONE struct (DpbSlot::cdfs) and gated ONE constructor; nothing
said which other types were checked. This lane measured them.

FIX (layout only, same shape as 99750756):
- `Encoded`: 30,728 -> 280 bytes (start_cdfs + next_cdfs were 99.2% of it).
- `Av1Encoder`: 18,168 -> 2,944 bytes. `carried_cdfs` was a SECOND inline 15,232-byte CdfSnapshot that
  the first lane missed because nobody had measured it.
- `DpbSlot::cdfs` now reuses the already-boxed snapshot (pointer copy) instead of boxing again.
API-COMPAT VERIFIED, not assumed: start_cdfs/next_cdfs and CdfSnapshot are all pub(crate); a grep over
crates/ outside ec-av1 for those names and for Encoded is empty, and Encoded's public fields keep their
types -- the edith integration lane has nothing to update. No bitstream effect (Box::new(x) stores the
same x), and the encoder families re-ran identical: 108 passed / 0 failed / 40 ignored twice.

BOUND: 8,192 bytes, down from the 32,768 the lane first picked -- that number had been calibrated to a
crate-private 15,232-byte table no caller can reach. The bound applies only to what a public fn can make
a caller owe (one by-value return x chain depth). Worst public return is Av1Encoder at 2,944 = 35.9% of
budget, so 2.78x headroom rather than 1.07x; it still catches pre-fix Av1Encoder 17.09x over,
ec_opus::Encoder 10.62x over and pre-boxing Encoded 3.75x over. Derivation is asserted IN-TEST
(DEEPEST_PUBLIC_CHAIN(4, counted from source) * worst * 8 <= 2 MiB, and the 2,101,248-byte stack is
measured from /proc/self/task/<tid>/maps), so the number cannot rot into something nobody re-derives.

GATE: crates/ec-av1/src/stack_budget.rs, 8 tests, ~0.05s, behind #![cfg(test)] so a shipped build
carries none of it. Verified by Main on the staged merge: 8 passed, 0 failed, check clean. It includes
the sorted inventory printer, the bound asserted by name, a capability test that really constructs the
deepest public chains on a 1 MiB thread, source scans (one of which immediately named 15 modules the
scan had not been reading -- a real hole), and a non-vacuity control that caught a live matcher bug
(cutting only at '>' parsed Result<Decoder, Error> as the name "Decoder, Error").
MUTATION-PROVED TWICE, re-proven after the refactor: unboxing DpbSlot::cdfs reds the bound BY NAME at
139,960 B (17.09x) plus a SIGABRT in the tight-stack arm; growing Encoded by 64 KiB reds at 96,264 B
(11.75x) plus SIGABRT.

THE CAP ANSWER, which was the deliverable: 799 of 799 lib tests at RUST_MIN_STACK=2097152, ZERO stack
overflows, one process per test. The one test that used to need more --
encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence, red at 2,097,152 and green at
3,145,728 -- is fixed BY THIS BOXING and now passes at 2,097,152. So nothing in the ec-av1 lib suite
needs the 64 MiB cap. The single non-OK entry is a 600s TIMEOUT on a test that passes in release, not a
stack limit. `.cargo/config.toml` is NOT edited: its comment is wrong on mechanism (the state it blames
is Vec/VecDeque, i.e. heap; the only fixed-size stack local in the encoder path is a const in
film_grain.rs) though right on conclusion; the report carries the exact replacement wording.

SELF-CAUGHT FALSE POSITIVE, named rather than hidden: the first sweep flagged
`a_doubly_cut_superblock_root_round_trips_in_every_plane` as a 2 MiB overflow -- it was a STALE BINARY
(the test binary was rebuilt while the sweep ran). Re-verified individually against a stable build it is
ok at 2,097,152, and the whole sweep was re-run clean after that.

OUT OF SCOPE, RECORDED, NOT SWEPT: ec_opus::Encoder 87,024 B (10.62x over the bound, SIGABRTs below
352 KiB) is the class's live instance in a sibling crate edith consumes -- left alone deliberately
(different crate, its own bit-exactness gates, no evidence taken here). Next by size: ec-ac3::Ac3Decoder
20,024, ec-vp9::Decoder 10,944.
lane-av1stacksweep: the per-test cap answer -- 799/799 at 2 MiB, zero stack overflowsAhmet Kaan Gümüş · 928f2fe
lane-av1stacksweep: the per-test cap answer -- 799/799 at 2 MiB, zero stack overflows

The chartered release run on the boxed tree: 108 passed, 0 failed, 40 ignored,
651 filtered out, 308.46s (and an independent re-run: 108/0/40, 307.03s). Same
counts as the pre-boxing run, so the layout change moved no verdict.

The per-test 2 MiB sweep, one process per test so a SIGABRT is attributable
instead of swallowing the run: 799 of 799, ZERO stack overflows. The one
non-OK entry is a TIMEOUT -- every_tile_layout_decodes_sample_exact_through_
both_decoders hit the sweep's own 600s per-test budget, not a stack limit, and
it passes in release.

So nothing in the ec-av1 lib suite needs the 64 MiB cap, and this lane removed
the last test that did (the_facade_codes_the_same_bytes_as_encode_sequence,
2097152 red / 3145728 green before, ok at 2097152 after).

Report carries the full inventory table, the 8 KiB bound with both ends of its
derivation asserted, both mutation proofs, the stale-binary false positive and
how it was caught, and the exact replacement wording for the .cargo/config.toml
comment -- which this lane does not edit.
lane-av1stacksweep: sweep the by-value class, gate it on a measured budget, box Encoded and Av1Encoder::carried_cdfsAhmet Kaan Gümüş · 74a9f69
lane-av1stacksweep: sweep the by-value class, gate it on a measured budget, box Encoded and Av1Encoder::carried_cdfs

THE CLASS, NAMED: a large struct returned BY VALUE from a public constructor is
a stack cost paid by the CALLER, and the constructors NEST, so one value's size
is the multiplier and the chain length is the other factor. Av1Encoder was
139960 bytes by value and aborted on libtest's 2 MiB thread, twice, on
unmodified main. lane-av1enchang fixed that ONE struct and gated that ONE
constructor. Nobody swept the class, and nothing said which types were checked.

THE FIX, same shape as lane-av1enchang (99750756) which boxed DpbSlot::cdfs.
Boxing the per-slot CdfSnapshot left two more copies of the same 15232-byte
table sitting inline, and nobody had measured either:

  Encoded::start_cdfs / next_cdfs   CdfSnapshot -> Box<CdfSnapshot>
  Av1Encoder::carried_cdfs          Option<CdfSnapshot> -> Option<Box<..>>

  Encoded    30728 ->    280 bytes   (99.2% was those two fields)
  Av1Encoder 18168 ->   2944 bytes   (15232 of it was carried_cdfs)

The VALUES are untouched, so the bitstream is byte-identical. The two fields
and CdfSnapshot itself are pub(crate), so this is NOT a breaking API change:
grep over crates/ finds no reader of either field outside ec-av1, and Encoded's
public fields (stream, reconstruction, modes, inter_block_share) keep their
types. refresh() now hands the already-boxed snapshot to the DPB slot instead
of boxing a second time.

THE SWEEP, crates/ec-av1/src/stack_budget.rs, 8 tests, 0.10s:
  the_measured_inventory_is_accurate      21 by-value types, measured, and the
                                          table PRINTS sorted so one command
                                          reproduces the whole inventory
  every_by_value_type_fits_the_stack_budget   the bound, asserted BY NAME
  the_deepest_by_value_constructors_fit_on_a_tight_stack
                                          capability: both deepest public
                                          chains really constructed on a 1 MiB
                                          thread, so a regression ABORTS
  every_by_value_public_return_is_in_the_inventory
                                          source scan over 38 modules; a new
                                          by-value pub return reds unmeasured
  every_by_value_module_is_scanned       the scan's file list derived from
                                          lib.rs -- it immediately named 15
                                          modules the scan was not reading
  the_inventory_scan_is_not_vacuous      control; it caught a live bug in the
                                          matcher (Result<T, E> parsed as the
                                          name "T, E")
  the_crate_private_cdf_tables_stay_behind_a_box
                                          pins the four Box<> declarations
  test_threads_get_the_stack_they_are_given
                                          the 2101248-byte floor the bound is
                                          derived from, read from /proc, not
                                          assumed

THE BOUND: 8192 bytes, derived from measurement at BOTH ends and asserted at
both ends. Bounded quantity is what a caller can owe: 2101248 bytes (measured,
/proc/self/task/<tid>/maps) x a 4-deep public chain x an eighth-of-the-stack
share, with the worst public return at 2944 B = 35.9% of budget. The test
asserts DEEPEST_PUBLIC_CHAIN * worst * 8 <= 2 MiB so the derivation cannot rot.
Catches: pre-fix Av1Encoder 17.1x over, Encoded-before-this-lane 3.75x over,
and ec_opus::Encoder (measured in a sibling crate by the same sweep) 10.6x
over. The crate-private Cdfs/CdfSnapshot are measured and listed but NOT
bounded, because no pub fn returns them -- bounding them would calibrate the
number to something no caller can reach.

MUTATION-PROVEN, both reverted and both re-run after the refactor:
  unbox DpbSlot::cdfs (revert 99750756) -> "Av1Encoder is 139960 bytes, over
    the 8192-byte by-value stack budget (17.09x)" by name, plus SIGABRT
  grow Encoded by a 64 KiB inline payload   -> "Encoded is 96264 bytes, over
    the ... budget (11.75x)" by name, plus SIGABRT

THE CAP: the 64 MiB RUST_MIN_STACK in .cargo/config.toml was protecting
exactly this and no longer needs to. One debug test genuinely needed >2 MiB --
encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence, 2097152
red / 3145728 green -- and THIS COMMIT FIXES IT: it now passes at 2 MiB. A
799-test per-test sweep at RUST_MIN_STACK=2097152 is in the lane report. I am
not editing .cargo/config.toml, as chartered; the report carries the exact
replacement comment and states that its current wording is wrong (the state it
blames is Vec/VecDeque, i.e. heap; the only fixed-size stack local in the
encoder path is a `const` in film_grain.rs).

Measured deepest chain: 786432 bytes before, 475136 after (1 MiB gate is now
2.2x margin, was 1.33x). The ~470 KB that remains is the encode search's own
frames.

No decode.rs. No bitstream change. No .cargo/config.toml edit. No rustfmt.

Lane report: lanes/av1stacksweep.report.md.
Merge lane-av1422llpred: per-axis reach for 4:2:2 chroma -- ll422_allintra U 3126 -> 2984, V 3139 -> 3067; plus a two-site class sweepAhmet Kaan Gümüş · 6f83d9c
Merge lane-av1422llpred: per-axis reach for 4:2:2 chroma -- ll422_allintra U 3126 -> 2984, V 3139 -> 3067; plus a two-site class sweep

THE FIX: read_intra_chroma_lossless called tu_reach(side, side, col_off, row_off, 4 << ss_x(fctx), ...),
and tu_reach passes ONE transform size as BOTH tx_w and tx_h -- so a TX_4x4 chroma unit's HEIGHT came
from ss_x instead of ss_y. A chroma unit is 4 << ss_x luma px wide but 4 << ss_y tall; the two shifts
coincide at 4:2:0 and 4:4:4, which is why only 4:2:2 could ever reach this. Now tu_reach_rect with
tx_h = 4 << ss_y(fctx). The reach itself is libaom's has_bottom_left (reconintra.c:411,
row_off + tx_size_high_unit[TX_4X4] < AOMMAX(mi_size_high[bsize] >> ss_y, 1)): 0 + 8 < 8 was false
before, 0 + 4 < 8 is true now. The interior-only signature follows: build_directional_and_filter_intra_
predictors fills left_col[0..3] and extends to [4..7] only when n_bottomleft_px > 0, so with the reach
denied our edge builder replicated left_col[3]; z3 reads [0..3] for row0/col0 (byte-identical) and the
replicated tail for the interior. Feeding libaom's formula the 8-sample column reproduces the oracle's
col0 exactly -- the arithmetic was right, the edge was short.

MEASURED BY MAIN on a bypassed release build of the branch, per plane, vs aomdec --rawvideo:
ll422_allintra Y 0 / U 3126 -> 2984 / V 3139 -> 3067; prediction-sum disagreements 490 -> 453 of 9600.
W_intrabc (917974/474506/487694) and X_intrabc_tiled unchanged -- inter/intrabc streams do not reach the
function. Oracle-flip control: rotating one oracle V byte moves V by exactly +1.

CLASS SWEEP: two more instances of the same one-size-for-two-axes shape, both in decode_rect4_16_strip
(18985, 19072), converted the same way. Measured a NO-OP on both 4:2:2 cells we have -- recorded as
correct-for-the-4:2:2-port, NOT as a win; they are an identity at 4:2:0/4:4:4 where ss_x == ss_y, which
is the only reason they are safe to land without a measurement. The remaining 15 tu_reach sites pass no
subsampled size, and four sites already using separate sizes were already correct.

NOT GATEABLE: 4:2:2 is refused at the sequence header, so no committed test can reach the fixed path;
the evidence is the measurement table plus an isolation control, and the change is not described as
gated. Regression: 175 passed, 0 failed, 2 ignored (422/lossless/444/warp/intra).
lane-av1422llpred: per-axis reach for lossless 4:2:2 chroma (r1: the found fix; r2: the class sweep)Ahmet Kaan Gümüş · 177f6ca
lane-av1422llpred: per-axis reach for lossless 4:2:2 chroma (r1: the found fix; r2: the class sweep)

r1 -- THE FIX (lane-av1422llpred). read_intra_chroma_lossless computed the per-TU Reach with
tu_reach(side, side, col_off, row_off, 4 << ss_x(fctx), ...), and tu_reach takes ONE transform size and
passes it as BOTH tx_w and tx_h, so the transform HEIGHT came from ss_x instead of ss_y. A TX_4x4
chroma unit is 4 << ss_x luma px WIDE but 4 << ss_y luma px TALL; at 4:2:0 and 4:4:4 the two shifts are
identical, which is exactly why both formats have been byte-exact and only 4:2:2 could reach it.
Now tu_reach_rect with tx_h = 4 << ss_y(fctx) (decode.rs:37568). The sibling walk in decode_block
already did this correctly with separate spans.

libaom: av1_dr_prediction_z3_c (reconintra.c:609) with the reach decided by has_bottom_left
(reconintra.c:411) -- row_off + tx_size_high_unit[TX_4X4] < AOMMAX(mi_size_high[bsize] >> ss_y, 1).
Ours before: row_off + tx_h < bh -> 0 + 8 < 8 -> false, so below_left was denied. After: 0 + 4 < 8 -> true.
WHY INTERIOR-ONLY: build_directional_and_filter_intra_predictors (reconintra.c:1150) fills left_col[0..3]
and only extends to [4..7] when n_bottomleft_px > 0; with the reach denied our Edges::build replicated
left_col[3] across 4..7. z3 reads left_col[base]/[base+1] with base = (23*(c+1)+r)>>6, so row0 and col0
only read [0..3] (byte-identical) while the interior reads the replicated tail. Feeding libaom's own
formula the 8-sample left column reproduces the oracle's col0 exactly -- the arithmetic was right, the
edge was short.

MEASURED by Main on a bypassed release build of this branch vs the oracle (aomdec --rawvideo, per
plane, 320x240 4:2:2 intra): ll422_allintra Y 0 / U 3126 -> 2984 / V 3139 -> 3067. Prediction-sum
disagreements 490 -> 453 of 9600 paired units. W_intrabc and X_intrabc_tiled UNCHANGED
(917974/474506/487694 and 864325/421718/414871) -- both are inter/intrabc streams and the changed
function is reached only from intra lossless 4:2:2. Oracle-flip control: one oracle V byte rotated
moves V by exactly +1.

r2 -- THE CLASS SWEEP, done by Main, because r1 fixed one instance of a shape with more. tu_reach takes
ONE size for two axes; grepping every call site for a subsampled single size found TWO more, both in
decode_rect4_16_strip (18985 and 19072), both converted to tu_reach_rect with tx_h = 4 << ss_y(fctx).
The remaining 15 tu_reach sites pass no subsampled size, and the sites that already used separate sizes
(19022/19116/37613/37783) were already correct. MEASURED: a no-op on both 4:2:2 cells we have
(W_intrabc byte-for-byte the same counts; ll422_allintra unchanged), so those two are recorded as
correct-for-the-4:2:2-port and NOT as a measured win -- they are provably an identity at 4:2:0 and 4:4:4
where ss_x == ss_y, which is the only reason they are safe to land unmeasured.

NOT GATEABLE, stated plainly: 4:2:2 is refused at the sequence header (stream.rs:1803), so no committed
test build can reach read_intra_chroma_lossless at ss (1,0) and no committed test can gate this. The
evidence is the measurement table plus the oracle-flip isolation control -- no source-scan substitute,
and this change is NOT described as gated. Regression: 422/lossless/444/warp/intra -> 175 passed,
0 failed, 2 ignored.
Merge lane-av1oddheightfork2 (INSTRUMENT ONLY): the rect coefficient ladder now has aomdec's shape, and the 320x236 fork is REFUTED as an artefact and re-localisedAhmet Kaan Gümüş · 2177457
Merge lane-av1oddheightfork2 (INSTRUMENT ONLY): the rect coefficient ladder now has aomdec's shape, and the 320x236 fork is REFUTED as an artefact and re-localised

Main verified the claim: the lane's build produces BYTE-IDENTICAL output to main on the pinned cell
(cmp of the 16-frame 320x236 dumps, 1812480 bytes each), so nothing here is a decode change.

INSTRUMENT (trace only, reads no bits):
- : ADDED the missing  rung -- without it every RECT unit was one
  ladder step short of aomdec, which is what made every previous comparison in this defect unreliable.
- : moved  to the end of the loop body so it carries the POST-br level
  and POST-br rng, matching aomdec's rung (decodetxb.c:317-338).
- : the  rung now prints above=/left=/maxblk=/tx=.
- report §2 writes out every rung's label space and what is deliberately NOT compared (the oracle's
  column-major  vs our raster), so the next lane does not re-discover it.

REFUTED: the ticket's 'entropic fork at coefficient read 6 / 312 extra bits inside one TX_8X4 luma unit
at mi(0,4)'. With the corrected ladder, coefficient units 0..1060 of frame 0 pair 1:1 with aomdec --
same count, tags, values, ctx and msac rng at every step -- and state first differs at the ENTRY of
unit 1061, i.e. BETWEEN blocks. The 312-bit figure came from a ladder that could not resolve a rect
unit's step count at all. Two earlier report lines (av1labelspace:94-101, av1partadvance:88-98) fall
with it.

RE-LOCALISED: ONE read. The var-tx partition symbol of the INTRABC 8x16 luma block at mi(44,60)
blk(0,0), frame 0: ours  symbol 0 (no split) at decode.rs:30017, aomdec  symbol 1
(split) at decodeframe.c:1130-1132 -- after which aomdec reads two children (ctx=15 s=0 at rows 0 and
2) and we read none and take one whole-block transform. The category arithmetic is IDENTICAL on both
sides ( vs libaom  are line-for-line the same shape;
maxblk=16 tx=8x16 -> category 4 -> ctx = 12 + (above<8) + (left<16)); ours reads above=8 left=16, so
aomdec's 13 requires one of ITS TXFM_CONTEXT neighbours to be STRICTLY SMALLER than ours. The defect is
therefore neighbour STATE in the TXFM_CONTEXT grid, not a rule and not arithmetic -- and it is NOT an
intrabc special case ( sets inter_block_tx = is_inter_block || is_intrabc_block and
takes the same vartx branch; no use_intrabc case exists on the path).
§6 names the single next measurement (an EC_VARTXCTX rung printing above/left/txw/txh/ctx) and the two
possible shapes with their different fixes; a follow-up lane is already on it.
lane-av1oddheightfork2: INSTRUMENT ONLY -- make the rect coefficient ladder the shape aomdec's is, and name the 320x236 forkAhmet Kaan Gümüş · 39a61cc
lane-av1oddheightfork2: INSTRUMENT ONLY -- make the rect coefficient ladder the shape aomdec's is, and name the 320x236 fork

No decode logic is touched. Four trace rungs, all env-gated, all reading no bits:

 1. read_coeffs_rect gains tag=post_golomb (the square reader already had one),
    so a rect unit is no longer one ladder step short of aomdec.
 2. read_coeffs_rect's tag=base_eob moves from the read site to the end of the
    loop body, so it carries the POST-br level and rng. aomdec prints its
    base_eob after that coefficient's br loop (decodetxb.c:317-338); printed at
    the read site the rung labelled the pre-br read and every rect unit disagreed
    with aomdec by exactly its br tail.
 3. read_block_tx_size_rect's txfm_split_rect prints above/left/maxblk/tx, so a
    ctx disagreement names WHICH neighbour is wrong.

With these, coefficient units 0..1060 of frame 0 pair 1:1 with aomdec and the
state first differs at the ENTRY of unit 1061 -- between blocks, not inside one.
The 'fork at coefficient read 6 / 312 extra bits' record is an artefact of a
ladder that could not resolve a rect unit's step count, and is refuted here.

The single divergent read is the var-tx partition symbol of the INTRABC block at
mi(44,60) blk(0,0): aomdec ctx=13 s=1, ours ctx=12 s=0. Same category, so the
category arithmetic is right and our TXFM_CONTEXT neighbour is not. Not fixed;
lanes/av1oddheightfork2.report.md names the one measurement that closes it.
Merge lane-av1enchang: box the DPB CdfSnapshot (Av1Encoder 139960 -> 18168 bytes), a tight-stack gate, and a measured SLOW-not-hung backstopAhmet Kaan Gümüş · 63edf39
Merge lane-av1enchang: box the DPB CdfSnapshot (Av1Encoder 139960 -> 18168 bytes), a tight-stack gate, and a measured SLOW-not-hung backstop

THE HAZARD: Av1Encoder was 139,960 bytes BY VALUE (eight inline CdfSnapshot DPB slots) and is returned
by value through three nested Result<Self> constructors, so any caller on a normal 2 MiB thread stack
crashes -- reproduced twice on a pre-fix binary built from unmodified main ('fatal runtime error: stack
overflow, aborting' at Av1Encoder::new), and the repo hid it behind .cargo/config.toml's
RUST_MIN_STACK=64MiB, which only covers the workspace's own cargo runs. Boxed: 18,168 bytes.

THE ~7 HOUR TEST IS NOT A HANG: it terminates and passes (old pin ea8fa18f, same test, byte-identical
output, 275.53s RELEASE; Main independently ran the encoder tests in release on this branch: 41 passed
0 failed 10 ignored in 166.64s, and the round_trip family 20 passed 0 failed). evals per search are
61.3 / 64.5 / 64.9 across 384k / 1.5M / 2M bps = FLAT, equal to the search's designed bound, so the
search is not pathological; the cost is full search x 60 superblocks x 48 frames x 8 arms x ~13x debug
penalty, and the high-bitrate arms dominate because the rate loop must walk q_idx DOWN from seed 100
into the 20s to spend an 8000-byte budget. Three gdb backtraces 20s apart show different functions,
different blocks and a changing base_q_idx -- progress, not a spin.

GATE the_pyramid_constructors_fit_on_a_tight_stack (1 MiB thread, both constructors): red/green in
milliseconds. Main verified it bites -- with the Box removed it dies 'fatal runtime error: stack
overflow, aborting' (SIGABRT); with it, green in 0.00s. Post-fix clean from 384 KiB; pre-fix overflowed
up to 2 MiB.

BACKSTOP (a backstop, NOT a fix for the cost): per-CALL 1800s ceiling on a worker thread
(EC_AV1_ENCODE_CALL_BUDGET_SECS) = ~16x the worst honest debug call, 1730x the worst optimized one.
Red-proofed: budget=1 fails loudly with test name, arm name, elapsed seconds and 'SLOW, NOT HUNG'; an
injected spin fails at 5m00s where pre-fix it hangs forever.

No decoder or bitstream behaviour changes: the CDF tables' VALUES are untouched, and the bitrate gate's
8 arms are byte-identical to pre-fix.
lane-av1enchang: box the DPB CdfSnapshot (Av1Encoder 139960 -> 18168 bytes), gate the tight-stack requirement, and add a measured SLOW-not-hung backstopAhmet Kaan Gümüş · a441af7
lane-av1enchang: box the DPB CdfSnapshot (Av1Encoder 139960 -> 18168 bytes), gate the tight-stack requirement, and add a measured SLOW-not-hung backstop

THE REAL DEFECT: Av1Encoder was 139,960 bytes BY VALUE (eight inline CdfSnapshot DPB slots) and is
returned by value through three nested Result<Self> constructors (with_pyramid_and_rate_target ->
with_pyramid -> new). Any caller on a normal 2 MiB thread stack CRASHES: reproduced twice on the
pre-fix binary built from unmodified main, 'fatal runtime error: stack overflow, aborting' at
Av1Encoder::new (encoder.rs:1519), from coredumpctl. The repo HID this behind
'.cargo/config.toml [env] RUST_MIN_STACK = 67108864' -- a 64 MiB stack for the workspace's own cargo
runs only, which is also why 'cargo test' wedges instead of aborting when the test binary is invoked
directly. Box the per-slot snapshot: 139960 -> 18168 bytes (7.7x). The tables' VALUES are untouched.

GATE: the_pyramid_constructors_fit_on_a_tight_stack spawns a 1 MiB thread and constructs both the flat
and the pyramid encoder. Red/green in milliseconds instead of a 6m35s debug run. Verified by Main:
with the Box removed the gate dies 'fatal runtime error: stack overflow, aborting' (SIGABRT); with it,
green in 0.00s. Post-fix clean from 384 KiB (2.7x margin at 1 MiB), pre-fix overflowed up to 2 MiB.

THE ~7 HOUR TEST IS NOT A HANG, and this lane measured it rather than guessing: it terminates and
passes (old pin ea8fa18f, same test, byte-identical output, 275.53s RELEASE). evals per search are
61.3 / 64.5 / 64.9 across 384k / 1.5M / 2M bps -- FLAT, equal to the search's designed bound, so the
search is not pathological. The cost is full search x 60 superblocks x 48 frames x 8 arms x ~13x debug
penalty, and the HIGH-BITRATE arms dominate because the rate loop must walk q_idx DOWN from seed 100
into the 20s to spend an 8000-byte budget. 3 gdb backtraces 20s apart show 3 different functions, 3
different blocks and a changing base_q_idx (32/32/30) -- progress, not a spin.

BACKSTOP, reported as a backstop and NOT as a fix for the cost: a per-CALL wall-clock ceiling on a
worker thread (1800s default, EC_AV1_ENCODE_CALL_BUDGET_SECS) = ~16x the worst honest debug call
(~110s, derived) and 1730x the worst optimized call (1.04s, measured). Red-proofed both ways:
EC_AV1_ENCODE_CALL_BUDGET_SECS=1 -> FAILED, exit 101, message carries the test name, the arm name, the
arm's elapsed seconds, the stuck call index and the text 'SLOW, NOT HUNG'; an injected spin_loop in
encode_frames fails at 5m00s where pre-fix it hangs forever (injection reverted, 0 grep hits).

BIT-EXACTNESS: round_trip_encode 108 passed 0 failed 40 ignored after the Box change; the bitrate gate
8/8 arms byte-identical to pre-fix; pyramid decode gates (display order through both decoders, three-
and four-level) all ok. Main re-ran the round_trip family in release: 20 passed 0 failed.

Lane report: lanes/av1enchang.report.md.
Merge lane-av1422llintra: 4:2:2 dc_sign vote double-count FIXED (ll422 intra control luma 75210 -> 0, W/X frame 0 byte-exact), and the vacuous 4:2:2 witness gate re-documentedAhmet Kaan Gümüş · 893f668
Merge lane-av1422llintra: 4:2:2 dc_sign vote double-count FIXED (ll422 intra control luma 75210 -> 0, W/X frame 0 byte-exact), and the vacuous 4:2:2 witness gate re-documented

GOAL A -- HONESTY. 1cd7c85f: the merged gate the_pinned_422_lossless_inter_chroma_panics_refuse_by_name falsely claimed a 'Golomb tail' refusal
and implied it covered the seven-site fix; it is renamed to the_pinned_422_lossless_inter_witnesses_are_present_and_refuse_by_name,
its doc now says it asserts the 4:2:2 HEADER refusal (identical on the pre-fix tree aef4fa67, so VACUOUS w.r.t. the fix) and that no
committed test can reach a 4:2:2 decode because the EC_AV1_ALLOW_422_PROBE bypass must never be committed. The non-reproducing claim is
retracted, the sibling source-scan gate gets the same 'spelling scan proves nothing about pixels' scope note, and collateral damage from
69a3a4df (which had spliced the lpf doc into the MIDDLE of the av1422warp gate's doc comment, orphaning that gate's docs) is repaired.

GOAL B -- THE FIX. a347784b, three chroma gathers (decode_rect_split lossless walk 12735, the measured fork site; read_intrabc_rect_chroma_split
17802; decode_block_rect64 tiled walk 19922). libaom's get_txb_ctx_general sums ONE dc sign vote per CHROMA CELL over txb_w_unit above /
txb_h_unit left entries -- one each for a TX_4X4 chroma unit. At ss (1,0) one chroma column spans TWO luma mi columns, so around_mi_rect
summed that column's whole-unit dc sign twice. dc_sign_ctx reads only the signum, so the doubling is invisible EXCEPT when above and left
cancel: a+l=0 (ctx 0) becomes 2a+l=+a (ctx 2). 4:2:0 and 4:4:4 are immune (square plane block, uniform scaling).

MEASURED, and RE-VERIFIED INDEPENDENTLY BY MAIN with a bypassed build of both sides on ll422_allintra.obu (oracle aomdec --rawvideo,
per-plane count): MAIN 9367642a = Y 75210 / U 38235 / V 38240; BRANCH = Y 0 / U 3126 / V 3139. W 1214609 -> 917974 luma, X 1072597 -> 864325,
both now with frame 0 BYTE-EXACT. Coefficient stream paired 311484 vs 311484 symbols with zero disagreements; oracle flip moves each count by
exactly +1.

STATED REGRESSION, kept deliberately: Y_intrabc_10b now REFUSES at frame 0 -- 'unsupported: AV1 tile (a Golomb tail longer than this decoder
reads)' (verified by Main on the branch build) -- where it used to decode 16/16 with 1227876 wrong luma samples. Isolation control: the dc
gather alone causes it, and the two defects interact (the dc gather alone is neutral-to-worse; only the pair is a large win). Kept because a
named refusal beats silently wrong pixels (the crate's own convention), because 4:2:2 is unreachable in production (header refusal) so this is
probe-only behaviour, and because the alternative leaves a diagnosed defect unfixed with W/X 19-24% worse.

NO GATE, and none is possible: 4:2:2 is refused at the sequence header and the bypass must never be committed, so no committed test can execute
these arms. Evidence is the measurement plus the isolation control -- not a source-scan substitute, which is exactly what Goal A criticises.
Regression sweep on the branch: 70 passed 0 failed across the 422/lossless/444 families; Main re-ran it on the merged tree.
lane-av1422llintra: fix the 4:2:2 dc_sign vote double-count + lane reportAhmet Kaan Gümüş · 14409e1
lane-av1422llintra: fix the 4:2:2 dc_sign vote double-count + lane report

libaom's get_txb_ctx_general sums one dc sign vote per CHROMA cell, over
txb_w_unit above entries and txb_h_unit left entries -- for a TX_4X4 chroma
unit, ONE above entry and ONE left entry. At ss (1, 0) one chroma column spans
TWO luma mi columns, so the plain around_mi_rect walk summed that column's
whole-unit dc sign twice. dc_sign_ctx only reads the vote's SIGNUM, so the
doubling is invisible except exactly when above and left cancel: a+l = 0
(ctx 0) becomes 2a+l = +a (ctx 2), and the DC sign symbol is then read off the
wrong CDF row and comes out inverted. 4:2:0 and 4:4:4 are immune because the
plane block is square there, so the doubling scales the vote uniformly.

MEASURED on the pinned 4:2:2 all-intra lossless control ll422_allintra.obu,
paired against the instrumented aomdec: the V 4x4 unit at chroma (24, 8) of
the BLOCK_32X8 at mi(2,8). The oracle's EC_DBGCTX reads above0=23 left0=13,
which sums to dc 0 and reads dc_sign_cdf[0]; ours (EC_DCDUMP) summed the above
column twice, got vote +1, read dc_sign_cdf[2], and the tile desynced from
that symbol. rng agreed to the bit beforehand (40604 on both sides) and the
level read 2 on both sides, so this is a CDF-row difference, not a level or a
bit-position one.

Three gathers still called the plain around_mi_rect where twenty-odd sibling
sites already route ss (1, 0) through around_mi_422_chroma (which samples every
second above cell): decode_rect_split's lossless chroma walk at 12735 (the site
that produced the fork), read_intrabc_rect_chroma_split at 17802, and
decode_block_rect64's tiled chroma walk at 19922. Each guard is byte-identical
to the existing ones at 12865/13069/14327/44920 and a no-op at 4:2:0 and 4:4:4.

EFFECT (own comparator, per-cell oracle-flip control included):
- ll422_allintra LUMA becomes BYTE-EXACT (74 162 wrong -> 0); the whole
  311 484-symbol coefficient stream now pairs with no disagreement; chroma
  38 235/38 240 wrong -> 3 126/3 139.
- W_intrabc and X_intrabc_tiled: frame 0 becomes BYTE-EXACT (first divergence
  moves from frame 0 to frame 1), totals down 24 % / 19 %.
- Y_intrabc_10b: REGRESSION, named in the report -- it now REFUSES at frame 0
  with the Golomb-tail guard where it decoded 16/16 wrongly. An isolation
  control (this fix on main, without the previous lane's chroma-unit mechanism)
  shows the refusal is caused by the dc gather alone and that the two defects
  interact: the dc gather alone is neutral-to-worse. Main's call to keep.
- 4:2:0 / 4:4:4 lossless and every pinned 4:2:2 refusal gate: 70 passed,
  0 failed.

NOT GATED, and not described as gated: 4:2:2 is refused at the sequence header
and the probe bypass must never be committed, so no committed test can execute
the arms this touches. The evidence is the measurement, and the revert moves
the numbers (ll422 luma 0 -> 75 210, W/X frame 0 exact -> diverging).
lane-av1422llintra: rename the 4:2:2 witness gate to what it asserts, and say what it does NOT coverAhmet Kaan Gümüş · 20d10af
lane-av1422llintra: rename the 4:2:2 witness gate to what it asserts, and say what it does NOT cover

the_pinned_422_lossless_inter_chroma_panics_refuse_by_name asserted the 4:2:2
HEADER refusal, which fires before any of the seven sites lane-av1422lpf fixed
is reachable and fires IDENTICALLY on the pre-fix tree (aef4fa67 prints the same
string). So with respect to that fix the gate was VACUOUS -- it passed before
and after. Its only real content is the three fixture pins.

Renamed to the_pinned_422_lossless_inter_witnesses_are_present_and_refuse_by_name,
doc rewritten to state that, and to state that no committed test can reach a
4:2:2 decode at all (the EC_AV1_ALLOW_422_PROBE bypass is a patch-run-restore
hack that must never be committed), so the panic fix's evidence is the bypassed
manual measurement in lanes/av1422lpf.report.md. The false 'Golomb tail refusal
at frame 2' claim, which does not reproduce, is named and retracted in the doc.

The sibling source-scan arm gets the same scope statement: it is a SPELLING
scan and proves nothing about pixels.

Also repairs collateral damage from 69a3a4df: that commit appended its own doc
block in the MIDDLE of the lane-av1422warp gate's doc comment, so the warp gate
(the_pinned_422_residual_compound_warp_witness_is_present_and_refuses_by_name)
had lost its documentation entirely and the two gates shared one comment. The
warp doc is moved back onto its own gate.

The three pins (W_intrabc.obu, X_intrabc_tiled.obu, Y_intrabc_10b.obu: size +
fnv1a64) are unchanged.