# lane-tx64x16 r5 — the seed-47 "desync" is not a desync ## 1. Seed 47 refusal: genuine, pre-existing on main, and the flag that was ## supposed to prevent it is inert Pinned stream: regenerated from the gate recipe (8-bit, seed 47 = attempt 5: axis X, step 91, noise 9, cq 32), `sha256 51c0a8c16b2c339cbf042cd60bcf835075ff1dca4ce37362ee5fb63a23b5ffb5` — identical to the sha in the r4 verifier report, so the fixture is reproducible. Range ladder, ours (`EC_AV1_TRACE=1 decode_probe`) vs instrumented aomdec (`EC_TRACE=1`), from the first block of the first tile: | element | aomdec | ours | |---|---|---| | partition bsize=12 (64x64) mi 0,0 | value=3 (SPLIT), rng in 32768 | value=3 | | partition bsize=9 (32x32) mi 0,0 | value=3 (SPLIT), rng in 51744 | value=3, rng out 56592 | | partition bsize=6 (16x16) mi 0,0 | ctx=4, rng in **56592**, value=**6 (PARTITION_VERT_A)** | ctx=0 (per-width table), value=**6** | Our range entering the 16x16 partition symbol equals aomdec's (56592) and we decode the same value. There is NO divergent element: the stream really contains a `PARTITION_VERT_A` at 16x16, which this decoder does not code. The refusal is truthful, not the `refusal-from-own-desync` class. `--enable-ab-partitions=0` does not suppress it: encoding the same y4m with `=0` and `=1` (everything else identical) gives **byte-identical output**, md5 `ef8c8be0664b…` both ways — the knob never reached the tool (class knob-never-reached-the-tool). aomdec's partition histogram for that stream: `bsize=6 value=6` ×1 (the VERT_A), `bsize=9 value=9` ×4 (this lane's VERT_4), rest NONE/VERT/SPLIT. Main `df5d630` refuses the same stream with the same message (built from a detached scratch worktree, own CARGO_TARGET_DIR, removed after) — **this lane did not introduce it**. Disposition: **deferred(16x16 HORZ_A/HORZ_B/VERT_A decode — lane-ab16's cluster, not this lane's shape)**. Making seed 47 decode pixel-exact requires implementing AB partitions at 16x16, which is a different refusal and a different lane. The gate counts it as a named refusal and still proves its own shape on the other attempts. EVIDENCE: /tmp/.../scratchpad/s47.obu (sha256 51c0a8c1…) | EC_TRACE=1 aomdec vs EC_AV1_TRACE=1 decode_probe, element-by-element from block 0 | ranges equal at 56592, both read partition value 6 (VERT_A) at bsize=6; ab-partitions=0 vs =1 md5-identical; main df5d630 refuses identically ## 2. Gate hardening (class gate-skips-on-its-own-failure) `crates/ec-av1/src/stream.rs` — both 1:4 gates (superblock-level and the 32x32-level one) now `assert_eq!(out_of_scope_mismatch, 0, ...)`: an attempt that decoded but carried none of this gate's blocks and still mismatched ffmpeg is a failure, no longer a printed number. Counters and the per-attempt message are kept. ## 3. `rect4_32_counters` no longer inside `decode_stream`'s doc comment `crates/ec-av1/src/stream.rs` — the getter had been spliced between the `# Errors` section and `pub fn decode_stream`, silently eating half of `decode_stream`'s documentation. Moved above the doc block; `decode_stream`'s docs are whole again. Deviation from the charter: it stays `pub`, not `pub(crate)` — `examples/decode_probe.rs:32` calls `ec_av1::stream::rect4_32_counters()` from outside the crate (that is why it was made `pub` in r4); `pub(crate)` would break the probe, which is a first-class instrument here. ## 4. Gate + suite results Gate (`cargo test -p ec-av1 --lib 32x32_level_1to4 -- --nocapture`, EC_AV1_REQUIRE_AOMENC=1): **ok** - 8-bit: 7/8 pixel-exact, 1 named refusal (seed 47, the 16x16 VERT_A above), horz_4=64, vert_4=72, coded strips=136, 0 out-of-scope. - 10-bit: 5/8 pixel-exact, 3 named refusals (seed 47 same VERT_A; seeds 43/46 "a coded (non-skip) HORZ/VERT rect strip below 16x16" — rect partitions ARE enabled by the recipe, lane-tx4x8's refusal), horz_4=48, vert_4=48, coded strips=96, 0 out-of-scope. EVIDENCE: $HOME/.cache/tx64-suite-r5.log + gate stdout above | cargo test 32x32_level_1to4 --nocapture, both bit depths, 8 attempts each | 12/16 attempts pixel-exact vs ffmpeg, 4 named refusals, 0 out-of-scope mismatches, 328 1:4 strips proved Siblings, from the same suite log, all **ok**: `a_real_aomenc_stream_with_a_superblock_level_ab_partition_decodes_pixel_exact`, `..._split_transform_horz_vert_strip...`, `..._split_transform_superblock_strip...`, all five `gate_coverage::tests::*`, all three `refusal_inventory::tests::*`. (`..._superblock_level_horz_vert_partition_and_delta_q...` is the pre-existing `ignored` from lane-rect64q.) Full suite (systemd user unit `tx64-suite-1788308735`, log `$HOME/.cache/tx64-suite-r5.log`): **test result: ok. 298 passed; 0 failed; 26 ignored; 0 measured; finished in 216.23s** — same totals as r4. ## Residue - fix-now: none in this lane. - deferred(lane-ab16 lifting HORZ_A/HORZ_B/VERT_A at 16x16): seed 47 cannot decode until that shape is coded; it is a genuine capability gap, present on main df5d630, not a defect this lane created. - accepted: `--enable-ab-partitions=0` is inert on this recipe (md5-identical output); the gate therefore tolerates the 16x16 AB refusal rather than pretending the flag suppresses it.