R3 handoff -- attribution table + compound tpl extension root cause
Browse files at this commit66045bcb48e6cbe0badb059cab9ea381fc2ec03fParent: d5ca61c- docs
- r3 handoff -- attribution table + compound tpl extension root cause
1 changed file +94 -0
- lanes/sb128-r3.handoff.md +94 -0
lanes/sb128-r3.handoff.mdadded+94 -0
| @@ -0,0 +1,94 @@ | ||
| 1 | +# lane-sb128 r3 handoff (turn cap) | |
| 2 | + | |
| 3 | +Branch `lane-sb128`, worktree `edith_codecs-sb128`. Two commits this round: | |
| 4 | +`dbf15a4` (TASK 1 fix), `d6cca7d` (TASK 2 fix + refusal lift, WIP: suite not run). | |
| 5 | + | |
| 6 | +## TASK 1 -- the 7 rect/AB firing-counter reds: ATTRIBUTED AND FIXED (`dbf15a4`) | |
| 7 | + | |
| 8 | +Attribution table (same 7 gate names, run by name, own `CARGO_TARGET_DIR`): | |
| 9 | + | |
| 10 | +| tree | result | log | | |
| 11 | +| --- | --- | --- | | |
| 12 | +| main `0df090a` (detached worktree) | 7 passed | `$HOME/.cache/sb128-verify7.log` | | |
| 13 | +| lane r1 `5e5f113` | 7 passed | `$HOME/.cache/sb128-verify-r1.log` | | |
| 14 | +| lane merge `63890cb` | 7 passed | `$HOME/.cache/sb128-verify-merge.log` | | |
| 15 | +| lane r2 `807c110` | 7 FAILED | `$HOME/.cache/sb128-lane7.log` | | |
| 16 | +| lane r3 `dbf15a4` | 7 passed | `$HOME/.cache/sb128-lane7b.log` | | |
| 17 | + | |
| 18 | +LANE-CAUSED, and not a merge residue: r2 blanket-rewrote every | |
| 19 | +`"--min-partition-size=16"` in `stream.rs`'s aomenc recipes to `=32` while writing | |
| 20 | +its own 128 gate -- 13 lines across 13 gates, 7 of which assert a firing counter. | |
| 21 | +With min-partition 32 aomenc never emits a 16-level partition, so those streams | |
| 22 | +still decoded PIXEL-EXACT while `HORZ_A_32` / `rect_partition_hits` / the 1:4 and | |
| 23 | +strip counters read 0 and the "never fired" guard red-lined them. Fix = revert | |
| 24 | +exactly those 13 lines (diff-matched old-vs-new, not a sed); no counter bump site | |
| 25 | +was lost in the merge, that hypothesis is DISPROVED. | |
| 26 | + | |
| 27 | +EVIDENCE: `$HOME/.cache/sb128-lane7b.log` | `cargo test -p ec-av1 --lib -- <7 names>` | |
| 28 | +on `dbf15a4` | `test result: ok. 7 passed; 0 failed`. | |
| 29 | + | |
| 30 | +## TASK 2 -- inter frames at 128, frame 6: ROOT-CAUSED AND FIXED (`d6cca7d`) | |
| 31 | + | |
| 32 | +Stream re-pinned (sha256 twice, identical): | |
| 33 | +`.../scratchpad/sb128-inter8.obu` = `3e991db7aa7f6d6f70b91b41417b7741d0468343ee4e19e1adf7db066e3c8981` | |
| 34 | + | |
| 35 | +Ladder actually walked: | |
| 36 | +1. `EC_AV1_PREFILT_DUMP` both sides -> decode-order frame 6 differs PRE-FILTER, | |
| 37 | + 957 bytes, all inside luma y=96..127 x=0..31, i.e. ONE 32x32 block at mi(24,0). | |
| 38 | + So it is reconstruction, not deblock/CDEF/LR. | |
| 39 | +2. `EC_OBMC=1` on aomdec: 0 lines on this stream -- OBMC EXONERATED. | |
| 40 | +3. Ablation `set_reach_superblock_px(64)` (r1's sb-aware intra `Reach`): frame 6 | |
| 41 | + still 957 bytes wrong -- Reach EXONERATED. | |
| 42 | +4. Mode info EQUAL: located the oracle's line by matching `mi_row/mi_col` AND the | |
| 43 | + pre-mode `rng` (entropy in sync, so ranges match block for block): | |
| 44 | + both sides `mode=24 (NEW_NEWMV) ref0=3 ref1=5 stack=3`. Ours resolved | |
| 45 | + `mv0=(847,-105)`, oracle `mv0=(792,-245)`. | |
| 46 | +5. The MV STACK ORDER differed, from ONE missing weight-2 vote: | |
| 47 | + oracle `(569,-380) w=6 / (624,-240) w=6 / (802,-381) w=4` | |
| 48 | + ours `(624,-240) w=6 / (802,-381) w=4 / (569,-380) w=4`. | |
| 49 | + Spatial scans found NOTHING for this block (mi_col=0, no left; row scan empty), | |
| 50 | + so every candidate is TEMPORAL. | |
| 51 | + | |
| 52 | +ROOT CAUSE: `mvstack.rs::find_mv_stack_compound` never ported libaom's three | |
| 53 | +`tpl_sample_pos` EXTENSION samples (`mvref_common.c:591`, gated by `allow_extension` | |
| 54 | ++ `check_sb_border`). The SINGLE-ref twin `find_mv_stack` has them (mvstack.rs ~900); | |
| 55 | +the compound twin stopped after the main `blk_row/blk_col` loop. Class: | |
| 56 | +`neighbour-votes-all-its-fields` / asymmetric port -- a compound twin missing a | |
| 57 | +whole scan phase of its single-ref sibling. NOT sb128-specific: `check_sb_border` | |
| 58 | +masks with libaom's hardcoded `mi_size_wide[BLOCK_64X64]` (16), never `seq.sb_size`. | |
| 59 | +sb128 only made aomenc pick the compound NEW_NEWMV block that exposed it. | |
| 60 | + | |
| 61 | +Fix (`d6cca7d`): the extension loop added to the compound path, both sides | |
| 62 | +projected through `motion_field::add_tpl_ref_mv`, `add_compound_candidate(..., 2)`. | |
| 63 | + | |
| 64 | +EVIDENCE: `.../scratchpad/pf/{aom,ours}.f0..f8` | `decode_probe` + instrumented | |
| 65 | +`aomdec`, both under `EC_AV1_PREFILT_DUMP`, on the pinned obu | | |
| 66 | +all 9 decode-order frames 0 differing bytes (was: frame 6, 957 bytes). | |
| 67 | + | |
| 68 | +Also in `d6cca7d`: inter-at-128 refusal DELETED from `stream.rs` and from | |
| 69 | +`refusal_inventory.rs`; the reproducer gate `a_real_aomenc_inter_sequence_with_ | |
| 70 | +128x128_superblocks_decodes_pixel_exact` UN-`#[ignore]`d; debug scaffolding removed | |
| 71 | +(`EC_ABL_REACH64`, `EC_TRACE_MV`); an `EC_MODE_VAL`/`EC_STACK` trace kept on the | |
| 72 | +compound path under `EC_TRACE_MODE`, byte-format-identical to the oracle's rung-4. | |
| 73 | + | |
| 74 | +## NOT DONE -- exact next steps for r4 | |
| 75 | + | |
| 76 | +1. RUN THE UN-IGNORED GATE (both bit depths; only the 8-bit arm was proven, via | |
| 77 | + `decode_probe` on the pinned obu, not through the gate): | |
| 78 | + `cargo test -p ec-av1 --lib -- --nocapture inter_sequence_with_128x128` | |
| 79 | +2. Siblings, then the full suite -> `$HOME/.cache/sb128-suite-r3.log`, expect 0 | |
| 80 | + failed: `128x128` gates, `inter_sequence*`, `obmc`, `temporal_mv_candidates`, | |
| 81 | + `superblock_level_*`, the 7 rect/AB names above, `refusal_inventory`, | |
| 82 | + `gate_coverage`. The compound-tpl fix touches EVERY compound inter block in the | |
| 83 | + crate, so treat any red as this fix, not as flake. | |
| 84 | +3. SWEEP THE CLASS: diff `find_mv_stack` against `find_mv_stack_compound` phase by | |
| 85 | + phase (only the extension loop was checked); the same "compound twin dropped a | |
| 86 | + phase" shape may sit in the outer row/col scans or the extra-search fill. | |
| 87 | +4. Verifier note still owed: cdef/LR/delta_q arms with noise (`cdef_bits>0`) on the | |
| 88 | + 128 gate, and the r1 gate's content-free arms. | |
| 89 | +5. Film: `reelc-head.obu` through `decode_probe` -- expect the 128-root | |
| 90 | + NONE/HORZ/VERT/AB refusal (sibling lane `lane-sb128b` owns it), NOT the inter one. | |
| 91 | + | |
| 92 | +HANDOFF: d6cca7d -- TASK 1 fixed and proven by attribution table; TASK 2 root-caused | |
| 93 | +(compound MV stack was missing libaom's three tpl extension samples) and fixed with | |
| 94 | +all 9 frames prefilt-exact, refusal lifted and gate un-ignored, but NO suite run yet. |