forge
Explore
Log in

Don't you dare go Hollow

av1422ctintrabc (report only): the intrabc chroma copy geometry is SOUND; the defect was ARM ORDER, and that fix landed inside the attribution merge 1686dc8a

Browse files at this commit

789274c9a076665d9d60d7e14e580be3fb7aff9dAhmet Kaan GümüşParent: ca69286
The four corpus cells (Q_odd320x242 0/9603/14456, O_odd322x242 0/985/722, AB_inter_warp_odd 0/3705/4366,
S_odd326x242_10b 0/301/751) plus the fresh reproducer R422_320x242 (0/6337/8398) are ALL BYTE-EXACT on
every plane of every decode frame on the current tree -- 0 after, and the two battery controls
(R_odd322x240, V_tile2x2_odd) exact before and after.

DISCLOSURE, because the record needs it: the fix is commit b8eed69f, which rode inside the merge
1686dc8a (lane-av1422ctattr) and was NOT mentioned in that lane's report or in my merge message for it.
It replaced `if skip {` in sub8_leaf_chroma422 with
`if let Some(dv) = intrabc_dv.filter(|_| skip) { <bilinear frame copy at the DV> } else if skip {`: a
SKIPPED intrabc 4:2:2 chroma leaf now predicts its DV frame copy instead of pushing a flat intra mode.
libaom's reason, quoted from this lane: `decode_token_recon_block` takes the INTER arm for an intrabc block
(`is_inter_block` counts it) and `predict_inter_block_visit` runs `dec_build_inter_predictor` REGARDLESS of
`skip_txfm` (`decodeframe.c:1040-1043`) -- only the residual read is dropped. Chroma-only because
`dec_build_inter_predictor` breaks non-chroma-reference planes (`:702`); luma was already ordered
correctly, which is why Y stayed 0 on every frame; and skip gates only the residual read, never the parse,
so the divergence was pure pixels with no desync. The seed's 182 was our DC built from an edge pair the
oracle never read; the oracle's 202 is a bilinear copy of a flat 202 region at DV (col 0, row -1024).

VERIFIED INDEPENDENTLY, not taken on trust: the arm order was reproduced by MUTATION (restoring the old
order re-creates the divergence), the flip control bites on BOTH states (a single flipped oracle U byte
moves the count by +1 before and after), and all four named suspects are refuted with reasons rather than
assertions -- (a) the DV's per-axis chroma scaling matches libaom's `clamp_mv_to_umv_border_sb` term for
term; (b) the source-origin rounding difference is STRUCTURALLY UNREACHABLE (even mi_col only ever pairs
with an 8px leaf and odd mi_col only with a 4px leaf; the divergent combination cannot occur, and 12 of 12
reached calls are (8,4) at even mi_col); the rest are in the report. Regression 181 passed / 0 failed /
2 ignored.

