Commits
Commits on
6c956a2a725f5ea4c8a9d06ee42bea8522b8bca02026-09-30
note in the av1444d10 refutation that its counter floor of 4 is one stream, not a censusAhmet Kaan Gümüş · 6c956a2
note in the av1444d10 refutation that its counter floor of 4 is one stream, not a census The floor stays correct as a floor; the addendum records the per-stream re-measurement (4 / 8 / 4 units across the three committed palette-chroma streams, 8 of them on the never-before-reached nw >= 2 arm) so the next reader does not read 4 as a corpus number.
gate the 4:4:4 palette chroma walk's horizontal arm and a 12-bit cellAhmet Kaan Gümüş · 35a38d4
gate the 4:4:4 palette chroma walk's horizontal arm and a 12-bit cell The 32-capped chroma walk in decode_block_rect64 windows the palette prediction per unit on BOTH axes, but only the cu_row term was ever exercised: a census of every committed fixture found windowed units only on blocks with nw == 1, so `cu_col * uw` was correct by construction and reached by nothing. No 12-bit 4:4:4 palette chroma stream had been built at all. Two new aomenc cells reach it. At ss (0,0) a 64-wide luma rect block keeps cw = 64, so the cap tiles it into nw = 2; that shape needs the horizontal partition arms and the lane-av1rect14 ibc640 flag set (rect + 1:4 partitions, min-partition-size=8, sb-size=64, screen tune) at cq-level 45. The 10-bit cell lands the rect-unit arm (uw 32, uh 16), the 12-bit cell the square-unit arm (uw 32, uh 32). Both are byte-exact against the instrumented aomdec, 0/0/0 per plane over the single decode-order frame, with a one-byte oracle tamper moving the mismatch count 0 -> 1 at each depth so the zero is not a dead comparator. Reverting the two palette_window calls to the whole-block buffer reds the new gate at 54278 differing bytes (10-bit) and 13312 (12-bit), luma 0 in both, first bad sample at the cu_col = 1 unit's own column. The existing 352x242 gate stays green, and the coverage-debt floor of 4 is re-measured per stream: 4 / 8 / 4 windowed units across the three committed palette-chroma streams, 8 of them on the horizontal arm. decode.rs gains one env-gated EC_PALWALK rung inside decode_block_rect64 (diagnostic only, same style as EC_PALSYN) so the nw/nh census is reproducible on any future fixture.
annotate: the "frame-count ceiling" paragraph in av1losslessvartx is refuted, and the real defect next to it is namedAhmet Kaan Gümüş · 0642491
annotate: the "frame-count ceiling" paragraph in av1losslessvartx is refuted, and the real defect next to it is named Its §4 said the exactness ceiling is "a separate, pre-existing defect: any stream of 5+ frames decodes more frames than the oracle emits". That is refuted corpus-wide (lanes/av1framecount.report.md): 5 source frames produce 6 CODED frames via altref + show_existing_frame (7 headers = 6 coded, 2 hidden, + 1 show_existing; shown = 6 - 2 + 1 = 5), the oracle agrees on every count, all six decode-order frames are byte-exact -- also on a PLAIN --cq-level=20 --lossless=0 5-frame stream, which is the specific counterexample the paragraph offers -- 96/96 committed fixtures match the oracle's dump counts, and a 308-stream generated sweep over frame counts 3..24 matches everywhere. The shape is already gated at stream.rs:9250. The annotation also names the REAL defect the lane's sweep ran alongside and which the paragraph mis-blamed: the mixed-lossless pixel divergence, red from frame 1, which is a separate open item with its own debt line. Annotated in place rather than rewritten, per the record discipline for disproved figures in merged reports.
two lanes on the mixed-lossless class: the root cause is a var-tx conjunct, the candidate fix was measured and REVERTED as unproven, and both lanes' corrections to the record are landedAhmet Kaan Gümüş · 5c9a507
two lanes on the mixed-lossless class: the root cause is a var-tx conjunct, the candidate fix was measured and REVERTED as unproven, and both lanes' corrections to the record are landed Both lanes are report-only; neither left a source delta behind. Landing their two reports plus the state of the question, because the earlier debt line's reading was WRONG and two lanes independently corrected it. lane-av1mixllfork (7e90b5b4, merged here; source delta verified empty against its base 32d944bf): the fork at read 30889 is a VAR-TX ORDERING defect, not a wrong txb_skip_ctx CDF row. libaom puts !xd->lossless[mbmi->segment_id] IN the var-tx condition (decodeframe.c:1237) and read_tx_size answers TX_4X4 on the same flag (:1208); ours tested tx_select && !skip and left lossless(fctx) in the `else if`, one branch too late (decode.rs:48259 sub-8 inter leaf, :27140 intrabc rect). Two inherited claims corrected: the oracle DOES have geometry at mi=(6,1) (its EC_ECDUMP_IN prints two TX_4X4 luma units plus one chroma unit per plane; it is ours that lacks it), and a broken ICDF mirror at the fork (15299 vs 22401; 32768-15299=17469) means DIFFERENT SYMBOLS read one step out of sync -- which a wrong CDF row cannot produce. The candidate fix was measured: c_mix5 6/6 byte-exact with the paired EC_SYMR ladder bit-identical over the WHOLE stream (96997 reads, 96997 paired, zero divergence), s_arf8 red->6/6, 4:4:4 arm red->9/9, 176x144 and 352x288 refusals removed, gate red without it at byte 33 with 33724 differing bytes. It was still REVERTED, correctly, because it regressed a supported 4:2:0 8-bit cell: testsrc2 640x480 (5 and 6 frames, same recipe) decodes at base and REFUSES with the fix, first divergence at read 184328 where the oracle reads decodeframe.c:1186 (the txfm_partition split inside read_tx_size_vartx) and we read a different n=2 symbol from the identical pre-state -- at that point our per-segment lossless(fctx) said true and suppressed the tree libaom walked. Isolated to the sub-8 hunk. lane-av1golomb320 (report landed here; its branch had ZERO lines of decode.rs -- a clean cherry-pick of the candidate was needed to re-measure): the 320x240 refusal premise does NOT reproduce at this tip (that cell decodes 6/6 and DIVERGES); the refusal reproduces at 176x144 and 352x288; it is DOWNSTREAM (first divergence is 40 extra reads stamped mi=(32,32) = the 48x16 bottom-right sliver of 176x144, every one tag=all_zero side=4 chroma txb_skip with the BIT POSITION FROZEN at 36288, i.e. a walk that ran off the end of the tile, while the abort fires 11970 reads later); and it independently reproduced the 640x480 regression. It also established that our read_golomb has the same length>20 cap as libaom (decodetxb.c:22-43) and that the difference is overflow handling: aom_internal_error abandons the PICTURE via longjmp, our Err unwinds the whole stream (1 dump instead of 7) -- so the cap is not the bug and stays. Two follow-up lanes are running: Agent05 (make our per-segment lossless answer agree with libaom's xd->lossless[segment_id] so the conjunct can land without the 640x480 regression) and Agent23 (the off-tile walk at the bottom-right partial superblock).
refutation pass on the 4:4:4 palette window: PASS, and its two live risks closed rather than notedAhmet Kaan Gümüş · 7929331
refutation pass on the 4:4:4 palette window: PASS, and its two live risks closed rather than noted
lanes/refute-av1444d10.report.md (reviewer seat, transcribed verbatim) reproduced the lane's numbers with
its OWN instruments: a one-byte-wrong-oracle shim turns the byte-exact cell red by exactly +1 (ours 216 vs
217 at byte 328192, the census's own first bad sample), the fix taken OUT gives Y 0 / U 1166 / V 1413 with a
per-frame table matching term for term, the mutation proof reds the gate at stream.rs:10848 with "ours 209
vs 216, 104 bytes differ", the five same-depth controls measure 0/0/0, and the 178-test regression scope
reproduces green at e4787782. It also verified what the lane asserted: the diff is exactly two sites with no
offsets or guards touched, and the window is a genuine no-op at nw*nh == 1 (cu_col/cu_row are 0, so the copy
re-strides the same buffer), with the cw != chroma_w shape returning `unsupported` before the windowing.
Two findings acted on in this commit, neither of them a doc-only fix:
1. P3 (decode.rs:2721-2731): CHROMA_PALETTE_WINDOW_HITS claimed to count "the units that are NOT the
block's top-left corner" but fired UNCONDITIONALLY next to both windowed pushes -- so it also fired for a
single-unit block, whose window is a pure re-stride copy of the whole buffer. That made a hit prove only
that some palette chroma block existed, while the gate reads it as its non-vacuity arm ("must be at least
1"). The hit is now guarded on the `bigger` (= nw * nh > 1) that was already in scope, so a hit is PROOF
the tiled arm ran; the doc says what the code does and records the correction. On the pinned fixture the
value is unchanged at 4 (one block, nw = 1, nh = 2, two planes, two unit rows) and the gate stays green.
2. Risk (e): palette_window indexes buf[(oy+r)*stride+ox..][..w], so a caller with a mismatched stride could
read in-bounds GARBAGE rather than panicking -- the one silent failure mode this walk must not have, and
the reviewer correctly named it as resting on an `unsupported` return elsewhere. It is now closed by a
release assert in palette_window (the shape the crate uses: 73 release asserts in decode.rs), instead of
a comment. Verified against the existing callers: palette/intrabc scope 49 passed, 444/420/lossless scope
72 passed, the pinned gate green at 4 windowed units; all with EC_AV1_REQUIRE_AOMDEC=1.
Still UNMEASURED and filed as its own debt, not silently absorbed: the nw > 1 (horizontal windowing) arm is
INREACHABLE in all 106 committed fixtures and all six 4:4:4 sweep cells (corpus-wide tracer: 16 windowed
units, every one nw = 1), so it is correct by construction and unexercised.Merge lane-av1444d10: a 32-capped 4:4:4 chroma palette walk handed every unit the WHOLE block's palette bufferAhmet Kaan Gümüş · 57ac17e
Merge lane-av1444d10: a 32-capped 4:4:4 chroma palette walk handed every unit the WHOLE block's palette buffer The cell the census flagged (s444_352x242_10b) diverged 0/1166/1413 and is now byte-exact on all 17 decode-order frames; the 106-fixture corpus goes 95 exact / 1 diverging -> 96 exact / 0 diverging, with no other fixture moving and no sample count moving on any exact cell. Gated with a mutation proof and a reachability counter; regression 178 passed / 0 failed / 2 pre-existing ignored. ROOT CAUSE, and the census's own "geometry-sensitive" framing was the wrong axis: 352x242's distinction is not frame width or height but the NUMBER OF CHROMA TRANSFORM UNITS in one block. A 32x64 luma strip's chroma plane block is also 32x64 at ss(0,0), so decode_block_rect tiles it into nh=2 chroma units of 32x32, and BOTH arms of that tiled walk handed every unit the whole block's palette prediction buffer. The read side indexes prediction[..side*side], i.e. always the buffer's top-left corner, so unit (0,1) at pixel (64,224) reconstructed the block's row-192 palette values (flat 209) where libaom writes row 224's (216). The neighbouring 32x32 PAETH block at (96,224) had that pixel as its LEFT edge, so paeth() returned "left" for 19 more columns of its own top row -- the halo was a consequence, not a second defect. libaom hands av1_predict_intra_block a ref at the UNIT's own origin (reconintra.c:1707) and read_coeffs walks the plane block with each unit's own blk_row/blk_col. Fix = window the buffer per unit via palette_window (already used by the 4x4 lossless chroma units and the luma split-transform walk; this 32-capped 4:4:4 walk was the one still un-windowed) at decode.rs:20106-20113 and :20164-20172. CLASS SWEEP, done by the lane: all ~100 set_palette_pred sites audited -- every other site either hands a whole-block buffer to exactly ONE push (correct by construction) or already windows; these two were the only whole-buffer hand-offs inside a tiled unit loop. Corpus-wide sweep of all 106 committed fixtures on both states, the five same-depth controls (320x242/320x250/352x250/416x242/416x250) 0/0/0 before and after. Filter stages exonerated by measurement, not assumption: the oracle's pre-filter dump equals its final dump on every sample of frame 0 (deblock/CDEF/LR/superres inert), and our pre-filter diff set is EXACTLY our final diff set, so the defect is pre-filter prediction. ATTACK SURFACE, stated rather than hidden: the counter's floor of 4 is a reachability floor from one stream, not a census; the horizontal windowing (nw>1) and a 12-bit variant were NOT built, so nw>1 is unmeasured; the 4:2:2 header guard and the known-broken 4:2:0 group-tail SKIP arm were not touched.
lane-av1444d10 (REPORT): the census cell is a chroma PALETTE PREDICTION window, fixed and gatedAhmet Kaan Gümüş · 76c5a85
lane-av1444d10 (REPORT): the census cell is a chroma PALETTE PREDICTION window, fixed and gated Records the reproduction (0/1166/1413, unchanged at my tip), the stage exoneration that decided prediction over residual (the oracle's own PREFILT equals its FINAL over every low byte; our PREFILT diff set equals our FINAL diff set), the named expression with libaom and ours side by side, the geometry answer (the discriminator is chroma TRANSFORM UNIT COUNT, not frame width or height), the corpus-wide before/after over all 106 committed fixtures, the mutation red-then-green evidence, and what a reviewer should attack first.
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.
annotate: the ctattr report DID carry the 4:2:2 fix -- my merge message is what understated it, and the census verdicts predate itAhmet Kaan Gümüş · 323c242
annotate: the ctattr report DID carry the 4:2:2 fix -- my merge message is what understated it, and the census verdicts predate it Two annotations, no content rewritten: 1. lanes/av1422ctattr.report.md: its own title says the defect is FIXED and all seven cells byte-exact, so the report was complete. What was incomplete was MY merge message for 1686dc8a: I wrote it from the lane's short output (attribution + rungs) and never read the report before writing the merge, so the commit reads as instruments-only when it actually carried the last 4:2:2 corpus fix (`b8eed69f`: `sub8_leaf_chroma422` now predicts the DV frame copy for a SKIPPED intrabc chroma leaf, libaom `decodeframe.c:1040-1043` -- `predict_inter_block_visit` runs regardless of `skip_txfm`). The note also names the independently reproduced mutation evidence in lanes/av1422ctintrabc.report.md. 2. lanes/av1422census.report.md: measured at cc9f2668, i.e. 23 minutes BEFORE that fix, so its DIVERGES verdicts for Q_odd320x242 / O_odd322x242 / AB_inter_warp_odd / S_odd326x242_10b (and same-class fresh cells) describe the earlier tree. Its comparator work, cell derivation, liveness proof and negative controls all stand; only the verdict column is affected, and lanes/av1422census2.report.md re-derives the table with the delta. The lesson for the next merge: read the lane REPORT, not the lane's summary line, before writing a merge message -- a summary can omit a source change and a merge message is the permanent record.
av1422ctintrabc (report only): the intrabc chroma copy geometry is SOUND; the defect was ARM ORDER, and that fix landed inside the attribution merge 1686dc8aAhmet Kaan Gümüş · 789274c
av1422ctintrabc (report only): the intrabc chroma copy geometry is SOUND; the defect was ARM ORDER, and that fix landed inside the attribution merge 1686dc8a
The four corpus cells (Q_odd320x242 0/9603/14456, O_odd322x242 0/985/722, AB_inter_warp_odd 0/3705/4366,
S_odd326x242_10b 0/301/751) plus the fresh reproducer R422_320x242 (0/6337/8398) are ALL BYTE-EXACT on
every plane of every decode frame on the current tree -- 0 after, and the two battery controls
(R_odd322x240, V_tile2x2_odd) exact before and after.
DISCLOSURE, because the record needs it: the fix is commit b8eed69f, which rode inside the merge
1686dc8a (lane-av1422ctattr) and was NOT mentioned in that lane's report or in my merge message for it.
It replaced `if skip {` in sub8_leaf_chroma422 with
`if let Some(dv) = intrabc_dv.filter(|_| skip) { <bilinear frame copy at the DV> } else if skip {`: a
SKIPPED intrabc 4:2:2 chroma leaf now predicts its DV frame copy instead of pushing a flat intra mode.
libaom's reason, quoted from this lane: `decode_token_recon_block` takes the INTER arm for an intrabc block
(`is_inter_block` counts it) and `predict_inter_block_visit` runs `dec_build_inter_predictor` REGARDLESS of
`skip_txfm` (`decodeframe.c:1040-1043`) -- only the residual read is dropped. Chroma-only because
`dec_build_inter_predictor` breaks non-chroma-reference planes (`:702`); luma was already ordered
correctly, which is why Y stayed 0 on every frame; and skip gates only the residual read, never the parse,
so the divergence was pure pixels with no desync. The seed's 182 was our DC built from an edge pair the
oracle never read; the oracle's 202 is a bilinear copy of a flat 202 region at DV (col 0, row -1024).
VERIFIED INDEPENDENTLY, not taken on trust: the arm order was reproduced by MUTATION (restoring the old
order re-creates the divergence), the flip control bites on BOTH states (a single flipped oracle U byte
moves the count by +1 before and after), and all four named suspects are refuted with reasons rather than
assertions -- (a) the DV's per-axis chroma scaling matches libaom's `clamp_mv_to_umv_border_sb` term for
term; (b) the source-origin rounding difference is STRUCTURALLY UNREACHABLE (even mi_col only ever pairs
with an 8px leaf and odd mi_col only with a 4px leaf; the divergent combination cannot occur, and 12 of 12
reached calls are (8,4) at even mi_col); the rest are in the report. Regression 181 passed / 0 failed /
2 ignored.
HANDED OVER, NOT PATCHED: one measured latent gap -- a 4x8 chroma-leaf extent with reach 0 of 12 -- is
named in the report with its evidence rather than guessed at, and the W/X/Y witnesses are stated honestly
as a NO-DISTURBANCE control (they are exact in the BEFORE state too, so they do not discriminate; the
discriminating evidence is the four cells plus the mutation).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.