From d9bea4acc83aa1dc5cd3c1e2df4e4ad7fa113722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 08:00:04 +0300 Subject: [PATCH] docs(sb128c): r1 handoff -- repro, trace, suspect order --- lanes/sb128c-r1.handoff.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lanes/sb128c-r1.handoff.md diff --git a/lanes/sb128c-r1.handoff.md b/lanes/sb128c-r1.handoff.md new file mode 100644 index 00000000..908273a0 --- /dev/null +++ b/lanes/sb128c-r1.handoff.md @@ -0,0 +1,33 @@ +# lane-sb128c r1 -> r2 handoff + +Tip `31d4d68` on `lane-sb128c` (worktree `/home/user/Documents/Code/Rust/edith_codecs-sb128c`, +`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-sb128c`). Full detail: `lanes/sb128c-r1.report.md`. + +ONE open defect: the 128x128 inter PARTITION_NONE block desyncs. + +Repro (both files already exist, regenerate with the recipe in the report): +- stream `$HOME/.cache/sb128c-work/g8.obu` (256x256, 8 frames, `--sb-size=128 --cpu-used=0 + --max-partition-size=128 --min-partition-size=32 --cq-level=62 --enable-rect-partitions=0 + --enable-ab-partitions=0 --enable-1to4-partitions=0 --enable-palette=0 --enable-intrabc=0 + --enable-tx-size-search=0 --deltaq-mode=0 --limit=8`, gradients seed 61 + noise alls=6) +- `decode_probe g8.obu` -> refuses `a split intra strip whose transform unit is 32x64`, which the + encoder cannot have coded (rect partitions off) => our desync. +- `EC_AV1_TRACE=1 decode_probe g8.obu | grep partition_w128` -> 4 x `value=0` (NONE), 10 x `value=3`. +- `k1.obu` (same recipe, `--limit=1`) decodes OK, so the key frame's 128 path is fine; the defect is on + an inter frame. + +Method: instrumented aomdec `EC_TRACE_COEFF` vs our `EC_TRACE_COEFF`, compare msac RANGE element by +element (never `tell()`), starting at the FIRST inter-frame 128 NONE block. + +Suspect order (all untested): +1. `read_cdef` for a NONE 128 block on the INTER path (`CDEF_TRANSMITTED` reset + quadrant index). + The key path resets it and replicates `CDEF_IDX_GRID`; the inter path now does the same, unverified. +2. `maybe_read_delta_q` / delta_lf granularity at a 128 root on an inter frame. +3. mvstack with bw4 = bh4 = 32 (`has_top_right` at 128, tpl sample positions, `check_sb_border` + hardcodes 64 which the ledger says is correct at both sb sizes). +4. This round's own mu-chunk chroma interleave inside `decode_inter_block`: the `Some(3)` chroma + `txb_skip` offset row, the per-unit `record_mi_chroma`, and the chunk-completion test + (`(leaves[idx+1].0/16, leaves[idx+1].1/16) != chunk`). + +Un-`#[ignore]` `a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact` (stream.rs) when green, and +re-run the siblings `128x128` + `refusal_inventory` + `gate_coverage` before claiming root cause.