R4 report -- main merge (no conflicts, cdf.rs identical), firing assert restored as a hard 8-bit assert, film-depth regression attributed to main
Browse files at this commit5677085efaa647dfb4a7fc7aa6afb11c218de084Parent: adb8dd9- docs
- r4 report -- main merge (no conflicts, cdf.rs identical), firing assert restored as a hard 8-bit assert, film-depth regression attributed to main
- suite 372/0/32
1 changed file +87 -0
- lanes/r14-r4.report.md +87 -0
lanes/r14-r4.report.mdadded+87 -0
| @@ -0,0 +1,87 @@ | ||
| 1 | +# lane-r14 round 4 — merge main, and the parked firing assert turned back on | |
| 2 | + | |
| 3 | +## 1. Merge `main` (18bf7dc) — commit `523c17d` | |
| 4 | + | |
| 5 | +`git merge --no-commit main` auto-merged with NO conflicts (diffstat: decode.rs +1117, | |
| 6 | +stream.rs +1100, mvstack.rs +114, encode.rs +47, refusal_inventory.rs, cdf.rs, cdf_state.rs, | |
| 7 | +decode_probe.rs, 9 lane reports). Checks run before committing: | |
| 8 | + | |
| 9 | +- `git diff main -- crates/ec-av1/src/cdf.rs` → **0 lines**: cdf.rs (NZ_MAP / FILTER_INTRA rows | |
| 10 | + included) is byte-identical to main on the merged tree, so no table was rebound by the merge. | |
| 11 | +- `git diff main -- crates/ec-av1/src/refusal_inventory.rs` shows only THIS lane's deletion | |
| 12 | + ("a split transform on a 1:4 inter strip with a 64-px axis"); every refusal main deleted | |
| 13 | + (lane-oddh's 128x128 line, lane-intrarect's) stays deleted. | |
| 14 | +- `grep -rn '<<<<<<<|>>>>>>>' crates/` → nothing. No hand-resolved function, so no rebound-name | |
| 15 | + re-read was needed (class merge-resolution-shadows-a-name did not apply this round). | |
| 16 | + | |
| 17 | +## 2. The firing assert is back on — and it is a hard assert | |
| 18 | + | |
| 19 | +Gate renamed | |
| 20 | +`a_real_aomenc_inter_1to4_recipe_decodes_pixel_exact_or_refuses_by_name` → | |
| 21 | +**`real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal`** | |
| 22 | +(`crates/ec-av1/src/stream.rs:6752`), which is what it now asserts. | |
| 23 | + | |
| 24 | +r4 recipe hunt on the merged tree, ~70 real aomenc runs (`testsrc2`, `life`, `mandelbrot`, | |
| 25 | +banded-motion lavfi with per-band and per-column speeds, 64x64 / 128x64 / 64x128 / 256x64 / | |
| 26 | +384x64 / 64x384 / 192x128 / 384x256, cq 20..58, `--min-partition-size` 16 and 32, 8- and | |
| 27 | +10-bit) found the recipe r3 could not: **384x256, per-16-column band motion**, at | |
| 28 | +`cq=38` and `cq=32`. | |
| 29 | + | |
| 30 | +EVIDENCE: `$HOME/.cache/r14-r4-gate.log` (gate run, quoted below) | `cargo test -p ec-av1 --lib -- --test-threads=1 --nocapture real_aomenc_1to4_streams` on `0b49322` | 8-bit: `attempt 17 refusal (rect var-tx leaves decoded before it: 32x16=4, 16x32=0)`, `attempt 16 ... (32x16=0, 16x32=1)`, summary `2 named refusals, leaves decoded anywhere in the sweep 32x16=4 16x32=1, 16 attempts carried none (0 of them mismatched)` — **test result: ok, 1 passed** | |
| 31 | + | |
| 32 | +What the gate asserts now: | |
| 33 | +- `oos_mismatch == 0` — every attempt that decodes to the end is compared to ffmpeg on Y/U/V, | |
| 34 | + 8- AND 10-bit, and a mismatch is a failure, never a SKIP (16/16 banded attempts per depth | |
| 35 | + decode fully and match; the recipe's `--min-partition-size` moved 32 → 16, so those 16 | |
| 36 | + attempts now also exercise the 16-level path). | |
| 37 | +- `compared + out_of_scope > 0` — the gate is not vacuous. | |
| 38 | +- **8-bit: `fired_32x16 > 0 && fired_16x32 > 0`** — both orientations of | |
| 39 | + `sub_tx_size_map[TX_64X16] == TX_32X16` / `[TX_16X64] == TX_16X32` decoded out of a real | |
| 40 | + aomenc stream. These two streams stop LATER on another lane's refusal | |
| 41 | + (`a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding` at cq 32, | |
| 42 | + `an inter 16x16-level AB or 1:4 partition` at cq 38 — decode.rs:21305, genuinely unimplemented | |
| 43 | + on the inter path), so the leaves are proved **decoded**, not proved pixel-exact. The counters | |
| 44 | + are per-attempt deltas kept in a separate pair of variables from the pixel-compared ones | |
| 45 | + (class counter-from-refused-stream), and the distinction is printed and commented. | |
| 46 | +- 10-bit: the same sweep fires ZERO leaves (measured: cq 32/35/38 pick other shapes), so the | |
| 47 | + firing assert is 8-bit-only, with the measurement written at the assert. | |
| 48 | + | |
| 49 | +## 3. Suite | |
| 50 | + | |
| 51 | +`systemd-run --user --unit=r14-suite-r4-1788325638 -p MemoryMax=10G ... cargo test -p ec-av1 --lib -j3` | |
| 52 | +→ `$HOME/.cache/r14-suite-r4.log`. **Suite result (r4 tip `0b49322`): 372 passed; 0 failed; 32 ignored, 1487.04s** — GREEN. | |
| 53 | +(r3 tip was 367/0/31; +5 passed and +1 ignored come from main's three merged lanes.) | |
| 54 | + | |
| 55 | +## 4. Film probes on the merged tree — and a regression that is main's, not this lane's | |
| 56 | + | |
| 57 | +EVIDENCE: `/tmp/.../scratchpad/r14/seg{300,3000,4500}.obu` (2 s HG 2160p10 extracts, reused from r3) | `decode_probe` under `systemd-run --user --scope -p MemoryMax=6G`, `EC_AV1_FINAL_DUMP` file count = frames completed | merged tree `0b49322`: | |
| 58 | + | |
| 59 | +| segment | stop string | frames completed | | |
| 60 | +|---|---|---| | |
| 61 | +| `-ss 300` | `a split intra strip whose transform unit is 32x64 (no luma coefficient tables for that shape here)` | 1 | | |
| 62 | +| `-ss 3000` | same | 1 | | |
| 63 | +| `-ss 4500` | `an intra-coded 1:4 (or other non-2:1) rect strip on the inter block path` | 1 | | |
| 64 | + | |
| 65 | +That is **shallower than the r3 tip**, where `seg4500` decoded 14 rectangular var-tx leaves and | |
| 66 | +16 `16x64` strips before stopping. Attribution measured, not guessed: | |
| 67 | + | |
| 68 | +EVIDENCE: same three segments | `decode_probe` built from a detached worktree at **main 18bf7dc** (`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-r14-main`, worktree + target dir removed after) | main alone gives the IDENTICAL stop strings and `frames=1` on all three | |
| 69 | + | |
| 70 | +So the films now stop in decode-order frame 2 on lane-intrarect's two NARROWER successor | |
| 71 | +refusals; the merge with lane-r14 changes nothing about it. **flagged, not mine**: main | |
| 72 | +18bf7dc is a film-depth regression against this lane's r3 tip — a broad refusal was replaced | |
| 73 | +by narrower ones that fire EARLIER in the stream (or our decode desyncs into them; class | |
| 74 | +refusal-from-own-desync is untested here). Owner: lane-intrarect / a fresh lane. | |
| 75 | + | |
| 76 | +## Residue | |
| 77 | + | |
| 78 | +- deferred(needs the 16x16-level inter 1:4 lane, or the non-skip HORZ_B rect residual lane) — | |
| 79 | + a PIXEL-EXACT aomenc stream carrying a rectangular var-tx leaf. Both firing streams are one | |
| 80 | + refusal short of running to the end; the assert to strengthen is the `if bit_depth == 8` block. | |
| 81 | +- deferred(needs an aomenc recipe that fires the arm at 10 bits) — the 10-bit firing assert. | |
| 82 | + Measured absent over the 18-attempt sweep at cq 32/35/38. | |
| 83 | +- flagged, not mine — the film-depth regression above. | |
| 84 | +- accepted — `--enable-ab-partitions=0` streams still reach `an inter SB-level AB partition` | |
| 85 | + and `--min-partition-size=16` streams reach `an inter partition below 8x8` (both re-observed | |
| 86 | + this round, r3 flagged them first): a refusal naming a disabled tool is usually our own | |
| 87 | + desync, and deserves its own lane. |