Commits
Commits on
9e84e98714144e304965867c4b39b28fdff42c7c2026-10-01
lane-unwritten-dep r3: the census was never blind -- dump_stage16's 4:2:0 chroma crop wasAhmet Kaan Gümüş · 9e84e98
lane-unwritten-dep r3: the census was never blind -- dump_stage16's 4:2:0 chroma crop was Corrects r2, which named the census as the blind instrument and attributed the 4:2:2 witness's divergence to deblock. r2's own numbers refuted both: its EC_AV1_DEBUG_SKIP_DEBLOCK run did not remove the difference, and 32 surviving sentinel samples cannot explain 1986 differing bytes. dump_stage16 cropped chroma as (fw/2, fh/2) -- a 4:2:0 assumption. On a 64x64 4:2:2 frame (ss_x=1, ss_y=0) it wrote 32x32 where the frame carries 32x64, so 2048 chroma samples appeared in NO stage dump, and they are exactly the region where the difference lives. Class: diagnostic-dump-assumes-one-subsampling. Fixed to (round_ss(fw, ss_x), round_ss(fh, ss_y)); all six call sites pass the frame's per-axis subsampling. The oracle's rung 1 already used uv_crop_width/uv_crop_height, which are per-axis. With per-axis extents the corrected bisect reverses r2: the pre-deblock dump now DIFFERS by 2158 bytes instead of being identical, and an exact u16 whole-plane census finds 224 unwritten samples (U 112, V 112, rows 36..63, whole 4x4 groups) -- exactly lane/av1unwritten's own number. The hole is present BEFORE any filter runs. The census reports it; the stage dump could not see it. Gate: the non-vacuity control is now SYNTHETIC -- the census is handed planes carrying exactly 7 sentinel samples and must report 7. r2's control used 440_request_is_422, which main now refuses, so r2's gate would have gone red on merge for an unrelated reason. Merge proof: main = e45cc748 merged locally (c62eeda9), gate green there (816 filtered vs 813 on the branch point, so both lanes' content is present). Mutation -- neutering census_unwritten_final reds the synthetic control. Scope stated rather than implied: the census is taken before apply_grain, so the claim is over the pre-grain planes (the bytes the reference bank stores and every later frame predicts from); "the caller's final grained picture has no hole" is NOT claimed. Swept the family r2 did not: run-to-run content nondeterminism with uninitialised planes, N separate processes. Negative for both hg fixtures, 4/4 identical with the correct frame size. 440 is not sweepable on the merge tree (main refuses it); on the branch point I measured 3/3 identical and make no claim about reproducing av1unwritten's three-distinct-hashes observation. Evidence bar corrected: 97ef82c0ce is CONSISTENT WITH a truncated dump (frames 0-4 plus 13320192 bytes of frame 5, reproduced bit-for-bit) -- that pins bytes and shape, not mechanism; the decode's innocence rests on the invariance evidence. 0ee1edf403 stays an open instrument-hygiene question, not a decode question.
lane-unwritten-dep: the reelb_* divergence is a truncated dump; the census blind spot is deblockAhmet Kaan Gümüş · 9fe4968
lane-unwritten-dep: the reelb_* divergence is a truncated dump; the census blind spot is deblock Neither reelb_rect64_intra16x4_witness.obu nor reelb_arf_witness.obu output depends on unwritten plane content on 8d6998d7. Both campaign PLAIN values reproduce EXACTLY (a26438168c, 8d7a43bc5f, `cat dir/frame.f*` shape); neither SENTINEL value does. Output is byte-identical across the crate's own PLANE_SENTINEL, five glibc MALLOC_PERTURB_ values, EC_AV1_THREADS 1/2/4/8, and in-process allocator-free-list poisoning, for all 34 / all 40 decode-order frames including every hidden alt-ref. 97ef82c0ce is reproduced bit-for-bit by a dump that stopped after 5 complete frames and 13320192 bytes of frame 5 (71.8% of one frame), the rest never written: EC_AV1_FINAL_DUMP ignores its write error, so a full filesystem leaves a prefix of the true byte stream and nothing says so. The census's blind spot, named with a stage bisect on 440_request_is_422: the pre-deblock plane is BYTE-IDENTICAL plain vs sentinel (0 sentinel samples) while the final output differs by 1986 bytes, and the difference enters AT deblock (PREFILT_DUMP16 identical, POSTDEBLOCK_DUMP16 differs by 26 bytes). Deblock reads a neighbour to decide an edge, so an unwritten sample changes its neighbour's filtered value even when the unwritten sample itself is overwritten afterwards. A scan taken before the filter cannot see that by construction. Fix: census_unwritten_final + take_final_unwritten_samples, called beside the EC_AV1_FINAL_DUMP site, i.e. where the output is taken. Gate the_frame_the_caller_receives_carries_no_unwritten_plane_sample asserts non-vacuity FIRST (32 on the 4:2:2 witness, the one fixture where a hole really reaches the output) and then 0 on four real film fixtures with hidden alt-refs. Three mutations red it: neutering the census, removing the call, and forcing one sentinel sample into one film frame's output. No display-order frame is affected on either fixture: no unwritten sample reaches the output at all, displayed or hidden. 440_request_is_422's cause is the invalid subsize lane/av1unwritten refuses; that lane is untouched.
Merge lane/av1unwritten: refuse the subsize libaom calls corruptAhmet Kaan Gümüş · 8d3f38a
Merge lane/av1unwritten: refuse the subsize libaom calls corrupt 440_request_is_422.obu is a 4:2:2 sequence header over a 4:2:0 tile, so its partition symbols name subsizes (8x16 among them) with no chroma plane block at ss (1,0). libaom refuses that at decodeframe.c:1445-1458 with "Block size %dx%d invalid with this subsampling mode", and aomdec refuses the file outright; libaom's own encoder never emits such a shape either (partition_search.c:3383-3389 gates partition_rect_allowed with the same table). This decoder walked those subsizes anyway, and its output for the witness depends on unwritten plane content. The fix mirrors libaom's check instead of inventing a geometry: the two BLOCK_INVALID cell lists of av1_ss_size_lookup are transcribed verbatim, a partition symbol is resolved to its subsize and refused there when that subsize has no chroma plane block at the frame's subsampling, and the refusal is a returned error naming the shape (a partition symbol is stream data, so hostile bytes reach it). Eleven guard sites cover the ten partition-symbol resolutions; the eleventh is the redundant one behind the shared read_sb128_root. Two instruments make the coverage checkable rather than asserted: EC_AV1_SUBSIZE_GUARD_TRACE records what each guard site sees over the corpus (exactly one codable=false observation corpus-wide, the key-frame 16-level VERT_B), and EC_AV1_SUBSIZE_ARM_TRACE does the same for unguarded dispatch arms. A structural test derives its site list from the bindings in this file, requires a guard for each resolution's own level, and asserts that no guard sits inside a PARTITION_HORZ_A..=PARTITION_VERT_B arm, which can only carry values 4..=7. Verified over four refutation passes. The decode path: no guard fires on a legal shape (all 20 genuine 4:2:2 fixtures decode, and partition_subsize_dims matches subsize_lookup cell for cell); 127-fixture sweep, the witness is the only row that changes and nothing newly refuses; the witness refuses while 422_key_64x64 still decodes. The checker itself failed three times and each failure is in the report: a four-cell hand-picked predicate that refused a legal 16x4 at 4:2:2, three guards placed inside arms that could not see the offending value, and an AB-arm tracker that self-cleared on the arm's own brace line. Residue, stated: decode_rect4_16_intrabc is out of scope and unaudited, and the guard-vs-resolution cross-check is level presence plus a 220-line window, not a dispatch bound.
lane-av1unwritten r10: the AB-arm tracker, once more, plus the number correctionsAhmet Kaan Gümüş · 1feddfc
lane-av1unwritten r10: the AB-arm tracker, once more, plus the number corrections
No decode-path change -- the fourth pass found no defect in it. Test and report
only.
1. The AB-arm tracker was open for exactly one line. Armed at the condition
(indent 44, body 48), the wrapped `.contains(&part16)` at indent 48 set
entered = true, and then the arm's own `{` -- which carries the OPENER's indent,
not the body's -- hit ind < body and cleared it. Every statement in the arm body
was invisible, so the mutation that moves a guard INSIDE an arm stayed GREEN at
r8 and r9. r10 skips a line whose trimmed text is exactly `{`. That mutation now
reds with the r5 diagnostic:
"decode.rs:36539 puts a refuse_invalid_subsize inside a
PARTITION_HORZ_A..=PARTITION_VERT_B arm ... -- r5's defect"
2. The doc comment was stale r7 text. Re-derived per line: 18 occurrences in
decode.rs = 11 guard call sites in the decode body (35588, 36278, 36406, 36472,
36882, 37132, 53985, 54222, 54606, 54752, 55164) + 5 in this test's own strings
and comparisons + 2 in doc comments. The definition's signature does not match
"(( " at all.
3. The scan finds 10 resolutions, not 11. The eleventh guard is the inter-frame 128
one at 53985, whose resolution lives in the shared read_sb128_root and so has no
resolution of its own -- the redundancy the >= exists to allow. The report says
11 guards against 10 resolutions and names why.
4. The bound-variable lookup now scans BACKWARDS and takes the nearest `let`
whose binding is the one followed by the symbol read; it used to take the first
`let` upward and could name an unrelated binding (ec_dbg_pre).
5. The non-claim is now explicit rather than inferable: cross-check 1 is level
PRESENCE only, cross-check 2 is >=, so a SECOND unguarded site at an
already-covered level is caught only by the per-site 220-line window -- a window,
not a dispatch bound.lane-av1unwritten r9: a real residue site, and a checker weaker than its commentAhmet Kaan Gümüş · 4ac9e12
lane-av1unwritten r9: a real residue site, and a checker weaker than its comment
The third pass confirmed r7's decode path and failed the checker plus one real
residue.
Residue: decode.rs:37115 is a key-frame partition_w8 resolution dispatching
decode_leaf_rect8 on a raw part8 with no refuse_invalid_subsize above it --
BLOCK_4X8 at 4:2:2, the shape r5 and r6 each flagged. Guarded; the fixed scan
immediately found a SECOND one at 36876 that no earlier round had seen. Both are
residue, not live pixels: neither is corpus-reachable at ss(1,0) today.
Checker:
1. the scan's window started AT the partition_w line, so a binding whose `let` is
on the line above was dropped -- exactly why 37115 was invisible. r9 searches
the preceding line too;
2. the level cross-check was per-level PRESENCE, so a second unguarded site at an
already covered level passed -- how 37115 survived with level 8 covered by the
inter-8 site. r9 states presence as presence and adds the guard-vs-resolution
count;
3. sites.len() >= 9 was a floor the tree satisfied with 10. Replaced with a count
derived from the scan: 11 guard sites, 11 resolutions;
4. the AB-arm tracker self-cleared on the `{` line (same indent as the `if`), so
moving the kf-32 guard back inside an arm stayed GREEN. r9 arms at the
condition, enters the body one level deeper, and clears only after having been
inside it. That mutation now reds.
Occurrence count re-derived per line: refuse_invalid_subsize(( appears 18 times in
decode.rs -- 11 guard call sites in the decode body, 4 in the test's own string
literals and comparisons, 2 in doc comments, and the definition's signer does not
match (( at all. Counted by call shape so a multi-line assert string mentioning the
function is not counted. Main's 13 and the refutation's 15 were both pre-r9.
Not claimed: the guard/resolution check is >=, not ==. A hard equality between
two numbers the scan computes is a claim about the scanner. What reds is a
resolution with no guard (naming the variable) and a guard inside an AB arm.
No sweep change: the witness refuses, 422_key_64x64 still decodes. 30 tests green.lane-av1unwritten r8: the structural test claimed more than it provedAhmet Kaan Gümüş · 40b1e4b
lane-av1unwritten r8: the structural test claimed more than it proved Maine's r7 read found three honesty gaps, all in what the test SAID rather than in what the decode does. 1. "BEFORE the first dispatch on the variable" was in the comment only -- r7 checked that a guard for the level appears somewhere in the next 220 lines. r8 implements the bound: where the window contains a `match part...` dispatch, the guard must precede it. 2. The binding pattern was formatting-sensitive and failed silently: a resolution whose dec.symbol( is wrapped onto the next line vanished from the list with nothing red. r8 reads the level and the symbol read from a two-line window so a wrapped site resolves rather than disappearing, and the remaining cross-check is over LEVELS, which a reformat cannot lose: every partition_w<N>[ in the file must appear among the resolutions found. 3. var was parsed as the text BEFORE "let ", so it was always empty and the diagnostic printed `(decode.rs:1234) resolves...` with no name, exactly where the name matters. r8 takes the token after `let `. Coverage is now stated so a reader can tell it from a floor: today 10 partition-symbol resolutions and 13 refuse_invalid_subsize(( occurrences, of which 9 are guards at 9 resolutions. The doc comment lists precisely what is asserted and what is NOT -- the test does not prove a guard is at the exact dispatch point, the window is a window, which is why the AB-arm invariant is separate and why EC_AV1_SUBSIZE_GUARD_TRACE records what each site really sees. Two mutations, both red: deleting the inter-16 guard, and moving the inter-64 guard inside a PARTITION_HORZ_A..=PARTITION_VERT_B arm (r5's defect). No decode-path change. 30 tests green.
lane-av1unwritten r7: the last two holes, and the structural check that stops the thirdAhmet Kaan Gümüş · b8a9003
lane-av1unwritten r7: the last two holes, and the structural check that stops the third Two gaps survived r6, both measured by the refutation with its own build. Gap 1 -- inter 64 edge arm. r6's guard sat inside the (true, true) arm of `let part64 = match (has_cols, has_rows)`; the edge arms return without passing it, and (false, true) resolves to PARTITION_VERT, which at a 64x64 root selects BLOCK_32X64 -- INVALID at (1,0). Measured 50 corpus-wide reaches and 0 in any 4:2:2 cell, so the corpus cannot see it. Hoisted one refuse_invalid_subsize((64, 64), part64, fctx)? to just after the match closes. Gap 2 -- the inter-frame 16x16 level had NO guard at all: r6 deleted r5's misplaced one without replacing it, and all three dispatch arms there (NONE/HORZ/ VERT, the four AB arms, the 1:4 arms) select BLOCK_8X16 and BLOCK_4X16, two more of the eight (1,0)-INVALID shapes. Guard added where that symbol is resolved. Structural change, because r5 and r6 failed the same way -- a guard existed somewhere and nothing said it sat between a symbol's RESOLUTION and every dispatch of it. New gate every_partition_symbol_resolution_is_guarded_before_it_dispatches derives the site list from the code itself (every `let <var> = dec.symbol(...partition_w<N> [...]` binding) rather than from memory, requires a refuse_invalid_subsize((N, N)) for each one's own level, and separately asserts the r5 defect cannot return: no guard may sit inside a PARTITION_HORZ_A..=PARTITION_VERT_B arm, tracked by indentation. Mutation shown: deleting the inter-16 guard reds it with "part16 (decode.rs:54671) resolves a 16x16 partition symbol with NO refuse_invalid_subsize((16, 16)) anywhere after it". That is also why EC_AV1_SUBSIZE_ARM_TRACE's hand-listed three arms was not enough: its site list was a list. The scan above cannot have that hole -- a new level appears as a new binding and the test fails until it is guarded. Residue corrected: at least three sites, not one. The inter-64 edge arm and the inter-16 shapes are fixed; decode_rect4_16_intrabc remains out of scope and NOT AUDITED (another lane's charter). The report no longer says intrabc was the only exception, and states the limit of the scan: it covers partition_w* resolutions, and a dispatch selecting a subsize without reading such a symbol would not be caught by it. r7: 30 tests green. Corpus scan 2750 lines, exactly one guard firing (16x16 part=7, PARTITION_VERT_B -> BLOCK_8X16). The witness refuses; a genuine 4:2:2 pin still decodes (422_key_64x64 -> OK: 1 frames decoded, 64x64).
lane-av1unwritten r6: the guards were not where the offending values are decidedAhmet Kaan Gümüş · 6eedd60
lane-av1unwritten r6: the guards were not where the offending values are decided
r5 claimed complete coverage and did not have it. The refutation (Agent03-5) showed
three of the eight refuse_invalid_subsize calls sat inside
PARTITION_HORZ_A..=PARTITION_VERT_B arms, so they could only observe partition
values 4..=7, while the arms that see the offending values had no guard above
them: kf 16-level decode_rect4_16 with part16=9 (VERT_4 -> BLOCK_4X16, 538 hits),
inter 64-level rect/1:4 with part64=2 (-> BLOCK_32X64, 887) and =9 (-> BLOCK_16X64,
280), inter w8 with part8=2 (-> BLOCK_4X8, 3476).
Fix: every guard now sits where the symbol is RESOLVED, before any dispatch arm
-- one per level per path. Corpus scan of the values each site now sees:
kf 64/32/16 and inter 64/32 all reach values 0..=9; kf 128 reaches 0..=3;
inter 8 reaches 0..=3. The only guard that fires over the corpus is kf 16-level
on PARTITION_VERT_B (BLOCK_8X16, INVALID at 4:2:2), 68 times. Every other corpus
stream is 4:2:0/4:4:4 where those values are legal, so "passed" is the correct
reading -- the sweep is what proves the legal siblings still decode.
Two committed, env-gated, off-by-default coverage scans, printed by decode_probe,
because prose about coverage is not evidence of coverage:
EC_AV1_SUBSIZE_GUARD_TRACE per guard call site, per partition value, reached
and fired -- a site that never sees an offending
value becomes visible instead of assumed covered
(exactly the defect r5 shipped);
EC_AV1_SUBSIZE_ARM_TRACE per unguarded dispatch arm, which values reach it
and whether their subsize is codable here.
2346 lines over the 127-fixture corpus.
Residue, stated: decode_rect4_16_intrabc is the declared exception and was NOT
audited (another lane's charter). The arm scan finds no dispatch reached with a
non-codable subsize that lacks a guard above it.
Two report defects corrected against my own measurement: the section-5 mutation
text named two chroma_plane_block_codable call sites that no longer exist, and
section 2.1's "differs by 1984 bytes" does not reproduce -- both dumps are 8192
bytes and the 0xAD counts are 33 and 65, which is the correct form. (A per-byte
diff is unstable because one sentinel sample propagates through the loop filters
into its neighbours.)
r6 regression: 127 fixtures, the witness only refuses, nothing newly refusing;
29 tests green.cmpff: prune infeasible subtrees in the assignment search (three cells went from >30 min to byte-exact in a second), count pairs at C speed, and pin PROBE to a provenance-verified buildAhmet Kaan Gümüş · f91abd5
cmpff: prune infeasible subtrees in the assignment search (three cells went from >30 min to byte-exact in a second), count pairs at C speed, and pin PROBE to a provenance-verified build The 43-decode/40-display cells (AD_inter_nogm, AB_inter_warp_odd, AA_inter_compound) never finished in 300 s with 15 minutes of user CPU. The assignment DFS had no feasibility check, so an instance whose candidate lists cannot cover the display side explored the whole tree before returning empty; with 'remaining decode frames must cover the remaining display partners' plus a node cap that reports instead of hanging, all three measure BYTE-EXACT in 1.4 s total. Pair counts for 8-bit planes now come from a big-int XOR counted with bytes.count (verified equal to the per-sample loop on a synthetic case, and a stored cell's JSON is byte-identical after the change). PROBE is pinned to a probe built in a fresh worktree whose filename carries its tree hash and whose embedded strings show no other worktree -- the previous path had been silently built from a lane worktree at least once.
lane-av1unwritten: the census result is not a corpus-wide cleanliness claimAhmet Kaan Gümüş · d561585
lane-av1unwritten: the census result is not a corpus-wide cleanliness claim Main, after r5, measured on 8d6998d7 with a provenance-verified probe: a sentinel-vs-plain output diff finds two further fixtures whose output depends on unwritten plane content -- reelb_rect64_intra16x4_witness.obu (34 frames) and reelb_arf_witness.obu (40 frames) -- both of which this lane's census reports clean. So the report's 126/126 census sweep must not be read as "no fixture depends on unwritten memory". The census is a PRE-DEBLOCK scan of the three planes; it cannot see a dependence produced at a later stage or in a region it does not cover. One of the two instruments has a blind spot and Agent01-9 owns finding which (lane/unwritten-dep). Every number in this report stays attributed to this lane's own tree. Also added a traps section for what this lane paid for: EC_AV1_FINAL_DUMP writes nothing when the prefix directory does not exist (silence, not an error); at 8-bit the dump is u8 so PLANE_SENTINEL 0xDEAD survives only as the single byte 0xAD; and a binary's provenance comes from its embedded source paths, not from what cargo last reported. No code change. 29 tests green as committed.
lane-av1unwritten r5: restore the determinism evidence, correctly attributedAhmet Kaan Gümüş · d0f3f8a
lane-av1unwritten r5: restore the determinism evidence, correctly attributed
Main's counter-measurement was itself the stale-binary class: the probe it used
embeds THIS worktree's source paths, so it was an r1 build, not main. With a
path-verified fresh worktree at 8d6998d7 and its own target dir, main IS
nondeterministic on this witness and its output DOES depend on unwritten plane
content. Both readings reproduced; the premise stands.
Report and the chroma_plane_block_codable doc comment now record, as measured:
* on 8d6998d7, five runs with uninitialised planes give TWO distinct output
hashes; five runs with EC_AV1_PLANE_SENTINEL=1 give ONE; the sentinel output
differs from the plain one (1984 bytes);
* the byte width that hides it -- EC_AV1_FINAL_DUMP writes u8 at 8-bit, so
PLANE_SENTINEL 0xDEAD narrows to the single byte 0xAD (65 vs a 33 baseline),
and a two-byte 0xDEAD count cannot find it;
* the recipe detail that cost a round -- the dump writes NOTHING if the prefix
directory does not exist, so create it first;
* the provenance lesson, since it nearly inverted the section: a binary's
provenance comes from its own embedded source paths, not from what cargo
last reported.
Kept distinct, as Main asks: the observation explains why anyone looked; the
libaom refusal (aomdec) and the encoder guard (partition_search.c:3383-3389)
are why the fix is right; the 224-sample census stays labelled as a lane-tree
measurement with a lane-only instrument.
Gate unchanged: refusal + libaom's wording + genuine-4:2:2 positive control.
29 tests green. Two apparent failures were this box's /tmp quota again (errno
122), not the change; both pass after freeing scratch.lane-av1unwritten r5: stop asserting the nondeterminism as measured factAhmet Kaan Gümüş · 4561b9e
lane-av1unwritten r5: stop asserting the nondeterminism as measured fact
Main re-measured the witness on main 8d6998d7 with a provenance-checked probe
and did not reproduce varying output hashes, so the report and the
chroma_plane_block_codable doc comment must no longer state it as measured fact.
Both now say what is actually established, and neither of the two justifications
is this lane's pixel measurement:
1. libaom REFUSES the shape -- aomdec on the pin prints "Failed to decode
frame 1: Corrupt frame detected" / "Block size 8x16 invalid with this
subsampling mode" (decodeframe.c:1449-1458);
2. libaom's own encoder never emits it -- partition_search.c:3383-3389 gates
partition_rect_allowed on the same table, so no conformant 4:2:2 stream can
contain the shape and the refusal cannot reject legal content.
The 224-sample pre-deblock census is cited as what it is: a measurement on THIS
lane's tree with the lane-only census instrument, not a property of main's
output. The five-hash sentence, the determinism claim in the outcome line, and
the "Determinism, now a consequence" paragraph are deleted; the gate keeps
asserting the refusal plus a genuine-4:2:2 positive control, which is what
libaom actually does. Census instrument kept.
Reported to Main separately: I could not reproduce determinism either, on a
worktree I built from 8d6998d7 myself (clean git status, five fresh processes,
five hashes; sentinel-vs-plain 1984 differing bytes). The likely cause of the
disagreement is byte width -- EC_AV1_FINAL_DUMP writes u8 at 8-bit, so
PLANE_SENTINEL 0xDEAD narrows to the single byte 0xAD (65 in a sentinel dump vs
33 baseline in a plain one) and a 2-byte 0xDEAD count cannot see it. Flagged for
a re-run at 0xAD or on a 10-bit fixture.
Tests: 29 green across the table test, the refusal gate with its positive
control, the realigned 440 gate, the 4:2:2 set and the sub8 set. Four earlier
"failures" were this box's /tmp quota (errno 122 writing the witness), not the
change; all four pass after freeing scratch.lane-av1unwritten r5: every subsize-selecting site guarded, not just VERTAhmet Kaan Gümüş · 22c0111
lane-av1unwritten r5: every subsize-selecting site guarded, not just VERT
r4 named six sites instead of sweeping them; r5 closes them.
Each guard is now UNCONDITIONAL on the resolved partition symbol rather than
matches!(sym, PARTITION_VERT). partition_subsize_dims is libaom's
get_partition_subsize (common_data.h:71-90) reduced to dimensions and is exact,
so one call per dispatch covers VERT, VERT_A/VERT_B, HORZ_4 and VERT_4 at once
while the HORZ siblings pass through unchanged.
Installed at:
key 128 root match part128 64x128 / 16x64
key 64 level match part 32x64 / 16x64 (binds its symbol to
`part`, not `part64`)
key 32 level match part32 16x32 / 8x32
key 16x16 match part16 4x16
inter 128 root match part128 64x128
inter 64 level match part64 32x64 / 16x64
inter 32 level match part32 16x32 / 8x32
inter 16x16 match part16 4x16
plus the r3 partition_w8 sites (4x8).
An intermediate attempt put refuse_invalid_subsize(..., PARTITION_VERT_4, ...)
inside a `PARTITION_HORZ_4 | PARTITION_VERT_4 =>` arm, which fired for HORZ_4 as
well and refused nine real 4:2:2 gates -- caught by the scoped test set before
commit. The unconditional form ships.
Still open: none of r5's four items. decode_rect4_16_intrabc remains the
declared exception (another lane's charter).
Regression on r5: 127 fixtures, both trees, per-fixture aggregate hashes --
differing: ['440_request_is_422'], 126 emitting, refused:
['440_request_is_422']. 29 tests green: the libaom table test, the refusal gate
with its 4:2:2 positive control, the realigned 440 gate, the 4:2:2 set and the
sub8 set.lane-av1unwritten r4: install the refusal at four more subsize sitesAhmet Kaan Gümüş · e898fd7
lane-av1unwritten r4: install the refusal at four more subsize sites Main: a found defect is swept whole, not partly. r3 named the six remaining sites; r4 installs four of them through one helper so the check can never be applied to a parent's own shape -- the r2 mistake in a new place. partition_subsize_dims(bw, bh, part) is libaom's get_partition_subsize reduced to dimensions (spec 6.10.3): SPLIT -> (w/2, h/2), HORZ/HORZ_A/HORZ_B -> (w, h/2), VERT/VERT_A/VERT_B -> (w/2, h), HORZ_4 -> (w, h/4), VERT_4 -> (w/4, h). refuse_invalid_subsize applies chroma_plane_block_codable to THAT and returns libaom's named refusal. Installed at: 128 root PARTITION_VERT -> 64x128 (1,0) INVALID 64 level PARTITION_VERT -> 32x64 (1,0) INVALID 32 level PARTITION_VERT -> 16x32 (1,0) INVALID 16x16 PARTITION_VERT_4 -> 4x16 (1,0) INVALID Each guard is written so the sibling of the same dispatch still decodes, and the report's site table records the sibling per site: HORZ at the 128 root -> 128x64 (64x64 valid), at 64 -> 64x32 (32x32 valid), at 32 -> 32x16 (16x16 valid), HORZ_4 at 16x16 -> 16x4 whose (1,0) cell is 8x4 -- VALID, the exact shape r2 refused and the one libaom's own encoder emits. Still open and named, not claimed: VERT_A/VERT_B four-way splits at 16/32/64 (8x32, 16x64), VERT_4 on 8x16/16x8 in decode_rect_split (8x32), the inter-frame duplicate of the 64-level match, and decode_rect4_16_intrabc (another lane's charter). Regression on r4: 127 fixtures, both trees, per-fixture aggregate hashes -- differing: ['440_request_is_422'], 126 emitting, refused: ['440_request_is_422']. 29 tests green across the table test, the refusal gate with its 4:2:2 positive control, the realigned 440 gate, the 4:2:2 gates and the sub8 set.
lane-av1unwritten r3: the predicate is a transcription of av1_ss_size_lookup, not a guessAhmet Kaan Gümüş · b9fb499
lane-av1unwritten r3: the predicate is a transcription of av1_ss_size_lookup, not a guess Main's r3 refutation is right on both counts. The r2 four-cell match refused (16,4) at ss (1,0), where the table says BLOCK_8X4 -- a legal 4:2:2 shape that libaom's own encoder emits, since partition_search.c:3383-3389 gates partition_rect_allowed[HORZ] with exactly this table. And it covered two of the eight shapes libaom refuses at 4:2:2; r2's claim that the 32/64-level roots need no check was true of the PARENT rows and false of the children (get_partition_subsize(BLOCK_32X32, PARTITION_VERT) = BLOCK_16X32, INVALID at (1,0)). chroma_plane_block_codable is now two const lists holding every BLOCK_INVALID cell of common_data.c:17-41 and nothing else -- at (1,0): 4x8, 8x16, 16x32, 32x64, 64x128, 4x16, 8x32, 16x64; at (0,1): 8x4, 16x8, 32x16, 64x32, 128x64, 16x4, 32x8, 64x16; none at (0,0) or (1,1) -- so a reader diffs it against the C source line by line. New gate chroma_plane_block_codable_matches_the_libaom_table transcribes all 22 rows x 4 subsampling pairs literally and asserts agreement cell for cell. It reds on exactly the mistake r2 made: transcribing it caught two rows (32x8 and 64x16 at (0,1)) I had copied wrong out of the briefing, and it pins 16x4@4:2:2 as legal, which is the direction the corpus cannot see. Site coverage is now stated as installed (partition_w8, partition_w16) plus six named gaps (VERT_4/HORZ_4 1:4 -> 4x16; w32/w64/128 VERT -> 16x32/32x64/64x128; VERT_A/VERT_B -> 8x32/16x64), each with the next step, rather than claiming coverage. decode_rect4_16_intrabc stays out of scope and is named as such. Regression on the corrected predicate: 127 fixtures, both trees, per-fixture aggregate hashes -- differing: ['440_request_is_422'], 126 emitting dumps, one REFUSED. Gates green: the table test, the refusal gate with its 4:2:2 positive control, and the realigned the_440_cell_is_not_a_codable_chroma_shape.
lane-av1unwritten r2: refuse the subsize libaom calls corrupt, not a TX_4X8 unitAhmet Kaan Gümüş · ff41e00
lane-av1unwritten r2: refuse the subsize libaom calls corrupt, not a TX_4X8 unit Refutation (Agent03-5, verified by Main) killed this lane's first fix: the TX_4X8 chroma arm it landed was a port of behaviour libaom does not have. get_plane_block_size is a single indexed return, av1_ss_size_lookup[bsize] [ss_x][ss_y] (blockd.h:1186-1193) -- no per-axis MIN -- and BLOCK_4X8 at ss (1,0) is BLOCK_INVALID, so libaom never reaches max_txsize_rect_lookup for that shape. That arm, its chroma-extent derivation and its coverage gate are all reverted. What is actually wrong is a MISSING REFUSAL. aomdec on the pinned witness: Failed to decode frame 1: Corrupt frame detected Additional information: Block size 8x16 invalid with this subsampling mode decode_partition checks exactly that before descending into a subsize (decodeframe.c:1449-1458): get_plane_block_size(subsize, ss_x, ss_y) == BLOCK_INVALID is AOM_CODEC_CORRUPT_FRAME. So a 4:2:2 header over a 4:2:0 tile names subsizes that have no chroma plane block, and the nondeterministic output was what decoding them anyway looks like downstream. Fix: chroma_plane_block_codable() (the four BLOCK_INVALID cells of av1_ss_size_lookup, nothing else) + refuse_invalid_plane_block(), a RETURNED error carrying libaom's own wording -- never an assert!, since a partition symbol is stream data. Installed where a partition symbol becomes a strip subsize with a chroma plane block: partition_w8 -> 8x4 / 4x8, partition_w16 -> 16x8 / 8x16. The PARTITION_HORZ_4 / VERT_4 1:4 sites (4x16 / 16x4) are a named gap, not silently left out. Gates: a_422_header_over_a_420_tile_refuses_the_subsize_libaom_calls_corrupt (refusal + libaom's wording + a genuine 4:2:2 positive control so it cannot pass by refusing everything); the_440_cell_is_not_a_codable_chroma_shape's lane-av1422lift "it decodes" arm realigned to the same contract, its 4:4:0- request-lands-on-4:2:2 claim untouched. Corpus: all 127 fixtures decoded on both trees and every EC_AV1_FINAL_DUMP frame hashed -- the only difference is the witness, which now refuses; the other 126 are byte-identical. Kept: the EC_AV1_PLANE_SENTINEL-gated census instrument (census_unwritten, set_plane_sentinel, take_unwritten_samples, take_census_scanned) that found the class. Its comment no longer claims a flag it does not have.
lane-av1unwritten: a 4:2:2 chroma block the walk never coveredAhmet Kaan Gümüş · 24bb8e9
lane-av1unwritten: a 4:2:2 chroma block the walk never covered sub8_leaf_chroma422 wrote ONE square TX_4X4 where libaom writes ONE TX_4X8 (av1_get_max_uv_txsize(BLOCK_4X8, 1, 0) == max_txsize_rect_lookup[BLOCK_4X8], through get_plane_block_size's per-axis MIN), so every 4:2:2 8x8 block coded PARTITION_HORZ left the bottom four chroma rows of its plane block unwritten. The uninitialised plane memory reached the output: the pinned 440_request_is_422.obu hashed five different ways over five runs while every census count read identical. The fix routes that one shape to leaf8_chroma422_unit -- the port that already exists for a BLOCK_8X8 4:2:2 leaf, same TxbSet/scan/inverse-transform/push -- with the unit's reach, entropy context and CfL AC span following the taller unit. The two intrabc shapes hand their frame copy over through that function's existing pred_override. The square arms stay for leaf=(4,4) (the decode_leaf_split4 route already tiles 4x8 correctly) and for lossless, where av1_get_tx_size returns TX_4X4 on every plane and libaom walks two stacked 4x4 units. Evidence: sentinel census of all 127 committed fixtures is empty on every frame before AND after except the witness, which goes 112 -> 0 per chroma plane; every fixture's EC_AV1_FINAL_DUMP hashes byte-identically pre/post except the witness; the defective leaf=(4,8) shape fires 0 times in 3528 real sub8_leaf_chroma422 invocations across the 4:2:2 corpus (7 on the witness), so no committed valid stream regresses. New instrument EC_AV1_SENTINEL_CENSUS plus decode::set_plane_sentinel / take_unwritten_samples / take_census_scanned, and the gate a_422_header_over_a_420_tile_leaves_no_sample_unwritten (reds at 224 unwritten samples with the fix disabled).
Merge lane-av1422lift: the 4:2:2 sequence-header refusal is lifted -- 4:2:2 decodesAhmet Kaan Gümüş · 05c4451
Merge lane-av1422lift: the 4:2:2 sequence-header refusal is lifted -- 4:2:2 decodes
The user's decision was fix the diverging cells, then lift. The cells are fixed (the last one closes in `a115abae`),
and this is the lift: the guard at `stream.rs:1803-1808` is gone, its residual -- the uncodable 4:4:0 `(0,1)` shape,
which the parser cannot produce because `subsampling_y` is read only when `subsampling_x == 1` -- closes with an
**assertion** rather than a comment or a refusal string, per this repo's rule. The `REFUSALS` row and its `PROVEN`
tuple retire **in the same commit**, because `the_decode_path_refuses_exactly_the_listed_cases` asserts both
directions empty and a partial retirement fails it.
Verified before merge, by Main and independently:
- **Format-independence (the real risk)**: 45 committed 4:2:0/4:4:4 fixtures (8/10/12-bit, lossless, superres,
grain, odd geometries) decode **byte-identical** between `4f206ec3` and this branch.
- **The engine of the change**: the parser provably produces only `{(1,1),(0,0),(1,0)}`, so the new assertion is
sound and reachable only with a parsed header; **all three inventory deletions are independently load-bearing**
(3/3 mutations red).
- **The gates bite**: all six inverted `the_pinned_422_*_decode_pixel_exact` tests plus three new pixel gates red
on a shape-preserving one-LSB decoder mutation, and the shared 4:2:2 body asserts both the plane SHAPE
(half-width x full-height -- a stray 4:2:0 allocation fails it) and a **non-zero census delta**, so it cannot be
green while exercising nothing.
- **Fixtures**: the two pins the old tests used were a 4:2:2 header bolted onto a 4:2:0 tile from this crate's own
encoder -- one of them is ffprobe-INVALID -- so they carried no oracle and could not be inverted into exactness
claims. They are replaced by real libaom 4:2:2 streams, pinned by sha256 + fnv1a64.
- **Honesty layer**: six prose sites in the first cut claimed readers no gate has; a review pass measured the truth
(`SB128RECT_REPLAY_SPAN_MISMATCH_HITS` reads 9 on a pin this very branch asserts byte-exact, NXN is unwitnessed at
0 on all 21 committed 4:2:2 cells) and the comments were corrected in a prose-only commit. Notably, the promised
"assert it stays zero on 4:2:2" would have RED a gate on a provably correct cell.Merge lane-av1422tailskip: the last 4:2:2 cell closes -- and the RESERVED arm was not the writerAhmet Kaan Gümüş · 376e8c7
Merge lane-av1422tailskip: the last 4:2:2 cell closes -- and the RESERVED arm was not the writer `s422_384x240` is byte-exact vs ffmpeg on all 16 shown frames and vs aomdec on all 17 decode-order frames, and the fix is six lines: the writer was `decode_inter_block`'s `side == 64` 4:2:2 chroma walk arming the block-sized 2048-entry chroma PALETTE prediction ONCE before the unit loop. `take_palette_pred` is a `.take()`, so the second TX_32X32 unit got nothing and silently reconstructed from the block edge -- flat 90/240 where the oracle carries its palette. Per-unit `palette_window` plus a counter fixes it. Same class as `f3afa5b7` (the `decode_block_rect64` palette window): a one-shot take feeding a multi-unit walk. **The attribution correction is the more valuable half.** The reserved group-tail inter chroma SKIP arm was NOT the writer: `aomdec`'s `EC_DP` on the pinned cell shows decode frame 1's block at mi(32,0) is `bsize=12 inter=0 skip_txfm=0 chroma_ref=1` -- an INTRA 64x64 in the oracle exactly as in our decoder, and the inter-SKIP form only appears from picture 2 on; `EC_PIB` then shows `use_palette=1`, which is why the oracle's prediction rungs printed nothing there. Three earlier lanes (including this one) had attributed the cell to the reserved arm and two of them refused to touch it for that reason. The arm keeps its reserved status; the cell just never belonged to it. Two instrument facts worth keeping. First: **the shared `~/.cache/aom-oracle/build/aomdec` is STALE relative to its own source** -- its `EC_DP` rung never fires -- so the lane rebuilt privately and confirmed the rebuilt oracle agrees with ffmpeg 0/0/0 on every shown frame. Any conclusion drawn from that shared binary's newer rungs is suspect until it is rebuilt. Second: the gate is written for BOTH worlds -- today it asserts the pin, the refusal by name, and that the counter did not move (so the pin cannot fake a green), and the moment the header lift lands the same test asserts 17 decode-order frames byte-exact plus `palette_422_unit_window_hits() > 0`, with no edit needed; the lane verified that path on a local patch-run-restore build and reverted the patch. Found and NOT fixed, reported instead: `corpus/440_request_is_422.obu` decodes **NONDETERMINISTICALLY** -- six runs, six md5s, 255<->0 swaps, i.e. unwritten plane samples reaching the output on that hand-built 4:2:2 witness. It has no oracle (ffprobe and ffmpeg both refuse it) and its only gate asserts the header plus the refusal, never pixels. That is a separate defect with its own class and is being handled outside this merge; `EC_AV1_PLANE_SENTINEL` is the instrument for it.
lane-av1422tailskip: s422_384x240 is byte-exact -- the writer was the 4:2:2 intra-in-inter PALETTE chroma per-unit window, not the reserved inter SKIP armAhmet Kaan Gümüş · fa0bdda
lane-av1422tailskip: s422_384x240 is byte-exact -- the writer was the 4:2:2 intra-in-inter PALETTE chroma per-unit window, not the reserved inter SKIP arm `s422_384x240` (384x240, 4:2:2, 8-bit, 17 decode frames / 16 shown) diverged from ffmpeg 8.1.3 by 0/1780/1871 wrong Y/U/V samples, first at decode frame 1 (the hidden altref), U/V rows 170..189 cols 23..31. It is now **0/0/0 on every one of the 16 displayed frames**, and **byte-exact per plane on all 17 decode-order frames against aomdec's pre-filter dump**. The chartered site -- `decode.rs:43948`, `decode_inter_block`'s single-reference inter chroma SKIP write -- is NOT the writer of the first divergent frame. `aomdec`'s `EC_DP` rung, on the pinned cell, says decode frame 1's block at mi(32,0) is `bsize=12` (64x64) `inter=0 skip_txfm=0 chroma_ref=1`: an INTRA block in the oracle exactly as in our decoder, with the inter SKIP form appearing only from picture 2 on. And `EC_PIB` prints `use_palette=1` for it -- which is also why the oracle's prediction rungs print nothing there (`av1_predict_intra_block` returns at its palette branch). The cause, in our own code: at 4:2:2 that block's chroma plane block is 32x64 but `av1_get_max_uv_txsize` adjusts `max_tx_size_rect_lookup[BLOCK_32X64]` down to TX_32X32, so it codes TWO STACKED SQUARE units per plane. `decode_inter_block`'s `side == 64` walk armed the ONE block-sized 2048-entry chroma palette prediction before the loop; `take_palette_pred` is a `.take()`, so the first unit consumed all of it and the second found none pending and reconstructed from the block edge (DC) -- a flat 90/240 box where the oracle carries its palette. `EC_DEBUG_PAL=1` shows exactly that pair, and the cell's whole decode arms `len=2048` twice (U and V). Each unit now takes its own `palette_window` of the block-sized buffer, the helper the split-transform chroma paths already used, and a new `palette_422_unit_window_hits()` counts the units that did (16 on this cell; 0 on any 4:2:0 or 4:4:4 frame, and 0 without a palette, so a witness gate reading 0 proves the arm never ran). The pre-loop arm stays for the `chroma_w == chroma_h` branch, whose single unit IS the whole plane block, and for the `skip` arm, which pushes one 32x64 chroma unit. Gate: `the_pinned_422_palette_intra_in_inter_cell_window_is_byte_exact` with the cell pinned as `422_palette_intra_in_inter_384x240_17f.obu` (19344 B, sha256 bf1c658e9bfdc13e..., fnv1a64 0x923ccabfcb933e90). While `decode_stream` still refuses 4:2:2 at the sequence header -- the standing family rule, untouched here -- it asserts the pin and the refusal BY NAME plus "the counter did not move", so the pin alone can never fake a green; on a local patch-run-restore build the same test reports "17 decode-order frame(s) byte-exact against aomdec (1 hidden), 16 chroma palette unit window(s)". Red-before measured: with the two `palette_window(...)` calls replaced by the pre-fix `ub.clone()`/`vb.clone()` and nothing else changed, the same run fails at decode-order frame 1, byte 124631 (ours 90 vs 89), 412 bytes differ. Sweeps, base = this commit's parent, fixed = this commit, same machine: * 169 cells (115 committed fixtures + 54 census cells), base vs fixed BYTE IDENTITY over every dumped decode-order and display-order frame: only the target differs. `440_request_is_422.obu` also differed and does not: it decodes nondeterministically (six runs, six md5s, three from ONE binary), it is pre-existing, it reads `intra_in_inter_palette: y=0 uv=0` so this arm does not run on it, and it has no oracle. Named in the report, not fixed. * the census cells through `scripts/cmpff.py` (decode order, derived decode->display map): 48 byte-exact, 5 still diverging (another lane's, identical totals under both binaries), 1 instrument failure under both -- `s422_384x240` DIVERGES [0, 1780, 1871] -> BYTE-EXACT [0, 0, 0]. * `s422_384x242` / `s422_384x246` / `s422_320x240` byte-exact before and after. * comparator liveness: one oracle sample's low byte flipped per plane at display frame 4 of an all-zero baseline moves that plane of that frame by exactly +1 and nothing else. Scoped tests: `cargo test -p ec-av1 --lib palette` 24 passed, `census` 12 passed / 3 ignored, `422` 8 passed, plus this lane's gate in both branches and `the_440_cell_is_not_a_codable_chroma_shape`. Every 4:2:2 measurement here was taken with the `EC_AV1_ALLOW_422_PROBE` bypass applied locally and reverted; the committed tree refuses 4:2:2 at `stream.rs:1803` exactly as its parent did. No push. Full report, the libaom lines matched, and every number above: `lanes/av1422tailskip.report.md`.
lane-av1422lift: report section 9 -- the refutation pass, the independent re-measurement, and the six corrected prose sitesAhmet Kaan Gümüş · b5eb369Browse files
lane-av1422lift: the honesty layer -- six prose sites that named readers which do not existAhmet Kaan Gümüş · 2eb0e50
lane-av1422lift: the honesty layer -- six prose sites that named readers which do not exist
Refutation pass over `b7a36001` (lane-av1422liftverify, `5ee10c61`) confirmed
the lift's behaviour, its assertion, its three coupled inventory deletions,
its two new pins and all nine pixel gates, and refuted ONE thing: six prose
sites where the lift replaced true "no committed test can read this counter"
statements with false "the corpus gate reads this counter" statements.
No decoder logic, no assertion, no fixture, no gate body changes here. Every
line of the diff is a comment (`git diff -U0 ... | grep -v '^[+-]//'` is
empty), and the 4:2:2 gate set is 10 passed / 0 failed, unchanged.
Measured on this tip with a throwaway in-`mod tests` probe (added, run,
removed; `git status --porcelain` empty and the tree byte-identical to HEAD
before this commit) over all 21 committed 4:2:2 cells:
1. `decode.rs` `SB128RECT_REPLAY_SPAN_MISMATCH_HITS`. It claimed the corpus
gate asserts it stays zero at 4:2:2. No gate reads it, and it does NOT
stay zero: `422_intrabc_sb128_strip.obu` and
`422_intrabc_sb128_strip_notxsearch.obu` each read
`replay = 72, mismatch = 9`, the other 19 read 0. The first is a pin
`the_pinned_422_intrabc_sb128_strip_witnesses_decode_pixel_exact` asserts
BYTE-EXACT against ffmpeg, so a non-zero mismatch is the arm counting its
own designed case, not a defect. The deleted sentence ("zero on every
stream this decoder admits, because 4:2:2 is refused by name") was TRUE
and admitting 4:2:2 genuinely made it fire. The doc now carries the two
numbers and says plainly that adding the promised zero assert would red a
provably correct cell.
2. `decode.rs` `RECT_TILED_CHROMA_NXN_HITS`. Claimed the corpus gate reads
it; nothing does, and it reads 0 on all 21 committed 4:2:2 cells and on
the 4:2:0 / 4:4:4 cells probed. Now says UNWITNESSED with the number,
and names the only two readers (both 4:4:4, where `nxn` is interpolated
into a failure message and never asserted).
3. `decode.rs` `INTRABC_RECT4_OWN_CHROMA422_HITS`. Claimed the corpus gate
reads its delta per row; the accessor has zero callers in the crate. It
does fire -- the six corpus cells step it 1..6 -- so the doc carries that
and states the true half: no committed test reads it.
4. `stream.rs` `sb128rect_chroma_replay_counters` (pub API doc): same false
attribution, now carries `(72, 9)` and names the two 4:2:0/4:4:4 gates
that are the actual readers.
5. `stream.rs`, inside BOTH tripwire gates' own comments (the 4:4:4 one and
the 4:2:0 twin): these were the worst two, because those are the gates
that DO read the counter, and the text invited a future lane to add the
missing 4:2:2 zero assert to one of them and land a red on a correct cell.
Both now carry an explicit "DO NOT copy this zero assert onto a 4:2:2
stream", the `mismatch = 9` measurement, and the statement of what
actually holds the per-axis span (the 4:2:2 exactness gates).
6. `refusal_inventory.rs`: the retirement note named
`a_real_422_stream_decodes_pixel_exact`, which does not exist -- the gate
is `a_real_422_key_frame_and_inter_sequence_decode_pixel_exact`; and a
sibling-witness comment still pointed at
`a_non_420_subsampled_sequence_header_is_refused_by_name`, the test this
lift deleted. Both re-pointed at gates that exist.
No gate was added. Adding the promised 4:2:2 mismatch assert would red a
byte-exact cell, which is a worse outcome than an honest comment.lane-av1422lift: record the partial whole-suite figure (123 tests deep, zero failures) as a floor rather than a green suiteAhmet Kaan Gümüş · 1a0aad1Browse files
lane-av1422lift: report correction -- precise corpus figure and an honest statement of what was not run locallyAhmet Kaan Gümüş · de1492bBrowse files
lane-av1422lift: the lift report -- commit sha, prose sites, fixture provenance, non-vacuity evidence, and the s422_384x240 holdAhmet Kaan Gümüş · 7225884Browse files
lane-av1422lift: lift the 4:2:2 sequence-header refusal; 4:2:2 decodesAhmet Kaan Gümüş · fdcfd81
lane-av1422lift: lift the 4:2:2 sequence-header refusal; 4:2:2 decodes The guard at `stream.rs` `if seq.subsampling_x != seq.subsampling_y` is gone, the `refusal_inventory.rs` string and its `Proof::NegativeGate` pairing are deleted in the SAME commit (the inventory gate asserts both directions are empty, so a half-removal is red), and the residual uncodable shape -- 4:4:0 `(0,1)`, which `ec-av1-syntax` cannot produce because `color_config` reads `subsampling_y` only when `subsampling_x` is 1 -- closes with an ASSERTION rather than a comment. Seven gates whose only behavioural assertion was `err.contains(REFUSAL)` are renamed and inverted into byte-exact decodes against ffmpeg 8.1.3: * `a_non_420_subsampled_sequence_header_is_refused_by_name` -> `a_real_422_key_frame_and_inter_sequence_decode_pixel_exact`, on two NEW real 4:2:2 pins that replace its fake fixture (a profile-2 header bolted onto a 4:2:0 tile from this crate's own encoder, which could never be inverted into an exactness claim). * `the_440_cell_is_not_a_codable_chroma_shape` arm 3 keeps its enumeration and its `(1,0)` read-back, and replaces the refusal with the one thing true of those bytes: the SEQUENCE HEADER, not the tile, fixes the decode's chroma geometry. * the five `the_pinned_422_*` witnesses keep their size + fnv1a64 pins and now assert byte-exact planes, per frame, per plane. New gates, each with a non-vacuity arm from the 4:2:2 coefficient-unit census (`census_nonsub_units` / `census_nonsub_coded`, armed for `(1,0)` by lane-av1422census422): 12-bit 4:2:2 and superres 4:2:2, which the corpus had no cell for at all; 4:2:2 film grain, compared through the POST-grain in-memory decode because `EC_AV1_FINAL_DUMP` is written pre-grain; and the six closed corpus cells, byte-exact against ffmpeg. `422_allskip_2f.obu` is the one cell whose identity is that it codes nothing, so its chroma arm is asserted as a NEGATIVE measurement (units walked, coefficients not coded) rather than inherited from the shared body -- that is the phantom-residual read the cell exists to witness. Prose corrected at every site named by `lanes/av1422liftrisk.report.md`: `stream.rs` (guard block, `SeqFlags`, the 440 gate doc, the five "NO committed test can decode a 4:2:2 stream" doc blocks, both `sb128rect_chroma_replay_counters` tripwire gates, `cfl_ac_q3`), plus `decode.rs` (`Chroma16` caller set, `SB128RECT_REPLAY_SPAN_MISMATCH_HITS`, `RECT_TILED_CHROMA_NXN_HITS`, `INTRABC_RECT4_OWN_CHROMA422_HITS`), `refusal_inventory.rs` (both strip-enumeration docs) and `examples/gen_coverage_cells.rs` (module doc, cell-2 comment, printout). NOT CLOSED: `s422_384x240` still diverges chroma-only (U=1780 V=1871 on a 17-decode/16-display cell) -- the reserved group-tail chroma SKIP arm, owned by another lane. The corpus therefore stands at 56/57 measured here, not 51/51. THIS BRANCH MUST NOT LAND UNTIL THAT CELL CLOSES AND THE CORPUS RE-MEASURES 51/51.
2026-09-30
Merge lane-av1422verify: refute-first pass over the grain port and the census extension -- both correct, every figure reproducesAhmet Kaan Gümüş · 59f61c7
Merge lane-av1422verify: refute-first pass over the grain port and the census extension -- both correct, every figure reproduces Both patches survive refutation with their numbers intact, and the pass added coverage and one sequencing fact nobody had stated. Grain: the four cells are byte-exact vs ffmpeg through the POST-GRAIN sink path, and the negative control reproduces **digit-for-digit (0/23370/22631) on the ACTUAL pre-fix tree `697b1308`** rather than on a reconstruction of it. The corrected premise is confirmed the same way: **4:4:4 grain is RED pre-fix** (45612/43755 samples of each chroma plane) and green after, so the pre-fix geometry really did mis-decode a SUPPORTED format. All three libaom traps were re-derived against `grain_synthesis.c` with lines quoted -- including that a row at stride `2 >> ss_x` equals the C's flat element offset for every ss_x. Coverage the lane lacked was added by the verifier: a 12-bit 4:2:2 grain cell and an eleven-cell ragged-geometry sweep (66x66, 100x50, 130x34, 34x130, 322x242, ...), all byte-exact. Census: two binaries from ONE tree differing in the arming expression alone give `[0,0,0] -> [2338,1328,1328]` on a 4994-unit walk, digit-for-digit on all four cells; all five 4:2:0/4:4:4 controls are byte-identical; the strip domain re-enumerates to **12 distinct (strip, format) pairs, so nothing is double-counted**, and `hit == handled` so no arm fell out of reach. Both mutations re-run and bite. **The sequencing fact worth keeping**: `EC_AV1_FINAL_DUMP` is PRE-GRAIN -- byte-identical with and without `EC_AV1_NO_GRAIN=1` -- so a comparator built on the dump path cannot see grain at all (76.7% / 55.5% / 52.6% of samples differ from ffmpeg on one such cell while the dump comparison stays 0/0/0). Recorded in skill `ffmpeg-rawvideo-comparator-control`. The census lane's self-flagged gap was also understated rather than overstated: `chroma422_chunk` and `chroma422_pair_wide` read 0 on all EIGHTEEN 4:2:2 cells measured, not the four it sampled. No decode defect found in either patch. Two figures in the committed documentation are corrected in the report; the primary checkout was left untouched and clean, and both bypassed scratch trees were restored and removed.
lane-av1422verify: refute-first pass over 19b16ffd (grain) and 2677c97a (census)Ahmet Kaan Gümüş · 1d95580
lane-av1422verify: refute-first pass over 19b16ffd (grain) and 2677c97a (census) Both fixes are RIGHT. Every load-bearing figure reproduces, most of them digit-for-digit, on instruments of my own rather than the lanes' own. Grain (19b16ffd). Measured against ffmpeg 8.1.3 through the post-grain sink path (EC_AV1_FINAL_DUMP is pre-grain, so the dump comparator cannot be used here): g422_t5 / g422_t11 / g444_t5 / g422_10_t5 all byte-exact per plane, plus a 12-bit 4:2:2 cell and an 11-cell ragged-geometry sweep (66x66, 100x50, 130x34, 34x130, 322x242, ...) that are also byte-exact. The negative control was reproduced on the ACTUAL pre-fix tree 697b1308 rather than on a reconstruction of it: 0/23370/22631, exactly the lane's figure, luma exact, no panic. And 4:4:4 grain is RED at 19b16ffd~1 (45612/43755 of each chroma plane) and GREEN after -- the pre-fix geometry really was silently wrong there too. All three libaom traps verified against the C with lines quoted, including re-deriving that row csub_y at stride 2>>ss_x equals the C's flat element offset for every ss_x. Controls: 8 and 95, both reproducing exactly. Census (2677c97a). Built before/after binaries from one tree differing in the arming expression alone: [0,0,0] -> [2338,1328,1328] on a 4994-unit walk, digit-for-digit on all four cells. All five 4:2:0/4:4:4 controls IDENTICAL across the widening. The strip domain was re-enumerated independently: 12 iterations, 12 distinct (strip, format) pairs, so nothing is double-counted, and hit == handled so no arm fell out of reach. Both mutations re-run and bite. The self-flagged gaps hold and are understated, not overstated: chroma422_chunk and chroma422_pair_wide read 0 on all EIGHTEEN 4:2:2 cells, not just four, and the dump path really is pre-grain (byte-identical with and without EC_AV1_NO_GRAIN=1, 76.7%/55.5%/ 52.6% from ffmpeg). That finding is a sequencing trap for the lift and the census lane caught it before someone else did. No decode defect in either patch. Two documentation findings, reported as corrections: the census report's strip-derivation table has one wrong cell (32x64 at 4:4:4 is (32,32), not (16,32); the code is right), and the 19b16ffd merge message claims a committed 4:2:2/4:4:4 byte-exactness gate that is not in the tree -- the lane report is honest about deferring it, the commit message is not. Primary checkout untouched and clean; both bypassed scratch trees restored and removed.
Merge lane-av1422census422: a 4:2:2 unit census exists, and the strip enumeration stops pretending 4:2:2 is unreachableAhmet Kaan Gümüş · e267222
Merge lane-av1422census422: a 4:2:2 unit census exists, and the strip enumeration stops pretending 4:2:2 is unreachable Both non-vacuity prerequisites the lift-risk study named, with the numbers to prove them. The unit census was armed only at ss (0,0), so every unit counter read 0 on 4:2:2 BY DESIGN and a byte-exact 4:2:2 gate could be green while exercising nothing; it is now armed for (1,0) as well, and the counters move: `s422_320x240` 0/0/0 -> 2338/1328/1328 units (4994 total, 1020/843/949 coded), `s422_320x242_10b` 2046/1149/1149, `s422_326x240` 2798/1433/1433, `s422_416x250_10b` 2927/1426/1426 -- all four byte-exact vs ffmpeg. The controls are the point that makes it safe rather than merely larger: the 4:2:0 fixture's 405 units and the two 4:4:4 fixtures' 11292 / 1373 units are **unchanged before and after**, so the existing gates that assert exact 4:2:0/4:4:4 counts keep their teeth (`cargo test --lib census` 12 passed, 3 ignored; `a_pixel_exact_444_stream_walks_the_same_ coefficient_units` ok). The strip enumeration `refusal_inventory.rs:2129` walked `[(0,0), (1,1)]` and asserted `checked == 8` with a message about "the four 64-axis strips x two supported formats" -- post-lift it would have stopped covering 4:2:2 WITHOUT failing. It now walks `[(0,0), (1,0), (1,1)]` and asserts `checked == 12`, matching its sibling in the same file that already walked (1,0). **Every one of the 12 units has a coefficient table; nothing was missing** -- so the extension is coverage, not a repair, and that is worth stating explicitly because the interesting outcome would have been the opposite. What the census still cannot see is enumerated rather than glossed: the 128-root `chroma422_chunk` walk and `chroma422_pair_wide` read 0 on all four cells (nothing here reaches them), IntraBC and DC-only blocks carry zero units by design (no `txb_skip`), and palette blocks with no coded residual are invisible. One measured cell, `g422_t5` (film grain), is walk-shape only: it is not comparator-clean through the dump path and makes NO exactness claim. A committed 4:2:2 end-to-end gate still waits for the lift; the measured expectations it should pin, and the command set to re-derive them, are in the report.
lane-av1422census422: the 4:2:2 non-vacuity prerequisites -- the strip walk and the unit censusAhmet Kaan Gümüş · 1bb0283
lane-av1422census422: the 4:2:2 non-vacuity prerequisites -- the strip walk and the unit census Closes the two prerequisites lanes/av1422liftrisk.report.md R7 and R8 named for lifting the 4:2:2 sequence-header refusal. The refusal itself is NOT lifted here, nor is film_grain.rs, decode_rect4_16_intrabc, or the reserved group-tail chroma SKIP arm touched. R7 -- refusal_inventory.rs, every_chroma_unit_a_64_axis_strip_can_present_has_a_ coefficient_table walked [(0,0), (1,1)] and justified the missing format with "every mixed format is refused at the sequence header", a proof that depends on the guard: lift the guard and the walk keeps passing while covering nothing about 4:2:2, with no failure and no output change. It now walks [(0,0), (1,0), (1,1)] and asserts checked == 12. The 32-per-axis chroma-unit cap is why 4:2:2 needs no new table arm -- a 4:2:0 32x64 strip is a 16x32 chroma unit and its 4:2:2 counterpart a 16x64 one, but the cap resolves both to (16, 32) -- so every 4:2:2 unit is already in the table and the hit == handled non-vacuity assert is unchanged. No unit with no coefficient table was found; the _ arm stays dead for 4:2:2. The sibling enumeration at :1739 already walked (1,0) and said why (color_config reads subsampling_y only when subsampling_x == 1, so (0,1) is uncodable, and the walk must not depend on the header guard); that sibling was right and this half was wrong, and its reasoning is now mirrored here. Non-vacuity proved by mutation: dropping (1,0) back out fails with left: 8, right: 12. R8 -- set_census_444 armed the per-plane coefficient-unit census only at ss (0,0), so at 4:2:2 every census_444_units()/census_444_coded() read zero BY CONSTRUCTION and a byte-exact 4:2:2 gate could assert them, be green, and have proven nothing. The arming is now the disjoint complement, every format with an unsubsampled luma axis (ss_x == 0 || ss_y == 0), so 4:2:0 still reads exactly zero and the 4:4:4 exact counts cannot move. Renamed CENSUS_444/census_444_units/census_444_coded/ set_census_444 to CENSUS_NONSUB/census_nonsub_units/census_nonsub_coded/ set_census_nonsub -- a census called 444 that fires on 4:2:2 is the same lying-name defect this lane removes -- and made the two accessors pub so decode_probe can print them, alongside the already-pub unconditional census_unit_n() so one line says both how many units were counted per plane and whether the census was armed at all. Measured through the patch-run-restore probe bypass (never committed; both scratch trees restored and verified, base worktree removed): on s422_320x240 the census read [0, 0, 0] before and [2338, 1328, 1328] / coded [1020, 843, 949] after, while the same decode walked 4994 units either way -- the old zero was the census not looking, not an empty walk. Four more 4:2:2 cells measured the same way, 10-bit included. Controls unchanged: the 4:2:0 fixture [0,0,0]/405 units both sides, and the two 4:4:4 fixtures at their oracle-pinned [3764, 3764, 3764]/[975, 1793, 1859] and [629, 372, 372]/[130, 253, 278], so a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does still passes including its 4:2:0 zero control. Comparator liveness: 324 PASS, 0 FAIL of 324 flip arms across 9 cells. Whole sweep: 18/18 4:2:0 and 18/18 4:4:4 cells byte-exact against ffmpeg 8.1.3, 17/18 4:2:2 byte-exact with live per-plane counts (s422_384x240 still diverges, chroma-only, owned elsewhere). Arms the census reaches on the measured cells: square/rect/sub-8 chroma 4:2:2 units, the 4:2:2 CfL AC arm, dir-1:4 chroma pairs, 64-axis inter strips, rect4_16 intrabc -- all route through the two readers it instruments. Arms it does NOT see and must not be claimed as witnessed: chroma422_chunk and chroma422_pair_wide (0 on all four cells), IntraBC/DC-only blocks and skipped blocks (no txb_skip, so zero units by design), and anything the header still refuses. Report: lanes/av1422census422.report.md
Merge lane-av1422grain: film-grain synthesis is PER-AXIS -- and the 4:2:0-shaped geometry was silently wrong for 4:4:4 tooAhmet Kaan Gümüş · 21c62a9
Merge lane-av1422grain: film-grain synthesis is PER-AXIS -- and the 4:2:0-shaped geometry was silently wrong for 4:4:4 too The risk study's top finding was that `film_grain.rs` is the one module still 4:2:0-shaped, and the lift could not proceed over it. It is now per-axis, proven by measurement rather than by construction, and the measurement turned up more than the lift needed. **Evidence.** A real 4:2:2 film-grain stream decodes byte-exact with `grain_hits()` rising per cell (3 -> 4), the gate re-parses the OBUs and asserts a frame header carries `film_grain.apply_grain` (so it cannot be the params-without-apply false green of `stream.rs:16626-16629`), and the comparator is shown to bite (one flipped oracle sample per plane gives exactly (1,1,1) on every cell). The decisive control is negative: forcing the subsampling back to (1,1) and changing NOTHING else makes the 4:2:2 cell FAIL with 0/23370/22631 -- luma exact, ~30% of each chroma plane wrong, **no panic and no counter**. That single line is the defect, and it also proves the pass comes from this port rather than from a vacuous comparison. **The fix corrects the assigned premise, and the correction matters.** This libaom snapshot has NO `generate_grain_uv_422` / `av1_apply_grain_422`; it threads `chroma_subsamp_x/y` through one unified `add_film_grain_run` (`grain_synthesis.c:987`), set per pixel format in `av1_add_film_grain` (`:1386-1420`, which lists I422/I42216). The port matches the C's expressions, cited per site in the report. Three traps came out of it: the chroma BLOCK is `16 << (1 - ss)`, NOT `chroma_subblock_size << (1 - ss)` (the two agree at 4:2:0 and differ 2x wherever `chroma_subsamp == 0` -- and the wrong value is an OUT-OF-BOUNDS READ, not a wrong pixel); the block walk is in LUMA units at every subsampling, so only the chroma ORIGIN and extent are per-axis; and `copy_area(cb_col_buf + (chroma_subblock_size_y << (1 - ss_x)), ...)` is a FLAT ELEMENT offset, not a row index. **Two of the study's nine sites were wrong in the other direction and the fix says so**: `n = luma.len()/2` and `c_stride = width/2` are right at 4:2:2 and WRONG at 4:4:4 -- the operand needs a pair flag, not a division. Consequence worth stating plainly: **the pre-fix geometry was silently wrong for 4:4:4 film grain as well**, a supported format with no test of any kind. Two arms that were dead code at 4:2:0 are now live (`ver/hor_boundary_overlap`'s `==2` arm, and `add_noise_to_block`'s luma operand as a horizontal pair at `ss_x == 1`). **Coverage closed**: 4:2:2 and 4:4:4 film grain had NO test before this lane -- not an exactness gate, not a reference comparison. `ragged_overlap_tail_matches_spec_reference` was a 4:2:0-only transcription and is now driven over all three formats from one per-axis reference, with the assertion the old geometry could not make: the LAST chroma row must come back grained, which at 4:2:2 is exactly the raw bottom half the `nrows = height/2` walk left behind. Controls: `cargo test -p ec-av1 --lib film_grain` 8 passed; blast sweep on 422/444/chroma 95 passed; `cargo check --tests` clean.
lane-av1422grain: the report -- measured, ported, byte-exact, negative-controlledAhmet Kaan Gümüş · a8377a2
lane-av1422grain: the report -- measured, ported, byte-exact, negative-controlled
Records the measurement that opened the lane (aomenc emits 4:2:2 grain, and
4:4:4 too), the libaom source lines each per-axis site was transcribed from,
the three traps the port walks into, and the proof obligations.
The headline is section 5. Forcing Ss::read back to the pre-lane geometry and
changing nothing else makes g422_t5.obu fail against ffmpeg with
left: (0, 23370, 22631) right: (0, 0, 0)
-- luma exact, ~30% of each chroma plane wrong. No panic, no counter, no
refusal. That is the defect this lane closed, in one line.
Also reports, rather than buries, that my first edit used a relative path
while the shell CWD was the primary checkout and leaked into it. All 61 added
lines were verified mine and reverted; the post-probe `git status` is what
caught it. See section 8.lane-av1422grain: film grain synthesis is per-axis, not 4:2:0-shapedAhmet Kaan Gümüş · 55a7187
lane-av1422grain: film grain synthesis is per-axis, not 4:2:0-shaped MEASUREMENT first: aomenc really does emit 4:2:2 film grain, so this is a live arm, not a latent one. `aomenc --profile=2 --film-grain-test=5` over a `yuv422p` source produces a frame header carrying `subsampling_x = 1, subsampling_y = 0` with a full point set (read back with `ffprobe -export_side_data +film_grain`: seed, ar_coeff_lag 3, scaling_shift 11). The same is true at 4:4:4 under profile 1. Before this change the module grained the TOP HALF of a 4:2:2 chroma plane with a 4:2:0 row map and a 2x2 avgLuma quad -- no panic, no counter, no refusal, just a different picture. Every chroma-side constant and extent is now the C's expression, per-axis (`grain_synthesis.c`): the subblock and grain-block template (`:1018-1035`), the `avgLuma` tap, which is the `(chroma_subsamp_y + 1) x (chroma_subsamp_x + 1)` luma sample set -- a 2x2 quad at 4:2:0, a horizontal PAIR at 4:2:2, the sample itself at 4:4:4 (`:554-565`); the block placement offsets (`:1091-1094`); the chroma origin and the `half_h << (1 - ss_y)` by `half_w << (1 - ss_x)` block (`:680-681`, `:1129-1132`); the chroma stride (`:1461`); the line and column buffers (`:392-414`); and all four chroma `copy_area`/`hor_boundary_overlap` extents. Two traps the port walks into, both recorded at the site: * The block size is `16 << (1 - ss)`, NOT `chroma_subblock_size << (1 - ss)`. They agree at 4:2:0 and diverge wherever `chroma_subsamp == 0`, because the half extents `add_noise_to_block` is handed are LUMA ones (`:1254-1255`). * `copy_area(cb_col_buf + (chroma_subblock_size_y << (1 - ss_x)), ...)` is a FLAT element offset in the C, not a row index. Passing it as a row index multiplies it by the stride a second time and reads past the buffer. The `chroma_noise_row_scalar` reference grew a `pair` argument because `add_noise_to_block`'s luma operand differs by axis too: a horizontal pair at `ss_x == 1` (4:2:0 and 4:2:2 alike -- only the row step changes) and the bare luma sample at `ss_x == 0` (`:683-691`). CONTROLS UNCHANGED. The existing 4:2:0 coverage is untouched and still byte-exact against ffmpeg: `a_real_aomenc_stream_with_film_grain_decodes_pixel_exact` (8-bit), `a_real_aomenc_10bit_film_grain_stream_decodes_pixel_exact`, `a_real_aomenc_12bit_film_grain_stream_decodes_pixel_exact`, `real_aomenc_film_grain_streams_decode_pixel_exact`, plus both SIMD-vs-scalar pins. `untouched_planes_and_ragged_tail_come_back_clean` and `simd_matches_scalar_*` are unaffected. `ragged_overlap_tail_matches_spec_reference` was a 4:2:0-only transcription and is now driven over all three formats, so 4:2:2 and 4:4:4 have coverage for the first time. It also gained the assertion the old geometry could not make: the LAST chroma row must come back grained -- at 4:2:2 the plane is `height` rows tall and the old `nrows = height / 2` walk left the bottom half raw.
Merge lane-av1422hbd422: the two uncovered 4:2:2 cells are CLEAN -- 12-bit and superres both byte-exactAhmet Kaan Gümüş · 35bdf35
Merge lane-av1422hbd422: the two uncovered 4:2:2 cells are CLEAN -- 12-bit and superres both byte-exact
The risk study flagged 12-bit 4:2:2 (codable at profile 2, where both subsampling bits are coded) and
superres + 4:2:2 as never measured anywhere in the tree. Both are now measured, and both are clean: **seven
cells, all byte-exact per plane per frame vs ffmpeg 8.1.3**, no defect to attribute. Report-only; no decoder
source was touched and the refusal was not edited.
Covered: `s422_320x242_12b`, `s422_321x242_12b` (ODD WIDTH), `s422_323x243_12b` (odd width AND odd height),
`s422_320x242_12b_lossless`, and three superres cells (`s422sr_320x180_d12`, `s422sr_256x128_d12`,
`s422sr_256x128_d12_12b`) -- with **`use_superres` verified from the FRAME HEADERS**, not from the command line
(`213x180 up=320 superres=true/12`), which is the check that makes a superres claim mean anything. Two controls
(`ctl_s420_320x242_8b`, `ctl_s422_320x242_8b`) exact, and the comparator's liveness control run BEFORE any
verdict: **324 arms, 324 PASS**, one flipped sample per plane per arm in both directions with the mapping pinned
and every decode->display solution exercised.
Encoder trap worth keeping, because it is a silent-ish failure mode that reads like a codec bug:
**`aomenc` at 12-bit 4:2:2 FAILS when `--profile=2` is spelled on the command line** ("Failed to set chroma
subsampling x: Unspecified internal error", exit 1). The cells were produced without it -- aomenc upgrades the
profile itself. Same shape as the 12-bit 4:2:0 auto-upgrade already recorded, and it belongs beside it so the
next lane does not conclude that 12-bit 4:2:2 is unencodable.lane-av1422hbd422: 12-bit and superres 4:2:2 both byte-exact against ffmpegAhmet Kaan Gümüş · 9ed9589
lane-av1422hbd422: 12-bit and superres 4:2:2 both byte-exact against ffmpeg
Closes the two coverage gaps the av1422liftrisk study opened (R3, R9): no
12-bit 4:2:2 cell and no superres 4:2:2 cell existed anywhere in the tree.
Seven new cells, all measured with the patch-run-restore probe in a scratch
worktree (now removed, primary checkout verified clean):
12-bit 4:2:2 320x242, 321x242 (odd width), 323x243 (odd width+height),
320x242 lossless
superres 4:2:2 320x180 d12, 256x128 d12 (8-bit), 256x128 d12 (12-bit)
Every cell: Y=U=V=0 on every decode-order frame against ffmpeg 8.1.3
yuv422p12le / yuv422p, geometry from the SEQUENCE HEADER, decode->display
mapping re-derived from luma identity (one solution per cell).
Liveness control run first: 324/324 flip arms PASS (one flipped sample per
plane per arm, both directions).
Two encoder findings recorded because they are silent traps:
* aomenc at 12-bit 4:2:2 FAILS with "Failed to set chroma subsampling x" when
--profile=2 is spelled on the command line (apps/aomenc.c:2269-2282). The
format is codable and the profile does auto-upgrade -- use --profile=0.
* --superres-mode=1 --superres-denominator=8 at 320-wide input encodes
cleanly with use_superres=false on every frame. Always read the flag back
out of the frame headers before believing a superres cell.
Superres engagement is verified per cell in the frame headers
(171x128 up=256 superres=true/12), and predict_scaled is 3070-4066 per
stream including sub-8x8 inter blocks and 8x8 leaves under a scaled
reference, so the upscale path is genuinely exercised.
Nothing diverged, so nothing was fixed: no decoder source is touched and the
4:2:2 sequence-header guard stands. R8's missing 4:2:2 unit census, R2's
film grain, and R4's seven known-diverging 8-bit cells are untouched and
named as not-closed in the report.lane-av1422liftrisk: the lift's blast radius -- film grain is the one 4:2:0-only module, and seven tests whose only assertion is the refusalAhmet Kaan Gümüş · f3a29d1
lane-av1422liftrisk: the lift's blast radius -- film grain is the one 4:2:0-only module, and seven tests whose only assertion is the refusal Read-only study landed by Main (the lane is a shell-less scout): every ss_x/ss_y site classified as correct for 4:2:2 / correct today but WRONG for 4:2:2 / unreachable-and-needing-an-assertion; the tables indexed by the subsampling pair (the recent 4:2:2 work covers most, film_grain.rs covers none); the tests that go red versus those that go quietly vacuous; user-visible strings that become lies; and an ordered risk list. Headlines: film_grain.rs is 4:2:0-shaped throughout (c_stride/2, nrows=height/2, a 2x2 avgLuma quad, chroma row y addressed at luma row 2y), so at 4:2:2 it grains the top half of the chroma plane with the wrong row map and leaves the bottom half raw -- no panic, no counter, no refusal, just a different picture. 12-bit 4:2:2 is codable at profile 2 and has ZERO coverage anywhere in the tree. The seven refusal-named tests assert only err.contains(REFUSAL) -- they would pass on a tree where 4:2:2 decode is entirely broken -- and two of them (the 4:2:2-header-over-a-4:2:0-tile constructions, including the committed 440_request_is_422.obu pin) cannot be inverted into exactness gates because their fixture is not a 4:2:2 stream at all. refusal_inventory.rs's strip enumeration walks only (0,0)/(1,1), so post-lift it stops covering 4:2:2 without failing, while its sibling in the same file already walks (1,0). And no 4:2:2 unit census exists -- set_census_444 arms the unit counters at ss (0,0) only -- so the non-vacuity counter a 4:2:2 gate needs cannot be written yet. Main's landing note records the one thing the study could not check: the bypass it found in the working tree was real, was restored before this report was written, and never reached history.
scripts: commit the cmpff module the committed 4:2:2 drivers importAhmet Kaan Gümüş · 2d57774
scripts: commit the cmpff module the committed 4:2:2 drivers import `scripts/run422-ffmpeg.py` and `scripts/shape422-diff.py` both `import cmpff`, a module that was never committed -- the drivers were dead on arrival on a fresh checkout. `scripts/cmpff.py` is a symlink to `cmp422-ffmpeg.py`, which defines every symbol they use (`plane_spans`, `probe_geometry`, `run`, the decode->display mapping and the per-plane comparator), so both scripts run as written. Verified by importing the module and driving `scripts/run422-ffmpeg.py` through a cells JSON: three 4:2:2 cells BYTE-EXACT and a 4:2:0 control exact on a clean tree.
Merge lane-av1422ffmpegbase addendum: 94 of 95 cells byte-exact at 3d56fb60 -- and no cell moved the wrong wayAhmet Kaan Gümüş · 6253285
Merge lane-av1422ffmpegbase addendum: 94 of 95 cells byte-exact at 3d56fb60 -- and no cell moved the wrong way The base the lift will be judged on, re-measured on the post-fix tree with the same instrument. **4:2:2 44/51 -> 50/51; whole set 88/95 -> 94/95; 4:2:0 22/22 and 4:4:4 22/22 byte-exact before AND after, with ZERO cells moved.** The six closures are the family plus the luma-wrong cell (`s422_320x246`, `s422_322x240`, `s422_322x246`, `s422_352x242_10b`, `s422_416x242_10b` all to 0/0/0, and `s422_416x250_10b` 99011/61486/60106 -> 0/0/0). The single remaining red is byte-for-byte UNCHANGED across the fix -- same first bad sample (display frame 6, U row 174 col 32, ours 133 vs ffmpeg 132), same bbox, same 10-of-16 frames carrying a wrong sample, and the per-frame vector an IDENTICAL list -- which is the positive evidence that `298be661` did nothing outside its own arm. That cell is the reserved group-tail chroma SKIP arm and its owner lane is working it now. Instrument discipline worth more than the table: **the decoding binary is now an ASSERTED ARGUMENT**, not a pinned path (`FF_DUMP_YUV`), every result row records which probe produced it, the 4:2:2 rows come from a patch-run-restore build and the 4:2:0/4:4:4 controls from a SEPARATE CLEAN build of the same tree (detached worktree, `git status --porcelain` empty) -- because a single pinned path would let a bypassed binary serve the controls, and the controls are the only evidence that the 4:2:2 change moved nothing else. A **probe-split control** runs on every invocation and fails the run if the split is wrong (`W_intrabc`: clean build REFUSES, bypass build BYTE-EXACT). All 95 cells re-hashed with 0 drift, the nine committed pins re-pathed to the worktree before hashing so the hashed bytes are the shipped bytes, geometry from ffprobe (never a y4m header -- ffmpeg's y4m muxer cannot carry 10-bit), display-order shown frames on both sides, depth-correct dumps. Liveness: 23 arms, 23 PASS, re-run against this tree's dumps before any verdict, one flipped oracle sample per arm moving exactly +1 in the named plane. With a caveat the lane raised against itself and which matters: six of the seven non-zero baselines are now exact, so the non-zero-baseline class rests on ONE arm -- the red cell (0/1780/1871 -> 0/1780/1872 on a V flip at frame 14, oracle byte 2718720 eb->ea, Y staying 0). A comparator that had silently stopped reading the oracle would also report 0/0/0 on the exact cells, so that arm must be re-run when the residual closes or the liveness proof loses its non-zero case.
lane-av1422ffmpegbase: re-measure on 3d56fb60 -- 94/95 exact, 50/51 4:2:2, ONE cell leftAhmet Kaan Gümüş · e2894cb
lane-av1422ffmpegbase: re-measure on 3d56fb60 -- 94/95 exact, 50/51 4:2:2, ONE cell left
The tree moved (298be661, lane-av1422luma: decode_rect4_16_intrabc gives ss (1,0)
its own chroma) and it changes the base the 4:2:2 lift will be judged on, so this
lane's own census is re-run rather than a lane's number adopted.
4:2:2 44/51 exact -> 50/51 exact (six cells close, one unmoved)
4:2:0 22/22 exact -> 22/22 exact (0 moved)
4:4:4 22/22 exact -> 22/22 exact (0 moved)
set 88/95 -> 94/95 exact
No cell moved the wrong way. The 4:2:0/4:4:4 controls are bit-identical across the
change and every one of them was produced by a CLEAN build of 3d56fb60.
Closed, measured here: s422_320x246 0/7810/5531, s422_322x240 0/22003/21625,
s422_322x246 0/3437/2222, s422_352x242_10b 0/4653/3777, s422_416x242_10b
0/5740/4348, s422_416x250_10b 99011/61486/60106 -- the last being the only luma-wrong
cell, now 0/0/0. Still diverging: s422_384x240, 0/1780/1871, BYTE-FOR-BYTE the same
as on affe70dc -- same first bad sample (display frame 6, U r174 c32, ours 133 vs
ffmpeg 132), same bbox, same 10-of-16 frames, and the two per-frame vectors are
identical lists. 298be661 changed nothing in it, which is the expected shape for
the reserved group-tail chroma SKIP arm.
Instrument discipline: sha256 of all 95 cells re-verified (0 drift, committed pins
re-pathed to the 3d56fb60 tree before hashing); geometry from ffprobe with hard
errors; display order on both sides; depth-correct dumps; liveness re-run BEFORE the
verdicts were read -- 23 arms, 23 PASS, 0 FAIL, and the arm that now carries the
non-zero-baseline case is the one remaining red cell, which moves by exactly +1 V
on a 0/1780/1871 baseline.
New in the driver: the decoding binary is an ASSERTED ARGUMENT. FF_DUMP_YUV names
it, every result row records it as `probe`, the 4:2:2 rows came from a
patch-run-restore build and the control rows from a separate CLEAN build of the
same tree, and --probe-records proves the split on every run
({"probe_split_control":"PASS","cell":"W_intrabc","clean_build":"REFUSES",
"bypass_build":"BYTE-EXACT"}). A single pinned path would have let a bypassed
binary serve the controls, and the controls are the only evidence that the 4:2:2
change moved nothing else.
Bypass hygiene: scratch worktree probe422_v2 at 3d56fb60, guard at stream.rs:1803
patched to `if false && ...` (2-line diff verified before building), restored,
git status --porcelain empty, worktree removed, and the bypassed target directory
DELETED so no bypassed binary survives on disk for a later run to pick up. The
driver's documented path is the clean build. No decoder file edited on either
tree; the 4:2:2 refusal still stands.
Section 4's lift checklist is unchanged as a plan; section 2's tables are a record
of affe70dc and are not rewritten, this addendum is the current base.Merge lane-av1422seed r2: the flip control is PROVEN to bite (324/324) and the merged fix re-measured independentlyAhmet Kaan Gümüş · 10be7f5
Merge lane-av1422seed r2: the flip control is PROVEN to bite (324/324) and the merged fix re-measured independently The comparator this family's numbers rest on is now proven live, and the root cause of the missing proof is itself the interesting part: the census's own `flipctl.py` never ran because it was BROKEN -- it re-derived the decode->display mapping by luma identity inside every compare() call, so flipping a sample destroyed the mapping key and the call aborted. It was never "unrun". The committed control `scripts/flipctl-422.py` maps ONCE, pins that mapping across every arm, exercises EVERY decode->display solution (so an ambiguous mapping cannot hide a failure), and flips in BOTH directions -- the oracle arm and the ours arm, which is the direction every sweep number is read in. Result on the merged tree: **324 arms, 324 PASS, 0 FAIL** across five s422 targets, the luma-wrong cell, two 4:2:0 and two 4:4:4 cells, both depths, two shown frames and three samples per plane per cell, all baselines 0/0/0 so every arm is a +1-off-zero test. It also re-measured the merged fix rather than inheriting it: the five family cells 0/0/0 (from 0/22003/21625, 0/7810/5531, 0/3437/2222, 0/4653/3777, 0/5740/4348), 4:2:0 and 4:4:4 controls 5/5 exact (so the new `own422` predicate leaves the 4:2:0 pair arm and the 4:4:4 `own444` arm untouched), luma 0 on every shown frame of every cell, and `s422_384x240` unchanged at 0/1780/1871 -- correctly NOT attributed to this arm. Trap worth keeping, recorded in the report and in skill `oracle-comparator-liveness-control`: its first re-measurement ran against a STALE `main` ref (`0c77bad5`, cached before the merge) and reproduced the pre-fix numbers exactly -- nothing in the output distinguished "the fix does not work" from "the branch pointer is old". Re-resolving main first turned the same command into 0/0/0. Same class as a stale binary, on the ref instead. Honest residue, stated rather than implied: the POST-fix sentinel census was NOT re-run (the scan is still the temporary uncommitted edit; §3's census is the PRE-fix one and stands as written); coverage on the merged tree is ARGUED rather than censused (an unwritten sample would hold 0xDEAD = 57005, unreachable at either depth, so per-plane exactness cannot coexist with one -- labelled an inference); and no gate was added, because a 4:2:2 byte-exact gate is unreachable while the sequence header still refuses the format.
lane-av1422seed r2: the comparator is proven to BITE -- 324/324 flip arms, and the merged fix re-measured hereAhmet Kaan Gümüş · 358ec13
lane-av1422seed r2: the comparator is proven to BITE -- 324/324 flip arms, and the merged fix re-measured here No decoder change. lane/av1422luma 459e425d (main 298be661) closed the arm this lane localised; this round checks the claim instead of restating it, and closes the one hole this report had named against itself twice (§1.1 and §7: "the flip control was not run"). scripts/flipctl-422.py flips ONE sample and requires the wrong-sample count to move by EXACTLY +1 in that plane and 0 in every other plane, in both directions: the oracle arm (one ffmpeg sample, which on a 0/0/0 cell is the only thing that can move) and the ours arm (one of our samples, which is the direction every number in this report is read in). It maps decode->display ONCE and pins the mapping across the flip, because the census's own flipctl.py re-derives that mapping from LUMA identity inside every compare() call and a flipped sample destroys the very key it maps on -- the control aborted instead of measuring, which is why it had never run rather than merely never been run. Every decode->display SOLUTION is exercised, so an ambiguous mapping cannot hide a failure behind the one that got picked. 324 arms, 324 PASS, 0 FAIL: five s422 target cells, s422_416x250_10b, two 4:2:0 and two 4:4:4 cells, two shown display frames each, three sample indices per plane, both depths, all baselines 0/0/0 -- so every arm is a +1-off-zero test. The 2-solution mapping class (s420_352x242_10b, hidden frame 16, 72 arms) is included, which is where a comparator that quietly picks one assignment shows. Independently re-measured on main 298be661 with the local-only 4:2:2 probe bypass, reverted after (git diff main -- crates/ empty; the sequence-header refusal at stream.rs:1803 is intact): all five target cells 0/0/0, 4:2:0 and 4:4:4 controls 5/5 byte-exact, s422_* sweep 17/18 with s422_384x240 unchanged at 0/1780/1871 -- the frame-1 altref residual lane/av1422late owns. Report §9 records one trap worth keeping: the first re-measurement of this round ran against a STALE main ref (0c77bad5, cached before the merge) and reproduced the pre-fix numbers exactly. Nothing about that result distinguished "the fix does not work" from "the branch pointer is old"; re-resolving main is what turned the same command into 0/0/0. Same class as stale-binary false readings, on the ref instead of the binary. §9.3 states what is still NOT measured: the POST-fix sentinel census was not re-run (the scan remains the temporary uncommitted edit §8 step 3 describes). Coverage on the merged tree is argued, not censused -- an unwritten sample still holds PLANE_SENTINEL 0xDEAD = 57005, above the 10-bit maximum and unreachable by ffmpeg at either depth, so per-plane byte-exactness on every shown frame cannot coexist with one -- and that inference is labelled as such rather than presented as a census.
Merge lane-av1422seed r2: the localisation report is amended to point at the landed fixAhmet Kaan Gümüş · 2b46317
Merge lane-av1422seed r2: the localisation report is amended to point at the landed fix Report-only. The seed lane's localisation (the intrabc 1:4 strip's pair geometry, the constant list, the sentinel census) is annotated with the RESOLVED outcome: the fix landed as `459e425d` in lane-av1422luma, and all six cells of the family are byte-exact. The amendment records what the localisation missed and why -- the mi-map PUBLICATION half (the origin alone regressed luma 0 -> 5958) and the fact that `has_chroma` was NOT the missing piece (the caller's predicate already holds for every HORZ strip in the cell: 56 in frame 0, and the U/V units at mi (51,84) are read, so the oracle reads chroma for an even-row strip too).
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to moveAhmet Kaan Gümüş · 8f27385
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to move This lane's commit 33cb2d0b recorded the defect localised and the fix not landed. It has since been landed by lane-av1422luma (459e425d) on top of this lane's write-side hunk, so the report is amended rather than left to claim a stale "not landed" verdict. No decoder change is added here. New §3.3: all six cells of the family byte-exact vs ffmpeg 8.1.3, 16 shown frames -- s422_320x246 0/7810/5531 -> 0/0/0, s422_322x240 0/22003/21625 -> 0/0/0, s422_322x246 0/3437/2222 -> 0/0/0, s422_352x242_10b 0/4653/3777 -> 0/0/0, s422_416x242_10b 0/5740/4348 -> 0/0/0, s422_416x250_10b 99011/61486/60106 -> 0/0/0. 25 of 26 swept cells byte-exact; s422_384x240 unchanged at 0/1780/1871 on its own residual (luma-exact on both sides of the change, first bad frame 1) and must not be attributed to this arm. 4:2:0 and 4:4:4 controls unchanged. The landed shape is recorded in full because the lesson is the SHAPE, not the one line: one predicate own422 = ss_x==1 && ss_y==0 && horz drives FIVE edits -- the chroma plane block (bw>>ss_x, bh>>ss_y), pair_mi -> lmi, the chroma origin (px>>ss_x, py>>ss_y), BOTH chroma context gathers (around_mi_422_chroma at ss (1,0), around_mi_rect kept at 4:4:4 where a chroma column IS a luma mi column), and -- the half this lane never named -- the mi-map publication record_uv_mode_mi plus the two left/above skip loops at (lmi, bw, bh). has_chroma is NOT the missing piece; this lane's §4 candidate 1 is disproved (the caller's predicate already holds for every HORZ strip, 56 in frame 0). Why every half was needed: the gather's LEFT flag was read one mi row high (ours ctx 2, oracle ctx 8), all_zero decoded 1 instead of 0, the frame desynced -- one constant read from three places. That is why the write-side-only attempt regressed luma 0 -> 5958.
Merge lane-av1422luma: 4:2:2 IntraBC 1:4 strips code their OWN chroma -- six sweep cells byte-exact, and the luma-wrong cell was a chroma-origin ENTROPY desyncAhmet Kaan Gümüş · 2a729cd
Merge lane-av1422luma: 4:2:2 IntraBC 1:4 strips code their OWN chroma -- six sweep cells byte-exact, and the luma-wrong cell was a chroma-origin ENTROPY desync The frame-0 chroma family (five cells) and the luma-wrong cell `s422_416x250_10b` all close with one fix at one arm: `decode_rect4_16_intrabc`. The 4:2:0 1:4 PAIR rule (`is_chroma_reference`) was applied at every ss except the 4:4:4 arm, but at ss (1,0) it is true for EVERY block, so a 4:2:2 strip codes its own chroma at its own origin. Five edits land the own-chroma treatment: `cw,ch` from `(bw>>ss_x, bh>>ss_y)`; `pair_mi = lmi`; `cpx,cpy` from `(px>>ss_x, py>>ss_y)` (the pair's (144,62) was the wrong row -- 66 rows high); BOTH chroma coefficient-context gathers over the strip's own extent, routed through `around_mi_422_chroma` at ss (1,0) only (4:4:4 deliberately keeps `around_mi_rect`, since at ss_x 0 a chroma column IS a luma mi column); and the mi-map publication the next block reads (`record_uv_mode_mi` plus the two left/above skip loops) over the strip's own extent. **The luma-wrong cell was the same constant, one read later, and this is the part worth remembering**: with the origin moved but the gather left on the 4:2:0 pair, the U/V `txb_skip` read of the intra-BC 16x4 strip at mi (51,84) took its LEFT flag one mi row high (ours ctx 2, oracle ctx 8), `all_zero` decoded 1 instead of 0, the frame desynced, and luma went 0 -> 5958 wrong -- exactly the regression the earlier write-side-only attempt produced. So the defect chain is: wrong chroma origin -> wrong coefficient-context gather -> wrong skip read -> entropy desync -> wrong luma for the rest of the frame. The first divergence for that cell is a chroma `txb_skip` read at mi (51,84); the intra ladder pairs the first 450 frame-0 blocks exactly on (mi_row, mi_col, rng) and forks at index 450 (ours 8x16 vs oracle 16x16); the partition ladder shows 367 identical-rng reads with a constant +15-bit tell; the per-TU ladder is +15 through TU 1918 with the same BIT but a different CDF state at TU 1919; and the oracle's own dump for that unit shows ctx 8 above [23,23] left [0] against our ctx 2 `around=(true,true,5)`. Filters are inert: prefilter/deblock/CDEF/final all carry the same 6538 luma count. Measured after: all six cells **0/0/0** per plane per frame vs ffmpeg 8.1.3 (`s422_320x246` 0/7810/5531 -> 0/0/0, `s422_322x240` 0/22003/21625 -> 0/0/0, `s422_322x246` 0/3437/2222 -> 0/0/0, `s422_352x242_10b` 0/4653/3777 -> 0/0/0, `s422_416x242_10b` 0/5740/4348 -> 0/0/0, `s422_416x250_10b` 99011/61486/60106 -> 0/0/0), three of them also 17/17 byte-exact in DECODE order against the instrumented aomdec with the hidden altref included. Controls unchanged: 4:2:0 10-bit and 4:4:4 10-bit sample cells 0/0/0 before and after, the pre-existing gate `a_444_intrabc_rect4_reads_its_own_chroma_plane_block` passes with UNCHANGED numbers (23 own-chroma strips at 4:4:4, 0 at 4:2:0), the 26 intrabc-named tests pass, and liveness is proven post-fix by per-plane single-sample flips (Y, U and V each move by exactly +1 and leave the other two planes at 0). `s422_384x240` is explicitly NOT this arm: it stays 0/1780/1871, luma-exact, first bad frame 1, and belongs to the reserved group-tail chroma SKIP arm's new owner.
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to moveAhmet Kaan Gümüş · 8a032f3
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to move This lane's commit 33cb2d0b recorded the defect localised and the fix not landed. It has since been landed by lane-av1422luma (459e425d) on top of this lane's write-side hunk, so the report is amended rather than left to claim a stale "not landed" verdict. No decoder change is added here. New §3.3: all six cells of the family byte-exact vs ffmpeg 8.1.3, 16 shown frames -- s422_320x246 0/7810/5531 -> 0/0/0, s422_322x240 0/22003/21625 -> 0/0/0, s422_322x246 0/3437/2222 -> 0/0/0, s422_352x242_10b 0/4653/3777 -> 0/0/0, s422_416x242_10b 0/5740/4348 -> 0/0/0, s422_416x250_10b 99011/61486/60106 -> 0/0/0. 25 of 26 swept cells byte-exact; s422_384x240 unchanged at 0/1780/1871 on its own residual (luma-exact on both sides of the change, first bad frame 1) and must not be attributed to this arm. 4:2:0 and 4:4:4 controls unchanged. The landed shape is recorded in full because the lesson is the SHAPE, not the one line: one predicate own422 = ss_x==1 && ss_y==0 && horz drives FIVE edits -- the chroma plane block (bw>>ss_x, bh>>ss_y), pair_mi -> lmi, the chroma origin (px>>ss_x, py>>ss_y), BOTH chroma context gathers (around_mi_422_chroma at ss (1,0), around_mi_rect kept at 4:4:4 where a chroma column IS a luma mi column), and -- the half this lane never named -- the mi-map publication record_uv_mode_mi plus the two left/above skip loops at (lmi, bw, bh). has_chroma is NOT the missing piece; this lane's §4 candidate 1 is disproved (the caller's predicate already holds for every HORZ strip, 56 in frame 0). Why every half was needed: the gather's LEFT flag was read one mi row high (ours ctx 2, oracle ctx 8), all_zero decoded 1 instead of 0, the frame desynced -- one constant read from three places. That is why the write-side-only attempt regressed luma 0 -> 5958.
lane-av1422luma report: the luma-wrong 4:2:2 cell is a chroma-ORIGIN desync in the IntraBC 1:4 arm -- ladders, per-frame before/after, controlsAhmet Kaan Gümüş · 7105e65Browse files
lane-av1422luma: 4:2:2 IntraBC 1:4 strips code their OWN chroma -- six sweep cells byte-exact, luma desync goneAhmet Kaan Gümüş · 3ce52f6
lane-av1422luma: 4:2:2 IntraBC 1:4 strips code their OWN chroma -- six sweep cells byte-exact, luma desync gone
An intra-BC 16x4 (HORZ 1:4) strip's chroma plane block is its own at
4:2:2, not 4:2:0's pair: 4:2:2 subsamples x only, so the strip's chroma
is 8x4 (full height) at the strip's own origin, and libaom's own
is_chroma_reference (av1_common_int.h:1454) ends in "|| !subsampling_y",
which answers true for every block at ss_y 0. decode_rect4_16_intrabc
gated that whole pair geometry on ss (0,0) and left 4:2:2 on the 4:2:0
constants, so the chroma unit was read one mi row high. On
s422_416x250_10b (416x250 10-bit, sha256 d6aa7f45) that is the U/V
txb_skip read at mi (51,84): ctx 2 where the oracle reads 8, all_zero
decoded 1 instead of 0, and the frame desyncs from there -- which is why
this is the one 4:2:2 cell whose LUMA is wrong too.
Four sites move together, all gated on the new own422 = ss (1,0) && horz:
- cw,ch = (bw >> ss_x, bh >> ss_y) (was (pw/2, ph/2))
- pair_mi = lmi (was (lmi.0-1, lmi.1))
- cpx,cpy = (px >> ss_x, py >> ss_y) (was (pair_mi.1*MI/2, ...))
- the chroma coefficient-context gather and the uv-mode / left / above
publication read over the strip's OWN extent, and at ss (1,0) through
around_mi_422_chroma (one chroma 4-px column spans two luma mi
columns, so the per-mi gather double-counts each column's whole-unit
dc sign and ORs in cells the unit does not cover)
The first three are lane/av1422seed's hunk, unlanded at the time of
writing and reproduced here so the arm is measurable whole; the gather and
the publication are this lane's. VERT_4 stays on the pair:
ss_size_lookup[BLOCK_4X16][1][0] is BLOCK_INVALID at 4:2:2, so only HORZ
reaches it. 4:4:4 keeps the per-mi gather (at ss_x 0 a chroma column IS a
luma mi column, so sampling would halve its own above span) and 4:2:0 is
untouched by construction.
Measured (ffmpeg 8.1.3 oracle, 16 shown frames, per-plane wrong samples;
pre = main 1bc6f543 with a patch-run-restore 4:2:2 probe bypass, post =
this tree, same bypass, same comparator):
s422_320x246 0/7810/5531 -> 0/0/0 BYTE-EXACT
s422_322x240 0/22003/21625 -> 0/0/0 BYTE-EXACT
s422_322x246 0/3437/2222 -> 0/0/0 BYTE-EXACT
s422_352x242_10b 0/4653/3777 -> 0/0/0 BYTE-EXACT
s422_416x242_10b 0/5740/4348 -> 0/0/0 BYTE-EXACT
s422_416x250_10b 99011/61486/60106 -> 0/0/0 BYTE-EXACT (this lane's cell)
25 of the 26 swept cells are byte-exact after the change; s422_384x240 is
unchanged at 0/1780/1871 and is a different residual. 4:2:0 10-bit
(s420_416x250_10b, s420_416x242_10b, s420_352x242_10b, s420_320x242_10b,
s420_320x250_10b) and 4:4:4 10-bit (s444_416x250_10b, s444_352x242_10b,
s444_320x250_10b) are byte-exact before and after. In DECODE order (17
frames, hidden alt-refs included) s422_416x250_10b is 17/17 byte-exact
against the instrumented aomdec, and so are s422_416x242_10b and
s422_320x246.
Gate: a_444_intrbac_rect4_reads_its_own_chroma_plane_block passes with
the 4:4:4 numbers unchanged (23 own-chroma strips, first wrong sample
index 20532, entropy fork read 12465 at mi (90,108)) and the 4:2:0 twin
byte-exact; the 26 intrabc-named tests pass. 4:2:2 is refused at the
sequence header, so no committed test can assert the new route: a
INTRABC_RECT4_OWN_CHROMA422_HITS counter records reach (56 HORZ 1:4
strips in frame 0 of the reproducer alone) and lanes/av1422luma.report.md
carries the measurement. The 4:2:2 refusal is untouched in this tree.Merge lane-av1422late: s422_384x240 stops at the RESERVED arm -- refusal to fix, owner namedAhmet Kaan Gümüş · 09027b4
Merge lane-av1422late: s422_384x240 stops at the RESERVED arm -- refusal to fix, owner named Refusal-to-fix with the owner identified, and the reserved-class rule honoured: the failure mode is the project-reserved 4:2:0 group-tail chroma SKIP arm, so the lane stopped rather than editing it from neighbouring chroma work. The cell's chroma is written by exactly one site -- `decode.rs:43948`, `decode_inter_block`'s single-reference arm, `push_mc_rect(1, cpx, cpy, chroma_stride, write_chroma_w, write_chroma_h, su, ZERO_RESIDUAL)` -- over a luma 64x64 at (0,128) whose per-axis 4:2:2 chroma plane block is (0,128,32,64). `EC_MCPUSH` names it as the only writer of every chroma sample in the bad box, and `EC_AV1_PIXPROBE` at U(25,175) shows `mc_add block=(0,128)+32 prev=90 val=90`. The signature is the reserved one: our committed chroma over the whole 32x64 plane block is byte-identical to the reference plane (0 of 2048, both planes) while the oracle's block is a vertical profile 87,98,120,131,...,120,98,87 and ours is a flat 90 -- a DC where the oracle predicts, which is what that arm is known to do. Everything else is ruled out with measurements rather than argument: **not entropy** (the pre-filter stage dump already carries the whole divergence -- 0/180/180 at decode frame 1 -- and luma is byte-exact in all 17 frames); **not deblock/CDEF/LR** (pre-filter carries 180 of the final 202, the filters only spread it); **not OBMC** (`EC_KILL_OBMC=1` makes the cell strictly WORSE, frame 13 going 0/290/303 -> 225/573/577, so OBMC is load-bearing here); **not compound/warp/scaled-ref** (no parse-time trace for this block; its chroma MC has xfrac=yfrac=0, Regular). Also worth keeping: `EC_AV1_DEBUG_SKIP_*` disable the filter on OUR side only, so they red every plane and cannot attribute a stage -- the pre/post/post-CDEF dumps were used instead. Two measurement facts the campaign inherits. First, the **decode->display map is measured, not assumed**: 0->0, 1->HIDDEN, 2->7, 3->3, 4->1, 5->2, 6->5, 7->4, 8->6, 9->11, 10->9, 11->8, 12->10, 13->13, 14->12, 15->14, 16->15 -- read off a 17x16 total-diff matrix and cross-checked by aomdec's own decode-order dump being 0/0/0 on every shown frame, with index-to-index alignment producing a false whole-sheet red (frame 1 read as 18096 wrong purely from misalignment). Second, the liveness control is a one-sample flip on a currently-MATCHING sample in decode 8 / display 6 plane U: U 1780 -> 1781, V unchanged 1871, Y unchanged 0, every other frame unchanged. Family sweep on the aomdec decode-order comparator: `s422_384x242` and `s422_384x246` and `s422_320x240` exact, the frame-0 cells still diverging, this one first at decode frame 1.