From 4867d6ac37bd481c70aeda2b46acedba98825833 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 27 Nov 2026 21:38:35 +0100 Subject: [PATCH] thing-testkit: bless f02-f08, f11, f12 and f11-deep-refused.bin; README rows Co-Authored-By: Claude Sonnet 5.5 --- crates/thing-testkit/fixtures/README.md | 14 ++++++++++++-- .../fixtures/f02-login-effect.surface.cc | Bin 0 -> 2078 bytes .../fixtures/f03-input-target.surface.cc | Bin 0 -> 1487 bytes .../thing-testkit/fixtures/f04-form.surface.cc | Bin 0 -> 2103 bytes .../fixtures/f05-modal-overlay.surface.cc | Bin 0 -> 1222 bytes .../fixtures/f06-scroll-list.surface.cc | Bin 0 -> 966 bytes .../thing-testkit/fixtures/f07-plot.surface.cc | Bin 0 -> 897 bytes .../fixtures/f08-embed-viewport.surface.cc | Bin 0 -> 741 bytes .../thing-testkit/fixtures/f11-deep-refused.bin | Bin 0 -> 19907 bytes .../thing-testkit/fixtures/f11-deep.surface.cc | Bin 0 -> 19996 bytes .../fixtures/f12-text-edge.surface.cc | Bin 0 -> 1733 bytes 11 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 crates/thing-testkit/fixtures/f02-login-effect.surface.cc create mode 100644 crates/thing-testkit/fixtures/f03-input-target.surface.cc create mode 100644 crates/thing-testkit/fixtures/f04-form.surface.cc create mode 100644 crates/thing-testkit/fixtures/f05-modal-overlay.surface.cc create mode 100644 crates/thing-testkit/fixtures/f06-scroll-list.surface.cc create mode 100644 crates/thing-testkit/fixtures/f07-plot.surface.cc create mode 100644 crates/thing-testkit/fixtures/f08-embed-viewport.surface.cc create mode 100644 crates/thing-testkit/fixtures/f11-deep-refused.bin create mode 100644 crates/thing-testkit/fixtures/f11-deep.surface.cc create mode 100644 crates/thing-testkit/fixtures/f12-text-edge.surface.cc diff --git a/crates/thing-testkit/fixtures/README.md b/crates/thing-testkit/fixtures/README.md index edb41dc..72ce72e 100644 --- a/crates/thing-testkit/fixtures/README.md +++ b/crates/thing-testkit/fixtures/README.md @@ -8,11 +8,21 @@ frozen, and a normal test run only compares and reads them. The rows are the fix | File | Holds | Map rules | |---|---|---| | `f01-swarm-dashboard.surface.cc` | One surface: a Grid Box root, a Text bound with a Number Format, a Repeat over a RecordsSource prefix whose template binds Item members, and a Button whose CommandRef is declared | 6, 9 | +| `f02-login-effect.surface.cc` | One surface (a Text TextInput and a Button whose command captures it, plus the declared resume command), the CommandInvocation of it, and its two results: Pending, then Completed with an `OpenExternal` effect whose `resume` names the declared command | 1, 2 | +| `f03-input-target.surface.cc` | One surface (an Image over a position: absolute Box with insets, holding a bound label) and the AssetCatalog the Image names | - | +| `f04-form.surface.cc` | One surface (Toggle, Slider, Select with literal options, TextInput of Number kind) and one command capturing all four, its invocation, and a Completed result declaring `clear_drafts` | 1 | +| `f05-modal-overlay.surface.cc` | One surface with a modal Overlay anchored to the viewport, a dismiss CommandRef and two Buttons inside | - | +| `f06-scroll-list.surface.cc` | One surface: a Box with `overflow: scroll` holding a Repeat over a RecordsSource prefix, template keyed by the item's `id` (the 1,000 items are provider state, not here) | - | +| `f07-plot.surface.cc` | One surface with a Plot of each mark (Line, Bar, Area) over a bound series, with and without axis bounds | - | +| `f08-embed-viewport.surface.cc` | One surface: an Embed of declared fixed size as a leaf between two Texts | - | | `f09-composition-stack.surface.cc` | One surface whose Use passes one argument of each ArgValue arm and a Slot holding a second Use (two levels), and the publisher CompositionDocument both name | 5 | | `f10-hostile.surface.cc` | Four surfaces, one hostile shape each: an undeclared CommandRef, a duplicate id after expansion, an unresolved Use, and a Bind whose schema no fixture provides; plus the one composition (`dup`) the duplicate-id surface expands | 4, 5, 6 | +| `f11-deep.surface.cc` | One surface: the deepest Box chain whose payload CultCache's `check_payload_depth` accepts, found by the builder | - | +| `f11-deep-refused.bin` | The payload of the same chain one Box level deeper, raw: `check_payload_depth` refuses it at depth 257 and so does CultCache. No store can hold it | - | +| `f12-text-edge.surface.cc` | One surface of five Text nodes: bidi (Hebrew and Arabic in Latin), CJK wide characters, combining marks, emoji ZWJ sequences, and a paragraph long enough to wrap | - | -A surface whose bytes the contract refuses (an unknown union arm) cannot live in a store: that -case is `crates/thing-contract/tests/goldens/node-unknown-arm.bin`, read in place and fed to +A payload the contract refuses cannot live in a store: f11's refused payload is a raw file here, and an +unknown union arm is `crates/thing-contract/tests/goldens/node-unknown-arm.bin`, read in place and fed to `MemState::put_raw`. ## Regenerate diff --git a/crates/thing-testkit/fixtures/f02-login-effect.surface.cc b/crates/thing-testkit/fixtures/f02-login-effect.surface.cc new file mode 100644 index 0000000000000000000000000000000000000000..213e0fb6f63cb44817abff1ac4e083ef8fb4e136 GIT binary patch literal 2078 zcmbVM!EVz)5Va|A=EB_#J!02MnihP4FX#n?1PH;}-Xxadb!Bf-3gRC&YmBi$S{{=@?Gn`-r&DJu(O!M7@B>Y}r`p1)|9~8oaJWz|cp#K&xieR{E{oE&-2l z7y(-u3~&LMk9`|3HS6iKH$w?-?C|>nHX)8cz~$CVTM7nBEAT{48No$f6|uiUk>zyQ z;nz#~ME$Uh9K2xpTlH>;y8w{ASe|bgZgryN#)=FVL}p2nwTfo2W=&viyLHEGw;K8m zGO@m8x0?E$cGJ}x=q}!JcI>)aHzkVbv|%>3b+ZoRp=nyhcrrPDmu*M|s0m(WPS#!+ z3_KTyMla}iM7-5ck=G%*NBECRno}H6qcnmX6O|45=YE7k0=>qS;RocR;}8>Y2rl=r zT}d`gvZi1mN=Hf=V?}jWMw;x#a~m%gXTL;(Pc%Z?&}~J}Em(xBHX^1gzt9$kkDNI&aW>$i}_GoO^fx&8m6i l$PV0tBF@Yyc;Lxdh!xE|qn0LfHIm(`x&@ZF!c19a= z@5DzDEwd^dRFOi2=xIZtChO{dH(-+OfR_U%TvkF{N;EK#b z=F{71uFT71j`oL?H2+5(;v!i^;uT8ZepT)`SpQQCv96qFUoj4-Imk z6|+&!T)>x}Yz?rb#$|D^^av~#aAuLX?AM`oDT4pju?M;=)v=jfZsyfqwyTbr(6Mre z&nm1QL+J@-Z2!>1RGPclvF<@TL_Hj;PDnG8MppmzzSQm#jv3s<>M+77KlBpH2u)L9 QI8ao@evkBDotmfOHz9HkNOsF~ z9Np<^24Xid?)A;CtXqbmneFF&)3tOB_boGvOL1!!K+BTIeO+*Xp`kqhS_QSRHE-c= z9PkL)4zSG<16&}?Kt>B<3hL8mr+x-*-uU|(Ha2oVz|FVO{>EUSv?bomri|c{T@~S< zqR3`C-uTOq#0E&WF zT$6fYTW-INY}r8=!}L0G$FhxF=x8n?-!4gxk%MJ+15(U$UO>)~skH{EO?LbldFNV# zp@B%wUo`(n{38<#lZZ&(58Imkl7uIgjhVyog~uH}*vJHQz<-5Wsg+HGs46InKFcJd zyk!(pk>)bZreTic=*|p?Wzup@kEBxgx$|rE@ye5g;z`&}q&GCQEejLLpG|*Dw~6GD zoX2)JSsdSrb!YazumgS}Y$=N!ki55A{Iwp(X?F!ooQ!8%+Hr^kZSj9RFoP(;a?e{d z|B8UcGA{3V9-U5C2Q0%brOV!8m4f0#qF1H4NbS(1mEH2WKD435u(*uc3T_v;w~| kqGBEy_7C1gesT~tl!lVXO@D(R(KaqoVDW6ze}hgJ@c;k- literal 0 HcmV?d00001 diff --git a/crates/thing-testkit/fixtures/f05-modal-overlay.surface.cc b/crates/thing-testkit/fixtures/f05-modal-overlay.surface.cc new file mode 100644 index 0000000000000000000000000000000000000000..c3ba4e136f5ea6562d9164ffa14fc7f8cdd624f0 GIT binary patch literal 1222 zcmds0L2KJE6n02^*lm~Ijdz_*l0y%^bg-RwDuZndrr58sK#q!}hLthcPmpD|`vYyt zprg=@!Wa~@uv30PVLxI&VX~woZHZy$8DT#^z3=Of7($x9jZJIo*;Pas$Kx&n2uWuwUVyQ zAs_0(Ab$PkL(!rvi|Xc)nJIQN#rup-a0)C+F(PynbgIu_VJ2@H0wM?)L{i7LfDkWJuG)S^ZNzI4Um^I^M%959tILL5CVTt91)A z9h{|@=a}=NadK+U$?X51UT(^=@$%db8VW23I6I23&wzjcU#wi+S=!jG$}?x9sV^Fu zFAHM{8Uk7HOfAn6s!hIyRGMj;pmE{=hUnZT!n-_AP1S84cUX;*surx*_pZ1AE+VI> SudiG;SG73zwO}XHfa|}eb-HH& literal 0 HcmV?d00001 diff --git a/crates/thing-testkit/fixtures/f06-scroll-list.surface.cc b/crates/thing-testkit/fixtures/f06-scroll-list.surface.cc new file mode 100644 index 0000000000000000000000000000000000000000..022b44fa0d39cd43af79a5abce122d424bef0fb4 GIT binary patch literal 966 zcmcgq!AiqG5Z$y29=&*%T)dc&_TV8G{Q^%Ss0gOXwhbhW>~1SX{fEsa*1NPIiWd<< zyo44{{eprY;U_rR1lvjj_F@>q%LHccRH82$bCTEu_g^s?p4}DZqT}+^E=T(Q8P&a557D6Ye^|4=rLe)Gu zy$%aH^Dv%l$(hW2Ci9#G9oNA`uVd`!)Fy%FX`V}20mVzzsP1S+1?<2uOlij-rK{f4 z9Mj_rlQJ6!bQASS5HNwlQSym41mZ&B=^rxVy>%o%>2GF!EQ8EPfAM2c=2H_2&>m%Q ziSFip8sw~!_Q%h$h|d$1xLA=Fh3l^J@$Od!m~xak=TVYO6D1yswKy8M4Eq$?jS_*P zd7<8aEuUe^^t2wfDsfsE0`ksvQswT`6O9BHlI-8rgYlOY4feXEXk`#h=|vB6ROT`d XXUZuNyb~$LKxUJEEpWO+Wyrq)f9Xdu literal 0 HcmV?d00001 diff --git a/crates/thing-testkit/fixtures/f07-plot.surface.cc b/crates/thing-testkit/fixtures/f07-plot.surface.cc new file mode 100644 index 0000000000000000000000000000000000000000..5a237351d4032c2482743ba1ae4fd2bf898f95b8 GIT binary patch literal 897 zcmb_Z&q~8E7*CyEJbCdhJ!|Q9@K6Nz1fE3vgJ4$UR&3XiWV?v(kS5bTfMr)fMDQRM zhNnKkz=!Y={F-(hjukvCe1tDwet*7vQ7>-a=Pq_T#9}<8#2VD2(OVk_B)hP9$LqE& z)~7evB^BlOO-ER|Kvki6Z4P;$e!hNxt`k;Vp^@t z3kni{`Oq1#@-8<-diawQ(vnvbLZ~E}7m!eLbEIP5>k{a9k|>GP;!HjkKA987Ek>wE z82sP3M?IIYC<6X?fc-vU3G|S_%A}uKn66UU0OhiO?GR&1@G33VL}`#VPZK@8^m8`M H*;K_Z+o?w{ literal 0 HcmV?d00001 diff --git a/crates/thing-testkit/fixtures/f08-embed-viewport.surface.cc b/crates/thing-testkit/fixtures/f08-embed-viewport.surface.cc new file mode 100644 index 0000000000000000000000000000000000000000..4d44b35be75860d27855f7656eb6508e5f9adba2 GIT binary patch literal 741 zcma))K}y3w6ow~MS8m+6m#poOcHtr$djeM?s0gOXqzyEkGMToB2p(ZFN$UlwbX8D9 za2G7DdV+$7@Cd#n6HB!L!(;gW$$Q^F6B0e!{SLP+yG?MwDI<7L3-4cBmQT_bn76%d z3kQAXS~e-!e%ss)q>_Q<)r}rNqHi5Tj&ACk0s4XJIwdUdXt%TxlAzZoeiIsX^WyS0 zEJ+q&yv*-psymrIMhBil7#?_J*rSZ&l;czjTS9uN8}-AgQG+@$3^S|q4=o-){Q=I_ zf!Z%G(I}cQO1VVgJo!X>5(!nXvuNz1?8)?guH($)8vRGdvLaR`HNc+b<8n*Ll%QZ4 z?MJH-B-ZEQd@u#8CgiqQ9DU^jD@H{K5hclL1Bpm#TzZ=S%S?4(JZ>v{4n qcSg~)`0QEFtZ;ZpS;v|9me*Z0xQc7IcbQ7b50=XbE5NxcxZ)d7>kLx> literal 0 HcmV?d00001 diff --git a/crates/thing-testkit/fixtures/f11-deep-refused.bin b/crates/thing-testkit/fixtures/f11-deep-refused.bin new file mode 100644 index 0000000000000000000000000000000000000000..62334e16c2b9c11f4243908aed15d4a06e0dfadb GIT binary patch literal 19907 zcmd_sJx;?g7=U3%g`I`H7XVTJd^QtYgS{D;s5)>C*Dag?!NeURG3E*!f+OJARwFj% zzEx#8kv_-o_Pl;>wolKG>wbH^?)%N#v~*=n>Sg~vJzm`;wfh>r)n!sKb#YqroALfa zm0#H}>;6z4>R$b4e@Kfs|5KNbeW>HTVk0PTLfJUtpV53$Fz)>p& z=%|$fc+^S(K5C@^Ahl9}kXk8#NUaoOB#kkW#u!OsjHEF}(ikIYjFB|PNE%}#jWLqO z7|CFaWH3fD7$X^skqpL224f_HF_OU;$zY6RFh;T%BUy}*EXGI{VCNiat87$bR%kvzso9%CerF_Om^$zzP(%IW2AsFQotA~ JoVJl-`~{2rVtoJr literal 0 HcmV?d00001 diff --git a/crates/thing-testkit/fixtures/f11-deep.surface.cc b/crates/thing-testkit/fixtures/f11-deep.surface.cc new file mode 100644 index 0000000000000000000000000000000000000000..fd8a88c907f2e2e3f84006323774ec397def17ee GIT binary patch literal 19996 zcmd_sPiqrF7{~Dq)w>t(Vb6Bi%-?k{_5~DABB%()bZrBsDVwwx@jc9LqP~HmCodv` zw}5!cD+u@^dYi`=tSztawAX}YO}DFcD2d$ldjB$C)xPqsTR-~S7Ob!8_MCHz)oQm9 zxoQ`5;9ragDkwoEC8(kV)s&!y64X+HW|W{0Z-3A)jf@5W8ik|)8-=6*9EGF+9fhO- z9)+X;ABCgB88+FBMFR=1ja}LVHq)$ literal 0 HcmV?d00001 diff --git a/crates/thing-testkit/fixtures/f12-text-edge.surface.cc b/crates/thing-testkit/fixtures/f12-text-edge.surface.cc new file mode 100644 index 0000000000000000000000000000000000000000..73a766cd23b5f16fd7462f1a3eedd053e76e9fac GIT binary patch literal 1733 zcmeHG&1(};5Z_RH^Weq%5b)N7w1P+w6ufxyR0I{lm(A;DlihuBcat=gLO-nZP|0S~ zqz9wbe%MCrL9NnY3W4CM={bpbvbBmR>7U^2ZaxS!;K5^;$L!3!`Tc$~``%{W@i9r~ z2_K?fO=l|g#)s2O9|a;)Ys0IDL`CpwF?Edav`@Ntay2sb0W|JEbZe+6lbfjH_Pb9e za1XVrZc$YenbNlqm9SQ(asUh6{=4@k(|weU^kUbchm!#$5ev zeXG7%-vG-r9@UGMZOnllq6!R;Tm-5Fy=ws$OjgPji+z<3M>^zJj+WMs@^5~=ett0f z_+X}ZFgp*2yDz@4?;h^teqPqGuuzZsQu4kC)ShZ&OdYuMH=9 z1(@1AUQX@WvH1z()cfX6$_^Lidw3I&7o Qa5}>2Dg2j<)c#qFzcvuHdjJ3c literal 0 HcmV?d00001