diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 55329df2..dc004ccf 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -2442,6 +2442,19 @@ pub(crate) fn intra_rect_in_inter_split_tx_hits() -> [usize; 3] { INTRA_RECT_IN_INTER_SPLIT_TX_HITS.with(std::cell::Cell::get) } +// lane-midcut r2: rect intra blocks inside an inter frame whose `tx_depth` CDF +// ROW moved when libaom's inter-neighbour override was applied -- i.e. exactly +// the blocks the key frame's deblock-grid approximation used to mis-read. +thread_local! { + static INTRA_RECT_IN_INTER_TXCTX_OVERRIDE_HITS: std::cell::Cell = + const { std::cell::Cell::new(0) }; +} + +/// Current value of [`INTRA_RECT_IN_INTER_TXCTX_OVERRIDE_HITS`]. +pub(crate) fn intra_rect_in_inter_txctx_override_hits() -> usize { + INTRA_RECT_IN_INTER_TXCTX_OVERRIDE_HITS.with(std::cell::Cell::get) +} + // lane-intra14 r1: how many intra-coded 1:4 strips decoded on the INTER // block path, per shape -- [0] 64x16, [1] 16x64, [2] 32x8, [3] 8x32. Every // one of them was the named refusal "an intra-coded 1:4 (or other non-2:1) @@ -13804,12 +13817,26 @@ fn tx_size_context_txfm_rect( n.left_side_mi[mi_r], ); } - match (has_above, has_left) { + let ctx = match (has_above, has_left) { (true, true) => usize::from(above) + usize::from(left), (true, false) => usize::from(above), (false, true) => usize::from(left), (false, false) => 0, + }; + // lane-midcut r3: count only the blocks the KEY FRAME deblock-grid + // approximation ([`tx_size_context_rect`]) would have read off a DIFFERENT + // CDF row, i.e. exactly the blocks this band read fixes -- a plain "rect + // intra in an inter frame" tally is green on the buggy code too (class + // gate-blind-to-feature). + if INTRA_IN_INTER_MODE.with(std::cell::Cell::get).is_some() { + let (cw, ch) = (own_w.min(64), own_h.min(64)); + let stale = usize::from(has_above && tx_px_at(n, false, mi_r - 1, mi_c) as usize >= cw) + + usize::from(has_left && tx_h_px_at(n, false, mi_r, mi_c - 1) as usize >= ch); + if ctx != stale { + INTRA_RECT_IN_INTER_TXCTX_OVERRIDE_HITS.with(|c| c.set(c.get() + 1)); + } } + ctx } /// lane-intrasplit r3: `above_inter`/`left_inter` are mi-granular bands (they @@ -19938,6 +19965,11 @@ fn decode_inter_block( } _ => (write_w / 2, write_h / 2), }; + // lane-midcut r3 (same rule as lane-t900 r5's `warp_plane_allowed`, one + // copy kept at the merge): `av1_init_warp_params` (libaom reconinter.c) + // bails per PLANE at `block_width < 8 || block_height < 8` -- on the + // block's own dims, never on the square prediction buffer this reader + // allocates. if std::env::var_os("EC_MC_TRACE").is_some() { eprintln!("EC_IB px={px} py={py} side={side} w={write_w} h={write_h}"); } diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 6df83ee1..42e062c8 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -14001,6 +14001,10 @@ mod tests { return; } let (width, height, frame_count) = (64usize, 64usize, 24usize); + // lane-midcut r1: rect interintra (`write_w != write_h`) built its + // intra predictor at the square `side`; this gate passed with that + // bug, so the shape gets its own delta-counted assert below. + let rect_before = crate::decode::interintra_rect_hits(); let mut named_refusals = 0u32; let mut matched = 0u32; let n_attempts: u32 = std::env::var("EC_INTERINTRA_GATE_ATTEMPTS") @@ -14156,6 +14160,61 @@ mod tests { decode-order frames, {arm_hidden} hidden, all pixel-exact vs the oracle" ); } + // lane-midcut r3 RECT ARM: the recipe above spells + // `--enable-rect-partitions=0 --min-partition-size=32`, so it can + // never produce a RECT interintra block -- the delta assert at the + // end of this gate was unsatisfiable on it (the gate disabled the + // very shape it claims to prove). Re-encode the SAME source with + // the rect overrides APPENDED (aomenc keeps the LAST occurrence of + // a repeated flag) and compare every decode-order frame of that + // stream against aomdec, until a rect interintra block fires. + if crate::decode::interintra_rect_hits() == rect_before { + let mut rect_args = args.clone(); + rect_args.extend_from_slice(&[ + "--enable-rect-partitions=1", + "--min-partition-size=8", + "--max-partition-size=64", + ]); + let mut child = Command::new(aomenc_path()) + .args(&rect_args) + .stdin(Stdio::piped()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) + .spawn() + .expect("aomenc failed to start"); + child + .stdin + .take() + .expect("aomenc stdin") + .write_all(&y4m.stdout) + .expect("writing y4m to aomenc"); + let out = child.wait_with_output().expect("aomenc failed to run"); + assert!( + out.status.success(), + "{NAME} RECT-ARM: aomenc refused its own recipe plus the rect overrides: {}", + String::from_utf8_lossy(&out.stderr) + ); + let rect_stream = out.stdout; + match decode_stream(&rect_stream) { + Err(e) => { + let msg = e.to_string(); + assert!( + msg.contains("unsupported"), + "{NAME} RECT-ARM failed outright, not a named refusal (seed {seed}): {msg}" + ); + eprintln!("{NAME} RECT-ARM: skipped on a named refusal: {msg}"); + } + Ok(_) => { + let (total, hidden) = + decode_all_frames_vs_oracle(&rect_stream, &format!("{NAME}-rect")); + eprintln!( + "{NAME} RECT-ARM: seed {seed}: {total} decode-order frames, {hidden} \ + hidden, all pixel-exact vs the oracle, interintra_rect_hits={}", + crate::decode::interintra_rect_hits() - rect_before + ); + } + } + } matched += 1; } assert!( @@ -14175,9 +14234,15 @@ mod tests { "{NAME}: {matched} matches but zero UNIDIR_COMP_REFERENCE pairs read -- \ --enable-onesided-comp=1 never reached the uni_comp_ref alphabet" ); + assert!( + crate::decode::interintra_rect_hits() > rect_before, + "{NAME}: {matched} matches but zero RECTANGULAR interintra blocks fired -- the \ + square-only blend defect (lane-midcut r1) would pass this gate unseen" + ); eprintln!( - "{NAME}: {named_refusals} other-capability refusals, {matched} pixel-exact matches out of {n_attempts}, interintra_hits={} uni_comp_hits={}", + "{NAME}: {named_refusals} other-capability refusals, {matched} pixel-exact matches out of {n_attempts}, interintra_hits={} interintra_rect_hits={} uni_comp_hits={}", crate::decode::interintra_hits(), + crate::decode::interintra_rect_hits() - rect_before, crate::decode::uni_comp_hits() ); } diff --git a/lanes/midcut-r1.handoff.md b/lanes/midcut-r1.handoff.md new file mode 100644 index 00000000..9b28a396 --- /dev/null +++ b/lanes/midcut-r1.handoff.md @@ -0,0 +1,76 @@ +# lane-midcut r1 handoff (turn cap) + +## Verdict: (C) real reconstruction desync. NOT (A) alignment, NOT (B) film grain. + +Reproducer, hashed twice, 325 KB: `~/.cache/midcut-tmp/h2400.t2.obu` += `ffmpeg -ss 2400 -t 2 -c:v copy -f obu` on the 10-bit 3840x1608 stream +(sha256 2f62dd1f74bffe10973494404ee4d1a695d2d327b88fb1891c63452b5d47c895 for the +full 2 s cut) truncated to its first 2 frame OBUs (census7 `trunc.py`). +It holds the whole defect: key frame + first hidden alt-ref. + +### Measurements that separated A/B/C +1. (A) ruled out. ffmpeg decodes 261 frames from the 2 s cut; our OUT16 frames + are in display order and monotone in `order_hint` (HDR dump: 114 key, then + 115,116(show_existing 7),117,118(se 6),119,120,121...). An 8x8 cross-compare + of our 8 shown frames vs ffmpeg's 8 (grain off both sides) has NO near-zero + off-diagonal: every ours[i] is 13-16 MB from every ffmpeg[j]. Frames are + aligned; the census tool was measuring the truth. +2. (B) ruled out. `EC_AV1_NO_GRAIN=1` (added this round, `stream.rs`) vs + `ffmpeg -c:v libdav1d -filmgrain 0`: first_diff_frame=1, 13450726 bytes -- + the same mismatch as grain-on/grain-on (13458423). Grain is not it. +3. (C) located. Decode-order compare of `EC_AV1_PREFILT_DUMP16` ours vs the + instrumented aomdec: f0 (key) EXACT, f1 (hidden ARF) 4386319 luma px wrong, + confined to superblocks (0,17) and (0,58) at first, then spreading. + Pre-deblock and post-deblock diffs are identical -> reconstruction, not filters. + +### Root cause found and FIXED (commit 43e9909) +First bad pixel (17,1088) sat in the block aomdec reports as +`EC_MODE_VAL mi_row=4 mi_col=272 mode=13 ref0=1 ref1=0` -- ref1=0 is INTRA_FRAME, +i.e. an INTERINTRA block, and its footprint is 32x16. +`decode.rs interintra_blend` took ONE `side` and used it for the edge fetch, the +intra predictor's (bw,bh), `ii_size_scales` and the blend bounds. On a rect block +`side` is the LONGER dimension, so a 32x16 block got a 32x32 SMOOTH/DC predictor +built off 32 rows of left edge (16 of them not yet decoded). The error signature +matches exactly: rank-1 (sv 90 vs 18), exactly 0 on the block's first row, growing +downward -- the `sm_weights_h` divergence between height-32 and height-16 SMOOTH_PRED. +Fix: `interintra_blend(plane, x, y, bw, bh, stride, ..)` -- `edges_rect`/`predict` +at the true footprint, mask scale `128 / max(bw,bh)`, loop `bh x bw`, `pred` +indexed at the buffer stride. New `interintra_rect_hits()` counter + `decode_probe` +line + a delta-counted hard assert in +`a_real_aomenc_stream_with_interintra_decodes_pixel_exact` (NOT yet run: turn cap). +Result: superblock (0,17) is now exact; f1's first mismatch moves to (448,1152). + +### The NEXT defect (this is the exact next step) +Same 2-frame reproducer, frame 1, block mi_row=112 mi_col=288, a 32x16 NEARMV +block (`TRACE_RECT_SPLIT mi_row=108 mi_col=288 bw=32 bh=16`): + aomdec `EC_MODE_VAL mi_row=112 mi_col=288 mode=14 ref0=1 ref1=-1 mv0=(-32,-350) stack=4` + ours `EC_TRACE mi_row=112 mi_col=288 mv=(-40,-340) is_new_mv=false bsize=32` +Entropy stays in sync (later blocks' rng match; the frame does not refuse), so it +is the mv STACK content/order, not a symbol. Suspect the same class as the fix +above: an mv-stack scan taking the square `side` instead of the block's true +`write_w`/`write_h` (`find_mv_stack` call sites decode.rs:18005 and :30091 -- +check the bw4/bh4 arguments there first). Ladder: aomdec `EC_TRACE_MODE=1` +(`EC_MODE_MV` lines) vs ours for that mi; artifacts already on disk: +`~/.cache/midcut-tmp/am.txt` (aomdec, 2-frame cut) and `tr2.txt` (ours). + +### Re-measured table (24 offsets, 2 s cut truncated to 4 frame OBUs, +### decode-order bytes vs instrumented aomdec, AFTER the fix) +`~/.cache/midcut-tmp/cen/after.tsv`. f0 is exact at EVERY offset. ss=0 is fully +exact (0,0,0,0) -- and is the ONLY offset with `interintra_rect: 0`, which is why +the head cut never saw this bug. Every other offset still diverges at f1 or f2 +because of the NEARMV defect above; rect-interintra blocks per 4-frame prefix run +1..645. Sample: 0 -> 0,0,0,0 | 300 -> 0,2362684,5576522,10902022 | +2400 -> 0,11010633,7316581,15127483 | 4200 -> 0,607935,837,586 | +4800 -> 0,537,5724744,14232841 | 6000 -> 0,806,6192253,13728776. + +### Owed / not done (turn cap) +- deferred: run `a_real_aomenc_stream_with_interintra_decodes_pixel_exact` with the + new rect assert (`cargo test -p ec-av1 --lib interintra`) -- unblocked by a free + turn; `cargo check -p ec-av1 --lib` is CLEAN on this tree. +- deferred: full suite. A run was started under unit `midcut-suite-r1-1788371174` + on commit 43e9909 (log `$HOME/.cache/midcut-suite.log`) and had not reached + `test result` at the cap. +- deferred: no fixture pinned. The film prefix is NOT pixel-exact yet (the NEARMV + defect), so a hard-counter gate on it would have to assert a mismatch; pin it + once the mv-stack defect is fixed. +- no refusal was lifted or moved; refusal_inventory/gate_coverage untouched. diff --git a/lanes/midcut-r2.handoff.md b/lanes/midcut-r2.handoff.md new file mode 100644 index 00000000..df8f7526 --- /dev/null +++ b/lanes/midcut-r2.handoff.md @@ -0,0 +1,71 @@ +# lane-midcut r2 handoff (coordinator turn cap) + +Tip: lane-midcut, merged main (243f125) cleanly at STEP 0 (decode.rs/stream.rs auto-merged, `cargo check -p ec-av1` clean). + +## r1's named defect was STALE on both counts +1. `find_mv_stack` call sites decode.rs:20959 and :23046 ALREADY pass + `bw4 = write_w/4`, `bh4 = write_h/4` (lane-rect r2 did that). No `side, side` + remains at any single-ref/compound mv-stack site; the sub-8 leaf sites pass + the literal `1,1` / `2,2` libaom uses. Nothing to fix there. +2. The mv stack at mi(112,288) is IDENTICAL to aomdec's, entry for entry: + i0 (-24,-352) w=700 | i1 (-32,-350) w=664 | i2 (-40,-340) w=644 | i3 (-20,-360) w=4 + (both decoders, both stack=4). Only the DRL index differed, because the + entropy state at that block already differed (aomdec EC_MODE rng=56215 vs + ours 41892) -- r1's "entropy in sync" premise was wrong. It was a downstream + symptom, never a defect. + +## Root cause found and FIXED (commit cde8893) +Reproducing this cut now needs `EC_INTRA16X4_DECODE=1` (main re-added the +16x4-in-inter refusal); without it the probe refuses and every trace truncates. + +First real divergence in frame 1 (2-frame cut, decode order): the 32x8 INTRA +strip at mi(118,280), inside an inter frame, reading its `tx_depth` symbol. + aomdec: `EC_ISTEP mi_row=118 mi_col=280 name=tx_depth val=0 ctx=2 cat=2 rng=63652` + ours : `EC_TXCTX mi_row=118 mi_col=280 w=32 h=8 above_px=16 left_px=16 ctx=1` +Both entered at rng 42394 (the `use_filter_intra` rung matches exactly), so the +ROW of `tx_size_cat2` is the whole defect (class wrong-alphabet-same-value: the +value is 0 in both, only the range moves). + +`tx_size_context_rect` is the KEY FRAME approximation of libaom +`get_tx_size_context` (`pred_common.h:342`): it reads the deblock tx grid and +never applies "an INTER neighbour contributes its BLOCK size, not its transform +size". The above neighbour here is the inter 32x8 at mi(116,280) whose var-tx +tree had split to 16-wide TUs, so libaom sees 32 >= 32 (above=1) while we saw +16 >= 32 (above=0). The 1:4 16x4 strip already branched to +`tx_size_context_txfm_rect` at its own call site (decode.rs:9116); the other six +rect intra readers did not. Fix = one branch inside `tx_size_context_rect` +itself (decode.rs:6737) keyed on `INTRA_IN_INTER_MODE`, so every call site +inherits it. + +### Measured effect (EVIDENCE lines) +EVIDENCE: ~/.cache/midcut-tmp/{m_am.txt,m_o2.txt} | greedy in-order match of every +`EC_MODE mi_row= mi_col= rng=` line, aomdec vs ours, 2-frame cut | first mismatch +moved from aom idx 1998 (mi 120,272) to ALL MATCH 6871/6871 inter blocks. +EVIDENCE: ~/.cache/midcut-tmp/d/{our,aom}.f{0,1} (EC_AV1_PREFILT_DUMP16, both +decoders, regenerated this round) | numpy plane compare | f0 EXACT; f1 luma +4386319 -> 115 wrong samples, U 342, V 860, every delta |1|, luma bbox rows +552..1552 cols 488..969. + +## Also added (compiles, NOT yet gated -- next agent's first job) +`decode::intra_rect_in_inter_txctx_override_hits()` (decode.rs, next to +`intra_rect_in_inter_split_tx_hits`): counts ONLY the rect-intra-in-inter blocks +whose ctx actually MOVED under the override, i.e. the blocks the bug mis-read -- +a plain "rect intra in inter" tally is green on the buggy code too +(class gate-blind-to-feature). + +## Exact next steps +1. Print the new counter in `crates/ec-av1/examples/decode_probe.rs` (model: + the `interintra_rect:` line at :46) and hard-assert a positive delta in + `intra_rect_in_inter_split_tx_gate` / `intra_rect_in_inter_gate` + (stream.rs:5639 / :29785, both bit depths). If neither arm fires the counter, + add an aomenc arm with rect partitions + tx-size search on (the override only + moves the row once a neighbour's var-tx tree splits). +2. Chase the 115/342/860 |1| residue in frame 1 (entropy is now provably exact, + so it is pure reconstruction: MC rounding or an intra edge, luma bbox above). +3. Re-run the 24-offset decode-order table (`~/.cache/midcut-tmp/cen/`, r1's + scripts; the r1 table `cen/after.tsv` is now stale) and report how many + offsets have frame 1 exact. +4. Then the named gates (mv_stack, interintra, rect, hidden_arf, + refusal_inventory, gate_coverage) and the suite unit. None was run this round. +5. No fixture pinned: frame 1 is not exact yet (residue above). +6. No refusal lifted or moved; refusal_inventory/gate_coverage untouched. diff --git a/lanes/midcut-r3.handoff.md b/lanes/midcut-r3.handoff.md new file mode 100644 index 00000000..eb97dcdf --- /dev/null +++ b/lanes/midcut-r3.handoff.md @@ -0,0 +1,115 @@ +# lane-midcut r3 handoff -- dedup done, the rect chroma WARP guard was the residue's bulk + +Branch `lane-midcut`, worktree `edith_codecs-midcut`, +`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-midcut`. Tip: `d93a149b`. +Reproduction of every cut here needs `EC_INTRA16X4_DECODE=1`. + +## STEP 0 -- merge + DEDUP VERDICT: my override was redundant, dropped + +`git merge 75b3a1d` (lane-t900 r3 tip, already containing main `243f125`): +clean auto-merge (decode.rs / stream.rs / decode_probe.rs). + +lane-t900 r2 switched EVERY rect intra reader's own call site to +`tx_size_context_txfm_rect` under `INTRA_IN_INTER_MODE`, so after the merge my +`cde8893` branch INSIDE `tx_size_context_rect` was unreachable: all seven +remaining `tx_size_context_rect` calls sit in the `else` arm of exactly that +condition (grep `tx_size_context_txfm_rect|tx_size_context_rect` in decode.rs). +Removed it (`d41cbc51`); kept the counter by moving +`intra_rect_in_inter_txctx_override_hits` INTO `tx_size_context_txfm_rect`, +where it still counts only blocks whose CDF row the deblock-grid approximation +would have read differently. Kept the r1 interintra rect blend (`43e9909`). + +Verification with t900's fix alone (no override anywhere): the 2-frame cut +`~/.cache/midcut-tmp/h2400.t2.obu`, decode-order PREFILT16 compare vs +instrumented aomdec -- frame 0 EXACT, frame 1 wrong-sample count 1317 +(Y 115, U 342, V 860), i.e. bit-identical to what my own override produced. +No site needs both. + +## STEP 1 -- ROOT CAUSE of the chroma residue (fixed, `8043ad54`) + +`decode_inter_block` allocates a SQUARE prediction buffer and gated the warp +per plane on `chroma_side >= 8` -- the BUFFER's side. libaom +`av1_init_warp_params` bails per PLANE at `block_width < 8 || block_height < 8` +on the BLOCK's dims, so the 8x4 / 4x8 chroma of a 16x8 / 8x16 luma block keeps +the translational prediction. Every rect block with a local or global warp +warped its chroma where libaom does not. Guards are now `warp_chroma_ok = +write_chroma_w >= 8 && write_chroma_h >= 8` (5 sites: 4 compound + 1 +single-ref) and `warp_luma_ok = write_w >= 8 && write_h >= 8` (3 luma sites). +Class: rectchroma2 / narrow-block-sharp-kernel (dims read off the enclosing +square buffer). The 8x8-leaf reader (`CHROMA_SIDE >= 8`, const-generic) was +already correct and is untouched. + +Frame 1 of the 2-frame cut: **1317 -> 126 wrong samples (Y 115, U 11, V 0)**. + +## RESIDUE STATE (126 samples, exact coordinates -- do not re-bisect) + +Three luma clusters + one chroma cluster, all in decode-order frame 1 of +`~/.cache/midcut-tmp/h2400.t2.obu` (dumps kept at `~/.cache/midcut-tmp/d2/`): + +| cluster | px | n | shape | +|---|---|---|---| +| SB(8,15) | y 552..559, x 960..969 | 18 | dithered +-1 | +| SB(9,7) | y 576..607, x 484..500 | 79 | a DIAGONAL +-1/+-2 band | +| SB(24,10) | y 1549..1552, x 647..658 | 18 | +1/+2 wedge | +| U | rows 800..803, cols 1216..1219 | 11 | -1..-2 | + +Every one of those blocks is an INTRA block inside the INTER frame, and every +one is RECT (`EC_TRACE_MODE_STEP` at those mi): +* SB(8,15) -> mi(136,240) `fn=rect bw=16 bh=32`, `mode=9` (SMOOTH), tx_depth 0. +* SB(9,7) -> mi(144,120) `fn=rect bw=8 bh=16` mode=4 angle_y=+2 (directional), + mi(144,122) `bw=8 bh=16` filter-intra, mi(144,124) `fn=sq side=16` mode=6 + angle_y=-2. +The diagonal band under a directional mode plus a dithered edge under SMOOTH is +the signature of ONE wrong edge sample, not a wrong predictor: suspect the +edge availability / reach for a RECT intra block inside an inter frame +(`n_top`/`n_left`, has-top-right, or the intra edge filter strength/upsample +computed from the square side rather than `bw x bh` -- `intra.rs:483 +directional`, `intra_edge_filter_strength`, `use_intra_edge_upsample`). +Classes to check first: reach-is-per-transform-unit, visit-order-changes- +availability, context-read-from-one-cell. + +## STEP 2 -- gate/counter wiring state + +* `intra_rect_in_inter_txctx_override_hits` compiles and counts in + `tx_size_context_txfm_rect`; it is **not yet printed by decode_probe and not + yet asserted by any gate** (turn cap). Next: print it next to + `interintra_rect:` in `crates/ec-av1/examples/decode_probe.rs:46` and assert a + positive delta in `intra_rect_in_inter_split_tx_gate` / `intra_rect_in_inter_gate`. +* `a_real_aomenc_stream_with_interintra_decodes_pixel_exact` was RED on this + branch: its recipe spells `--enable-rect-partitions=0 --min-partition-size=32`, + so r1's `interintra_rect_hits` delta assert was UNSATISFIABLE (40 pixel-exact + matches, counter 0). Fixed with a RECT ARM (`d93a149b`) that re-encodes the + same source with `--enable-rect-partitions=1 --min-partition-size=8 + --max-partition-size=64` APPENDED (last flag wins) and compares every + decode-order frame vs aomdec; seed 46's arm fires 4 rect interintra blocks. + Gate green (1 passed, 11.7 s). +* NO fixture pinned: frame 1 is still 126 samples off, so + `crates/ec-av1/fixtures/reelb_midcut_arf_witness.obu` and its decode-order gate + must wait for exactness. No refusal lifted; `refusal_inventory.rs` / + `gate_coverage.rs` untouched. + +## Gates run this round (per-name, systemd units) + +`$HOME/.cache/midcut-gates-r3.log` (at `d41cbc51`): `hidden_arf` 1 passed; +`rect64_corner_tus` 1 passed; `interintra` FAILED (the vacuous assert above, +now fixed); `1to4` / `refusal_inventory` / `gate_coverage` were still running at +the cap -- RE-RUN THEM at the tip. Full suite NOT run (coordinator: no suite). + +## 24-offset decode-order table (`~/.cache/midcut-tmp/cen/after_r3.tsv`) + +Written by `~/.cache/midcut-tmp/cen/run_r3.sh` (adds `EC_INTRA16X4_DECODE=1`, +which the r2 script lacked). FINISHED: 24 offsets, frame 0 EXACT at all 24, +frame 1 EXACT at **2** (0 s and 5100 s -- 5100 s went 2300495 -> 0), 12 of 24 +offsets improved on frame 1, the rest unchanged (their frame-1 defect is not +warp-shaped). Best movers: 1800 s 11612125 -> 1151, 2400 s 11010633 -> 126, +3300 s 10663109 -> 27, 3900 s 4665360 -> 522 (its frame 3 is now 0). One offset +(1500 s) still REFUSES on the Golomb tail. Nine offsets still carry a +multi-million-sample frame among f1..f3 (300/900/2100/6000/6300/6600 ...), i.e. +at least one more entropy-level defect remains off this cut. + +## Artifacts + +`~/.cache/midcut-tmp/`: `h2400.t2.obu` (2-frame cut, 4K 10-bit), +`d2/{aom,our}.f{0,1}` (PREFILT16 dumps both decoders, at the tip), +`m5.txt`/`m6.txt` (our `EC_TRACE_MODE`+`EC_TRACE_MODE_STEP` at the residue mi), +`cen/run_r3.sh`, `cen/after_r3.tsv`.