From 58044e9f59d8b4d0a3954ba2abbd5c3d2edfa6bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 29 Sep 2026 05:36:38 +0300 Subject: [PATCH] ec-av1: both live fixture-pin shape violations closed in stream.rs The preflight named two sites in this crate. 1. The lr-sgr-r7 gate already read through crate_pin at HEAD; the remaining invariant-1 hit was a DOC COMMENT in pinned_golden7_stream_decodes_pixel_exact quoting the forbidden concat!(CARGO_MANIFEST_DIR, "/../../fixtures/...") shape verbatim to explain what had been fixed. The grep cannot see a comment, so the crate carried a live violation that was pure prose. Reworded to describe the shape without reproducing the literal; the history the comment exists to keep is unchanged. 2. pinned_warp_stream_decodes_pixel_exact bound one gitignored root directory literal and formatted 14 runtime names against it, so no committed tree could satisfy it and the gate skipped GREEN having read nothing. All fourteen pins are present in the runner library: they are committed under crates/ec-av1/fixtures/ byte-for-byte (warp-mismatch, warp-flake-5/7, ii-flake-1/2/3/5/6/7/8/9, rect-flake-1/2/3) and each is named by a string literal through crate_pin, the spelling pinned_golden3/4/7 and pinned_sbpart already use. The helper now takes a Path and reads through require_pin, so an absent pin is a hard failure naming the crate-local path rather than a raw io panic. With the pins committed the gate is un-#[ignore]d: a plain run decodes all fourteen and carries warp_selected_hits 0 -> 113, so it is a real gate rather than a no-op with a better excuse. Costs 1.8s plus ffmpeg, which have_ffmpeg() already gates. Preflight, EC_FIXTURE_SHAPE_STRICT=1: no invariant-1 and no invariant-4 FAIL, census uncommitted=0 (was 14). --- crates/ec-av1/fixtures/ii-flake-1.obu | Bin 0 -> 579 bytes crates/ec-av1/fixtures/ii-flake-2.obu | Bin 0 -> 581 bytes crates/ec-av1/fixtures/ii-flake-3.obu | Bin 0 -> 670 bytes crates/ec-av1/fixtures/ii-flake-5.obu | Bin 0 -> 681 bytes crates/ec-av1/fixtures/ii-flake-6.obu | Bin 0 -> 632 bytes crates/ec-av1/fixtures/ii-flake-7.obu | Bin 0 -> 654 bytes crates/ec-av1/fixtures/ii-flake-8.obu | Bin 0 -> 635 bytes crates/ec-av1/fixtures/ii-flake-9.obu | Bin 0 -> 690 bytes crates/ec-av1/fixtures/rect-flake-1.obu | Bin 0 -> 607 bytes crates/ec-av1/fixtures/rect-flake-2.obu | Bin 0 -> 601 bytes crates/ec-av1/fixtures/rect-flake-3.obu | Bin 0 -> 572 bytes crates/ec-av1/fixtures/warp-flake-5.obu | Bin 0 -> 602 bytes crates/ec-av1/fixtures/warp-flake-7.obu | Bin 0 -> 723 bytes crates/ec-av1/fixtures/warp-mismatch.obu | Bin 0 -> 621 bytes crates/ec-av1/src/stream.rs | 74 +++++++++++++---------- 15 files changed, 41 insertions(+), 33 deletions(-) create mode 100644 crates/ec-av1/fixtures/ii-flake-1.obu create mode 100644 crates/ec-av1/fixtures/ii-flake-2.obu create mode 100644 crates/ec-av1/fixtures/ii-flake-3.obu create mode 100644 crates/ec-av1/fixtures/ii-flake-5.obu create mode 100644 crates/ec-av1/fixtures/ii-flake-6.obu create mode 100644 crates/ec-av1/fixtures/ii-flake-7.obu create mode 100644 crates/ec-av1/fixtures/ii-flake-8.obu create mode 100644 crates/ec-av1/fixtures/ii-flake-9.obu create mode 100644 crates/ec-av1/fixtures/rect-flake-1.obu create mode 100644 crates/ec-av1/fixtures/rect-flake-2.obu create mode 100644 crates/ec-av1/fixtures/rect-flake-3.obu create mode 100644 crates/ec-av1/fixtures/warp-flake-5.obu create mode 100644 crates/ec-av1/fixtures/warp-flake-7.obu create mode 100644 crates/ec-av1/fixtures/warp-mismatch.obu diff --git a/crates/ec-av1/fixtures/ii-flake-1.obu b/crates/ec-av1/fixtures/ii-flake-1.obu new file mode 100644 index 0000000000000000000000000000000000000000..b796d23af1ab6dd41f818b8360e18c1c2ffb3d0b GIT binary patch literal 579 zcmWe);NoInU|?GRf9-n)4kJeahRqBLO&kha=Kl2gxa_!)f%u!h!5dtDJuR(X#i_VE z=7jU-$clxJqH3hY4zI48u`gnkRtn?vlPAAU2#TLm_+g2&5QCAR0rPpDKm^aVH-H5>Sa=2CD$fdh1q*U<2rh7d zX+M3&K#0Lez<@_U%%FpHHAMTV8(@We3Q`9yvMy(EWMOb&I4LF|#9$<3Ab4PYpcGg) zgA2n2&K-PUr9zDILCUO4A=;1mYk&nsn7AM5z|1_l4&)>O12GofB2(5?5S2$Az-CHt z2rjZ?T?r98xPbYJ5Q7oFfs}xlkvQvmi0EOkW*G&kLsG08AwoOtz{=#nR&Rlb?H6J& zk~UBTS?rn*5xVHSch{tyo6Z&AxXKQ4f|!Q*0oBhUO(z%>Sy+@9&KKvd{CsJ(m64!^ zFca%%6Q#2aiYzSZ40{p}7zr9EpWuGZ!McXQiG#zB;lhpsU{|OJh?aA(u7wE-F-S3< z07+C~lzO`QZW3vokNC&;|+DVWEjnQ(M+=S%@5treYKr+ z+L6VlZwi?RTY;aAWE9N`Kc=-s?cmkpWW?A9Rpf|$)OmD<6pVSvD>~@1sEm;@gT=58 z*2LZSE}1YkcUwK3i37TN(%`JeAzhJB%`JUqX65%%`BZgP?~CaTwILFZc@1mfn?)pS znna~|wq@W(jdW5Wi>w{9%DIG14`RA0Egex;3anB+f?dGklse8tJ&RnUx=nm}{ yy{QPRE~Knwbs&kCl8IC%)K%I^=2dc2pJ;5`f3AP$gIeW?BZ!T58_QxPIJFJU)R2$> literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/ii-flake-3.obu b/crates/ec-av1/fixtures/ii-flake-3.obu new file mode 100644 index 0000000000000000000000000000000000000000..729f887746e41584164d22747f54092b26ef3ae8 GIT binary patch literal 670 zcmWe);NoInU|?GRf9-n)4x%p} z?L4L@#%FkKNutG-O+Iz3;o64MOhzw#Z~X||YG?ZBd7)MNp_KG5$pw+Y1!ZU7XIRBu z>QDczSoQGs+K7V>Wt5J03G7tPFfb_X2U)Jf zaDkoY&Qz1kjq`bv!jgg=R%Yz06hDC=Onm82H87}NNU?iZy)X2c#&~z3i zWF%<7e1w7FBI_1L76Au8kRl-lDaIW_3`PP5Y#w|JjjWqtG9ZZ+APEgN57vl=ri)NR z78nT_a3yeUTnIO00Z8c!uo-+V(hDQu5)L4V8DQu0C35cMn)Q#VOQE5I;p~l@4<~L@ zSeD%994h7=qI`(8!AL-ZTZMBcXVbxkMI9jLI~WNV2r&v5JG0JWbOpKfJSZIa4MY^U zlAT#MK*c~7+yIM91c)zEW?c;tKL-|)Vv+hJ%(?|G1o5bfhIoSJY8jYY&b4TpFy4Fb z{7UGU1N&cox8LV(xcqf664DTI=v-~Xw2uMooHHNuUm5Xh2u$Ey?V@xFB6i-0-$0H- zSo{L(dWaQgK(6@#wpuAb?pO!Rm0)pDQ1WYtII-?FVYfG$wA9sJ9i%AUHJ-k$3nd>%pt#>T%G0szmk7N~9FH~M! zYED}^ge(zhSIOWaz111neEaKssT`}Qy=E$EnDaQwO3yZj#~KSuj!t9^%(gZ>+I|w4 zuBz`9g1)hScjC-;!EESf_58h!@&yc{SPFbZ-S=Y((^gP1SmDX$kNbySs~hSX~PZTxQSK-gt1su zWCTYtV}(LPFoC%mm(gJ_nd^(BV Y>{LTab(3rqROPs?qtTt9LJ8Xc0e}wBhX4Qo literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/ii-flake-6.obu b/crates/ec-av1/fixtures/ii-flake-6.obu new file mode 100644 index 0000000000000000000000000000000000000000..1cd806c7096d96b50002ab10da4ff7d98d0f3b64 GIT binary patch literal 632 zcmWe);NoInU|?GRf9-n)4x?-VhK&shEgA}2=AF{MG41)EW4lGP_q>pH$y~*JNaLnP zj;7>wyVrjn+8v!ooAxHtqCIIy-rL{HxXtK<<7Gw5KQ!@vkqc}j&5WT=n&h@q9^`528jwA z2p*UpD8)JpB6?x({FE(V7YH%R2Pv~ogeu;)0IXJoiTjZb>tu*shwpy31Q{V zG?W-F?qi?*vu~S`kcKc5>t_?DQy^h=hKsHm4~zs2luvL!=U`pU;N%hD$8cc>$aw+= zDgvVA9IRVlfZj3+=68lnQ6t2LNzFn~>1D`6yHpy4PSeu8x^ROtec(jQWlfwAgOQ*C^MM8i z2G?2!M-B%Uh6`L(LJUSi1}uy$3=FKZAcE%$a~i-(*_b#Q7+7aQM9)nL5@IkCHsE04 z6<}cPfe4;e(|rk1%f%tMz=3r>MEH#61tA6_0RtWZF@p})*$}}~Enxk83Q`9yvQB`A zop6g-djjkN!2|OHrC29IgfHx!5e7Cuh*3UBnRPKl^tb?6r3e%EBOTU>3=SPCE)2&H zwB~@_D#pTFWXjsh;Mk($!f^0t4_Lbdhu|VRkoFFc-~zCADFHDfan=P4jvY2G3`ZGj z9l+XU6r>JGv95=R?sQK8YnKDtz6Bz<`+yLGk&1yL$oA4bjBJXA0t^>l9rAeNvLfHx z<(qeRdWj(x*bu)t_SpNc$(jQJy@ literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/ii-flake-8.obu b/crates/ec-av1/fixtures/ii-flake-8.obu new file mode 100644 index 0000000000000000000000000000000000000000..bf08733e2f5cc8c2735b05b4ece78e69378bd671 GIT binary patch literal 635 zcmWe);NoInU|?GRf9-n)4x=0ahII@IEdmN#=3SUIGq-T{#hXUUikCz$Hojo~T)5(q zW3;ch>v>LAkE0tBivFm2E#TWMrhc+_^0c1r4YCEwHd}n8zZFLCFfF?f9J_V@*7g_5ehMq`Y*#@#p z*g){W{6HzzX$(#vV=wGou>|BaAp;>s`5}5)d;IXI;(U1QI+F09GiYAazKJbt6P< z=Z=M7g>qoqw?Irh1oFS6fg;H6(gTbf3JV1oF1|YSX8-Re|BHWFf+RJ>52$_?X*$xN z$fBaeaPde&$G!E&J*UHMj081=nOHxYC|v?csWa@B%rO!)P(H!^oP%{egA<2`AH#(m zAoB$bR0KrJIlvA93koqvF`fWPXow1MuGV0>$pAKBdxVjIfrg`S_zBicQ2h%)N`HXO S(D9IUD*(G2WQGGsq5}Zx#8(eZ~f`ayBN81_ss!i13<80b%|Q zLJUTt1{^HB0t}{a7�M3NWlNPmC`+4w4Wu;NlQm;J`W`qT!gk9LRJ*10De}gAUfk z5YZz^r@>136r>JZH0ywvaqyt;0uM0M3}fA>6qC-1SjQr&-P0-N-F8O339!Vffx&Kk*Qe%M0V$0 z#{*zd2@b(Uc4j#c(QT7nH-JT@1jLNQ&1xW`$B%RrfkkB$qz*}$Er5t_2;MXY>=Ze$ zQ!YS6*ItYgVlYxQPy{)JwUWV!$H9eRi>Ln&C^78i-YnX8ViI@iqQghITsx2L+-D@DAXbs zl^cu%4U|uCKj&aw$lxU6;Ky)b2goY|1}Xxg literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/rect-flake-1.obu b/crates/ec-av1/fixtures/rect-flake-1.obu new file mode 100644 index 0000000000000000000000000000000000000000..40a0e8f61f1e88997bfd91e40b28a338822e3fef GIT binary patch literal 607 zcmXxfQAiX~6b9h4Vg#1Q?-f4c#rGZf=w5o#zR#Fjd^1eL8CAS{O_Hz3%!ANMPgsIJyQF81*oD z*Q=${uu%HG8nyB8Q|nKOR}9mL7;N5(x>ndTg=&&=dk4yJdz|B_;|PnQI~=ne9){?8 zLw}~DK8{a(+Tb70avCMTG+OSRKK(TSU|}fk`W8**>zXdg1lT$=>Q*g=o#(dUXcaJh z@XXYFd8}d2mSdSQrkJXL7Hfo8wqa|VV8n45rtw_qCkfpL5Eq~@?EM>}mALGzg!)&E tfF8(sZkFNIeWoxAAf(`<%|g_))WbQH<-uMrxa2RW-W^M({(Hjn^gnodsnq}g literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/rect-flake-2.obu b/crates/ec-av1/fixtures/rect-flake-2.obu new file mode 100644 index 0000000000000000000000000000000000000000..e727407a96118cdd04cfc64b12f3abf7d8270530 GIT binary patch literal 601 zcmX}oO=uHA7zW@so1L(xNu8afNm#V5MrkNPhe3~)6jv!8N?V13Q1K*)_=DCeSYe|c zL_CNdJoSfy7Ohy*28@TmDk|GHY9dk;5v6Jc6^rEJMUEp{Iro@n<*&t)+^pYov$-F|90&04PV?+Fru*jYy5{t6R*UA~;qmAXg}5VBbO@<1I@qDk5k*v5r*(^1 z)SULoB03mM8xae|d*k)<`||z$-s7+=0LIk6=j))- zXPAVWqwef&>sj0QLUZ4`d(w7?OND{+LuW58j?Pat9Q=jQpRNx*dK3Q0tkwT^b!EPM zdU)i)iyM_pkwY@EDaZoH1_9GY)%vK-jF|w*Yg@hSYHKiP7Gzl4yRmK#X$xvLF_1gj zCQdB}95OB}Y8U+tTz<h!D0ISccqloS0#~Nh0hdhq#wWeKq`%Fah9MTbKz4m5Avz6^__pi)d z3O3gThfI2{!QL>Lt7KV@wqrG3TRGG(nU^p~xW9cx={|hDE^X0KZu~~cIMOD1QJqtl zGO>rX3{WzGw8<25II*%i!)sw%N}ll{YJDY{@Ol#G%4B*YSyahCx}x*M&f{0fjQYi1 JRDCtb{|Co5luZBt literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/warp-flake-5.obu b/crates/ec-av1/fixtures/warp-flake-5.obu new file mode 100644 index 0000000000000000000000000000000000000000..1ea57620a51a86018506edb8f42fc06e4d5185c0 GIT binary patch literal 602 zcmXw$Pe>F|9LIn2+?S6roj0>>*&y4Dh(4lXdX=Z3X;?@*j0qh(7kMxO z0I8ywcR?jr;5tJ|05`P~C=#7YbKPku0aWoEAVPhSGQd=F25{=^>1lx^ezrT2jL=vi ziD&98Bf?W+z#7N#)NtxO$Ytd*PMy7prv6Vj3!W@?Mf8{KpkCab#xvj%@S!a3qB#c9 z3R(Q3&P4XU0sJ7NSJj%1-h_9|mlD;!dyNSzk>QjzyLW3*RNq)BaLw5tiEWSI=i$aR z+1qLv3nO?o^j+K4)tol3sdx;}htX9Tjg#h^ol=4N0-4G;1Gvc!3>@BQORai6+u#tG;fNM^>6`Lja5qLm-SeC^dN<2^S0-!oF70FplA+JxO kb+CbSL6vI`>(TEl3n>73Hv9<9IWo|)dO?^8UJ+*L|C!jJ(*OVf literal 0 HcmV?d00001 diff --git a/crates/ec-av1/fixtures/warp-flake-7.obu b/crates/ec-av1/fixtures/warp-flake-7.obu new file mode 100644 index 0000000000000000000000000000000000000000..d70ae41c5e2b8779743900ea20f998ba5350fd52 GIT binary patch literal 723 zcmY+AZAep59Ebn5-L~$`dv;TY)9j|{t|fRneJC{QDzi63XOUtdDOr}Gy^5BGw<*3v z(WIbgR$KMKMe4+*8IKqx>SFVuq5Ri{5!ks0HvaP-8f3YvbNvUal56Ycw7rIg2$N!w~~NX^9W@#2DC zvjc`N+UXMdo}c>8aI=qu@Cu&@V8)W@E_j*(zRw*CeHy#<8VTZM*8v2hSJcud3cLpl zwbqbsqQLF7Nkg4WN;0#WmnQjsGVhe3S<>0oe| zNDx-$1iY!I9RIf#Y5QYQ;;#?2+mKOfrl}YTjR|8Zk&2btWAQ<`4!4>ou*571Hv4;N~|5s`BA;LfX~pYrS#U-PqX?mk@|U*6t;Gg_)H z+ovi^Wo=0rZEnRtM=8N0)^W)wQ&eYjY$U{6Jc<)e#4>LXp?-}v*%je|( zbr$)BzjFPu^0y7=A(olXer+lfo9r!C9&+$>b?-cW*#-8}6Bxx0nW-^O@=urVy&|Mr zC2b$}bLsjow+{$07)fgIJaAxOU^>a5(4wHku*>zWa?D?W?H|n@j082<9yBm8G@WD+ zXi-pSxUl1Zk$?tsBLjm&(@6#fh>($>0rL?ChKsDL85lVn{6LC?7>ooASU3b2F0!tG z2?{YtG423Ma0KujXk=Z)pa@pI04&C(AbDXS>uRW&14!`-kc0+j6YGbPrb`S4V9OR5 z2^jEsa6gn}UBi$F(tf@{h{1^8K!8cK(2#WlR1Bp11Xx@oK=8s&*7Xqab6_Dc1u4To z)-7-$DaIK>3`Tky;tBl=`DQ(1I3%#3gJExHP{ZUC*9+sl>la-4oO+5uW<$u8;GpxV zCgCA^pB^U~31|qq@GsgRST`~x za@hDWoPmV^zkyr;U$GPG28INvxDmgBf`a5>C)SM+p%WmbH$cwS5Lv|ik(cR01K67L zM*IdUPU4T5Sl2?#g!ocTfbTOCI7DpxAbKI F1psz@w2}Y- literal 0 HcmV?d00001 diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 9b399561..e6662c1a 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -23977,10 +23977,10 @@ pub(crate) mod tests { /// delta=2). `GOLDEN_FRAME` refuses by name until this decodes exact. /// /// LIVE since lane-av1pinslive r3. The old shape was the worst of the - /// class: a `concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures/...")` - /// literal, which points at the GITIGNORED root and can therefore never be - /// satisfied by a committed pin, combined with a bare `.expect()`. The - /// bytes are now committed at + /// class: a `concat!` of `CARGO_MANIFEST_DIR` with the GITIGNORED + /// repo-root `fixtures/` directory, which no committed pin can satisfy, + /// combined with a bare `.expect()`. + /// The bytes are now committed at /// `crates/ec-av1/fixtures/golden7-forwarding-mismatch.obu` (152 bytes; /// sha256 `81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be`, /// recovered byte-for-byte from the runner library). @@ -31379,59 +31379,67 @@ pub(crate) mod tests { /// clamping; ii-flake-1..8: interintra neighbours excluded from /// warp-sample gathering, ref_frame[1] == INTRA_FRAME in the mi grid). /// `EC_AV1_GATE_DUMP_PIN` overrides to a single stream. - /// Deterministic and static -- `#[ignore]`d because the gitignored - /// fixtures dir may be absent; run manually. + /// + /// Un-`#[ignore]`d with the pin shape fixed: the fourteen pins are COMMITTED + /// under `crates/ec-av1/fixtures/`, so the gate runs on a clean checkout + /// and carries `warp_selected_hits` 0 -> 113 over the set instead of + /// skipping GREEN having read nothing. #[test] - #[ignore = "reads pinned fixture paths under the gitignored fixtures dir; run manually"] fn pinned_warp_stream_decodes_pixel_exact() { if !have_ffmpeg() { eprintln!("SKIP pinned_warp_stream_decodes_pixel_exact: no ffmpeg"); return; } - let fixtures = concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures"); - let paths: Vec = match std::env::var("EC_AV1_GATE_DUMP_PIN") { - Ok(p) => vec![p], - Err(_) => [ - "warp-mismatch", - "warp-flake-5", - "warp-flake-7", - "ii-flake-1", - "ii-flake-2", - "ii-flake-3", - "ii-flake-5", - "ii-flake-6", - "ii-flake-7", - "ii-flake-8", + // Every pin is COMMITTED under `crates/ec-av1/fixtures/` and named by a + // string literal, which is the convention every other pinned gate here + // uses and the only shape the pin census can resolve name-by-name. The + // old shape -- one GITIGNORED root directory literal plus a runtime + // name list formatted against it -- can never be satisfied by a + // committed tree, so this gate skipped GREEN having tested nothing. + let pins = match std::env::var("EC_AV1_GATE_DUMP_PIN") { + Ok(p) => vec![std::path::PathBuf::from(p)], + Err(_) => vec![ + crate_pin("warp-mismatch.obu"), + crate_pin("warp-flake-5.obu"), + crate_pin("warp-flake-7.obu"), + crate_pin("ii-flake-1.obu"), + crate_pin("ii-flake-2.obu"), + crate_pin("ii-flake-3.obu"), + crate_pin("ii-flake-5.obu"), + crate_pin("ii-flake-6.obu"), + crate_pin("ii-flake-7.obu"), + crate_pin("ii-flake-8.obu"), // switchable_interp missing from reset_counts (counter // saturation slowed the adaptation rate) -- unrelated to // interintra, caught by the same gate. - "ii-flake-9", + crate_pin("ii-flake-9.obu"), // lane-rect r2: HORZ strip rect defects (mvstack size_h, // warp sample/projection dims, OBMC overlap, deblock tx-h). - "rect-flake-1", + crate_pin("rect-flake-1.obu"), // scan_row/scan_col weight `inc` min'd by the wrong candidate // axis (width vs height) -- ties reordered DRL entry 1 for a // block under a 32x16 strip, and suppressed the -5 extended // row scan. - "rect-flake-2", + crate_pin("rect-flake-2.obu"), // overlappable_left stepped the vertical walk by the // neighbour's WIDTH: a 32x16 left strip swallowed the strip // below it, blending the wrong OBMC prediction there. - "rect-flake-3", - ] - .iter() - .map(|n| format!("{fixtures}/{n}.obu")) - .collect(), + crate_pin("rect-flake-3.obu"), + ], }; - for path in paths { - eprintln!("pin: {path}"); + for path in pins { + eprintln!("pin: {}", path.display()); check_pinned_warp_stream(&path); } } - fn check_pinned_warp_stream(path: &str) { + fn check_pinned_warp_stream(path: &std::path::Path) { use crate::decode::warp_selected_hits; - let stream = std::fs::read(path).expect("reading pinned stream"); + let name = path + .file_name() + .map(|n| n.to_string_lossy().into_owned()) + .unwrap_or_default(); + let stream = require_pin(path, &name); let before = warp_selected_hits(); let frames = decode_stream(&stream).expect("pinned stream must decode"); eprintln!(