Lane-fimv r1 report -- root cause, per-attempt gate hardening, suite totals
Browse files at this commitfcd7dac5964d9ca6eefea63c84f3cfc133c2e6d6Parent: 50503af- docs
- lane-fimv r1 report -- root cause, per-attempt gate hardening, suite totals
1 changed file +74 -0
- lanes/fimv-r1.report.md +74 -0
lanes/fimv-r1.report.mdadded+74 -0
| @@ -0,0 +1,74 @@ | |||
| 1 | +# lane-fimv r1 report | ||
| 2 | + | ||
| 3 | +Branch `lane-fimv`, rebased onto main `df5d630`. Commits: | ||
| 4 | + | ||
| 5 | +- `0fea969` (rebased `7513e53`) `fix(av1): motion_mode alphabet ignored force_integer_mv (and scaled refs)` | ||
| 6 | +- `fc8b30e` `test(av1): force_integer_mv motion-mode gate asserts non-vacuity per attempt` | ||
| 7 | + | ||
| 8 | +## Root cause (r1, first commit -- verified this round, not re-derived) | ||
| 9 | + | ||
| 10 | +libaom `motion_mode_allowed` (`blockd.h` ~1484) returns `WARPED_CAUSAL` only when | ||
| 11 | +`!xd->cur_frame_force_integer_mv && !av1_is_scaled(...)`. Our `warp_eligible` | ||
| 12 | +(`crates/ec-av1/src/decode.rs:12417`) had neither clause, so a screen-content frame whose | ||
| 13 | +header set `force_integer_mv` read the 3-symbol `motion_mode_cdf` where libaom wrote the | ||
| 14 | +2-symbol `obmc_cdf` -- a wrong-alphabet msac narrowing, silently wrong pixels with no | ||
| 15 | +refusal naming it (class `wrong-alphabet-same-value`). Same clause in | ||
| 16 | +`decode_inter_block8`'s 8x8-leaf read (`decode.rs:14071`). | ||
| 17 | + | ||
| 18 | +## What this round added | ||
| 19 | + | ||
| 20 | +- `crates/ec-av1/src/stream.rs:8180,8316` -- the gate's `force_integer_mv frames > 0` and | ||
| 21 | + `forced-2-symbol blocks > 0` assertions were AGGREGATE over the 6 cq/step cells, so one | ||
| 22 | + live cell could have hidden five vacuous ones (class `gate-blind-to-feature`). Both | ||
| 23 | + counters are now snapshotted per attempt and asserted right after that attempt's pixel | ||
| 24 | + compare. Both arms stay green => all 6/6 cells of each arm really carry the header state | ||
| 25 | + and the forced alphabet. | ||
| 26 | +- `crates/ec-av1/src/decode.rs:12398` -- charter asked for `ref_is_scaled` to become | ||
| 27 | + `x || y` like `av1_is_scaled`. NOT DONE as code, deliberately: a reference whose height | ||
| 28 | + differs from this frame's true size is refused before any tile decodes | ||
| 29 | + ("a reference picture whose height does not match this frame's own true size", | ||
| 30 | + `decode.rs:14681`), so the y term is unreachable dead code today. Recorded as a comment | ||
| 31 | + at the site naming the refusal and handing the y term to whoever lifts it | ||
| 32 | + (ladder rung 1: does not need to exist). | ||
| 33 | + | ||
| 34 | +## Gate | ||
| 35 | + | ||
| 36 | +`a_real_force_integer_mv_warp_stream_decodes_pixel_exact` (8-bit) and | ||
| 37 | +`a_real_force_integer_mv_warp_10bit_stream_decodes_pixel_exact` (10-bit), | ||
| 38 | +`crates/ec-av1/src/stream.rs:8160`. Real `aomenc` (`~/.cache/aom-oracle/build/aomenc`), | ||
| 39 | +`--tune-content=screen --enable-warped-motion=1 --enable-obmc=1 --enable-global-motion=0`, | ||
| 40 | +64x64x20 translating screen-content tiles, 6 cells (`cq` 32/45/55 x `step` 4/8), every | ||
| 41 | +decoded frame pixel-compared against ffmpeg. | ||
| 42 | + | ||
| 43 | +``` | ||
| 44 | +EC_AV1_REQUIRE_AOMENC=1 CARGO_TARGET_DIR=$HOME/.cache/cargo-target-fimv \ | ||
| 45 | + cargo test -p ec-av1 --lib -- force_integer_mv --nocapture --test-threads=1 | ||
| 46 | +``` | ||
| 47 | + | ||
| 48 | +EVIDENCE: $HOME/.cache/fimv-suite.log | aomenc --tune-content=screen --enable-warped-motion=1 --enable-obmc=1 --enable-global-motion=0, 6 cq/step cells x 20 frames, each frame Y/U/V compared to ffmpeg | 8-bit 6/6 pixel-exact, 0 refusals, force_integer_mv frames=114, forced-2-symbol blocks=342; 10-bit identical 6/6 / 114 / 342 | ||
| 49 | +EVIDENCE: $HOME/.cache/fimv-suite.log | sibling re-run `cargo test -p ec-av1 --lib -- warp obmc superres scaled` | 20 passed, 0 failed, 2 ignored (pre-existing: 10-bit compound MC defect; pinned-fixture test) | ||
| 50 | + | ||
| 51 | +## Refusals | ||
| 52 | + | ||
| 53 | +None lifted this lane -- the defect was a wrong CDF alphabet, not a refused capability. | ||
| 54 | +`refusal_inventory` (3 tests) and `gate_coverage` (9 tests) stay green with no edit needed. | ||
| 55 | + | ||
| 56 | +## Suite totals | ||
| 57 | + | ||
| 58 | +`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -- --test-threads=3`, log | ||
| 59 | +`$HOME/.cache/fimv-suite.log`: **300 passed, 1 failed, 27 ignored, 0 filtered out** (933s). The single failure is the pre-existing-on-main one below. | ||
| 60 | + | ||
| 61 | +`decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule` fails, and is PRE-EXISTING ON | ||
| 62 | +MAIN: reproduced at `df5d630` in a detached verify worktree with its own target dir -- | ||
| 63 | +`32x64 nz_map offset at display (row 0, col 2) left: 6 right: 11` (`decode.rs:16315`). This | ||
| 64 | +lane's diff never touches `nz_map` (`git diff df5d630..HEAD -- decode.rs | grep -c nz_map` | ||
| 65 | += 0). | ||
| 66 | + | ||
| 67 | +## Residue | ||
| 68 | + | ||
| 69 | +- deferred(whoever lifts the reference-height refusal at `decode.rs:14681`): the | ||
| 70 | + `av1_is_scaled` y_scale_fp term in `warp_eligible`. Unreachable today, documented at the | ||
| 71 | + site. | ||
| 72 | +- accepted (not this lane): `nz_map_ctx_offset_tables_match_the_rect_rule` red on main. | ||
| 73 | +- accepted: `a_real_compound_global_warp_10bit_stream_decodes_pixel_exact` stays `#[ignore]` | ||
| 74 | + (pre-existing 10-bit compound MC defect). | ||