Commits
2026-09-30
lane-av1422seed r2: the comparator is proven to BITE -- 324/324 flip arms, and the merged fix re-measured hereAhmet Kaan Gümüş · 358ec13
lane-av1422seed r2: the comparator is proven to BITE -- 324/324 flip arms, and the merged fix re-measured here No decoder change. lane/av1422luma 459e425d (main 298be661) closed the arm this lane localised; this round checks the claim instead of restating it, and closes the one hole this report had named against itself twice (§1.1 and §7: "the flip control was not run"). scripts/flipctl-422.py flips ONE sample and requires the wrong-sample count to move by EXACTLY +1 in that plane and 0 in every other plane, in both directions: the oracle arm (one ffmpeg sample, which on a 0/0/0 cell is the only thing that can move) and the ours arm (one of our samples, which is the direction every number in this report is read in). It maps decode->display ONCE and pins the mapping across the flip, because the census's own flipctl.py re-derives that mapping from LUMA identity inside every compare() call and a flipped sample destroys the very key it maps on -- the control aborted instead of measuring, which is why it had never run rather than merely never been run. Every decode->display SOLUTION is exercised, so an ambiguous mapping cannot hide a failure behind the one that got picked. 324 arms, 324 PASS, 0 FAIL: five s422 target cells, s422_416x250_10b, two 4:2:0 and two 4:4:4 cells, two shown display frames each, three sample indices per plane, both depths, all baselines 0/0/0 -- so every arm is a +1-off-zero test. The 2-solution mapping class (s420_352x242_10b, hidden frame 16, 72 arms) is included, which is where a comparator that quietly picks one assignment shows. Independently re-measured on main 298be661 with the local-only 4:2:2 probe bypass, reverted after (git diff main -- crates/ empty; the sequence-header refusal at stream.rs:1803 is intact): all five target cells 0/0/0, 4:2:0 and 4:4:4 controls 5/5 byte-exact, s422_* sweep 17/18 with s422_384x240 unchanged at 0/1780/1871 -- the frame-1 altref residual lane/av1422late owns. Report §9 records one trap worth keeping: the first re-measurement of this round ran against a STALE main ref (0c77bad5, cached before the merge) and reproduced the pre-fix numbers exactly. Nothing about that result distinguished "the fix does not work" from "the branch pointer is old"; re-resolving main is what turned the same command into 0/0/0. Same class as stale-binary false readings, on the ref instead of the binary. §9.3 states what is still NOT measured: the POST-fix sentinel census was not re-run (the scan remains the temporary uncommitted edit §8 step 3 describes). Coverage on the merged tree is argued, not censused -- an unwritten sample still holds PLANE_SENTINEL 0xDEAD = 57005, above the 10-bit maximum and unreachable by ffmpeg at either depth, so per-plane byte-exactness on every shown frame cannot coexist with one -- and that inference is labelled as such rather than presented as a census.
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to moveAhmet Kaan Gümüş · 8f27385
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to move This lane's commit 33cb2d0b recorded the defect localised and the fix not landed. It has since been landed by lane-av1422luma (459e425d) on top of this lane's write-side hunk, so the report is amended rather than left to claim a stale "not landed" verdict. No decoder change is added here. New §3.3: all six cells of the family byte-exact vs ffmpeg 8.1.3, 16 shown frames -- s422_320x246 0/7810/5531 -> 0/0/0, s422_322x240 0/22003/21625 -> 0/0/0, s422_322x246 0/3437/2222 -> 0/0/0, s422_352x242_10b 0/4653/3777 -> 0/0/0, s422_416x242_10b 0/5740/4348 -> 0/0/0, s422_416x250_10b 99011/61486/60106 -> 0/0/0. 25 of 26 swept cells byte-exact; s422_384x240 unchanged at 0/1780/1871 on its own residual (luma-exact on both sides of the change, first bad frame 1) and must not be attributed to this arm. 4:2:0 and 4:4:4 controls unchanged. The landed shape is recorded in full because the lesson is the SHAPE, not the one line: one predicate own422 = ss_x==1 && ss_y==0 && horz drives FIVE edits -- the chroma plane block (bw>>ss_x, bh>>ss_y), pair_mi -> lmi, the chroma origin (px>>ss_x, py>>ss_y), BOTH chroma context gathers (around_mi_422_chroma at ss (1,0), around_mi_rect kept at 4:4:4 where a chroma column IS a luma mi column), and -- the half this lane never named -- the mi-map publication record_uv_mode_mi plus the two left/above skip loops at (lmi, bw, bh). has_chroma is NOT the missing piece; this lane's §4 candidate 1 is disproved (the caller's predicate already holds for every HORZ strip, 56 in frame 0). Why every half was needed: the gather's LEFT flag was read one mi row high (ours ctx 2, oracle ctx 8), all_zero decoded 1 instead of 0, the frame desynced -- one constant read from three places. That is why the write-side-only attempt regressed luma 0 -> 5958.
lane-av1422seed: the frame-0 4:2:2 seed is decode_rect4_16_intrabc's 4:2:0 pair geometry at ss (1,0) -- LOCALISED, fix not landedAhmet Kaan Gümüş · 74d4dbb
lane-av1422seed: the frame-0 4:2:2 seed is decode_rect4_16_intrabc's 4:2:0 pair geometry at ss (1,0) -- LOCALISED, fix not landed ATTRIBUTION. A wrong-sample diff cannot say whether a block was written at all. The crate's own EC_AV1_PLANE_SENTINEL fill (0xDEAD into the uninitialised plane) can: on s422_320x246 decode frame 0 it reports luma 0 unwritten runs and, for U and V alike, exactly four -- rows 128..131, cols 144..151. The only three MC writes in that frame are plane=0 x=288 y=128 w=16 h=4 (the strip's luma, exact) and plane=1/plane=2 x=144 y=62 w=8 h=4 (its chroma, 66 rows too high). The strip's own 8x4 chroma at (144,128) is never written. Owner: decode.rs:18162 decode_rect4_16_intrabc, whose 4:2:0 1:4 PAIR rule (is_chroma_reference, av1_common_int.h:1454) is applied at every ss except the 4:4:4 own444 arm. 4:2:2 is the SECOND ss where the rule does not hold -- is_chroma_reference ends in `|| (subsampling_x == 1 && subsampling_y == 0)` -- and it was never given an arm. Three constants carry it: cw/ch (accidentally already right at 8x4), pair_mi (lmi, not lmi.0-1), and cpx/cpy ((px>>ss_x, py>>ss_y) = (144,128), not (pair_mi.1*MI/2, pair_mi.0*MI/2) = (144,62)). The two chroma coefficient gathers at 18574/18635 must move with them. MEASURED, and NOT LANDED. The write-side half regresses luma: 0 -> 5958 wrong luma samples in frame 0 of s422_320x246, and all five slice cells then fail luma identity. Control: git stash push the one file, rebuild, re-run -> main's numbers reproduce to the sample (0/7810/5531, 0/22003/21625, ...), and two runs of one binary are sha-identical, so it is the change, not a flake. Moving the gather as well does not restore luma, so the remaining half is not the gather's extent alone -- most likely has_chroma itself (at ss (1,0) EVERY strip codes chroma, so an even-row HORZ strip passed has_chroma=false must become true). Write the 4:2:2 arm whole: origin, extent, has_chroma, entropy set and context gather together. lane-av1422luma (Agent07-4) independently localised a LUMA desync in this same function; ownership split by message, this lane's write-side hunk is not landed and no decoder change is in this commit. INSTRUMENT (committed). scripts/cmp422-ffmpeg.py + run422-ffmpeg.py: ffmpeg 8.1.3 is the pixel oracle, geometry from the SEQUENCE HEADER via ffprobe, per- frame plane attribution, bps-wide wrong samples, a zero-frame count is a hard error, and the decode->display mapping is DERIVED: ffmpeg emits 16 shown frames against our 17 decode-order dumps and a real altref REORDERS display against decode (measured: decode f2..f8 -> display 7,3,1,2,5,4,6), so frame identity is carried by the luma plane under an enumerated assignment that must agree on the counts. Five controls (4:2:0 x3 incl. 10-bit, 4:4:4 x2) read BYTE-EXACT 0/0/0 before and after. All five slice cells reproduced: chroma only, luma exact, first divergence decode frame 0 U row 62, region 16 chroma columns from the right edge in all five -- one defect at five geometries, not a depth property. NOT MEASURED, stated: the sample-flip control was NOT run (the controls above are byte-exact cells, not flip arms); no permanent gate was added, because with the fix unlanded it could only assert a failure. s422_384x240 (first bad frame 1) is a different seed. The 4:2:2 sequence-header refusal is untouched: stream.rs:1803 reads `if seq.subsampling_x != seq.subsampling_y`.