forge
Explore
Log in

Don't you dare go Hollow

av1offtile report update: the joint reproduction of the tx_size_cat0 ctx finding, and a self-correction kept verbatim

Browse files at this commit

107f8fdbf551d91c29aa42b31f70da4fd35c895fAhmet Kaan GümüşParent: 51825f3
Report-only (crates/ delta against the merged fix verified EMPTY).

1. JOINT REPRODUCTION of the handed-over defect: on a scratch tree at the conjunct lane's tip plus this lane's
   patch, forcing ctx=1 at the 640x480 mi=(80,110) tx_size_cat0 site gives 457907 reads against the oracle's
   457907, bit-identical over all of them. The third defect's identification is now a two-lane measurement
   rather than an attributed claim -- and it is still NOT shipped, because a forced context is a symptom mask.

2. SELF-CORRECTION kept in the report with the wrong claim verbatim and the correction under it: this lane had
   claimed mix_640x480_5/6 "still decode with both applied", having measured only its own tree and extrapolated
   about the COMBINED fixes. Rebuilt on the combined binary: both REFUSE. Its regression table now says
   "decodes" means NOT REFUSED and records 640x480 as RED at base with its own measurements (f0 EXACT, f1
   352066, f2 414286, f3 313795, f4 399471 of 460800), reproducing the peer's numbers exactly.

3. Class sweep, measured rather than claimed: the two other coefficient-reading chroma walks (chroma_tiled,
   decode_block_rect64) instrumented with the same off-tile test and swept over the whole committed corpus,
   18 generated edge-overhang cells and the 12 mix cells -- 0 hits; probes removed, grep -c EC_OFFTILE is 0.
   Mutation proof: width half disabled -> 2381 units vs the oracle's 2373; clip removed -> the non-vacuity
   assert fails.
