av1lm444loss-corr: hand the 256x256 cell to Agent02-2, retract the mi-label caveat
Browse files at this commit122df9e74e03e35f6c2010be8890d7464ca2b5acParent: 9dcbf141 changed file +82 -0
lanes/av1lm444loss-corr.report.mdmodified+82 -0
| @@ -200,3 +200,85 @@ corr"` = 0. | ||
| 200 | 200 | - **Citation.** The step rule is taken from this codebase's own reference |
| 201 | 201 | construction (`decode.rs:43688`) rather than re-derived only from libaom, so |
| 202 | 202 | the change matches the shape every other replay in the tree already uses. |
| 203 | + | |
| 204 | +## 8. Handover of the 256x256 cell, and a retraction | |
| 205 | + | |
| 206 | +The 4:4:4 lossless 256x256 cell is a **second defect**, untouched by this | |
| 207 | +branch and by the superseded `lane-av1lm444loss` branch (identical wrong-sample | |
| 208 | +count, first sample and magnitude set on both). Handed to **`Agent02-2`**, who is | |
| 209 | +already working that cell and whose pinned tripwire `(1, 201, 200, 160, 159)` is | |
| 210 | +the same first sample this lane measured. Sent 2026-09-29, in the message | |
| 211 | +thread on `agent://Agent02-2`. | |
| 212 | + | |
| 213 | +Fixture for reproduction: `testsrc2 256x256 rate=25 yuv444p` (rate matters — my | |
| 214 | +rate=1 encodes of the same geometry were byte-exact **at base**), aomenc | |
| 215 | +`--lossless=1 --sb-size=128 --passes=1 --threads=1 --row-mt=0 | |
| 216 | +--enable-palette=0 --lag-in-frames=0 --kf-max-dist=100 --limit=6`, 109909 bytes. | |
| 217 | +Signature: key frame only, chroma only, 49 samples (Y=0, U=21, V=28), first | |
| 218 | +U(200,201) ours 160 vs ref 159. | |
| 219 | + | |
| 220 | +### 8.1 Retraction: "the mi labels are transposed" was wrong | |
| 221 | + | |
| 222 | +This lane's earlier report flagged the ladder's first fork at read 125511 with | |
| 223 | +a caveat that the differing `mi` labels looked like a coordinate-grid artefact | |
| 224 | +rather than a decode divergence. **That caveat is withdrawn.** Three | |
| 225 | +measurements, taken before the handover: | |
| 226 | + | |
| 227 | +1. **Both traces print mi in the same field order.** The oracle prints | |
| 228 | + `ec_symr_mi_row, ec_symr_mi_col` (`aom_dsp/bitreader.h:265-266`); this | |
| 229 | + decoder prints `SYMR_MI.get().0, .1` (`msac.rs:476-478`). There is no | |
| 230 | + field-order swap to explain anything. | |
| 231 | +2. **It is not a transposition of the same position either.** Ours reads | |
| 232 | + `mi=(32,0)`, the oracle `mi=(0,48)`; swapping ours gives `(0,32)`. | |
| 233 | +3. **The label tracks the walk closely**, so its first disagreement is signal. | |
| 234 | + The two labels agree on **90112 of the first 125511 reads (71.8%)**. | |
| 235 | + | |
| 236 | +At the fork both sides are at `ph=inter`, where both publish **block-level** mi | |
| 237 | +(ours from `decode_inter_block`'s `at`, `decode.rs:38706`; the oracle from the | |
| 238 | +mode-info reader's entry, `decodemv.c:941`) — the same granularity — and they | |
| 239 | +still disagree, off an identical pre-state `(24645, 40117)` with different | |
| 240 | +post-ranges (39316 vs 39862). So read 125511 is a **genuine block-level walk | |
| 241 | +divergence**. | |
| 242 | + | |
| 243 | +The generalisable lesson is the mirror of the one in | |
| 244 | +`skill://ec-av1-divergence-debug`: a "the tag disagrees, so it is a labelling | |
| 245 | +artefact" reading is a hypothesis to be TESTED, not a conclusion to be | |
| 246 | +forwarded. This lane forwarded one. Testing it cost three cheap measurements | |
| 247 | +and reversed the conclusion. | |
| 248 | + | |
| 249 | +### 8.2 One more cross-side trap found in the same ladder | |
| 250 | + | |
| 251 | +The **phase vocabulary differs between the two decoders**. This decoder emits | |
| 252 | +`ph=inter8` for the sub-8x8 leaf arm (`decode.rs:47162`) — 13894 reads on this | |
| 253 | +stream — and the oracle has **no `inter8` phase at all**: its `ec_symr_phase` | |
| 254 | +is set at the mode-info reader's entry and lumps those reads under the block's | |
| 255 | +own phase. So `ph` is not a pairable field across the two sides either; only | |
| 256 | +`ph=inter` against `ph=inter` compares. | |
| 257 | + | |
| 258 | +## 9. Two findings recorded for the batch's shared lore | |
| 259 | + | |
| 260 | +**9.1 A luma first-fork is the signature of a chroma arithmetic error.** The | |
| 261 | +bug this branch fixes is a purely CHROMA error — an mi step on the chroma | |
| 262 | +context replay — yet the first wrong sample on the witness stream is **luma**, | |
| 263 | +`Y(64,448)`, in the key frame. Mechanism: the wrongly-placed chroma stamps | |
| 264 | +corrupt the `txb_skip_ctx` the NEXT unit reads, the tile desyncs from there, and | |
| 265 | +whichever block comes next in luma is what moves first. This is the shape that | |
| 266 | +makes a correctly-applied fix look ineffective: the gate goes green and the | |
| 267 | +diff you were watching was never where the bug was. Whenever a chroma-side | |
| 268 | +arithmetic fix appears not to have moved a LUMA first-fork, check the chroma | |
| 269 | +step before suspecting the reconstruction or the filter chain. | |
| 270 | + | |
| 271 | +**9.2 The non-vacuity discipline this gate uses, restated.** Two rows do the | |
| 272 | +real work and both are about *reaching* the corrected expression, not about | |
| 273 | +its value: | |
| 274 | + | |
| 275 | +* the **parsed-header** assert pins `(0,0,8)` from the stream's own sequence | |
| 276 | + header precisely *because* at `(1,1)` the old and new steps are the same | |
| 277 | + integer — a 4:2:0 stream cannot fail this gate at all, so without the header | |
| 278 | + row every other row would be asserting nothing; | |
| 279 | +* the **control pin** reads the counter 0 on a stream of whole square blocks, | |
| 280 | + because those have no multi-unit chroma plane block to step — which is what | |
| 281 | + makes "the counter fired" mean "a multi-unit step was actually taken". | |
| 282 | + | |
| 283 | +Together those two mean the gate fails if the step is wrong AND fails if the | |
| 284 | +step is never reached. Neither alone would. |