forge
Explore
Log in

Don't you dare go Hollow

lane-av1422warp: second window bisect -- 3 bits short, in the mode reads

Browse files at this commit

9048e8a7de475cfa41971ffb7f3588daa27b9544Ahmet Kaan GümüşParent: 439da94
Report only; tree byte-identical to a7506ee2, bypass reverted, aomdec
rebuilt to its committed shape (grep -c bitpos = 0).

EC_COEFF_STEP bitpos re-added on both sides, paired, reverted again. The
bit delta is the same constant -14 for every coefficient unit from 0
through 2427 and changes at 2428: the oracle consumes 18 bits across
that unit, we consume 15. We are 3 BITS SHORT -- the mirror image of
round 6, where we were 6 bits long.

The window holds only two all_zero=1 skips, so no coefficient read falls
inside it; the three bits live in the block-mode reads (skip, cdef,
delta_q, mode, angle_delta, uv_mode, angle_delta_uv, use_filter_intra,
filter_intra_mode) that no rung on either side currently carries a bit
position for.

A trap recorded per the round-8 lesson: the unit INDEX pairing is only
valid while the bit delta is constant, and it stops being a safe guide
exactly here. Our decoder emits 2680 coefficient units against the
oracle's 2512, and a skipped unit's txb_skip read can cost as few as one
bit, so extra skip units coexist with a constant delta. In the window
the oracle's unit 2427 is plane=2 and ours is plane=0 -- the indices no
longer name the same block though the bit positions still agree. Pair
bit positions, never unit indices, from here on.

Enum discipline applied to what is printed: plane=0/1/2 is libaom's
PLANE_TYPE_Y/U/V; side=8 is our square reconstruct's side (an 8x8
transform unit); ctx on both lines is the txb_skip context, NOT a
tx_size context. Nothing here is claimed to be a bsize, partition or
tx_size category, so no enum lookup is needed to read it.

Unblock: add a bit position to the MODE rung on both sides (our EC_ISTEP
per symbol, and decodeframe.c's intra mode-info read on the oracle) and
pair the eight mode reads across the window. Three bits across seven or
eight reads is a single short read.
lanes/av1422warp.report.mdmodified+57 -0
@@ -392,6 +392,63 @@ tx_size lookup (the oracle's `get_tx_size_context` for that block is
392 printable and ours computes the same `above + left` form as everywhere392 printable and ours computes the same `above + left` form as everywhere
393 else).393 else).
394 394
395+### Round 10 — the second window: 3 bits, and they are in the MODE reads
396+
397+`EC_COEFF_STEP bitpos` re-added on both sides (18 rungs here, 11 in the
398+oracle's `decodetxb.c`), `aomdec` rebuilt, all reverted again
399+(`grep -c bitpos` = 0).
400+
401+The bit delta is the same constant **-14** for every coefficient unit
402+from 0 through 2427, and changes at **2428**: the oracle consumes 18
403+bits across that unit, we consume 15. **We are 3 bits short** — the
404+mirror image of round 6, where we were 6 bits long.
405+
406+The window, enumerated (both units are all_zero=1 skips, so no
407+coefficient reads fall inside it):
408+
409+```
410+oracle 92321 all_zero plane=2 ctx=8 all_zero=1 rng=60208
411+ 92339 all_zero plane=0 ctx=0 all_zero=1 rng=38996 (+18 bits)
412+ours 92335 all_zero plane=0 ctx=1 all_zero=1 rng=61576
413+ 92350 all_zero side=8 ctx=3 all_zero=0 rng=48464 (+15 bits)
414+```
415+
416+**What this does and does not establish.** It establishes the MAGNITUDE
417+and the SIDE: 3 bits, consumed by block-mode reads, not by any
418+coefficient read — the `EC_COEFF_STEP` stream shows only the two skip
419+units, so the three bits live in the mode/mode-preface reads
420+(`skip`, `cdef`, `delta_q`, `mode`, `angle_delta`, `uv_mode`,
421+`angle_delta_uv`, `use_filter_intra`, `filter_intra_mode`) that no rung
422+on either side currently carries a bit position for.
423+
424+**A trap recorded, per the round-8 lesson.** The unit INDEX pairing is
425+only valid while the bit delta is constant, and it stops being a safe
426+guide at exactly this point: our decoder emits 2680 coefficient units
427+against the oracle's 2512, and a skipped unit's `txb_skip` read can
428+cost as few as one bit, so extra skip units can coexist with a constant
429+bit delta. Note in the window above that the oracle's unit 2427 is
430+`plane=2` and ours is `plane=0` — the indices no longer name the same
431+block even though the bit positions still agree. **Pair bit positions,
432+never unit indices, from here on.**
433+
434+**Enum discipline applied to what IS printed here.** `plane=0/1/2` is
435+libaom's `PLANE_TYPE_Y/U/V` ordering and matches ours; `side=8` on our
436+line is the square `reconstruct`'s side, i.e. an 8x8 transform unit;
437+`ctx` on both is the `txb_skip` context, not a tx_size context (the
438+tx_size context is the separately printed `EC_TXCTXB`/`tx_depth ctx`).
439+Nothing in this window is claimed to be a bsize, a partition, or a
440+tx_size category, so no enum lookup is needed to read it.
441+
442+**Unblock.** Add a bit position to the MODE rung on both sides — the
443+`EC_ISTEP` line ours already prints per symbol, and the oracle's
444+equivalent in `decodeframe.c`'s intra mode-info read — and pair the eight
445+mode reads across this window. Three bits across seven or eight reads is
446+a single short read (most plausibly a `filter_intra_mode` or a
447+`use_filter_intra` the oracle takes and we do not, or a cfL alpha read
448+present on one side only), and a per-symbol bit position will name it
449+directly. That is another instrumentation round and is left unscheduled
450+here.
451+
395 ### Round 9 — CORRECTION to round 8, and where the desync actually starts452 ### Round 9 — CORRECTION to round 8, and where the desync actually starts
396 453
397 **Round 8's central claim was wrong and is retracted here.** It read the454 **Round 8's central claim was wrong and is retracted here.** It read the