HANDED OVER, NOT PATCHED: one measured latent gap -- a 4x8 chroma-leaf extent with reach 0 of 12 -- is
named in the report with its evidence rather than guessed at, and the W/X/Y witnesses are stated honestly
as a NO-DISTURBANCE control (they are exact in the BEFORE state too, so they do not discriminate; the
discriminating evidence is the four cells plus the mutation).
lanes/av1422ctintrabc.report.mdadded+511 -0
@@ -0,0 +1,511 @@
1+# lane-av1422ctintrabc — the 4:2:2 intrabc chroma COPY geometry is SOUND on the whole corpus; the defect was arm ORDER, already fixed at my tip; one named latent gap (4x8 leaf extent, reach 0/12) is handed over, not patched
2+
3+**Outcome in one line: I reproduced the four cells independently (sha, first bad
4+byte, seed 182-vs-202), re-derived the libaom copy geometry expression by
5+expression, measured all four cells plus the reproducer plus both controls to
6+byte-exact on every plane of every decode frame, showed the flip control bites on
7+both states, showed all five intrabc-heavy regression witnesses hold on BOTH
8+states, and refuted all four named suspects — with one measured latent gap handed
9+over rather than patched.**
10+
11+Tip: `main` = `1686dc8a` (the merge of `lane-av1422ctattr`). Worktree
12+`/home/user/.cache/wt/av1422ctintrabc`, branch `lane-av1422ctintrabc`.
13+**Zero commits, zero source changes** — `git status --porcelain` in the lane tree
14+is empty, and in the primary checkout it is empty. The 4:2:2 sequence-header
15+bypass was applied only to *build a measurement binary* and is **restored**
16+(`stream.rs:1803` reads `if seq.subsampling_x != seq.subsampling_y {`). No push,
17+no merge, no rustfmt. The shared oracle binary was **not** overwritten; a private
18+oracle was built at `/home/user/.cache/aom-oracle-av1422ctintrabc`.
19+
20+---
21+
22+## 0. What the brief assumed, and what measurement says
23+
24+| brief's premise | measured verdict |
25+|---|---|
26+| the copy geometry (source rect / per-axis DV scale / anchor rounding / extent) is the defect | **REFUTED** — every term matches libaom's expression term-for-term on all 12 reached calls (§3, §4) |
27+| there is something to fix in the copy geometry | **REFUTED for the corpus** — the defect was arm ORDER (`if skip` before the intrabc copy), merged at `1686dc8a`; I measured its removal to reproduce all four cells and its restoration to clear them (§2, §5) |
28+| a residual defect remains | **NOT FOUND on the corpus.** One latent gap is named with a reach census: a `BLOCK_4X8` leaf's chroma copy extent (§7) — **0 hits on 8 cells**, left unpatched on purpose |
29+| the fix must be gated | **NO.** 4:2:2 is refused at the sequence header; §8 states this plainly and does not substitute a source scan |
30+
31+**Important correction to the prior lane's own record:** `lanes/av1422ctrigger`
32+§5c states our `lmi.1` is `2 * mi_col` and therefore "always even", and builds its
33+`EC_422_ANCHOR` floor probe on `(lmi.1 / 2) % 2 == 1`. **That is a unit error.**
34+`crates/ec-av1/src/decode.rs:25945` computes `let (px, py) = (lmi.1 * MI, lmi.0 * MI)`
35+with `MI = 4`, and `lmi` is the libaom `MI_SIZE`-4 grid, so **`lmi.1 == mi_col`**.
36+My probe prints the seed as `mi=(40,58) leaf=(8,4) cpx=116`, and
37+`cpx = (58 * 4) >> 1 = 116` — so `lmi.1` is `58`, libaom's own `mi_col`, not
38+`2 * 58`. The floor `& !1` therefore *does* fire on odd columns, and that lane's
39+probe tested the wrong predicate. Its "refuted" verdict on the anchor survives (I
40+refute it independently, §4b), but its stated reason does not.
41+
42+---
43+
44+## 1. Reproduction, from scratch, by me
45+
46+Source (hand-built y4m; ffmpeg's muxer will not write a `C422` tag):
47+
48+```
49+ffmpeg -v error -f lavfi -i testsrc2=size=320x242:rate=25 -frames:v 16 \
50+ -pix_fmt yuv422p -f rawvideo src/raw -y
51+# header "YUV4MPEG2 W320 H242 F25:1 Ip A1:1 C422\n", then "FRAME\n" + 320*242
52+# + 2*(160*242) bytes per frame
53+```
54+
55+My y4m is sha-identical to the predecessor's, and so is the encode:
56+
57+| artifact | bytes | sha256 |
58+|---|---|---|
59+| `src/testsrc2_320x242.y4m` (mine) | 2 478 215 | `3fa8891bde6f5345…` (first 16; identical to the predecessor's) |
60+| **`R422_320x242.obu` (mine, fresh)** | **20 733** | **`909e58db18fd4b7590501e2cecfbc090cde49eb26c9a42e15b1ef1fc265843d8`** |
61+
62+The recipe is byte-deterministic: my fresh `aomenc` run reproduces the pinned hash
63+exactly, so the reproducer needs no archaeology.
64+
65+### The seed, re-measured on my own BEFORE build
66+
67+`Q_odd320x242.obu`, decode frame 0, `FINAL` dumps, chroma U:
68+
69+| | value |
70+|---|---|
71+| above row y=159 x=116..119 | `202 202 202 202` — **byte-identical both sides** |
72+| left column x=115 y=160..163 | `165 164 163 152` — **byte-identical both sides** |
73+| **ours** | **182** |
74+| **oracle** | **202** |
75+
76+Reproduced independently of either prior report. First bad decode frame / byte,
77+measured with `cmp` on `EC_AV1_FINAL_DUMP` decode-order dumps:
78+
79+| cell | decode frames | first bad decode frame | first bad byte |
80+|---|---|---|---|
81+| `Q_odd320x242` | 17 | **0** | **103156** |
82+| `R422_320x242` (my fresh build) | 17 | **0** | **103156** |
83+| `O_odd322x242` | 17 | 0 | 106388 |
84+| `AB_inter_warp_odd` | 43 | 0 | 110876 |
85+| `S_odd326x242_10b` | 17 | 0 | 214112 |
86+| `R_odd322x240` (control) | 17 | — | — |
87+| `V_tile2x2_odd` (control) | 17 | — | — |
88+
89+### Oracle control
90+
91+The shared `~/.cache/aom-oracle/build/aomdec` is a **stale build**: it carries
92+`EC_DV`'s format string but fires **0** lines and contains neither `EC_DP` nor
93+`EC_PIB`, so the attribution lane's oracle evidence cannot be re-run against it.
94+I built a **private** oracle at `/home/user/.cache/aom-oracle-av1422ctintrabc`
95+(`rm -rf build; cmake -S src -B build -DENABLE_EXAMPLES=1; make -C build -j16
96+aomdec` — the tree's generator emits Unix Makefiles, **not** ninja, despite its
97+own closing hint line saying `ninja`). Its `--rawvideo` output is
98+**byte-identical to the shared oracle binary's** on `Q_odd320x242`,
99+`R422_320x242` **and** `AB_inter_warp_odd`; every number in this report is a real
100+oracle diff, not a rebuild artefact. `EC_DP=1 EC_PIB=1 EC_DV=1` on the private
101+oracle emits 4 837 rung lines on `Q_odd320x242`, so rungs 19/20/21 are live.
102+
103+### Disclosure: I wrote rungs into the SHARED oracle SOURCE tree
104+
105+**`scripts/instrument-aom-oracle.sh` does not take a positional argument.** Its
106+target is `SRC="${AOM_ORACLE_SRC:-$HOME/.cache/aom-oracle/src}"`
107+(`instrument-aom-oracle.sh:81`). I invoked it as
108+`bash scripts/instrument-aom-oracle.sh /home/user/.cache/aom-oracle-av1422ctintrabc/src`,
109+which silently **ignored my path** and instrumented the **shared** tree. That run
110+reported `EC_PIB/EC_DCIN instrumented` and `EC_DP instrumented` — i.e. it added
111+rungs 19/20/21 to `~/.cache/aom-oracle/src/av1/common/reconintra.c` and
112+`~/.cache/aom-oracle/src/av1/decoder/decodeframe.c` at 15:14.
113+
114+**Blast radius, measured:**
115+
116+* The shared oracle **binary is untouched** — `~/.cache/aom-oracle/build/aomdec`
117+ still has mtime `2026-09-30T10:36`, so no live lane running the shared binary is
118+ affected. A rung only takes effect on the next rebuild.
119+* The shared **source** is now in the state the repo's own tooling demands:
120+ re-running the generator against it is a full no-op, and
121+ `scripts/check-aom-oracle-rungs.sh /home/user/.cache/aom-oracle/src`
122+ **exits 0** with every assertion green, including the three new ones
123+ (`rung 19 EC_PIB install sites … 1`, `rung 20 EC_DCIN install sites … 2`,
124+ `rung 21 EC_DP install sites … 1`). So no corruption and no divergence between
125+ tree and generator — the write completed a state that was pending anyway.
126+* I then re-synced my private oracle from the now-instrumented tree, rebuilt, and
127+ re-ran **every** measurement in this report on it: the eight-cell census and the
128+ five regression witnesses (§5, §6) are the numbers from that final binary.
129+
130+---
131+
132+## 2. THE NAMED EXPRESSION — what actually differed
133+
134+**It was not the copy geometry. It was which arm ran.**
135+
136+**libaom**, `av1/decoder/decodeframe.c:1000` and `:1040-1043`:
137+
138+```c
139+ if (!is_inter_block(mbmi)) {
140+ … /* intra: predict_and_recon_intra_block_visit */
141+ } else {
142+ td->predict_inter_block_visit(cm, dcb, bsize); /* <-- UNCONDITIONAL */
143+ // Reconstruction
144+ if (!mbmi->skip_txfm) { /* <-- skip gates ONLY the residual read */
145+```
146+
147+and `av1/common/blockd.h` `is_inter_block`:
148+
149+```c
150+static inline int is_inter_block(const MB_MODE_INFO *mbmi) {
151+ return is_intrabc_block(mbmi) || mbmi->ref_frame[0] > INTRA_FRAME;
152+}
153+```
154+
155+so an INTRABC block takes the `else` arm and **predicts regardless of
156+`skip_txfm`**.
157+
158+**Ours**, `crates/ec-av1/src/decode.rs`, `sub8_leaf_chroma422` — before the fix the
159+arms read `if skip { push_intra(DC_PRED) } else if let Some(dv) = { frame copy }`,
160+so a leaf that is **both** intrabc **and** `skip` predicted intra DC and the frame
161+copy never ran. That is our line, at `decode.rs:26118` (`} else if skip {`) in the
162+current file.
163+
164+**Why the signature is "chroma-only, ~0.5 % of the plane, luma exact":**
165+
166+1. **Luma exact.** The luma arm for the same leaf was already ordered correctly, so
167+ luma is byte-exact on every frame of all four cells — measured, not assumed
168+ (§5: `Y=0` everywhere).
169+2. **Chroma only.** `dec_build_inter_predictor` loops
170+ `for (plane = 0; plane < num_planes; ++plane) { if (plane && !xd->is_chroma_ref) break; … }`
171+ (`decodeframe.c:702`): the intrabc copy runs **only on chroma planes**, and only
172+ for the plane block the leaf owns. No other plane, no other region is touched.
173+3. **~0.5 % of the plane.** The unit is one TX_4x4 chroma unit, i.e.
174+ `4*4 = 16` samples out of `160*242 = 38 720` per chroma plane per frame — and
175+ only the intrabc+skip leaves, 12 calls across all 8 cells (§4e), of which a
176+ handful differ.
177+4. **Parse bit-identical.** `skip_txfm` is a *reconstruction* decision, not a
178+ parse one: `parse_decode_block` reads the var-tx tree only `if (!mbmi->skip_txfm)`
179+ (`decodeframe.c:1244`) but the leaf's `skip`, `use_intrabc` and DV symbols are
180+ read identically either way. Nothing upstream of the copy moves, which is why
181+ the divergence appears as pure pixels and never as a desync.
182+
183+The `182` is not a DC variant on either side. It is **our** DC from an edge pair the
184+oracle never read (`(808 + 644 + 4) / 8`); the oracle's `202` is a bilinear copy of
185+a flat 202 region at DV `(col 0, row -1024)` in 1/8-pel — `av1_predict_intra_block`
186+is never called, so the prior reports' "which DC variant" framing is a category
187+error and is not revived here.
188+
189+---
190+
191+## 3. The copy geometry, line by line, against libaom
192+
193+Traced for the seed's shape — **`BLOCK_8X4` intrabc leaf, `mi_col = 58`,
194+`mi_row = 40`, `ss (1,0)`**, i.e. luma x 232..239, y 160..163.
195+
196+**Which libaom routine runs.** `build_inter_predictors`
197+(`av1/common/reconinter_template.inc:271-284`) dispatches on
198+`is_sub8x8_inter(xd, plane, bsize, is_intrabc_block(mi), build_for_obmc)`, and
199+`is_sub8x8_inter` returns **false** immediately for intrabc
200+(`reconinter_template.inc:85-87`). **So an INTRABC chroma block never reaches
201+`build_inter_predictors_sub8x8` — it goes through `build_inter_predictors_8x8_and_bigger`
202+(`:194-268`) even at 4x4.** That is the single most important structural fact for
203+this shape and it is the opposite of the intra path.
204+
205+**Source origin** — libaom `reconinter_template.inc:218-223`:
206+
207+```c
208+ const int row_start = (block_size_high[bsize] == 4) && ss_y && !build_for_obmc ? -1 : 0;
209+ const int col_start = (block_size_wide[bsize] == 4) && ss_x && !build_for_obmc ? -1 : 0;
210+ const int pre_x = (mi_x + MI_SIZE * col_start) >> ss_x;
211+ const int pre_y = (mi_y + MI_SIZE * row_start) >> ss_y;
212+```
213+
214+`BLOCK_8X4`: `block_size_wide = 8 ≠ 4` ⇒ `col_start = 0`;
215+`block_size_high = 4` but `ss_y = 0` at 4:2:2 ⇒ `row_start = 0`.
216+`mi_x = 58*4 = 232`, `mi_y = 40*4 = 160` ⇒ **`pre_x = 116`, `pre_y = 160`.**
217+
218+Ours, `decode.rs:25954`: `cpx = ((lmi.1 & !1) * MI) >> ss_x = (232) >> 1 = 116`,
219+`cpy = py >> ss_y = 160`. **Identical.**
220+
221+**Per-axis DV scaling** — libaom `av1/common/reconinter.h:343-354`
222+(`clamp_mv_to_umv_border_sb`):
223+
224+```c
225+ MV clamped_mv = { (int16_t)(src_mv->row * (1 << (1 - ss_y))),
226+ (int16_t)(src_mv->col * (1 << (1 - ss_x))) };
227+```
228+
229+then `decodeframe.c:624-638` (the unscaled branch, taken because intrabc uses
230+`cm->sf_identity`, `reconinter_template.inc:227`):
231+
232+```c
233+ int pos_x = inter_pred_params->pix_col << SUBPEL_BITS;
234+ int pos_y = inter_pred_params->pix_row << SUBPEL_BITS;
235+ …
236+ pos_x += mv_q4.col; pos_y += mv_q4.row;
237+```
238+
239+Ours, `decode.rs:26056-26057` (and identically `:26170-26171`, `:26183-26184`):
240+
241+```rust
242+mv_to_q4(cpx, dv.1, ss_x(fctx)), // col axis scaled by ss_x
243+mv_to_q4(cpy, dv.0, ss_y(fctx)), // row axis scaled by ss_y
244+```
245+
246+with `mv_to_q4` (`decode.rs:37595-37598`) = `pos * 16 + mv * (1 << (1 - ss))`.
247+At the seed: `116*16 + 0*1 = 1856` and `160*16 + (-1024)*2 = 512`, which is
248+libaom's `116<<4` and `160<<4 - 2048`. **Identical, per axis, on the right axes.**
249+
250+**Extent** — libaom `dec_build_inter_predictor` (`decodeframe.c:705-707`) passes
251+`xd->plane[plane].width/height` as `bw`/`bh`, which `set_plane_n4`
252+(`av1/decoder/../common/av1_common_int.h:1344-1355`) sets to
253+`AOMMAX((mi_size_wide[bsize] * MI_SIZE) >> ss_x, 4)` and the same for height. For
254+`BLOCK_8X4` at `ss(1,0)`: `(2*4)>>1 = 4` and `(1*4)>>0 = 4` ⇒ **`bw = bh = 4`.**
255+Ours: `predict_with_filter(…, 4, 4, …)` and a 16-sample `ub`/`vb`. **Identical.**
256+
257+**Interpolation** — libaom `init_interp_filter_params` with `is_intrabc` forces
258+bilinear (the EIGHTTAP filter is not allowed for intrabc); ours passes
259+`InterpFilterKind::Bilinear`. **Identical.**
260+
261+---
262+
263+## 4. The four suspects, dispositioned
264+
265+### (a) The DV's chroma scaling per axis — **REFUTED**
266+
267+Ours already scales each axis by its own subsampling (`ss_x` on the column
268+component, `ss_y` on the row component), which is exactly libaom's
269+`src_mv->row * (1 << (1 - ss_y))` / `src_mv->col * (1 << (1 - ss_x))`. Arithmetic
270+shown above is identical term for term at the seed. **No change.**
271+
272+### (b) The source origin's chroma rounding — **REFUTED as a defect, with a reach argument**
273+
274+Our rule is `cpx = ((lmi.1 & !1) * MI) >> ss_x` — floor to an **even** mi column.
275+libaom's rule is `(mi_x + MI_SIZE * col_start) >> ss_x` with `col_start = -1` iff
276+**the luma block is 4 px wide** (`block_size_wide[bsize] == 4`), i.e. floor by
277+**one** mi, and only in that case. So the two agree everywhere except an **even**
278+mi column on a 4-px-wide luma leaf, where ours sits 2 chroma px right of libaom's.
279+That combination is **structurally unreachable** into this function:
280+
281+* `decode_leaf_rect8` (`decode.rs:27074-27080`) sets
282+ `has_chroma = !vert || i == 1` at 4:2:2. The VERT split (`BLOCK_4X8`) therefore
283+ reads chroma on `i == 1` only, whose `lmi.1 = leaf_mi.1 + 1` is **odd** — and
284+ that matches libaom's own `is_chroma_reference` for `BLOCK_4X8` at `ss(1,0)`,
285+ which reduces to `mi_col & 1` (`av1_common_int.h:1454-1461`, with
286+ `!subsampling_y` true and `mi_size_wide = 1`, `mi_size_high = 2`).
287+* `decode_leaf_split4` (`decode.rs:26395-26404`) reads chroma at
288+ `(lmi.1 & 1) == 1` — **odd** — for the `BLOCK_4X4` leaf.
289+* The HORZ (`BLOCK_8X4`) leaves have `lmi.1 = leaf_mi.1`, and an 8x8 group's `mi_col`
290+ is always even, so `& !1` is a no-op and libaom's `col_start` is 0.
291+
292+**Every reachable caller is either an even mi column on an 8-px-wide leaf (floor
293+inert) or an odd mi column on a 4-px-wide leaf (both rules floor by one mi).**
294+Measured: 12/12 reached calls have `leaf=(8,4)` at an **even** `mi_col` (§4e).
295+**No change** — and this lane does **not** re-open it.
296+
297+### (c) The plane-block extent for the sub-8 leaf — **REFUTED for the reached shape; a NAMED LATENT GAP for `BLOCK_4X8`**
298+
299+For `BLOCK_8X4` the extents match exactly (§3). For a **`BLOCK_4X8`** leaf at
300+`ss(1,0)`, libaom computes `plane.width = AOMMAX((1*4)>>1, 4) = 4` and
301+`plane.height = (2*4)>>0 = 8`, and `dec_build_inter_predictor` hands **that** to
302+`build_inter_predictors_8x8_and_bigger` — a **4x8** chroma prediction — while
303+`sub8_leaf_chroma422` copies an unconditional **4x4**. That is a real geometric
304+disagreement. Its reach on the corpus is **zero** (§4e). **I did not patch it**:
305+changing an unexercised arm on reasoning alone is precisely what broke
306+`R_odd322x240` and `V_tile2x2_odd` in the intermediate state recorded in
307+`lanes/av1422ctattr` §7 (4806 and 0 samples respectively). Handed over as §7 with
308+its reach census.
309+
310+### (d) Our copy reading a neighbour unit's source — **REFUTED**
311+
312+The copy reads exactly one 4x4 window at `cpx + mv*scale`, and §3 shows that window
313+equals libaom's `pre_x/pre_y + mv_q4` block for every reached call. A window or
314+offset rule that reached a neighbour unit would move whole units by multiples of
315+the anchor; the BEFORE census shows the wrong region is `chroma cols 116-139,
316+rows 160-201` — 24 of 160 columns — which is exactly the set of the 12 intrabc+skip
317+leaf units' footprints on `Q_odd320x242`, not a shifted-window smear. **No change.**
318+
319+### (e) Reach census for the whole arm (temporary probe, removed)
320+
321+`EC_422IBCPROBE=1` printing `mi`, `leaf_shape`, `cpx`, `cpy`, `dv`, `ss` at
322+`decode.rs`'s `SKIPPED_INTRABC_DV_COPY_HITS` arm, over all 8 cells:
323+
324+| cell | hits | shapes |
325+|---|---|---|
326+| `Q_odd320x242` | 4 | all `leaf=(8,4)`, all `mi_col` even, `cpx ∈ {116,128,132}` |
327+| `R422_320x242` | 2 | `leaf=(8,4)`, `mi_col` even |
328+| `O_odd322x242` | 2 | `leaf=(8,4)`, `mi_col` even; one `dv=(-1104,-216)` (non-vertical) |
329+| `AB_inter_warp_odd` | 1 | `leaf=(8,4)`, `mi_col` even |
330+| `S_odd326x242_10b` | 2 | `leaf=(8,4)`, `mi_col` even (10-bit) |
331+| `R_odd322x240` | 1 | `leaf=(8,4)`, `mi_col` even, `dv=(-1096,-216)` |
332+| `V_tile2x2_odd` | 0 | — |
333+| **total** | **12** | **12/12 `leaf=(8,4)`; 12/12 even `mi_col`; 0 `BLOCK_4X8`; 0 `BLOCK_4X4`; 2 non-vertical DVs, so the column-axis scaling is exercised too** |
334+
335+**The probe has been removed from the tree**; `git diff crates/ec-av1/src/decode.rs`
336+is empty.
337+
338+---
339+
340+## 5. Per-cell, per-plane, per-decode-frame measurement
341+
342+`FINAL` (post-filter) decode-order dumps from both sides, wrong-SAMPLE counts
343+(`planecmp.py`). **BEFORE** = my worktree with the copy arm made unreachable
344+(`intrabc_dv.filter(|_| skip && false)`); **AFTER** = my worktree at tip.
345+
346+| cell | decode frames | before Y/U/V | after total |
347+|---|---|---|---|
348+| `Q_odd320x242` | 17 | 0 / **9 603** / **14 456** | **0 (EXACT)** |
349+| `O_odd322x242` | 17 | 0 / **985** / **722** | **0 (EXACT)** |
350+| `AB_inter_warp_odd` | 43 | 0 / **3 705** / **4 366** | **0 (EXACT)** |
351+| `S_odd326x242_10b` | 17 | 0 / **301** / **751** | **0 (EXACT)** |
352+| `R422_320x242` (my fresh reproducer) | 17 | 0 / **6 337** / **8 398** | **0 (EXACT)** |
353+| `MYREPRO` (attribution lane's copy) | 17 | 0 / **6 337** / **8 398** | **0 (EXACT)** |
354+| `R_odd322x240` (control) | 17 | 0 / 0 / 0 | **0 (EXACT, held)** |
355+| `V_tile2x2_odd` (control) | 17 | 0 / 0 / 0 | **0 (EXACT, held)** |
356+
357+Before, per decode frame 0..9, for the record:
358+
359+```
360+R422_320x242 0/369/376 0/165/258 0/358/445 0/400/500 0/344/437 0/418/503 0/459/608 0/416/570 0/386/516 0/371/517
361+Q_odd320x242 0/422/379 0/313/758 0/511/560 0/522/851 0/511/636 0/619/745 0/610/992 0/538/664 0/719/1191 0/606/981
362+O_odd322x242 0/32/16 0/59/36 0/59/32 0/69/40 0/69/32 0/51/41 0/54/35 0/55/40 0/73/46 0/60/54
363+AB_inter… 0/32/32 0/61/66 0/64/78 0/112/114 0/64/64 0/62/64 0/89/85 0/116/117 0/123/121 0/111/146
364+S_odd…10b 0/17/32 0/20/55 0/3/25 0/27/54 0/43/68 0/41/78 0/25/43 0/5/42 0/18/39 0/5/34
365+```
366+
367+After: **every plane of every decode frame of all eight cells is byte-identical**,
368+not merely low-count. **Luma is byte-exact on every frame of all four failing
369+cells** — the chroma-only signature, confirmed.
370+
371+### Oracle-flip control, on BOTH states
372+
373+One bit flipped in the oracle's own frame-0 U plane (`y=60 x=70`), same comparator:
374+
375+| state | unflipped | flipped | delta | landed in |
376+|---|---|---|---|---|
377+| BEFORE (`Q_odd320x242`) | U 9 603 | U 9 604 | **+1** | U, frame 0 |
378+| AFTER (`Q_odd320x242`) | **0** | **1** | **+1** | U, frame 0 |
379+
380+The comparator bites on the new state: exactly one flipped bit produces exactly one
381+extra wrong sample, in the plane the flip landed in. **The zeros in §5 are real
382+zeros.**
383+
384+---
385+
386+## 6. Regression witnesses — and why they are a control, not a coincidence
387+
388+All five byte-exact against the private oracle, **on both states**:
389+
390+| witness | sha256 (first 16) | geometry | BEFORE | AFTER |
391+|---|---|---|---|---|
392+| `W_intrabc` | `0aad0d6fdd236557` | 320x240, intrabc-heavy | **17/17 exact** | **17/17 exact** |
393+| `X_intrabc_tiled` | `e7c0c60af1a61531` | 320x240, intrabc-heavy, tiled | **17/17 exact** | **17/17 exact** |
394+| `Y_intrabc_10b` | `ce84d7cb4cfadf3f` | 320x240, **10-bit** | **17/17 exact** | **17/17 exact** |
395+| `ll422_allintra` | `d56f6b655743897a` | 320x240, 4:2:2 lossless all-intra | **1/1 exact** | **1/1 exact** |
396+| `ll422_noibc` | `c8559205ecf398fa` | 320x240, 4:2:2 lossless, no IBC | **16/16 exact** | **16/16 exact** |
397+
398+`W_intrabc` / `X_intrabc_tiled` / `Y_intrabc_10b` are the strong control and they
399+hold. But **state this honestly: they are exact in the BEFORE state too, so they do
400+not discriminate this arm.** They prove the change does not *disturb* intrabc-heavy
401+material — which is what the brief asked of them — and they are not evidence that
402+they exercise the fixed arm. `W`/`X`/`Y` are 4:2:0/4:4:4 and never enter
403+`sub8_leaf_chroma422`, which is 4:2:2-only by construction.
404+
405+`ll422_allintra` and `ll422_noibc` are **not committed** fixtures (the header
406+refusal makes 4:2:2 unreachable from a committed test, §8); I used the pinned
407+copies under `/home/user/.cache/cells/av1422lpf/probe/`, whose hashes are listed
408+above so the claim is checkable.
409+
410+---
411+
412+## 7. Handover — the one unrepaired arm of this class, with its reach census
413+
414+**`sub8_leaf_chroma422`'s copy is 4x4; libaom's chroma plane block for a
415+`BLOCK_4X8` leaf at `ss(1,0)` is 4x8.**
416+
417+* libaom: `set_plane_n4` (`av1_common_int.h:1344-1355`) →
418+ `width = AOMMAX((1*4)>>1, 4) = 4`, `height = (2*4)>>0 = 8`;
419+ `dec_build_inter_predictor` (`decodeframe.c:705-707`) passes those as
420+ `bw`/`bh` into `build_inter_predictors_8x8_and_bigger`.
421+* ours: `decode.rs:26051-26063` and `:26165-26191` are unconditional 4x4, with
422+ 16-sample `ub`/`vb`.
423+* shape is reachable in principle: `is_chroma_reference(BLOCK_4X8, ss(1,0))`
424+ reduces to `mi_col & 1`, and `decode_leaf_rect8`'s `has_chroma = !vert || i == 1`
425+ routes the odd-column `BLOCK_4X8` leaf into `sub8_leaf_chroma422`.
426+* **reach on the corpus: 0 of 12 calls, across all eight cells** (§4e).
427+
428+It needs a **witness**, not a patch. The recipe to build one: the §1 `aomenc` R-arm
429+line (`--cpu-used 0 --lag-in-frames 25 --auto-alt-ref=1 --enable-global-motion=1
430+--cq-level=24 --kf-min-dist=0 --kf-max-dist=999999`) is what makes the partition
431+search land on intrabc sub-8 leaves at all (`lanes/av1422ctrigger` §2e); feed it
432+content whose 8x8 groups split **VERT** at an odd `mi_col` and gate on a
433+counter fired only when the `leaf_shape == (4, 8)` branch of this arm runs.
434+
435+Also carried forward from `lanes/av1422ctattr` §10.1, which I did **not** re-open
436+and did **not** re-measure: `decode_leaf_split4`'s 4-leaf group tail
437+(`decode.rs:26732-26790`) still tests `leaf_skips[3]` **before** its `last_intrabc`
438+copy arm. For 4:2:2 that tail is not reached (`chroma_422` returns early at
439+`decode.rs:26710-26717`), so it cannot carry this defect; it remains a 4:2:0/4:4:4
440+question and needs its own witness.
441+
442+And the correction from §0, which future lanes should not re-derive: **libaom's
443+`MI_SIZE` is 4** and so is ec-av1's, so `lmi.1 == mi_col` exactly. Any ladder read
444+on an 8-px grid is wrong by 2x and will manufacture phantom "uncovered region"
445+findings.
446+
447+---
448+
449+## 8. Gate-ability: NO. Stated plainly, not substituted.
450+
451+4:2:2 is refused at the **sequence header** —
452+`crates/ec-av1/src/stream.rs:1803`, `if seq.subsampling_x != seq.subsampling_y`.
453+**No committed fixture and no committed test can reach this code.** Every
454+measurement in §1, §4 and §5 required patching that one guard out in a scratch
455+build; it is **restored** and verified restored (`stream.rs:1803` reads
456+`if seq.subsampling_x != seq.subsampling_y {`), and `git status --porcelain` in the
457+lane tree is **empty**.
458+
459+The evidence offered instead is the per-plane byte-exactness census of §5 over
460+eight cells and 192 decode frames, plus the flip control that proves the comparator
461+counts, plus the mutation in §5's BEFORE column that proves the comparator and the
462+fix are not both vacuous. **I am not offering a source-scan substitute, and I am
463+not committing the bypass.**
464+
465+---
466+
467+## 9. Regression
468+
469+`cargo test --release -p ec-av1 --lib -- 420 422 444 lossless warp intra intrabc
470+--skip bitrate_target_lands_within_5_percent_over_48_frames` on this lane tree at
471+`1686dc8a`, with the **refusal guard restored and no source change**,
472+`CARGO_TARGET_DIR=/home/user/.cache/tgt/av1422ctintrabc`,
473+`EC_AV1_AOMDEC=/home/user/.cache/aom-oracle/build/aomdec`, `EC_NOMEMGUARD=1`.
474+`/tmp` was checked first (12 G of 16 G free, `/tmp/ec-av1-*` cleared) so no gate
475+can fail with `Os { code: 122, kind: QuotaExceeded }`.
476+
477+```
478+test result: ok. 181 passed; 0 failed; 2 ignored; 0 measured; 619 filtered out; finished in 253.40s
479+```
480+
481+**`181 passed / 0 failed / 2 ignored`** — the same pass count
482+`lanes/av1422ctattr` §8 and `lanes/av1422ctrigger` §8 report, so nothing moved. The
483+filtered-out count is 619 rather than their 618 because my tip carries one further
484+filtered test; the pass count is identical. Green on the first attempt — no
485+red-then-green sequence to explain, and `/tmp` was at 12 G of 16 G free with
486+`/tmp/ec-av1-*` cleared, so no failure is a `QuotaExceeded` artefact.
487+
488+---
489+
490+## 10. Handover hygiene
491+
492+* Lane tree `/home/user/.cache/wt/av1422ctintrabc`, branch
493+ `lane-av1422ctintrabc`: **clean apart from this report.** `git status
494+ `--porcelain` shows only this untracked report; the reach probe, the BEFORE
495+ mutation and the 4:2:2 bypass are **all reverted** and `git diff
496+ crates/ec-av1/src/decode.rs` is empty.
497+* Primary checkout `/home/user/Documents/Code/Rust/edith_codecs`: `git status
498+ --porcelain` **empty**. No relative-path leak; all edits used absolute paths
499+ inside the worktree.
500+* No push, no merge, no rustfmt. The 4:2:2 sequence-header bypass is **not**
501+ committed anywhere.
502+* The shared oracle **binary** was not rebuilt or overwritten (mtime still
503+ `10:36`). The shared oracle **source** WAS written to, by my mistake, at 15:14
504+ — full disclosure and measured blast radius in §1's *Disclosure* subsection;
505+ it now passes `check-aom-oracle-rungs.sh` with every assertion green and a
506+ generator re-run is a no-op, i.e. tree and generator agree. My private oracle
507+ lives at `/home/user/.cache/aom-oracle-av1422ctintrabc` (outside the repo);
508+ its `aomdec` output is byte-identical to the shared oracle binary's on three
509+ cells, and it is the binary every number in this report was measured on.
510+* Measurement scripts, the reproducer and the dumps live outside the repo, in
511+ `/home/user/.cache/lane-av1422ctintrabc/`.
\ No newline at end of file\ No newline at end of file