Commits
Commits on
73a4a773b666840bd2a421c4ab077dde1dbfbc1b2026-09-30
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.
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.
lanes/av1f44diverge: both 4:4:4 witnesses are ALREADY FIXED on main; class is an ENTROPY fork (H1, f92776ba)Ahmet Kaan Gümüş · cdb836b
lanes/av1f44diverge: both 4:4:4 witnesses are ALREADY FIXED on main; class is an ENTROPY fork (H1, f92776ba) Red-before measured in this worktree by reverting only the pre-H1 around_c arm in decode_inter_block: 130x122 reproduces 11521 samples / first Y(128,16) (ours 134 oracle 170) and 256x128 reproduces 76404 / first Y(192,0) (92/106), to the byte. EC_SYMR ladder on that arm names the first divergent read (130x122 read 41166 at mi(12,23); 256x128 read 55192 at mi(11,36)) with the coder state identical on both sides and only the CDF row differing -- a chroma neighbour-context error at a 1:4 inter strip, not reconstruction arithmetic. On 57834ee2 all three cells are 0/0/0 per plane per frame with bit-identical entropy. 66x66 control is exact in both arms (0/0/0, 28294 reads, no fork); its immunity is not content and not strip absence (noise 66x66 also exact). Report only, no decode-path change left on the branch.
Merge lane-av1f9singleland: the 'unlanded' single-ref fix was already on main; the real gap was attributionAhmet Kaan Gümüş · abe7034
Merge lane-av1f9singleland: the 'unlanded' single-ref fix was already on main; the real gap was attribution 6c33f204 was a TWIN-FLOW SWEEP - it collected leaf_tx_types at every size and pointed BOTH copies of the four-unit arm at the shared covering_leaf_tx_type (decode.rs:38785). The branch census read that commit's SUBJECT (which names only the compound arm) instead of its diff, so it ranked an already-landed fix as the top unlanded one; the cited 'if side > 64 around 42271' is a different, correct guard (the 128x128 mu-chunk walk) and the leaf push at 42304 is unconditional. Landing the real gap instead: per-arm single-reference counters plus a gate asserting the single-reference arm is what the existing witness measures - 96 covering-leaf units resolve, 88 single-ref / 8 compound, and ALL 8 DIFFERS units (the existing non-vacuity bar) are single-ref. The 4:2:0 control fires neither counter. Three mutations red it, including one that shows the shared total staying non-zero while the witnessed arm resolves nothing.
ec-av1: the four-unit 4:4:4 quadrant witness is the SINGLE-REFERENCE arm's, and no gate said soAhmet Kaan Gümüş · 18d91c0
ec-av1: the four-unit 4:4:4 quadrant witness is the SINGLE-REFERENCE arm's, and no gate said so The census called lane-av1-f9single tip c7fd5afa an unlanded fix and pointed at "main still reads `if side > 64` around decode.rs:42271". Both are false. The cherry-pick conflicts, and git blame attributes BOTH single-reference sites -- the leaf push and the covering-leaf resolve -- to 6c33f204, the commit the census itself lists as the already-landed compound twin. 6c33f204 collected leaf_tx_types at every size and pointed BOTH copies of the four-unit arm at the covering lookup; its own subject line calls the single-reference side "the single-reference twin", so it was a twin-flow sweep, not a compound-only change. The `if side > 64` the census cited is the 128x128 mu-chunk walk from lane-sb128c r1, which is correctly `side > 64`. Main's form is also the better one: the shared covering_leaf_tx_type helper, where the branch inlines a fourth copy of a convention main had already deduplicated. What was genuinely missing is the attribution. CHROMA_QUAD_LEAF_TX_HITS and ..._DIFF_HITS are bumped from both arms, and the existing gate asserts only that pair, so it cannot say which arm its witness came from and either arm can be reverted while the other keeps the total non-zero. Measured on the pinned 444_quad_leaf_tx_type.obu: 96 covering-leaf units, 88 of them the single-reference arm's; of the 8 DIFFERS units -- the existing gate's entire non-vacuity bar -- ALL 8 are the single-reference arm's. The other 26 pinned 4:4:4 fixtures reach the arm zero times, so that one witness is all that pins this arm. Adds a single-reference counter pair and a gate that pins it. Proved non-vacuous three ways, each mutating ONLY the single-reference arm: reverting its resolve to luma_tx_type, gating its leaf push back behind `side > 64`, and disabling its route outright all turn a gate red -- the first two with 777 bytes differing in decode-order frame 1, the same number 6c33f204 reports for its own pre-fix state. The third fails while the shared total still reads 8, which is exactly the blind spot. +149/-0, additive; the compound arm is untouched and the two stay textually comparable. cargo check -p ec-av1 --all-targets clean, 0 warnings. Gates: 444 family 39 passed, intrabc_rect 7, rect_strip 10, 4:2:0 controls 3+2+2, both quadrant gates 1 each -- 0 failed, oracle required throughout.
Merge lane-av1chromarect-r2: the 79969 residual is NARROWED to a different defect class (report only)Ahmet Kaan Gümüş · bd8cc17
Merge lane-av1chromarect-r2: the 79969 residual is NARROWED to a different defect class (report only) Not the multi-unit walk: all five coded/skipped strips are pixel-clean on their own frames and the new walk runs once over four units inside a clean footprint. Every dirty cell falls inside a SQUARE 64x64 block (decode_block, side=64, cset=Chroma32) walked as a 2x2 grid of Chroma32 units - the path this lane never touched. Mechanism: the second chroma unit of that 2x2 walk reconstructs its SIBLING's flat DC (241) instead of its own (202), while our geometry, mode, uv_mode, skip and tx all agree with the instrumented oracle - a reconstruction difference, not a bitstream one. Seed mi=(112,80) f0 cu=(1,0): left=202 above=194 corner=118 -> flat 241; clean sibling control mi=(112,96). No decode-path change in this commit.
lanes: av1chromarect-r2 -- the 79969-sample residual is a DIFFERENT defect, in decode_block's square 4:4:4 multi-unit chroma DC, not in the strip armAhmet Kaan Gümüş · 27b4e62
lanes: av1chromarect-r2 -- the 79969-sample residual is a DIFFERENT defect, in decode_block's square 4:4:4 multi-unit chroma DC, not in the strip arm No decode-path change. The residual r1 reported as an open fork is localised and it is not this lane's arm. MEASURED (aomdec EC_AV1_FINAL_DUMP vs set_final_dump_prefix, 512x512 8-bit 4:4:4, decode order), reproduced on 5324a685: f0 Y exact | U 7488 wrong from 229728 (x=352, y=448) | V 8128 wrong from 229728 f1 Y exact | U 22571 wrong from 65704 (x=168, y=128) | V 41782 wrong from 65704 f2 Y exact | U 0 | V 0 ALL FIVE STRIPS ARE PIXEL-CLEAN ON THEIR OWN FRAMES. EC_HALVSWEEP gives one CODED strip (f0 mi=(32,40) px=(160,128) 32x64) and four skipped ones; the coded one's footprint x=160..192, y=128..192 is clean, and the multi-unit walk read exactly four units (EC_IBCCU, plane 1 at (160,128) and (160,160), plane 2 at the same two) inside it. f2 is byte-exact on all three planes. So the residual is neither the new walk nor a second strip on the same plane block. Every dirty cell falls inside a SQUARE block from decode_block at 4:4:4 with side=64, cset=Chroma32 ctx=32 ctxh=32 cside=64 cheight=64 -- a 64x64 luma block whose 64x64 chroma plane block is a 2x2 grid of Chroma32 units, in a function this lane never touched. The f0 seed, with the oracle's own mode rung as the control (EC_TRACE_MODE=1 on the instrumented aomdec): ours IBM f=0 mi=(112,80) px=(320,448) side=64 skip=true mode=0 uv=0 ours IBM f=0 mi=(112,96) px=(384,448) side=64 skip=true mode=0 uv=0 ours IBM f=0 mi=(112,112) px=(448,448) side=64 skip=false mode=0 uv=0 ours IBM f=0 mi=(112,64) px=(256,448) side=64 skip=false mode=12 uv=12 oracle EC_IMODE_VAL mi_row=112 mi_col=80 mode=0 uv_mode=0 skip=1 tx=0 oracle EC_IMODE_VAL mi_row=112 mi_col=96 mode=0 uv_mode=0 skip=1 tx=0 oracle EC_IMODE_VAL mi_row=112 mi_col=112 mode=0 uv_mode=0 skip=0 tx=0 oracle EC_IMODE_VAL mi_row=112 mi_col=64 mode=12 uv_mode=12 skip=0 tx=0 Geometry, mode, uv_mode, skip and tx all agree, so this is a reconstruction difference on a block both decoders agree exists with the same flags. f0 U, y=448, x = 256 272 288 304 320 336 | 352 368 | 384 400 416 | 432..496: oracle 192 241 241 241 241 239 | 202 202 | 202 202 203 | 165 166 166 166 166 ours 192 241 241 241 241 239 | 241 239 | 202 202 202 | 202 175 175 171 171 Agreement ends at x=352 = 320+32, the chroma plane block's 2x2 boundary. The seed is skip=true mode=uv_mode=0, so its chroma is pure prediction; its right unit's edges read above=194, left=202, corner=118, yet it reconstructs flat 241 -- the SIBLING unit's value. The mechanism is therefore: the second chroma unit of a 4:4:4 64x64 square block's 2x2 walk does not get its own DC prediction. libaom resolves the DC per unit (av1_predict_intra_block is called per plane per transform unit, av1_build_dc_predictor_sb over the unit's own above row and left column); this path resolves it per block. RULED OUT BY MEASUREMENT: the new walk (four exact units); the extent and set (Chroma32 IS get_vartx_max_txsize's av1_get_adjusted_tx_size(TX_64X64) = TX_32X32, same conclusion r1 reached for the strip arm); CfL (cfl=false on all four bottom-row blocks, and zero cfl_ac_q3_at calls on the witness); the skip arm's coefficient-context record (record_mi_rect writes all three planes over the luma cells, so the zero stamp does land at 4:4:4, and forcing an extra per-unit zero record_mi_chroma into the skip arm changed NO number in any frame or plane); a bitstream or partition difference (the oracle's mode rung agrees). NOT DONE: the line inside the DC predictor. push_intra_unit -> push_intra -> inline_intra -> exec_intra takes the unit's own x, y, bw, bh, so the block-level reuse is either upstream of that call or inside exec_intra's DC arm, and separating those needs a paired per-unit-DC trace (ours + oracle) that I did not build. Handed back as a narrowed statement with the unit and the class named. The 4:2:0 and 4:4:4-lossless arms were not touched and no gate family was re-run, because no code changed on this branch.
Merge lane-av1pixprobe: EC_AV1_PIXPROBE write probe + the byte-identical diffwtd_mask cast moveAhmet Kaan Gümüş · 64a5043
Merge lane-av1pixprobe: EC_AV1_PIXPROBE write probe + the byte-identical diffwtd_mask cast move A: the env-gated EC_AV1_PIXPROBE=x,y one-sample write probe, re-anchored by hand because both mc stores now live in PlaneBuf::reconstruct_mc_rect (row-at-a-time slices) - it reports w, not the old branch's side, so rectangular inter blocks are not misreported. Fires on the pinned fixture (sha256 bc699af4...) and prints nothing when unset. B: the diffwtd_mask cast move with its byte-identity argued from the clamp (clamp(0,64) keeps m in 0..=64, so both the forward use and the 64 - m inverse are value-preserving), plus the compound transcription gate over all 256 phase pairs at 8 and 10 bits; two mutations red it, one proving the 10-bit arm is exercised rather than skipped. C is recorded, not investigated: the parked branch's 8x8-leaf miss DOES NOT REPRODUCE on merged main (byte-exact vs ffmpeg at that coordinate on the same fixture; the measuring tree was 439 commits stale), so the row now tells the next charter to re-measure first.
lane-av1pixprobe: land the EC_AV1_PIXPROBE rung re-anchored + diffwtd_mask's cast move and its 8/10-bit gateAhmet Kaan Gümüş · 4b28b49
lane-av1pixprobe: land the EC_AV1_PIXPROBE rung re-anchored + diffwtd_mask's cast move and its 8/10-bit gate
The two items lanes/av1cheapwins.report.md §C triaged "land after rebase".
A: the env-gated one-sample write probe from lane-av1-ibcwrite @ 25f5c729,
re-anchored by hand -- the branch's two mc store hunks no longer attach
because those stores now live in reconstruct_mc_rect (lane-perf4 /
lane-recoparse reshaped it: row-at-a-time slices, an early
residual.is_empty() return, and a w/h block extent with side demoted to the
prediction stride). pix_write("mc_copy"/"mc_add", x, y, w, ...) reports w,
not the branch's side, because that is what the block=(bx,by)+SIDE field
means for a rectangular inter block. Fires on the pinned R5 fixture
(sha256 bc699af4..., re-encoded here byte-identically) at px (296,128), three
stores one per plane; prints nothing with the variable unset.
B: 295dc3fe's u8 cast move in diffwtd_mask plus its 8/10-bit libaom
transcription gate. The cast is value-preserving: clamp(0,64) leaves m in
{0..=64}, so `as u8` is a no-op on the binding and both uses
(forward `m`, inverse `64 - m`, which is 1..=64) emit the same mask byte as
the old `m as u8` / `(64 - m) as u8` pair. The gate is the 10-bit coverage
diffwtd_mask's (bd - 8) term landed without; adapted to main's
blend_masked_compound, whose `subsampled: bool` is now subw/subh. Proven
non-vacuous at both depths, including a 10-bit-only round mutation that is
inert at 8-bit and still fails the gate.
C: the 189-vs-170 intrabc partition defect is recorded, not chased -- and
does not reproduce on merged main (the fixture decodes byte-exact vs ffmpeg
at 1d47ff54; the measuring tree 37a64d99 is 439 commits stale). The hand-off
row carries the original coordinates and numbers plus that caveat, so the
next charter re-bisects instead of trusting the coordinates.
Report: lanes/av1pixprobe.report.mdMerge lane-av1pinspec2: the count-vacuity scan is comment-aware and the SVT site is wire-derivedAhmet Kaan Gümüş · 20621b0
Merge lane-av1pinspec2: the count-vacuity scan is comment-aware and the SVT site is wire-derived Sweep: 58 site(s); 58 spec-pinned by a prior assert, 0 not (ceiling 2 -> 1 -> 0, each step tied to its commit's measured population, each with its own red-before). The SVT split-transform gate now runs on a COMMITTED pin (svt1-split-tx-pin.obu, 1838 B, sha256 c9d9c0ae... - a replay of two independent SVT-AV1 v3.1.2 encodes) instead of an env-named stream, and derives its frame count off the wire with Av1Parser, asserting the show_existing_frame case impossible on this pin rather than arguing it. Non-vacuity: runs unset on a stock box with no SKIP, and mutating the arm counter reds.
lanes: av1pinspec2 report -- the SVT crop is committable, and the ledger is emptyAhmet Kaan Gümüş · 9341fe5
lanes: av1pinspec2 report -- the SVT crop is committable, and the ledger is empty Outcome (a) on the branch point: the crop IS committable, so the gate runs on a stock box and its count comes off the wire. Records the recipe and the sha256, why lane-svt1's own 6x5x6 search missed it (it ran four frames per stream and the misses were on the inter frames; one key frame has none), how the show_existing_frame over-count objection is settled by assertion rather than by argument, and the measured non-vacuity (the premise reds at hits > 1, so the arm fires exactly once). Also records the failure the pin invariant caught: a comment of mine quoted the callee spelling the pin scanner matches on, and the scanner read the prose as a pin. The call is a literal on purpose, and the comment must not quote it.
Merge lane-av1cflac: the cfl_ac_q3_at 4:4:4 premise is REFUTED, and it is now guardedAhmet Kaan Gümüş · f82a113
Merge lane-av1cflac: the cfl_ac_q3_at 4:4:4 premise is REFUTED, and it is now guarded The inherited '188 rung hits at 4:4:4' does not reproduce: 0 hits on all 26 *444* pins, while cfl_ac_ss's own 4:4:4 arm fires 1834 times and is byte-exact vs aomdec. cfl_ac_ss dispatches 4:4:4 and 4:2:2 to their own libaom bodies BEFORE the 4:2:0 fallthrough that owns cfl_ac_q3_at, so the halving and the 2x2 average are correct at every reachable call site (the 4:2:0 total on the same counter is 33752 - where the 188 almost certainly came from). No decode behaviour change: two gates (the 4:4:4 arm>0 AND cfl_ac_q3_at==0 on one counter with per-plane 0/0/0 vs aomdec; a static closure proving cfl_ac_q3_at is reached only through the 4:2:0 fallthrough), an oracle_plane_diffs helper and per-arm counters. Mutation reds the gate, and in its naive half-extent form it PANICS (len 16, index 16) rather than mis-colouring - correcting the inherited 'silent wrongness' framing.
gate_coverage: make the count-vacuity scan comment-aware, ceiling 1 -> 0Ahmet Kaan Gümüş · cefac45
gate_coverage: make the count-vacuity scan comment-aware, ceiling 1 -> 0
The last unpinned row in the ledger was not a count. It was a `///` doc
comment quoting the pre-r4 body of `pinned_lr_sgr_stream_call_unique_dump` --
prose about code, sitting inside the gate the prose describes, which already
spends FRAMES and asserts `pics.len() == FRAMES`. A line-based scan cannot
tell the two apart, so that row sat in the ledger for a whole round as an
unpinned count no reader could act on, and the ceiling could never reach 0.
`sites()` now skips lines whose trimmed start is `//`. Only the SITE scan
skips them: the pin-window walk still sees every line, because a `//`-led line
there is a comment BETWEEN an assert and its call, not a site.
A coverage change gets a coverage test, in the shape `pin_inventory` already
uses -- a SYNTHETIC source, not the live tree, because a fix to the very gate
that motivated this would otherwise delete the row that proves the scanner
works. Both halves are asserted, and the second is the one that matters:
* half one: a count call inside a `///` doc comment is NOT a site. That is
the real row this change removes.
* half two, the control: the SAME call as real code IS still a site, still
attributed to the right gate, and still PINNED by an assert above it. A
scanner that skips comments by skipping the wrong thing is identical on
half one, and a ceiling of 0 is exactly the state where an over-broad skip
would go unnoticed.
count-vacuity sweep: 59 site(s); 58 spec-pinned, 1 not -> 58 site(s); 58
spec-pinned, 0 not. UNPINNED_CEILING 1 -> 0.
RED-BEFORE, both halves, with the skip removed and the ceiling at 0:
test ...::a_doc_commented_count_call_is_not_a_site_but_real_code_still_is
... FAILED
test ...::the_count_vacuity_sweep_finds_the_known_sites ... FAILED
1 unpinned count site(s), ceiling is 0 -- a new one was added
test result: FAILED. 1 passed; 2 failed
so neither half of this change can be reverted silently.stream: run the SVT split-transform gate on a committed pin, count off the wireAhmet Kaan Gümüş · 1e73b1b
stream: run the SVT split-transform gate on a committed pin, count off the wire
`an_svt_screen_palette_block_with_a_split_transform_decodes_exactly` read its
stream from whatever `EC_AV1_SVT1_STREAM` named and SKIPped when that was
unset, so on a stock box it never ran -- and an oracle count that cannot be
pinned is the same defect as one that is not: the gate was handing ffmpeg the
length of our own decode as the expected frame count, with nothing on the box
able to prove the number wrong.
The crop is now committed: `crates/ec-av1/fixtures/svt1-split-tx-pin.obu`,
1838 bytes, sha256
c9d9c0ae934fba72fc9a9374bc36853f290796a8a4d6442140e239669e0b341f. It is a
REPLAY, not a fresh capture -- two independent encodes of
ffmpeg -v error -f lavfi \
-i "smptehdbars=s=192x152:r=12,drawgrid=w=8:h=8:t=1:c=black" \
-frames:v 1 -c:v libsvtav1 -preset 8 -crf 50 \
-svtav1-params "lp=1:screen-content-mode=1" -g 12 -f obu out.obu
produce those exact bytes (SVT-AV1 v3.1.2). `-frames:v 1` is the part lane-
svt1's own 6x5x6 search lacked: it ran FOUR frames per stream and the
~200k-sample misses that killed every candidate were on the INTER frames
(lanes/svt1.report.md). One key frame has no inter frames, and this one
reaches the fixed arm and is pixel-exact.
The count is derived from the WIRE, not from a literal: the gate parses the
pin's own OBUs with `Av1Parser` and asserts `decoded.len() == frame_headers`
BEFORE handing that number to the oracle. A header count would OVER-count a
stream carrying `show_existing_frame` (spec 5.9.5 codes no pixels, so the
header count exceeds the shown-frame count), so that case is asserted
impossible on this pin rather than assumed -- which is what makes "one header
== one shown frame" a checked fact here instead of an argument.
`EC_AV1_SVT1_STREAM` still overrides the pin for a re-capture, and
`crate_pin` is called with a string LITERAL on purpose: the pin inventory
scans for that spelling, and a const argument would leave this pin outside the
"every pin a gate reads is a committed crate-local copy" invariant.
Non-vacuity, measured: the gate runs on a stock box with the env var unset
(0.18s, no SKIP), and `skip_split_tx_override_hits() > 0` mutated to `> 1`
reds -- so the premise arm fires exactly once on this pin and the gate cannot
pass blind. The count assert mutated to `frame_headers + 1` reds with
"the stream codes 1 frame(s), the decode showed 1", which is also the proof
the wire count and the decode agree.
count-vacuity sweep: 59 site(s); 58 spec-pinned, 1 not -- the SVT gate no
longer spends a decode-derived `.len()` at all, so it leaves the population.lane-av1cflac: cfl_ac_q3_at's 4:4:4 defect is UNREACHABLE; closed with two gates, no behaviour changeAhmet Kaan Gümüş · d6bb506
lane-av1cflac: cfl_ac_q3_at's 4:4:4 defect is UNREACHABLE; closed with two gates, no behaviour change
The inherited premise ("188 rung hits on the 4:4:4 set") does not reproduce.
The env-gated EC_HALVSWEEP rung, swept over all 26 *444* pins, prints 0 hits
on every one, while the 4:4:4 arm of cfl_ac_ss fires 1834 times across the
same fixtures and stays byte-exact against the oracle. cfl_ac_ss gives 4:4:4
(and 4:2:2) its own libaom-anchored body before the 4:2:0 fallthrough, so
bw/2, bh/2 and the 2x2 luma average are correct at every reachable call site.
The defect is real and latent, not live.
Landed instead of a fix:
- four per-arm CfL counters + a cfl_ac_q3_at entry counter, one per cfl_ac_ss
arm, so the routing is measurable from outside the crate;
- gate cfl_ac_444_routes_to_its_own_1x1_luma_body_and_420_to_the_2x2_average:
two pinned fixtures, two-sided (4:4:4 arm > 0 AND cfl_ac_q3_at == 0; 4:2:0
cfl_ac_q3_at > 0), plus per-plane Y/U/V counts vs the instrumented aomdec via
the new oracle_plane_diffs helper -- 0/0/0 on both;
- gate cfl_ac_q3_at_is_reached_only_through_the_420_fallthrough_of_cfl_ac_ss:
the static closure, enumerating the call-site set (3 sites), the single
caller of each decode-side wrapper, cfl_ac_ss's arm ORDER, and the absence
of any 4:4:4 ColorConfig in the encoder.
No decode behaviour changes: 4:2:0 is bit-identical (>> ss == / 2 there), no
stream newly refuses, nothing stopped decoding. Mutation proof: routing the
4:4:4 arm into cfl_ac_q3_at reds the gate (and in its naive half-extent form
panics in the reconstruct path, not a silent colour shift); a fourth call site
reds the enumeration. Green restored byte-identical.
Sweep: 0/26 on the 4:4:4 set; 33752 cfl_ac_q3_at entries across 17 4:2:0
fixtures; 4:2:2 arm 0 on all 85. Report: lanes/av1cflac.report.mdMerge lane-av1cheapwins: GIT_DIR leak fix in the runner locator + oracle depth-assumption docsAhmet Kaan Gümüş · 66148c5
Merge lane-av1cheapwins: GIT_DIR leak fix in the runner locator + oracle depth-assumption docs .cargo/config.toml: the runner locator's rev-parse now strips GIT_DIR/GIT_WORK_TREE/GIT_INDEX_FILE, which a leaked GIT_DIR (e.g. git bisect run) otherwise lets resolve the test package dir - the class behind exit 127 and GIT_DISCOVERY_ACROSS_FILESYSTEM in worktrees. Proven both directions: five leak shapes go 127 -> 0 while the normal path is unchanged. scripts/instrument-aom-oracle.sh: 63 comment lines documenting the 1-byte-per-sample assumption on rungs 1/6/7/15 (rung 12 is the only depth-aware one), with the AST check that no added line lands inside an emitted C string.
scripts: re-point the oracle DEPTH ASSUMPTION blocks at today's decode.rs linesAhmet Kaan Gümüş · 2562e2c
scripts: re-point the oracle DEPTH ASSUMPTION blocks at today's decode.rs lines
The four DEPTH ASSUMPTION blocks landed from 98d878d6 citing decoder-side
line numbers that have since drifted (decode.rs is 56341 lines; the cited
:35263 / :35336 / :35356 / :19734 and the "same at :53126 / :53048 /
:53148" duplicates no longer point at the narrowing code). A comment whose
whole job is "read this before you blame your decoder" must not point at
the wrong lines.
Re-verified every substantive claim against the current tree before
re-pointing, all still true:
- rungs 1/6/7/15: fwrite(..., 1, w, f), no YV12_FLAG_HIGHBITDEPTH check
- rung 12: the only depth-aware one (2 B for HBD, 1 B for 8-bit)
- the decoder-side pairs really do narrow to u8 on purpose
(dump_stage :20048-20054, dump_prefilter_wide :20078-20090; the
duplicate narrow closures are at :35651 and :53489)
stream.rs:2129-2155 (rung 12's u16 LE writer) was already correct and is
left alone. Comments only -- still zero non-comment added lines, so the
emitted oracle C is byte-identical.Merge lane-av1chromarect: 4:4:4 intra-BC rect-strip chroma is sized and walked per unitAhmet Kaan Gümüş · 972e329
Merge lane-av1chromarect: 4:4:4 intra-BC rect-strip chroma is sized and walked per unit The premise that this needed a new chroma TxbSet was WRONG: libaom never forms a 64-point chroma transform (av1_get_adjusted_tx_size maps TX_32X64/TX_64X32 -> TX_32X32 for plane != 0), so a 4:4:4 32x64 chroma plane block is TWO TX_32X32 units and TX_32X32 is already TxbSet::Chroma32. The missing piece was the multi-unit WALK. Lands: ss-derived chroma extent and the eight MV origin pairs, a per-unit chroma walk with neighbour stamping and covering-leaf tx_type inheritance, an ss(0,0)-only hit counter, and the refusal gate replaced by a pixel-exactness gate with committed oracle floors. Measured on r512.obu: 640727 wrong samples -> 79969 (-87.5%), luma byte-exact on all three frames, frame 2 fully exact. Residual 79969 is named in the report, not hidden.
Merge lane-av1stagegaps: a staged suite can no longer run with its preflight unverifiedAhmet Kaan Gümüş · 5938e75
Merge lane-av1stagegaps: a staged suite can no longer run with its preflight unverified scripts/check-aom-oracle-rungs.sh exits 3 (NOTRUN) when the prerequisite is absent instead of 1; new scripts/av1-suite-preflight.sh gates both pieces (VERDICT=GREEN|WAIVED|BLOCKED, rung_check=not-run waivable only via a named SUITE_RUNG_WAIVER) and scripts/av1-stage-suite.sh aborts before systemd-run on a blocked verdict. Red-before: the old driver printed rungs_exit=1 ok_count=0 and ran === SUITE anyway; green-after: BLOCKED, no unit created. Prerequisite named for host host-d: it carries oracle binaries only, no libaom source at $AOM_ORACLE_SRC.
Merge lane-av1ignorereasons: every bare #[ignore] names its unblock (15 -> 0)Ahmet Kaan Gümüş · 892672a
Merge lane-av1ignorereasons: every bare #[ignore] names its unblock (15 -> 0) All 15 were in ec-opus/tests/conformance.rs; attribute lines only, no test body touched. Three gate-shaped bodies stay ignored with reasons recording that their blocker is the local media corpus (or a body with no asserts), not a defect. Also records that the reelm@64k dropout the library gate first failed on is fixed per lanes/opus-drop-r2.report.md.
stage(av1): a suite cannot start with its preflight unverifiedAhmet Kaan Gümüş · bede77e
stage(av1): a suite cannot start with its preflight unverified Three hosts, three preflight realities, one identical green suite: host C logged 'rungs_exit=1 ok_count=0' with no detail and ran anyway, host A ran no preflight at all. 'Green suite' meant checker-passed, checker-failed and no-checker-ran with equal confidence. - check-aom-oracle-rungs.sh: exit 3 (NOTRUN) for an absent PREREQUISITE -- no libaom source tree, base ref not in it, or a TMPDIR that does not exist. The measured cause on host-d is the absent source tree; the host carries build/ (binaries) and no src/. exit 1 keeps meaning FAIL. - av1-suite-preflight.sh (new): runs both preflight pieces, prints every detail line of each, and emits one verdict. rung_check=not-run is waivable only via a non-empty SUITE_RUNG_WAIVER; an ABSENT checker is never waivable, which is the host-A defect. 8-case self-test. - av1-stage-suite.sh (new): the gate under 'set -e' before systemd-run, so a blocked verdict creates no unit. Also refuses a non-git tree, an empty index (bare 'git init' makes every pin read uncommitted), and a missing lanes/*.expected.txt. Lanes/av1stagegaps.report.md carries the reproduction, red-before / green-after, the per-host audit of both running suites (test counts unchanged), and the sentence the merge report can quote.