av1offtile report update: the joint reproduction of the tx_size_cat0 ctx finding, and a self-correction kept verbatim
Browse files at this commit107f8fdbf551d91c29aa42b31f70da4fd35c895fParent: 51825f31 changed file +80 -3
- lanes/av1offtile.report.md +80 -3
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 | ||
| 284 | 284 | |
| 285 | 285 | **Scoped regression** — exact command and output in §10. |
| 286 | 286 | |
| 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 | + | |
| 287 | 362 | ## 7. Class sweep |
| 288 | 363 | |
| 289 | 364 | **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; | ||
| 340 | 415 | 640x480 residual to a **third** defect — a missing TXFM_CONTEXT band write |
| 341 | 416 | above mi column 110 (`decode.rs:47264`, forcing `ctx=1` there makes 640x480 |
| 342 | 417 | 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. | |
| 346 | 423 | * **The class sweep is a corpus + generated-cells negative**, §7. A wider sweep |
| 347 | 424 | (10/12-bit, 4:4:4 edge cells, screen content) was not run; §7's instrumented |
| 348 | 425 | walks are the ones a future sweep should re-arm. |