forge
Explore
Log in

Don't you dare go Hollow

Wii gate -- bound mandelbrot with -t (end_pts never ends

Browse files at this commit

098e9a7d5b1c797358405da6c897fa1cf528c790Ahmet Kaan GümüşParent: 841cf14
  • fix
    • wii gate -- bound mandelbrot with -t (end_pts never ends
    • 1h hang), drop vacuous refusal asserts, hard-assert wii_hits (verifier finding)
    • report
Show full message
fix(av1): wii gate -- bound mandelbrot with -t (end_pts never ends; 1h hang), drop vacuous refusal asserts, hard-assert wii_hits (verifier finding); report
crates/ec-av1/src/stream.rsmodified+20 -17
@@ -3677,8 +3677,12 @@ mod tests {
3677 let source = if attempt % 2 == 0 {3677 let source = if attempt % 2 == 0 {
3678 format!("gradients=size={width}x{height}:seed={seed}:duration={duration}:rate=25")3678 format!("gradients=size={width}x{height}:seed={seed}:duration={duration}:rate=25")
3679 } else {3679 } else {
3680- format!("mandelbrot=size={width}x{height}:rate=25:end_pts={frame_count}")3680+ // `end_pts` does NOT bound mandelbrot (it generated 300+
3681+ // frames and hung the gate for an hour); `-t` below is the
3682+ // real bound, matching every other mandelbrot gate recipe.
3683+ format!("mandelbrot=size={width}x{height}:rate=25")
3681 };3684 };
3685+ let duration_arg = format!("{duration}");
3682 let y4m = Command::new("ffmpeg")3686 let y4m = Command::new("ffmpeg")
3683 .args([3687 .args([
3684 "-v",3688 "-v",
@@ -3689,6 +3693,8 @@ mod tests {
3689 &source,3693 &source,
3690 "-pix_fmt",3694 "-pix_fmt",
3691 "yuv420p",3695 "yuv420p",
3696+ "-t",
3697+ &duration_arg,
3692 "-f",3698 "-f",
3693 "yuv4mpegpipe",3699 "yuv4mpegpipe",
3694 "-",3700 "-",
@@ -3773,16 +3779,11 @@ mod tests {
3773 msg.contains("unsupported"),3779 msg.contains("unsupported"),
3774 "{NAME} failed outright, not a named refusal (seed {seed}): {msg}"3780 "{NAME} failed outright, not a named refusal (seed {seed}): {msg}"
3775 );3781 );
3776- assert!(3782+ // Verifier note (lane-wii r2): no refusal string containing
3777- !msg.contains("wedge"),3783+ // "wedge"/"interintra" exists in the decoder any more, so
3778- "{NAME} refused on wedge (seed {seed}) -- wedge-interintra is ported \3784+ // string-forbidding asserts here would be vacuous (class
3779- (lane-wii r2) and this recipe keeps masked-comp off: {msg}"3785+ // gate-blind-to-feature). The proof this gate carries is
3780- );3786+ // pixel-exact decode plus the wii_hits count printed below.
3781- assert!(
3782- !msg.contains("interintra"),
3783- "{NAME} refused on interintra (seed {seed}) -- interintra and \
3784- wedge-interintra are both ported: {msg}"
3785- );
3786 named_refusals += 1;3787 named_refusals += 1;
3787 eprintln!("seed {seed} refusal (non-wedge capability): {msg}");3788 eprintln!("seed {seed} refusal (non-wedge capability): {msg}");
3788 continue;3789 continue;
@@ -3810,12 +3811,14 @@ mod tests {
3810 matched > 0,3811 matched > 0,
3811 "{NAME}: every attempt refused on other capabilities; the gate never exercised wedge-interintra"3812 "{NAME}: every attempt refused on other capabilities; the gate never exercised wedge-interintra"
3812 );3813 );
3813- if crate::decode::wii_hits() == 0 {3814+ // Hardened from a soft-note (verifier: gate-blind-to-feature): the
3814- eprintln!(3815+ // recipe fired wedge-interintra on EVERY one of 6 hammer runs
3815- "{NAME}: {matched} pixel-exact matches but zero wedge-interintra blocks fired \3816+ // (wii_hits 2-7), so a zero-hit run is a regression, not sampling.
3816- this run -- encoder never selected wedge; gate soft-skipped, rerun to exercise"3817+ assert!(
3817- );3818+ crate::decode::wii_hits() > 0,
3818- }3819+ "{NAME}: {matched} pixel-exact matches but zero wedge-interintra blocks fired -- \
3820+ the blend is unexercised (recipe fired 2-7 hits per run when landed)"
3821+ );
3819 eprintln!(3822 eprintln!(
3820 "{NAME}: {named_refusals} other-capability refusals, {matched} pixel-exact matches out of {n_attempts}, wii_hits={}",3823 "{NAME}: {named_refusals} other-capability refusals, {matched} pixel-exact matches out of {n_attempts}, wii_hits={}",
3821 crate::decode::wii_hits()3824 crate::decode::wii_hits()
lanes/wii-r1.report.mdadded+44 -0
@@ -0,0 +1,44 @@
1+# lane-wii report (r1 recon HANDOFF + r2 flash build; orchestrator-verified and finished)
2+
3+VERDICT: PASS — wedge-interintra decodes for real; gate fires it live every run (wii_hits 2-7, hard-asserted); 14 pins green; lib 221/0.
4+
5+## What landed
6+- 84a8fa7 (flash r2 build, orchestrator-committed at its cap): both refusals
7+ (16/32 path + 8x8 leaf) replaced. Symbol stream: after use_wedge_interintra
8+ == 1, ONE adapting symbol `wedge_idx[bsize]` (rows 6/9/3 = 16x16/32x32/8x8),
9+ NO sign bit — sign fixed 0 (libaom blockd.h INTERINTRA_WEDGE_SIGN). Blend:
10+ wedge codebook mask replaces the smooth interintra mask in interintra_blend
11+ ((m*intra + (64-m)*inter + 32)>>6, intra weighted); chroma box-averages the
12+ luma-stride mask 2x2 ((m00+m01+m10+m11+2)>>2), exactly blend_a64_mask's
13+ subw==subh==1 path. WII_HITS atomic.
14+- Gate a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact:
15+ gradients/mandelbrot alternating content, --enable-interintra-wedge=1,
16+ masked-comp off.
17+
18+## Orchestrator fixes on top of the flash build
19+- Gate hang: builder's `mandelbrot=...end_pts=24` does NOT bound the source
20+ (300+ frames generated; 1h CPU, pipe deadlock, two hung orphan processes).
21+ Bound with `-t` like every landed mandelbrot recipe. Class instance:
22+ gate's own fixture generation unbounded (kin to gate-loader-slurps-whole-file).
23+- Verifier finding (opus, claim 5 REFUTED): the gate's forbidden-refusal
24+ strings were vacuous (no "wedge"/"interintra" refusal exists any more) and
25+ wii_hits was only a soft note. Vacuous asserts replaced with a comment;
26+ wii_hits==0 hardened to a HARD assert after 6/6 hammer runs each fired 2-7
27+ hits.
28+
29+## Verification
30+- Cross-provider: opus source-level verification vs libaom — claims 1-4, 6
31+ CONFIRMED (symbol order decodemv.c:1549-1554; sign 0 blockd.h:40 — the r1
32+ charter's SIGN=1 came from an ENCODER search heuristic, compound_type.c:691;
33+ blend blend.h:23-28 + blend_a64_mask.c:251-259; INTERINTRA_HITS move weakens
34+ no gate since the interintra gate pins wedge=0). Claim 5 (gate) refuted and
35+ fixed above.
36+- Orchestrator re-ran: hardened gate green (wii_hits=3), 6 prior hammer runs
37+ green (hits 6,7,2,6,5,3), 14-pin list green, lib 221/0 (gate excluded run)
38+ + gate separately.
39+
40+## Residue
41+- 25-29/40 gate attempts refuse on non-IDENTITY single-ref GLOBAL MOTION
42+ (mandelbrot pan) — a real, now well-measured capability gap; queue.
43+- r1 flash round burned its whole cap on recon (zero edits); r2 charter
44+ carried the handoff + two corrections (SIGN=1 error, literal(4) error).