lanes/av1offtile.report.mdmodified+80 -3
@@ -284,6 +284,81 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 803 filtered out; fi
284284
285285 **Scoped regression** — exact command and output in §10.
286286
287+## 6b. JOINT REPRODUCTION: Agent05-5's 640x480 `tx_size_cat0` ctx finding
288+
289+Agent05-5 (lane-av1mixllconj) localised the 640x480 residual that remains after
290+their var-tx conjunct to a third defect and asked me to reproduce it on my own
291+tree rather than repeat it as an attributed claim. **Reproduced in full**, on a
292+scratch worktree at their tip `9abe724a` with this commit's `decode.rs` patch
293+applied on top (`git apply --3way`, clean).
294+
295+**The method detail that matters, because I got it wrong first time:** their
296+line `decode.rs:47264` is the **`cat0`** arm of `decode_leaf_rect8`; the
297+`tx_size_cat1[ctx]` call is a different site (`decode.rs:18835`). I keyed the
298+override on the `cat1` site first and got **five identical 521 856-read runs for
299+ctx 0..4** — the override never fired at all. Re-keyed on the `cat0` site:
300+
301+```text
302+EC_TXCTX_SITE mi_row=80 mi_col=110 bw=8 bh=4 ctx=2 <- ours, natural
303+```
304+
305+| forced ctx | our reads | locked vs oracle | oracle reads |
306+|---|---:|---|---:|
307+| natural (=2) | 521 856 | first divergence **179 378** | 457 907 |
308+| 0 | 286 327 | first divergence 179 378 | 457 907 |
309+| **1** | **457 907** | **457 907 — bit-identical over ALL of them** | 457 907 |
310+| 3 | 179 378 | first divergence 179 378 | 457 907 |
311+| 4 | 179 378 | first divergence 179 378 | 457 907 |
312+
313+Lockstep compares the **convention-free** fields only — `pre[0]`, `pre[1]`,
314+`n`, `s`, `post_rng`. `pre[2]` is a bit counter carrying a per-site constant
315+offset and `cdf0` the 32768-x ICDF mirror; neither is signal. The comparator's
316+third field is `-?\d+`, not `\d+`: **211 of the oracle's 457 907 lines carry a
317+NEGATIVE `pre[2]`** and a `\d+` field drops them silently.
318+
319+**The operands, from this tree's own rungs:**
320+
321+```text
322+ORACLE EC_TXCTXB mi=80,110 bsize=2 maxw=8 maxh=4 hasup=1 hasleft=1 abv=4 lft=8 above=0 left=1 ctx=1
323+OURS EC_TXCTX mi=80,110 own=8x4 ha=true hl=true intra_only=false above_txfm=16 left_txfm=8
324+ above=true left=true ctx=2 (natural)
325+```
326+
327+`left_txfm = 8` matches the oracle's `lft = 8`. The whole disagreement is the
328+**`above` TERM**, driven by the band (**16 vs 4**) — not by the context formula.
329+
330+**The band write, replayed.** `EC_TXUPD` (`rect` and `ctxs` rungs together),
331+restricted to the frame containing the fork and to writes whose column span
332+covers mi column 110 with `mi_r < 80`, in decode order:
333+
334+```text
335+ctxs mi=(20,108) tx=16
336+ctxs mi=(24,104) tx=32
337+ctxs mi=(32,108) tx=16
338+ctxs mi=(36,108) tx=16 skip_inter=true <- the last write before the read
339+```
340+
341+A **skipped 16 px inter block** at `mi=(36,108)` with `w_mi=4` publishing **16**,
342+and **nothing writes that column in between**. libaom has **4** there — it makes
343+a band write in rows 37..79 that this tree does not. Class
344+`context-band-not-published`.
345+
346+**What reproduces and what does not.** Every number, the operand pair, and the
347+named band write reproduce exactly. **The forced `ctx` is a symptom mask and
348+neither of us ships it** — the defect is the missing band write. This lane
349+changed no production code for it: the override was a temporary env-gated probe
350+in a throwaway worktree and is not in this commit
351+(`git show HEAD:crates/ec-av1/src/decode.rs | grep -c EC_TXCTX_SITE` is `0`).
352+The finding belongs to Agent05-5's lane.
353+
354+**Precondition, and it is load-bearing.** The override only bites **with their
355+var-tx conjunct landed**. On this lane's tree alone (`main` + this clip, no
356+conjunct) `mix_640x480_5.obu` reads **860 431** times against the oracle's
357+457 907, and ctx 0..4 at the keyed site give **860 431 for every value** — the
358+walk never reaches `mi=(80,110)` in a state where the override matters. The
359+chain is strictly ordered: off-tile walk (this lane) -> var-tx conjunct
360+(Agent05-5) -> TXFM_CONTEXT band gap (Agent05-5).
361+
287362 ## 7. Class sweep
288363
289364 **Source.** Every chroma unit walk in `decode.rs` that derives a unit count from
@@ -340,9 +415,11 @@ generate, not a proof of unreachability.** The instrumentation has been removed;
340415 640x480 residual to a **third** defect — a missing TXFM_CONTEXT band write
341416 above mi column 110 (`decode.rs:47264`, forcing `ctx=1` there makes 640x480
342417 bit-identical over all 457 907 reads), class
343- `context-band-not-published`, which is theirs to carry and is not mine. My own
344- measurement is only the "red at base, unchanged by this patch" half of that;
345- the `ctx` attribution is Agent05-5's and I did not verify it.
418+ `context-band-not-published`, which is theirs to carry and is not mine.
419+ **§6b is my own full reproduction of that claim** — the read counts, the
420+ 457 907/457 907 lockstep, all three operand prints, and the `mi=(36,108)`
421+ band write — so it is now a joint fact on two trees rather than an attributed
422+ one.
346423 * **The class sweep is a corpus + generated-cells negative**, §7. A wider sweep
347424 (10/12-bit, 4:4:4 edge cells, screen content) was not run; §7's instrumented
348425 walks are the ones a future sweep should re-arm.