Commits
Commits on
46f2dab282b8fc2e6ff83a39af27c2d193e6bbbd2026-09-30
lane-av1oddgolomb: the fork is the partition walk's child advance after a 32x32 SPLIT; the sign/Golomb tail is a consequenceAhmet Kaan Gümüş · 46f2dab
lane-av1oddgolomb: the fork is the partition walk's child advance after a 32x32 SPLIT; the sign/Golomb tail is a consequence Candidate 1 is REFUTED. Oracle EC_TRACE partition symbols against our EC_AV1_TRACE, frame 0 of 320x236: step oracle value ours value 3 mi(0,0) bsize=9 (SPLIT) 3 partition_w32 mi=(0,0) 3 4 mi(0,0) bsize=6 0 partition_w16 mi=(0,0) 0 5 mi(0,4) bsize=6 8 partition_w16 mi=(0,1) 8 6 mi(4,0) bsize=6 2 partition_w16 mi=(1,0) 2 7 mi(4,4) bsize=6 2 partition_w16 mi=(1,1) 2 8 mi(0,8) bsize=9 3 partition_w32 mi=(0,8) 3 Every VALUE matches. Only the child COORDINATES differ, and only for the 16x16 children of a 32x32 SPLIT: libaom steps 16 px (4 mi), we step 4 px (1 mi), so our walk re-enters the interior of the leaf it just decoded and reads a PARTITION_HORZ_4 + a palette block that libaom never reads there. That is the 312 bits. The 32x32-level advance agrees (step 8), so the bug is one stride in one arm, not the whole walk. No decoder change; the tree matches 0224d10c. The exact line is NOT located and I did not edit blind -- the report names the arm and the deciding measurement (compare the SPLIT arm's stride against its HORZ/VERT siblings, which step correctly at the 32x32 level).
Merge lane-av1oddluma: the remaining two 4:2:0 cells are an ENTROPIC fork at read 6 (report only)Ahmet Kaan Gümüş · 9f86b7c
Merge lane-av1oddluma: the remaining two 4:2:0 cells are an ENTROPIC fork at read 6 (report only) Red-before with the live comparator and the +1 control (flipping oracle byte 0 moves Y by exactly +1 on both cells): 320x236 Y 234349 / U 56957 / V 52981, 0/16 frames exact, frame 0 Y 11198; 322x248 Y 36286 / U 13359 / V 13001, frame 0 Y 2170. Framing corrected: that is 15% and 2.7% of a frame, not whole-frame divergence -- sparse. Entropic, and pinned to a read: pairing EC_ECDUMP_IN by (value, range), reads 0-5 are identical with our constant +15 bit convention, and the offset BREAKS at read 6 -- inside the first TX_8X4 luma unit of the 8x8 block at mi (0,4), the unit right after the 16x16 block at mi(0,0). Our side consumes 312 extra bits inside that one unit. Ruled out WITH evidence, not assumption: block walk order (the 16x16 at mi(0,0) -> its U -> its V -> the next block at mi(0,4) matches the oracle's EC_ECDUMP mi/bc/br sequence); all_zero (1,1,1,0,0,0 both); eob (3, 50, 50 both); the scan table; the coefficient PLACEMENT (the oracle's positions transposed by (p%8)*8 + p/8 are EXACTLY ours); and the CDF row/context (c=48 ctx=22, c=46 ctx=21, c=42 ctx=21, c=38 ctx=22, c=49/47 level=1 all identical). Two candidates named for the deciding measurement, in order: the SIGN/GOLOMB TAIL of the V-plane 8x8 unit (eob=50 with mostly-zero base levels is tail-shaped, and 312 bits is tail-sized), else a unit count difference. No decoder change; the tree is byte-identical to 5b27ed79.
lane-av1oddluma: 320x236 / 322x248 are an entropic fork at coefficient read 6; narrowed, not fixedAhmet Kaan Gümüş · 5fad710
lane-av1oddluma: 320x236 / 322x248 are an entropic fork at coefficient read 6; narrowed, not fixed Not the tx_type class: both carry LUMA errors, which a chroma tx_type change cannot produce. Frame 0 (the keyframe) is already wrong in both, so no propagation, no MC, no loop filter. Divergence is entropic. Pairing EC_ECDUMP_IN by (value, range) on both sides, reads 0-5 are identical and read 6 differs (ours side=4 ctx=2 bit=1010; oracle TX_8X4 at plane 0 mi=(0,4) ctx=1 bit=683) -- 312 extra bits consumed inside one unit. Measured and ruled out: block walk order, all_zero (1,1,1,0,0,0), eob (3,50,50), the coefficient scan, the coefficient placement (the oracle's positions transpose exactly to ours under (p%8)*8 + p/8, and default_scan_gen is the documented row-major transcription of libaom's column-major table), and every base ctx/level on the read-5 unit. The deciding measurement is named in the report: diff the sign / post_golomb tail of the V-plane 8x8 unit (EC_COEFF_STEP tag=sign|post_golomb vs our TRACE dc_sign|golomb). If the first differing c is a Golomb-bits read the bug is in the b-plane Golomb context, not in any scan or table. The 'dimension not a multiple of 8' trigger is FALSE: 324 is 4 mod 8 and 324x240 is exact; 236 is 4 mod 8 and 320x236 fails. No geometric split in the data, so no trigger rule is claimed. No decoder change; the tree matches 5b27ed79.
ec-av1: bind the 10-bit film gate's pin names as literals so the fixture census can prove themAhmet Kaan Gümüş · 9714b2b
ec-av1: bind the 10-bit film gate's pin names as literals so the fixture census can prove them
lane-film10fix's decode-order gate built its pin name from a loop variable, so
`crate_pin(pin)` handed the helper a runtime string: the fixture-library census cannot
resolve it and invariant 4 reported the gate as UNPROVEN ('name built at runtime -- this
census cannot resolve it'), which turns the suite preflight RED on a tree whose tests all
pass. Same class as the earlier flags-built-by-format! blind spots: the gate is correct,
the CENSUS cannot see it.
Fix: the pin paths are bound once from literals into an array and the loop iterates that,
so the argument to crate_pin is a literal at the call site. `the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame`
still passes (1 passed), and invariant 4 no longer names it.Merge lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTXAhmet Kaan Gümüş · 1d5fb9c
Merge lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX libaom (av1/common/blockd.h, quoted in the report): the chroma unit's tx_type is the SAME xd->tx_type_map cell the luma unit stamped (scaled by subsampling_x/y), then reduced by the INTER transform set -- and at 32 points that set is EXT_TX_SET_DCT_IDTX, whose name says it: DCT_DCT plus IDTX, so av1_ext_tx_used[DCT_IDTX][IDTX] is true and the luma's coded IDTX survives. The clamp to DCT_DCT is txsize_sqr_up_map[tx_size] > TX_32X32 (64 and up), NOT >= 32. Ours was a HARDCODED '32-point chroma is DCT_DCT' rule in read_plane and read_rect_chroma_unit, ordered BEFORE the armed intrabc_chroma_tx slot, so an intrabc block's inherited IDTX was never even consulted. read_inter_plane was already correct (reduce_inherited_chroma_tx_type's sqr_up == 32 arm IS libaom's inter set verbatim); only the two intrabc readers that go through read_plane / read_rect_chroma_unit were wrong. Both now resolve intra / inter-armed / size separately, so the only behaviour change is: a 32-point chroma unit of an intrabc block moves from DCT_DCT to IDTX, and only when the luma coded IDTX (the slot is armed exclusively under intrabc_dv.is_some(), both set sites verified). 64-point chroma still reduces to DctDct, intra chroma at 32+ untouched, sub-32 units byte-identical, lossless clamp untouched. Proof: 420_oddheight_320x232.obu U 5772/V 12086 -> 0/0/0, 16/16 frames exact; a fresh 320x248 U 14343/V 16310 -> 0/0/0; the 27-cell sweep goes 19 -> 25 exact (newly exact 320x232, 322x232, 324x232, 320x248, 324x240). The non-vacuity control is re-run AFTER the fix (flipping a real oracle byte moves the count by exactly +1 in the right plane and spoils exactly one frame), and the tripwire gate is FLIPPED as required: the_pinned_420_oddheight_witness_is_pinned_and_decodes_byte_exact asserts (0,0,0) with exact == frames, with a mutation proof (restoring DctDct reds it by name with left (0,200,17658) vs right (0,0,0)). Two cells still diverge with LUMA errors (320x236 Y 234349, 322x248 Y 36286) -- a separate, unlocalised mechanism, disclosed in the report's not_done rather than folded into this claim. Conflict resolution in stream.rs: lanes film10fix and chrtx both appended to the control area. Kept film10fix's ffmpeg-comparator control whole (ours), took chrtx's new count_rawvideo_diffs 3-arg call and its flipped gate, and repaired the doc comment the splice left describing the superseded ratchet.
lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX; fix the tx_type clamp and flip the tripwireAhmet Kaan Gümüş · a3e343b
lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX; fix the tx_type clamp and flip the tripwire libaom's av1_get_ext_tx_set_type (blockd.h) resolves a 32-point chroma unit to EXT_TX_SET_DCT_IDTX when the block is_inter, and av1_get_tx_type's chroma branch reads the SAME xd->tx_type_map cell the luma unit stamped. So an Intra-Block-Copy block whose luma coded IDTX runs the IDENTITY transform on its chroma. read_plane and read_rect_chroma_unit both hardcoded '32-point chroma is DCT_DCT', reading libaom's clamp as tx_size_sqr_up >= TX_32X32 when it is txsize_sqr_up_map[tx_size] > TX_32X32 (64 and up). That arm ran before the armed intrabc_chroma_tx slot could, so the inherited IDTX was swallowed and a 32-point IDCT ran where libaom ran a plain copy of the dequantized coefficients >>2. Confined to 32-point chroma of an intrabc block whose luma coded IDTX: 64-point chroma still reduces to DctDct, intra chroma at 32+ is untouched, sub-32 units are byte-identical. - 320x232 and 320x248: 0/0/0 wrong, 16/16 frames exact each. - Comparator control re-run: a flipped oracle byte reports exactly +1 in the right plane and one fewer exact frame. - 27-cell sweep 19 -> 25 exact. 320x236 and 322x248 still fail, both with LUMA errors -- a separate odd-dimension defect, not claimed here. - 4:4:4 chroma-tx gates pass; scoped intrabc/chroma run 68 passed, 0 failed. - Ratchet flipped to exactness and renamed the_pinned_420_oddheight_witness_is_pinned_and_decodes_byte_exact; mutation proof reds with exactly the pre-fix (0, 200, 17658). - The old non-vacuity test relied on the witness differing and was vacuous once it was exact; replaced by the_counting_oracle_diff_detects_one_flipped_oracle_byte.
Merge lane-film10fix: the two 'pre-existing 10-bit film' divergences are ALREADY EXACT (report + two controls)Ahmet Kaan Gümüş · 60a0116
Merge lane-film10fix: the two 'pre-existing 10-bit film' divergences are ALREADY EXACT (report + two controls) Both charter-named cases measure 0 wrong on every plane on main: reelc_sb128_inter_witness.obu (177773 B, sha256 09d99594...) with 15 shown frames and 13/13 counters firing (warp_plane_suppress=15, cdef_idx=852, interintra_rect=118, obmc_edge_span=33, tr_reach_longer_side=600 ...), and gm_small_side_witness.obu (1158066 B, sha256 f1cdbcbb...) with 33 shown frames and 3/3 counters (gm_nontrans_small_side=1, tr_reach_longer_side=2295, uv_mode_grid_override=138). Both are also byte-exact against the instrumented aomdec on ALL 50 decode-order frames, including the one hidden frame each. The debt line was STALE: no lane report defers these to a '10-bit film round' -- the nearest record (lanes/av1444.report.md:251-269) says they FAILED at 1ad7e0fc/b9530604, were attributed to that lane's own record_uv_mode_mi change and were fixed there. Lands two controls the previous audit left as read-only: every_ffmpeg_comparator_reds_on_a_one_sample_wrong_ffmpeg (7 arms -- a PATH shim running the REAL ffmpeg and rotating one sample per plane, so the helpers are red on Y, U and V separately and a chroma-dropping helper cannot pass a luma-only arm; the ffmpeg half is exactly what both film gates rest on) and the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame. Report hygiene: the lane's JSON quoted tip sha 9944fa1b9c1c0b2e6b7e5b1e8f3d2a4c6b8e0f12, which does not exist -- the real tip is 9944fa1bd6cbf0c5906ad3f7eeeae5e4b3a09ba7 (correct prefix, invented tail). The other full shas quoted by lanes this wave were each verified to exist.
gate: the two "pre-existing 10-bit film" divergences are exact; control the ffmpeg comparator and the hidden frameAhmet Kaan Gümüş · e2357b9
gate: the two "pre-existing 10-bit film" divergences are exact; control the ffmpeg comparator and the hidden frame
Measured both charter-named 10-bit film cells on main (3f08ae3f) before
believing the debt line. Both are already exact, so there is no divergence to
localize and no mechanism to name:
a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_...
15 shown frames pixel-exact on every plane, 13/13 path counters fire
a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_...
33 shown frames pixel-exact on every plane, 3/3 counters fire
The debt line is stale. lanes/av1444.report.md:251-269 records the opposite:
those two gates FAILED at 1ad7e0fc / b9530604, were attributed to that lane's
own 4:4:4 record_uv_mode_mi change (class override-slot-on-one-arm), and were
fixed there. No lanes/ report defers these two cases to a 10-bit-film round.
Both film gates declare "pixel-exact on every plane" using nothing but
ffmpeg_decode_sequence_10bit's output. Verified live with a PATH shim that runs
the REAL ffmpeg and rotates exactly one byte of its rawvideo stdout, per
plane: 6 of 6 arms red (Y/U/V on both streams), each naming the tampered
plane. The comparators read the oracle.
Two real gaps closed instead.
1. every_ffmpeg_comparator_reds_on_a_one_sample_wrong_ffmpeg (7 arms).
lane-av1cmpaudit2 controlled the five aomdec comparators; the ffmpeg half --
the half both film gates rest on -- was audited by READING only. Reading
proves it is live today; only a deliberately wrong reference proves it can
FAIL. Adds a thread-local ffmpeg override (same shape and reason as the
existing set_oracle_path: a process-global PATH edit leaks the tampered
reference into sibling threads, and the crate denies unsafe_code) and
routes all three ffmpeg_decode_sequence* helpers through it.
arm 1, real ffmpeg: 8-bit 4:2:0, monochrome and the 10-bit film pin all
count zero. arm 2, one sample wrong PER PLANE: red on Y, U and V
separately, per helper. Per-plane rather than one arm because a helper that
dropped chroma would pass a luma-only arm and leave both film gates green
with chroma unchecked for 15 and 33 frames.
Mutations, both reverted: (a) revert ffmpeg_decode_sequence to the bare
"ffmpeg" -> "3 of 7 arms stayed GREEN, counted [0,0,0], expected [1,0,0]";
(b) make ffmpeg_decode_sequence_10bit return zeros for V -> "left:
[0, 0, 5702400], right: [0, 0, 0]" -- the retracted av1422remeasure defect
reproduced inside the 10-bit helper.
2. the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame.
Both film gates compare SHOWN frames only (ffmpeg emits shown frames only),
so 1 of 16 and 1 of 34 decode-order frames per stream sat outside every
gate -- class gate-blind-to-hidden-frames. Their doc comments claim the
hidden frames were compared byte-exact against aomdec; that measurement
lived in a lane report, so nothing re-ran it. This gate runs
decode_all_frames_vs_oracle on both pins and asserts the frame COUNTS
(16 = 15+1, 34 = 33+1) before the byte compare, so a stream that lost its
hidden ARF cannot make the compare cover less than it claims. Measured
exact: 50 decode-order frames, all three planes.
Mutation, reverted: one byte wrong in our EC_AV1_FINAL_DUMP write ->
"decode-order frame 0 of 16 differs from the oracle at byte 7 (ours 128
vs 0), 1 bytes differ".
Sweep on this branch, 11 cells, 0 regressed: both charter cells above, plus
frame_edge_mv_clamping (52 frames), rect64_corner_tus (33),
hidden_arf_split_superblock (37), intra_1to4_strips (127 strips),
film_grain (grain_hits=1), the monochrome gate, and both comparator
controls. cargo check -p ec-av1 --all-targets: 0 errors, 0 warnings.
not_done is in the report: the 8-bit reference helper's frame-size formula
(w*h + 2*(w*h/4)) is wrong for ODD dimensions -- 4:2:0 chroma on 65x65 is
ceil(65/2)^2, not 4225/4 -- but it fails loudly through frame_count_diagnosis,
so nothing is mis-gated, and the control uses 320x240 for that reason. No full
suite run (Main's job).Merge lane-av1422h232: the odd-height 4:2:0 divergence is a CHROMA TX-TYPE error, not geometry (report only)Ahmet Kaan Gümüş · 7430eb4
Merge lane-av1422h232: the odd-height 4:2:0 divergence is a CHROMA TX-TYPE error, not geometry (report only) Narrowed to a named mechanism with the deciding measurement: for an inter/intrabc block whose LUMA transform codes IDTX, our decoder resolves the 32-point CHROMA transform type to DctDct while libaom inherits the luma's IDTX (TX_TYPE 9). Coeffs are byte-identical -- aomdec EC_DQCOEFF plane=1 txsize=3 txtype=9 eob=7 nz=0:-105,32:-80,64:-60,96:-40 vs ours the same quantized -6,-4,-3,-2 at side=32 -- so only the transform differs, and the residual identity closes it: IDTX makes the oracle's row-96 residual exactly the dequantized coefficients >>2 (-105>>2=-26, -80>>2=-20, -60>>2=-15, -40>>2=-10) against a flat 202 prediction. Entropy is identical (EC_ECDUMP_IN plane=1 mi=(48,64) tx=3 is (19742,34733,25032) oracle vs (19742,34733,25047) ours, same msac state in and out; our ctx=2 vs oracle ctx=9 is the table's baked-in +7 chroma offset). Red-before on the pinned 420_oddheight_320x232.obu: Y 0, U 5772, V 12086, 0/16 frames exact; keyframe block is a 64x64 intrabc at (256,192) with chroma 32x32 at (128,96) clipped to 32x20 at the bottom edge, luma correct and chroma PREDICTION correct (aomdec reads the identical block: EC_ISTEP name=intrabc val=1, EC_DV dv_col=0 dv_row=-1344), so neither the copy nor the entropy is implicated. Non-vacuity control: flipping byte 0 / 90000 / 1781000 of the REAL oracle dump moves the count by exactly +1 in the right plane and frame. Sweep: 27 cells (widths 320/322/324 x heights 224..256) -- 19 PASS. The trigger is CONTENT, not geometry: an inter/intrabc block whose luma codes IDTX and whose chroma plane block reaches 32 points with a nonzero coefficient (every failing cell carries txtype=9 with the 0,1,2,...,5,32,33 nonzero index signature of an identity transform). No fix shipped: one deciding read of libaom's chroma tx-type resolution was left undone rather than guessing a bit-exact decoder.
lane-av1422h232: the 4:2:0 odd-height defect is an IDTX/DCT_DCT chroma tx_type loss at 32 points; report only, no fixAhmet Kaan Gümüş · 8de1682
lane-av1422h232: the 4:2:0 odd-height defect is an IDTX/DCT_DCT chroma tx_type loss at 32 points; report only, no fix Measured with a comparator that reads the oracle's bytes (one flipped oracle byte moves the wrong count by exactly +1, in the right plane and frame) on a frame-0 block that is a 64x64 Intra-Block-Copy at (256,192) with luma tx_type IDTX. Coefficients match aomdec exactly (eob=7, levels 6/4/3/2, msac state equal in and out), but aomdec's EC_DQCOEFF says txtype=9 (IDTX) for the 32-point chroma unit while we resolve DctDct. IDTX residual = the dequantized coefficients >>2, which reproduces the oracle's row 96 exactly (-105>>2=-26, -80>>2=-20, -60>>2=-15, -40>>2=-10). 27-cell sweep: 8 fail, and the rule is content, not geometry -- every failing cell carries txtype=9 32-point chroma units. 320x236's luma failure (234349 wrong Y) is a separate, unlocalised defect. No code change; the tree matches main. The ratchet gate must still be flipped to (0,0,0) by whoever lands the fix.
Merge lane-av1cmpaudit2: every oracle comparator is live, and a control test now guards the tautology classAhmet Kaan Gümüş · 1c33714
Merge lane-av1cmpaudit2: every oracle comparator is live, and a control test now guards the tautology class The class a lane fell into tonight (a counter that packed our decoded samples and compared them against the SAME samples while loading aomdec's output and never reading it, reporting 0 wrong on 18/18 cells) is now swept. Every comparator in the crate was audited by reading where it reads the oracle bytes and where it compares: assert_rawvideo_matches (5568/5588/5595), decode_all_frames_vs_oracle (10301/10302/10310), count_rawvideo_diffs (10369/10386), key_frame_diffs (48384/48398), oracle_plane_diffs (49440/49452), 13 inline oracle compares (7 rawvideo, 6 final-dump), encode.rs's ffmpeg_decode family, and the ec-vp8/ec-h264/ec-h265/ec-hw rawvideo gates are all LIVE. assert_final_dump_matches does not exist under any name. Per report: only av1422remeasure is TAUTOLOGICAL (already retracted); av1chromarect-r3, av1dcunit, av1ibcfork, av1loss444, av1txctxband and av1422anom are LIVE; av1sb128fork's §1 pixel table is UNKNOWN (names no comparator and commits no gate -- superseded by av1txctxband's live re-measurement of the same witness); av1ibcfork's by-hand §5/§7 numbers came from examples/decode_probe.rs, which has no oracle call -- a caveat its committed gates do not share. Lands one committed control: every_oracle_comparator_reds_on_a_one_byte_wrong_oracle, so the class cannot return silently. Verified here by mutation: making assert_rawvideo_matches compare ours against ours reds it (0 passed; 1 failed).
report: lane-av1cmpaudit2 audit of comparator-that-never-reads-the-oracleAhmet Kaan Gümüş · 0053620
report: lane-av1cmpaudit2 audit of comparator-that-never-reads-the-oracle Per-helper table (5 helpers + 13 inline gates in ec-av1, all LIVE), per-report table over 7 recent lane reports, one UNKNOWN (a removed, unpathed probe) whose headline is re-derived at 0 wrong of 2359296 with an independently written two-dump comparator, and the not_done list.
gate: control the class comparator-that-never-reads-the-oracle with a one-byte-wrong oracleAhmet Kaan Gümüş · ec9aa3f
gate: control the class comparator-that-never-reads-the-oracle with a one-byte-wrong oracle The retracted av1422remeasure per-cell counter packed our decoded samples and compared that buffer against the same samples: aomdec's output was written, length-checked, never read, and it reported '0 wrong on 18/18'. Nothing about that mistake is visible from outside a helper, so it cannot be caught by reading one. every_oracle_comparator_reds_on_a_one_byte_wrong_oracle pins it from the other side. aomdec_path() grows a thread-local override (same shape as the existing FINAL_DUMP_PREFIX, and thread-local because the crate denies unsafe_code and a process-global env var would leak one test's tampered oracle into every sibling's comparison). The test points the override at a shim that runs the REAL aomdec and rotates byte 7 of the --rawvideo output and of EC_AV1_FINAL_DUMP frame 0, then asserts, on the byte-exact 420_odd65x65_key pin: arm 1, real oracle -> all five comparators green arm 2, one-byte-wrong -> all five comparators red Control proof: mutating all five comparators to compare our buffer against itself (the retracted defect) makes arm 1 pass and the control report '5 of 5 stayed GREEN'. Four gates that reached the oracle without lock_gate_counters() now take it.
Merge lane-av1422anom: the '18/18 byte-exact' was a tautology, and the defect is an ordinary 4:2:0 odd-HEIGHT reconstruction errorAhmet Kaan Gümüş · 86e6457
Merge lane-av1422anom: the '18/18 byte-exact' was a tautology, and the defect is an ordinary 4:2:0 odd-HEIGHT reconstruction error RETRACTION (committed as lanes/av1422remeasure.RETRACTION.md): the previous lane's per-cell counter packed our decoded samples and compared that buffer against the SAME samples -- aomdec's output was loaded, length-checked and never read -- so its '0 wrong on 18/18 cells' was a tautology and is withdrawn. What survives: the six committed 4:2:2 pins ARE genuinely byte-exact (re-verified with a correct comparator), the twelve fresh 320x240 cells are exact, and the dc-sign finding is unaffected (it rested on rung counts, not on the broken counter). THE REAL FINDING, reachable today with no bypass and no refusal: ordinary 4:2:0 diverges at frame heights 232 and 248 -- 320x232 gives 17858 wrong chroma samples of 593920 in ALL 16 frames including the keyframe; 320x248 gives 30653; 320x240/242 and 322x242 are exact, so the passing heights are not the multiples of 8 (232 and 248 are both multiples of 8 and both fail). Byte-identical numbers on 6d564cd6 and 11d366b1, so not a lane-av1odd440 regression. Localized: the wrong region is present at EC_AV1_PREFILT_DUMP and unchanged through deblock/CDEF/LR (all three filters exonerated; a --enable-restoration=0 encode still fails), and it is in the KEYFRAME, so motion compensation is exonerated too -- the defect is in block reconstruction/residual/transform, interior, not an edge. The rung-vs-returned-picture contradiction of the previous lane is also resolved: decode_frame takes the dump prefix as a parameter and the rung IS built from the returned picture (0 of 17 frames differ between a capture inside decode_frame and at the caller), so the rung was never mis-timed; the old contradiction came from the broken counter. Committed: the pin 420_oddheight_320x232.obu (15773 B), a RUNNING-count gate that asserts the current defect state as a tripwire (it must be flipped to assert exactness when the fix lands), and the report.
Merge lane-av1ichromatx: close the last block-level chroma tx_type handoff in decode_inter_blockAhmet Kaan Gümüş · 909de54
Merge lane-av1ichromatx: close the last block-level chroma tx_type handoff in decode_inter_block The recorded defect (777/640/554 wrong V samples on the pinned 444_quad_leaf_tx_type witness) does NOT reproduce on main: 0 wrong on all four frames, byte-identical to the instrumented aomdec. The recorded numbers are the MUTATION red from lanes/av1444chr.report.md, not a live measurement, and both fix commits are ancestors (6c33f204 four-unit 4:4:4 arms; 2142d2cf read_inter_rect_chroma sibling). The three sites were relocated: A and B already resolve per unit; C (the whole-plane square chroma arm's Some(luma_tx_type)) is an IDENTITY, not a defect -- its single chroma unit reads the block's own MI (0,0) cell and luma_tx_type is leaves[0]'s coded type (41 reads, 0 differ). What lands: read_inter_rect_chroma's block-level FALLBACK -- the one live block-level handoff -- is closed with debug_assert!(leaf_tx_types.is_empty()) naming the defect shape, two counters, and a gate asserting multi_fallback >= 2 so the assertion cannot go vacuous. Mutation (forcing the covering-leaf resolve to miss) reds both the assertion and the gate; 0 occurrences of the bad shape across 90 streams (87 committed pins + 3 fresh server encodes).
lane-av1422anom: RETRACT the 18/18 exactness table from lane-av1422remeasure -- the counter compared our packing against itselfAhmet Kaan Gümüş · 1954346Browse files
lane-av1422anom: the odd-width 4:2:2 anomaly is a 4:2:0 odd-HEIGHT reconstruction defect; add a counting oracle diff, its non-vacuity test, and a pinned ratchet witnessAhmet Kaan Gümüş · 45881e7Browse files
ec-av1: close the last block-level chroma tx_type site in decode_inter_blockAhmet Kaan Gümüş · 4ebd218
ec-av1: close the last block-level chroma tx_type site in decode_inter_block
The recorded 4:4:4 lossy divergence (777/640/554 wrong V samples on frames
1/2/3 of fixtures/444_quad_leaf_tx_type.obu, sha256 a06c9f7a...) does NOT
reproduce on main: that stream is byte-identical to instrumented aomdec on
all four frames, before and after this change. Those numbers are the PRE-fix
figure from lanes/av1444chr.report.md; the fixes 6c33f204 (both four-unit
4:4:4 arms) and 2142d2cf (the read_inter_rect_chroma sibling) are already
ancestors of main.
Re-located by grep, the three block-level handoff shapes are: the four-unit
arm (per-unit since 6c33f204), the rect sibling's per-unit resolve (since
2142d2cf), and the whole-plane square arm, which is an IDENTITY -- its one
chroma unit reads the block's own MI (0,0) cell, and luma_tx_type is
leaves[0]'s coded type, measured at MI (0,0) in 15/15 vartx blocks.
What remained is the rect sibling's FALLBACK: the branch taken when no luma
leaf covers a unit's own cell. It fires 4x on the pinned rect witness, all on
a multi-unit chroma plane -- the shape where a block-level value could
mistype a unit. Every observed firing has an empty leaf list, i.e. a block
that coded a SINGLE luma transform whose stamp covers the whole plane, so the
fallback is correct there; the wrong shape is a fallback while leaves is
NON-empty. Measured over the 87 committed fixtures plus 3 fresh 4:4:4 lossy
streams: 0 occurrences. Closed with an assertion rather than a comment, plus
CHROMA_RECT_BLOCK_TX_FALLBACK{,_MULTI} and a gate that asserts the guarded
shape is reached (measured 4/4) so the assertion cannot go vacuous.
Red-before by mutation: forcing the covering-leaf resolve to miss on a
multi-unit plane turns the assertion red on the same witness --
"a multi-unit rect chroma plane fell back to the block-level tx_type while 5
luma leaves were coded". Reverted; green.
Neighbours re-quoted unchanged, all compared against instrumented aomdec:
the two four-unit gates (96 quad-resolved units, 8 differing; 88/96
single-reference), the rect-sibling gate (4 resolved, 2 differing), both
4:4:4-lossless gates, and per-frame byte comparison on 8 streams (4:4:4
quadrant, rect strip, two lossless 4:4:4, a 4:2:0 control, three fresh server
encodes) -- all EXACT, 0 wrong samples per frame. cargo check --all-targets
clean.Merge lane-av1422remeasure: the 4:2:2 refusal is no longer a correctness guard (18/18 reachable cells byte-exact, report only)Ahmet Kaan Gümüş · 59edf7d
Merge lane-av1422remeasure: the 4:2:2 refusal is no longer a correctness guard (18/18 reachable cells byte-exact, report only) Re-measured on main after lane-av1422warp (ebeac9c7) landed: every reachable 4:2:2 cell -- 6 already-committed pins plus freshly encoded testsrc2/mandelbrot cells at cpu-used 0 and 6 -- decodes BYTE-EXACT against the instrumented aomdec, 0 wrong samples on any plane of any frame (up to 16/16 frames exact, 614400 samples). The recorded blocker (the dc-sign rect-path desync) is fixed and no longer load-bearing. Recommendation: the refusal is not earning its keep as a correctness guard; keep it only as a named-cell guard for 12-bit 4:2:2, which the local aomenc cannot produce. The sequence-header refusal itself is NOT changed here -- that is a shipped-capability call. No source change: git diff main..HEAD -- crates/ is empty, and the EC_AV1_ALLOW_422_PROBE bypass was patch-run-restored, in no commit.
Merge lane-av1dcunit: the 2x1/1x2 rect tiled chroma walk must give each unit its OWN above-right reachAhmet Kaan Gümüş · 73a4a77
Merge lane-av1dcunit: the 2x1/1x2 rect tiled chroma walk must give each unit its OWN above-right reach The assigned defect was already fixed on main (chromadc, e05a6ceb/2c0fd2b9, merged 15 minutes after the report that spawned the ticket measured on the older base 5324a685), and the ticket's stated mechanism is wrong for that witness: an intra-BC block never goes through av1_predict_intra_block, so there is no per-unit DC and no per-unit above/left -- the prediction is ONE whole-plane-block motion copy (decodeframe.c:686-688, reconinter_template.inc:228 makes the reference the destination itself), which is exactly what the crate's whole-plane PALETTE_PRED override is. The class sweep then found the sibling cell genuinely broken: decode_rect_split's chroma walk handed EVERY unit the block-level reach, so a 2x1/1x2 grid's units resolved has_top_right over the block's extent instead of their own (reconintra.c:196/1847). Both call sites now pass cu_reach. Verified here by mutation: restoring the block reach reds the gate at frame 0 plane U sample 49374 (x=222,y=192), 130 samples wrong -- the lane's own numbers. Declared limit: the 1x2 palette gate stays GREEN under that mutation, so it does not bite on this substitution.
lane-av1422remeasure: record main's advance to 0ea32904 and re-verify the 4:2:2 gates on the merged tipAhmet Kaan Gümüş · cc6c623Browse files
merge main (0ea32904) into lane-av1422remeasure: re-verify the gates on the current tipAhmet Kaan Gümüş · 3c54aaaBrowse files
lane-av1422remeasure: report -- the 4:2:2 gap re-measured on 6d564cd6, 18/18 cells byte-exact, the dc-sign blocker line retiredAhmet Kaan Gümüş · f33df0aBrowse files
Merge lane-av1odd440: the odd-luma 4:2:0 cell DECODES pixel-exact, and the 4:4:0 cell is not codable at allAhmet Kaan Gümüş · ef95bea
Merge lane-av1odd440: the odd-luma 4:2:0 cell DECODES pixel-exact, and the 4:4:0 cell is not codable at all
Cell 1 (4:2:0 at an ODD luma dimension) is now producible without any encoder dependence:
crates/ec-av1/examples/gen_coverage_cells.rs builds a 65x65 key frame deterministically (two runs,
same sha256), pinned as 420_odd65x65_key.obu (2305 B, sha256 66986019...) and gated by
an_odd_luma_420_key_frame_decodes_pixel_exact -- byte-identical to the instrumented aomdec (6403 raw
bytes both sides), with the gate also asserting the pin's OWN sequence header (max_frame 65x65,
subsampling (1,1)) and the decoded 65x65/33x33 extents so it cannot pass on the wrong stream.
Cell 2 (4:4:0, ss (0,1)) is proved NOT to be a codable chroma shape at all, three independent ways:
the writer sweep (180 profile/depth/mono/colour/shape combinations; the reachable set is exactly
{(1,1),(1,0),(0,0)} and an (0,0) and a (0,1) request write BYTE-IDENTICAL headers), the reader sweep
(the payload byte carrying subsampling_x is located by diffing an (0,0) against an (1,0) header and
all 256 of its values are read back -- not one parses as (0,1), with a nonzero parsed count asserted
so an empty sweep cannot pass), and the pin itself reading back (1,0). The 4:2:2 refusal string is
corrected to say 4:4:0 cannot arrive either, in both refusal-inventory copies.
Mutations: flooring round_ss to dim >> ss reds the odd-luma gate (left (1024,1024) vs right
(1089,1089), 6273 vs 6403 raw bytes); forcing the reader to read a subsampling_y bit and forcing the
writer to emit one each red the 4:4:0 gate. 155 scoped tests green.lane-av1dcunit: record that scripts/pin-gate-audit.py cannot see this gate familyAhmet Kaan Gümüş · d06d31f
lane-av1dcunit: record that scripts/pin-gate-audit.py cannot see this gate family
The audit recovers a pin name only from a literal "/fixtures/..." string, a
crate_pin("X")/pin_dir().join("X") call, or a 3+-item list. The whole r512
family (both pre-existing gates and this lane's two) builds its path as
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(format!("fixtures/{FILE}"))
off a const FILE, so the audit reports total=9/22 names, uncommitted=0 and
exits 0 -- a true pass for what it inspects and a silent gap for this family.
Recorded as not-done item 6 rather than fixed: widening the detector is its
own change with its own self-test (see scripts/pin-gate-audit.py's
raw-string/embedded-source self-test, lane-av1pinselftest) and belongs in a
lane that owns the audit. The fnv1a64 asserts in both new gates are the real
pin check and they do execute.ec-av1: the odd-luma cell DECODES and the 4:4:0 cell does not existAhmet Kaan Gümüş · 8ee7a88
ec-av1: the odd-luma cell DECODES and the 4:4:0 cell does not exist
Two coverage cells `lanes/av1formatsweep.report.md` left as declared debt,
because no encoder emits either. One is a decoder capability and is now
gated; the other is not a cell at all.
4:2:0 with an ODD luma dimension (`420_odd65x65_key.obu`, 2305 B, sha256
6698601...): aomenc rounds the coded size down to even, so the stream is
built offline by the new `examples/gen_coverage_cells.rs` through a new
`encode::encode_key_frame_at_size` -- a 96x96 card on the block grid with
a 65x65 frame header. It DECODES: 6403 raw bytes, byte-identical to the
instrumented aomdec (65*65 + 2*33*33, `ROUND_POWER_OF_TWO(65,1) = 33`).
Gate `an_odd_luma_420_key_frame_decodes_pixel_exact`; measured red-before
with `round_ss` floored: chroma 1024 vs 1089 samples, raw 6273 vs 6403.
The fixture also closed a defect the tree had documented and deferred:
`ref_chroma_shape`'s 4:2:0 arm was a `(w/2, h/2)` floor where the producer
stores `round_ss(w,1) x round_ss(h,1)`, under-declaring every
odd-dimension 4:2:0 reference. Now the producer's own crop; red-before
measured on the existing routing test (2x3: left (1,1) right (1,2)); even
sizes unchanged.
4:4:0 (ss 0,1): NOT CODABLE. Spec 5.5.2 codes `subsampling_y` only when
`subsampling_x` is 1, so the reachable set is exactly {(1,1),(1,0),(0,0)}
-- libaom's reader leaves `subsampling_y = 0` at sx=0
(av1/decoder/decodeframe.c:4171-4175) and its writer asserts
`"4:4:0 subsampling not allowed in AV1"` (av1/encoder/bitstream.c:2466).
Gate `the_440_cell_is_not_a_codable_chroma_shape` proves it in three arms
(reachable-shape sweep, all 256 values of the byte carrying
`subsampling_x`, and the pinned bytes), each with a measured mutation; the
pin `440_request_is_422.obu` is what the writer emits when HANDED (0,1)
-- it lands on (1,0) and still refuses by name. The 4:2:2 refusal string
and both inventory copies now say 4:4:0 cannot arrive either.4:4:4 2x1/1x2 chroma grids: each unit takes its OWN above-right reachAhmet Kaan Gümüş · e4e6f93
4:4:4 2x1/1x2 chroma grids: each unit takes its OWN above-right reach
The ticket's headline defect -- a 4:4:4 64x64 square block whose 64x64 chroma
plane block is a 2x2 Chroma32 grid, second unit reconstructing its sibling's
flat DC -- was ALREADY FIXED on main by e05a6ceb ("4:4:4 2x2 chroma walk: window
the intra-BC/palette override per unit", merged 2c0fd2b9 at 02:12), 15 minutes
AFTER lanes/av1chromarect-r2.report.md was merged with numbers measured on the
older base 5324a685. `git merge-base --is-ancestor e05a6ceb 5324a685` is false.
This commit does not redo that fix; it re-measures it (below) and fixes the one
cell of the class sweep that was still broken.
Also: the ticket's stated mechanism is wrong for this witness. The seed is
skip=1 on an INTRA-BC block, and libaom never sends an intra-BC block through
av1_predict_intra_block at all. decodeframe.c:1146 folds is_intrabc_block into
inter_block_tx; decodeframe.c:847 predict_inter_block -> :676
dec_build_inter_predictor calls dec_build_inter_predictors ONCE per plane with
bw = xd->plane[plane].width (decodeframe.c:686-688), i.e. the whole chroma
plane block, and reconinter_template.inc:228 makes the intra-BC reference the
destination buffer itself. So the prediction is one whole-plane-block motion
copy with no per-unit DC and no per-unit above/left; the units are then
reconstructed in place on top of it. The crate's whole-plane-block PALETTE_PRED
override IS that copy, and PlaneBuf::reconstruct (decode.rs:20939/21087) uses
the buffer it is handed as the UNIT's own chroma_tx x chroma_tx_h prediction --
which is what e05a6ceb's chroma_window fixes.
RE-MEASURED HERE (mutation M1: chroma_window back to the whole buffer, gate
a_444_skipped_64x64_square_block_windows_its_chroma_override_per_unit):
test result: FAILED. 0 passed; 1 failed
frame 0 plane U first divergence at sample 229728 of 262144 (x=352, y=448),
7488 samples wrong
f0 Y 0 | U 7488 | V 8128 f1 Y 0 | U 22571 | V 41782
f2 Y 0 | U 0 | V 0 total 79969 of 2359296
seed [320,384)x[448,512) U 864/2048 V 1024/2048 first (352,448)
victim [448,512)x[448,512) U 4096/4096 V 4096/4096 first (448,448)
f0 U y=448, x=320..512 step 16:
oracle 241 239 202 202 202 202 203 165 166 166 166 166
ours 241 239 241 239 202 202 202 202 175 175 171 171
AFTER the fix: 0 wrong on Y, U and V of all three frames, 0 of 2359296, and
0 in all three named regions. Pin unchanged, already committed:
fixtures/r512.obu, 6948 B, sha256 f587f0f980f149abce905e3ef66f2f1634f050c854
30626eafb9c30a1e25bc21.
(Correction to the ticket: [384,448)x[448,512) is NOT a clean control under
this defect -- 1664 U and 1984 V wrong, first (416,448). What r2 measured was
that its EDGE samples are all ~202, so any DC rule reproduces it; its pixels
still move because an intra-BC block's reference is the current frame's own
reconstruction.)
THE CLASS SWEEP, and the cell this commit fixes. Three sites walk a 4:4:4
chroma plane block as Chroma32 units:
1 decode_block skip arm (21897) 2x2 window: chroma_window (e05a6ceb) reach: tu_reach_rect OK
2 decode_block coded arm (22182) 2x2 window: palette_window reach: tu_reach_rect OK
3 decode_rect_split (12721) 2x1/1x2/2x2 window: palette_window reach: BLOCK reach <-- WRONG
Sites 1 and 2 can never be 2x1/1x2: a square luma block has
chroma_side == chroma_height at every supported subsampling and chroma_tx ==
chroma_tx_h, so cn_cols == cn_rows always. A 2x1/1x2 needs a rect luma block,
which only site 3 walks -- and it passed the BLOCK reach to every unit.
libaom resolves has_top_right PER TRANSFORM UNIT (defined reconintra.c:196,
called from av1_build_intra_predictors at reconintra.c:1847 with the chroma txb
walk's own blk_col/blk_row). The row_off == 0 arm is
`col_off + top_right_count_unit < plane_bw_unit`, so the FIRST unit of a 2-wide
grid reads its above-right out of the already-reconstructed block ABOVE even
when the block's own right edge is the frame's. PlaneBuf::edges (decode.rs:
20840) truncates the above row at own_across when above_right is false, so a
directional unit with angle < 90 (need_right, intra.rs:546) predicted from a
32-sample above row where libaom used 64.
NEW WITNESS fixtures/r512_rect2x1_1x2_444.obu, 2697 B, sha256 a009ec580a1ff
24250be53e11b8d09616da71e095cefd5eb621c941d40a8688b (recipe in the gate's doc
comment): 4:4:4 8-bit 256x256, one key frame, reaching BOTH shapes -- a 64x32
chroma plane block as nw=2 nh=1 of 32x32 and a 32x64 one as nw=1 nh=2.
RED-BEFORE, per plane, own compare script over EC_AV1_FINAL_DUMP:
f0 Y 0 wrong U 130 wrong V 30 wrong (of 65536 per plane)
All 160 sit in the right 6 columns of the cu=(0,0) unit at mi=(48,48)
px=(192,192). Oracle vs ours for that unit:
EC_PRED mi_row=48 mi_col=48 plane=1 row_off=0 col_off=0 txw=32 txh=32
mode=1 p_angle=84 n_top=32 n_left=32 n_tr=32 n_bl=-1 bsize=11
EC_PREDOUT8 sum=172662 row0=179,185,190,195,197,198,197,194
OUR_PRED sum=171512 row0=[179,185,190,195,197,198,197,194]
row0 and col0 match exactly and only the SUM differs, so the residual read is
bit-identical and the divergence is prediction-side, not entropy. Same 130/30
wrong in the oracle's EC_AV1_PREFILT_DUMP as in EC_AV1_FINAL_DUMP, so it is
pre-loop-filter. The U per-column delta -1,-5,-9,-14,-18,-19 grows rightward,
which is a directional prediction reaching further right as it goes.
THE FIX: one expression, both unit readers in that walk (the square read_plane
and the rect push_intra_rect) get the unit's own reach, from the crate's
EXISTING per-unit port -- the same call sites 1 and 2 already use:
let cu_reach = tu_reach_rect(bw, bh,
(cu_col * uw) << ss_x(fctx), (cu_row * uh) << ss_y(fctx),
uw << ss_x(fctx), uh << ss_y(fctx),
reach, px, py, y.width, y.height, fctx);
AFTER: 0 wrong on all three planes.
GATES, both aomdec-oracle with no silent skip, counters asserted before a
single sample is compared:
a_444_rect_strip_chroma_tiled_2x1_and_1x2_units_take_their_own_above_right_reach
asserts >= 4 units in a 2x1 grid AND >= 4 in a 1x2 grid, >= 1 unit whose
per-unit reach differs from the block's, then full byte-exactness of all
three planes. Pin fnv1a64 0x2751ccaa079cc422.
a_444_rect_strip_chroma_tiled_1x2_palette_grid_decodes_byte_exact
the UV-PALETTE cell lanes/av1chromadc.report.md section 5 left explicitly
UNMEASURED ("its arm of the sweep is argued from the shared code path, not
witnessed"). Pin fixtures/r512_rect1x2_444_palette.obu, 2250 B, sha256
fad03c69087f316c1a117e8d8a70769d161b332bce7b2998e646312bb78fb067, which
puts a UV-palette block on a 1x2 16x64 chroma grid at mi=(32,12).
MUTATION: M1, both readers back to the block reach -- RED at sample 49374
(x=222, y=192), 130 samples wrong. M2, cu_col/cu_row transposed -- GREEN, and
that is a real limit of the gate, not a pass: this witness's second/bottom
units sit flush against the frame edge, so the Reach clamp truncates the extra
reach back to nothing. The gates pin the reach VALUE, not the offset spelling;
no claim is made about the spelling.
CLASS SWEEP, all 19 set_palette_pred sites: every one is already windowed per
unit (12633, 12784, 16685, 16955, 21953/21975) or is a genuine single-unit read
where the whole buffer IS the window (decode_block_rect 15378/15396/15559/15607,
decode_leaf_rect 15996/16014/16175/16220, decode_block_rect4 16825/16859 which
loops PLANES of a 4x4 block). The one unwindowed site inside a unit loop,
decode.rs:12525's 4:2:2 (4,8) units, is unreachable -- both
chroma_422_pair_wide and chroma_422_oob require ss_x == 1 && ss_y == 0, the
4:2:2 that stream.rs:1783 refuses by name.
RE-QUOTES. cargo check -p ec-av1 --all-targets: 0 errors, 0 warnings.
a_444 lossless_444 intrabc_rect 444_lossless 420_intrabc_rect4
ok. 39 passed; 0 failed; 0 ignored (4:4:4-lossless, intrabc_rect, 4:2:0 twin)
rect intrabc ibc chroma 444 420 subsampl, once per tree, private target dir:
base 70ed5601 (detached) ok. 145 passed; 0 failed; 5 ignored; 623 filtered out
this tip ok. 147 passed; 0 failed; 5 ignored; 623 filtered out
The delta is exactly these two gates (775 tests on both trees by --list). No
test renamed, dropped or newly ignored; no floor lowered anywhere.
Report: lanes/av1dcunit.report.md. NOT DONE is listed there in six items, the
first being that the 2x1/1x2 offset spelling is unproven (M2).Merge lane-av1chromarect-r3: the 4:4:4 intra-BC rect-strip chroma residual is ALREADY ZERO on main (report only)Ahmet Kaan Gümüş · a305a21
Merge lane-av1chromarect-r3: the 4:4:4 intra-BC rect-strip chroma residual is ALREADY ZERO on main (report only) Measured before any change on 70ed5601: 0 wrong of 2,359,296 samples (Y/U/V x 3 frames), with the engagement counters proving the decode reached the arms it measures - IBC_OWNED_RECT 5 strip hits and 24 windowed chroma override units. The ticket's residual (f0 U 7488 / V 8128, f1 U 22571 / V 41782, total 79969, first divergence at x=352,y=448 and x=168,y=128) is REPRODUCED DIGIT FOR DIGIT by a one-line mutation (chroma_window's single-unit early return forced to take the whole override buffer, the pre-chromadc shape), which is what makes the zero a measurement and not a vacuous pass. Floors were already at full byte-exactness ([[262144;3];3]) and this branch changed no floor.
lanes/av1chromarect-r3: the r512.obu chroma residual is 0 on main, proven by mutationAhmet Kaan Gümüş · a4c0560
lanes/av1chromarect-r3: the r512.obu chroma residual is 0 on main, proven by mutation The ticket asked for a re-measurement before any change. On main 70ed5601, a temporary per-(frame, plane) wrong-sample counter over fixtures/r512.obu (512x512 8-bit 4:4:4, three frames, instrumented aomdec EC_AV1_FINAL_DUMP vs set_final_dump_prefix) reads 0 wrong of 2359296, with IBC_OWNED_RECT_CHROMA_FOOTPRINT_444_HITS = 5 and SKIP_CHROMA_OVERRIDE_WINDOW_HITS = 24 on the same decode. The 0 is not a blind compare: putting decode_block's pre-lane-av1chromadc chroma_window shape back (one line, the single-unit early return made unconditional, so every chroma unit takes the whole override buffer) reproduces the ticket's numbers digit for digit -- f0 U 7488 / V 8128 first at 229728 (x=352, y=448), f1 U 22571 / V 41782 first at 65704 (x=168, y=128), 79969 total -- and reds both committed gates. The residual was closed by 2c0fd2b9 (windowed per-unit chroma override), not by lane-av1ibcfork's footprint correction; the mutation places all 79969 in chroma_window. No decode-path change. Gate floors untouched: the strip gate's EXACT_PREFIX is already [[262144; 3]; 3], full byte-exactness, and the mutation message quoting "the exact prefix this gate pins is 262144" is the proof.
2026-09-29
Merge lane-av1txctxband: get_tx_size_context must read the block covering the ABUTTING CELL, not the last block written in the columnAhmet Kaan Gümüş · 91004d1
Merge lane-av1txctxband: get_tx_size_context must read the block covering the ABUTTING CELL, not the last block written in the column The sb128 4:4:4 fork was a stale per-COLUMN band: above_inter/left_inter and above_side_mi/ left_side_mi are indexed by a bare mi column, so they hold the LAST block written in that column - the covering block only for the block directly below/right of that writer. libaom reads xd->mi[-stride] / xd->mi[-1], i.e. the block COVERING the abutting cell (setup_mbs writes the block's own bmi pointer into every mi cell it covers), which is what EC_TXCTXB showed: the is_inter BOOLEANS agreed, the stale term was the SIZE (band 4 vs the covering 8x4 leaf's own 8), resolving above = (4>=8) = 0 where libaom keeps (8>=8) = 1 and putting the read on tx_size_cat0[1] instead of row 2 - so the fork read's cdf0 was 6424 where the oracle's was 19938. Fix: Neighbours::inter_grid, a per-4x4-mi-cell is_inter of the COVERING block (same padded shape as blk_grid), written by exactly the three call sites that already published the bands, with the covering block's size taken from blk_grid's existing per-mi BlkCell::dim (no new size array). Witness committed as a pin (444_lossy_sb128_txctx_witness.obu, 6186 B, sha256 14acb74e...) with red-before recorded (Y 841 / U 1295 / V 1372 of 65536 at frame 0) and the counter naming the one differing read (the 8x4 intra leaf at mi(57,52), ladder read 32813).
ec-av1: lane-av1txctxband -- get_tx_size_context must read the block covering the ABUTTING CELL, not the last block written in the columnAhmet Kaan Gümüş · 366e4bc
ec-av1: lane-av1txctxband -- get_tx_size_context must read the block covering the ABUTTING CELL, not the last block written in the column
libaom's get_tx_size_context (pred_common.h:361-370) gates its inter-neighbour
override on xd->above_mbmi / xd->left_mbmi, which set_mi_offsets takes as
xd->mi[-mi_stride] / xd->mi[-1] (av1_common_int.h:1381-1389); setup_mbs
(decodeframe.c:355-361) writes the covering block's own MB_MODE_INFO pointer
into EVERY mi cell the block covers, so the granularity is the covering block
PER CELL. This decoder read the per-COLUMN above_inter/left_inter bands and
the per-column above_side_mi/left_side_mi bands -- the last block written in
that column, which names the abutting block only for the block directly below
it.
On a 4:4:4 lossy --sb-size=128 cq-62 256x256 stream the 8x4 intra leaf at
mi(57,52) read a stale above_inter=true with above_side=4 while the covering
block of cell (56,52) is 8 px wide, so the override fired with 4, above came
out 0 where libaom keeps 1, ctx came out 1 instead of 2, and tx_size_cat0[1]
was read where libaom reads row 2 -- the EC_SYMR fork at read 32813
(identical pre-state (7550,45492), identical n=2 s=1, only cdf0 differing:
ours 6424 -> 26384 vs oracle 19938, so not even the ICDF mirror convention).
New Neighbours::inter_grid (per 4x4 mi cell) carries is_inter_block of the
covering block, written by exactly the three places that already wrote the
bands: record_inter_rect_mi, record_intrabc_mi_rect, and fill_lf_grid_rect's
intra-only clear. The covering block's own size comes from blk_grid's existing
per-mi BlkCell::dim, so no new size array. Both readers
(tx_size_context_txfm_rect and tx_size_context_txfm) gate and size the
override from inter_at(mi_r-1, mi_c) / inter_at(mi_r, mi_c-1) and
blk_side_at(..); the TXFM_CONTEXT bands and the tile-border guards are
untouched.
red-before (unpatched a1f818a9): frame 0 Y 841 / U 1295 / V 1372 of 65536,
frame 1 Y 56986 / U 55974 / V 56442; EC_SYMR 41245 vs 37229 reads, fork
at 32813
green: 0/0/0 on both frames; EC_SYMR 37229/37229 with ZERO divergence over
the whole stream
class sweep: 99 cells of 4:4:4 lossy --sb-size=128 (10 sources x cq
30..62) all EXACT-ENTROPY; 12 of them forked before and 4 of those also
exited non-zero
new pin 444_lossy_sb128_txctx_witness.obu (6186 B, sha256 14acb74e...) and
gate a_444_lossy_sb128_txctx_reads_the_covering_block_per_cell, whose
non-vacuity arm is TXCTX_INTER_CELL_BAND_DIVERGENCE_HITS (reads whose
RESOLVED term differs between the two models): green 1, and RED on the
band-revert mutation. The counter counts resolved terms, not booleans --
on this stream the two is_inter booleans agree and the SIZE term is what
is stale.
neighbours re-quoted: 44 passed (444_lossy/444_rect/444_intrabc_rect4/
ll444/lossless/intrabc_rect), 43 passed 2 pre-existing ignored
(420/sb128/tile_rows/tilerows/intrabc/av1real_aomenc)
Named, not swept: av1_get_intra_inter_context and the ref_ctx family read the
same per-column is_inter bands and share the granularity hazard; nothing
observed them here. txfm_partition_context reads only the TXFM bands and is
correct as it stands.
scripts/fixture-library.tsv NOT regenerated: it records a file:line for every
fixture reference in the crate, so regenerating it in a feature lane produces a
501-line diff that collides with every sibling touching decode.rs/stream.rs. It
belongs to the post-wave merge (the row it yields is in the report).Merge lane-av1sb128fork: the sb128 inter fork is a CDF-ROW error, not var-tx enumeration (report only)Ahmet Kaan Gümüş · 70029b6
Merge lane-av1sb128fork: the sb128 inter fork is a CDF-ROW error, not var-tx enumeration (report only) The ticket's hypothesis is refuted with the actual entries: the var-tx leaf lists in the forking frame are IDENTICAL - no missing leaf, no differently-sized leaf - and the 89-vs-12 whole-stream count is entirely post-fork damage in frame 1. The fork read (index 32813, frame 0, the KEY frame) has an identical pre-state (7550,45492), identical width n=2 and identical symbol s=1, with ONLY cdf0 differing (ours 6424, oracle 19938) - a pure CONTEXT error, and the mirrored-row check (32768-6424 = 26344 != 19938) rules out the ICDF convention as the explanation. The oracle's site is decodeframe.c:1106 read_selected_tx_size; ours reads a different CDF row, i.e. a stale mi-granular above_inter band in get_tx_size_context. The first PARTITION divergence is at mi(56,54) and sits AFTER the fork, so it too is damage.
lanes/av1sb128fork: the 4:4:4 lossy --sb-size=128 fork is a get_tx_size_context leak, not a var-tx leaf-list differenceAhmet Kaan Gümüş · 622a82a
lanes/av1sb128fork: the 4:4:4 lossy --sb-size=128 fork is a get_tx_size_context leak, not a var-tx leaf-list difference Reproduced on a 256x256 4:4:4 cq62 --sb-size=128 stream: EC_SYMR agrees for 32813 reads, then forks at read 32813 with the IDENTICAL pre-state (7550,45492) and the IDENTICAL width/value (n=2 s=1) -- only the CDF row differs (ours cdf0=6424 -> 26384, oracle 19938). The oracle's site is decodeframe.c:1106 (read_selected_tx_size), so the class is a get_tx_size_context row error. Measurement (1) kills the var-tx hypothesis: in the frame that forks (the KEY frame) each side reads exactly ONE txfm_partition symbol and they are the same read (mi=(56,52) ctx=19 s=0). The 89-vs-12 whole-stream split-read gap is 88 post-fork reads in frame 1. Measurement (2): the EC_PART trees for SB(1,1) agree on every paired read; the first value divergence is after the fork. The one differing entry: at the 8x4 intra leaf mi(57,52) the oracle's ctx is 2 and ours is 1, because our mi-granular above_inter band is true there with above_side=4 while libaom's is_inter_block(above_mbmi) is false. Confirmed the read is tx_size_cat0[1] by table address, not inference. Report only: no decode change, no fixture, no gate. The remaining deciding measurement (which write leaves above_inter[52] true at mi row 56) is named, and the ticket's n=7-vs-n=6 observation is explicitly not reproduced.
Merge lane-av1ibcfork (rebased): the per-unit bit-interval ladder and a second 4:4:4 intra-BC witnessAhmet Kaan Gümüş · cddb302
Merge lane-av1ibcfork (rebased): the per-unit bit-interval ladder and a second 4:4:4 intra-BC witness Resolution, stated: main's chromarect version of the fix SUBSUMES this lane's scoped one and main's is kept - scoping the ss correction to the skip arm alone would have left a known-wrong shape in the arm that actually reads coefficients. What lands here is the INSTRUMENT: EC_UNITIV_IN/_SKIP/_END (the field-for-field twin of the oracle's EC_ECDUMP rungs, both coefficient readers and both exits), EC_MCWR/EC_MCPUSH (the MC write origin and push site - the intra side had EC_PRED but the MC write path had no rung at all, which is why a region with a byte-identical prediction and different committed samples was unattributable), SymbolDecoder::symr_mi(), and a SECOND witness gate. Two corrections against the ticket: the '~1069 fewer all_zero reads' does not exist (real reads, both sides filtered: ours 512 vs oracle 513; the rungs fire 2395/side but 1883 of ours consume zero bits, and the earlier round filtered one side only), and the claimed independent residual tail at (416,192) was a consequence of the same wrong-place write - the witness is now 0/307200 on all three planes. The new gate asserts FULL exactness (no prefix floor) with the 4:2:0 twin byte-exact as its own control, and a mutation to the halving reds it at (160,80) - the same coordinate measured by hand before the gate existed.
Merge lane-av1pinselftest: the audit self-test plants the shape that actually bit (a phantom gate inside a raw string)Ahmet Kaan Gümüş · 2742201
Merge lane-av1pinselftest: the audit self-test plants the shape that actually bit (a phantom gate inside a raw string) Adds a third synthetic gate whose body embeds a raw string containing a gate that reproduces the forbidden root literal - the exact shape pin_inventory_tests has in the real tree - with three assertions (the real gate is present and still crate_pin; the phantom is ABSENT from the rows; no row's pin names contain 'phantom'). The phantom deliberately carries the selftest_ prefix, because self_test skips any fn not starting with it - a differently-named phantom would be filtered out and the control would pass for the wrong reason. Mutation (mask disabled): the phantom appears as a row AND the real gate's name list goes empty (fn_bodies attributed the raw string's fn as the last one and cut that body short) - two symptoms, both red. Census unchanged at total=9 uncommitted=0: the control lives entirely in the self-test's temp crate.
scripts: plant the raw-string shape in the pin audit's own self-testAhmet Kaan Gümüş · c1b62f2
scripts: plant the raw-string shape in the pin audit's own self-test
Closes the not-done from lane-av1pinauditfix: --self-test planted only the
PROSE shape, so the new rule's negative control rested on the live tree's
11 -> 9 / 4 -> 0 count change instead of on a committed case. A mask
regression would have gone unnoticed.
A third synthetic gate embeds a raw string containing a synthetic gate that
reproduces the forbidden root literal -- the exact shape pin_inventory_tests
has in the real tree, and the one that made the audit red on a tree with no
real violation in it.
The phantom carries the `selftest_` prefix ON PURPOSE. self_test skips any fn
whose name does not start with selftest_, so a differently-named phantom would
be filtered out and the control would pass for the wrong reason. With the
prefix a broken mask makes the phantom appear as a row and the control fails.
Three assertions: the real gate is present and still crate_pin; the phantom
gate is absent from the rows; and no row's pin names contain `phantom`.
Mutation -- mask disabled in read_source:
SELFTEST selftest_phantom_inside_a_raw_string root-literal
SELFTEST FAIL phantom_gate_counted=[('selftest_phantom_inside_a_raw_string',
'root-literal', ...)]
selftest_exit=1
which also shows a second symptom: the real gate's name list goes EMPTY,
because fn_bodies attributed the raw string's `fn` and cut its body short.
Restored, both are green again.
Green:
SELFTEST PASS a doc comment between two gates left both counted as
crate_pin, and a raw-string input did not become a gate
selftest_exit=0
pin gates: total=9 committed=22 uncommitted=0 ignored=0 assertless=0
pin_audit_exit=0 state=GREEN
VERDICT=GREEN
total=9 uncommitted=0 is unchanged from 5da8b247: the control runs entirely in
the self-test's temp crate and adds no gate to the census of the real tree.av1: the per-unit bit-interval ladder, and the second 4:4:4 intra-BC witness at full exactnessAhmet Kaan Gümüş · a4597ea
av1: the per-unit bit-interval ladder, and the second 4:4:4 intra-BC witness at full exactness The 4:4:4 intra-BC chroma fork at mi (20,40) is NOT an entropy fork, and the count asymmetry that named it does not exist. Re-measured on 444_intrabc_rect4_witness.obu with a per-unit BIT-INTERVAL ladder against the oracle's EC_ECDUMP_IN/_OUT/_END: 512 real txb_skip reads against the oracle's 513, not the ~1069 fewer an earlier round reported (that figure counted the 1883 zero-bit reads the rung fires for, and filtered one side only). Every one of the 2365 in-stream units agrees on entry, post-txb_skip AND end-of-unit position at a MEASURED constant offset of +14 bits; all_zero agrees on all 2395. The 30 tail mismatches are end-of-buffer padding, not a fork. There is no first divergent symbol, because there is no divergence in the coefficient ladder. What the ladder ruled out is the finding. With entropy excluded and the filters exonerated (oracle PREFILT == oracle FINAL on all three planes), the fork was a wrong-PLACE write: our PREDICTION at the first divergent sample was byte-identical to the oracle's (sum 26258 both, same first row), so the defect had to be a later different write -- and the MC/inter write path had no rung to say so. Hence EC_MCWR (the write's origin and shape) and EC_MCPUSH (the push site, #[track_caller]), which named decode_intrabc_owned_rect's skip arm committing a 32x16 chroma window at (px/2, py/2) = (160,80) and leaving its own 64x32 footprint at (320,160) unwritten. Two difference components, 8 cells sharp and 1182 over the whole quadrant: one wrong-place write, not two defects. That fix is ALREADY ON MAIN, in a more general form than this lane first wrote it: 5324a685 (lane-av1chromarect) made the extent and origins ss-derived for this whole function, skip arm included, after solving the missing-TxbSet blocker that had forced this lane to scope its fix to the skip arm; 2c0fd2b9 (lane-av1chromadc) windowed the skipped-block chroma override per unit. Main's version is kept, for a substantive reason: scoping to the skip arm would have left a known-wrong shape in the arm that actually reads coefficients. This branch is rebuilt from 79b2a73f and carries only the instrument, the gate and the report; the pre-rebase commit e0a7b744 is on backup-av1ibcfork for the record. With both landed the witness is byte-exact on all three planes, including the "(416,192) residual tail" this lane had called a separate open defect -- it was a consequence of the same wrong-place write, not an independent one. Gate a_444_intrabc_rect4_witness_is_byte_exact_after_the_skip_arm_footprint: a SECOND witness, not a repeat of chromarect's r512.obu gate, because the two shapes fail differently -- r512's 128-root strips fail as a sizing error inside the coefficient walk, while this witness's 64x32 skip block read no coefficient at all, so its only symptom was pixels. Four arms: 4:4:4 header asserted, the 4:2:0 twin byte-exact (where >> ss_x IS / 2, so it is the measurement), IBC_OWNED_RECT_CHROMA_FOOTPRINT_444_HITS >= 1, and FULL byte-exactness on all three planes. Mutating the function back to the halving reds it at (x=160, y=80) -- the same sample this lane measured by hand before the gate existed. Also: SymbolDecoder::symr_mi(), because a per-unit rung needs a mi and set_symr_mi only wrote it.
Merge lane-av1pinauditfix: the pin audit no longer reads embedded source as gatesAhmet Kaan Gümüş · 5e5d9ea
Merge lane-av1pinauditfix: the pin audit no longer reads embedded source as gates GENERAL rule, not a path allowlist: a match inside a string literal that SPANS LINES is not a gate (Rust has no line-spanning non-raw string, so such a literal is embedded source - a scanner test's input or a doc blob - while a real pin read names its path in a one-line literal). Implemented once in pin-gate-audit.py (mask_embedded_source / read_source / code_of, masked at FILE level because fn_bodies' regex resurrects the raw string otherwise) and IMPORTED by verify-fixture-library.sh's invariant 1, so the two checks cannot disagree about what a gate is. Before: total=11 uncommitted=4 with two invented gates; after: total=9 uncommitted=0. Pre-existing RED, not tonight's: introduced by 35deab68 (2026-09-29 05:17), whose parent ec4e9528 was green - both verified by running the real check on real checkouts. Controls both directions: a real /../../fixtures read in a real gate body still reds and is named by both invariants (including the rustfmt-SPLIT form for invariant 4), while the scanner's own test data no longer reds.
scripts: the pin-gate audit must not read its own test dataAhmet Kaan Gümüş · 4c07cbc
scripts: the pin-gate audit must not read its own test data
The pin audit has been RED on every tree since 35deab68 (2026-09-29), which
added pin_inventory_tests' synthetic capability-test gate: an r#"..."# whose
body is a synthetic gate reproducing the forbidden /../../fixtures root, fed
to pins_read as DATA. Both scanners read it as CODE --
* verify-fixture-library.sh invariant 1: a line regex over the whole file
* scripts/pin-gate-audit.py invariant 4: worse, fn_bodies finds `fn` lines
BY REGEX, so `fn a_gate_using_the_old_shape()` inside the raw string is
attributed as a real gate and its body is classified
This is the mirror of the class this script already fixed for prose (a doc
comment reproducing a root literal invented a gate). Comments were stripped;
embedded SOURCE was not.
THE RULE, general and not a path allowlist: a match inside a string literal
that SPANS LINES is not a gate. Rust has no line-spanning non-raw string, so
such a literal is embedded source -- a scanner test's input or a doc blob --
while a real pin read names its path in a one-line literal.
It cannot hide a real violation: a non-raw literal aborts at the first newline,
so it can only blank within one line, and a one-line literal holds no Rust
source. A char literal is recognised only when it closes within three chars, so
a LIFETIME (&'a str) is not mistaken for a string start.
Implemented once, in pin-gate-audit.py (mask_embedded_source / read_source /
code_of); invariant 1 IMPORTS it rather than carrying a second copy, because
the two checks must not disagree about what counts as a gate. read_source masks
at FILE level -- fn_bodies' regex `fn` scan is what resurrects the raw string,
so masking after attribution is already too late.
Before: total=11 uncommitted=4, four BADROW/BARDIR lines naming
gate_coverage.rs:1927 a_gate_using_the_old_shape
gate_coverage.rs:1966 shapes
After: total=9 uncommitted=0
pin_audit_exit=0 state=GREEN
VERDICT=GREEN
Controls, both directions:
* a REAL /../../fixtures read in a real gate body still reds, named:
crates/ec-av1/src/zz_control_probe.rs:2:a_real_gate_reading_through_...
concat! 1/1 pin(s) not committed+tracked, e.g. control-obu.obu
* the rustfmt-SPLIT form of that same real violation still reds (invariant 4)
* --self-test PASS, unchanged: a doc comment between two gates left both
counted as crate_pin
The RED was PRE-EXISTING: 35deab68 is red, its parent ec4e9528 is green.Merge lane-av1loss444: the 4:4:4-lossless chroma class is already byte-exact (report only)Ahmet Kaan Gümüş · eb58a83
Merge lane-av1loss444: the 4:4:4-lossless chroma class is already byte-exact (report only) All five recorded witnesses re-measured on main: 0 wrong samples across all 36 frame-dumps (reproduced byte-for-byte first), plus 13 further 4:4:4-lossless cells (tiled, sb128, 10/12-bit, palette+intrabc, flat) all exact 6/6. The inherited 12-bit premise is refuted: the screen-content bit is written per frame from the SOURCE, so mandelbrot/flat streams do not trip the refusal and the 12-bit arm is measured rather than hidden. Also recorded: --sb-size=128 is a byte-identical no-op at 256x128 (the --tile-rows=1 trap again), and lane-av1loss444mm's r2 walk-fork finding cannot still be true (that stream is 0 wrong now), so it must not be re-chartered. Non-vacuity by construction: two bit-flip controls on the real dumps make the compare report exactly the flipped samples.
lanes/av1loss444: the 4:4:4-lossless chroma divergence is GONE on main -- all four witnesses exact 6/6, 0 wrong samples in 19 cellsAhmet Kaan Gümüş · 66391dfBrowse files
Merge lane-av1censushdr: pin the census base's committer instant in the headerAhmet Kaan Gümüş · b918b39
Merge lane-av1censushdr: pin the census base's committer instant in the header A row's own date can never reveal that the base moved under the run: lane-infra-gitdir's row printed its tip's committer date (2026-09-25 06:40:53), which was correct per the method, while the staleness was only visible by comparing the carrier's committer date (01:30:50) against the base's (01:25:11). The header now pins the base instant 2026-09-30 01:25:11 +0300 and states the four guarantees (committer-instant pin, mandatory reverse-apply detector with marked hits, the three-verdict vocabulary, twin-sweep detector) plus the two rejected proof shapes with their measured failure rates.
lanes: state the four guarantees the corrected census's rows carryAhmet Kaan Gümüş · 08b37b0
lanes: state the four guarantees the corrected census's rows carry Adds a header section to the branch census so a reader knows what the table's rows are worth before acting on one, and so the next census inherits the method rather than rediscovering it. The guarantees are recorded in the managed skill branch-census-patch-id-disposition. G1 — the base's committer instant is pinned in the header. Worth stating precisely, because the obvious phrasing is wrong: the Method block ALREADY printed committer dates (`%(committerdate:short)`, `%cd`) and that was never the defect. A row's own date can never reveal that its fix landed on main after the census snapshotted main. That is exactly the C3 trap — lane-infra-gitdir's row correctly printed its tip's committer date 2026-09-25 06:40:53, while its main carrier 71f1f09c has committer 2026-09-30 01:30:50, five minutes past the 01:25:11 base. With the base instant written down the check is one command: `git merge-base --is-ancestor <landing> 3aa16dd1`. The base's committer time is therefore 2026-09-30 01:25:11 +0300 and is now written into the header. G2 — reverse-apply is mandatory over every row and its hits are marked, not just used to rank. All 32 outstanding rows carrying a code delta were tested (1 hit); the 4 report-only rows are named as skipped rather than left silent. G3 — three verdicts kept distinct: false-positive, stale-inside-the-run, outstanding. G4 — a twin-flow sweep's subject names one arm and its diff touches both; tested across every unlanded commit in every outstanding row. Also records the two proof shapes that were tried and REJECTED with their measured failure rates (post-image line-percentage: ~50% on genuinely-unlanded commits and blind to a semantic duplicate, 7/13 on an already-landed commit; lane-tag grep: proves the marker is absent, not the fix), and states the known remaining blind spot — a false positive whose landing commit is neither a twin sweep nor byte-identical would be caught by neither detector. C3's body text carried the same author-date imprecision and is corrected there too. Report-only; no decoder edits.
Merge lane-av1sb128chroma: the SB128 chroma arm is already correct (premise refuted, fixture gap closed)Ahmet Kaan Gümüş · 28bc592
Merge lane-av1sb128chroma: the SB128 chroma arm is already correct (premise refuted, fixture gap closed) The ticket's central premise is FALSE: av1_get_max_uv_txsize(BLOCK_128X128, 0, 0) is TX_32X32, not TX_64X64 - av1_get_adjusted_tx_size maps TX_64X64|TX_64X32|TX_32X64 -> TX_32X32 with NO subsampling argument, so the 64->32 step fires at ss (0,0) too. Corroborated three ways: a C-probe linked against the oracle's libaom.a (adjusted=3 = 32x32), an oracle EC_TRACE_COEFF histogram showing ZERO chroma reads of any 64-axis shape, and the ticket's own suggested repair panicking on a 64-point scan table libaom does not have. The site was already repaired by c0727d64 (cu_tx stays 32; luma_span and the origin are already ss-aware and per-chunk+per-unit). The ticket's evidence stream never reaches the arm: on clean testsrc2 the RD never picks INTRA for a whole 128 root - measured 0 fires, not 20, with per-plane 0 wrong. Landed instead: the missing witness (fixtures/444_intra_in_inter_128root_mu_chroma.obu, sha256 f5999bd9..., 3570 B) plus its pixel-exact gate, closing a real fixture gap for another lane's arm.
Merge lane-av1censusfix: five corrections to the branch census (report only)Ahmet Kaan Gümüş · 6008e75
Merge lane-av1censusfix: five corrections to the branch census (report only) The decisive correction is a distinction: false-positive vs stale-inside-the-run. lane-av1-f9single was wrong WHEN WRITTEN (6c33f204 is an ancestor of the census base AND that base already carries 20 covering_leaf_tx_type refs), while lane-infra-gitdir was CORRECT and went stale five minutes into the run - hidden because the table prints the AUTHOR date (09-25) while it landed at 01:30. Counts updated (landed-elsewhere 7->8, outstanding 36->35) and the propagated merge-owner notes withdrawn.
Merge lane-av1chromadc: the skipped-block chroma override is windowed per unit (79969 -> 0)Ahmet Kaan Gümüş · 8c19a27
Merge lane-av1chromadc: the skipped-block chroma override is windowed per unit (79969 -> 0) decode_block's SKIP arm handed the whole chroma_side x chroma_height override buffer to EVERY unit, and PlaneBuf::reconstruct uses the buffer it is given as that unit's own chroma_tx x chroma_tx_h prediction - so the right and bottom units of a 2x2 chroma plane block predicted from the top-left one. Invisible at 4:2:0 (a 64x64 block's chroma plane block is a SINGLE 32x32 unit, so the whole buffer is that unit's window - which is why every 4:2:0 gate stayed green). Measured on the pinned r512.obu: frame 1's skipped 64x64 intra-BC block at mi=(112,80) reconstructed cu=(1,0) as a flat 241 where the oracle has 202, byte-identical to cu=(0,0). EC_PRED showed identical sums and identical row0/col0 for the two units and EC_DEBUG_EDGES printed nothing (the prediction came from the override, not the edges). Fix: one windowing closure used for both planes, whole buffer when single unit so every 4:2:0 and sub-64 4:4:4 path is byte-for-byte unchanged. Result: 79969 wrong samples -> 0 (2359296/2359296 byte-exact), red-before run on the unpatched tree.
lanes: correct the branch census -- its top row was a false positive, plus 4 moreAhmet Kaan Gümüş · 850f8ff
lanes: correct the branch census -- its top row was a false positive, plus 4 more Brings lanes/branchcensus.report.md onto a branch that carries the corrections, so the next session reading the census does not charter a fix that is already on main. Report-only; no decoder edits, no branch deleted. THE RULE: a twin-flow sweep's subject names one arm, its diff touches both -- re-check every subject-sourced row with `git show --stat` before ranking it. The census ranked by reading commit SUBJECTS and spot-grepping main for a lane's TAG COMMENT. Both are unsound when one commit fixes several textually-parallel copies of the same arm: the subject names the arm the author was thinking about, and a tag grep proves only that the marker is absent, never that the fix is. C1 -- lane-av1-f9single, FALSE POSITIVE, wrong at census time. The document's most actionable row. 6c33f204 is a twin-flow sweep: it collected leaf_tx_types at every size and pointed BOTH copies of the four-unit 4:4:4 chroma arm at the shared covering_leaf_tx_type, while its subject reads as compound-only. It was already in the census base: `git merge-base --is-ancestor 6c33f204 3aa16dd1` is YES, and 3aa16dd1's decode.rs already has 20 covering_leaf_tx_type refs and two Some(cu_tx_type). Both of the row's evidence commands are unsound -- the cited `if side > 64` at 42271 is the 128 mu-chunk walk, not the leaf-push guard, and `grep -c lane-av1f9single` greps a tag comment, not the fix. Cherry-picking conflicts, and the branch's form is worse (an inline find closure where main has the shared helper). Withdrawn; replaced by f4ac435c, which fixed the attribution gap the blindness hid. C2 -- c6c66d15 (f9n) is NOT the comment-only diff note 2 called it: 27 lines of real decode.rs including `if side >= 64` and the inline covering closure. Its effect is on main via 6c33f204, so the note's advice survives; its evidence does not. C3 -- lane-infra-gitdir reclassified outstanding -> landed-elsewhere. Not a false positive: correct when written, stale five minutes later. It landed as 71f1f09c (same patch-id 2b7d379f) with committer date 01:30:50 against the census base 3aa16dd1 at 01:25:11; the author date 2026-09-25 is what the table prints, hiding it. Its "applies clean to main" is now false in both directions. C4 -- lane-av1tilerows2: the set_symr_cdf half verified (0 call sites in stream.rs, fn in msac.rs), the EC_PART half did not reproduce -- main prints no at16.0/at16.1 and at16 is only a local variable name in decode.rs. C5 -- lane-park-a1 confirmed correct, and the detector gives its "superset patch" claim a mechanism: d6fe0d8d hits both arms (4 hunks @38704, 4 @40982). Coverage: two detectors ran over every outstanding row -- a twin-sweep detector (twin hits: 2, both explained) and a reverse-apply scan (1 hit). landed-elsewhere, superseded and scratch were not re-read: those classes are defined by ancestry and patch-id, which are sound, and none of them asserts a fix is unlanded -- which is the only claim this blindness affects. Stated plainly: ~28 outstanding rows are detector-covered but not read one-by-one, so a false positive of a shape that is neither a twin sweep nor byte-identical would still need that read. That limit is written into the document rather than glossed.
4:4:4 2x2 chroma walk: window the intra-BC/palette override per unitAhmet Kaan Gümüş · 69d5cc5
4:4:4 2x2 chroma walk: window the intra-BC/palette override per unit
A skipped 64x64 square block at 4:4:4 has a 64x64 chroma plane block, which
libaom walks as a 2x2 grid of TX_32X32 units (get_vartx_max_txsize ->
av1_get_adjusted_tx_size(TX_64X64) = TX_32X32). Its chroma prediction is not
edge-derived: it is the intra-BC / UV-palette override, a whole
`chroma_side x chroma_height` buffer on the PALETTE_PRED slot, and
`PlaneBuf::reconstruct` uses the buffer it takes as the UNIT's own
`chroma_tx x chroma_tx_h` prediction (`let prediction = if let Some(buf) = pred
{ buf } else { ... }`). A multi-unit plane block must therefore hand each unit
its own WINDOW of it.
The pre-fix call was `set_palette_pred(ub.clone(), fctx)`: the whole buffer, for
every unit. At 4:2:0 the chroma plane block of a 64x64 block is a single 32x32
unit, so the whole buffer IS that unit's window and the bug is INVISIBLE --
which is why every 4:2:0 gate stayed green -- and at 4:4:4 every unit took the
buffer's first 32x32. The site already said so for LUMA ("its per-TU windowing
is the non-skip loop's own `palette_y_buf` slice, untested for skip and
unreachable in these streams"); the chroma half never got the same treatment and
r512.obu is the stream that makes it reachable.
MEASURED PROOF, before the fix (EC_PRED, per-unit prediction trace; identical
sums and identical row0/col0 are the signature of a copied window):
OUR_PRED x=320 y=448 plane=1 side=32 sum=882176 row0=[241 x8] col0=[241,202,...]
OUR_PRED x=352 y=448 plane=1 side=32 sum=882176 row0=[241 x8] col0=[241,202,...]
OUR_PRED x=320 y=448 plane=2 side=32 sum=751936 row0=[110 x8] col0=[110,222,...]
OUR_PRED x=352 y=448 plane=2 side=32 sum=751936 row0=[110 x8] col0=[110,222,...]
and EC_DEBUG_EDGES printed nothing for x=320/352 at y=448, i.e. edges() was
never called -- the prediction came from the override. The coded sibling at
x=448 DOES print its edges, and its units were already right.
RED-BEFORE, on the UNPATCHED tree, new gate
`a_444_skipped_64x64_square_block_windows_its_chroma_override_per_unit`:
decode-order frame 0 plane U is byte-exact nowhere -- first divergence at
sample 229728 of 262144 (x=352, y=448), 7488 samples wrong. The seed is frame
0, mi=(112,80) px=(320,448) side=64 skip=1, whose chroma unit cu=(1,0) at
px=(352,448) must be the SECOND 32x32 window of the block's chroma override
and not a copy of cu=(0,0)'s.
AFTER, same oracle (aomdec EC_AV1_FINAL_DUMP vs set_final_dump_prefix, 512x512
8-bit 4:4:4, decode order), wrong samples per plane:
f0 Y 0 | U 7488 -> 0 | V 8128 -> 0
f1 Y 0 | U 22571 -> 0 | V 41782 -> 0
f2 Y 0 | U 0 | V 0
79969 -> 0: every plane of every frame byte-exact, 2359296/2359296 samples. The
floors in `a_444_intrabc_owned_rect_strip_sizes_its_chroma_plane_block_and_decodes`
were RAISED from [[262144, 229728, 229728], [262144, 65704, 65704], [262144,
262144, 262144]] to [[262144; 3]; 3]; both floors' history is in that test's doc.
No floor was lowered. decode_intrabc_owned_rect is NOT touched.
CLASS SWEEP, all four unit positions of every multi-unit chroma-override walk on
the witness (temporary EC_ZZSRC probe, removed before this commit; win_head is
the unit window's first eight samples):
f0 px=(320,448) skip=1 intrabc (0,0)=241 (1,0)=202 (0,1)=241 (1,1)=202
f0 px=(384,448) skip=1 intrabc (0,0)=202 (1,0)=203 (0,1)=202 (1,1)=203
f1 px=(128,128) skip=1 intrabc (0,0)=54 (1,0)=54 (0,1)=54 (1,1)=54
f1 px=(320,448) skip=1 intrabc (0,0)=240 (1,0)=202 (0,1)=240 (1,1)=202
f1 px=(448,384) skip=1 intrabc (0,0)=166 (1,0)=166 (0,1)=166 (1,1)=166
The rule: invisible when the buffer is constant across the plane block, wrong at
exactly (1,0) and (1,1) when it varies, and (0,0)/(0,1) never wrong -- they
read offset 0, which is their own window. That is why the r2 dirty map starts at
x=352 = 320+32 and not at x=320. Every multi-unit walk on this witness is
src=intrabc; the UV-palette source shares the fixed line but has no multi-unit
witness here, and that cell of the class is argued, not measured.
f1 HYPOTHESIS CONFIRMED: r2 predicted f1's dirty column x=128..192 (first dirty
cell (168,128), 56/64 wrong) was the skipped 64x64 at px=(128,128). It is -- the
only multi-unit override walk in that column -- and frame 1 goes 22571 U + 41782
V wrong to 0 with this fix and no other change.
New counter SKIP_CHROMA_OVERRIDE_WINDOW_HITS counts chroma units whose override
had to be windowed (cn_cols * cn_rows > 1), exclusive to this walk; the gate
asserts >= 8 before it compares a single sample, so the exactness cannot be
vacuous.
Gates: 34/34 on the 4:4:4-lossless + intrabc_rect + 4:2:0-twin set (33 of r5
plus this lane's new gate). The wider `rect intrabc ibc chroma 444 420
subsampl` family is 141 passed / 0 failed / 5 ignored on this tip against
140 / 0 / 5 on the base 57834ee2, the set difference being exactly this lane's
new gate. Mutations, each reverted: M1 the pre-fix whole-buffer shape -> RED at
229728 (x=352,y=448); M2 window row stride chroma_side -> chroma_tx -> RED at
229824 (x=448,y=448); M3 cu_row/cu_col transposed -> RED at 229728.lanes/av1sb128chroma: the SB128 chroma arm is already correct -- cu_tx=64 is a panic, and its witness never reaches the armAhmet Kaan Gümüş · 00bda1c
lanes/av1sb128chroma: the SB128 chroma arm is already correct -- cu_tx=64 is a panic, and its witness never reaches the arm
The ticket named the `side > 64` mu-chunk chroma arm of the intra-in-inter
128 root (decode.rs:43568, the `EC_TMP_SB128CHROMA` site) and asked for
`cu_tx = 64` at ss (0,0) with a per-chunk chroma origin. None of that is
a defect, and the central premise is false.
`av1_get_max_uv_txsize` (blockd.h:1372) is
`av1_get_adjusted_tx_size(max_txsize_rect_lookup[get_plane_block_size(...)])`,
and `av1_get_adjusted_tx_size` (blockd.h:1361) maps TX_64X64 -> TX_32X32
UNCONDITIONALLY -- it takes no subsampling argument, so the 64 -> 32 step
fires at ss (0,0) too. `av1_get_max_uv_txsize(BLOCK_128X128, 0, 0)` is
TX_32X32, not TX_64X64. The site already reads `cu_tx = 32`,
`cu_tx << ss` for the luma span, and a per-chunk AND per-unit origin; that
form landed on main in c0727d64 (lane-av1txsizeaudit r5).
The ticket's evidence stream also cannot witness the arm. Its recipe
(testsrc2 128x96 yuv444p, --sb-size=128 --cq-level=20, 24 frames, sha256
84de4280...) reads intra_128_in_inter=0, mu_chroma=0, chroma_split_tx=0:
on clean testsrc2 the encoder's RD never picks INTRA over inter for a whole
128 root. The "20 fires" was the other `side > 64` chroma walk (the INTER
twin) or a count inflated under the removed masking fork -- re-measured, it
is 0.
Mutation proof on a pinned 4:4:4 witness that DOES reach the arm
(sha256 f5999bd9..., 3570 B, 3 frames, intra_128_in_inter=1,
intra_128_in_inter_mu_chroma_hits=4):
A. the ticket's full change -> HARD PANIC at decode.rs:7197,
"no default scan for a 64-point transform" -- libaom has no 64-point
chroma scan table.
B. its luma-span + per-chunk-origin halves alone -> RED, Y 12537,
U 16696, V 16667 wrong of 98304 per plane, first at Y(90,120) ours
142 vs oracle 141, all on decode-order frame 2, counters still 1/4.
So: no source change (`git diff crates/ec-av1/src/decode.rs` is empty).
What the ticket was right about is the fixture gap -- the arm had no
committed 4:4:4 bytes, only a live-encode gate that silently skips without
ffmpeg/aomenc. This commit closes it.
Gate `a_444_intra_in_inter_128root_muchroma_pinned_stream_decodes_pixel_exact`
pins the witness (len + fnv1a64), asserts the ss (0,0) 128-superblock
header, asserts the full-resolution chroma shape, the byte-exact compare
through the oracle aomdec, and non-vacuity via the two arm counters
(>= 1 root, >= 4 mu-chunk chroma reads). Its COUNTER-PROOF arm pins the
ticket's own stream as a control and asserts it decodes 24/24 byte-exact
while reading (0, 0) -- so the refutation stays reproducible in-crate with
no encoder on the host.
Identity: all 44 4:4:4/4:2:0 gates and the 128-root/lossless families
(55 passed, 0 failed, 11 pre-existing ignored) green against this
decode.rs; cargo check --all-targets clean.Merge lane-av1f44diverge: the two recorded 4:4:4 divergences were already fixed by H1 (report only)Ahmet Kaan Gümüş · 06be466
Merge lane-av1f44diverge: the two recorded 4:4:4 divergences were already fixed by H1 (report only) Both re-measured on current main: 0/0/0 mismatching samples on all three planes and all frames for the 256x128 4:4:4 stream and the 130x122 odd one, and the 66x66 control is exact in BOTH arms. The class is an ENTROPY fork (same value/range, a different neighbour-context row) fixed by f92776ba + e10a3b25; the old numbers were reproduced by reverting exactly that one match arm. Also found: the 256x128 stream is byte-identical with and without --superres-mode=1, so the old 'superres' label was a fixture-name artefact, and both witnesses are byte-identical to committed pins.