forge
Explore
Log in

Don't you dare go Hollow

lane-av1422warp: report -- EC_SYMR restored, tree protected, poisoner named and fixed

Browse files at this commit

7e3eae58e661cfbc67a7fbf76d90c9f9d3a323d6Ahmet Kaan GümüşParent: b86686a
Records the round-20 restoration (both sides), the second defect the
validation bar caught (11 decodetxb.c format strings with a literal
backslash-n instead of the newline escape), the oracle snapshot commit,
the EC_SYMR sequence diff that names the poisoner at read 45260 (the DC
sign of mi(68,16)'s chroma-U 4x4, dcctx 1 against libaom's row 0), the
decode_block_rect 4:2:2 gate, and the red/green plus four identity
proofs.
lanes/av1422warp.report.mdmodified+81 -0
@@ -1098,6 +1098,87 @@ lead to keep open. Fixtures and dumps are in
10981098 This is a 4:2:2-only entropy desync; no 4:2:0 or 4:4:4 evidence points at it, and
10991099 both controls stayed byte-exact throughout.
11001100
1101+## Round 20 — EC_SYMR restored, tree protected, and the POISONER NAMED
1102+
1103+### Restoration and protection
1104+
1105+`EC_SYMR` had been lost on BOTH sides (my accidental `git checkout` of
1106+`aom_dsp/bitreader.h`, and an earlier one of `msac.rs`). Rebuilt to skill
1107+`ec-av1-consumption-gap-symr` Step 3 — ours an env-gated eprintln in
1108+`SymbolDecoder::symbol` printing `pre=(value,range,bit) cdf0=<PRE-adapt
1109+row[0]> n=<cdf.len()-1> s=<symbol> post_rng=<rng>`; the oracle the same
1110+fields around `aom_read_cdf`/`update_cdf`, with value = dif top-16 and
1111+bit = `8*(bptr-buf)-(cnt+15)`.
1112+
1113+The validation bar also caught a SECOND defect I had introduced earlier:
1114+11 format strings in the oracle's `decodetxb.c` carried `\\n` (a literal
1115+backslash-n) where `\n` (the newline escape) belongs, collapsing each
1116+unit's whole step run onto one line. Repaired. **Validation: the
1117+`all_zero` chain on a1_f0.obu now byte-matches the saved oracle trace
1118+(2512 lines) and 744 `name=mode` lines are emitted.**
1119+
1120+The oracle tree is now snapshotted — `86c3958 oracle instrumentation
1121+snapshot: EC_SYMR + rungs` — so a stray checkout cannot wipe it again.
1122+Pre-edit copies of both files also sit in
1123+`~/.cache/av1422warp/oracle-backup/`.
1124+
1125+### The poisoner, named
1126+
1127+`EC_SYMR` makes the two streams 1:1 BY CONSTRUCTION (both emit one line
1128+per symbol read, in decode order), which is what the earlier
1129+bit-position pairing could not do. On a1_f0.obu:
1130+
1131+```
1132+reads: oracle 46260, ours 46260
1133+reads 0..45259 : MATCH on value, range, CDF row (32768 - ours == oracle),
1134+ alphabet, symbol AND post-read range
1135+read 45260 : FIRST DIVERGENCE
1136+ oracle pre=(27066, 42934, 92317) cdf0=15650 n=2 s=0 post_rng=45112
1137+ ours pre=(27066, 42934, 92332) cdf0=17486 n=2 s=0 post_rng=46114
1138+ (as 32768- : 15282)
1139+```
1140+
1141+Same pre-state, same bit position, same alphabet, same symbol — a
1142+**different CDF row**. The trace names the read:
1143+
1144+```
1145+oracle EC_COEFF_STEP tag=sign c=0 sign=0 dcctx=0 <- row 0
1146+ours EC_COEFF_STEP tag=sign_rect pos=0 sign=0 dcctx=1 <- row 1
1147+```
1148+
1149+It is the **DC sign read of the chroma-U 4x4 transform of the 32x16 strip
1150+at mi(68,16)**. The strip is decoded by `decode_block_rect`, which built
1151+its chroma vote with `around_rect` and no 4:2:2 rerouting — the SIBLING
1152+of `decode_leaf_rect`, which the round-6 fix gated.
1153+
1154+### The fix (`d7c25c3c`)
1155+
1156+`decode_block_rect` now routes planes 1 and 2 through
1157+`around_mi_422_chroma` under the same `ss_x == 1 && ss_y == 0` gate the
1158+square/leaf paths use. Luma keeps the per-mi gather; 4:2:0 and 4:4:4 keep
1159+the plain rect walk verbatim.
1160+
1161+**Red/green.** All 46260 reads now match at STATE level; the only
1162+residual difference is the `bit` field over the last 17 reads, which is
1163+the reference's own buffer-end tell convention (its source says the tell
1164+offset "becomes important once we hit the end of the buffer"). Frame 0
1165+is **pixel-exact against aomdec for the first time on this stream**; the
1166+16-frame measure goes **0/16 -> 3/16** frames exact and **1619115 ->
1167+1332125** differing samples.
1168+
1169+**Identity, all four unchanged:** 4:2:0 control `a420.obu` byte-identical
1170+to `aomdec --rawvideo`; 4:4:4 `444_sb128rect_lr_witness.obu`
1171+byte-identical to the pre-lane build; pinned `422_allskip_2f.obu` and
1172+`422_sb128_3f.obu` still pixel-exact.
1173+
1174+### Not done
1175+
1176+`a1.obu` is still not all-exact (3/16 frames), so it stays unpinned and
1177+no gate is written. The next divergence is past frame 0 and was not
1178+localized this round — the natural continuation is the same EC_SYMR
1179+sequence diff run over the whole 16-frame stream, which now has a
1180+trustworthy instrument and a per-TU exactness baseline.
1181+
11011182 ## Two refuted hypotheses — do not re-chase
11021183
11031184 1. **"libaom ORs the block's OWN `uv_mode` into the edge-filter type."** False.