forge
Explore
Log in

Don't you dare go Hollow

Merge lane-av1420tall: site 1's 4:2:0 half is NOT POSSIBLE -- the lpf claim is refuted on its ARITHMETIC, not merely on its unpinned fixture

Browse files at this commit

eb9de96afa60e7bdcae27eea2c9a5eae2b475552Ahmet Kaan GümüşParent: ba086c6e2b8d36
The seven-site 4:2:2 lossless inter chroma panic family (3698787d, lane-av1422lpf) claimed its first site
was not 4:2:2-specific. An earlier pass showed the cited cell was unpinned and did not reproduce; this
lane settles the question exhaustively over the CALLER CONTRACT and answers it the other way.

INSTRUMENT WITH TEETH FIRST: an env-gated call at the top of read_inter_chroma_lossless reading ONLY
caller arguments (valid at any code state), computing writes against libaom's edge clip
(writes_units = reg_w >= 4 && reg_h >= 4), max_addr = (org_y + reg_h - 1) * stride + org_x + reg_w - 1,
need = max_addr + 1, alloc = u_len if non-empty else the pre-fix stride * stride, and keyed by CALL SITE
via #[track_caller] + Location::caller() -- without the call-site key, blk = 64x64 stride = 64 is
ambiguous between the side <= 64 site and the 128-root mu-chunk site. The teeth are established, not
assumed: all four 4:2:2 cells fire on their FIRST call and the pre-fix panic follows immediately
(ll422_noibc site=decode.rs:43666 ss=10 blk=32x64 stride=32 need=2048 alloc=1024 -> 'range end index 1028
out of range for slice of length 1024'; W/X/Y blk=4x16 stride=4 need=64 alloc=16). Every firing key is
ss=10 with a 2:1 plane block, all at the ONE side <= 64 lossless arm.

THE ZERO, over every pinned 4:2:0 and 4:4:4 cell at 18643bb5: ll420_a 44 calls / 6 keys, ll420_b 44 / 6,
ll420_c 43 / 7, ll420_d 86 / 4, ll444_a 145 / 10, ll444_b 153 / 11, ll444_c 1000 / 17 -- ZERO overruns,
exit 0 on every one. And the new committed control, the cell built to have the shape the arithmetic
wants, fixtures/420_lossless_tallinter_8x16.obu (52,138 B): 4 calls, 2 distinct keys, ZERO overruns.

So the original claim fails on its ARITHMETIC: at 4:2:0 a 2:1-tall plane block reaching these sites is
not merely absent from the corpus, it is not constructible through this caller contract. The instrument
and the 4:2:2 bypass live only uncommitted in a throwaway pre-fix worktree, as they must.
crates/ec-av1/fixtures/420_lossless_tallinter_8x16.obuadded+0 -0

Binary file changed

lanes/av1420tall.report.mdadded+349 -0
@@ -0,0 +1,349 @@
1+# lane-av1420tall — site 1's 4:2:0 half: NOT REACHABLE, and not by corpus luck
2+
3+Worktree `~/.cache/wt/av1420tall` (branch `lane-av1420tall`, base `bf5bbaec`),
4+instrument worktree `~/.cache/wt/av1420tall-pre` (branch `lane-av1420tall-pre`,
5+base **`18643bb5`** = the PRE-FIX state; `git merge-base --is-ancestor 18643bb5
6+6d816368` → **false**, and `18643bb5` is the FIRST PARENT of the fix merge
7+`3698787d`, so the pre-fix code is the tree the arithmetic must be read
8+against). **The instrument is NOT committed**; it lives only in the `-pre`
9+worktree, which is never pushed.
10+
11+## 0. Verdict
12+
13+| | |
14+|---|---|
15+| instrument fires on a 4:2:2 cell | **YES** — 4/4 cells, `totcalls=1 totover=1` each, and the panic follows |
16+| instrument fires on any 4:2:0 or 4:4:4 cell | **NO** — 0 overruns over **1475 calls** across 7 controls + the new cell |
17+| 2:1-tall luma inter block coded at 4:2:0 | **YES** — `side=32 w=16 h=32`, `side=16 w=8 h=16`, `side=32 w=8 h=32` |
18+| 2:1-tall CHROMA PLANE block at 4:2:0 | **YES** — `ss=11 blk=8x16 stride=16` on the new pinned cell |
19+| site 1 reachable at 4:2:0 | **NO — and it is not reachable IN THE FORMAT, not merely absent from the corpus** |
20+| the lpf report's "not 4:2:2-specific" claim | **REFUTED on its arithmetic**, not just on its unpinned fixture |
21+
22+The decisive line is the last one. The lpf report argued *"a 64x128 4:2:0
23+block's chroma plane block is 32x64, and `stride * stride` allocates 1024 where
24+the walk addresses 2048."* The **shape** half of that is right and is now
25+measured (a 4:2:0 lossless cell really does code 2:1-tall plane blocks). The
26+**stride** half is wrong: at ss (1,1) the site passes the ENCLOSING SQUARE, so
27+`stride == blk_h` and the walk addresses exactly `stride * stride - 1`. The
28+4:2:2 case differs because `chroma_stride` there is `write_chroma_w` — the
29+NARROW axis — which is the whole reason `blk_h > stride` is possible at all.
30+
31+## 1. The instrument
32+
33+`read_inter_chroma_lossless` (`decode.rs`, pre-fix tree) gains one
34+env-gated call at the top of the body, before any read. The predicate reads
35+ONLY caller arguments, so it is valid at any decode state — it does not depend
36+on the fix being absent, and the same predicate is meaningful post-fix.
37+
38+```rust
39+// lane-av1420tall (INSTRUMENT, not committed)
40+if crate::envflags::env_flag!("EC_AV1_TALLBLOCK") {
41+ tall_block_probe(ss_x(fctx), ss_y(fctx), blk_w, blk_h, stride,
42+ (org_x, org_y), (reg_w, reg_h), u_out.len(), v_out.len(),
43+ std::panic::Location::caller());
44+}
45+```
46+
47+`tall_block_probe` computes, from the caller's own arguments:
48+
49+```
50+writes_units = reg_w >= 4 && reg_h >= 4 // libaom's edge clip
51+max_addr = (org_y + reg_h - 1) * stride + org_x + reg_w - 1
52+need = max_addr + 1 // last write is dst[last..last+4]
53+alloc = if u_len == 0 { stride * stride } else { u_len } // the PRE-FIX sizing
54+over = writes_units && need > alloc
55+```
56+
57+`#[track_caller]` names the presenting CALL SITE (`decode.rs:43666` etc.), so
58+a key identifies not just a shape but which of the nine call sites produced it
59+— without that, `blk=64x64 stride=64` is ambiguous between the `side<=64`
60+site and the 128-root mu-chunk site.
61+
62+**One arithmetic correction, recorded because it nearly produced a false
63+positive.** The first version compared `max_addr + 4 > alloc`, i.e. treated
64+`max_addr` as the last *touched* index. It is the last *touched index + 1*;
65+`max_addr + 4` over-reports by 3 and fired **1969 times on `ll420_a`**, all of
66+them `blk=32x32 stride=32 maxaddr=1023 alloc=1024` — i.e. pure noise on a
67+perfectly square block. Fixed to `need = max_addr + 1`; the 4:2:0 corpus went
68+to zero and the 4:2:2 tooth survived. This is the `partial-fix-revert-discipline`
69+class in a new costume: an off-by-N in the *instrument* reads exactly like an
70+over-broad fix.
71+
72+### The instrument's tooth (required before any zero is trusted)
73+
74+Every 4:2:2 cell fires, once, immediately before the pre-fix panic:
75+
76+| cell | exit | `totcalls` | `totover` | firing key |
77+|---|---|---|---|---|
78+| `probe/ll422_noibc.obu` | 101 | 1 | **1** | `site=decode.rs:43666 ss=10 blk=32x64 stride=32 maxaddr=2047 need=2048 alloc=1024` |
79+| `W_intrabc.obu` | 101 | 1 | **1** | `site=decode.rs:43666 ss=10 blk=4x16 stride=4 maxaddr=63 need=64 alloc=16` |
80+| `X_intrabc_tiled.obu` | 101 | 1 | **1** | `ss=10 blk=4x16 stride=4 maxaddr=63 need=64 alloc=16` |
81+| `Y_intrabc_10b.obu` | 101 | 1 | **1** | `ss=10 blk=4x16 stride=4 maxaddr=63 need=64 alloc=16` |
82+
83+and the panic is the pre-fix one, on the line the instrument just reported:
84+`panicked at crates/ec-av1/src/decode.rs:37701: range end index 1028 out of
85+range for slice of length 1024` (`ll422_noibc`) — `need 2048` truncating to
86+`1028` because the walk reaches `(oy+row)*stride + ox` one row at a time.
87+
88+**All 4:2:2 firing is at ONE call site (`decode.rs:43666`, the `side <= 64`
89+lossless arm), and every firing key is `ss=10` (4:2:2) with a 2:1 plane
90+block.** The instrument is not dead and the zeros below are not vacuous.
91+
92+(4:2:2 is reached with the standard patch-run-restore `EC_AV1_ALLOW_422_PROBE`
93+bypass on `stream.rs`'s `ss_x != ss_y` refusal. It is reverted in the `-pre`
94+worktree's committed state; nothing 4:2:2-related is lifted anywhere.)
95+
96+## 2. The per-cell table at `18643bb5`
97+
98+`cargo run --release --example decode_probe` under
99+`EC_AV1_TALLBLOCK=1` on the pre-fix tree.
100+
101+| cell | chroma | exit | distinct keys | total calls | **overruns** |
102+|---|---|---|---|---|---|
103+| `regress_420/ll420_a.obu` | 4:2:0 | 0 | 6 | 44 | **0** |
104+| `regress_420/ll420_b.obu` | 4:2:0 | 0 | 6 | 44 | **0** |
105+| `regress_420/ll420_c.obu` | 4:2:0 | 0 | 7 | 43 | **0** |
106+| `regress_420/ll420_d.obu` | 4:2:0 | 0 | 4 | 86 | **0** |
107+| `regress_444/ll444_a.obu` | 4:4:4 | 0 | 10 | 145 | **0** |
108+| `regress_444/ll444_b.obu` | 4:4:4 | 0 | 11 | 153 | **0** |
109+| `regress_444/ll444_c.obu` | 4:4:4 | 0 | 17 | 1000 | **0** |
110+| `fixtures/420_lossless_tallinter_8x16.obu` (new) | 4:2:0 | 0 | 2 | 4 | **0** |
111+| `probe/ll422_noibc.obu` | 4:2:2 | 101 | 1 | 1 | **1** |
112+| `W_intrabc.obu` | 4:2:2 | 101 | 1 | 1 | **1** |
113+| `X_intrabc_tiled.obu` | 4:2:2 | 101 | 1 | 1 | **1** |
114+| `Y_intrabc_10b.obu` | 4:2:2 | 101 | 1 | 1 | **1** |
115+
116+**1475 calls at 4:2:0/4:4:4, 0 overruns. 4 calls at 4:2:2, 4 overruns.**
117+
118+The three `ll420_*`/`ll444_*` controls are the same unpinned-by-me cells the
119+lpf report used, so the "the zero is not a dead instrument" control is
120+like-for-like.
121+
122+## 3. The cell: a 4:2:0 lossless stream that DOES code 2:1-tall luma inter
123+
124+This is the deliverable the ticket asked for, and it was **not** in the corpus.
125+The blocker was that `--kf-max-dist=9999` (the recipe family the prior lanes
126+used) makes an all-intra stream, so no inter block exists at all; the first
127+~10 encodes I made were all-intra and correctly reported zero. Two more things
128+had to be fixed before the shape appeared:
129+
130+1. **real inter frames** — `--kf-max-dist=3` and motion-rich content, and
131+2. **chroma with residual** — a flat-chroma block codes `skip`, and a `skip`
132+ block never reaches `read_inter_chroma_lossless` at all, so it reports
133+ zero for a reason that has nothing to do with the extent. The `TALLLUMA`
134+ companion counter (`census_inter_block_shape`, `h > w`) is what exposed
135+ this: a 4:2:0 cell was coding `side=32 w=16 h=32` while the walk census
136+ showed only `8x8` — the tall block was being skipped.
137+
138+### Pinned cell
139+
140+`crates/ec-av1/fixtures/420_lossless_tallinter_8x16.obu`
141+
142+| | |
143+|---|---|
144+| sha256 | `76513799683e9b1b1bcd9c2d16ee7cfbc075a3d5e44a49058ec2b9e05d7c9c4e` |
145+| size | 52 138 B |
146+| encoder | `~/.cache/aom-oracle/build/aomenc` (durable oracle) |
147+| source | `cnoise.y4m`, 64x64, 24 frames, `yuv420p`, sha256 `946d7679d7890a8700b1fb736bf9264597b3dffbd3e42d90f3fb48653f6da430` |
148+
149+Source (ffmpeg, reproducible — re-running it yields a byte-identical y4m):
150+
151+```
152+ffmpeg -y -f lavfi -i "nullsrc=s=32x64:r=1:d=24" -f lavfi -i "nullsrc=s=32x64:r=1:d=24" \
153+ -filter_complex "[0:v]geq=lum='60+40*mod(X*3+T*2\,64)':cb='40+180*abs(sin(X*0.7+T*0.9)*cos(Y*0.5-T*1.3))':cr='200-150*abs(cos(X*0.6-T*0.7)*sin(Y*0.8+T*1.1))',format=yuv420p[a];\
154+ [1:v]geq=lum='200-40*mod(X*3-T*2\,64)':cb='210-170*abs(sin(X*0.8+T*0.6)*cos(Y*0.4+T*1.7))':cr='30+190*abs(cos(X*0.5+T*0.8)*sin(Y*0.7-T*0.9))',format=yuv420p[b];\
155+ [a][b]hstack=inputs=2,format=yuv420p" -frames:v 24 cnoise.y4m
156+```
157+
158+The two halves drift in OPPOSITE horizontal directions, which is what makes a
159+tall (`w < h`) partition the rate-distortion optimum rather than a wide one;
160+the `cb`/`cr` expressions are high-frequency in both axes so the chroma
161+residual is non-trivial and the blocks do not code `skip`.
162+
163+Encode (reproduces the pinned sha256 byte-for-byte):
164+
165+```
166+aomenc --codec=av1 --obu -o out.obu --passes=1 --end-usage=q --cq-level=0 \
167+ --cpu-used=1 --threads=1 --row-mt=0 --lossless=1 --lag-in-frames=0 \
168+ --kf-max-dist=3 --min-partition-size=16 --max-partition-size=64 --sb-size=64 \
169+ --enable-rect-partitions=1 cnoise.y4m
170+```
171+
172+`--enable-rect-partitions=1` is load-bearing: at `=0` the same source and
173+flags code no tall block at all (`TALLLUMA` = 0), because the rect codebooks
174+that serve a 1:2 partition are off. That is the `arrival-not-intent` census
175+rule from `skill://ec-av1-aomenc-oracle-gates` — the flag is not evidence, the
176+`TALLLUMA` count is.
177+
178+### What the cell measures
179+
180+`TALLLUMA` (2:1-tall LUMA inter blocks the stream really codes, from
181+`census_inter_block_shape(side, write_w, write_h)` with `h > w`):
182+
183+```
184+TALLLUMA side=32 w=16 h=32 x12 <- the 2:1-tall luma inter block
185+```
186+
187+`TALLKEY` (the walk census, pre-fix tree, `18643bb5`):
188+
189+```
190+TALLKEY site=decode.rs:43666 ss=11 blk=8x16 stride=16 org=0,0 reg=8x16 \
191+ keycalls=1 keyover=0 totcalls=4 totover=0 maxaddr=247 alloc=256
192+TALLKEY site=decode.rs:43666 ss=11 blk=8x8 stride=8 org=0,0 reg=8x8 \
193+ keycalls=1 keyover=0 totcalls=4 totover=0 maxaddr=63 alloc=64
194+```
195+
196+**This is the answer in one line.** A 4:2:0 lossless inter block whose luma
197+footprint is 2:1-tall presents the walk a chroma plane block of
198+`8x16` with **`stride = 16`** — the square — so `maxaddr = 247` against
199+`alloc = 256`: the walk addresses the last element of the square and not one
200+past it. `blk_h (16) == stride (16)`, so the ticket's `blk_h > stride`
201+predicate is **false by exactly the margin it needs**.
202+
203+Sibling encodes from the same source with `--min-partition-size=8` code
204+`side=16 w=8 h=16` and `side=32 w=8 h=32` as well — more 2:1-tall luma inter
205+blocks, all zero (`sw8/c_0_8_1.obu`, sha256
206+`2f1baf19673b30573c1036c957c82929fa10bc6ae32498be79f116f8a5ff71d9`).
207+
208+## 4. Why this is "not possible in the format", not "not in the corpus"
209+
210+The corpus zero is a fact. The verdict needs the arithmetic, and the
211+arithmetic is exhaustive over the caller's whole contract — not a sample.
212+
213+Every one of the nine call sites passes `stride` as **an enclosing square of
214+the block's own chroma plane block**, except the 4:2:2 branch. Exhaustive
215+enumeration (`side` ∈ {8,16,32,64,128}, every `(write_w, write_h)` in
216+`1..=side` on both axes, i.e. every shape the caller can present):
217+
218+| site | `stride` argument | 4:2:0 overruns over the whole domain | 4:4:4 | 4:2:2 |
219+|---|---|---|---|---|
220+| `43666` / `41870` (`side <= 64` lossless) | `chroma_stride` | **0** | **0** | many |
221+| `41653` / `43440` (128-root mu chunk) | `chroma_side` | **0** | **0** | 0 |
222+| `14471` / `14933` / `18237` (rect/128 rect) | `cside = max(cw, ch)` | **0** | **0** | 0 |
223+| `37763` (`leaf8_inter_chroma_lossless`) | literal `8`, `blk` `8x8` | **0** | **0** | 0 |
224+| `47992` (sub-8 rect) | literal `SIDE = 8` | n/a | **0** | 0 |
225+
226+The 4:2:0 row is the whole argument, and it is one line of arithmetic. At
227+ss (1,1):
228+
229+```
230+chroma_side = (side >> 1).max(side >> 1) = side / 2
231+chroma_stride = chroma_side (the `else` arm of the chroma_422 test)
232+write_chroma = (write_w >> 1, write_h >> 1)
233+```
234+
235+so `stride = side/2` and `blk_h = write_h/2 <= side/2 = stride`, for **every**
236+`write_h <= side` the caller may pass. `blk_h > stride` requires
237+`write_h > side`, which the caller contract forbids (`write_w`/`write_h` are
238+documented at `decode.rs:40070` as "the strip's own true width/height", always
239+a subset of the square `side`). At 4:4:4 the same identity gives
240+`stride = side` and `blk_h = write_h <= side`. The bound is therefore not
241+statistical: it is the definition of the argument the site is handed.
242+
243+The 128-root mu-chunk site is a second, independent instance of the same
244+identity, and its `org` offset makes it the only site where the *offset*
245+rather than the shape could overrun. Enumerated over all chunk origins:
246+
247+| chroma | `chroma_side` (stride) | chunk | max `maxaddr` | alloc | overruns |
248+|---|---|---|---|---|---|
249+| 4:2:0 | 64 | 32x32, 2x2 grid | 4095 | 4096 | **0** (fits to the last element) |
250+| 4:4:4 | 128 | 64x64, 2x2 grid | 16383 | 16384 | **0** |
251+| 4:2:2 | 128 | 32x64, 4x2 grid | 16319 | 16384 | 0 |
252+
253+**4:2:2 is the only format where `stride` is not the enclosing square**, and
254+the reason is one `if` in the source (`decode.rs:40161`, pre-fix numbering):
255+
256+```rust
257+let chroma_422 = ss_x(fctx) == 1 && ss_y(fctx) == 0;
258+let (chroma_stride, chroma_buf_h) = if chroma_422 {
259+ (write_chroma_w, write_chroma_h) // <-- the NARROW axis
260+} else {
261+ (chroma_side, chroma_side) // <-- the square: 4:2:0 and 4:4:4
262+};
263+```
264+
265+At 4:2:2 `chroma_stride` becomes `write_chroma_w = write_w/2` while
266+`blk_h = write_h/2`, so `blk_h > stride` becomes reachable the moment
267+`write_h > write_w` — which is exactly the `32x64` and `4x16` keys measured
268+above, and exactly why every firing key is `ss=10` with a 2:1 plane block. The
269+4:2:2-only-ness is not an accident of the corpus; it is one boolean in one
270+`if`.
271+
272+### Reconciling with the lpf report and the refutation pass
273+
274+* The **lpf report** (`lanes/av1422lpf.report.md` §1.1) claimed site 1 is not
275+ 4:2:2-specific, from a 4:2:0 panic on an unpinned `ll420_a.obu`. The
276+ refutation pass (`lanes/refute-av1-w3a.report.md` §1.1) could not reproduce
277+ it and called the cell unpinned.
278+* **Both are now settled, and neither claim survives as stated.** The cell
279+ does not reproduce because the arithmetic cannot produce it at 4:2:0 — the
280+ lpf report's "1028 out of range for slice of length 1024" shape is the
281+ *4:2:2* `chroma_stride` bug, and its `ll420_a` was almost certainly a 4:2:2
282+ stream (the same class of mistake the report itself flags two paragraphs
283+ later, about `src_mandel_320x240.y4m` carrying `C422`).
284+* The lpf report's *diagnosis* of the 4:2:2 mechanism is correct and is what
285+ this lane's instrument confirms; its *generality claim* is refuted, with the
286+ refutation resting on an exhaustive source argument plus a new pinned cell
287+ rather than on the absence of a panic.
288+
289+## 5. Attempted settings (so the zero is auditable)
290+
291+Roughly 90 encodes across these axes, all measured:
292+
293+| axis | values tried |
294+|---|---|
295+| geometry | 32x32, 32x64, 64x64, 64x128, 128x128, 128x256, 256x128 frames |
296+| `--sb-size` | 16, 32, 64, 128 |
297+| `--min-partition-size` | 4, 8, 16, 32, 64, 128 |
298+| `--max-partition-size` | 32, 64, 128 |
299+| `--enable-rect-partitions` | 0, 1 |
300+| `--cpu-used` | 0, 1, 2, 3, 4 |
301+| `--lag-in-frames` | 0, 8, 16 |
302+| `--kf-max-dist` | 2, 3, 4, 9999 |
303+| content | flat bars, `testsrc2`, two-speed opposite drift, and the chroma-noised two-speed source that worked |
304+| chroma | 4:2:0 throughout; 4:2:2 via the patch-run-restore probe bypass only |
305+
306+**A 2:1-tall luma inter block WAS coded at 4:2:0** — in `sw8/c_1_16_1.obu`
307+(`side=32 w=16 h=32`, x12), `sw8/c_0_8_1.obu` (`side=16 w=8 h=16` x5 and
308+`side=32 w=8 h=32` x68), `sw8/c_0_16_1.obu` (`side=32 w=16 h=32` x4), and
309+`sw5/t_1_8_1.obu` / `sw5/t_1_16_1.obu` (x4 each). The cell therefore **does**
310+answer the question; the earlier "inconclusive" risk (no 2:1-tall luma block
311+coded at all) does not apply, and the pinned fixture is the proof.
312+
313+## 6. Regression
314+
315+`cargo test -p ec-av1 --lib -- 420 444 lossless intra --skip bitrate_target_lands_within_5_percent_over_48_frames`
316+
317+```
318+test result: ok. 158 passed; 0 failed; 2 ignored; 0 measured; 641 filtered out; finished in 227.71s
319+```
320+
321+**158 passed, 0 failed, 2 ignored, 641 filtered out** (227.71 s). Zero
322+regressions. This is a clean baseline by construction — the instrument is not
323+in this tree — which is the point: the pinned fixture is the only addition to
324+`main` and it changes no decode path.
325+
326+The instrument is env-gated and lives only in the `-pre` worktree; `main` and
327+`lane-av1420tall` carry **no decoder change at all** — the only addition to
328+`lane-av1420tall` is the pinned fixture. `git status --porcelain` is EMPTY in
329+the primary checkout.
330+
331+## 7. Non-goals honoured
332+
333+No push, no merge, no rustfmt. The seven-site fix is not re-opened. The
334+instrument is **not committed** (it is in `lane-av1420tall-pre`, uncommitted,
335+which is a throwaway worktree). No 4:2:2 refusal is lifted in any committed
336+tree; the `EC_AV1_ALLOW_422_PROBE` bypass is patch-run-restore only and the
337+committed `-pre` state carries it uncommitted alongside the instrument.
338+
339+## 8. One thing the next lane should know
340+
341+`maxaddr == alloc - 1` on the 4:2:0 mu-chunk site is not slack, it is exact.
342+At 4:2:0 with a 128 root, the bottom-right mu chunk's last 4x4 unit writes
343+indices `4064..4067` of a 4096-element grid and not one element further. Any
344+future edit that makes the walk's last write even one element later — a
345+`blk_h` that stops being floored, an `org` that stops being chunk-aligned, a
346+`reg` that grows by one 4x4 row — turns the entire 4:2:0 128-root lossless
347+corpus into the 4:2:2 panic. There is no margin at this site; it is worth a
348+gate that asserts `maxaddr + 1 <= alloc` rather than relying on the identity
349+holding.