forge
Explore
Log in

Don't you dare go Hollow

Wire the COMPOUND_WEDGE blend (comp_group_idx==1, compound_type==0)

Browse files at this commit

2803580d98ec1334d0e35987b4b9dcffaa839112Ahmet Kaan GümüşParent: 99ff391
  • feat
    • wire the COMPOUND_WEDGE blend (comp_group_idx==1, compound_type==0)
    • gate fires wedge live (mandelbrot diagonal content, dist-wtd-comp=0), 20/20 pixel-exact, 475 wedge hits
Show full message
feat(av1): wire the COMPOUND_WEDGE blend (comp_group_idx==1, compound_type==0); gate fires wedge live (mandelbrot diagonal content, dist-wtd-comp=0), 20/20 pixel-exact, 475 wedge hits
crates/ec-av1/src/decode.rsmodified+72 -57
@@ -215,6 +215,17 @@ pub(crate) fn masked_compound_hits() -> usize {
215 MASKED_COMPOUND_HITS.load(std::sync::atomic::Ordering::Relaxed)215 MASKED_COMPOUND_HITS.load(std::sync::atomic::Ordering::Relaxed)
216 }216 }
217 217
218+/// How many blocks decoded a real `COMPOUND_WEDGE` block (`comp_group_idx ==
219+/// 1`, `compound_type == 0`) -- lane-wedge r3's proof a gate fixture
220+/// actually exercised the wedge blend, not just the DIFFWTD half of
221+/// `MASKED_COMPOUND_HITS`.
222+static WEDGE_HITS: std::sync::atomic::AtomicUsize = std::sync::atomic::AtomicUsize::new(0);
223+
224+/// Current value of [`WEDGE_HITS`].
225+pub(crate) fn wedge_hits() -> usize {
226+ WEDGE_HITS.load(std::sync::atomic::Ordering::Relaxed)
227+}
228+
218 /// Current value of [`OBMC_HITS_8`].229 /// Current value of [`OBMC_HITS_8`].
219 pub(crate) fn obmc_hits_8() -> usize {230 pub(crate) fn obmc_hits_8() -> usize {
220 OBMC_HITS_8.load(std::sync::atomic::Ordering::Relaxed)231 OBMC_HITS_8.load(std::sync::atomic::Ordering::Relaxed)
@@ -5327,12 +5338,12 @@ fn decode_inter_block(
5327 } else {5338 } else {
5328 05339 0
5329 };5340 };
5330- // lane-maskcomp r2: `Some(mask_type)` only for a real5341+ // lane-maskcomp r2 / lane-wedge r3: `Some(mask_type)` for a
5331- // `COMPOUND_DIFFWTD` block (`comp_group_idx == 1`, `compound_type5342+ // `COMPOUND_DIFFWTD` block, `Some(mask)` (wedge codebook lookup)
5332- // == 1`) -- wedge (`compound_type == 0`) still refuses by name,5343+ // for a `COMPOUND_WEDGE` block -- exactly one of the two is set
5333- // its mask codebook unported (charter's mergeable-partial5344+ // when `comp_group_idx == 1`.
5334- // fallback).
5335 let mut diffwtd_mask_type: Option<u8> = None;5345 let mut diffwtd_mask_type: Option<u8> = None;
5346+ let mut wedge_mask: Option<&'static [u8]> = None;
5336 if comp_group_idx == 1 {5347 if comp_group_idx == 1 {
5337 // lane-maskcomp r1: `read_compound_type` (spec 5.11.25,5348 // lane-maskcomp r1: `read_compound_type` (spec 5.11.25,
5338 // libaom `decodemv.c` 1634-1656). `is_interinter_compound_used5349 // libaom `decodemv.c` 1634-1656). `is_interinter_compound_used
@@ -5350,20 +5361,21 @@ fn decode_inter_block(
5350 };5361 };
5351 let compound_type = dec.symbol(&mut cdfs.compound_type[wedge_bsize]);5362 let compound_type = dec.symbol(&mut cdfs.compound_type[wedge_bsize]);
5352 if compound_type == 0 {5363 if compound_type == 0 {
5353- // COMPOUND_WEDGE: mask codebook not ported (r2 scope).5364+ // COMPOUND_WEDGE: lane-wedge r3, codebook checksum-
5354- let _wedge_index = dec.symbol(&mut cdfs.wedge_idx[wedge_bsize]);5365+ // verified vs independent C dump (wedge.rs).
5355- let _wedge_sign = dec.literal(1);5366+ let wedge_index = dec.symbol(&mut cdfs.wedge_idx[wedge_bsize]);
5356- MASKED_COMPOUND_HITS.fetch_add(1, std::sync::atomic::Ordering::Relaxed);5367+ let wedge_sign = dec.literal(1);
5357- return Err(unsupported(5368+ WEDGE_HITS.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
5358- "a masked COMPOUND_REFERENCE block (comp_group_idx == 1, \5369+ wedge_mask = Some(
5359- COMPOUND_WEDGE) -- syntax consumed entropy-exact (compound_type/\5370+ crate::wedge::wedge_masks()
5360- wedge_idx/wedge_sign), but this decoder's wedge mask codebook is \5371+ .codebook(side)
5361- not ported (lane-maskcomp r2 scope: DIFFWTD only)",5372+ .mask(wedge_sign as usize, wedge_index as usize),
5362- ));5373+ );
5374+ } else {
5375+ // COMPOUND_DIFFWTD: `mask_type`, MAX_DIFFWTD_MASK_BITS==1.
5376+ let mask_type = dec.literal(1);
5377+ diffwtd_mask_type = Some(mask_type as u8);
5363 }5378 }
5364- // COMPOUND_DIFFWTD: `mask_type`, MAX_DIFFWTD_MASK_BITS==1.
5365- let mask_type = dec.literal(1);
5366- diffwtd_mask_type = Some(mask_type as u8);
5367 MASKED_COMPOUND_HITS.fetch_add(1, std::sync::atomic::Ordering::Relaxed);5379 MASKED_COMPOUND_HITS.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
5368 }5380 }
5369 // corner-cut (lane-av1comp r16/r17, lane-av1blend r1): r16/r175381 // corner-cut (lane-av1comp r16/r17, lane-av1blend r1): r16/r17
@@ -5653,18 +5665,20 @@ fn decode_inter_block(
5653 );5665 );
5654 let mut pred_y = vec![0u8; side * side];5666 let mut pred_y = vec![0u8; side * side];
5655 let mut diffwtd_mask_y = Vec::new();5667 let mut diffwtd_mask_y = Vec::new();
5656- if let Some(mask_type) = diffwtd_mask_type {5668+ // lane-wedge r3: `mask_y` is the DIFFWTD buffer just computed OR
5669+ // the wedge codebook lookup (comp_group_idx==1's two mutually
5670+ // exclusive branches) -- same [`mc::blend_masked_compound`] call
5671+ // either way, only the mask source differs.
5672+ let mask_y: Option<&[u8]> = if let Some(mask_type) = diffwtd_mask_type {
5657 diffwtd_mask_y = vec![0u8; side * side];5673 diffwtd_mask_y = vec![0u8; side * side];
5658 mc::diffwtd_mask(&inter0_y, &inter1_y, mask_type == 1, &mut diffwtd_mask_y);5674 mc::diffwtd_mask(&inter0_y, &inter1_y, mask_type == 1, &mut diffwtd_mask_y);
5675+ Some(diffwtd_mask_y.as_slice())
5676+ } else {
5677+ wedge_mask
5678+ };
5679+ if let Some(mask_y) = mask_y {
5659 mc::blend_masked_compound(5680 mc::blend_masked_compound(
5660- &inter0_y,5681+ &inter0_y, &inter1_y, mask_y, side, side, side, false, &mut pred_y,
5661- &inter1_y,
5662- &diffwtd_mask_y,
5663- side,
5664- side,
5665- side,
5666- false,
5667- &mut pred_y,
5668 );5682 );
5669 } else {5683 } else {
5670 mc::combine_compound(&inter0_y, &inter1_y, fwd_offset, bck_offset, &mut pred_y);5684 mc::combine_compound(&inter0_y, &inter1_y, fwd_offset, bck_offset, &mut pred_y);
@@ -5699,11 +5713,11 @@ fn decode_inter_block(
5699 &mut inter1_u,5713 &mut inter1_u,
5700 );5714 );
5701 let mut pred_u = vec![0u8; chroma_side * chroma_side];5715 let mut pred_u = vec![0u8; chroma_side * chroma_side];
5702- if diffwtd_mask_type.is_some() {5716+ if let Some(mask_y) = mask_y {
5703 mc::blend_masked_compound(5717 mc::blend_masked_compound(
5704 &inter0_u,5718 &inter0_u,
5705 &inter1_u,5719 &inter1_u,
5706- &diffwtd_mask_y,5720+ mask_y,
5707 side,5721 side,
5708 chroma_side,5722 chroma_side,
5709 chroma_side,5723 chroma_side,
@@ -5743,11 +5757,11 @@ fn decode_inter_block(
5743 &mut inter1_v,5757 &mut inter1_v,
5744 );5758 );
5745 let mut pred_v = vec![0u8; chroma_side * chroma_side];5759 let mut pred_v = vec![0u8; chroma_side * chroma_side];
5746- if diffwtd_mask_type.is_some() {5760+ if let Some(mask_y) = mask_y {
5747 mc::blend_masked_compound(5761 mc::blend_masked_compound(
5748 &inter0_v,5762 &inter0_v,
5749 &inter1_v,5763 &inter1_v,
5750- &diffwtd_mask_y,5764+ mask_y,
5751 side,5765 side,
5752 chroma_side,5766 chroma_side,
5753 chroma_side,5767 chroma_side,
@@ -6823,27 +6837,30 @@ fn decode_inter_block8(
6823 } else {6837 } else {
6824 06838 0
6825 };6839 };
6826- // lane-maskcomp r2: see the 16x16/32x32 leaf's own comment.6840+ // lane-maskcomp r2 / lane-wedge r3: see the 16x16/32x32
6841+ // leaf's own comment.
6827 let mut diffwtd_mask_type: Option<u8> = None;6842 let mut diffwtd_mask_type: Option<u8> = None;
6843+ let mut wedge_mask: Option<&'static [u8]> = None;
6828 if comp_group_idx == 1 {6844 if comp_group_idx == 1 {
6829 // lane-maskcomp r1: see the 16x16 leaf's own comment6845 // lane-maskcomp r1: see the 16x16 leaf's own comment
6830 // above -- SIDE==8 here, `wedge_bsize` index 36846 // above -- SIDE==8 here, `wedge_bsize` index 3
6831 // (BLOCK_8X8, `wedge_types > 0`).6847 // (BLOCK_8X8, `wedge_types > 0`).
6832 let compound_type = dec.symbol(&mut cdfs.compound_type[3]);6848 let compound_type = dec.symbol(&mut cdfs.compound_type[3]);
6833 if compound_type == 0 {6849 if compound_type == 0 {
6834- // COMPOUND_WEDGE: mask codebook not ported (r2 scope).6850+ // COMPOUND_WEDGE: lane-wedge r3, see the 16x16/32x32
6835- let _wedge_index = dec.symbol(&mut cdfs.wedge_idx[3]);6851+ // leaf's own comment.
6836- let _wedge_sign = dec.literal(1);6852+ let wedge_index = dec.symbol(&mut cdfs.wedge_idx[3]);
6837- MASKED_COMPOUND_HITS.fetch_add(1, std::sync::atomic::Ordering::Relaxed);6853+ let wedge_sign = dec.literal(1);
6838- return Err(unsupported(6854+ WEDGE_HITS.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
6839- "a masked COMPOUND_REFERENCE 8x8 leaf (comp_group_idx == 1, \6855+ wedge_mask = Some(
6840- COMPOUND_WEDGE) -- syntax consumed entropy-exact (compound_type/\6856+ crate::wedge::wedge_masks()
6841- wedge_idx/wedge_sign), but this decoder's wedge mask codebook is \6857+ .codebook(SIDE)
6842- not ported (lane-maskcomp r2 scope: DIFFWTD only)",6858+ .mask(wedge_sign as usize, wedge_index as usize),
6843- ));6859+ );
6860+ } else {
6861+ let mask_type = dec.literal(1);
6862+ diffwtd_mask_type = Some(mask_type as u8);
6844 }6863 }
6845- let mask_type = dec.literal(1);
6846- diffwtd_mask_type = Some(mask_type as u8);
6847 MASKED_COMPOUND_HITS.fetch_add(1, std::sync::atomic::Ordering::Relaxed);6864 MASKED_COMPOUND_HITS.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
6848 }6865 }
6849 // corner-cut (lane-av1comp r16/r17, lane-av1blend r1): same6866 // corner-cut (lane-av1comp r16/r17, lane-av1blend r1): same
@@ -6952,18 +6969,16 @@ fn decode_inter_block8(
6952 );6969 );
6953 let mut pred_y = vec![0u8; SIDE * SIDE];6970 let mut pred_y = vec![0u8; SIDE * SIDE];
6954 let mut diffwtd_mask_y = Vec::new();6971 let mut diffwtd_mask_y = Vec::new();
6955- if let Some(mask_type) = diffwtd_mask_type {6972+ let mask_y: Option<&[u8]> = if let Some(mask_type) = diffwtd_mask_type {
6956 diffwtd_mask_y = vec![0u8; SIDE * SIDE];6973 diffwtd_mask_y = vec![0u8; SIDE * SIDE];
6957 mc::diffwtd_mask(&inter0_y, &inter1_y, mask_type == 1, &mut diffwtd_mask_y);6974 mc::diffwtd_mask(&inter0_y, &inter1_y, mask_type == 1, &mut diffwtd_mask_y);
6975+ Some(diffwtd_mask_y.as_slice())
6976+ } else {
6977+ wedge_mask
6978+ };
6979+ if let Some(mask_y) = mask_y {
6958 mc::blend_masked_compound(6980 mc::blend_masked_compound(
6959- &inter0_y,6981+ &inter0_y, &inter1_y, mask_y, SIDE, SIDE, SIDE, false, &mut pred_y,
6960- &inter1_y,
6961- &diffwtd_mask_y,
6962- SIDE,
6963- SIDE,
6964- SIDE,
6965- false,
6966- &mut pred_y,
6967 );6982 );
6968 } else {6983 } else {
6969 mc::combine_compound(&inter0_y, &inter1_y, fwd_offset, bck_offset, &mut pred_y);6984 mc::combine_compound(&inter0_y, &inter1_y, fwd_offset, bck_offset, &mut pred_y);
@@ -6998,11 +7013,11 @@ fn decode_inter_block8(
6998 &mut inter1_u,7013 &mut inter1_u,
6999 );7014 );
7000 let mut pred_u = vec![0u8; CHROMA_SIDE * CHROMA_SIDE];7015 let mut pred_u = vec![0u8; CHROMA_SIDE * CHROMA_SIDE];
7001- if diffwtd_mask_type.is_some() {7016+ if let Some(mask_y) = mask_y {
7002 mc::blend_masked_compound(7017 mc::blend_masked_compound(
7003 &inter0_u,7018 &inter0_u,
7004 &inter1_u,7019 &inter1_u,
7005- &diffwtd_mask_y,7020+ mask_y,
7006 SIDE,7021 SIDE,
7007 CHROMA_SIDE,7022 CHROMA_SIDE,
7008 CHROMA_SIDE,7023 CHROMA_SIDE,
@@ -7042,11 +7057,11 @@ fn decode_inter_block8(
7042 &mut inter1_v,7057 &mut inter1_v,
7043 );7058 );
7044 let mut pred_v = vec![0u8; CHROMA_SIDE * CHROMA_SIDE];7059 let mut pred_v = vec![0u8; CHROMA_SIDE * CHROMA_SIDE];
7045- if diffwtd_mask_type.is_some() {7060+ if let Some(mask_y) = mask_y {
7046 mc::blend_masked_compound(7061 mc::blend_masked_compound(
7047 &inter0_v,7062 &inter0_v,
7048 &inter1_v,7063 &inter1_v,
7049- &diffwtd_mask_y,7064+ mask_y,
7050 SIDE,7065 SIDE,
7051 CHROMA_SIDE,7066 CHROMA_SIDE,
7052 CHROMA_SIDE,7067 CHROMA_SIDE,
crates/ec-av1/src/stream.rsmodified+60 -34
@@ -3847,14 +3847,18 @@ mod tests {
3847 );3847 );
3848 }3848 }
3849 3849
3850- /// lane-maskcomp r2: `--enable-masked-comp=1 --enable-dist-wtd-comp=1`3850+ /// lane-maskcomp r2 / lane-wedge r3: `--enable-masked-comp=1` streams
3851- /// streams must consume `compound_type`/`wedge_idx`/`wedge_sign`/3851+ /// must consume `compound_type`/`wedge_idx`/`wedge_sign`/`mask_type`
3852- /// `mask_type` entropy-exact AND build the real DIFFWTD blend --3852+ /// entropy-exact AND build the real blend, DIFFWTD or WEDGE --
3853- /// `masked_compound_hits() > 0` is now a hard assert, and a3853+ /// `masked_compound_hits() > 0` is a hard assert and BOTH
3854- /// `COMPOUND_DIFFWTD` refusal is FORBIDDEN (matches interintra's own3854+ /// `COMPOUND_DIFFWTD` and `COMPOUND_WEDGE` refusals are now FORBIDDEN
3855- /// gate). `COMPOUND_WEDGE` refusals are still EXPECTED (r2 scope:3855+ /// (matches interintra's own gate). r3: `--enable-dist-wtd-comp=0`
3856- /// wedge mask codebook not ported, charter's mergeable-partial3856+ /// (forces the masked choice toward wedge when comp_group_idx==1) plus
3857- /// fallback) -- counted separately, never asserted against.3857+ /// a hard-diagonal-edge `geq` source (wedge's OBLIQUE directions favor
3858+ /// a real diagonal edge over the r2 gradients content) to fire
3859+ /// COMPOUND_WEDGE live; `wedge_hits()` is soft-skipped (not hard
3860+ /// asserted) on a zero-hit run -- the recipe search is not proven to
3861+ /// converge every run, see charter's "if no recipe fires" fallback.
3858 #[test]3862 #[test]
3859 fn a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact() {3863 fn a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact() {
3860 const NAME: &str = "a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact";3864 const NAME: &str = "a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact";
@@ -3869,7 +3873,6 @@ mod tests {
3869 }3873 }
3870 let (width, height, frame_count) = (64usize, 64usize, 24usize);3874 let (width, height, frame_count) = (64usize, 64usize, 24usize);
3871 let mut named_refusals = 0u32;3875 let mut named_refusals = 0u32;
3872- let mut masked_refusals = 0u32;
3873 let mut matched = 0u32;3876 let mut matched = 0u32;
3874 let n_attempts: u32 = std::env::var("EC_MASKCOMP_GATE_ATTEMPTS")3877 let n_attempts: u32 = std::env::var("EC_MASKCOMP_GATE_ATTEMPTS")
3875 .ok()3878 .ok()
@@ -3878,8 +3881,15 @@ mod tests {
3878 for attempt in 0..n_attempts {3881 for attempt in 0..n_attempts {
3879 let seed = 42 + attempt;3882 let seed = 42 + attempt;
3880 let duration = frame_count as f64 / 25.0;3883 let duration = frame_count as f64 / 25.0;
3881- let source =3884+ // lane-wedge r3: a hard diagonal edge (not a smooth gradient)
3882- format!("gradients=size={width}x{height}:seed={seed}:duration={duration}:rate=25");3885+ // is the content wedge's OBLIQUE master masks are shaped for --
3886+ // `mandelbrot`'s pan position varies the edge angle/position
3887+ // across attempts the way the r2 gradients seed did.
3888+ let source = format!(
3889+ "mandelbrot=size={width}x{height}:rate=25:start_x={sx}:start_y={sy}",
3890+ sx = -0.6 + 0.005 * (attempt as f64),
3891+ sy = -0.4 + 0.005 * (attempt as f64)
3892+ );
3883 let y4m = Command::new("ffmpeg")3893 let y4m = Command::new("ffmpeg")
3884 .args([3894 .args([
3885 "-v",3895 "-v",
@@ -3888,6 +3898,8 @@ mod tests {
3888 "lavfi",3898 "lavfi",
3889 "-i",3899 "-i",
3890 &source,3900 &source,
3901+ "-t",
3902+ &duration.to_string(),
3891 "-pix_fmt",3903 "-pix_fmt",
3892 "yuv420p",3904 "yuv420p",
3893 "-f",3905 "-f",
@@ -3918,10 +3930,18 @@ mod tests {
3918 "--enable-fwd-kf=0",3930 "--enable-fwd-kf=0",
3919 "--enable-order-hint=1",3931 "--enable-order-hint=1",
3920 "--enable-warped-motion=1",3932 "--enable-warped-motion=1",
3933+ // r3: mandelbrot's pan/zoom triggers aomenc's single-ref
3934+ // GLOBALMV global-motion search (a capability distinct from
3935+ // and outside this lane's scope) -- off, matching this
3936+ // gate's own goal of exercising masked compound, not GM.
3937+ "--enable-global-motion=0",
3921 "--enable-obmc=1",3938 "--enable-obmc=1",
3922 "--tune-content=default",3939 "--tune-content=default",
3923 "--enable-masked-comp=1",3940 "--enable-masked-comp=1",
3924- "--enable-dist-wtd-comp=1",3941+ // r3: force the masked choice toward wedge (r2 always set
3942+ // this =1; distance-weighted compound competes with the
3943+ // wedge/diffwtd choice for the same comp_group_idx==1 slot).
3944+ "--enable-dist-wtd-comp=0",
3925 "--enable-interintra-comp=1",3945 "--enable-interintra-comp=1",
3926 "--enable-onesided-comp=0",3946 "--enable-onesided-comp=0",
3927 "--enable-interintra-wedge=0",3947 "--enable-interintra-wedge=0",
@@ -3979,21 +3999,17 @@ mod tests {
3979 !msg.contains("warp"),3999 !msg.contains("warp"),
3980 "{NAME} refused on warp (seed {seed}) -- warp decode is ported: {msg}"4000 "{NAME} refused on warp (seed {seed}) -- warp decode is ported: {msg}"
3981 );4001 );
3982- if msg.contains("masked COMPOUND_REFERENCE") {4002+ assert!(
3983- assert!(4003+ !msg.contains("masked COMPOUND_REFERENCE"),
3984- msg.contains("COMPOUND_WEDGE"),4004+ "{NAME} refused a masked-compound block (seed {seed}) -- both DIFFWTD \
3985- "{NAME} refused a non-wedge masked-compound block (seed {seed}) \4005+ and WEDGE blends are ported, this refusal is forbidden: {msg}"
3986- -- DIFFWTD blend is ported, this refusal is forbidden: {msg}"4006+ );
3987- );4007+ assert!(
3988- masked_refusals += 1;4008+ !msg.contains("interintra"),
3989- } else {4009+ "{NAME} refused on interintra (seed {seed}) -- non-wedge \
3990- assert!(4010+ interintra is ported: {msg}"
3991- !msg.contains("interintra"),4011+ );
3992- "{NAME} refused on interintra (seed {seed}) -- non-wedge \4012+ named_refusals += 1;
3993- interintra is ported: {msg}"
3994- );
3995- named_refusals += 1;
3996- }
3997 eprintln!("seed {seed} refusal: {msg}");4013 eprintln!("seed {seed} refusal: {msg}");
3998 if std::env::var_os("EC_AV1_GATE_DUMP").is_some() {4014 if std::env::var_os("EC_AV1_GATE_DUMP").is_some() {
3999 // r1's self-pin is armed via EC_AV1_GATE_DUMP=<path>4015 // r1's self-pin is armed via EC_AV1_GATE_DUMP=<path>
@@ -4034,15 +4050,25 @@ mod tests {
4034 // soft-skipped -- hard assert, matching the interintra gate.4050 // soft-skipped -- hard assert, matching the interintra gate.
4035 assert!(4051 assert!(
4036 crate::decode::masked_compound_hits() > 0,4052 crate::decode::masked_compound_hits() > 0,
4037- "{NAME}: zero masked-compound blocks fired ({masked_refusals} wedge refusals, \4053+ "{NAME}: zero masked-compound blocks fired ({matched} matches, {named_refusals} \
4038- {matched} matches, {named_refusals} other refusals out of {n_attempts}) -- gate \4054+ other refusals out of {n_attempts}) -- gate proved nothing this run"
4039- proved nothing this run"
4040 );4055 );
4056+ // r3: wedge_hits() is soft-skipped, not hard-asserted -- the recipe
4057+ // search (dist-wtd-comp=0 + diagonal mandelbrot content) is not
4058+ // proven to fire wedge on every run; charter's fallback is to land
4059+ // the checksum-verified codebook + blend with this soft path.
4060+ if crate::decode::wedge_hits() == 0 {
4061+ eprintln!(
4062+ "{NAME}: WARNING wedge_hits()==0 this run -- COMPOUND_WEDGE never fired \
4063+ ({matched} matches, {named_refusals} refusals out of {n_attempts}); codebook \
4064+ is checksum-verified but unexercised live this run"
4065+ );
4066+ }
4041 eprintln!(4067 eprintln!(
4042- "{NAME}: {named_refusals} other-capability refusals, {masked_refusals} expected \4068+ "{NAME}: {named_refusals} other-capability refusals, {matched} pixel-exact matches \
4043- COMPOUND_WEDGE refusals (r2 scope: wedge unported), {matched} pixel-exact matches \4069+ out of {n_attempts}, masked_compound_hits={} wedge_hits={}",
4044- out of {n_attempts}, masked_compound_hits={}",4070+ crate::decode::masked_compound_hits(),
4045- crate::decode::masked_compound_hits()4071+ crate::decode::wedge_hits()
4046 );4072 );
4047 }4073 }
4048 4074
lanes/wedge_dumpadded+0 -0

Binary file changed