forge
Explore
Log in

Don't you dare go Hollow

av1 pilot: fix four report findings before merge

Browse files at this commit

b78695f8db799e10db28e10d2fbba4ba15d11434Ahmet Kaan GümüşParent: 2f8b3b5
- refusal inventory is 37 (36 REFUSALS + 1 CAPABILITY_CLAIM), not 35; the scan
  parser reproduces the parked 47, so the old figure was a miscount.
- scope the monochrome root-cause narrative to the mono stream: ours reads
  angle_uv at rng=50996; aomdec reads no uv_mode/angle_uv (decodemv.c:933), and
  the first divergence is aomdec tx_depth ctx=0 cat=1 rng=43616 vs ours
  uv_mode val=13. The rng=56072 agreement belongs to the 4:2:0 twin. Same fix
  in the stream.rs gate comment.
- the committed av1-monochrome fixture is an earlier stop (intrabc-rect wall),
  not the stream this gate emits; the gate's ffmpeg recipe is corrected.
- suite count: cite the verifier's completed run (592 passed / 0 failed /
  60 ignored, 6716s); the 652 figure was a budget-cutoff partial.
crates/ec-av1/src/stream.rsmodified+5 -4
@@ -2027,10 +2027,11 @@ pub(crate) mod tests {
20272027 /// `-pix_fmt gray` encode of the crate's own fixture recipe does.
20282028 ///
20292029 /// Root cause (localised with `EC_TRACE_MODE_STEP` on the instrumented
2030- /// aomdec oracle vs this decoder, both over the same OBU): the two traces
2031- /// agree bit-for-bit -- identical `rng` through `skip`, `cdef`, `mode`,
2032- /// `angle_y` -- and then aomdec goes straight from `angle_uv` to
2033- /// `tx_depth` while ours reads a `uv_mode` symbol first. libaom's
2030+ /// aomdec oracle vs this decoder, both over the same OBU): on the mono
2031+ /// stream ours reads `angle_uv` at `rng=50996`, while aomdec reads NO
2032+ /// `uv_mode`/`angle_uv` at all (the guard below); the first divergence at
2033+ /// `(0,0)` is aomdec reading `tx_depth ctx=0 cat=1` (`rng=43616`) where
2034+ /// ours reads a `uv_mode` (val=13). libaom's
20342035 /// `decodemv.c` guards that read with
20352036 /// `if (!cm->seq_params->monochrome && xd->is_chroma_ref)`: a monochrome
20362037 /// frame codes NO `uv_mode`/`cfl`/`angle_delta_uv`/`palette_uv` at all,
lanes/av1decode.report.mdmodified+19 -10
@@ -26,8 +26,9 @@ a code un-refusal of an arm that no longer exists. This report gives:
2626 byte-exact at every probed offset**; at the parked tip (`3808cf8`, 2026-08-30)
2727 both films stopped early (ReelC at a superblock-level HORZ/VERT strip with a split
2828 transform; ReelB at a superblock-level partition). The refusal inventory
29-shrank from **47** (41 REFUSALS + 6 CAPABILITY_CLAIMS) to **35**
30-(34 REFUSALS + 1 CAPABILITY_CLAIM).
29+shrank from **47** (41 REFUSALS + 6 CAPABILITY_CLAIMS) to **37**
30+(36 REFUSALS + 1 CAPABILITY_CLAIM). The refusal-scan parser reproduces the parked
31+**47** exactly, so the earlier "35 (34 + 1)" figure was a miscount.
3132
3233 ## 1. Baseline re-measurement (main 79984549)
3334
@@ -142,14 +143,20 @@ recipe decodes. Four real streams stop:
142143 `ffmpeg -f lavfi -i testsrc2=size=320x240:rate=30:duration=2 -pix_fmt gray
143144 -c:v libaom-av1 -cpu-used 8 -b:v 300k -f obu` → REFUSED. The **4:2:0 twin of the
144145 same source+recipe decodes 60/60 frames**, so this is monochrome, not the recipe.
145-This is also the io fixture `av1-monochrome.ivf`.
146+(The committed io fixture `av1-monochrome.ivf` is a **different, earlier** stop:
147+it refuses at `intra block copy on a HORZ/VERT/1:4 rect intra strip` — the
148+intrabc-rect wall — before reaching this desync. The pinning gate in §5
149+therefore generates its stream from this ffmpeg recipe, not from that fixture.)
146150
147151 **Root cause (localised).** Run the instrumented aomdec oracle and our probe with
148-`EC_TRACE_MODE_STEP=1` over the same OBU; the traces agree on every symbol and
149-`rng` through `skip`, `cdef`, `dq`, `mode`, `angle_y`, `uv_mode`, `angle_uv`
150-(both `rng=56072` at `(0,0)` after `angle_uv`). Then aomdec reads
151-`tx_depth ctx=0 cat=1` while **ours reads a second `uv_mode` (val=13) first** and
152-diverges. libaom `av1/decoder/decodemv.c:933`:
152+`EC_TRACE_MODE_STEP=1` over the same OBU. On the **mono** stream **ours reads
153+`angle_uv` at `rng=50996`**, while aomdec reads **no** `uv_mode`/`angle_uv` at
154+all (the guard below): the monochrome frame codes neither symbol. The first
155+divergence at `(0,0)` is therefore aomdec reading `tx_depth ctx=0 cat=1`
156+(`rng=43616`) where **ours reads a `uv_mode` (val=13)** and desyncs. (The
157+`rng=56072` "agree through `uv_mode`/`angle_uv`" agreement belongs to the 4:2:0
158+twin, whose chroma symbols both decoders read; `56072` never appears in the mono
159+trace.) libaom `av1/decoder/decodemv.c:933`:
153160 `if (!cm->seq_params->monochrome && xd->is_chroma_ref) { mbmi->uv_mode = ... }` —
154161 a monochrome frame codes **no** `uv_mode`/`cfl`/`angle_delta_uv`/`palette_uv`.
155162 This decoder's block layer has **no `num_planes`/monochrome notion at all**
@@ -201,7 +208,7 @@ debt** until the root causes above land; the PROVEN tests must then be revisited
201208
202209 ## 4. Terrain map for the next wave
203210
204-Remaining refusals: **34 REFUSALS + 1 CAPABILITY_CLAIM**. Ordered by dependency
211+Remaining refusals: **36 REFUSALS + 1 CAPABILITY_CLAIM** (37 total). Ordered by dependency
205212 (what unblocks what):
206213
207214 **Wave 1 — the only real-stream-reachable cluster (this lane's finding):**
@@ -262,7 +269,9 @@ anything already covered by the seven witness gates above.
262269 → `ok. 1 passed` (`4:2:0 twin 60 frames, monochrome refused by name`).
263270 - `cargo check -p ec-av1 --all-targets` → rc 0, **0 warnings** (parity with
264271 79984549).
265-- Full lib suite: **`cargo test -p ec-av1 --lib`, 652 passed / 0 failed.**
272+- Full lib suite (completed on the lane by the verifier): **592 passed, 0 failed,
273+ 60 ignored** (6716 s). (An earlier in-lane run was cut off by a budget cap while
274+ showing "652 passed"; that partial figure is not a completed suite.)
266275
267276 ## 7. Repro commands (all re-derivable)
268277