forge
Explore
Log in

Don't you dare go Hollow

av1lm444loss-corr: the 256x256 key frame is reconstruction-only, not a walk fork

Browse files at this commit

4450532194c3dec57e8289935b9632ce4cf7d593Ahmet Kaan GümüşParent: 122df9e
Per-frame EC_SYMR counts on the 109909 B stream put the key frame at 82697
reads with NO fork inside it; the first fork (125511) is in decode_idx=1.
So the key frame's 49 chroma samples are reconstruction-only -- its entropy
is bit-locked, which rules out the mu-chunk walk, plane threading and the
coefficient sets as their cause. Two independent encodes agree, so it is
one confirmed defect on the reconstruction side.

Corrects my own handoff: I called 125511 'a genuine block-level walk
divergence' without having measured the frame boundary. The cell has two
symptoms -- (a) key-frame reconstruction-only, (b) frame-1 entropy fork --
and they are not linked by reconstruction. Also records that my first
ladder script compared cdf0 directly, the one field whose convention
differs across the two sides.
lanes/av1lm444loss-corr.report.mdmodified+72 -0
@@ -282,3 +282,75 @@ its value:
282282
283283 Together those two mean the gate fails if the step is wrong AND fails if the
284284 step is never reached. Neither alone would.
285+
286+## 10. The 256x256 key frame is RECONSTRUCTION-ONLY (measured, after handover)
287+
288+`Agent02-2` asked the decisive question of this cell and it is answerable, so it
289+was answered rather than left open. **My handoff was incomplete in a way that
290+mattered, and the correction is recorded here.**
291+
292+### 10.1 Per-frame read counts, and where the fork actually is
293+
294+On this lane's 109909 B stream (`testsrc2 256x256 rate=25`, `--sb-size=128
295+--passes=1 --threads=1 --row-mt=0 --enable-palette=0 --lag-in-frames=0
296+--kf-max-dist=100 --limit=6`, intrabc ENABLED — `Agent02-2`'s 109215 B stream has
297+`--enable-intrabc=0` and default sb-size, so the two really are different
298+streams, as they noted):
299+
300+| decode_idx | EC_SYMR reads | cumulative |
301+|---|---|---|
302+| 0 (**key**) | **82697** | 82697 |
303+| 1 | 50717 | 133414 |
304+| 2 | 120835 | 254249 |
305+| 3 | 62579 | 316828 |
306+| 4 | 102367 | 419195 |
307+| 5 | 121957 | 541152 |
308+
309+**First fork: read 125511 — inside `decode_idx=1` (82698..133414), not the key
310+frame. First fork within the key frame's 82697 reads: NONE.**
311+
312+### 10.2 What that settles
313+
314+The key frame's 49 chroma samples (first `U(200,201)` ours 160 vs ref 159) are
315+**reconstruction-only**. That frame's entropy is bit-identical end to end, so
316+nothing on the entropy side can be their cause — not the mu-chunk walk, not the
317+plane threading, not the coefficient sets, not the transform-size derivation.
318+`Agent02-2`'s r1 walk fix and r6 plane threading are therefore not the cause of
319+the 49, and their NOT-SETTLED "per-unit coefficient SETS agree or not" question
320+— which is an entropy question — cannot answer it either.
321+
322+Two independent encodes (109909 B and 109215 B, different `--sb-size` and
323+intrabc settings) both show a bit-locked key frame and a ~49-sample
324+chroma-only key-frame divergence. That is one confirmed defect, and it is on
325+the **reconstruction** side: after `decode_token_recon_block`, so at 4:4:4
326+lossless the WHT path (`dequant_and_inverse_wht4x4` / `TxParams::run`), the
327+prediction fetch, or the post-recon filter chain.
328+
329+### 10.3 The correction to my own handoff
330+
331+I told `Agent02-2` that read 125511 was "a genuine block-level walk divergence".
332+The mi-label retraction (§8.1) stands, but that framing was still wrong in
333+substance, because I had not measured the frame boundary when I sent it. The
334+cell has **two symptoms, not one**:
335+
336+* **(a)** key frame, reconstruction-only, 49 chroma samples;
337+* **(b)** frame 1+, an entropy fork at read 125511.
338+
339+They are not linked by reconstruction: frame 1's entropy does not depend on
340+frame 0's pixels, and the CDF state carries across frames untouched by them.
341+So **(b) is its own entropy defect** — `Agent02-2`'s r1 walk fix closed their (b)
342+at read 123121 without closing (a). `Agent02-2`'s ordered-(plane, position,
343+nz-count) sequence diff remains the right decisive test for (b); for (a) the
344+search space is now confined to the reconstruction stage.
345+
346+### 10.4 A pairing-script bug worth recording
347+
348+My first ladder script compared the `cdf0` field directly across the two sides.
349+That is the one field whose convention differs — ours is PRE-adapt, the
350+oracle's is POST-adapt, and the reconciliation is `32768 - ours_cdf0 ==
351+theirs` (`msac.rs`'s own `EC_SYMR` doc). The corrected predicate is
352+`(value, range, n, symbol, post_rng)`, with the `bit` field carrying a constant
353+-15 offset on this stream. Re-running with the right field set **confirmed
354+125511** — so the number I reported stands, but it survived a script that could
355+not have been trusted to find it. A fork index from a script with a known-bad
356+comparison field is a coincidence until re-derived.