diff --git a/lanes/mc64-r2.report.md b/lanes/mc64-r2.report.md new file mode 100644 index 00000000..08ec112a --- /dev/null +++ b/lanes/mc64-r2.report.md @@ -0,0 +1,73 @@ +# lane-mc64 r2 -- the frame-2 64x64 intra-in-inter drift was the no-CFL uv_mode alphabet (fixed by the merge) + +## Verdict: GREEN. No decoder line of mine; the merge fixed it, and the round pins it. + +Tip `5bfb38b` on `lane-mc64` (base main `727f29a`, merged `lane-sqdrift` `7d498c0` at `0a2269b`). + +## 1. What the defect was + +Charter defect (r1 handoff): `crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu`, +decode-order frame 2, mi(16,32), 64x64 `PARTITION_NONE` INTRA block inside an INTER frame -- +3720/4096 luma samples wrong (-12..+9), chroma bit-exact, decode then dying at frame 3 on +lane-intra64split's "a split intra strip whose transform unit is 64x32" refusal. + +None of the six charter suspects (tx_depth granularity, 64x64 edge availability, edge filter +with inter neighbours, TX_64X64 coded corner, palette-at-64, delta_q) is the cause. The cause +is the one lane-sbrect10 found (`9f1f108`) and lane-sqdrift confirmed by ablation (`7d498c0`): +libaom `is_cfl_allowed` (`blockd.h`, spec 5.11.5: `block_size_wide[bsize] <= 32 && +block_size_high[bsize] <= 32`) excludes a 64-axis block from CFL, so its `uv_mode` comes off +the 13-symbol `uv_mode_no_cfl` alphabet. We read the 14-symbol CFL one -- same `DC_PRED` +value, different interval narrowing (class `wrong-alphabet-same-value`). The luma-only, +chroma-exact signature that pointed r1 at the 64-length luma transform is a red herring: the +desynced tail happened to leave chroma intact on this frame, and the frame-3 refusal was a +phantom of our own desync (class `refusal-from-own-desync`). + +`decode.rs:6270` and `decode.rs:18781` (`cfl_allowed = bw.max(bh) <= 32`) arrive with the +merge; the merge conflicts I resolved were in the per-frame dump index (kept r1's shared +`stage_dump_idx()`) and two test blocks appended at the same point (both kept). + +## 2. Measurement, on the merged tree, same fixture, same command as r1 + +EVIDENCE: /home/user/.cache/mc64-tmp/R2.{ref,our}.f0..f5 | `bash ~/.cache/mc64-tmp/cmp.sh crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu R2` under `systemd-run --user --scope -q -p MemoryMax=6G` (instrumented aomdec `EC_AV1_PREFILT_DUMP` vs our `decode_probe`) | f0..f5 all `0` differing bytes; probe reports `OK: 6 frames decoded, 192x128` (r1: f2 = 3720 bytes differing, decode stopped at f3) + +## 3. The gate (new) + +`crates/ec-av1/src/stream.rs:7400` +`a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact` + +The RECT-ON twin of sqdrift's square-only gate (which the merge brings in and which is +rect-OFF by construction). The fixture is pinned rather than regenerated because its recipe +is not reproducible (r1 measured: re-encoding the same y4m gives 19003 bytes md5 +`278be003743daed5ea116cd41056537a`, not the fixture's `add55f625b6302c523455bb8662b19f5`; +class `seeded-fixture-not-reproducible`). It asserts all 6 decode-order frames byte-exact +against the oracle through the existing `decode_all_frames_vs_oracle` helper (hidden frames +included, no SKIP on mismatch or decode error) and `nocfl_uv_mode_hits() > 0` as the witness +that the 64-axis no-CFL narrowing fired. `have_aomenc()` under `EC_AV1_REQUIRE_AOMENC=1` +fails instead of skipping. + +EVIDENCE: `cargo test -p ec-av1 --lib a_pinned_rect_stream_with_a_64x64` | run on the merged tree | `test result: ok. 1 passed; 0 failed` + +Non-vacuity, proved this round, not remembered: + +EVIDENCE: ablation `decode.rs:18781 let cfl_allowed = true;` rebuilt, test re-run, line reverted (`git diff --stat` after revert = stream.rs only) | same command | `test result: FAILED. 0 passed; 1 failed` (panic at stream.rs:2047, the oracle frame compare) + +## 4. Refusals + +None lifted. The frame-3 "split intra strip whose transform unit is 64x32" refusal this +stream used to hit was a phantom of the desync and is simply not reached now; it remains a +real ceiling for other streams, so `refusal_inventory.rs` is untouched. `refusal_inventory` ++ `gate_coverage` tests green. + +## 5. Suite + +`$HOME/.cache/mc64-suite-r2.log` (unit `mc64-suite-r2-1788332399.service`): `test result: ok. 385 passed; 0 failed; 33 ignored; 0 measured; 0 filtered out; finished in 1152.96s` + +r1's unit `mc64-suite-1788331999.service` was still running at r2 start (186 ok, 0 FAILED, +`$HOME/.cache/mc64-suite-r1.log`) and was stopped -- one suite per target dir. + +## 6. Residue + +- accepted: no new decoder code this round; the lane's defect was fixed upstream in + lane-sqdrift/lane-sbrect10 and is now pinned from the rect side too. +- deferred(another lane owns it): the "split intra strip whose transform unit is 64x32" + refusal (lane-intra64split) -- unblocked by that lane's 64x32 TU work, not by this fixture.