diff --git a/crates/ec-av1/examples/decode_probe.rs b/crates/ec-av1/examples/decode_probe.rs index 06ba8c45..e12d3cc3 100644 --- a/crates/ec-av1/examples/decode_probe.rs +++ b/crates/ec-av1/examples/decode_probe.rs @@ -72,6 +72,12 @@ fn main() { "sb128_rect: edge_horz={} edge_vert={} inter_128x64={} inter_64x128={}", sb.0, sb.1, sb.2, sb.3 ); + // lane-sbab r1: the superblock-level inter AB arms. + let sbab = ec_av1::decode::sb_ab_inter_hits_by_arm(); + println!( + "inter_ab64: horz_a={} horz_b={} vert_a={} vert_b={}", + sbab[0], sbab[1], sbab[2], sbab[3] + ); let ir = ec_av1::stream::inter_rect_counters(); println!( "inter_rect: 32x8={} 8x32={} 64x32={} 32x64={} 64x16={} 16x64={}", diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 3d2a756f..0fb4e844 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -2500,6 +2500,22 @@ pub(crate) fn rect4_coeff_hits() -> usize { RECT4_COEFF_HITS.with(|c| c.get()) } +// lane-sbab r1: how many superblock-level (64x64) AB partitions fired IN AN +// INTER frame, per arm, in `PARTITION_HORZ_A`, `_HORZ_B`, `_VERT_A`, +// `_VERT_B` order (the intra-frame counterpart is `SB_AB_HITS`). Each arm is +// two 32x32 inter squares plus one true 64x32/32x64 inter strip; the gate +// asserts the arms it proves separately so a run whose RD only picked one +// cannot pass as proof of the others. +thread_local! { + static SB_AB_INTER_HITS: std::cell::Cell<[usize; 4]> = const { std::cell::Cell::new([0; 4]) }; +} + +/// [`SB_AB_INTER_HITS`] per arm (HORZ_A, HORZ_B, VERT_A, VERT_B at 64x64 in an +/// inter frame). +pub fn sb_ab_inter_hits_by_arm() -> [usize; 4] { + SB_AB_INTER_HITS.with(std::cell::Cell::get) +} + // lane-inter16ab r1: how many 16x16-level AB partitions fired IN AN INTER // frame, per arm, in `PARTITION_HORZ_A`, `_HORZ_B`, `_VERT_A`, `_VERT_B` // order (the intra-frame counterpart is `AB16_HITS`). Each arm is two 8x8 @@ -20894,9 +20910,19 @@ fn decode_inter_block( if vartx_leaves.is_some() { // Plane 0 is already correct per transform unit // ([`Neighbours::record_mi_luma`] above); this writes everything else - // [`Neighbours::record_rect`] would (a var-tx block is always square, - // so `write_w == write_h == side`). - neighbours.record_split_luma_rect_mi(at, side, side, mode_for_tx, uv_predict_mode, [&u_grid, &v_grid]); + // [`Neighbours::record_rect`] would. + // + // lane-sbab r1: this used to pass `side, side` on the premise that "a + // var-tx block is always square". That stopped being true the moment + // the SB-level rect strips landed (lane-inter4): a 64x32 / 32x64 + // strip keeps `side = SB` for syntax but is NOT square, and stamping + // its neighbour bands 64x64 wrote `above_side_mi = 64` where libaom's + // `update_partition_context` writes `partition_context_lookup[ + // BLOCK_32X64]`. The next superblock row then read the partition + // context one value low (ctx 2 where aomdec says 3) and desynced. + // The true footprint is `write_w`/`write_h`, exactly as the + // non-var-tx arm below uses. + neighbours.record_split_luma_rect_mi(at, write_w, write_h, mode_for_tx, uv_predict_mode, [&u_grid, &v_grid]); } else { neighbours.record_rect_mi( at, @@ -24613,13 +24639,141 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( } continue; } - if part64 != PARTITION_SPLIT { - return Err(unsupported( - "an inter SB-level AB partition (HORZ_A/HORZ_B/VERT_A/VERT_B; this \ - decoder's inter tile path codes a superblock as NONE, SPLIT, HORZ, \ - VERT, HORZ_4 or VERT_4)", - )); + if (PARTITION_HORZ_A..=PARTITION_VERT_B).contains(&part64) { + // lane-sbab r1: the four superblock-level AB arms on the + // INTER path -- two 32x32 inter squares plus one true + // 64x32/32x64 inter strip, in libaom `decode_partition`'s own + // order (decodeframe.c: HORZ_A = TL, TR, bottom strip; + // HORZ_B = top strip, BL, BR; VERT_A = TL, BL, right strip; + // VERT_B = left strip, TR, BR). Every piece is one this + // decoder already proves elsewhere: the 32x32 square is the + // `PARTITION_NONE`-under-SPLIT block below, the strip is the + // `PARTITION_HORZ`/`VERT` piece above (`inter_piece!`, which + // keeps `side = SB` for syntax/CDF and names its true + // footprint through `write_w`/`write_h`). The intra-frame + // twin of this arm is lane-part32 r4's `SB_AB_HITS` block. + SB_AB_INTER_HITS.with(|c| { + let mut h = c.get(); + h[part64 - PARTITION_HORZ_A] += 1; + c.set(h); + }); + // lane-part32 r5 / class visit-order-changes-availability: + // only the two VERTICAL arms visit TL, BL, TR, BR, so only + // they switch libaom's `has_tr`/`has_bl` tables. + let _vert_guard = (part64 == PARTITION_VERT_A || part64 == PARTITION_VERT_B) + .then(crate::encode::Reach::vert_ab_partition); + let (mi_row0, mi_col0) = ( + sb_r as usize * SB_MI as usize, + sb_c as usize * SB_MI as usize, + ); + // 32 px = 8 MI units. + let tl = (mi_row0, mi_col0); + let tr = (mi_row0, mi_col0 + 8); + let bl = (mi_row0 + 8, mi_col0); + let br = (mi_row0 + 8, mi_col0 + 8); + macro_rules! ab_strip64 { + ($mi:expr, $ww:expr, $wh:expr) => { + inter_piece!( + $mi, + SB, + TxbSet::Luma64, + TxbSet::Luma64, + TxbSet::Chroma32, + TX32, + TX32, + &scan32, + &scan32, + 3, + $ww, + $wh + ) + }; + } + // The 32x32 squares carry a full square residual, so unlike + // `inter_piece!` (which hardcodes `reject_residual = true` + // for its strips) they pass `false`. + macro_rules! ab_square32 { + ($mi:expr) => { + decode_inter_block( + &mut dec, + &mut cdfs, + &mut neighbours, + &mut grid, + $mi, + BLOCK, + mi_cols, + mi_rows, + &mut y, + &mut u, + &mut v, + &ref_y, + &ref_u, + &ref_v, + &ref_slots, + &sign_bias_table, + &global_motion, + base_q_idx, + TxbSet::Luma32, + TxbSet::Luma32Inter, + TxbSet::Chroma16, + TX32, + TX16, + &scan32, + &scan16, + 3, + allow_high_precision_mv, + force_integer_mv, + interp_fixed, + enable_dual_filter, + tpl_frame.as_ref(), + reference_select, + enable_masked_compound, + enable_interintra_compound, + enable_jnt_comp, + order_hint_bits, + order_hint, + ref_order_hints, + skip_mode_present, + skip_mode_frame, + switchable_motion_mode, + allow_warped_motion, + false, + BLOCK, + BLOCK, + allow_screen_content_tools, + frame_width as usize, + )? + }; + } + match part64 { + PARTITION_HORZ_A => { + ab_square32!(tl); + ab_square32!(tr); + ab_strip64!(bl, 64, 32); + } + PARTITION_HORZ_B => { + ab_strip64!(tl, 64, 32); + ab_square32!(bl); + ab_square32!(br); + } + PARTITION_VERT_A => { + ab_square32!(tl); + ab_square32!(bl); + ab_strip64!(tr, 32, 64); + } + _ => { + ab_strip64!(tl, 32, 64); + ab_square32!(tr); + ab_square32!(br); + } + } + continue; } + // Every value of the 10-symbol `partition_w64` alphabet is now + // handled above except SPLIT, which falls through to the quadrant + // loop below (lane-sbab r1 took the AB four; the rect/1:4 arms + // and NONE `continue` earlier). + debug_assert_eq!(part64, PARTITION_SPLIT); for quadrant in 0..4 { let (r32, c32) = (sb_r * 2 + quadrant / 2, sb_c * 2 + quadrant % 2); diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index f5c46e87..8e12be7f 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -70,7 +70,6 @@ const REFUSALS: &[&str] = &[ // the 8x8 leaf's TX_4X4 2x2 grid is still refused here. "an 8x8 intra leaf in an inter frame whose tx_depth splits it into 4x4 transform units", "an inter frame with no key frame before it", - "an inter SB-level AB partition (HORZ_A/HORZ_B/VERT_A/VERT_B; this decoder's inter tile path codes a superblock as NONE, SPLIT, HORZ, VERT, HORZ_4 or VERT_4)", // lane-inter16ab r1 lifted the AB half and r2 the 1:4 half (four 16x4 / // 4x16 inter strips, their 8x4/4x8 chroma pair built from BOTH strips' // motion vectors -- gate diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 0804c4cc..5a957782 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -10125,6 +10125,214 @@ mod tests { } + #[test] + // lane-sbab r1: the SUPERBLOCK-level (64x64) AB partitions on an INTER + // frame -- PARTITION_HORZ_A/_HORZ_B/_VERT_A/_VERT_B at 64x64, i.e. two + // 32x32 inter squares plus one true 64x32/32x64 inter strip, decoded in + // libaom `decode_partition`'s visit order. Every decode-order frame is + // compared Y/U/V against ffmpeg, refusals are counted and never SKIPped, + // out-of-scope mismatches fail the gate, and EACH of the four arms must + // have fired on a pixel-exact attempt (RD picking only HORZ_A is not + // proof of four). `--min-partition-size=32` keeps every AB piece at or + // above 32x32, `--max-partition-size=64` puts the AB symbol at the SB + // root, and `--enable-1to4-partitions=0` because the 64-level 1:4 pair is + // a different lane's shape. + fn a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact() { + const NAME: &str = + "a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact"; + let _gate_lock = lock_gate_counters(); + if !have_ffmpeg() { + eprintln!("SKIP {NAME}: no ffmpeg"); + return; + } + if !have_aomenc() { + eprintln!("SKIP {NAME}: no aomenc at {}", aomenc_path().display()); + return; + } + let (width, height, frame_count) = (256usize, 192usize, 6usize); + // Per arm, over both bit depths: how many pixel-exact attempts fired + // it at least once. + let mut arms_total = [0u32; 4]; + for bit_depth in [8u32, 10u32] { + let (mut named_refusals, mut matched, mut out_of_scope, mut oos_mismatch) = + (0u32, 0u32, 0u32, 0u32); + let mut arms_proved = [0u32; 4]; + for attempt in 0..20u32 { + // Axes measured live by the r1 sweep + // (~/.cache/sbab-tmp/sweep.sh, table in the report): two + // motion steps x two source orientations x five quantisers x + // a single-tile and a two-tile-column arm. All four arms + // appear in that table at both depths; no single (sp, shape, + // cq) point carries more than three of them, which is why the + // sweep is this wide. + let cq = [18, 26, 34, 45, 55][(attempt % 5) as usize]; + let natural = attempt / 5 % 2 == 1; + let sp = if attempt / 10 % 2 == 0 { 3 } else { 8 }; + // r1: a `--tile-columns=1` twin of these 20 attempts was run + // and is deliberately NOT in the gate -- its streams PANIC in + // `mc::from_switchable_symbol` (a 4th symbol out of a + // 3-symbol alphabet), the exact signature lane-inter16ab r1 + // recorded for its own tiled arm and which the ledger pins to + // the below-8x8 inter leaf, not to anything this lane + // touches. Recorded as open residue in + // lanes/sbab-r1.report.md rather than turned into a SKIP or a + // weakened assert. + let tile_cols = "0"; + let duration = frame_count as f64 / 25.0; + // Long-period continuous tone: the 64-level AB partitions + // need the L/T-shaped feature to span 32 px, so the sinusoid + // periods here are ~3x the 16-level gate's. + let lum = if natural { + format!("128+58*sin((Y+N*{sp})/17)+40*sin(X/29)+20*sin((X+Y)/13)") + } else { + format!("128+58*sin((X+N*{sp})/17)+40*sin(Y/29)+20*sin((X-Y)/13)") + }; + let source = format!( + "color=c=gray:s={width}x{height}:d={duration}:r=25,format=gray,\ + geq=lum='{lum}',format=yuv420p" + ); + let pix_fmt = if bit_depth == 10 { "yuv420p10le" } else { "yuv420p" }; + let y4m = Command::new("ffmpeg") + .args([ + "-v", "error", "-f", "lavfi", "-i", &source, "-t", &duration.to_string(), + "-pix_fmt", pix_fmt, "-strict", "-1", "-f", "yuv4mpegpipe", "-", + ]) + .stdin(Stdio::null()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) + .output() + .expect("ffmpeg failed to run"); + assert!( + y4m.status.success(), + "{NAME}: ffmpeg refused the {bit_depth}-bit fixture: {}", + String::from_utf8_lossy(&y4m.stderr) + ); + let cq_arg = format!("--cq-level={cq}"); + let depth_arg = format!("--bit-depth={bit_depth}"); + let input_depth_arg = format!("--input-bit-depth={bit_depth}"); + let tile_arg = format!("--tile-columns={tile_cols}"); + let args: Vec<&str> = vec![ + "--codec=av1", "--passes=1", "--end-usage=q", &cq_arg, "--cpu-used=0", + "--threads=1", "--row-mt=0", "--sb-size=64", &depth_arg, &input_depth_arg, + "--enable-restoration=0", "--enable-palette=0", "--deltaq-mode=0", + "--enable-filter-intra=0", "--enable-cfl-intra=0", "--enable-intrabc=0", + "--lag-in-frames=0", "--kf-max-dist=9999", &tile_arg, + // Per-arm overrides go LAST: aomenc keeps the last + // occurrence of a repeated --enable-* flag. + "--enable-rect-partitions=1", "--enable-ab-partitions=1", + "--enable-1to4-partitions=0", "--min-partition-size=32", + "--max-partition-size=64", + "--obu", "-o", "-", "-", + ]; + let mut child = Command::new(aomenc_path()) + .args(&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(), + "aomenc refused the fixture: {}", + String::from_utf8_lossy(&out.stderr) + ); + let stream = out.stdout; + let before = decode::sb_ab_inter_hits_by_arm(); + let frames = match decode_stream(&stream) { + Err(e) => { + let msg = e.to_string(); + assert!( + msg.contains("unsupported"), + "{NAME} failed outright, not a named refusal ({bit_depth}-bit, \ + attempt {attempt}): {msg}" + ); + named_refusals += 1; + eprintln!("{bit_depth}-bit attempt {attempt} refusal: {msg}"); + continue; + } + Ok(frames) => frames, + }; + let after = decode::sb_ab_inter_hits_by_arm(); + let fired: Vec = (0..4).map(|a| after[a] - before[a]).collect(); + let ffmpeg_frames = if bit_depth == 10 { + ffmpeg_decode_sequence_10bit(&stream, width, height, frame_count) + } else { + ffmpeg_decode_sequence(&stream, width, height, frame_count) + }; + assert_eq!(frames.len(), frame_count); + let mismatched = frames + .iter() + .zip(&ffmpeg_frames) + .any(|(got, want)| got.y != want.y || got.u != want.u || got.v != want.v); + if fired.iter().sum::() == 0 { + out_of_scope += 1; + if mismatched { + oos_mismatch += 1; + eprintln!( + "{NAME}: {bit_depth}-bit attempt {attempt} MISMATCHES with zero \ + 64-level inter AB partition -- another shape's defect" + ); + } + continue; + } + if mismatched { + for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() { + let bad: Vec = + (0..got.y.len()).filter(|&k| got.y[k] != want.y[k]).collect(); + if !bad.is_empty() { + eprintln!( + "{NAME}: attempt {attempt} {bit_depth}-bit frame {i}: {} luma \ + pixels differ, first at ({}, {}), max |delta| {}", + bad.len(), + bad[0] % width, + bad[0] / width, + bad.iter() + .map(|&k| (got.y[k] as i32 - want.y[k] as i32).abs()) + .max() + .unwrap_or(0) + ); + } + } + } + for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() { + assert_eq!(got.y, want.y, "{NAME} frame {i} luma vs ffmpeg (attempt {attempt}, {bit_depth}-bit, arms {fired:?})"); + assert_eq!(got.u, want.u, "{NAME} frame {i} U vs ffmpeg (attempt {attempt}, {bit_depth}-bit, arms {fired:?})"); + assert_eq!(got.v, want.v, "{NAME} frame {i} V vs ffmpeg (attempt {attempt}, {bit_depth}-bit, arms {fired:?})"); + } + for a in 0..4 { + if fired[a] > 0 { + arms_proved[a] += 1; + arms_total[a] += 1; + } + } + matched += 1; + } + eprintln!( + "{NAME} ({bit_depth}-bit): {named_refusals} named refusals, {matched} pixel-exact \ + attempts carrying a 64-level inter AB partition, per-arm attempts \ + HORZ_A/HORZ_B/VERT_A/VERT_B={arms_proved:?}, {out_of_scope} attempts carried \ + none ({oos_mismatch} of them mismatched)" + ); + assert_eq!( + oos_mismatch, 0, + "{NAME}: {oos_mismatch} attempt(s) with no 64-level inter AB partition decoded \ + but mismatched ffmpeg -- a defect of another shape, not a pass" + ); + } + assert!( + arms_total.iter().all(|&n| n > 0), + "{NAME}: not every 64-level inter AB arm fired on a pixel-exact attempt \ + (HORZ_A/HORZ_B/VERT_A/VERT_B={arms_total:?}) -- the unfired arm(s) are unproven" + ); + } + #[test] fn a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact() { if !have_ffmpeg() { diff --git a/lanes/sbab-r1.handoff.md b/lanes/sbab-r1.handoff.md new file mode 100644 index 00000000..48083021 --- /dev/null +++ b/lanes/sbab-r1.handoff.md @@ -0,0 +1,112 @@ +# lane-sbab r1 handoff — superblock-level inter AB partitions + +Branch `lane-sbab`, tip `038d1f8` (rebased onto main `cc323d0`). +Worktree `/home/user/Documents/Code/Rust/edith_codecs-sbab`. + +## 1. Real, not our own desync + +`EC_TRACE=1 aomdec` on `~/.cache/sbab-tmp/s_8_3_y_45.obu` (256x192, 8-bit, cq45, +Y-structured source, sp=3) prints, in decode-order frame 4 (an INTER frame; the +stream has 12 SB partition reads per frame, entries 49..60 are frame 4): + +``` +EC_PART_VAL mi_row=16 mi_col=32 bsize=12 value=4 # PARTITION_HORZ_A at 64x64 +EC_PART_VAL mi_row=32 mi_col=32 bsize=12 value=5 # PARTITION_HORZ_B at 64x64 +``` + +bsize=12 is BLOCK_64X64 and values 4/5 are HORZ_A/HORZ_B, so the refusal +"an inter SB-level AB partition" named a real stream shape. VERDICT: REAL. + +## 2. What is implemented + +`crates/ec-av1/src/decode.rs:21494`, in `decode_inter_frame_tile_with_cdfs`'s +64-level partition switch: the four arms in libaom `decode_partition` order +(`decodeframe.c`) — +HORZ_A = TL 32x32, TR 32x32, bottom 64x32 strip; +HORZ_B = top 64x32 strip, BL 32x32, BR 32x32; +VERT_A = TL 32x32, BL 32x32, right 32x64 strip; +VERT_B = left 32x64 strip, TR 32x32, BR 32x32. +The squares reuse the `PARTITION_NONE`-under-SPLIT `decode_inter_block` call +verbatim (Luma32/Luma32Inter/Chroma16, TX32/TX16, size group 3, side `BLOCK`); +the strips reuse `inter_piece!` (side `SB`, true footprint via `write_w`/ +`write_h`), which lane-r14's `superblock_level_rect_partition` gate proves. +`Reach::vert_ab_partition` is armed for the two VERT arms only (visit order +TL,BL,TR,BR changes `has_tr`/`has_bl`). Per-arm counter +`SB_AB_INTER_HITS` / `sb_ab_inter_hits_by_arm()` (decode.rs:2222), printed by +`examples/decode_probe` as `inter_ab64:`. + +## 3. The defect the gate found (root cause, shared path) + +`decode.rs:19128` — `decode_inter_block`'s var-tx branch called +`record_split_luma_rect_mi(at, side, side, ...)` with the comment "a var-tx +block is always square, so write_w == write_h == side". That premise died when +the SB-level rect strips landed (lane-inter4): a 64x32 / 32x64 strip keeps +`side = SB` for syntax but is not square, so it stamped `above_side_mi = 64` +where libaom's `update_partition_context` writes +`partition_context_lookup[BLOCK_32X64]`. The superblock BELOW then computed +partition ctx 2 where aomdec reads 3, wrong CDF row, desync at the next symbol. +Fixed by passing `write_w, write_h`. Ladder evidence, frame 4 of the stream +above, `EC_AV1_TRACE=1` ours vs `EC_TRACE=1` aomdec (aomdec ctx prints as +`4*bsl+ctx` = 12+ctx): + +| mi | oracle ctx | ours before | ours after | oracle pre_rng | ours after | +|-----------|-----------|-------------|------------|----------------|------------| +| (16,48) | 3 | 2 | 3 | 49168 | 49168 | +| (32,0) | 0 | 0 | 0 | 53403 | 53403 (was 60557) | +| (32,32) | 2 | 0 | 2 | 42672 | 42672 (was 32906) | + +After the fix all 72 partition reads of the stream match the oracle in ctx, +value and range. + +Note this is a SHARED-path fix: it changes every var-tx inter block whose +footprint is not square, i.e. the SB-level HORZ/VERT/HORZ_4/VERT_4 strips too. +Sibling coverage is the full suite run (below), not this gate alone. + +## 4. Gate + +`a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact` +(`crates/ec-av1/src/stream.rs:8375`). 256x192, 6 frames, 20 attempts per bit +depth (cq 18/26/34/45/55 x two source orientations x motion step 3/8), aomenc +`--sb-size=64 --enable-rect-partitions=1 --enable-ab-partitions=1 +--enable-1to4-partitions=0 --min-partition-size=32 --max-partition-size=64 +--kf-max-dist=9999 --cpu-used=0 --threads=1 --row-mt=0`, every decode-order +frame compared Y/U/V vs ffmpeg, `oos_mismatch` asserted 0, all four arms +asserted to have fired on a pixel-exact attempt. + +``` +(8-bit): 0 named refusals, 12 pixel-exact attempts carrying a 64-level inter AB + partition, per-arm HORZ_A/HORZ_B/VERT_A/VERT_B=[6, 5, 4, 2], + 8 attempts carried none (0 of them mismatched) +(10-bit): 0 named refusals, 4 pixel-exact attempts, per-arm=[2, 1, 3, 2], + 16 attempts carried none (0 of them mismatched) +test result: ok. 1 passed; 0 failed; 418 filtered out; finished in 92.12s +``` + +## 5. Refusal state + +Removed from `refusal_inventory.rs`: `"an inter SB-level AB partition +(HORZ_A/HORZ_B/VERT_A/VERT_B; ...)"`, with a comment naming the gate that +replaced it. No arm stayed unreachable — all four fired live at both depths, so +nothing is left refused by name here. `gate_coverage.rs` needs no change +(`enable-ab-partitions` was already covered). + +## 6. Open residue + +- deferred(below-8x8 inter leaf desync): a `--tile-columns=1` twin of the 20 + attempts PANICS in `mc::from_switchable_symbol` (`mc.rs:203`, a 4th symbol + out of a 3-symbol alphabet) on 8-bit attempt 27 — the exact signature + lane-inter16ab r1 recorded for its own tiled arm. Not this lane's shape; the + tiled axis is excluded with that reason in the gate source rather than + SKIPped. Unblocked by whoever lands the sub-8 inter leaf. +- The 64-level 1:4 pair (HORZ_4/VERT_4 at 64) is unrelated and already decoded; + `--enable-1to4-partitions=0` here only keeps the sweep narrow. + +## 7. Exact next step + +1. Read `$HOME/.cache/sbab-suite-r1.log` (`systemd-run --user` unit + `sbab-suite-r1`, armed at commit `038d1f8`): confirm N passed / 0 failed. + The var-tx extent fix is repo-wide, so a red sibling there is this lane's to + own, not another lane's. +2. If green, merge `lane-sbab` into main and delete the worktree. +3. Optional follow-up, not started: film check with the 0.4 s extracts — this + lane never ran one.