lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space; the walk was right
Browse files at this commitf8388788c00e2de6fd6fc7865c5af68d1c8115c8Parent: f7f488f1 changed file +157 -0
- lanes/av1partadvance.report.md +157 -0
lanes/av1partadvance.report.mdadded+157 -0
| @@ -0,0 +1,157 @@ | |||
| 1 | +# lane-av1partadvance — it is a LABEL defect, not a stride defect; the two cells are unexplained again | ||
| 2 | + | ||
| 3 | +Base `2d8851c0`, branch `lane-av1partadvance`. | ||
| 4 | + | ||
| 5 | +**One change, and it is an instrument fix: the 16-level partition rung's label | ||
| 6 | +was in a different label space from the 32-level rung's, 4x apart. The walk was | ||
| 7 | +already correct. The pixels did not change — which is the proof.** | ||
| 8 | + | ||
| 9 | +## 1. Which is the label? — answered first, as instructed | ||
| 10 | + | ||
| 11 | +`crates/ec-av1/src/decode.rs`, the 32-level arm of the partition walk: | ||
| 12 | + | ||
| 13 | +```rust | ||
| 14 | +let at32 = (r32 as usize * 2, c32 as usize * 2); // 34938 | ||
| 15 | +... | ||
| 16 | +eprintln!("EC_PART mi_row={} mi_col={} bsize=9 ...", | ||
| 17 | + r32 * BLOCK_MI, c32 * BLOCK_MI, ...) // 34947-34953 | ||
| 18 | +eprintln!("TRACE partition_w32 mi=({},{}) ...", | ||
| 19 | + r32 * BLOCK_MI, c32 * BLOCK_MI, ...) // 34967-34970 | ||
| 20 | +``` | ||
| 21 | + | ||
| 22 | +The walk's own mi position is `at32 = (r32*2, c32*2)`; the printed label is | ||
| 23 | +`r32 * BLOCK_MI = r32 * 8 = at32.0 * MI`. **So the convention is `at_mi * MI`.** | ||
| 24 | + | ||
| 25 | +The 16-level arm, 130 lines down, in the SAME walk: | ||
| 26 | + | ||
| 27 | +```rust | ||
| 28 | +let at16 = (sr, sc); // 35069 | ||
| 29 | +... | ||
| 30 | +eprintln!("EC_PART mi_row={} mi_col={} bsize=6 ...", at16.0, at16.1, ...) // 35074-35080 | ||
| 31 | +eprintln!("TRACE partition_w16 mi=({},{}) ...", at16.0, at16.1, ...) // 35091-35092 | ||
| 32 | +``` | ||
| 33 | + | ||
| 34 | +`at16.0` — **raw, with no `* MI`.** Same walk, same `at_mi` quantity, two label | ||
| 35 | +spaces, 4x apart. That is the whole defect. | ||
| 36 | + | ||
| 37 | +Lane-av1oddgolomb compared `TRACE partition_w16 mi=(0,1)` (our space) against | ||
| 38 | +aomdec's `EC_PART mi_row=0 mi_col=4` (the converted space) and read a 4x child- | ||
| 39 | +advance bug. It is an artifact of comparing across label spaces — the class this | ||
| 40 | +crate has been bitten by twice already this wave. | ||
| 41 | + | ||
| 42 | +**Answer to "which is it":** a 4-px-mi-derived index, printed unconverted at the | ||
| 43 | +16 level and converted at the 32 level. Not a child index, not px, not a parent | ||
| 44 | +plus offset. | ||
| 45 | + | ||
| 46 | +## 2. The fix | ||
| 47 | + | ||
| 48 | +One line per rung, three rungs (the two `EC_TRACE` twins and the `EC_AV1_TRACE` | ||
| 49 | +one), all inside `env_flag!` blocks: | ||
| 50 | + | ||
| 51 | +```rust | ||
| 52 | +let (lbl_r, lbl_c) = (at16.0 * MI, at16.1 * MI); | ||
| 53 | +``` | ||
| 54 | + | ||
| 55 | +The walk — `sr, sc`, `at16`, the bounds check at 35060 that already used | ||
| 56 | +`(sr as u32) * SUB_MI`, `has_half(sc as u32 * SUB_MI, …)`, and every | ||
| 57 | +`decode_block` call — is **untouched**. Only what the rungs print changed. | ||
| 58 | + | ||
| 59 | +## 3. Proof, independent of the trace | ||
| 60 | + | ||
| 61 | +**Label moved, to the oracle's own value, rng included.** | ||
| 62 | + | ||
| 63 | +| | before | after | | ||
| 64 | +|---|---|---| | ||
| 65 | +| ours, 2nd 16-level symbol | `TRACE partition_w16 mi=(0,1) ctx=0 value=8` | `EC_PART mi_row=0 mi_col=4 bsize=6 ctx=0 tell=688 rng=39176` | | ||
| 66 | +| oracle | `EC_PART mi_row=0 mi_col=4 bsize=6 ctx=4 tell=674 rng=39176` | same | | ||
| 67 | + | ||
| 68 | +The **msac `rng` matches exactly** (39176), and so do the first symbol | ||
| 69 | +(`mi=(0,0) … value=0`, rng 54632) and the 32-level sibling. Only `tell` differs, | ||
| 70 | +by the same constant bit-counter offset seen throughout this wave. | ||
| 71 | + | ||
| 72 | +**Pixels did not move.** Same comparator, same oracle, before and after: | ||
| 73 | + | ||
| 74 | +| cell | before | after | | ||
| 75 | +|---|---|---| | ||
| 76 | +| `320x236` | Y 234349 U 56957 V 52981 | **Y 234349 U 56957 V 52981** | | ||
| 77 | +| `322x248` | Y 36286 U 13359 V 13001 | **Y 36286 U 13359 V 13001** | | ||
| 78 | + | ||
| 79 | +Identical. That is what makes this an instrument fix and **not** a decoder fix: | ||
| 80 | +a label fix must change the label and nothing else, and this one does. | ||
| 81 | + | ||
| 82 | +## 4. The finding, stated honestly: the two cells are UNEXPLAINED again | ||
| 83 | + | ||
| 84 | +**The mechanism I reported last lane does not exist.** `320x236` and `322x248` | ||
| 85 | +diverge, are entropic, and fork somewhere I have **not** located. Everything I | ||
| 86 | +measured still stands and now rules out more than it did: | ||
| 87 | + | ||
| 88 | +* frame 0 (the keyframe) is already wrong on both — no propagation, no MC, no | ||
| 89 | + loop filter; | ||
| 90 | +* the fork is at coefficient read 6 of frame 0, inside the read-5 (V-plane 8x8) | ||
| 91 | + unit's tail, against a constant bit-counter offset that breaks exactly there; | ||
| 92 | +* every partition **value** matches aomdec symbol-for-symbol (3,3,3,0,8,2,2,3); | ||
| 93 | +* the coefficient scan, the coefficient **placement** (the oracle's positions | ||
| 94 | + transpose by `(p%8)*8 + p/8` to exactly ours), `all_zero`, `eob`, and every | ||
| 95 | + base ctx/level match; | ||
| 96 | +* **and now the partition child coordinates match too.** | ||
| 97 | + | ||
| 98 | +So the fork is inside a unit's sign/Golomb tail, not in any table, scan or walk | ||
| 99 | +step I have looked at. I am not going to name a mechanism I cannot point at. | ||
| 100 | + | ||
| 101 | +## 5. Sweep — 51 cells, and the rate is 2 | ||
| 102 | + | ||
| 103 | +Same comparator throughout, `EC_FLIP` +1 control on every failing cell. | ||
| 104 | + | ||
| 105 | +**Core grid re-run (27 cells), unchanged: 25/27 exact.** `320x236` and `322x248` | ||
| 106 | +still fail, byte-identically. `320x232` spot-checked still 0/0/0, 16/16 frames. | ||
| 107 | + | ||
| 108 | +**Extended grid (24 new cells), all 24 EXACT:** | ||
| 109 | + | ||
| 110 | +* heights 260, 264, 268, 272 x widths 320, 322, 324 — 12/12 exact | ||
| 111 | +* widths 318, 326, 330 x heights 232, 236, 240, 248 — 12/12 exact | ||
| 112 | + | ||
| 113 | +**49 of 51 cells exact. The rate is 2/51.** | ||
| 114 | + | ||
| 115 | +The geometric hypothesis is now definitively dead, and the extended grid kills it | ||
| 116 | +harder than the core one could: | ||
| 117 | + | ||
| 118 | +* **height 236 is not the trigger.** `318x236`, `324x236`, `326x236`, `330x236` | ||
| 119 | + and `322x236` are all EXACT; only `320x236` fails. | ||
| 120 | +* **width 322 is not the trigger.** `322x232`, `322x236`, `322x240` are exact; | ||
| 121 | + only `322x248` fails. | ||
| 122 | +* **"not a multiple of 8" is not the trigger.** 318, 322, 324, 326, 330 and 236 | ||
| 123 | + are all non-multiples of 8, and nearly every combination of them is exact. | ||
| 124 | + | ||
| 125 | +This is a **sparse, content-specific** failure: two (width, height, content) | ||
| 126 | +triples out of 51, with no geometric predicate separating them from the 49 that | ||
| 127 | +pass. Any mechanism proposed for it must explain why *these two encodings* and no | ||
| 128 | +other in the grid. | ||
| 129 | + | ||
| 130 | +## 6. Gates | ||
| 131 | + | ||
| 132 | +Run after the label fix: `the_pinned_420_oddheight_witness_is_pinned_and_decodes_byte_exact`, | ||
| 133 | +`the_counting_oracle_diff_detects_one_flipped_oracle_byte`, | ||
| 134 | +`a_pinned_444_inter_stream_chroma_units_inherit_their_own_quadrants_tx_type`, | ||
| 135 | +`a_pinned_444_rect_inter_stream_resolves_each_chroma_unit_from_its_own_luma_leaf`, | ||
| 136 | +`a_444_rect_strip_chroma_tiled_2x1_and_1x2_units_take_their_own_above_right_reach`, | ||
| 137 | +`chroma_units*` — **6 passed, 0 failed**. | ||
| 138 | + | ||
| 139 | +**No new gate committed, and deliberately so.** There is no decoder change to | ||
| 140 | +pin. Committing a pixel gate for the label fix would be testing the test; and a | ||
| 141 | +ratchet for `320x236` would be pinning an unexplained defect, which is what | ||
| 142 | +lane-av1422anom's ratchet was and what I have spent three lanes arguing against. | ||
| 143 | + | ||
| 144 | +## 7. `not_done` | ||
| 145 | + | ||
| 146 | +* **The two cells are not fixed and are not explained.** Named state: entropic | ||
| 147 | + fork at coefficient read 6 of frame 0, inside a V-plane 8x8 unit's | ||
| 148 | + sign/Golomb tail, with the walk, the partition values, the scan, the | ||
| 149 | + placement, `all_zero`, `eob` and every base ctx/level all verified equal to | ||
| 150 | + aomdec. | ||
| 151 | +* **The other 16-level partition rung pair (decode.rs:52836, the rect reader) was | ||
| 152 | + not audited** for the same label defect. It multiplies by `SUB_MI` already, so | ||
| 153 | + it is *not* the same bug, but I did not check whether it is in the same space | ||
| 154 | + as the 32-level rung at 52692 beside it. | ||
| 155 | +* **No gate** (§6). | ||
| 156 | +* **4:2:2 not re-measured** (needs `EC_AV1_ALLOW_422_PROBE`). | ||
| 157 | +* **Full suite not run** (lane rules: scoped only). | ||