forge
Explore
Log in

Don't you dare go Hollow

Merge lane-av1422ffmpegbase addendum: 94 of 95 cells byte-exact at 3d56fb60 -- and no cell moved the wrong way

Browse files at this commit

6253285389482d691157152cc4e226d5caa2efefAhmet Kaan GümüşParent: 10be7f5e2894cb
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.
lanes/av1422ffmpegbase.report.mdmodified+208 -0
@@ -520,3 +520,211 @@ than a silently-missing arm.
520520 - **Six of the seven diverging cells are chroma-only and share a first-divergence row
521521 band (row 62, U columns 134–207).** That is a shape observation for whoever owns the
522522 chroma arm, not an attribution: no trace was taken here.
523+
524+---
525+
526+# ADDENDUM (2026-10-01) — re-measured on `3d56fb60`: **94 of 95 byte-exact, 50 of 51 4:2:2**
527+
528+**No cell moved the wrong way. Not one 4:2:0 cell and not one 4:4:4 cell changed
529+verdict: 22/22 and 22/22 byte-exact before and after, every one of them produced by a
530+CLEAN build of the tree, none touched by the 4:2:2 change.** The 4:2:2 delta is six cells
531+closing, one cell unmoved, and the 4:2:0/4:4:4 controls are bit-identical across the
532+change.
533+
534+| | `affe70dc` (this report's §2) | `3d56fb60` (this addendum) |
535+|---|---|---|
536+| 4:2:2 | 44 exact / 7 diverging | **50 exact / 1 diverging** |
537+| 4:2:0 | 22 exact | 22 exact (0 moved) |
538+| 4:4:4 | 22 exact | 22 exact (0 moved) |
539+| whole set | 88 exact / 7 diverging | **94 exact / 1 diverging** |
540+
541+`3d56fb60` = `298be661` (lane-av1422luma: `decode_rect4_16_intrabc` gives ss (1,0) its own
542+chroma) plus `b8eed69f`; both verified ancestors of `3d56fb60`.
543+
544+## A1. The delta, per cell
545+
546+| cell | format | `affe70dc` | `3d56fb60` | |
547+|---|---|---|---|---|
548+| `s422_320x246` | 4:2:2 | DIVERGES 0/7810/5531 | **BYTE-EXACT 0/0/0** | closed |
549+| `s422_322x240` | 4:2:2 | DIVERGES 0/22003/21625 | **BYTE-EXACT 0/0/0** | closed |
550+| `s422_322x246` | 4:2:2 | DIVERGES 0/3437/2222 | **BYTE-EXACT 0/0/0** | closed |
551+| `s422_352x242_10b` | 4:2:2 | DIVERGES 0/4653/3777 | **BYTE-EXACT 0/0/0** | closed |
552+| `s422_416x242_10b` | 4:2:2 | DIVERGES 0/5740/4348 | **BYTE-EXACT 0/0/0** | closed |
553+| `s422_416x250_10b` | 4:2:2 | DIVERGES 99011/61486/60106 | **BYTE-EXACT 0/0/0** | closed — **the luma-wrong cell** |
554+| `s422_384x240` | 4:2:2 | DIVERGES 0/1780/1871 | **DIVERGES 0/1780/1871** | **unmoved, to the sample** |
555+| all other 45 4:2:2 cells | 4:2:2 | BYTE-EXACT | BYTE-EXACT | unchanged |
556+| all 44 4:2:0 / 4:4:4 controls | | BYTE-EXACT | BYTE-EXACT | unchanged |
557+
558+**These are this lane's own numbers, from my instrument, not lane av1422luma's.** The six
559+closures match the six the lane reported; `s422_384x240` was predicted to stay and does,
560+with a count that is *byte-for-byte the same* as on `affe70dc` — every plane, every frame,
561+first bad sample still display frame 6, U (row 174, col 32), ours 133 vs ffmpeg 132, bbox
562+U rows 167–190 cols 19–34 / V rows 169–192 cols 19–35, still only 10 of 16 frames carrying
563+a wrong sample. The per-frame vectors of the two trees are **identical lists**. Whatever
564+`298be661` changed, it changed nothing in that cell, which is the expected shape for a
565+residual whose owner is the separate group-tail chroma SKIP arm.
566+
567+## A2. Full 4:2:2 table on `3d56fb60`
568+| cell | geometry | ss | depth | disp frames | verdict @3d56fb60 | Y/U/V @3d56fb60 | verdict @affe70dc | Y/U/V @affe70dc |
569+|---|---|---|---|---|---|---|---|---|
570+| `W_intrabc` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
571+| `X_intrabc_tiled` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
572+| `Y_intrabc_10b` | 320x240 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
573+| `422_sb128_3f` | 128x128 | 10 | 8 | 3 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
574+| `422_residual_compound_warp_nolr_16f` | 256x288 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
575+| `422_residual_compound_warp_16f` | 256x288 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
576+| `422_intrabc_sb128_strip_notxsearch` | 384x320 | 10 | 8 | 5 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
577+| `422_intrabc_sb128_strip` | 384x320 | 10 | 8 | 5 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
578+| `422_allskip_2f` | 128x128 | 10 | 8 | 2 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
579+| `V_tile2x2_odd` | 322x242 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
580+| `U_tilerows1` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
581+| `T_tilecols2` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
582+| `S_odd326x242_10b` | 326x242 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
583+| `R_odd322x240` | 322x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
584+| `Q_odd320x242` | 320x242 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
585+| `O_odd322x242` | 322x242 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
586+| `L_tiled` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
587+| `K_sct` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
588+| `J_10bit_lr0` | 320x240 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
589+| `I_10bit_mandel` | 320x240 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
590+| `H_10bit_testsrc2` | 320x240 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
591+| `F_allintra` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
592+| `E_noglobal` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
593+| `D_bars` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
594+| `C_mandel320` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
595+| `B_testsrc2_cpu6` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
596+| `A_testsrc2_cpu0` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
597+| `AD_inter_nogm` | 320x240 | 10 | 8 | 40 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
598+| `AB_inter_warp_odd` | 322x242 | 10 | 8 | 40 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
599+| `AA_inter_compound` | 320x240 | 10 | 8 | 40 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
600+| `ll422_noibc` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
601+| `ll422_allintra` | 320x240 | 10 | 8 | 1 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
602+| `R422_320x242` | 320x242 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
603+| `s422_320x240` | 320x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
604+| `s422_320x242` | 320x242 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
605+| `s422_320x242_10b` | 320x242 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
606+| `s422_320x246` | 320x246 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | DIVERGES | 0/7810/5531 |
607+| `s422_320x250_10b` | 320x250 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
608+| `s422_322x240` | 322x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | DIVERGES | 0/22003/21625 |
609+| `s422_322x242` | 322x242 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
610+| `s422_322x246` | 322x246 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | DIVERGES | 0/3437/2222 |
611+| `s422_326x240` | 326x240 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
612+| `s422_326x242` | 326x242 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
613+| `s422_326x246` | 326x246 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
614+| `s422_352x242_10b` | 352x242 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | DIVERGES | 0/4653/3777 |
615+| `s422_352x250_10b` | 352x250 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
616+| `s422_384x240` | 384x240 | 10 | 8 | 16 | DIVERGES | 0/1780/1871 | DIVERGES | 0/1780/1871 |
617+| `s422_384x242` | 384x242 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
618+| `s422_384x246` | 384x246 | 10 | 8 | 16 | BYTE-EXACT | 0/0/0 | BYTE-EXACT | 0/0/0 |
619+| `s422_416x242_10b` | 416x242 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | DIVERGES | 0/5740/4348 |
620+| `s422_416x250_10b` | 416x250 | 10 | 10 | 16 | BYTE-EXACT | 0/0/0 | DIVERGES | 99011/61486/60106 |
621+
622+## A3. Controls, on `3d56fb60` — 44/44 exact
623+
624+All 44 produced by the **clean** build
625+(`/home/user/.cache/tgt/cleanmain_v2/release/examples/dump_yuv`, from a detached
626+worktree at `3d56fb60` with `git status --porcelain` empty), 22 4:2:0 + 22 4:4:4,
627+**44 BYTE-EXACT, 0 diverging, 0 errors, 0 frame-count mismatches** — the same verdict each
628+one had on `affe70dc`. Per-cell rows and the 22+22 breakdown are unchanged from §2 and are
629+not re-pasted here; the machine record is `full_ff_controls_3d56.json`.
630+
631+## A4. Instrument discipline for this run
632+
633+1. **sha256 of all 95 cells re-verified** against `cells_full.json`: 0 drift, 0 missing.
634+ The nine committed pins were re-pathed to the `3d56fb60` worktree before hashing, so the
635+ bytes hashed are the bytes that tree ships.
636+2. **Geometry from `ffprobe`, never a y4m header and never a file size**; frame length
637+ derived from it; a length disagreement is a hard error; a count over zero frames is a
638+ hard error.
639+3. **Display order on both sides**, hidden alt-refs excluded — the mapping rule is §0/§3.2
640+ of this report, unchanged: `dump_yuv` is display-order+shown+depth-from-header,
641+ `ffmpeg -f rawvideo` is display-order+shown, and a decode-order count is not comparable
642+ without subtracting the hidden frame's own counts.
643+4. **Depth-correct both sides**; the u8-narrowing dump was not used anywhere.
644+5. **The probe/bypass split is now an ASSERTED ARGUMENT, not a constant.** The driver takes
645+ `FF_DUMP_YUV` and records it on every result row as `probe`. The 4:2:2 rows were produced
646+ by a patch-run-restore build in a scratch detached worktree; the 4:2:0/4:4:4 control
647+ rows by a **separate clean build of the same tree**, so a bypassed binary cannot serve
648+ the controls. `--probe-records` proves the split on every run and fails if it is wrong:
649+
650+ ```
651+ {"probe_split_control": "PASS", "cell": "W_intrabc",
652+ "clean_build": "REFUSES", "bypass_build": "BYTE-EXACT"}
653+ ```
654+
655+ The clean build was re-checked after the bypass was torn down: it still prints
656+ `REFUSED: … a chroma format of 4:2:2 (subsampling_x != subsampling_y) …`.
657+6. **Bypass hygiene.** Scratch worktree `/home/user/.cache/wt/probe422_v2` at `3d56fb60`,
658+ the guard at `stream.rs:1803` patched to `if false && seq.subsampling_x != …` under the
659+ `TEMP-PROBE-BYPASS: EC_AV1_ALLOW_422_PROBE` marker. The diff was **2 lines**
660+ (`git diff --stat`: 1 file, 2 insertions, 1 deletion — verified before building, because
661+ a two-line edit tool silently dropped a neighbouring comment line on the first attempt in
662+ this lane and had to be repaired). Restored with
663+ `git checkout -- crates/ec-av1/src/stream.rs`, `git status --porcelain` **empty**,
664+ worktree removed, and **the bypassed target directory
665+ `/home/user/.cache/tgt/probe422_v2bypass` deleted** together with the previous run's
666+ `tgt/probe422base`, so no bypassed binary survives on disk to be picked up by a later
667+ run of this driver. The path the driver is documented to use is the clean build.
668+
669+## A5. Liveness re-run on the `3d56fb60` dumps — 23 arms, 23 PASS, 0 FAIL
670+
671+Re-run before these verdicts were read. One oracle sample's bit 0 flipped, one named plane
672+of one named display frame; the count must move exactly +1 in that plane with every other
673+plane and frame unchanged; the file is restored before the next arm.
674+
675+| cell | frame | plane | baseline Y/U/V @3d56fb60 | Δ | verdict |
676+|---|---|---|---|---|---|
677+| `s422_320x242` | 0 / 0 / 15 | Y / U / V | 0/0/0 | +1 Y, +1 U, +1 V | PASS |
678+| `W_intrabc` | 0 / 7 / 15 | Y / U / V | 0/0/0 | +1 Y, +1 U, +1 V | PASS |
679+| `422_allskip_2f` | 0 | U | 0/0/0 | +1 U | PASS |
680+| `Y_intrabc_10b` | 0 / 3 / 15 | Y / U / V | 0/0/0 | +1 Y, +1 U, +1 V | PASS |
681+| `AB_inter_warp_odd` | 39 | U | 0/0/0 | +1 U | PASS |
682+| `s422_320x246` | 0 / 0 / 11 | Y / U / V | **0/0/0** (was 0/7810/5531) | +1 Y, +1 U, +1 V | PASS |
683+| `s422_322x240` | 5 | U | **0/0/0** (was 0/22003/21625) | +1 U | PASS |
684+| `s422_352x242_10b` | 0 | U | **0/0/0** (was 0/4653/3777) | +1 U | PASS |
685+| `s422_416x250_10b` | 0 / 5 | Y / U | **0/0/0** (was 99011/61486/60106) | +1 Y, +1 U | PASS |
686+| **`s422_384x240`** | 14 | V | **0/1780/1871** | **+1 V → 0/1780/1872** | **PASS** |
687+| `s444_352x242_10b` | 4 | U | 0/0/0 | +1 U | PASS |
688+| `s420_320x240` | 0 | U | 0/0/0 | +1 U | PASS |
689+| `ll420_a` (4:2:0) | 0 | Y | 0/0/0 | +1 Y | PASS |
690+| `ll444_a` (4:4:4) | 0 | V | 0/0/0 | +1 V | PASS |
691+
692+The one arm that now carries the load is `s422_384x240`: it is the only cell still red, its
693+baseline is non-zero, and the flip moves **that** plane by exactly one while Y stays 0 and
694+every other frame is unmoved. A comparator that had quietly stopped reading the oracle
695+would report 0/0/0 here too; it reports 1780/1871 and moves by one. Sample values:
696+`s422_384x240` V f14 oracle byte 2718720 `eb`→`ea`; `s422_416x250_10b` Y f0 `3f01`→`3e01`;
697+`Y_intrabc_10b` U f3 `6801`→`6901`.
698+
699+**23 arms, 23 PASS, 0 FAIL.** Six of the seven non-zero baselines from §6 are now exact, so
700+that class of arm is currently carried by one cell — re-run this control whenever the
701+remaining divergence closes, or the liveness proof loses its non-zero arm.
702+
703+## A6. What this addendum does and does not change in §4
704+
705+§4's lift checklist is unaffected as a plan, and its gate requirement is now one step
706+closer: the base it will be judged on is **50/51 4:2:2 with one known residual**, and that
707+residual is a single named cell (`s422_384x240`, 384x240 8-bit, chroma-only, 10 of 16 frames,
708+identical before and after `298be661`) with an owner lane already working it. Everything
709+§4 says about the guard site, the two `refusal_inventory.rs` rows, the seven tests to
710+invert, the pin convention and the 51/51 gate stands as written, and the 42-uncommitted-cells
711+capture task is now the same task — it is a prerequisite to the gate, not to the fix.
712+
713+Not established by this addendum: no attribution of the `s422_384x240` residual (no trace
714+was taken; it is measured, bounded and unchanged), and no claim about 4:2:2 shapes the 95
715+cells do not contain.
716+
717+## A7. Note on the instrument that landed on main while this ran
718+
719+`3d56fb60` also carries `scripts/run422-ffmpeg.py` + `scripts/cmp422-ffmpeg.py` +
720+`scripts/flipctl-422.py` (lane av1422seed). It solves the decode→display mapping
721+explicitly and reports `mapping_solutions`, so it additionally **proves the mapping is
722+unique** for a cell — a property my instrument does not assert, because it never mixes the
723+two bases: it pairs `dump_yuv` (display order, shown only) against `ffmpeg -f rawvideo`
724+(display order, shown only) and therefore has no mapping to be ambiguous about. The two
725+instruments are independent and they agree on this tree: both put 50 of 51 4:2:2 exact with
726+only `s422_384x240` diverging. Where they differ in *form*: that one decodes with
727+`EC_AV1_FINAL_DUMP` (decode order) and maps forward; this one decodes with `dump_yuv`
728+(display order) and maps nothing. Two instruments that reach the same verdict by different
729+routes is worth more than either alone, and this report's numbers are its own, not that
730+lane's.