<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MeloLabs.net</title>
    <description>The latest articles on DEV Community by MeloLabs.net (@melolabs_melo_0f8fdb509b9).</description>
    <link>https://dev.to/melolabs_melo_0f8fdb509b9</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4227400%2F8b269e21-4a3e-4c38-a1cc-0f49afd098c5.png</url>
      <title>DEV Community: MeloLabs.net</title>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/melolabs_melo_0f8fdb509b9"/>
    <language>en</language>
    <item>
      <title>The more UX rules Haiku sees, the better it decides: but simple search is not enough</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:22:09 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/the-more-ux-rules-haiku-sees-the-better-it-decides-but-simple-search-is-not-enough-89g</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/the-more-ux-rules-haiku-sees-the-better-it-decides-but-simple-search-is-not-enough-89g</guid>
      <description>&lt;p&gt;&lt;strong&gt;The simple version of the study "How much does a UX data lake help a small model on big screens?".&lt;/strong&gt; For the full method and every number, read the &lt;a href="https://dev.to/en/haiku-ui-producao/"&gt;technical article&lt;/a&gt;. Here is what it means if you want to use it tomorrow.&lt;/p&gt;

&lt;h2&gt;
  
  
  In one sentence
&lt;/h2&gt;

&lt;p&gt;When the request is vague ("get this ready for production"), Haiku (the small model) fixed &lt;strong&gt;46% of the issues with no rules, 70% with the whole set of 148 UX rules and 78% with the rules plus a verifier's report&lt;/strong&gt;. With the rules, it beat Sonnet (the larger model) without rules (61%) at &lt;strong&gt;about 8% of the cost per call&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-completude-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-completude-en.png" alt="How much of the lake the model sees and how much it gets right" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did
&lt;/h2&gt;

&lt;p&gt;We built 6 kinds of big screen (dashboard, listing, form, checkout, settings and navigation, 383 to 1,200 lines) and a &lt;strong&gt;data lake of 200 UX rules from open sources&lt;/strong&gt; (WCAG, GOV.UK, web.dev, Nielsen Norman and others), checked one by one against the source. On each screen we deliberately broke 3 to 30 rules. Then we asked Haiku and Sonnet to fix them, &lt;strong&gt;showing 0%, 25%, 50% or 100% of the rules&lt;/strong&gt;, and measured with a verifier in a real browser how many rules came to be met. That was &lt;strong&gt;2,640 calls&lt;/strong&gt;, and the hypotheses were written and frozen before running.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we found
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Every extra 25% of rules gave 8 to 12 more points of accuracy&lt;/strong&gt; on Haiku (47%, 59%, 67% and 76% on the rules shown). In practice: expanding the lake is worth it, and there is no sign it has reached its end.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is not just text volume.&lt;/strong&gt; Giving the same amount of rules from other subjects only raised accuracy from 47% to 52%. The right rule is what matters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The lake helped even where it did not cover.&lt;/strong&gt; On rules the model never saw, accuracy was up to 11 points higher with the full lake: the model became more careful overall.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The verifier report avoids breaking what was already right.&lt;/strong&gt; It cut the rules that started failing from 0.94 to 0.21 per screen, and added to the full lake it raised accuracy from 70% to 78% (and from 76% to 89% on the rules shown).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Better and cheaper.&lt;/strong&gt; Haiku with rules beat Sonnet without rules (70% against 61%) at US$ 0.0225 per call against US$ 0.2728, about 8% of the cost. On fixing screens with known defects, Haiku with rules reached 81% (against 63% for Sonnet without rules) at 6% of the cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More rules, better-grounded decisions.&lt;/strong&gt; The share of Haiku's decisions citing a rule it actually received rose from 59% (25% of the lake) to 90% (full lake).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What the study proved
&lt;/h2&gt;

&lt;p&gt;We wrote the questions before running, and those that matter most to someone using the lake were confirmed, with statistical correction for multiple comparisons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Completeness improves the decision:&lt;/strong&gt; 25%, 50% and 100% of the lake each gave higher accuracy than the previous step.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The right rule matters more than volume:&lt;/strong&gt; the full lake (76% on the rules shown) stayed far above the same amount of rules from other subjects (52%).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The lake does not hurt where it does not cover&lt;/strong&gt;, and the verifier report adds to the full lake and reduces regressions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost:&lt;/strong&gt; the small model with the lake beats the larger model without it, at 6% to 8% of the cost per call.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some things we tested did &lt;strong&gt;not&lt;/strong&gt; work or did not apply (for example, how much of the lake simple search recovers). They are in section 6 of the &lt;a href="https://dev.to/en/haiku-ui-producao/"&gt;technical article&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Caveats
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The screens are &lt;strong&gt;synthetic&lt;/strong&gt; (six kinds, script-generated) and the task is &lt;strong&gt;reviewing a draft&lt;/strong&gt;, not creating from scratch. That does not prove the same behavior in a large production project.&lt;/li&gt;
&lt;li&gt;We measured &lt;strong&gt;rule compliance&lt;/strong&gt;, not whether the end user ended up better off.&lt;/li&gt;
&lt;li&gt;The verifier was wrong on about 13% of audited verdicts, and the lake was audited by a model, without human review.&lt;/li&gt;
&lt;li&gt;We tested only two models and &lt;strong&gt;nothing about aesthetics&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Want the data and method? &lt;a href="https://dev.to/en/haiku-ui-producao/"&gt;Read the technical article&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The experiments, the data and the conclusions are mine. The writing was AI-assisted and reviewed by me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>haiku</category>
      <category>ux</category>
      <category>datalake</category>
      <category>guide</category>
    </item>
    <item>
      <title>Quanto mais regras de UX o Haiku vê, melhor ele decide: mas busca simples não basta</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:21:21 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/quanto-mais-regras-de-ux-o-haiku-ve-melhor-ele-decide-mas-busca-simples-nao-basta-1g12</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/quanto-mais-regras-de-ux-o-haiku-ve-melhor-ele-decide-mas-busca-simples-nao-basta-1g12</guid>
      <description>&lt;p&gt;&lt;strong&gt;Versão simples do estudo "O quanto o data lake de UX ajuda um modelo pequeno em telas grandes?".&lt;/strong&gt; Para o método completo e todos os números, leia o &lt;a href="https://dev.to/pt/haiku-ui-producao/"&gt;artigo técnico&lt;/a&gt;. Aqui está o que ele significa para quem quer usar isso amanhã.&lt;/p&gt;

&lt;h2&gt;
  
  
  Em uma frase
&lt;/h2&gt;

&lt;p&gt;Quando o pedido é vago ("deixa isso pronto para produção"), o Haiku (o modelo pequeno) acertou &lt;strong&gt;46% das correções sem regras, 70% com o conjunto inteiro de 148 regras de UX e 78% com as regras mais o relatório de um verificador&lt;/strong&gt;. Com as regras, ele passou o Sonnet (o modelo maior) sem regras (61%), por &lt;strong&gt;cerca de 8% do custo por chamada&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-completude-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-completude-pt.png" alt="Quanto do lake o modelo vê e quanto acerta" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  O que a gente fez
&lt;/h2&gt;

&lt;p&gt;Montamos 6 tipos de tela grande (painel, listagem, formulário, checkout, configurações e navegação, de 383 a 1.200 linhas) e um &lt;strong&gt;data lake de 200 regras de UX tiradas de fontes abertas&lt;/strong&gt; (WCAG, GOV.UK, web.dev, Nielsen Norman e outras), conferidas uma a uma contra a fonte. Em cada tela, estragamos de propósito de 3 a 30 regras. Depois pedimos ao Haiku e ao Sonnet que consertassem, &lt;strong&gt;mostrando 0%, 25%, 50% ou 100% das regras&lt;/strong&gt;, e medimos com um verificador em navegador real quantas regras passaram a ser cumpridas. Foram &lt;strong&gt;2.640 chamadas&lt;/strong&gt;, e as hipóteses foram escritas e congeladas antes de rodar.&lt;/p&gt;

&lt;h2&gt;
  
  
  O que a gente descobriu
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cada 25% a mais de regras rendeu de 8 a 12 pontos a mais de acerto&lt;/strong&gt; no Haiku (47%, 59%, 67% e 76% nas regras mostradas). Na prática: vale ampliar o lake, não há sinal de que ele já tenha chegado ao fim.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Não é só volume de texto.&lt;/strong&gt; Dar o mesmo tanto de regras de outros assuntos subiu o acerto só de 47% para 52%. A regra certa é o que importa.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O lake ajudou até onde ele não cobria.&lt;/strong&gt; Nas regras que o modelo nunca viu, o acerto foi até 11 pontos maior com o lake cheio: o modelo ficou mais cuidadoso no geral.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O relatório do verificador evita quebrar o que já estava certo.&lt;/strong&gt; Ele cortou as regras que passaram a falhar de 0,94 para 0,21 por tela, e somado ao lake inteiro subiu o acerto de 70% para 78% (e de 76% para 89% nas regras mostradas).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Melhor e mais barato.&lt;/strong&gt; O Haiku com regras passou o Sonnet sem regras (70% contra 61%) por US$ 0,0225 por chamada contra US$ 0,2728, cerca de 8% do custo. No conserto de telas com defeitos conhecidos, o Haiku com regras chegou a 81% (contra 63% do Sonnet sem regras) por 6% do custo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mais regras, decisões mais ancoradas.&lt;/strong&gt; A fração das decisões do Haiku que citava uma regra realmente recebida subiu de 59% (25% do lake) para 90% (lake inteiro).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  O que o estudo comprovou
&lt;/h2&gt;

&lt;p&gt;Escrevemos as perguntas antes de rodar, e as que mais importam para quem usa o lake foram confirmadas, com correção estatística para múltiplas comparações:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Completude melhora a decisão:&lt;/strong&gt; 25%, 50% e 100% do lake deram, cada um, acerto maior que o degrau anterior.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A regra certa pesa mais que o volume:&lt;/strong&gt; o lake inteiro (76% nas regras mostradas) ficou muito acima do mesmo tanto de regras de outros assuntos (52%).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O lake não prejudica onde não cobre&lt;/strong&gt;, e o relatório do verificador soma ao lake inteiro e reduz as regressões.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custo:&lt;/strong&gt; o modelo pequeno com o lake passa o modelo maior sem ele, por 6% a 8% do custo por chamada.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Algumas coisas que testamos &lt;strong&gt;não&lt;/strong&gt; deram certo ou não se aplicaram (por exemplo, o que uma busca simples recupera do lake). Elas estão na seção 6 do &lt;a href="https://dev.to/pt/haiku-ui-producao/"&gt;artigo técnico&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ressalvas
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;As telas são &lt;strong&gt;sintéticas&lt;/strong&gt; (seis tipos, geradas por script) e a tarefa é &lt;strong&gt;revisar um rascunho&lt;/strong&gt;, não criar do zero. Isso não prova o mesmo comportamento em um projeto grande em produção.&lt;/li&gt;
&lt;li&gt;Medimos &lt;strong&gt;conformidade com regras&lt;/strong&gt;, não se o usuário final ficou melhor.&lt;/li&gt;
&lt;li&gt;O verificador errou em cerca de 13% dos veredictos auditados, e o lake foi auditado por modelo, sem revisão humana.&lt;/li&gt;
&lt;li&gt;Só testamos dois modelos e &lt;strong&gt;nada sobre estética&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Quer os dados e o método? &lt;a href="https://dev.to/pt/haiku-ui-producao/"&gt;Leia o artigo técnico&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Os experimentos, os dados e as conclusões são meus. A redação foi assistida por IA e revisada por mim.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>haiku</category>
      <category>ux</category>
      <category>datalake</category>
      <category>guia</category>
    </item>
    <item>
      <title>Give Haiku the UX rules and a checker, not just the request</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:20:32 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/give-haiku-the-ux-rules-and-a-checker-not-just-the-request-dfi</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/give-haiku-the-ux-rules-and-a-checker-not-just-the-request-dfi</guid>
      <description>&lt;p&gt;&lt;strong&gt;The simple version of the "Haiku with a UX kit" study.&lt;/strong&gt; For the full method and every number, read the &lt;a href="https://dev.to/en/haiku-ui-design/"&gt;technical article&lt;/a&gt;. Here is what it means if you want to use it tomorrow.&lt;/p&gt;

&lt;h2&gt;
  
  
  In one sentence
&lt;/h2&gt;

&lt;p&gt;When Haiku (the small model) gets &lt;strong&gt;open-source UX rules&lt;/strong&gt; and &lt;strong&gt;a simple piece of code that checks the screen&lt;/strong&gt;, it creates and improves login screens &lt;strong&gt;at the level of Sonnet (the larger model) working alone, for about 10% of the cost per task&lt;/strong&gt;. For comparing two screens, the code did not help. And &lt;strong&gt;we could not measure aesthetics reliably without a person&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-escada-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-escada-en.png" alt="Haiku and Sonnet scores on each task" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-metodo-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-metodo-en.png" alt="The three tasks and the four kinds of help" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We picked &lt;strong&gt;one small screen, the login screen&lt;/strong&gt;, and built three tasks: &lt;strong&gt;create&lt;/strong&gt; the screen from scratch, &lt;strong&gt;improve&lt;/strong&gt; a screen with hidden defects, and &lt;strong&gt;compare&lt;/strong&gt; two screens by reading their code. To help Haiku we built:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a &lt;strong&gt;data lake of 30 rules&lt;/strong&gt; (contrast, labels on fields, button size, a password-recovery link and others), all taken from open sources (WCAG, web.dev, Material Design), none from memory;&lt;/li&gt;
&lt;li&gt;a small &lt;strong&gt;code checker&lt;/strong&gt;, with no browser, that reads the HTML and CSS, says which rules fail and lists the real differences between two screens.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We ran &lt;strong&gt;2,244 tasks&lt;/strong&gt; with Haiku and Sonnet, each 3 times, with no failures in the end. Before running, we wrote the hypotheses and the criteria.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we found
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. The rules in the prompt already change a lot.&lt;/strong&gt; When &lt;strong&gt;creating&lt;/strong&gt; a screen, Haiku alone met 74% of the rules; with the rules in the prompt, 99%. When &lt;strong&gt;improving&lt;/strong&gt; a screen with defects, 75% rose to 89% with the rules alone, and to 97% with the checker report.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-acerto-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-acerto-en.png" alt="Score by task" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The checker helps with improving and creating, and helps the small model more.&lt;/strong&gt; The gain was larger for Haiku than for Sonnet in creating and in improving. Sonnet alone already improves a screen well (94%) and even got worse when given the rules alone (81%).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The combination costs a tenth.&lt;/strong&gt; On average per task, Haiku with rules and checker cost US$ 0.0022 and Sonnet alone US$ 0.0210, with Haiku's accuracy at 1.07 times Sonnet's.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-custo-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-custo-en.png" alt="Cost per task" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. An independent tool confirmed part of it.&lt;/strong&gt; We ran the created screens through axe-core, an accessibility checker that neither our checker nor our prompts know: violations fell from 0.50 per screen (Haiku alone) to 0.03 (with rules and checker).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Comparing two screens needed no help.&lt;/strong&gt; Given the code of both screens, Haiku and Sonnet already get about 93%, and the checker report &lt;strong&gt;made it slightly worse&lt;/strong&gt; (to about 90%), mainly on CSS changes. Neither model invented a difference where there was none.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the hypotheses meant
&lt;/h2&gt;

&lt;p&gt;Before running, we fixed the hypotheses and how much of a result would be enough. Of the confirmatory comparisons, 7 of 12 passed the multiple-testing correction:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-hipoteses-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-hipoteses-en.png" alt="The hypotheses" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Creating and improving with rules and checker:&lt;/strong&gt; yes, well above the baseline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The checker helps Haiku more than Sonnet:&lt;/strong&gt; yes in creating and improving; no in comparing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The checker is worth more than just a second self-critique pass (creating):&lt;/strong&gt; yes by our rules, but axe-core did not see that difference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The checker reduces false alarms when comparing:&lt;/strong&gt; could not be tested, because nobody made mistakes on those pairs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The main criterion (Haiku with the combination reaches 90% of Sonnet at up to half the cost):&lt;/strong&gt; &lt;strong&gt;supported&lt;/strong&gt;, but only against Sonnet. Opus was left out of the study because of cost.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What did not work, and what to be careful about
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Aesthetics: no instrument without a human passed validation.&lt;/strong&gt; We tested a model trained on design ratings (UIClip), a set of code-based measures and a Fable pairwise judge against real A/B tests. Fable got 55.6% right (we needed 60%) and changed its answer when we swapped the order of the screens in 4 out of 10 cases. So &lt;strong&gt;this study says nothing about beauty&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-estetica-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-estetica-en.png" alt="The three aesthetics instruments and their thresholds" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The yardstick is the rules.&lt;/strong&gt; Creating and improving are scored by the same 30 rules we helped the model meet. axe-core softens this for creating, but not for improving. Read it as "Haiku meets the rules it is given", not as "Haiku does good UX".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One screen, script-generated screens, no Opus, no real browser in the checker.&lt;/strong&gt; We do not know whether it holds for real screens.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The recipe
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-receita-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-receita-en.png" alt="Recipe in five steps" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pick one small screen&lt;/strong&gt; and list the rules that matter, &lt;strong&gt;from open sources only&lt;/strong&gt; (WCAG, official guides), never from memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the rules in the small model's prompt.&lt;/strong&gt; That alone solves a good part of creating.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write a minimal checker&lt;/strong&gt; (reading HTML and CSS is enough for many rules) and hand its &lt;strong&gt;report&lt;/strong&gt; to the model, asking for fixes as &lt;strong&gt;patches&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure with a tool the model and the checker do not know&lt;/strong&gt;, such as axe-core, and be wary of scoring with the same rules you handed over.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not measure aesthetics without a person.&lt;/strong&gt; If you have no designer, say you did not measure it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All the code, stimuli and raw data are in the &lt;a href="https://dev.to/en/haiku-ui-design/"&gt;study repository&lt;/a&gt;, so you can check or repeat it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The experiments, data and conclusions are mine. The writing was AI-assisted and reviewed by me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>haiku</category>
      <category>ux</category>
      <category>ui</category>
      <category>guide</category>
    </item>
    <item>
      <title>Dê ao Haiku as regras de UX e um checador, não só o pedido</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:19:44 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/de-ao-haiku-as-regras-de-ux-e-um-checador-nao-so-o-pedido-8c5</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/de-ao-haiku-as-regras-de-ux-e-um-checador-nao-so-o-pedido-8c5</guid>
      <description>&lt;p&gt;&lt;strong&gt;Versão simples do estudo "Haiku com kit de UX".&lt;/strong&gt; Para o método completo e todos os números, leia o &lt;a href="https://dev.to/pt/haiku-ui-design/"&gt;artigo técnico&lt;/a&gt;. Aqui está o que ele significa para quem quer usar isso amanhã.&lt;/p&gt;

&lt;h2&gt;
  
  
  Em uma frase
&lt;/h2&gt;

&lt;p&gt;Quando o Haiku (o modelo pequeno) recebe &lt;strong&gt;regras de UX com fonte aberta&lt;/strong&gt; e um &lt;strong&gt;código simples que confere a tela&lt;/strong&gt;, ele cria e melhora telas de login &lt;strong&gt;no nível do Sonnet (o modelo maior) sem ajuda, por cerca de 10% do custo por tarefa&lt;/strong&gt;. Em comparar duas telas, o código não ajudou. E &lt;strong&gt;não conseguimos medir estética de forma confiável sem uma pessoa&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-escada-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-escada-pt.png" alt="Pontuação do Haiku e do Sonnet em cada tarefa" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  O que a gente fez
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-metodo-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-metodo-pt.png" alt="As três tarefas e as quatro formas de ajuda" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Escolhemos &lt;strong&gt;uma tela pequena, a de login&lt;/strong&gt;, e criamos três tarefas: &lt;strong&gt;criar&lt;/strong&gt; a tela do zero, &lt;strong&gt;melhorar&lt;/strong&gt; uma tela com defeitos escondidos e &lt;strong&gt;comparar&lt;/strong&gt; duas telas lendo o código. Para ajudar o Haiku, montamos:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;um &lt;strong&gt;data lake de 30 regras&lt;/strong&gt; (contraste, rótulo nos campos, tamanho de botão, link de recuperar senha e outras), todas tiradas de fontes abertas (WCAG, web.dev, Material Design), nenhuma de cabeça;&lt;/li&gt;
&lt;li&gt;um &lt;strong&gt;checador de código&lt;/strong&gt; pequeno, sem navegador, que lê o HTML e o CSS, diz quais regras falham e lista as diferenças reais entre duas telas.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rodamos &lt;strong&gt;2.244 tarefas&lt;/strong&gt; com Haiku e Sonnet, cada uma 3 vezes, sem nenhuma falha no final. Antes de rodar, escrevemos as hipóteses e os critérios.&lt;/p&gt;

&lt;h2&gt;
  
  
  O que a gente descobriu
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. As regras no prompt já mudam muito.&lt;/strong&gt; Ao &lt;strong&gt;criar&lt;/strong&gt; uma tela, o Haiku sozinho cumpriu 74% das regras; com as regras no prompt, 99%. Ao &lt;strong&gt;melhorar&lt;/strong&gt; uma tela com defeitos, de 75% para 89% só com regras, e para 97% com o relatório do checador.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-acerto-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-acerto-pt.png" alt="Pontuação por tarefa" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. O checador ajuda a melhorar e a criar, e mais o modelo pequeno.&lt;/strong&gt; O ganho foi maior no Haiku que no Sonnet em criar e em melhorar. O Sonnet sozinho já melhora bem uma tela (94%) e até piorou quando recebeu só as regras (81%).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. O conjunto custa um décimo.&lt;/strong&gt; Em média por tarefa, o Haiku com regras e checador custou US$ 0,0022 e o Sonnet sozinho US$ 0,0210, com acurácia do Haiku 1,07 vez a do Sonnet.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-custo-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-custo-pt.png" alt="Custo por tarefa" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Uma ferramenta independente confirmou em parte.&lt;/strong&gt; Passamos as telas criadas pelo axe-core, um verificador de acessibilidade que o checador e os prompts não conhecem: as violações caíram de 0,50 por tela (Haiku sozinho) para 0,03 (com regras e checador).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Comparar duas telas não precisou de ajuda.&lt;/strong&gt; Com o código das duas telas, Haiku e Sonnet já acertam cerca de 93%, e o relatório do checador &lt;strong&gt;piorou um pouco&lt;/strong&gt; (para cerca de 90%), principalmente em mudanças de CSS. Nenhum dos dois inventou diferença onde não havia.&lt;/p&gt;

&lt;h2&gt;
  
  
  O que as hipóteses queriam dizer
&lt;/h2&gt;

&lt;p&gt;Antes de rodar, fixamos hipóteses e quanto de resultado bastaria. Das comparações confirmatórias, 7 de 12 passaram na correção de múltiplos testes:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-hipoteses-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-hipoteses-pt.png" alt="As hipóteses" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Criar e melhorar com regras e checador:&lt;/strong&gt; sim, bem acima da linha de base.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O checador ajuda mais o Haiku que o Sonnet:&lt;/strong&gt; sim em criar e em melhorar; não em comparar.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O checador vale mais que só uma segunda passada de autocrítica (criar):&lt;/strong&gt; sim pelas nossas regras, mas o axe-core não viu essa diferença.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O checador reduz alarme falso ao comparar:&lt;/strong&gt; não deu para testar, porque ninguém errou nesses pares.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O critério principal (Haiku com o conjunto chega a 90% do Sonnet por até metade do custo):&lt;/strong&gt; &lt;strong&gt;suportada&lt;/strong&gt;, mas só contra o Sonnet. O Opus ficou fora do estudo por custo.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  O que não funcionou, e o que fica de cuidado
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Estética: nenhum instrumento sem humano passou na validação.&lt;/strong&gt; Testamos um modelo treinado em notas de design (UIClip), um conjunto de medidas por código e um juiz Fable em pares contra testes A/B reais. O Fable acertou 55,6% (precisávamos de 60%) e mudou de resposta ao trocar a ordem das telas em 4 de cada 10 vezes. Por isso, &lt;strong&gt;este estudo não diz nada sobre beleza&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-estetica-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-estetica-pt.png" alt="Os três instrumentos de estética e os limiares" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A régua é a das regras.&lt;/strong&gt; Criar e melhorar são pontuados pelas mesmas 30 regras que ajudamos o modelo a cumprir. O axe-core ameniza isso em criar, mas não em melhorar. Leia como "o Haiku cumpre as regras dadas", não como "o Haiku faz bom UX".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uma tela só, telas geradas por script, sem Opus, sem navegador real no checador.&lt;/strong&gt; Não sabemos se vale para telas reais.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A receita
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-receita-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-receita-pt.png" alt="Receita em cinco passos" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Escolha uma tela pequena&lt;/strong&gt; e liste as regras que importam, &lt;strong&gt;só de fontes abertas&lt;/strong&gt; (WCAG, guias oficiais), nunca de cabeça.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ponha as regras no prompt&lt;/strong&gt; do modelo pequeno. Só isso já resolve boa parte de criar.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Escreva um checador mínimo&lt;/strong&gt; (ler HTML e CSS basta para muitas regras) e entregue o &lt;strong&gt;relatório&lt;/strong&gt; ao modelo, pedindo correções em &lt;strong&gt;trechos&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meça com uma ferramenta que o modelo e o checador não conhecem&lt;/strong&gt;, como o axe-core, e desconfie de pontuar com as mesmas regras que você entregou.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Não meça estética sem uma pessoa.&lt;/strong&gt; Se não tiver um designer, diga que não mediu.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Todo o código, os estímulos e os dados brutos estão no &lt;a href="https://dev.to/pt/haiku-ui-design/"&gt;repositório do estudo&lt;/a&gt;, para você conferir ou repetir.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Os experimentos, os dados e as conclusões são meus. A redação foi assistida por IA e revisada por mim.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>haiku</category>
      <category>ux</category>
      <category>ui</category>
      <category>guia</category>
    </item>
    <item>
      <title>How much does a UX data lake help a small model on big screens? We measured completeness, rule by rule</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:18:55 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/how-much-does-a-ux-data-lake-help-a-small-model-on-big-screens-we-measured-completeness-rule-by-267l</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/how-much-does-a-ux-data-lake-help-a-small-model-on-big-screens-we-measured-completeness-rule-by-267l</guid>
      <description>&lt;p&gt;&lt;strong&gt;Summary.&lt;/strong&gt; Across 2,640 calls (Haiku 5.5 and Sonnet 5.5, 48 screens per task, six screen families), Haiku's accuracy when reviewing a production screen with every defect rose from &lt;strong&gt;46% with no lake to 70% with the full lake&lt;/strong&gt; and &lt;strong&gt;78% with the lake plus the verifier report&lt;/strong&gt;, in steps: 0%, 25%, 50% and 100% of the lake gave 47%, 59%, 67% and 76% on the rules shown. Showing the same amount of text from other domains (52%) or the 12 closest rules by BM25 (57%) stayed far below the full lake. Haiku with the lake (70%) beat Sonnet without it (61%) at about 8% of the nominal cost per call. Central caveats: synthetic screens, review of a draft rather than creation, and a verifier that was wrong on about 13% of the audited verdicts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-metodo-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-metodo-en.png" alt="Study overview" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The question and the decision it informs
&lt;/h2&gt;

&lt;p&gt;In the &lt;a href="https://dev.to/en/haiku-ui-design/"&gt;previous study&lt;/a&gt;, Haiku with UX rules and a checker came close to Sonnet on a login screen, and two limitations appeared: the screen was too simple (few possible rules) and the result could be at the ceiling. This study changes both and adds a third question, the one that matters most to anyone building a real data lake: &lt;strong&gt;how much of the lake's completeness turns into better decisions when the request is vague and the model has to decide what to change?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The decision the result informs: whether it is worth investing in a bigger lake (more rules, more domains), whether a simple search inside it is enough, and whether an automatic check report should go along.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Study question:&lt;/strong&gt; on big screens, does Haiku's accuracy grow with the number of lake rules shown to the model? Do the right rules matter more than volume? Does the lake hurt where it does not cover? Does retrieval by text search keep the gain?&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The material
&lt;/h2&gt;

&lt;h3&gt;
  
  
  2.1 The reference data lake
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;200 UX rules from 105 open sources&lt;/strong&gt; (WCAG 2.2, ARIA Authoring Practices, web.dev, MDN, GOV.UK Design System, USWDS, Nielsen Norman Group and what Baymard makes public), in 11 domains: forms, checkout, tables, data, search, navigation, states, destructive actions, accessibility, mobile and readability. Four agents built the rules in parallel; all URLs returned 200 and I checked them.&lt;/p&gt;

&lt;p&gt;That was not enough, because opening a page does not prove it supports the rule. An independent audit compared each rule with the source text: &lt;strong&gt;111 were supported, 86 partially (the rule was more specific or stronger than the page) and 3 were not supported&lt;/strong&gt;. Of the partial ones, 74 got a wording adjusted to what the page actually says; 12 and the 3 unsupported ones were dropped. &lt;strong&gt;185 eligible rules&lt;/strong&gt; remained. The audit was done by a model, with pages summarized by a small model, without human review.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.2 The six screen families
&lt;/h3&gt;

&lt;p&gt;To measure on realistic screens, we generated six families: &lt;strong&gt;data dashboard, listing with search, multi-step form, checkout, settings and navigation&lt;/strong&gt;. Each screen has 383 to 1,200 lines of HTML and CSS, with design tokens, repeated components and data in Portuguese from six themes (logistics, finance, health, HR, retail and education). &lt;strong&gt;140 lake rules&lt;/strong&gt; become switches: the screen is built complying with or violating each rule, and an independent verifier in a real browser (Chrome via Playwright, plus axe-core) checks the result. Agreement between generator and verifier was 100% across 15 seeds per family (clean screen, isolated violation and five violations together).&lt;/p&gt;

&lt;p&gt;The structure of each family is fixed; content, theme and which rules are violated vary. That matters in the threats section.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.3 The held-out rules
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;25% of each family's rules (37 rules) were drawn with a fixed seed and never appear&lt;/strong&gt; in the lake, the reports or the prompts. They measure spillover: what the model gets right without having been taught, and whether the lake hurts where it does not cover.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.4 The ground truth and how we validated it
&lt;/h3&gt;

&lt;p&gt;The ground truth comes from construction (which rule was violated). The verifier measures whether, after the model's answer, the rule is now met. Two limits: the generator and the verifier have the same author, so the 100% agreement shows consistency, not validity; and the verifier was written for our screens' markup. To measure its error on model-written screens, &lt;strong&gt;60 sampled verdicts were audited by two agents who decided before seeing the verdict&lt;/strong&gt;. Result: &lt;strong&gt;33 of 40 "not fixed" were right (82%) and 18 of 20 "fixed" (90%)&lt;/strong&gt;; errors concentrated in 12 rules (6 from the pilot and 6 from the run), which go into a sensitivity analysis (section 7.5).&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The tasks and the conditions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;T2, improve a screen with defects.&lt;/strong&gt; The screen comes with 3, 6 or 9 violated rules (graded difficulty), at least one held out. The request is "improve this screen for production". Answers are BEFORE/AFTER patches, applied by code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;T4, open review for production.&lt;/strong&gt; The screen comes with &lt;strong&gt;all of the family's rules violated&lt;/strong&gt; (19 to 30) and a vague manager request: "get this ready for production; users are in a hurry and use laptops and phones". There is no defect list. The model decides what to change and lists its decisions, citing the rule used. T4 is not creation from scratch: the verifiers depend on the screens' markup, so they could not score a screen the model invented.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;What the model receives&lt;/th&gt;
&lt;th&gt;The question it answers&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;A0&lt;/td&gt;
&lt;td&gt;only the screen and the request&lt;/td&gt;
&lt;td&gt;baseline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;A1&lt;/td&gt;
&lt;td&gt;+ the family's rules (minus held-out)&lt;/td&gt;
&lt;td&gt;does a family lake help?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;A2&lt;/td&gt;
&lt;td&gt;+ the verifier report&lt;/td&gt;
&lt;td&gt;does the report help alone?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;A3&lt;/td&gt;
&lt;td&gt;+ rules and report&lt;/td&gt;
&lt;td&gt;do the two add up?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;L0&lt;/td&gt;
&lt;td&gt;only the screen and the vague request&lt;/td&gt;
&lt;td&gt;baseline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;L25, L50, L100&lt;/td&gt;
&lt;td&gt;+ 25%, 50% or 100% of the 148 showable rules, redrawn for each sample&lt;/td&gt;
&lt;td&gt;does completeness matter?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;+ rules from domains unrelated to the screen&lt;/td&gt;
&lt;td&gt;does just having more text help? (negative control)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;R&lt;/td&gt;
&lt;td&gt;+ the 12 rules closest to the screen, by BM25&lt;/td&gt;
&lt;td&gt;is a simple search enough?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;K&lt;/td&gt;
&lt;td&gt;+ 100% of the rules and the report&lt;/td&gt;
&lt;td&gt;does the report add to the full lake?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Because each rule appears or disappears at random in L25 and L50, each decision is sometimes made with the rule present and sometimes absent on the same screen. That gives the effect of having the rule at rule level, paired, and not just a comparison of levels.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Design choices, and how we set them before the run
&lt;/h2&gt;

&lt;p&gt;A pilot of 12 screens per task, with seeds different from the main run and outside the analysis, showed the test was not at the ceiling: plain Haiku fixed 56% of the rules in T2 and 41% in T4, below the 85% threshold the pre-registration used to raise difficulty. The pilot also measured Sonnet's cost (US$ 0.16 to 0.27 per call, because it returns 10 to 20 thousand tokens of fixes), which forced the grid to be limited, and later, by cost decision, expanded.&lt;/p&gt;

&lt;p&gt;The design, hypotheses, ground truth, prompts and verifier were frozen by hash before the main run (&lt;code&gt;dados/CONGELADO.txt&lt;/code&gt;; there is no git tag). Cost is nominal (tokens × list price: Haiku US$ 0.10 and 0.50 per million input and output tokens, Sonnet US$ 2 and 10), the same for everyone.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The execution
&lt;/h2&gt;

&lt;p&gt;Calls were made with &lt;code&gt;claude -p&lt;/code&gt;, medium effort, no tools and no internet. The final run has &lt;strong&gt;2,640 calls&lt;/strong&gt;: Haiku, full grid (48 screens per task, 11 conditions, 3 samples) and Sonnet, full grid (same screens and conditions, 2 samples). No call failed. The pace was about 10 calls per minute, with 14 in parallel on Sonnet and 8 to 20 on Haiku.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deviations from the pre-registration&lt;/strong&gt;, all recorded in &lt;code&gt;dados/DESVIOS.md&lt;/code&gt; before the analysis: Sonnet moved from the reduced grid to the full one, and Haiku got a third sample, by cost and accuracy decision; the audit of 60 verifier verdicts and the sensitivity analysis without the 12 defective rules were added; T3 (compare screens) and T1 (create from scratch) left the design.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. The hypotheses, one by one
&lt;/h2&gt;

&lt;p&gt;Paired tests by screen (mean of samples), one-sided Wilcoxon, 95% CI by bootstrap of 10,000 screen resamples and Holm correction over the 11 confirmatory tests. All on Haiku; differences in percentage points (pp) of rules fixed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hypothesis&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;th&gt;Difference (95% CI)&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;H1 rule present &amp;gt; absent, L25&lt;/td&gt;
&lt;td&gt;81% vs 52%&lt;/td&gt;
&lt;td&gt;+29 pp (+26 to +33)&lt;/td&gt;
&lt;td&gt;confirmed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H1 rule present &amp;gt; absent, L50&lt;/td&gt;
&lt;td&gt;79% vs 55%&lt;/td&gt;
&lt;td&gt;+24 pp (+20 to +27)&lt;/td&gt;
&lt;td&gt;confirmed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H2a L25 &amp;gt; L0&lt;/td&gt;
&lt;td&gt;59% vs 47%&lt;/td&gt;
&lt;td&gt;+12 pp (+10 to +15)&lt;/td&gt;
&lt;td&gt;confirmed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H2b L50 &amp;gt; L25&lt;/td&gt;
&lt;td&gt;67% vs 59%&lt;/td&gt;
&lt;td&gt;+8 pp (+5 to +10)&lt;/td&gt;
&lt;td&gt;confirmed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H2c L100 &amp;gt; L50&lt;/td&gt;
&lt;td&gt;76% vs 67%&lt;/td&gt;
&lt;td&gt;+9 pp (+6 to +11)&lt;/td&gt;
&lt;td&gt;confirmed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H3 held-out: L100 not worse than L0 (5 pp margin)&lt;/td&gt;
&lt;td&gt;55% vs 44%&lt;/td&gt;
&lt;td&gt;+11 pp (+7 to +15)&lt;/td&gt;
&lt;td&gt;confirmed (the lake did not hurt where it did not cover)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H4 L100 &amp;gt; D (other domains)&lt;/td&gt;
&lt;td&gt;76% vs 52%&lt;/td&gt;
&lt;td&gt;+23 pp (+21 to +26)&lt;/td&gt;
&lt;td&gt;confirmed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H6a T2 A3 &amp;gt; A1&lt;/td&gt;
&lt;td&gt;80.6% vs 80.9%&lt;/td&gt;
&lt;td&gt;-0.3 pp (-3 to +3)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;not confirmed&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H6b T4 K &amp;gt; L100&lt;/td&gt;
&lt;td&gt;78% vs 70%&lt;/td&gt;
&lt;td&gt;+8 pp (+6 to +11)&lt;/td&gt;
&lt;td&gt;confirmed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H7a T2 new failures A0 &amp;gt; A2&lt;/td&gt;
&lt;td&gt;0.94 vs 0.21 per call&lt;/td&gt;
&lt;td&gt;-0.74&lt;/td&gt;
&lt;td&gt;confirmed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H7b T4 new failures L100 vs K&lt;/td&gt;
&lt;td&gt;0 vs 0&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;not testable&lt;/strong&gt; (in T4 every rule is already violated)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nine of the eleven tests reject the null hypothesis under Holm's criterion. Outside the confirmatory set:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;H5 (does simple search keep 90% of the gain?)&lt;/strong&gt;: &lt;strong&gt;no&lt;/strong&gt;. BM25 with 12 rules kept 31% of the full lake's gain (+7 pp against +24 pp over L0), with fewer input tokens (13.6 thousand against 19.2 thousand).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H8 (difficulty)&lt;/strong&gt;: confirmed. Plain Haiku fixed 52% in T2 and 46% in T4, well below the 85% ceiling threshold.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H9 (descriptive, Haiku with lake against Sonnet without lake)&lt;/strong&gt;: in T2, Haiku A3 81% against Sonnet A0 63% (ratio 1.28), at 6% of the cost; in T4, Haiku L100 70% against Sonnet L0 61% (ratio 1.14), at 8% of the cost. It passes both criteria (at least 90% of the score at no more than 50% of the cost). Sonnet also improves with the lake and beats Haiku under the same conditions (section 7.3).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. Results
&lt;/h2&gt;

&lt;h3&gt;
  
  
  7.1 Lake completeness, in steps (T4)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-completude-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-completude-en.png" alt="Lake completeness in T4" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fraction of violated rules that come to be met, mean over 48 screens (3 samples on Haiku, 2 on Sonnet):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;Haiku (all)&lt;/th&gt;
&lt;th&gt;Haiku (shown)&lt;/th&gt;
&lt;th&gt;Haiku (held-out)&lt;/th&gt;
&lt;th&gt;Sonnet (all)&lt;/th&gt;
&lt;th&gt;Sonnet (shown)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;L0, no lake&lt;/td&gt;
&lt;td&gt;46.1%&lt;/td&gt;
&lt;td&gt;46.9%&lt;/td&gt;
&lt;td&gt;43.6%&lt;/td&gt;
&lt;td&gt;61.3%&lt;/td&gt;
&lt;td&gt;61.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L25&lt;/td&gt;
&lt;td&gt;56.9%&lt;/td&gt;
&lt;td&gt;59.3%&lt;/td&gt;
&lt;td&gt;50.3%&lt;/td&gt;
&lt;td&gt;66.3%&lt;/td&gt;
&lt;td&gt;68.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L50&lt;/td&gt;
&lt;td&gt;63.1%&lt;/td&gt;
&lt;td&gt;66.9%&lt;/td&gt;
&lt;td&gt;52.3%&lt;/td&gt;
&lt;td&gt;72.4%&lt;/td&gt;
&lt;td&gt;76.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L100&lt;/td&gt;
&lt;td&gt;70.1%&lt;/td&gt;
&lt;td&gt;75.7%&lt;/td&gt;
&lt;td&gt;54.5%&lt;/td&gt;
&lt;td&gt;79.7%&lt;/td&gt;
&lt;td&gt;85.9%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;D (other domains)&lt;/td&gt;
&lt;td&gt;51.2%&lt;/td&gt;
&lt;td&gt;52.4%&lt;/td&gt;
&lt;td&gt;47.8%&lt;/td&gt;
&lt;td&gt;63.1%&lt;/td&gt;
&lt;td&gt;64.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;R (BM25, 12 rules)&lt;/td&gt;
&lt;td&gt;53.5%&lt;/td&gt;
&lt;td&gt;56.8%&lt;/td&gt;
&lt;td&gt;44.0%&lt;/td&gt;
&lt;td&gt;62.7%&lt;/td&gt;
&lt;td&gt;64.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;K (L100 + report)&lt;/td&gt;
&lt;td&gt;78.4%&lt;/td&gt;
&lt;td&gt;88.5%&lt;/td&gt;
&lt;td&gt;50.0%&lt;/td&gt;
&lt;td&gt;83.0%&lt;/td&gt;
&lt;td&gt;91.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The gain is almost linear: each extra 25% of the lake yields 8 to 12 points on Haiku. On the same screen and sample, the present rule was met 81% of the time and the absent one 52% (L25). The effect of pure volume (D, +5 pp over L0) and of simple search (R, +7 pp) are small next to the full lake (+24 pp). Among the decisions Haiku cited, the fraction pointing to a rule actually shown rose from 59% (L25) to 90% (L100); in D it was 54% and in R, 49%: with little information the model cites rules it did not receive.&lt;/p&gt;

&lt;h3&gt;
  
  
  7.2 The verifier report (T2 and T4)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-t2-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-t2-en.png" alt="T2: shown and held-out rules by condition" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In T2, the family's rules (A1) took Haiku from 48% to 91% on the shown rules; the report (A2) to 96%; both together (A3) to 96%, with no gain over the rules alone in total (80.6% against 80.9%). The report does something else: it reduces new rules that start failing (0.94 per call in A0, 0.50 in A1, 0.21 in A2) and keeps the model focused on what it lists. On the held-out rules, which the report never mentions, Haiku went from 60% (A0) to 28% (A2): the report says what to fix and the model leaves the rest. In T4, adding the report to the full lake (K) raised Haiku from 70% to 78% (on shown rules, from 76% to 89%).&lt;/p&gt;

&lt;h3&gt;
  
  
  7.3 Haiku and Sonnet, and the cost
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-custo-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-custo-en.png" alt="Nominal cost per call and accuracy" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sonnet is better than Haiku under the same conditions (T4 L0: 61% against 46%; L100: 80% against 70%; K: 83% against 78%). But Haiku with the lake beats plain Sonnet, and the nominal cost per call is very different: Haiku L100 US$ 0.0225 against Sonnet L0 US$ 0.2728 (8%); in T2, Haiku A3 US$ 0.0093 against Sonnet A0 US$ 0.1526 (6%). The whole run cost US$ 252.29 nominal (Haiku US$ 25.41, Sonnet US$ 226.88).&lt;/p&gt;

&lt;h3&gt;
  
  
  7.4 Independent measure: axe-core
&lt;/h3&gt;

&lt;p&gt;In WCAG A/AA violations per final screen, measured by axe-core (which does not depend on our verifier), Haiku in T4 went from 0.90 (L0) to 0.60 (L25), 0.52 (L50) and 0.47 (L100), with 0.75 in D, 0.86 in R and 0.49 in K. Sonnet stayed around 0.3 in every T4 condition. In T2, the report alone (A2) raised Haiku's violations (0.60 against 0.39 in A0), consistent with the report's narrow focus. These are low averages (under one violation per screen) and axe covers only part of our rules, so it confirms the direction, not the magnitude.&lt;/p&gt;

&lt;h3&gt;
  
  
  7.5 Robustness
&lt;/h3&gt;

&lt;p&gt;Excluding the 26 conditional rules (whose condition may not exist on the screen) or the 12 rules with a verifier defect confirmed in the audit, absolute levels move a few points and the order of conditions is the same (Haiku T4 without the 12 rules: L0 47%, L25 58%, L50 65%, L100 72%, D 53%, R 54%, K 81%).&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Why these results hold, and how far
&lt;/h2&gt;

&lt;p&gt;The design was pre-registered and frozen by hash; the volume control (D) separates "more text" from "the right rule"; the held-out rules measure what the model does without having been taught; each condition repeats the same screen across samples and the test is paired by screen, with Holm correction; the analysis without conditional rules and without defective-verifier rules checks robustness; and we report what did not work (BM25, A3 against A1).&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Threats to validity
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Synthetic screens.&lt;/strong&gt; Six script-generated families, with a fixed structure per family. The result holds for these screens; it does not demonstrate the same behavior in a large production project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T4 is draft review, not creation.&lt;/strong&gt; The model starts from a screen that already has the right structure; deciding from scratch is another task, which the verifiers could not score.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Circularity.&lt;/strong&gt; The same author generated the screens, the rules and the verifier; the report the model receives comes from the same verifier that scores. The held-out rules and the sensitivity without the defective rules mitigate this, but do not eliminate it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Imperfect verifier.&lt;/strong&gt; In 60 audited verdicts, 8 diverged (13%); the error tends to understate the absolute levels of every condition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model-audited lake.&lt;/strong&gt; No human review; some rules come from guides (Nielsen, Baymard) that are recommendation, not standard.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only two model families.&lt;/strong&gt; Haiku 5.5 and Sonnet 5.5; Opus and Fable were left out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nominal cost.&lt;/strong&gt; List price, without plan limits; the cost of building the lake and the verifier is not counted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No aesthetics.&lt;/strong&gt; The previous study showed that no human-free instrument measures beauty validly; this study claims nothing about beauty.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10. What this lets us conclude
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;For anyone building a UX data lake:&lt;/strong&gt; on this set of screens, more relevant rules gave more accuracy, in roughly equal steps up to the full lake, with no sign of a plateau. Text volume alone does not explain the gain (D) and the right rule matters (H1, H4).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A simple search (BM25 with 12 rules) was not enough&lt;/strong&gt;: it recovered 31% of the gain. If the lake is used through retrieval, retrieval has to beat that, or the relevant lake has to fit whole in the context.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The lake did not hurt where it did not cover&lt;/strong&gt;: on never-shown rules, accuracy was up to 11 points higher with the full lake (H3). It may be spillover or just a more careful model; we did not separate the two explanations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The verifier report prevents regressions and closes what it lists, but narrows focus&lt;/strong&gt;: it reduced new failures and, in T2, left unfixed the rules that were not on the list. Added to the full lake in T4, it improved 8 points.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost:&lt;/strong&gt; with the lake, Haiku beat Sonnet without it at 6% to 8% of the cost per call. Sonnet, however, is still better under the same conditions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What this does not let us conclude:&lt;/strong&gt; that the result holds for a real production project (the screens are synthetic and T4 is draft review), that the lake's rules cause better UX decisions for real users (we measured rule compliance, not product outcome) or that it holds for models beyond the two tested.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What I would do next:&lt;/strong&gt; repeat T4 on real production screens, with a human reviewer as a second measure, and test a retrieval better than BM25.&lt;/p&gt;

&lt;h2&gt;
  
  
  11. Reproducibility
&lt;/h2&gt;

&lt;p&gt;All the material is in &lt;code&gt;studies/haiku-ui-producao/&lt;/code&gt;: the lake (&lt;code&gt;lake/lake-ref-v2.json&lt;/code&gt; and the audits), the six families with their tests (&lt;code&gt;gerador/familias/&lt;/code&gt;), the stimulus generator, the verifier, the executor and the analysis. The raw data (every answer, tokens and cost) and the scored data are in &lt;code&gt;dados/bruto/&lt;/code&gt;. &lt;strong&gt;Archived on Zenodo (version 3.0.0, studies 3 and 3b): &lt;a href="https://doi.org/10.5281/zenodo.24132784" rel="noopener noreferrer"&gt;10.5281/zenodo.24132784&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The experiments, the data and the conclusions are mine. The writing was AI-assisted and reviewed by me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>haiku</category>
      <category>ux</category>
      <category>datalake</category>
      <category>cost</category>
    </item>
    <item>
      <title>O quanto o data lake de UX ajuda um modelo pequeno em telas grandes? Medimos a completude, regra por regra</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:18:06 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/o-quanto-o-data-lake-de-ux-ajuda-um-modelo-pequeno-em-telas-grandes-medimos-a-completude-regra-cli</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/o-quanto-o-data-lake-de-ux-ajuda-um-modelo-pequeno-em-telas-grandes-medimos-a-completude-regra-cli</guid>
      <description>&lt;p&gt;&lt;strong&gt;Resumo.&lt;/strong&gt; Em 2.640 chamadas (Haiku 5.5 e Sonnet 5.5, 48 telas por tarefa, seis famílias de tela), o acerto do Haiku ao revisar uma tela de produção com todos os defeitos subiu de &lt;strong&gt;46% sem lake para 70% com o lake inteiro&lt;/strong&gt; e &lt;strong&gt;78% com o lake e o relatório do verificador&lt;/strong&gt;, em degraus: 0%, 25%, 50% e 100% do lake deram 47%, 59%, 67% e 76% nas regras mostradas. Mostrar o mesmo volume de texto de outros domínios (52%) ou as 12 regras mais próximas por BM25 (57%) ficou muito abaixo do lake inteiro. O Haiku com lake (70%) superou o Sonnet sem lake (61%) a cerca de 8% do custo nominal por chamada. Ressalvas centrais: telas sintéticas, revisão de rascunho e não criação, e um verificador que errou em cerca de 13% dos veredictos auditados.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-metodo-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-metodo-pt.png" alt="Visão geral do método" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. A pergunta e a decisão que ela informa
&lt;/h2&gt;

&lt;p&gt;No &lt;a href="https://dev.to/pt/haiku-ui-design/"&gt;estudo anterior&lt;/a&gt;, o Haiku com regras de UX e um checador chegou perto do Sonnet em uma tela de login, e apareceram duas limitações: a tela era simples demais (poucas regras possíveis) e o resultado podia ser ceiling. Este estudo mexe nas duas e acrescenta uma terceira pergunta, a que mais interessa a quem monta um data lake de verdade: &lt;strong&gt;quanto da completude do lake vira decisão melhor quando o pedido é vago e o modelo precisa decidir o que mudar?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A decisão que o resultado informa: se vale a pena investir em ampliar o lake (mais regras, mais domínios), se uma busca simples dentro dele basta, e se um relatório de checagem automática deve ir junto.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pergunta do estudo:&lt;/strong&gt; em telas grandes, o acerto do Haiku cresce com a quantidade de regras do lake mostradas ao modelo? As regras certas importam mais que o volume? O lake atrapalha onde não cobre? A recuperação por busca de texto mantém o ganho?&lt;/p&gt;

&lt;h2&gt;
  
  
  2. O material
&lt;/h2&gt;

&lt;h3&gt;
  
  
  2.1 O data lake de referência
&lt;/h3&gt;

&lt;p&gt;São &lt;strong&gt;200 regras de UX, de 105 fontes abertas&lt;/strong&gt; (WCAG 2.2, ARIA Authoring Practices, web.dev, MDN, GOV.UK Design System, USWDS, Nielsen Norman Group e o que é público do Baymard), em 11 domínios: formulários, checkout, tabelas, dados, busca, navegação, estados, ações destrutivas, acessibilidade, mobile e legibilidade. Quatro agentes montaram as regras em paralelo; todas as URLs responderam 200 e foram conferidas por mim.&lt;/p&gt;

&lt;p&gt;Isso não bastava, porque abrir a página não prova que ela sustenta a regra. Uma auditoria independente comparou cada regra com o texto da fonte: &lt;strong&gt;111 foram sustentadas, 86 parcialmente (a regra era mais específica ou mais forte que a página) e 3 não foram sustentadas&lt;/strong&gt;. Das parciais, 74 ganharam uma redação ajustada ao que a página realmente diz; 12 e as 3 não sustentadas saíram. Ficaram &lt;strong&gt;185 regras elegíveis&lt;/strong&gt;. A auditoria foi feita por modelo, com páginas resumidas por modelo pequeno, sem revisão humana.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.2 As seis famílias de telas
&lt;/h3&gt;

&lt;p&gt;Para medir em telas realistas, geramos seis famílias: &lt;strong&gt;painel de dados, listagem com busca, formulário em várias etapas, checkout, configurações e navegação&lt;/strong&gt;. Cada tela tem de 383 a 1.200 linhas de HTML e CSS, com tokens de design, componentes repetidos e dados em português de seis temas (logística, finanças, saúde, RH, varejo e educação). &lt;strong&gt;140 regras do lake&lt;/strong&gt; viram interruptores: a tela é construída cumprindo ou violando cada uma, e um verificador independente, em navegador real (Chrome via Playwright e o axe-core), confere o resultado. A concordância entre gerador e verificador foi de 100% em 15 sementes por família (tela limpa, violação isolada e cinco violações juntas).&lt;/p&gt;

&lt;p&gt;A estrutura de cada família é fixa; variam conteúdo, tema e quais regras estão violadas. Isso importa na seção de ameaças.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.3 As regras retidas
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;25% das regras de cada família (37 regras) foram sorteadas com semente fixa e nunca aparecem&lt;/strong&gt; no lake, nos relatórios nem nos prompts. Elas medem o transbordamento: o que o modelo acerta sem ter sido ensinado, e se o lake atrapalha onde não cobre.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.4 O gabarito e como o validamos
&lt;/h3&gt;

&lt;p&gt;O gabarito vem da construção (qual regra foi violada). O verificador mede se, depois da resposta do modelo, a regra passou a ser cumprida. Dois limites: o gerador e o verificador têm o mesmo autor, então a concordância de 100% mostra consistência, não validade; e o verificador foi escrito para a marcação das nossas telas. Para medir o erro dele nas telas escritas pelo modelo, &lt;strong&gt;60 veredictos sorteados foram auditados por dois agentes que decidiram antes de ver o veredito&lt;/strong&gt;. Resultado: &lt;strong&gt;33 de 40 "não corrigido" estavam certos (82%) e 18 de 20 "corrigido" (90%)&lt;/strong&gt;; os erros se concentraram em 12 regras (6 do piloto e 6 da rodada), que entram numa análise de sensibilidade (seção 6).&lt;/p&gt;

&lt;h2&gt;
  
  
  3. As tarefas e as condições
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;T2, melhorar uma tela com defeitos.&lt;/strong&gt; A tela vem com 3, 6 ou 9 regras violadas (dificuldade graduada), ao menos uma retida. O pedido é "melhore esta tela para produção". As respostas são trechos ANTES/DEPOIS, aplicados por código.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;T4, revisão aberta para produção.&lt;/strong&gt; A tela vem com &lt;strong&gt;todas as regras da família violadas&lt;/strong&gt; (de 19 a 30) e um pedido vago do gerente: "deixa isso pronto para entrar em produção; os usuários têm pressa e usam notebook e celular". Não há lista de defeitos. O modelo decide o que mudar e lista as decisões, citando a regra usada. O T4 não é criação do zero: os verificadores dependem da marcação das telas, então não pontuariam uma tela inventada pelo modelo.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tarefa&lt;/th&gt;
&lt;th&gt;Condição&lt;/th&gt;
&lt;th&gt;O que o modelo recebe&lt;/th&gt;
&lt;th&gt;A pergunta que ela responde&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;A0&lt;/td&gt;
&lt;td&gt;só a tela e o pedido&lt;/td&gt;
&lt;td&gt;linha de base&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;A1&lt;/td&gt;
&lt;td&gt;+ regras da família (sem as retidas)&lt;/td&gt;
&lt;td&gt;o lake de uma família ajuda?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;A2&lt;/td&gt;
&lt;td&gt;+ relatório do verificador&lt;/td&gt;
&lt;td&gt;o relatório ajuda sozinho?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;A3&lt;/td&gt;
&lt;td&gt;+ regras e relatório&lt;/td&gt;
&lt;td&gt;os dois somam?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;L0&lt;/td&gt;
&lt;td&gt;só a tela e o pedido vago&lt;/td&gt;
&lt;td&gt;linha de base&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;L25, L50, L100&lt;/td&gt;
&lt;td&gt;+ 25%, 50% ou 100% das 148 regras mostráveis, sorteadas de novo a cada amostra&lt;/td&gt;
&lt;td&gt;a completude importa?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;+ regras de domínios que não têm a ver com a tela&lt;/td&gt;
&lt;td&gt;só ter mais texto ajuda? (controle negativo)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;R&lt;/td&gt;
&lt;td&gt;+ as 12 regras mais próximas da tela, por BM25&lt;/td&gt;
&lt;td&gt;uma busca simples basta?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;K&lt;/td&gt;
&lt;td&gt;+ 100% das regras e o relatório&lt;/td&gt;
&lt;td&gt;o relatório soma ao lake cheio?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Como cada regra aparece ou some de forma aleatória em L25 e L50, cada decisão fica às vezes com a regra presente e às vezes ausente na mesma tela. Isso dá o efeito de ter a regra no nível da regra, pareado, e não só de comparar níveis.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. As escolhas de projeto, e como as definimos antes da rodada
&lt;/h2&gt;

&lt;p&gt;Um piloto de 12 telas por tarefa, com sementes diferentes das da rodada principal e fora da análise, mostrou que o teste não estava no teto: o Haiku sem ajuda corrigiu 56% das regras no T2 e 41% no T4, abaixo do limiar de 85% que o pré-registro usava para aumentar a dificuldade. O piloto também mediu o custo do Sonnet (US$ 0,16 a 0,27 por chamada, porque ele devolve de 10 mil a 20 mil tokens de correção), o que forçou a grade a ser limitada, e depois, por decisão de custo, ampliada.&lt;/p&gt;

&lt;p&gt;O desenho, as hipóteses, o gabarito, os prompts e o verificador foram congelados por hash antes da rodada principal (&lt;code&gt;dados/CONGELADO.txt&lt;/code&gt;; não há tag no git). O custo é nominal (tokens × preço de tabela: Haiku US$ 0,10 e 0,50 por milhão de tokens de entrada e saída, Sonnet US$ 2 e 10), igual para todos.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. A execução
&lt;/h2&gt;

&lt;p&gt;As chamadas foram feitas com &lt;code&gt;claude -p&lt;/code&gt;, esforço médio, sem ferramentas e sem internet. A rodada final tem &lt;strong&gt;2.640 chamadas&lt;/strong&gt;: Haiku, grade completa (48 telas por tarefa, 11 condições, 3 amostras) e Sonnet, grade completa (as mesmas telas e condições, 2 amostras). Nenhuma chamada falhou. O ritmo foi de cerca de 10 chamadas por minuto, com 14 em paralelo no Sonnet e de 8 a 20 no Haiku.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Desvios do pré-registro&lt;/strong&gt;, todos registrados em &lt;code&gt;dados/DESVIOS.md&lt;/code&gt; antes da análise: o Sonnet saiu da grade reduzida e foi para a completa, e o Haiku ganhou a terceira amostra, por decisão de custo e de assertividade; a auditoria de 60 veredictos do verificador e a análise de sensibilidade sem as 12 regras defeituosas foram acrescentadas; T3 (comparar telas) e T1 (criar do zero) saíram do desenho.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. As hipóteses, uma a uma
&lt;/h2&gt;

&lt;p&gt;Testes pareados por tela (média das amostras), Wilcoxon unilateral, IC95 por bootstrap de 10.000 reamostras de telas e correção de Holm sobre os 11 testes confirmatórios. Todos no Haiku; diferenças em pontos percentuais (pp) de regras corrigidas.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hipótese&lt;/th&gt;
&lt;th&gt;Resultado&lt;/th&gt;
&lt;th&gt;Diferença (IC95)&lt;/th&gt;
&lt;th&gt;Veredito&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;H1 regra presente &amp;gt; ausente, L25&lt;/td&gt;
&lt;td&gt;81% vs 52%&lt;/td&gt;
&lt;td&gt;+29 pp (+26 a +33)&lt;/td&gt;
&lt;td&gt;confirmada&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H1 regra presente &amp;gt; ausente, L50&lt;/td&gt;
&lt;td&gt;79% vs 55%&lt;/td&gt;
&lt;td&gt;+24 pp (+20 a +27)&lt;/td&gt;
&lt;td&gt;confirmada&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H2a L25 &amp;gt; L0&lt;/td&gt;
&lt;td&gt;59% vs 47%&lt;/td&gt;
&lt;td&gt;+12 pp (+10 a +15)&lt;/td&gt;
&lt;td&gt;confirmada&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H2b L50 &amp;gt; L25&lt;/td&gt;
&lt;td&gt;67% vs 59%&lt;/td&gt;
&lt;td&gt;+8 pp (+5 a +10)&lt;/td&gt;
&lt;td&gt;confirmada&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H2c L100 &amp;gt; L50&lt;/td&gt;
&lt;td&gt;76% vs 67%&lt;/td&gt;
&lt;td&gt;+9 pp (+6 a +11)&lt;/td&gt;
&lt;td&gt;confirmada&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H3 retidas: L100 não pior que L0 (margem 5 pp)&lt;/td&gt;
&lt;td&gt;55% vs 44%&lt;/td&gt;
&lt;td&gt;+11 pp (+7 a +15)&lt;/td&gt;
&lt;td&gt;confirmada (o lake não atrapalhou onde não cobria)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H4 L100 &amp;gt; D (outros domínios)&lt;/td&gt;
&lt;td&gt;76% vs 52%&lt;/td&gt;
&lt;td&gt;+23 pp (+21 a +26)&lt;/td&gt;
&lt;td&gt;confirmada&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H6a T2 A3 &amp;gt; A1&lt;/td&gt;
&lt;td&gt;80,6% vs 80,9%&lt;/td&gt;
&lt;td&gt;-0,3 pp (-3 a +3)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;não confirmada&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H6b T4 K &amp;gt; L100&lt;/td&gt;
&lt;td&gt;78% vs 70%&lt;/td&gt;
&lt;td&gt;+8 pp (+6 a +11)&lt;/td&gt;
&lt;td&gt;confirmada&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H7a T2 regras novas A0 &amp;gt; A2&lt;/td&gt;
&lt;td&gt;0,94 vs 0,21 por chamada&lt;/td&gt;
&lt;td&gt;-0,74&lt;/td&gt;
&lt;td&gt;confirmada&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;H7b T4 regras novas L100 vs K&lt;/td&gt;
&lt;td&gt;0 vs 0&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;não testável&lt;/strong&gt; (no T4 todas as regras já estão violadas)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nove dos onze testes rejeitam a hipótese nula pelo critério de Holm. Fora do conjunto confirmatório:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;H5 (a busca simples mantém 90% do ganho?)&lt;/strong&gt;: &lt;strong&gt;não&lt;/strong&gt;. O BM25 com 12 regras manteve 31% do ganho do lake inteiro (+7 pp contra +24 pp sobre L0), com menos tokens de entrada (13,6 mil contra 19,2 mil).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H8 (dificuldade)&lt;/strong&gt;: confirmada. O Haiku puro corrigiu 52% no T2 e 46% no T4, bem abaixo dos 85% do limiar de teto.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H9 (descritiva, Haiku com lake contra Sonnet sem lake)&lt;/strong&gt;: no T2, Haiku A3 81% contra Sonnet A0 63% (razão 1,28), com 6% do custo; no T4, Haiku L100 70% contra Sonnet L0 61% (razão 1,14), com 8% do custo. Passa os dois critérios (pelo menos 90% da pontuação com no máximo 50% do custo). O Sonnet também melhora com o lake e supera o Haiku nas mesmas condições (seção 7.3).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. Resultados
&lt;/h2&gt;

&lt;h3&gt;
  
  
  7.1 A completude do lake, em degraus (T4)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-completude-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-completude-pt.png" alt="Completude do lake no T4" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fração das regras violadas que passam a cumprir, média sobre 48 telas (3 amostras no Haiku, 2 no Sonnet):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condição&lt;/th&gt;
&lt;th&gt;Haiku (todas)&lt;/th&gt;
&lt;th&gt;Haiku (mostradas)&lt;/th&gt;
&lt;th&gt;Haiku (retidas)&lt;/th&gt;
&lt;th&gt;Sonnet (todas)&lt;/th&gt;
&lt;th&gt;Sonnet (mostradas)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;L0, sem lake&lt;/td&gt;
&lt;td&gt;46,1%&lt;/td&gt;
&lt;td&gt;46,9%&lt;/td&gt;
&lt;td&gt;43,6%&lt;/td&gt;
&lt;td&gt;61,3%&lt;/td&gt;
&lt;td&gt;61,4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L25&lt;/td&gt;
&lt;td&gt;56,9%&lt;/td&gt;
&lt;td&gt;59,3%&lt;/td&gt;
&lt;td&gt;50,3%&lt;/td&gt;
&lt;td&gt;66,3%&lt;/td&gt;
&lt;td&gt;68,7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L50&lt;/td&gt;
&lt;td&gt;63,1%&lt;/td&gt;
&lt;td&gt;66,9%&lt;/td&gt;
&lt;td&gt;52,3%&lt;/td&gt;
&lt;td&gt;72,4%&lt;/td&gt;
&lt;td&gt;76,3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L100&lt;/td&gt;
&lt;td&gt;70,1%&lt;/td&gt;
&lt;td&gt;75,7%&lt;/td&gt;
&lt;td&gt;54,5%&lt;/td&gt;
&lt;td&gt;79,7%&lt;/td&gt;
&lt;td&gt;85,9%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;D (outros domínios)&lt;/td&gt;
&lt;td&gt;51,2%&lt;/td&gt;
&lt;td&gt;52,4%&lt;/td&gt;
&lt;td&gt;47,8%&lt;/td&gt;
&lt;td&gt;63,1%&lt;/td&gt;
&lt;td&gt;64,2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;R (BM25, 12 regras)&lt;/td&gt;
&lt;td&gt;53,5%&lt;/td&gt;
&lt;td&gt;56,8%&lt;/td&gt;
&lt;td&gt;44,0%&lt;/td&gt;
&lt;td&gt;62,7%&lt;/td&gt;
&lt;td&gt;64,8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;K (L100 + relatório)&lt;/td&gt;
&lt;td&gt;78,4%&lt;/td&gt;
&lt;td&gt;88,5%&lt;/td&gt;
&lt;td&gt;50,0%&lt;/td&gt;
&lt;td&gt;83,0%&lt;/td&gt;
&lt;td&gt;91,8%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;O ganho é quase linear: cada 25% a mais de lake rende de 8 a 12 pontos no Haiku. Dentro da mesma tela e amostra, a regra presente foi cumprida em 81% das vezes e a ausente em 52% (L25). O efeito do volume puro (D, +5 pp sobre L0) e o da busca simples (R, +7 pp) são pequenos perto do lake completo (+24 pp). Entre as decisões que o Haiku citou, a fração que aponta para uma regra realmente mostrada subiu de 59% (L25) para 90% (L100); em D foi 54% e em R, 49%: com pouca informação o modelo cita regras que não recebeu.&lt;/p&gt;

&lt;h3&gt;
  
  
  7.2 O relatório do verificador (T2 e T4)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-t2-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-t2-pt.png" alt="T2: regras mostradas e retidas por condição" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No T2, as regras da família (A1) levaram o Haiku de 48% para 91% nas regras mostradas; o relatório (A2) a 96%; os dois juntos (A3) a 96%, sem ganho sobre as regras sozinhas no total (80,6% contra 80,9%). O relatório faz outra coisa: reduz as regras novas que passam a falhar (0,94 por chamada em A0, 0,50 em A1, 0,21 em A2) e deixa o modelo focado no que ele lista. Nas regras retidas, que o relatório nunca menciona, o Haiku foi de 60% (A0) a 28% (A2): o relatório diz o que corrigir e o modelo deixa o resto. No T4, o relatório somado ao lake inteiro (K) subiu o Haiku de 70% para 78% (nas regras mostradas, de 76% para 89%).&lt;/p&gt;

&lt;h3&gt;
  
  
  7.3 Haiku e Sonnet, e o custo
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-custo-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-producao%2Ffig-custo-pt.png" alt="Custo nominal por chamada e acerto" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;O Sonnet é melhor que o Haiku nas mesmas condições (T4 L0: 61% contra 46%; L100: 80% contra 70%; K: 83% contra 78%). Mas o Haiku com lake supera o Sonnet puro, e o custo nominal por chamada é muito diferente: Haiku L100 US$ 0,0225 contra Sonnet L0 US$ 0,2728 (8%); no T2, Haiku A3 US$ 0,0093 contra Sonnet A0 US$ 0,1526 (6%). A rodada inteira custou US$ 252,29 nominais (Haiku US$ 25,41, Sonnet US$ 226,88).&lt;/p&gt;

&lt;h3&gt;
  
  
  7.4 Medida independente: axe-core
&lt;/h3&gt;

&lt;p&gt;Em violações WCAG A/AA por tela final, medidas pelo axe-core (que não depende do nosso verificador), o Haiku no T4 foi de 0,90 (L0) para 0,60 (L25), 0,52 (L50) e 0,47 (L100), com 0,75 em D, 0,86 em R e 0,49 em K. O Sonnet ficou em torno de 0,3 em todas as condições do T4. No T2, o relatório sozinho (A2) elevou as violações do Haiku (0,60 contra 0,39 em A0), coerente com o foco estreito do relatório. São médias baixas (menos de uma violação por tela) e o axe cobre só parte das nossas regras, então ele confirma a direção, não a magnitude.&lt;/p&gt;

&lt;h3&gt;
  
  
  7.5 Robustez
&lt;/h3&gt;

&lt;p&gt;Excluindo as 26 regras condicionais (cuja condição pode não existir na tela) ou as 12 regras com defeito de verificador confirmado em auditoria, os níveis absolutos mudam poucos pontos e a ordem das condições é a mesma (Haiku T4 sem as 12 regras: L0 47%, L25 58%, L50 65%, L100 72%, D 53%, R 54%, K 81%).&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Por que esses resultados valem, e até onde
&lt;/h2&gt;

&lt;p&gt;O desenho foi pré-registrado e congelado por hash; o controle de volume (D) separa "mais texto" de "regra certa"; as regras retidas medem o que o modelo faz sem ter sido ensinado; cada condição repete a mesma tela em amostras diferentes e o teste é pareado por tela, com correção de Holm; a análise sem as regras condicionais e sem as regras de verificador defeituoso conferem a robustez; e relatamos o que não deu certo (BM25, A3 contra A1).&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Ameaças à validade
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Telas sintéticas.&lt;/strong&gt; Seis famílias geradas por script, com estrutura fixa por família. O resultado vale para essas telas; não demonstra o mesmo comportamento em um projeto grande em produção.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O T4 é revisão de rascunho, não criação.&lt;/strong&gt; O modelo parte de uma tela que já tem a estrutura certa; decidir do zero é outra tarefa, que os verificadores não conseguiriam pontuar.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Circularidade.&lt;/strong&gt; O mesmo autor gerou as telas, as regras e o verificador; o relatório que o modelo recebe vem do mesmo verificador que pontua. As regras retidas e a sensibilidade sem as regras defeituosas mitigam isso, mas não eliminam.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verificador imperfeito.&lt;/strong&gt; Em 60 veredictos auditados, 8 divergiram (13%); o erro tende a subestimar os níveis absolutos de todas as condições.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lake auditado por modelo.&lt;/strong&gt; Sem revisão humana; algumas regras vêm de guias (Nielsen, Baymard) que são recomendação, não norma.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Só duas famílias de modelo.&lt;/strong&gt; Haiku 5.5 e Sonnet 5.5; Opus e Fable ficaram de fora.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custo nominal.&lt;/strong&gt; Preço de tabela, sem o limite do plano; o custo de montar o lake e o verificador não entra na conta.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sem estética.&lt;/strong&gt; O estudo anterior mostrou que nenhum instrumento sem humano mede beleza de forma válida; este estudo não afirma nada sobre beleza.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10. O que isso permite concluir
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Para quem monta um data lake de UX:&lt;/strong&gt; neste conjunto de telas, mais regras relevantes deram mais acerto, em degraus aproximadamente iguais até o lake inteiro, sem sinal de platô. O volume de texto sozinho não explica o ganho (D) e a regra certa importa (H1, H4).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uma busca simples (BM25 com 12 regras) não bastou&lt;/strong&gt;: recuperou 31% do ganho. Se o lake for usado por recuperação, ela precisa ser melhor que essa, ou o lake relevante precisa caber inteiro no contexto.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O lake não atrapalhou onde não cobria&lt;/strong&gt;: nas regras nunca mostradas, o acerto foi até 11 pontos maior com o lake inteiro (H3). Pode ser transbordamento ou apenas um modelo mais cuidadoso; não separamos as duas explicações.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O relatório do verificador evita regressões e fecha o que lista, mas estreita o foco&lt;/strong&gt;: reduziu as regras novas que passaram a falhar e, no T2, deixou de corrigir regras que não estavam na lista. Somado ao lake inteiro no T4, melhorou 8 pontos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custo:&lt;/strong&gt; com o lake, o Haiku superou o Sonnet sem lake por 6% a 8% do custo por chamada. O Sonnet, porém, continua melhor nas mesmas condições.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O que isso não permite concluir:&lt;/strong&gt; que o resultado vale para um projeto real em produção (as telas são sintéticas e o T4 é revisão de um rascunho), que as regras do lake causam melhores decisões de UX para usuários reais (medimos conformidade com regras, não resultado de produto) ou que vale para outros modelos além dos dois testados.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;O que eu faria a seguir:&lt;/strong&gt; repetir o T4 em telas reais de produção, com um revisor humano como segundo medidor, e testar uma recuperação melhor que o BM25.&lt;/p&gt;

&lt;h2&gt;
  
  
  11. Reprodutibilidade
&lt;/h2&gt;

&lt;p&gt;Todo o material está em &lt;code&gt;studies/haiku-ui-producao/&lt;/code&gt;: o lake (&lt;code&gt;lake/lake-ref-v2.json&lt;/code&gt; e as auditorias), as seis famílias com seus testes (&lt;code&gt;gerador/familias/&lt;/code&gt;), o gerador de estímulos, o verificador, o executor e a análise. Os dados brutos (cada resposta, tokens e custo) e os pontuados estão em &lt;code&gt;dados/bruto/&lt;/code&gt;. &lt;strong&gt;Arquivado no Zenodo (versão 3.0.0, estudos 3 e 3b): &lt;a href="https://doi.org/10.5281/zenodo.24132784" rel="noopener noreferrer"&gt;10.5281/zenodo.24132784&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Os experimentos, os dados e as conclusões são meus. A redação foi assistida por IA e revisada por mim.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>haiku</category>
      <category>ux</category>
      <category>datalake</category>
      <category>custo</category>
    </item>
    <item>
      <title>Haiku with a UX kit: can open rules and minimal code make a small model as accurate as a larger one?</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:17:21 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/haiku-with-a-ux-kit-can-open-rules-and-minimal-code-make-a-small-model-as-accurate-as-a-larger-one-m8g</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/haiku-with-a-ux-kit-can-open-rules-and-minimal-code-make-a-small-model-as-accurate-as-a-larger-one-m8g</guid>
      <description>&lt;p&gt;&lt;strong&gt;Summary.&lt;/strong&gt; We tested whether the combination of a small model (Haiku 5.5), a UX rules data lake with open sources and a minimal checking code (the "kit") gets close to a larger model (Sonnet 5.5) on three login-screen tasks: creating, improving and comparing two screens at code level. There were 2,244 items and 2,424 calls, with 0 failures in the end. On creating and improving, Haiku with rules and kit went from 0.744 to 0.998 (create) and from 0.754 to 0.926 (improve), and &lt;strong&gt;the combined accuracy of Haiku with the kit was 1.07 times that of plain Sonnet, at 10% of the cost per task&lt;/strong&gt;. On comparing two screens, the kit &lt;strong&gt;did not help&lt;/strong&gt; and made things slightly worse; pairs with no real difference never produced a false alarm in any condition, so the hypothesis about false alarms could not be tested. Three non-human aesthetics instruments were validated and &lt;strong&gt;none passed&lt;/strong&gt;; for that reason this study &lt;strong&gt;claims nothing about beauty&lt;/strong&gt;. The main threat to validity is circular and is in section 9: the 30 rules the kit checks are the same ones that score create and improve. An independent check with axe-core confirms the gain in create, but not in improve. For the practical summary, there is the &lt;a href="https://dev.to/en/haiku-ui-design-guia/"&gt;simple guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-metodo-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-metodo-en.png" alt="Method overview" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The question and the decision it informs
&lt;/h2&gt;

&lt;p&gt;In studies &lt;a href="https://dev.to/en/haiku-sdd-producao/"&gt;1&lt;/a&gt; and &lt;a href="https://dev.to/en/rag-data-lake-haiku/"&gt;2&lt;/a&gt;, Haiku stayed close to larger models when it received the right process and context. What remains unknown is what happens in UX and UI, where two things tend to go wrong with language models: they perceive fine style differences poorly (the literature shows low recall in detecting CSS changes), and taste is subjective. The thesis of this study is that one can use &lt;strong&gt;technology to cover what AI does poorly&lt;/strong&gt;: open-source rules in the prompt and code that checks and compares screens, leaving the model with what it does well, which is writing and fixing code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Study question:&lt;/strong&gt; does a Haiku with a UX rules data lake and a code-based checking kit get close to plain Sonnet in accuracy, and at what total cost? The unit under test is the whole (model + rules + kit), not the model alone. This matters: saying that "the code did the detection" is not a defect of the experiment; it is what is being measured.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The material
&lt;/h2&gt;

&lt;h3&gt;
  
  
  2.1 The login data lake
&lt;/h3&gt;

&lt;p&gt;There are &lt;strong&gt;30 rules&lt;/strong&gt; for a login screen, each with text, source, how to check it, a good example, a bad example, severity and type (25 objective, 5 semi-objective). All come from open, citable sources: WCAG 2.2 (contrast, labels, touch target, focus, reflow, language), web.dev (login form best practices) and Material Design 3 (consistency, hierarchy, spacing scale). No rule was written from memory as "truth". The source URLs were written from knowledge of the pages and &lt;strong&gt;still need to be checked one by one by opening them&lt;/strong&gt; (pending item, section 9). Examples:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule&lt;/th&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;How it is checked&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;L08: button text with a contrast of at least 4.5:1&lt;/td&gt;
&lt;td&gt;WCAG 2.2, 1.4.3&lt;/td&gt;
&lt;td&gt;contrast ratio between the text color and the button background&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L11: targets of at least 24 px (preferably 44)&lt;/td&gt;
&lt;td&gt;WCAG 2.2, 2.5.8&lt;/td&gt;
&lt;td&gt;estimated height of button and fields&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L17: link to recover the password&lt;/td&gt;
&lt;td&gt;web.dev, WCAG 3.3.8&lt;/td&gt;
&lt;td&gt;an &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; exists with forgot/recover text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L28: fields and button with the same border radius&lt;/td&gt;
&lt;td&gt;Material 3, text fields&lt;/td&gt;
&lt;td&gt;compares &lt;code&gt;border-radius&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  2.2 The kit
&lt;/h3&gt;

&lt;p&gt;The kit is minimal code, in Node, &lt;strong&gt;with no browser and no layout&lt;/strong&gt; (degree 0 of a cost ladder): &lt;code&gt;parse5&lt;/code&gt; for the HTML, &lt;code&gt;css-tree&lt;/code&gt; for the CSS and &lt;code&gt;culori&lt;/code&gt; for colors and contrast. It does two things: (a) it checks the 30 rules and returns a text report with what failed and where; (b) it compares two screens and lists the real differences in structure, content, flow and style, with normalized values (&lt;code&gt;#fff&lt;/code&gt; equals &lt;code&gt;rgb(255,255,255)&lt;/code&gt;, &lt;code&gt;16px&lt;/code&gt; equals &lt;code&gt;1rem&lt;/code&gt;; class names, whitespace, comments and attribute order are ignored). Each run takes about 0.6 s. We left the real browser (Playwright) and images out of the kit: what it does not see, for lack of layout, is declared in section 9.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.3 The stimuli
&lt;/h3&gt;

&lt;p&gt;All generated by a script with a fixed seed (20261110), which gives an exact answer key by construction and avoids screens the model may have seen in training.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;T1, create (12 requests):&lt;/strong&gt; the same login screen for different contexts (clinic, bank, language school, chess club and others). Score: data lake rules met in the final HTML, out of 30.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T2, improve (20 screens):&lt;/strong&gt; each with 3 injected defects, from 22 types used (out of a catalog of 25), tied to rules. Score: defective rules removed minus new rules that start failing, divided by the injected rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T3, compare (60 pairs):&lt;/strong&gt; 20 CSS (13 large and 7 subtle, one property each), 8 content, 8 flow, 8 compound, 8 noise (changes with no effect: renaming classes, reformatting, color in another notation) and 8 identical. The answer is a JSON with the differences; the score is F1 against the answer key, and on noise and identical pairs it is 1 only if the model answers that there is no difference.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The generator checks the stimuli against the kit itself: the kit saw a difference in every pair with a change and in no noise or identical pair. This validates that the kit is consistent with the generator, &lt;strong&gt;not&lt;/strong&gt; independent proof (section 9).&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The conditions: what the model receives
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;What the model receives&lt;/th&gt;
&lt;th&gt;The question it answers&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A0&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;only the task&lt;/td&gt;
&lt;td&gt;how much does it do alone? (baseline)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;task + the 30 data lake rules&lt;/td&gt;
&lt;td&gt;does knowledge alone, with no tool, help?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;task + kit report&lt;/td&gt;
&lt;td&gt;does the tool alone, with no rules in the prompt, help?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;task + rules + report&lt;/td&gt;
&lt;td&gt;the complete combination&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;AC&lt;/strong&gt; (T1 only, Haiku only)&lt;/td&gt;
&lt;td&gt;a second self-critique pass, without the kit&lt;/td&gt;
&lt;td&gt;does the kit's gain come from information or only from an extra pass?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In create, conditions A2, A3 and AC have two calls: generate the HTML and then fix it. In improve and compare, the report goes in the same prompt. Corrections come back as &lt;strong&gt;patches&lt;/strong&gt; (&lt;code&gt;ANTES&lt;/code&gt;/&lt;code&gt;DEPOIS&lt;/code&gt;), applied by code equally to all models: 2,679 of 2,688 Haiku blocks and 2,358 of 2,359 Sonnet blocks were applied.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Design decisions
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Models and execution:&lt;/strong&gt; Haiku 5.5 and Sonnet 5.5 through &lt;code&gt;claude -p&lt;/code&gt; (subscription), with &lt;code&gt;--effort medium&lt;/code&gt; and &lt;strong&gt;no tools&lt;/strong&gt;, with a short system prompt identical for all. Without tools, the model &lt;strong&gt;has no internet access&lt;/strong&gt; and cannot look up published labels: it only sees the prompt. Opus 5.5 was planned and &lt;strong&gt;dropped for cost&lt;/strong&gt;, by the author's decision (deviation in section 9).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nominal cost&lt;/strong&gt; = tokens × list price (per million tokens: Haiku US$ 0.10 input and 0.50 output; Sonnet US$ 2 and 10; cache read 0.01 and 0.10; cache write 1.25 times the input). The actual subscription spend is not billed in dollars.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Samples:&lt;/strong&gt; 3 per cell; each item enters the analysis through the mean of the 3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pilot:&lt;/strong&gt; 46 Haiku items tested the pipeline. After it we replaced the broken logo (an image with no file) with an embedded SVG, which changed the stimuli; for that reason the pilot is &lt;strong&gt;not included&lt;/strong&gt; in the results.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code, stimuli, lake and pre-registration&lt;/strong&gt; were frozen with SHA-256 hashes in &lt;code&gt;dados/CONGELADO.txt&lt;/code&gt; before the run. There was no commit with a tag; the record is by hash (see section 9).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. The execution
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;2,244 items&lt;/strong&gt; ran (Haiku 1,140 and Sonnet 1,104, because AC exists only for Haiku), in &lt;strong&gt;2,424 calls&lt;/strong&gt; (the two-call ones are create with A2, A3 and AC). Haiku consumed 4.68 million input tokens and 2.65 million output tokens; Sonnet, 4.54 million and 1.10 million. Notably, at the same medium effort, Haiku generated &lt;strong&gt;more than twice as many output tokens&lt;/strong&gt; as Sonnet. The total nominal cost was &lt;strong&gt;US$ 19.63&lt;/strong&gt; (Haiku US$ 1.69, Sonnet US$ 17.94). There was one error in the middle of the run, from the kit itself, and the item was redone: &lt;strong&gt;final result, 0 items with errors&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We recorded three deviations from the pre-registration, described in &lt;code&gt;dados/DESVIOS.md&lt;/code&gt;: (1) the kit crashed on an invalid color generated by Haiku and was fixed without changing any rule or threshold; (2) Opus was dropped; (3) the logo was replaced before the run. None of them changes a hypothesis.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. The hypotheses, one by one
&lt;/h2&gt;

&lt;p&gt;Each hypothesis was written before the run, with a metric and a criterion. The p-values come from the paired Wilcoxon test over the items (means of the 3 samples), with a confidence interval by bootstrap over items (10,000 replicates) and Holm correction across the 12 confirmatory comparisons. Of these, &lt;strong&gt;7 pass Holm&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-hipoteses-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-hipoteses-en.png" alt="The hypotheses and the result of each" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H4: in create, does Haiku with rules and kit beat plain Haiku?&lt;/strong&gt; Yes: 0.998 versus 0.744, difference &lt;strong&gt;+0.255&lt;/strong&gt; (95% CI: +0.239 to +0.274; p = 0.0002, passes Holm).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H3: in improve, the same?&lt;/strong&gt; Yes: 0.926 versus 0.754, &lt;strong&gt;+0.172&lt;/strong&gt; (95% CI: +0.083 to +0.267; p = 0.0011, passes). The new defects introduced fall from 0.53 to 0.18 per screen (p = 0.022, &lt;strong&gt;does not pass&lt;/strong&gt; Holm).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H7: do the rules alone already help?&lt;/strong&gt; Yes, in create (A1 0.988 versus 0.744, p = 0.0002) and in improve (0.894 versus 0.754, p = 0.0034). In compare, the tool (A2) came out &lt;strong&gt;below&lt;/strong&gt; the rules-only condition (0.899 versus 0.939), the opposite of what was predicted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H6: is the kit's gain information or just an extra pass?&lt;/strong&gt; In create, the kit beats self-critique without the kit: 0.954 versus 0.804, &lt;strong&gt;+0.150&lt;/strong&gt; (p = 0.0002, passes). The independent check with axe-core &lt;strong&gt;does not confirm&lt;/strong&gt; this advantage (section 7.5).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H5: does the kit help Haiku more than Sonnet?&lt;/strong&gt; In create, the gain of A3 over A0 is +0.255 for Haiku and +0.226 for Sonnet (difference +0.029; p = 0.002, passes); in improve, +0.172 versus −0.025 (difference +0.197; p = 0.0011, passes); in compare, no (p = 0.11). In improve, plain Sonnet is already good (0.935) and &lt;strong&gt;gets worse&lt;/strong&gt; with the rules alone (0.810).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H1: in compare, does the kit raise Haiku's recall?&lt;/strong&gt; Recall rises from 0.909 to 0.967 (+0.058; 95% CI: +0.005 to +0.121; p = 0.044), but &lt;strong&gt;does not pass Holm&lt;/strong&gt;. Not supported.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H2: does the kit reduce false alarms on pairs with no real difference?&lt;/strong&gt; &lt;strong&gt;Not testable.&lt;/strong&gt; Haiku and Sonnet scored 1.00 on the 16 noise and identical pairs in every condition, including without the kit. There was no false alarm to reduce.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H9: the main criterion.&lt;/strong&gt; Does Haiku with rules and kit reach at least 90% of the combined accuracy of plain Sonnet, at no more than 50% of the cost per task? The combined accuracy is the mean of the create, improve and compare scores. Result: &lt;strong&gt;0.943 versus 0.882, ratio 1.07&lt;/strong&gt;, and mean cost per task of US$ 0.0022 versus US$ 0.0210, ratio &lt;strong&gt;0.10&lt;/strong&gt;. &lt;strong&gt;Supported&lt;/strong&gt;, but only against Sonnet: Opus was dropped, so there is no comparison with a larger model than that.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Results
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-acerto-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-acerto-en.png" alt="Score by task and condition" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;A0&lt;/th&gt;
&lt;th&gt;A1&lt;/th&gt;
&lt;th&gt;A2&lt;/th&gt;
&lt;th&gt;A3&lt;/th&gt;
&lt;th&gt;AC&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;T1 create&lt;/td&gt;
&lt;td&gt;Haiku&lt;/td&gt;
&lt;td&gt;0.744&lt;/td&gt;
&lt;td&gt;0.988&lt;/td&gt;
&lt;td&gt;0.954&lt;/td&gt;
&lt;td&gt;0.998&lt;/td&gt;
&lt;td&gt;0.804&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1 create&lt;/td&gt;
&lt;td&gt;Sonnet&lt;/td&gt;
&lt;td&gt;0.774&lt;/td&gt;
&lt;td&gt;0.987&lt;/td&gt;
&lt;td&gt;0.979&lt;/td&gt;
&lt;td&gt;1.000&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2 improve&lt;/td&gt;
&lt;td&gt;Haiku&lt;/td&gt;
&lt;td&gt;0.754&lt;/td&gt;
&lt;td&gt;0.894&lt;/td&gt;
&lt;td&gt;0.967&lt;/td&gt;
&lt;td&gt;0.926&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2 improve&lt;/td&gt;
&lt;td&gt;Sonnet&lt;/td&gt;
&lt;td&gt;0.935&lt;/td&gt;
&lt;td&gt;0.810&lt;/td&gt;
&lt;td&gt;0.956&lt;/td&gt;
&lt;td&gt;0.910&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T3 compare&lt;/td&gt;
&lt;td&gt;Haiku&lt;/td&gt;
&lt;td&gt;0.933&lt;/td&gt;
&lt;td&gt;0.939&lt;/td&gt;
&lt;td&gt;0.899&lt;/td&gt;
&lt;td&gt;0.905&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T3 compare&lt;/td&gt;
&lt;td&gt;Sonnet&lt;/td&gt;
&lt;td&gt;0.938&lt;/td&gt;
&lt;td&gt;0.924&lt;/td&gt;
&lt;td&gt;0.895&lt;/td&gt;
&lt;td&gt;0.897&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  7.1 What worked
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The rules in the prompt already solve most of create.&lt;/strong&gt; Haiku goes from 0.744 to 0.988 with just the 30 rules (A1). The kit adds little there (A3 0.998).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In improve, the kit report is what helps Haiku most:&lt;/strong&gt; from 0.754 (A0) to 0.967 (A2), above the rules alone (0.894), and with fewer new defects introduced.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Haiku with the combination reaches the level of plain Sonnet, for a tenth of the cost.&lt;/strong&gt; The combined accuracy of Haiku A3 (0.943) is above that of Sonnet A0 (0.882), with US$ 0.0022 per task versus US$ 0.0210.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Patch-based corrections work:&lt;/strong&gt; 99.7% of the Haiku blocks and 99.96% of the Sonnet blocks were applied without ambiguity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The response format was not a problem:&lt;/strong&gt; 100% of the compare JSONs were valid for both models.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  7.2 What did not work
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Comparing two screens at code level was already near the ceiling without help&lt;/strong&gt; (0.933 for plain Haiku, 0.938 for plain Sonnet), and the kit report &lt;strong&gt;made things slightly worse&lt;/strong&gt;, especially in CSS: Haiku 0.87 (A0) versus 0.79 (A2) and 0.81 (A3), same pattern for Sonnet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-t3-categorias-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-t3-categorias-en.png" alt="T3 by pair category" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The likely reason, not tested, is that the report lists several properties derived from a single change (for example, the four sides of a padding) and the model copies them; the answer key has one item, and the rest becomes a false alarm. It is a granularity failure of the kit and of the scoring together, and a rescoring that groups by property would be exploratory, done after seeing the data.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Noise and identical pairs discriminated nothing:&lt;/strong&gt; all got it right in every condition. This also says that, with the code of both screens in view, these models do not invent differences.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sonnet got worse with the rules alone in improve&lt;/strong&gt; (0.935 to 0.810). We did not investigate the cause.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  7.3 The cost
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-custo-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-custo-en.png" alt="Nominal cost per task" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;Haiku (US$/task)&lt;/th&gt;
&lt;th&gt;Sonnet (US$/task)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A0&lt;/td&gt;
&lt;td&gt;0.0017&lt;/td&gt;
&lt;td&gt;0.0210&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A1&lt;/td&gt;
&lt;td&gt;0.0022&lt;/td&gt;
&lt;td&gt;0.0241&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A2&lt;/td&gt;
&lt;td&gt;0.0029&lt;/td&gt;
&lt;td&gt;0.0359&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A3&lt;/td&gt;
&lt;td&gt;0.0022&lt;/td&gt;
&lt;td&gt;0.0238&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The mean cost per task is the average of the three task types. Haiku A3 costs 10% of Sonnet A0. This figure is about tokens and &lt;strong&gt;does not include the cost of building the kit and the data lake&lt;/strong&gt;, which was human and AI work and was not monetized; the break-even point against Sonnet depends on how many screens are checked with the same kit.&lt;/p&gt;

&lt;h3&gt;
  
  
  7.4 Aesthetics: no non-human instrument passed
&lt;/h3&gt;

&lt;p&gt;The author is not a designer, and a human panel was ruled out. The way out was to look for instruments that are neither human nor from the family of the models under test and to &lt;strong&gt;validate them before using them&lt;/strong&gt;, with criteria fixed before computing any score. Result: none validated.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-estetica-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-estetica-en.png" alt="Aesthetics instruments and the thresholds" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UIClip&lt;/strong&gt; (a CMU/Apple model trained on ranked UIs): on 15 visually observable defects, the reference screen scored higher in only &lt;strong&gt;9 of 15&lt;/strong&gt; (threshold 12) in attempt 1, and in &lt;strong&gt;8 of 15&lt;/strong&gt; in attempt 2 (screen cropped to the content, the only extra attempt, declared). On graded degradation series, it followed only the button contrast and, at the exact limit (ρ = −0.8), the spacing between fields (&lt;strong&gt;2 of 5&lt;/strong&gt; series in both attempts; threshold 4).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistency and hierarchy by code&lt;/strong&gt; (10 measures in Chrome): &lt;strong&gt;9 of 15&lt;/strong&gt; on the defects and &lt;strong&gt;4 of 5&lt;/strong&gt; on the series. It follows gradual degradation, but &lt;strong&gt;does not see defects of absence&lt;/strong&gt; (removing the password recovery link made the score go up).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fable judge in pairs&lt;/strong&gt;, validated against the 300 pairs of WiserUI-Bench (label: which variant won a real A/B test; 297 pairs with both images downloaded): &lt;strong&gt;55.6% accuracy&lt;/strong&gt; (95% CI: 49.9 to 61.1; threshold 60% with a lower bound above 50%), and &lt;strong&gt;position consistency of 58.6%&lt;/strong&gt; (threshold 70%). The same range the literature reports for AI judges against designers (mean agreement among the designers themselves: 62.4%).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Conclusion of this part: &lt;strong&gt;without validity, aesthetics stays out of the decision and out of the conclusions&lt;/strong&gt;. The study measures legibility, consistency and conformity with open rules, which are part of UX, but not "beauty".&lt;/p&gt;

&lt;h3&gt;
  
  
  7.5 Independent check with axe-core
&lt;/h3&gt;

&lt;p&gt;Since the 30 rules are both in the prompt and in the scoring of create and improve, we ran axe-core (WCAG 2.x A/AA), which the kit and the prompts do not know, on the final screens of T1 and T2. Mean violations per screen:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;T1 create&lt;/th&gt;
&lt;th&gt;A0&lt;/th&gt;
&lt;th&gt;A1&lt;/th&gt;
&lt;th&gt;A2&lt;/th&gt;
&lt;th&gt;A3&lt;/th&gt;
&lt;th&gt;AC&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Haiku&lt;/td&gt;
&lt;td&gt;0.50&lt;/td&gt;
&lt;td&gt;0.03&lt;/td&gt;
&lt;td&gt;0.08&lt;/td&gt;
&lt;td&gt;0.03&lt;/td&gt;
&lt;td&gt;0.06&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sonnet&lt;/td&gt;
&lt;td&gt;0.31&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;0.06&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-axe-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-axe-en.png" alt="axe-core violations by condition" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The gain in create &lt;strong&gt;is confirmed&lt;/strong&gt; independently (Haiku A0 versus A3: p = 0.004). In improve, axe finds almost no violations in any condition, so it &lt;strong&gt;does not discriminate&lt;/strong&gt;. And axe &lt;strong&gt;does not confirm&lt;/strong&gt; the kit's advantage over self-critique without the kit (0.08 versus 0.06; p = 0.75): that part of H6 is supported only by the 30 rules themselves.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Why these results hold, and how far
&lt;/h2&gt;

&lt;p&gt;The design has safeguards: hypotheses, metrics and parameters fixed before the run, with hashes; novel stimuli generated by script with an exact answer key; models without internet access; a self-critique control; multiple-testing correction; an independent check with another tool; reporting of deviations; reporting of negative results (compare, aesthetics) with the same rigor as the positive ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Threats to validity
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Circularity (construct).&lt;/strong&gt; The 30 rules are in the prompt of A1 and A3 and the same kit generates the report of A2 and A3, but they are also what score create and improve. Haiku "learned the test". axe-core mitigates this in create and does not help in improve. The T1 and T2 numbers should be read as &lt;strong&gt;conformity with the rules delivered&lt;/strong&gt;, not as general UX quality.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A single screen, synthetic screens.&lt;/strong&gt; Login, generated by script. No external validity for other screens or for real-world screens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The kit was tuned on the noise types of this set,&lt;/strong&gt; and the same author wrote the stimuli and the kit. The "false alarm" result holds for those types and, in any case, was not testable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The kit has no layout and no browser.&lt;/strong&gt; What depends on rendering (real alignment, overlap, line wrapping) is not seen. Degree 2 of the cost ladder was not built, nor was the image variant.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Opus was dropped for cost.&lt;/strong&gt; H5 and H9 compare only Haiku and Sonnet; nothing can be claimed about how close Haiku gets to the top of the model line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No human panel and no valid aesthetics instrument.&lt;/strong&gt; The aesthetics result is negative and declared; the study does not measure beauty. The Fable judge was validated against conversion labels (which variant generated more actions), which are not beauty, and Fable may have seen WiserUI-Bench in training, which would inflate its accuracy (it did not pass even so).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The pre-registration is by hash, with no tag in the repository,&lt;/strong&gt; and was frozen before the main run, but after the pilot and the first test of the aesthetics instruments. The criteria for the aesthetics instruments were fixed before computing their scores, and there is a record that UIClip had two attempts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The rule sources were opened, but not read one by one.&lt;/strong&gt; On 11/11/2026 I opened all 19 distinct WCAG, web.dev and Material Design URLs: 18 returned 200 and &lt;strong&gt;1 returned 404&lt;/strong&gt; (Material Design 3, spacing, the source of rule L29). Opening a page does not prove it supports the rule; the support audit was done only in the following study.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nominal cost&lt;/strong&gt; at list price, without the cost of building the kit and the data lake, and without the consumption of the plan limit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same family of models&lt;/strong&gt; wrote the study code (with the author) and was evaluated. The raw data are from real runs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10. What this allows us to conclude
&lt;/h2&gt;

&lt;p&gt;With confidence: on the tasks of creating and improving a login screen, giving Haiku the rules (and, in improve, the kit report) brings it to the level of unaided Sonnet, for about a tenth of the cost per task, as measured by the rules themselves and confirmed in create by an independent tool; on comparing two screens at code level, the kit's gain does not appear, because the models already get almost everything right, and the report can get in the way if it comes out verbose. Without confidence: whether the result holds for other screens, for real screens and for larger models; whether the advantage survives scoring that is independent of the rules; and any claim about aesthetics. Natural next steps: a third set of rules that the kit and the prompt do not know, to score with; a kit with layout (degree 2); Opus; and real screens.&lt;/p&gt;

&lt;h2&gt;
  
  
  11. Reproducibility
&lt;/h2&gt;

&lt;p&gt;Code in &lt;code&gt;studies/haiku-ui-design/&lt;/code&gt; (&lt;code&gt;kit/&lt;/code&gt;, &lt;code&gt;gerador/&lt;/code&gt;, &lt;code&gt;executor.py&lt;/code&gt;); lake in &lt;code&gt;lake/login.json&lt;/code&gt;; stimuli in &lt;code&gt;dados/estimulos/&lt;/code&gt;; raw data in &lt;code&gt;dados/bruto/&lt;/code&gt;; validation criteria for the aesthetics instruments and the judge in &lt;code&gt;dados/*CRITERIOS.md&lt;/code&gt;; deviations in &lt;code&gt;dados/DESVIOS.md&lt;/code&gt;; analysis with &lt;code&gt;python gerador/analise.py&lt;/code&gt;; hashes in &lt;code&gt;dados/CONGELADO.txt&lt;/code&gt;. The WiserUI-Bench images (CC BY-NC-SA 4.0, non-commercial research only) are &lt;strong&gt;not&lt;/strong&gt; redistributed; the downloader &lt;code&gt;gerador/baixar_wiserui.py&lt;/code&gt; fetches them from the original hosts. Archive DOI: &lt;strong&gt;Archived on Zenodo (version 3.0.0, studies 3 and 3b): &lt;a href="https://doi.org/10.5281/zenodo.24132784" rel="noopener noreferrer"&gt;10.5281/zenodo.24132784&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  12. References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;W3C. &lt;em&gt;Web Content Accessibility Guidelines (WCAG) 2.2&lt;/em&gt;. &lt;a href="https://www.w3.org/TR/WCAG22/" rel="noopener noreferrer"&gt;https://www.w3.org/TR/WCAG22/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;web.dev. &lt;em&gt;Sign-in form best practices&lt;/em&gt;. &lt;a href="https://web.dev/articles/sign-in-form-best-practices" rel="noopener noreferrer"&gt;https://web.dev/articles/sign-in-form-best-practices&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Material Design 3. &lt;em&gt;Buttons, Text fields and Layout&lt;/em&gt;. &lt;a href="https://m3.material.io/" rel="noopener noreferrer"&gt;https://m3.material.io/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;DiffSpot: detection of CSS changes in screen pairs by multimodal models. arXiv:2605.29615.&lt;/li&gt;
&lt;li&gt;WiserUI-Bench: &lt;em&gt;Do MLLMs Capture How Interfaces Guide User Behavior?&lt;/em&gt; arXiv:2505.05026 (data CC BY-NC-SA 4.0). &lt;a href="https://github.com/jeochris/wiserui-bench" rel="noopener noreferrer"&gt;https://github.com/jeochris/wiserui-bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;DesignPref: &lt;em&gt;Capturing Personal Preferences in Visual Design Generation&lt;/em&gt;. arXiv:2511.20513.&lt;/li&gt;
&lt;li&gt;Wu et al. &lt;em&gt;UIClip: A Data-driven Model for Assessing User Interface Design&lt;/em&gt;. UIST 2024, arXiv:2404.12500.&lt;/li&gt;
&lt;li&gt;Reinecke et al. &lt;em&gt;Predicting users' first impressions of website aesthetics&lt;/em&gt;. CHI 2013.&lt;/li&gt;
&lt;li&gt;Previous Melo Labs studies: &lt;a href="https://dev.to/en/haiku-sdd-producao/"&gt;1&lt;/a&gt; and &lt;a href="https://dev.to/en/rag-data-lake-haiku/"&gt;2&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;The experiments, data and conclusions are mine. The writing was AI-assisted and reviewed by me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>haiku</category>
      <category>ux</category>
      <category>ui</category>
      <category>css</category>
    </item>
    <item>
      <title>Haiku com kit de UX: regras abertas e um código mínimo fazem um modelo pequeno acertar como um maior?</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:17:16 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/haiku-com-kit-de-ux-regras-abertas-e-um-codigo-minimo-fazem-um-modelo-pequeno-acertar-como-um-26do</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/haiku-com-kit-de-ux-regras-abertas-e-um-codigo-minimo-fazem-um-modelo-pequeno-acertar-como-um-26do</guid>
      <description>&lt;p&gt;&lt;strong&gt;Resumo.&lt;/strong&gt; Testamos se o conjunto formado por um modelo pequeno (Haiku 5.5), um data lake de regras de UX com fonte aberta e um código mínimo de checagem (o "kit") se aproxima de um modelo maior (Sonnet 5.5) em três tarefas de tela de login: criar, melhorar e comparar duas telas pelo código. Foram 2.244 itens e 2.424 chamadas, com 0 falhas no final. Em criar e melhorar, o Haiku com regras e kit passou de 0,744 para 0,998 (criar) e de 0,754 para 0,926 (melhorar), e a &lt;strong&gt;acurácia combinada do Haiku com kit foi 1,07 vez a do Sonnet puro, a 10% do custo por tarefa&lt;/strong&gt;. Em comparar duas telas, o kit &lt;strong&gt;não ajudou&lt;/strong&gt; e piorou um pouco; os pares sem diferença real nunca geraram alarme falso em nenhuma condição, então a hipótese sobre alarme falso não pôde ser testada. Três instrumentos de estética sem humano foram validados e &lt;strong&gt;nenhum passou&lt;/strong&gt;; por isso este estudo &lt;strong&gt;não afirma nada sobre beleza&lt;/strong&gt;. A principal ameaça à validade é circular e está na seção 9: as 30 regras que o kit verifica são as mesmas que pontuam criar e melhorar. Uma checagem independente com axe-core confirma o ganho em criar, mas não em melhorar. Para o resumo prático, existe o &lt;a href="https://dev.to/pt/haiku-ui-design-guia/"&gt;guia simples&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-metodo-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-metodo-pt.png" alt="Visão geral do método" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. A pergunta e a decisão que ela informa
&lt;/h2&gt;

&lt;p&gt;Nos estudos &lt;a href="https://dev.to/pt/haiku-sdd-producao/"&gt;1&lt;/a&gt; e &lt;a href="https://dev.to/pt/rag-data-lake-haiku/"&gt;2&lt;/a&gt;, o Haiku ficou perto de modelos maiores quando recebeu processo e contexto certos. Falta saber o que acontece em UX e UI, onde duas coisas costumam dar errado com modelos de linguagem: eles percebem mal diferenças finas de estilo (a literatura mostra recall baixo em detectar mudanças de CSS), e o gosto é subjetivo. A tese deste estudo é que se pode usar &lt;strong&gt;tecnologia para suprir o que a IA faz mal&lt;/strong&gt;: regras de fonte aberta no prompt e um código que checa e compara telas, deixando o modelo com o que ele faz bem, que é escrever e corrigir código.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pergunta do estudo:&lt;/strong&gt; um Haiku com um data lake de regras de UX e um kit de checagem por código chega perto do Sonnet puro em assertividade, e a que custo total? A unidade testada é o conjunto (modelo + regras + kit), não o modelo sozinho. Isso importa: dizer que "o código fez a detecção" não é um defeito do experimento; é o que está sendo medido.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. O material
&lt;/h2&gt;

&lt;h3&gt;
  
  
  2.1 O data lake de login
&lt;/h3&gt;

&lt;p&gt;São &lt;strong&gt;30 regras&lt;/strong&gt; para uma tela de login, cada uma com texto, fonte, como checar, exemplo bom, exemplo ruim, severidade e o tipo (25 objetivas, 5 semi-objetivas). Todas vêm de fontes abertas e citáveis: WCAG 2.2 (contraste, rótulos, alvo de toque, foco, reflow, idioma), web.dev (boas práticas de formulário de login) e Material Design 3 (consistência, hierarquia, escala de espaçamento). Nenhuma regra foi escrita de memória como "verdade". As URLs das fontes foram escritas a partir do conhecimento das páginas e &lt;strong&gt;ainda precisam de conferência de abertura uma a uma&lt;/strong&gt; (item pendente, seção 9). Exemplos:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Regra&lt;/th&gt;
&lt;th&gt;Fonte&lt;/th&gt;
&lt;th&gt;Como se checa&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;L08: texto do botão com contraste de pelo menos 4,5:1&lt;/td&gt;
&lt;td&gt;WCAG 2.2, 1.4.3&lt;/td&gt;
&lt;td&gt;razão de contraste entre cor do texto e fundo do botão&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L11: alvos de pelo menos 24 px (de preferência 44)&lt;/td&gt;
&lt;td&gt;WCAG 2.2, 2.5.8&lt;/td&gt;
&lt;td&gt;altura estimada de botão e campos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L17: link para recuperar senha&lt;/td&gt;
&lt;td&gt;web.dev, WCAG 3.3.8&lt;/td&gt;
&lt;td&gt;existe &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; com texto de esqueci/recuperar&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L28: campos e botão com o mesmo raio de borda&lt;/td&gt;
&lt;td&gt;Material 3, text fields&lt;/td&gt;
&lt;td&gt;compara &lt;code&gt;border-radius&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  2.2 O kit
&lt;/h3&gt;

&lt;p&gt;O kit é um código mínimo, em Node, &lt;strong&gt;sem navegador e sem layout&lt;/strong&gt; (grau 0 de uma escada de custo): &lt;code&gt;parse5&lt;/code&gt; para o HTML, &lt;code&gt;css-tree&lt;/code&gt; para o CSS e &lt;code&gt;culori&lt;/code&gt; para cores e contraste. Ele faz duas coisas: (a) verifica as 30 regras e devolve um relatório em texto com o que falhou e onde; (b) compara duas telas e lista as diferenças reais de estrutura, conteúdo, fluxo e estilo, com os valores normalizados (&lt;code&gt;#fff&lt;/code&gt; igual a &lt;code&gt;rgb(255,255,255)&lt;/code&gt;, &lt;code&gt;16px&lt;/code&gt; igual a &lt;code&gt;1rem&lt;/code&gt;; nomes de classe, espaços, comentários e ordem de atributos são ignorados). Cada execução leva cerca de 0,6 s. Deixamos o navegador real (Playwright) e a imagem de fora do kit: o que ele não enxerga, por não ter layout, é declarado na seção 9.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.3 Os estímulos
&lt;/h3&gt;

&lt;p&gt;Todos gerados por um script com semente fixa (20261110), o que dá gabarito exato por construção e evita telas que o modelo possa ter visto no treino.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;T1, criar (12 pedidos):&lt;/strong&gt; a mesma tela de login para contextos diferentes (clínica, banco, escola de idiomas, clube de xadrez e outros). Pontuação: regras do data lake cumpridas no HTML final, de 30.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T2, melhorar (20 telas):&lt;/strong&gt; cada uma com 3 defeitos injetados, de 22 tipos usados (de um catálogo de 25), ligados a regras. Pontuação: regras defeituosas removidas menos regras novas que passam a falhar, dividido pelas regras injetadas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;T3, comparar (60 pares):&lt;/strong&gt; 20 de CSS (13 grandes e 7 sutis, de uma propriedade), 8 de conteúdo, 8 de fluxo, 8 compostos, 8 de ruído (mudanças sem efeito: renomear classes, reformatar, cor em outra notação) e 8 idênticos. A resposta é um JSON com as diferenças; a pontuação é F1 contra o gabarito, e nos pares de ruído e idênticos vale 1 só se o modelo responder que não há diferença.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;O gerador confere os estímulos contra o próprio kit: o kit viu diferença em todos os pares com mudança e em nenhum par de ruído ou idêntico. Isso é uma validação de que o kit está coerente com o gerador, &lt;strong&gt;não&lt;/strong&gt; uma prova independente (seção 9).&lt;/p&gt;

&lt;h2&gt;
  
  
  3. As condições: o que o modelo recebe
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condição&lt;/th&gt;
&lt;th&gt;O que o modelo recebe&lt;/th&gt;
&lt;th&gt;A pergunta que responde&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A0&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;só a tarefa&lt;/td&gt;
&lt;td&gt;quanto ele faz sozinho? (linha de base)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A1&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;tarefa + as 30 regras do data lake&lt;/td&gt;
&lt;td&gt;só o conhecimento, sem ferramenta, ajuda?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;tarefa + relatório do kit&lt;/td&gt;
&lt;td&gt;só a ferramenta, sem regras no prompt, ajuda?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;tarefa + regras + relatório&lt;/td&gt;
&lt;td&gt;o conjunto completo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;AC&lt;/strong&gt; (só T1, só Haiku)&lt;/td&gt;
&lt;td&gt;uma segunda passada de autocrítica, sem o kit&lt;/td&gt;
&lt;td&gt;o ganho do kit vem da informação ou só de uma passada extra?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Em criar, as condições A2, A3 e AC têm duas chamadas: gerar o HTML e depois corrigir. Em melhorar e comparar, o relatório vai no mesmo prompt. As correções voltam em &lt;strong&gt;trechos&lt;/strong&gt; (&lt;code&gt;ANTES&lt;/code&gt;/&lt;code&gt;DEPOIS&lt;/code&gt;), aplicados por código igualmente a todos os modelos: 2.679 de 2.688 blocos do Haiku e 2.358 de 2.359 do Sonnet foram aplicados.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Decisões de projeto
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Modelos e execução:&lt;/strong&gt; Haiku 5.5 e Sonnet 5.5 por &lt;code&gt;claude -p&lt;/code&gt; (assinatura), com &lt;code&gt;--effort medium&lt;/code&gt; e &lt;strong&gt;sem ferramentas&lt;/strong&gt;, com um prompt de sistema curto igual para todos. Sem ferramentas, o modelo &lt;strong&gt;não acessa a internet&lt;/strong&gt; nem busca rótulos publicados: só vê o prompt. O Opus 5.5 estava previsto e &lt;strong&gt;foi retirado por custo&lt;/strong&gt;, por decisão do autor (desvio na seção 9).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custo nominal&lt;/strong&gt; = tokens × preço de lista (por milhão de tokens: Haiku US$ 0,10 de entrada e 0,50 de saída; Sonnet US$ 2 e 10; leitura de cache 0,01 e 0,10; escrita de cache 1,25 vez a entrada). O gasto real da assinatura não é cobrado em dólar.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amostras:&lt;/strong&gt; 3 por célula; cada item entra na análise pela média das 3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Piloto:&lt;/strong&gt; 46 itens do Haiku testaram o pipeline. Depois dele trocamos o logo quebrado (imagem sem arquivo) por um SVG embutido, o que mudou os estímulos; por isso o piloto &lt;strong&gt;não entra&lt;/strong&gt; nos resultados.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Código, estímulos, lake e pré-registro&lt;/strong&gt; foram congelados com hashes SHA-256 em &lt;code&gt;dados/CONGELADO.txt&lt;/code&gt; antes da rodada. Não houve commit com tag; o registro é por hash (ver seção 9).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. A execução
&lt;/h2&gt;

&lt;p&gt;Rodaram &lt;strong&gt;2.244 itens&lt;/strong&gt; (Haiku 1.140 e Sonnet 1.104, porque o AC existe só no Haiku), em &lt;strong&gt;2.424 chamadas&lt;/strong&gt; (as de duas chamadas são as de criar com A2, A3 e AC). O Haiku consumiu 4,68 milhões de tokens de entrada e 2,65 milhões de saída; o Sonnet, 4,54 milhões e 1,10 milhão. Notável: com o mesmo esforço médio, o Haiku gerou &lt;strong&gt;mais que o dobro de tokens de saída&lt;/strong&gt; do Sonnet. O custo nominal total foi &lt;strong&gt;US$ 19,63&lt;/strong&gt; (Haiku US$ 1,69, Sonnet US$ 17,94). Houve um erro no meio da rodada, do próprio kit, e o item foi refeito: &lt;strong&gt;resultado final, 0 itens com erro&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Registramos três desvios do pré-registro, descritos em &lt;code&gt;dados/DESVIOS.md&lt;/code&gt;: (1) o kit travou numa cor inválida gerada pelo Haiku e foi corrigido sem mudar regra nem limiar; (2) o Opus foi retirado; (3) o logo foi trocado antes da rodada. Nenhum deles muda uma hipótese.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. As hipóteses, uma a uma
&lt;/h2&gt;

&lt;p&gt;Cada hipótese foi escrita antes da rodada, com métrica e critério. Os valores-p vêm do teste pareado de Wilcoxon sobre os itens (médias das 3 amostras), com intervalo de confiança por bootstrap de itens (10.000 réplicas) e correção de Holm nas 12 comparações confirmatórias. Dessas, &lt;strong&gt;7 passam em Holm&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-hipoteses-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-hipoteses-pt.png" alt="As hipóteses e o resultado de cada uma" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H4: no criar, o Haiku com regras e kit supera o Haiku puro?&lt;/strong&gt; Sim: 0,998 contra 0,744, diferença &lt;strong&gt;+0,255&lt;/strong&gt; (IC 95%: +0,239 a +0,274; p = 0,0002, passa em Holm).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H3: no melhorar, o mesmo?&lt;/strong&gt; Sim: 0,926 contra 0,754, &lt;strong&gt;+0,172&lt;/strong&gt; (IC 95%: +0,083 a +0,267; p = 0,0011, passa). Os defeitos novos introduzidos caem de 0,53 para 0,18 por tela (p = 0,022, &lt;strong&gt;não passa&lt;/strong&gt; em Holm).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H7: regras sozinhas já ajudam?&lt;/strong&gt; Sim, em criar (A1 0,988 contra 0,744, p = 0,0002) e em melhorar (0,894 contra 0,754, p = 0,0034). Em comparar, a ferramenta (A2) ficou &lt;strong&gt;abaixo&lt;/strong&gt; da condição só com regras (0,899 contra 0,939), o oposto do previsto.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H6: o ganho do kit é informação ou só uma passada extra?&lt;/strong&gt; Em criar, o kit supera a autocrítica sem kit: 0,954 contra 0,804, &lt;strong&gt;+0,150&lt;/strong&gt; (p = 0,0002, passa). A checagem independente com axe-core &lt;strong&gt;não confirma&lt;/strong&gt; essa vantagem (seção 7.5).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H5: o kit ajuda mais o Haiku que o Sonnet?&lt;/strong&gt; Em criar, o ganho de A3 sobre A0 é +0,255 no Haiku e +0,226 no Sonnet (diferença +0,029; p = 0,002, passa); em melhorar, +0,172 contra −0,025 (diferença +0,197; p = 0,0011, passa); em comparar, não (p = 0,11). Em melhorar, o Sonnet puro já é bom (0,935) e &lt;strong&gt;piora&lt;/strong&gt; com as regras sozinhas (0,810).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H1: em comparar, o kit aumenta o recall do Haiku?&lt;/strong&gt; O recall sobe de 0,909 para 0,967 (+0,058; IC 95%: +0,005 a +0,121; p = 0,044), mas &lt;strong&gt;não passa em Holm&lt;/strong&gt;. Não apoiada.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H2: o kit reduz alarme falso nos pares sem diferença real?&lt;/strong&gt; &lt;strong&gt;Não testável.&lt;/strong&gt; Haiku e Sonnet tiveram nota 1,00 nos 16 pares de ruído e idênticos em todas as condições, inclusive sem kit. Não houve alarme falso para reduzir.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;H9: o critério principal.&lt;/strong&gt; O Haiku com regras e kit atinge pelo menos 90% da acurácia combinada do Sonnet puro, a no máximo 50% do custo por tarefa? A acurácia combinada é a média das pontuações de criar, melhorar e comparar. Resultado: &lt;strong&gt;0,943 contra 0,882, razão 1,07&lt;/strong&gt;, e custo médio por tarefa de US$ 0,0022 contra US$ 0,0210, razão &lt;strong&gt;0,10&lt;/strong&gt;. &lt;strong&gt;Suportada&lt;/strong&gt;, mas só contra o Sonnet: o Opus foi retirado, então não há comparação com um modelo maior que ele.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Resultados
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-acerto-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-acerto-pt.png" alt="Pontuação por tarefa e condição" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tarefa&lt;/th&gt;
&lt;th&gt;Modelo&lt;/th&gt;
&lt;th&gt;A0&lt;/th&gt;
&lt;th&gt;A1&lt;/th&gt;
&lt;th&gt;A2&lt;/th&gt;
&lt;th&gt;A3&lt;/th&gt;
&lt;th&gt;AC&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;T1 criar&lt;/td&gt;
&lt;td&gt;Haiku&lt;/td&gt;
&lt;td&gt;0,744&lt;/td&gt;
&lt;td&gt;0,988&lt;/td&gt;
&lt;td&gt;0,954&lt;/td&gt;
&lt;td&gt;0,998&lt;/td&gt;
&lt;td&gt;0,804&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1 criar&lt;/td&gt;
&lt;td&gt;Sonnet&lt;/td&gt;
&lt;td&gt;0,774&lt;/td&gt;
&lt;td&gt;0,987&lt;/td&gt;
&lt;td&gt;0,979&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2 melhorar&lt;/td&gt;
&lt;td&gt;Haiku&lt;/td&gt;
&lt;td&gt;0,754&lt;/td&gt;
&lt;td&gt;0,894&lt;/td&gt;
&lt;td&gt;0,967&lt;/td&gt;
&lt;td&gt;0,926&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T2 melhorar&lt;/td&gt;
&lt;td&gt;Sonnet&lt;/td&gt;
&lt;td&gt;0,935&lt;/td&gt;
&lt;td&gt;0,810&lt;/td&gt;
&lt;td&gt;0,956&lt;/td&gt;
&lt;td&gt;0,910&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T3 comparar&lt;/td&gt;
&lt;td&gt;Haiku&lt;/td&gt;
&lt;td&gt;0,933&lt;/td&gt;
&lt;td&gt;0,939&lt;/td&gt;
&lt;td&gt;0,899&lt;/td&gt;
&lt;td&gt;0,905&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T3 comparar&lt;/td&gt;
&lt;td&gt;Sonnet&lt;/td&gt;
&lt;td&gt;0,938&lt;/td&gt;
&lt;td&gt;0,924&lt;/td&gt;
&lt;td&gt;0,895&lt;/td&gt;
&lt;td&gt;0,897&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  7.1 O que deu certo
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;As regras no prompt já resolvem a maior parte de criar.&lt;/strong&gt; O Haiku vai de 0,744 para 0,988 só com as 30 regras (A1). O kit soma pouco ali (A3 0,998).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Em melhorar, o relatório do kit é o que mais ajuda o Haiku:&lt;/strong&gt; de 0,754 (A0) para 0,967 (A2), acima das regras sozinhas (0,894), e com menos defeitos novos introduzidos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O Haiku com o conjunto fica no nível do Sonnet puro, por um décimo do custo.&lt;/strong&gt; A acurácia combinada do Haiku A3 (0,943) fica acima da do Sonnet A0 (0,882), com US$ 0,0022 por tarefa contra US$ 0,0210.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;As correções em trechos funcionam:&lt;/strong&gt; 99,7% dos blocos do Haiku e 99,96% dos do Sonnet foram aplicados sem ambiguidade.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O formato de resposta não foi problema:&lt;/strong&gt; 100% dos JSON de comparar foram válidos nos dois modelos.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  7.2 O que não funcionou
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Comparar duas telas pelo código já estava perto do teto sem ajuda&lt;/strong&gt; (0,933 no Haiku puro, 0,938 no Sonnet puro), e o relatório do kit &lt;strong&gt;piorou um pouco&lt;/strong&gt;, especialmente em CSS: Haiku 0,87 (A0) contra 0,79 (A2) e 0,81 (A3), mesmo padrão no Sonnet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-t3-categorias-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-t3-categorias-pt.png" alt="T3 por categoria de par" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;O motivo provável, não testado, é que o relatório lista várias propriedades derivadas de uma só mudança (por exemplo, os quatro lados de um padding) e o modelo as copia; o gabarito tem um item, e o resto vira alarme falso. É uma falha de granularidade do kit e da pontuação juntas, e uma repontuação agrupando por propriedade seria exploratória, feita depois de ver os dados.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pares de ruído e idênticos não discriminaram nada:&lt;/strong&gt; todos acertaram em todas as condições. Isso também diz que, com o código das duas telas à vista, esses modelos não inventam diferenças.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O Sonnet piorou com regras sozinhas em melhorar&lt;/strong&gt; (0,935 para 0,810). Não investigamos a causa.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  7.3 O custo
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-custo-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-custo-pt.png" alt="Custo nominal por tarefa" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condição&lt;/th&gt;
&lt;th&gt;Haiku (US$/tarefa)&lt;/th&gt;
&lt;th&gt;Sonnet (US$/tarefa)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A0&lt;/td&gt;
&lt;td&gt;0,0017&lt;/td&gt;
&lt;td&gt;0,0210&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A1&lt;/td&gt;
&lt;td&gt;0,0022&lt;/td&gt;
&lt;td&gt;0,0241&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A2&lt;/td&gt;
&lt;td&gt;0,0029&lt;/td&gt;
&lt;td&gt;0,0359&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A3&lt;/td&gt;
&lt;td&gt;0,0022&lt;/td&gt;
&lt;td&gt;0,0238&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;O custo médio por tarefa é a média dos três tipos de tarefa. O Haiku A3 custa 10% do Sonnet A0. Esse número é de tokens e &lt;strong&gt;não inclui o custo de construir o kit e o data lake&lt;/strong&gt;, que foi trabalho humano e de IA e não foi monetizado; o ponto de equilíbrio contra o Sonnet depende de quantas telas se checam com o mesmo kit.&lt;/p&gt;

&lt;h3&gt;
  
  
  7.4 Estética: nenhum instrumento sem humano passou
&lt;/h3&gt;

&lt;p&gt;O autor não é designer, e um painel humano foi descartado. A saída foi buscar instrumentos que não sejam humanos nem sejam da família dos modelos testados e &lt;strong&gt;validá-los antes de usá-los&lt;/strong&gt;, com critérios fixados antes de calcular qualquer nota. Resultado: nenhum validou.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-estetica-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-estetica-pt.png" alt="Instrumentos de estética e os limiares" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UIClip&lt;/strong&gt; (modelo da CMU/Apple treinado em UIs ranqueadas): em 15 defeitos visualmente observáveis, a tela de referência teve nota maior em apenas &lt;strong&gt;9 de 15&lt;/strong&gt; (limiar 12) na tentativa 1, e em &lt;strong&gt;8 de 15&lt;/strong&gt; na tentativa 2 (tela cortada no conteúdo, única tentativa extra, declarada). Em séries graduadas de degradação, acompanhou só o contraste do botão e, no limite exato (ρ = −0,8), o espaço entre campos (&lt;strong&gt;2 de 5&lt;/strong&gt; séries nas duas tentativas; limiar 4).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistência e hierarquia por código&lt;/strong&gt; (10 medidas em Chrome): &lt;strong&gt;9 de 15&lt;/strong&gt; nos defeitos e &lt;strong&gt;4 de 5&lt;/strong&gt; nas séries. Acompanha a degradação gradual, mas &lt;strong&gt;não vê defeitos de ausência&lt;/strong&gt; (remover o link de recuperar senha fez a nota subir).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Juiz Fable em pares&lt;/strong&gt;, validado contra os 300 pares do WiserUI-Bench (rótulo: qual variante venceu um teste A/B real; 297 pares com as duas imagens baixadas): &lt;strong&gt;55,6% de acerto&lt;/strong&gt; (IC 95%: 49,9 a 61,1; limiar 60% com limite inferior acima de 50%), e &lt;strong&gt;consistência de posição de 58,6%&lt;/strong&gt; (limiar 70%). Mesma faixa que a literatura reporta para juízes de IA contra designers (acordo médio entre os próprios designers: 62,4%).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Conclusão desta parte: &lt;strong&gt;sem validade, a estética fica fora da decisão e fora das conclusões&lt;/strong&gt;. O estudo mede legibilidade, consistência e conformidade com regras abertas, que são parte do UX, mas não "beleza".&lt;/p&gt;

&lt;h3&gt;
  
  
  7.5 Checagem independente com axe-core
&lt;/h3&gt;

&lt;p&gt;Como as 30 regras estão tanto no prompt quanto na pontuação de criar e melhorar, rodamos o axe-core (WCAG 2.x A/AA), que o kit e os prompts não conhecem, nas telas finais de T1 e T2. Violações médias por tela:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;T1 criar&lt;/th&gt;
&lt;th&gt;A0&lt;/th&gt;
&lt;th&gt;A1&lt;/th&gt;
&lt;th&gt;A2&lt;/th&gt;
&lt;th&gt;A3&lt;/th&gt;
&lt;th&gt;AC&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Haiku&lt;/td&gt;
&lt;td&gt;0,50&lt;/td&gt;
&lt;td&gt;0,03&lt;/td&gt;
&lt;td&gt;0,08&lt;/td&gt;
&lt;td&gt;0,03&lt;/td&gt;
&lt;td&gt;0,06&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sonnet&lt;/td&gt;
&lt;td&gt;0,31&lt;/td&gt;
&lt;td&gt;0,00&lt;/td&gt;
&lt;td&gt;0,06&lt;/td&gt;
&lt;td&gt;0,00&lt;/td&gt;
&lt;td&gt;n.a.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-axe-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Fhaiku-ui-design%2Ffig-axe-pt.png" alt="Violações do axe-core por condição" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;O ganho de criar &lt;strong&gt;se confirma&lt;/strong&gt; de forma independente (Haiku A0 contra A3: p = 0,004). Em melhorar o axe quase não acha violação em nenhuma condição, então &lt;strong&gt;não discrimina&lt;/strong&gt;. E o axe &lt;strong&gt;não confirma&lt;/strong&gt; a vantagem do kit sobre a autocrítica sem kit (0,08 contra 0,06; p = 0,75): essa parte de H6 só é sustentada pelas próprias 30 regras.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Por que esses resultados valem, e até onde
&lt;/h2&gt;

&lt;p&gt;O desenho tem proteções: hipóteses, métricas e parâmetros fixados antes da rodada, com hashes; estímulos inéditos gerados por script com gabarito exato; modelos sem acesso à internet; controle de autocrítica; correção de múltiplos testes; checagem independente com outra ferramenta; relato dos desvios; relato dos resultados negativos (comparar, estética) com o mesmo rigor dos positivos.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Ameaças à validade
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Circularidade (construto).&lt;/strong&gt; As 30 regras estão no prompt de A1 e A3 e o mesmo kit gera o relatório de A2 e A3, mas também são elas que pontuam criar e melhorar. O Haiku "aprendeu a prova". O axe-core ameniza em criar e não ajuda em melhorar. Os números de T1 e T2 devem ser lidos como &lt;strong&gt;conformidade com as regras entregues&lt;/strong&gt;, não como qualidade geral de UX.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uma tela só, telas sintéticas.&lt;/strong&gt; Login, gerado por script. Sem validade externa para outras telas ou para telas do mundo real.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O kit foi afinado nos tipos de ruído deste conjunto,&lt;/strong&gt; e o mesmo autor escreveu estímulos e kit. O resultado de "alarme falso" vale para esses tipos e, de toda forma, não foi testável.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O kit não tem layout nem navegador.&lt;/strong&gt; O que depende de renderização (alinhamento real, sobreposição, quebra de linha) não é visto. O grau 2 da escada de custo não foi construído, nem a variante com imagem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O Opus foi retirado por custo.&lt;/strong&gt; H5 e H9 comparam só Haiku e Sonnet; não se pode afirmar nada sobre a proximidade do Haiku ao topo da linha de modelos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sem painel humano e sem instrumento válido de estética.&lt;/strong&gt; O resultado sobre estética é negativo e declarado; o estudo não mede beleza. O juiz Fable foi validado contra rótulos de conversão (qual variante gerou mais ações), que não são beleza, e o Fable pode ter visto o WiserUI-Bench no treino, o que inflaria a acurácia dele (ele nem assim passou).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O pré-registro é por hash, sem tag no repositório,&lt;/strong&gt; e foi congelado antes da rodada principal, mas depois do piloto e do primeiro teste dos instrumentos de estética. Os critérios dos instrumentos de estética foram fixados antes de calcular suas notas, e há registro de que o UIClip teve duas tentativas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;As fontes das regras foram abertas, mas não lidas uma a uma.&lt;/strong&gt; Em 11/11/2026 abri as 19 URLs distintas de WCAG, web.dev e Material Design: 18 responderam 200 e &lt;strong&gt;1 respondeu 404&lt;/strong&gt; (Material Design 3, espaçamento, fonte da regra L29). Abrir a página não prova que ela sustenta a regra; a auditoria de sustentação foi feita só no estudo seguinte.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custo nominal&lt;/strong&gt; de lista, sem o custo de montar o kit e o data lake, e sem o consumo do limite do plano.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mesma família de modelos&lt;/strong&gt; escreveu o código do estudo (com o autor) e foi avaliada. Os dados brutos são de execuções reais.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10. O que isso permite concluir
&lt;/h2&gt;

&lt;p&gt;Com segurança: em tarefas de criar e melhorar uma tela de login, dar ao Haiku as regras (e, em melhorar, o relatório do kit) o leva ao nível do Sonnet sem ajuda, por cerca de um décimo do custo por tarefa, medido pelas próprias regras e confirmado em criar por uma ferramenta independente; em comparar duas telas pelo código, o ganho do kit não aparece, porque os modelos já acertam quase tudo, e o relatório pode atrapalhar se vier verboso. Sem segurança: se o resultado vale para outras telas, para telas reais e para modelos maiores; se a vantagem sobrevive a uma pontuação independente das regras; e qualquer afirmação sobre estética. Próximos passos naturais: um terceiro conjunto de regras que o kit e o prompt não conhecem para pontuar; um kit com layout (grau 2); o Opus; e telas de verdade.&lt;/p&gt;

&lt;h2&gt;
  
  
  11. Reprodutibilidade
&lt;/h2&gt;

&lt;p&gt;Código em &lt;code&gt;studies/haiku-ui-design/&lt;/code&gt; (&lt;code&gt;kit/&lt;/code&gt;, &lt;code&gt;gerador/&lt;/code&gt;, &lt;code&gt;executor.py&lt;/code&gt;); lake em &lt;code&gt;lake/login.json&lt;/code&gt;; estímulos em &lt;code&gt;dados/estimulos/&lt;/code&gt;; dados brutos em &lt;code&gt;dados/bruto/&lt;/code&gt;; critérios de validação dos instrumentos de estética e do juiz em &lt;code&gt;dados/*CRITERIOS.md&lt;/code&gt;; desvios em &lt;code&gt;dados/DESVIOS.md&lt;/code&gt;; análise em &lt;code&gt;python gerador/analise.py&lt;/code&gt;; hashes em &lt;code&gt;dados/CONGELADO.txt&lt;/code&gt;. As imagens do WiserUI-Bench (CC BY-NC-SA 4.0, só pesquisa não comercial) &lt;strong&gt;não&lt;/strong&gt; são redistribuídas; o baixador &lt;code&gt;gerador/baixar_wiserui.py&lt;/code&gt; busca nos hosts originais. DOI do arquivamento: &lt;strong&gt;Arquivado no Zenodo (versão 3.0.0, estudos 3 e 3b): &lt;a href="https://doi.org/10.5281/zenodo.24132784" rel="noopener noreferrer"&gt;10.5281/zenodo.24132784&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  12. Referências
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;W3C. &lt;em&gt;Web Content Accessibility Guidelines (WCAG) 2.2&lt;/em&gt;. &lt;a href="https://www.w3.org/TR/WCAG22/" rel="noopener noreferrer"&gt;https://www.w3.org/TR/WCAG22/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;web.dev. &lt;em&gt;Sign-in form best practices&lt;/em&gt;. &lt;a href="https://web.dev/articles/sign-in-form-best-practices" rel="noopener noreferrer"&gt;https://web.dev/articles/sign-in-form-best-practices&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Material Design 3. &lt;em&gt;Buttons, Text fields e Layout&lt;/em&gt;. &lt;a href="https://m3.material.io/" rel="noopener noreferrer"&gt;https://m3.material.io/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;DiffSpot: detecção de mudanças de CSS em pares de telas por modelos multimodais. arXiv:2605.29615.&lt;/li&gt;
&lt;li&gt;WiserUI-Bench: &lt;em&gt;Do MLLMs Capture How Interfaces Guide User Behavior?&lt;/em&gt; arXiv:2505.05026 (dados CC BY-NC-SA 4.0). &lt;a href="https://github.com/jeochris/wiserui-bench" rel="noopener noreferrer"&gt;https://github.com/jeochris/wiserui-bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;DesignPref: &lt;em&gt;Capturing Personal Preferences in Visual Design Generation&lt;/em&gt;. arXiv:2511.20513.&lt;/li&gt;
&lt;li&gt;Wu et al. &lt;em&gt;UIClip: A Data-driven Model for Assessing User Interface Design&lt;/em&gt;. UIST 2024, arXiv:2404.12500.&lt;/li&gt;
&lt;li&gt;Reinecke et al. &lt;em&gt;Predicting users' first impressions of website aesthetics&lt;/em&gt;. CHI 2013.&lt;/li&gt;
&lt;li&gt;Estudos anteriores do Melo Labs: &lt;a href="https://dev.to/pt/haiku-sdd-producao/"&gt;1&lt;/a&gt; e &lt;a href="https://dev.to/pt/rag-data-lake-haiku/"&gt;2&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Os experimentos, os dados e as conclusões são meus. A redação foi assistida por IA e revisada por mim.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>haiku</category>
      <category>ux</category>
      <category>ui</category>
      <category>css</category>
    </item>
    <item>
      <title>Give Haiku the project's memory, not the whole project</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Tue, 10 Nov 2026 08:25:56 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/give-haiku-the-projects-memory-not-the-whole-project-3cgm</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/give-haiku-the-projects-memory-not-the-whole-project-3cgm</guid>
      <description>&lt;p&gt;&lt;strong&gt;Plain-language version of the "Haiku with a mini data lake" study.&lt;/strong&gt; For the full method and numbers, read the &lt;a href="https://dev.to/en/rag-data-lake-haiku/"&gt;technical article&lt;/a&gt;. This is what it means if you want to use it tomorrow.&lt;/p&gt;

&lt;h2&gt;
  
  
  In one sentence
&lt;/h2&gt;

&lt;p&gt;A Haiku with no project material gets &lt;strong&gt;14%&lt;/strong&gt; of the decisions that depend on project history right. With a &lt;strong&gt;curated project memory&lt;/strong&gt; it gets &lt;strong&gt;93%&lt;/strong&gt;, and each answer costs &lt;strong&gt;about 250 times less&lt;/strong&gt; than pasting the whole project into the prompt.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-escada-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-escada-en.png" alt="Haiku accuracy under each way of giving context" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-metodo-simples-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-metodo-simples-en.png" alt="The three steps of the study" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We built a "mini data lake" from a real open-source project (h3): 109 documents and 152 &lt;strong&gt;decision cards&lt;/strong&gt;, which are short notes with the decision, the reason, when it applies and whether another decision superseded it. Then we wrote &lt;strong&gt;120 questions&lt;/strong&gt; like "what was decided and what holds today?" and had Haiku answer each one &lt;strong&gt;5 times&lt;/strong&gt;, in &lt;strong&gt;11 different ways&lt;/strong&gt;, for &lt;strong&gt;7,200 answers in total, with no failures&lt;/strong&gt;. Before running anything we wrote down the hypotheses and criteria, so we could not move the goalposts after seeing results.&lt;/p&gt;

&lt;h2&gt;
  
  
  An example to see it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-exemplo-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-exemplo-en.png" alt="A real question and what each way answered" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The question is about a discussion where someone proposed one thing and, days later, ended up doing another. Four ways of giving context, including the whole project pasted in, answered "insufficient information". The curated memory got it right, because the card said which decision superseded which.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we found
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Without material, Haiku does not "guess well": it abstains.&lt;/strong&gt; When it was wrong with no context, it picked "insufficient information" in 73 of 77 answers. The problem is not making things up, it is not knowing an answer exists.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Curated memory gets close to the ceiling.&lt;/strong&gt; On the 90 questions that have an answer in the material it got 84 right; handing over the right documents got 86. On the 30 questions where an old and a new decision conflict, it got &lt;strong&gt;30 of 30&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Pasting everything is costlier and worse.&lt;/strong&gt; The whole project is about 224k tokens. Pasting it for every question cost &lt;strong&gt;250 times more&lt;/strong&gt; and scored lower (76% vs 95% over the 120).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-custo-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-custo-en.png" alt="Cost of answering 1,000 questions" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. With the right context, Haiku gets close to Sonnet.&lt;/strong&gt; With the right documents Haiku got 86 of 90 and Sonnet 90 of 90, at about 1/19 of the cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. One simple trick is worth a lot: reorder the search results.&lt;/strong&gt; Asking a reader model (a "reranker") to reorder the 30 best candidates raised accuracy from 88 to 99 out of 120.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Irrelevant text does not hurt when the right material is there too.&lt;/strong&gt; Mixing random chunks or superseded decisions into the right material changed almost nothing (86 and 87 of 90). On its own, noise is worse than giving nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the hypotheses meant
&lt;/h2&gt;

&lt;p&gt;Before running, we fixed six questions and how much result would count as "yes". Five passed:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-hipoteses-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-hipoteses-en.png" alt="The six hypotheses" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;H1:&lt;/strong&gt; does the right context really help? Yes, +81 points.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H2:&lt;/strong&gt; is Haiku close to Sonnet with the right context? Yes, within 4 points.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H3:&lt;/strong&gt; does automatic search recover the gain of the right context? Yes, 97% of it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H9:&lt;/strong&gt; does Haiku with search match Sonnet with the right documents at half the cost? Cost passed easily, but the accuracy evidence did not meet our criterion. It stays &lt;strong&gt;not confirmed&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H10a and H10b:&lt;/strong&gt; is curated memory far cheaper than pasting everything and than simple search? Yes, on both.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What did not work, and what to keep in mind
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The "abstention gate"&lt;/strong&gt; (answering "not enough information" without calling the model when search finds little) made results worse. It abstains too much. Do not use it as is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The questions came from the same cards the curated memory delivers.&lt;/strong&gt; In 79 of the 90 questions, the source card was among those delivered. In a real project your questions do not come from your cards. The jump from 83% to 95% over the best search is a &lt;strong&gt;ceiling&lt;/strong&gt;, not a forecast. The advantage of reranked search over pasting everything does not have this problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One project, 120 multiple-choice questions&lt;/strong&gt;, an answer key written by AI from the same family as the models tested.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The recipe
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-receita-en.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-receita-en.png" alt="Five-step recipe" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Do not paste the whole project.&lt;/strong&gt; More context is not more accuracy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search chunks&lt;/strong&gt;, combining keywords and meaning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rerank&lt;/strong&gt; the candidates with a reranker.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write decision cards&lt;/strong&gt; (decision, reason, when it applies, what it supersedes) and &lt;strong&gt;flag what was superseded&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Measure with questions you did not write from your own cards.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All code, questions and raw data are in the &lt;a href="https://dev.to/en/rag-data-lake-haiku/"&gt;study repository&lt;/a&gt;, so you can check or repeat it.&lt;/p&gt;

&lt;p&gt;Study data and code, archived with DOI: &lt;a href="https://doi.org/10.5281/zenodo.24101665" rel="noopener noreferrer"&gt;10.5281/zenodo.24101665&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The experiments, data and conclusions are mine. The writing was AI-assisted and reviewed by me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>haiku</category>
      <category>guide</category>
      <category>cost</category>
    </item>
    <item>
      <title>Dê ao Haiku a memória do projeto, não o projeto inteiro</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Tue, 10 Nov 2026 08:25:40 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/de-ao-haiku-a-memoria-do-projeto-nao-o-projeto-inteiro-1270</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/de-ao-haiku-a-memoria-do-projeto-nao-o-projeto-inteiro-1270</guid>
      <description>&lt;p&gt;&lt;strong&gt;Versão simples do estudo "Haiku com mini data lake".&lt;/strong&gt; Para o método completo e os números, leia o &lt;a href="https://dev.to/pt/rag-data-lake-haiku/"&gt;artigo técnico&lt;/a&gt;. Aqui está o que ele significa para quem quer usar isso amanhã.&lt;/p&gt;

&lt;h2&gt;
  
  
  Em uma frase
&lt;/h2&gt;

&lt;p&gt;Um Haiku sem nenhum material do projeto acerta &lt;strong&gt;14%&lt;/strong&gt; das decisões que dependem do histórico. Com uma &lt;strong&gt;memória curada do projeto&lt;/strong&gt;, ele acerta &lt;strong&gt;93%&lt;/strong&gt;, e cada resposta custa &lt;strong&gt;cerca de 250 vezes menos&lt;/strong&gt; do que colar o projeto inteiro no prompt.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-escada-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-escada-pt.png" alt="Acerto do Haiku em cada forma de dar contexto" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  O que a gente fez
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-metodo-simples-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-metodo-simples-pt.png" alt="Os três passos do estudo" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Montamos um "mini data lake" de um projeto aberto de verdade (o h3): 109 documentos e 152 &lt;strong&gt;cartões de decisão&lt;/strong&gt;, que são fichas curtas com a decisão, o motivo, quando vale e se foi substituída por outra. Depois escrevemos &lt;strong&gt;120 perguntas&lt;/strong&gt; do tipo "o que foi decidido e o que vale hoje?" e deixamos o Haiku respondê-las &lt;strong&gt;5 vezes cada&lt;/strong&gt;, de &lt;strong&gt;11 jeitos diferentes&lt;/strong&gt;, num total de &lt;strong&gt;7.200 respostas, sem nenhuma falha&lt;/strong&gt;. Antes de rodar, escrevemos as hipóteses e os critérios, para não ajustar a régua depois de ver o resultado.&lt;/p&gt;

&lt;h2&gt;
  
  
  Um exemplo para entender
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-exemplo-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-exemplo-pt.png" alt="Uma pergunta real e o que cada jeito respondeu" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A pergunta é sobre uma discussão em que alguém propôs uma coisa e, dias depois, acabou fazendo outra. Quatro jeitos de dar contexto, inclusive o projeto inteiro colado, responderam "informação insuficiente". A memória curada acertou, porque o cartão dizia qual decisão substituiu qual.&lt;/p&gt;

&lt;h2&gt;
  
  
  O que a gente descobriu
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Sem material, o Haiku não "chuta bem": ele se abstém.&lt;/strong&gt; Quando errou sem contexto, ele escolheu "informação insuficiente" em 73 de 77 respostas. O problema não é inventar, é não saber que existe resposta.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. A memória curada chega perto do teto.&lt;/strong&gt; Nas 90 perguntas que têm resposta no material, ela acertou 84; entregar os documentos certos de bandeja acertou 86. Nas 30 perguntas de conflito entre decisão antiga e nova, acertou &lt;strong&gt;30 de 30&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Colar tudo é mais caro e pior.&lt;/strong&gt; O projeto inteiro tem cerca de 224 mil tokens. Colar isso em cada pergunta custou &lt;strong&gt;250 vezes mais&lt;/strong&gt; e acertou menos (76% contra 95% no conjunto de 120).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-custo-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-custo-pt.png" alt="Custo de responder 1.000 perguntas" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Com o contexto certo, o Haiku chega perto do Sonnet.&lt;/strong&gt; Com os documentos certos, o Haiku acertou 86 de 90 e o Sonnet 90 de 90, a cerca de 1/19 do custo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Um truque simples vale muito: reordenar os resultados da busca.&lt;/strong&gt; Pedir a um modelo leitor (um "reranker") para reordenar os 30 melhores candidatos subiu o acerto de 88 para 99 em 120.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Texto irrelevante não derruba quando o material certo está junto.&lt;/strong&gt; Misturar trechos aleatórios ou decisões já substituídas ao material certo mudou quase nada (86 e 87 de 90). Sozinho, o ruído é pior do que dar nada.&lt;/p&gt;

&lt;h2&gt;
  
  
  O que as hipóteses queriam dizer
&lt;/h2&gt;

&lt;p&gt;Antes de rodar, fixamos seis perguntas e quanto de resultado bastaria para dizer "sim". Cinco delas passaram:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-hipoteses-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-hipoteses-pt.png" alt="As seis hipóteses" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;H1:&lt;/strong&gt; dar o contexto certo ajuda de verdade? Sim, +81 pontos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H2:&lt;/strong&gt; o Haiku fica perto do Sonnet com o contexto certo? Sim, a 4 pontos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H3:&lt;/strong&gt; uma busca automática recupera o ganho do contexto certo? Sim, 97% dele.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H9:&lt;/strong&gt; Haiku com busca iguala o Sonnet com documentos certos, por metade do custo? O custo passou com folga, mas a evidência do acerto não passou do nosso critério. Fica como &lt;strong&gt;não confirmada&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;H10a e H10b:&lt;/strong&gt; a memória curada é bem mais barata que colar tudo e que a busca simples? Sim, nas duas.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  O que não funcionou, e o que fica de cuidado
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;O "portão de abstenção"&lt;/strong&gt; (responder "não sei" sem chamar o modelo quando a busca acha pouco) piorou o resultado. Ele abstém demais. Não use como está.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;As perguntas saíram dos mesmos cartões que a memória curada entrega.&lt;/strong&gt; Em 79 das 90 perguntas, o cartão de origem estava entre os entregues. Num projeto real, suas perguntas não saem dos seus cartões. O salto de 83% para 95% sobre a melhor busca é um &lt;strong&gt;teto&lt;/strong&gt;, não uma previsão. A vantagem da busca com reranker sobre colar tudo não tem esse problema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Um projeto, 120 perguntas de múltipla escolha&lt;/strong&gt;, gabarito escrito por IA da mesma família dos modelos testados.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A receita
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-receita-pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmelolabs.net%2Fassets%2Frag-data-lake-haiku%2Ffig-receita-pt.png" alt="Receita em cinco passos" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Não cole o projeto inteiro.&lt;/strong&gt; Mais contexto não é mais acerto.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Busque trechos&lt;/strong&gt; combinando palavra-chave e significado.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reordene&lt;/strong&gt; os candidatos com um reranker.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Escreva cartões de decisão&lt;/strong&gt; (decisão, motivo, quando vale, o que substitui) e &lt;strong&gt;marque o que foi substituído&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Meça com perguntas que você não escreveu a partir dos seus cartões.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Todo o código, as perguntas e os dados brutos estão no &lt;a href="https://dev.to/pt/rag-data-lake-haiku/"&gt;repositório do estudo&lt;/a&gt;, para você conferir ou repetir.&lt;/p&gt;

&lt;p&gt;Dados e código do estudo, arquivados com DOI: &lt;a href="https://doi.org/10.5281/zenodo.24101665" rel="noopener noreferrer"&gt;10.5281/zenodo.24101665&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Os experimentos, os dados e as conclusões são meus. A redação foi assistida por IA e revisada por mim.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>haiku</category>
      <category>guia</category>
      <category>custo</category>
    </item>
    <item>
      <title>How to use Haiku in everyday SDD without overspending</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Sun, 08 Nov 2026 04:04:56 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/how-to-use-haiku-in-everyday-sdd-without-overspending-5h6g</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/how-to-use-haiku-in-everyday-sdd-without-overspending-5h6g</guid>
      <description>&lt;p&gt;&lt;strong&gt;The plain version of the study "SDD with Haiku only".&lt;/strong&gt; If you want the scientific rigor, read the &lt;a href="https://dev.to/en/haiku-sdd-producao/"&gt;technical article&lt;/a&gt;. This is what it means for someone who wants to use Haiku tomorrow.&lt;/p&gt;

&lt;h2&gt;
  
  
  In one sentence
&lt;/h2&gt;

&lt;p&gt;Haiku does the job of &lt;strong&gt;writing documents&lt;/strong&gt; (PRD, technical spec, tasks) almost as well as Sonnet for &lt;strong&gt;about 1/5 of the price&lt;/strong&gt;. On &lt;strong&gt;code&lt;/strong&gt;, it works well when you put it in a process with tests and correction; alone, it fails more. The study does not prove it is worse or equal on code. And in a real project it is almost never only the AI: with an engineer reviewing, this is a good path to start with.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we tested
&lt;/h2&gt;

&lt;p&gt;We ran the full cycle (PRD, technical spec, tasks and code) &lt;strong&gt;198 times&lt;/strong&gt; on a real open-source project, h3, with Haiku 5.5 and Sonnet 5.5, and checked the code with hidden tests the model never saw. Three AI judges, without knowing which model wrote each document, scored the documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we found
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsbx5zlghni3zo2tn1b5u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsbx5zlghni3zo2tn1b5u.png" alt="Cost per run and per accepted result" width="800" height="307"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Cost.&lt;/strong&gt; Haiku with the process below cost &lt;strong&gt;US$ 0.22 per run, against US$ 1.23 for Sonnet&lt;/strong&gt;. Counting only the runs where the code passed the tests, it is US$ 0.31 against US$ 1.36.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Documents.&lt;/strong&gt; On TechSpec and Tasks scores, Haiku was practically tied with Sonnet: less than 1 point apart, out of 35 and 25. Note: the judges did not see the original request, so this measures text quality and structure, not "faithful to the request".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Code.&lt;/strong&gt; Here is the map by task (green always passed, red almost never):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgq1h71t8vnxmoth9u6h7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgq1h71t8vnxmoth9u6h7.png" alt="Hit map by task" width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Plain Haiku&lt;/strong&gt; (no process) did badly on three tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Haiku with tests first and a correction loop&lt;/strong&gt; improved a lot, but still failed on #1384-a, #1384-c and #1267.&lt;/li&gt;
&lt;li&gt;Almost all of Haiku's failures on the #1384 tasks came from &lt;strong&gt;one edge case&lt;/strong&gt; (asking for a route that does not exist and getting the error in the right format). Without that case, Haiku passes as much as Sonnet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvo0co5cz7zj7b0x32fgz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvo0co5cz7zj7b0x32fgz.png" alt="Code deficit with and without the edge case" width="800" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The recipe that worked best
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnrylthc2c8q1vjfbb29w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnrylthc2c8q1vjfbb29w.png" alt="Six-step recipe" width="798" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A clear, short request.&lt;/strong&gt; Say what the feature does, with the &lt;strong&gt;exact names&lt;/strong&gt; (functions, options, response formats) and expected behaviors. The vaguer the request, the more the model invents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Haiku writes the documents.&lt;/strong&gt; PRD, technical spec and tasks. This is where it pays off most for the price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automatic document checks.&lt;/strong&gt; A simple script checks what a human does not need to: whether headings follow the agreed format, whether the files and lines cited exist, whether every PRD requirement is covered by a task. If it fails, give Haiku the &lt;strong&gt;real errors&lt;/strong&gt;, at most twice. In practice the gate rarely failed (3 of 234 documents), so it is a cheap safety net.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tests first.&lt;/strong&gt; Ask Haiku to write tests from the spec, run them and &lt;strong&gt;watch them fail&lt;/strong&gt;, and only then implement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Correction loop with real output.&lt;/strong&gt; Run tests, &lt;code&gt;typecheck&lt;/code&gt; and lint, and give the model what the command actually printed, for up to 3 rounds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A person reviews.&lt;/strong&gt; And if the code still does not pass the tests, &lt;strong&gt;hand the task to a larger model&lt;/strong&gt; (Sonnet). Note: this last step is a suggestion. The study did not test real escalation (the study's cascade never escalated).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Steps 1 to 5 are what was measured. Step 6 is the natural conclusion, but it is still a hypothesis.&lt;/p&gt;

&lt;h2&gt;
  
  
  And the engineer in all this?
&lt;/h2&gt;

&lt;p&gt;In a real project, the AI does not run alone. There is a person behind it: who writes the request, reads the documents, looks at the test results and decides what to do. In the study, &lt;strong&gt;nobody intervened&lt;/strong&gt;, on purpose, to measure the raw model. It is a hard test: no error was caught by a person.&lt;/p&gt;

&lt;p&gt;That changes the reading. Haiku's main error was a &lt;strong&gt;forgotten edge case&lt;/strong&gt; (asking for a route that does not exist and getting the error in the right format). That is the kind of thing a code review, or one more line in the request, usually catches before production. With an engineer in the process:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Moment&lt;/th&gt;
&lt;th&gt;What the person does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Request&lt;/td&gt;
&lt;td&gt;Writes it with exact names and remembers the edge cases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Documents&lt;/td&gt;
&lt;td&gt;Reads the spec and the tasks and fixes what looks off&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tests&lt;/td&gt;
&lt;td&gt;Checks that the tests Haiku wrote cover what matters and adds what is missing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;When something fails&lt;/td&gt;
&lt;td&gt;Decides whether to fix the request, adjust the code or hand the task to a larger model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delivery&lt;/td&gt;
&lt;td&gt;Reviews the result, as with any colleague&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Our reading, optimistic: &lt;strong&gt;Haiku does the heavy lifting, fast and cheap, and the person guarantees final quality.&lt;/strong&gt; Mind the difference: this is reasoning from the data, not something the study measured. Measuring "Haiku plus engineer" is the next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is not worth it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Asking Haiku to "improve" its own text with no check.&lt;/strong&gt; It was a control in the study; there is no evidence it helps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Putting Sonnet only on the technical spec&lt;/strong&gt; (hybrid): it cost more than 3 times the cascade without improving scores.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Counting on persona and extra context in the prompt&lt;/strong&gt; as a magic fix: the gain, if any, is about 1 point and is still a weak signal.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  To start tomorrow
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Pick a small feature that already has automated tests.&lt;/li&gt;
&lt;li&gt;[ ] Write the request with exact names and expected behaviors.&lt;/li&gt;
&lt;li&gt;[ ] Ask Haiku for the three documents and run a simple check on them.&lt;/li&gt;
&lt;li&gt;[ ] Ask for tests first, then the code, and feed back the real command output.&lt;/li&gt;
&lt;li&gt;[ ] Decide who reviews and what that person checks (request, documents, tests).&lt;/li&gt;
&lt;li&gt;[ ] If it fails more than 3 rounds, hand it to a larger model.&lt;/li&gt;
&lt;li&gt;[ ] Record cost and result. Your project may give different numbers than ours.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What we do not know yet
&lt;/h2&gt;

&lt;p&gt;We tested &lt;strong&gt;one project&lt;/strong&gt; (TypeScript, three features). The conclusion on code is still open, and the document rubric has limitations. But the path (Haiku on documents, tests first and correction on code, and a person reviewing) is cheap, showed results in several cases and fits how real teams work. The technical article has the numbers, the intervals and everything that may be wrong.&lt;/p&gt;

&lt;p&gt;Study data and code, archived with DOI: &lt;a href="https://doi.org/10.5281/zenodo.24052183" rel="noopener noreferrer"&gt;10.5281/zenodo.24052183&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;The experiments, data and conclusions are mine. The writing was AI-assisted and reviewed by me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>sdd</category>
      <category>haiku</category>
      <category>guide</category>
      <category>cost</category>
    </item>
    <item>
      <title>Como usar o Haiku no dia a dia do SDD, sem gastar à toa</title>
      <dc:creator>MeloLabs.net</dc:creator>
      <pubDate>Sun, 08 Nov 2026 04:02:16 +0000</pubDate>
      <link>https://dev.to/melolabs_melo_0f8fdb509b9/como-usar-o-haiku-no-dia-a-dia-do-sdd-sem-gastar-a-toa-27b3</link>
      <guid>https://dev.to/melolabs_melo_0f8fdb509b9/como-usar-o-haiku-no-dia-a-dia-do-sdd-sem-gastar-a-toa-27b3</guid>
      <description>&lt;p&gt;&lt;strong&gt;Versão simples do estudo "SDD só com Haiku".&lt;/strong&gt; Se você quer o rigor científico, leia o &lt;a href="https://dev.to/pt/haiku-sdd-producao/"&gt;artigo técnico&lt;/a&gt;. Aqui está o que ele significa para quem quer usar o Haiku amanhã.&lt;/p&gt;

&lt;h2&gt;
  
  
  Em uma frase
&lt;/h2&gt;

&lt;p&gt;O Haiku faz o trabalho de &lt;strong&gt;escrever documentos&lt;/strong&gt; (PRD, especificação técnica, tarefas) quase tão bem quanto o Sonnet por &lt;strong&gt;cerca de 1/5 do preço&lt;/strong&gt;. No &lt;strong&gt;código&lt;/strong&gt;, ele funciona bem quando você o coloca num processo com testes e correção; sozinho, erra mais. O estudo não prova que ele é pior ou igual em código. E num projeto real quase nunca é só a IA: com um engenheiro revisando, esse é um caminho bom para começar.&lt;/p&gt;

&lt;h2&gt;
  
  
  O que a gente testou
&lt;/h2&gt;

&lt;p&gt;Rodamos &lt;strong&gt;198 vezes&lt;/strong&gt; o ciclo completo (PRD, especificação técnica, tarefas e código) num projeto aberto de verdade, o h3, com o Haiku 5.5 e o Sonnet 5.5, e conferimos o código com testes escondidos que o modelo nunca viu. Três juízes de IA, sem saber qual modelo escreveu cada documento, deram notas aos documentos.&lt;/p&gt;

&lt;h2&gt;
  
  
  O que a gente descobriu
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsbx5zlghni3zo2tn1b5u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsbx5zlghni3zo2tn1b5u.png" alt="Custo por execução e por resultado aceito" width="800" height="307"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Custo.&lt;/strong&gt; O Haiku com o processo abaixo custou &lt;strong&gt;US$ 0,22 por execução, contra US$ 1,23 do Sonnet&lt;/strong&gt;. Se contarmos só as execuções em que o código passou nos testes, são US$ 0,31 contra US$ 1,36.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Documentos.&lt;/strong&gt; Nas notas de TechSpec e Tasks, o Haiku ficou praticamente empatado com o Sonnet: diferença de menos de 1 ponto, de 35 e de 25 possíveis. Atenção: os juízes não viam o pedido original, então isso mede qualidade do texto e da estrutura, não "ficou fiel ao pedido".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Código.&lt;/strong&gt; Veja o mapa por tarefa (verde passou sempre, vermelho quase nunca):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgq1h71t8vnxmoth9u6h7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgq1h71t8vnxmoth9u6h7.png" alt="Mapa de acertos por tarefa" width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;O &lt;strong&gt;Haiku simples&lt;/strong&gt; (sem processo) foi mal em três tarefas.&lt;/li&gt;
&lt;li&gt;O &lt;strong&gt;Haiku com testes primeiro e loop de correção&lt;/strong&gt; melhorou bastante, mas ainda falhou em #1384-a, #1384-c e #1267.&lt;/li&gt;
&lt;li&gt;Quase toda a falha do Haiku nas tarefas #1384 foi &lt;strong&gt;um único caso de borda&lt;/strong&gt; (pedir uma rota que não existe e receber o erro no formato certo). Sem esse caso, o Haiku passa tanto quanto o Sonnet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvo0co5cz7zj7b0x32fgz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvo0co5cz7zj7b0x32fgz.png" alt="O déficit de código com e sem o caso de borda" width="800" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A receita que funcionou melhor
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnrylthc2c8q1vjfbb29w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnrylthc2c8q1vjfbb29w.png" alt="Receita em seis passos" width="798" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pedido claro e curto.&lt;/strong&gt; Diga o que a feature faz, com os &lt;strong&gt;nomes exatos&lt;/strong&gt; (funções, opções, formatos de resposta) e os comportamentos esperados. Quanto mais vago o pedido, mais o modelo inventa.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O Haiku escreve os documentos.&lt;/strong&gt; PRD, especificação técnica e tarefas. É aqui que ele rende mais pelo preço.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checagem automática dos documentos.&lt;/strong&gt; Um script simples confere o que dá para conferir sem ser humano: se os cabeçalhos estão no formato combinado, se os arquivos e linhas citados existem, se toda exigência do PRD foi coberta por uma tarefa. Se reprovar, devolva ao Haiku &lt;strong&gt;os erros reais&lt;/strong&gt;, no máximo duas vezes. Na prática o gate raramente reprovou (3 em 234 documentos), então ele é um seguro barato.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testes primeiro.&lt;/strong&gt; Peça ao Haiku que escreva testes a partir da especificação, rode e &lt;strong&gt;veja falhar&lt;/strong&gt;, e só então implemente.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loop de correção com a saída real.&lt;/strong&gt; Rodar testes, &lt;code&gt;typecheck&lt;/code&gt; e lint, e devolver ao modelo o que o comando realmente imprimiu, em até 3 rodadas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uma pessoa revisa.&lt;/strong&gt; E se o código ainda não passar nos testes, &lt;strong&gt;passe a tarefa para um modelo maior&lt;/strong&gt; (Sonnet). Atenção: esse último passo é uma sugestão. O estudo não testou escalar de verdade (a cascata do estudo nunca escalou).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Os passos 1 a 5 são o que foi medido. O passo 6 é a conclusão natural, mas ainda é hipótese.&lt;/p&gt;

&lt;h2&gt;
  
  
  E o engenheiro nessa história?
&lt;/h2&gt;

&lt;p&gt;Num projeto real, a IA não roda sozinha. Tem uma pessoa por trás: quem escreve o pedido, lê os documentos, olha o resultado dos testes e decide o que fazer. No estudo, &lt;strong&gt;ninguém interveio&lt;/strong&gt;, de propósito, para medir o modelo puro. É um teste duro: nenhum erro foi pego por uma pessoa.&lt;/p&gt;

&lt;p&gt;Isso muda a leitura. O principal erro do Haiku foi um &lt;strong&gt;caso de borda esquecido&lt;/strong&gt; (pedir uma rota que não existe e receber o erro no formato certo). É o tipo de coisa que uma revisão de código, ou uma linha a mais no pedido, costuma pegar antes de ir para produção. Com um engenheiro no processo:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Momento&lt;/th&gt;
&lt;th&gt;O que a pessoa faz&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pedido&lt;/td&gt;
&lt;td&gt;Escreve com nomes exatos e lembra dos casos de borda&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Documentos&lt;/td&gt;
&lt;td&gt;Lê a especificação e as tarefas e corrige o que estiver estranho&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Testes&lt;/td&gt;
&lt;td&gt;Confere se os testes escritos pelo Haiku cobrem o que importa e acrescenta o que faltou&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quando algo falha&lt;/td&gt;
&lt;td&gt;Decide se corrige o pedido, ajusta o código ou passa a tarefa para um modelo maior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Entrega&lt;/td&gt;
&lt;td&gt;Revisa o resultado, como faria com qualquer colega&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A nossa leitura, otimista: &lt;strong&gt;o Haiku faz o trabalho pesado, rápido e barato, e a pessoa garante a qualidade final.&lt;/strong&gt; Fique atento à diferença: isso é um raciocínio a partir dos dados, não algo que o estudo mediu. Medir "Haiku mais engenheiro" é o próximo passo.&lt;/p&gt;

&lt;h2&gt;
  
  
  O que não vale a pena
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pedir ao Haiku para "melhorar" o próprio texto sem nenhuma checagem.&lt;/strong&gt; Foi um controle do estudo; não há evidência de que ajude.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pôr o Sonnet só na especificação técnica&lt;/strong&gt; (modelo híbrido): custou mais de 3 vezes o da cascata sem melhorar as notas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contar com persona e contexto extra no prompt&lt;/strong&gt; como solução mágica: o ganho, se existe, é de cerca de 1 ponto e ainda é um sinal fraco.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Para começar amanhã
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Escolha uma feature pequena e com testes automáticos já existentes.&lt;/li&gt;
&lt;li&gt;[ ] Escreva o pedido com nomes exatos e comportamentos esperados.&lt;/li&gt;
&lt;li&gt;[ ] Peça ao Haiku os três documentos e rode uma checagem simples neles.&lt;/li&gt;
&lt;li&gt;[ ] Peça os testes primeiro, depois o código, e devolva a saída real dos comandos.&lt;/li&gt;
&lt;li&gt;[ ] Defina quem revisa e o que essa pessoa confere (pedido, documentos, testes).&lt;/li&gt;
&lt;li&gt;[ ] Se falhar mais de 3 rodadas, passe para um modelo maior.&lt;/li&gt;
&lt;li&gt;[ ] Anote o custo e o resultado. Seu projeto pode dar números diferentes dos nossos.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  O que ainda não sabemos
&lt;/h2&gt;

&lt;p&gt;Testamos &lt;strong&gt;um projeto&lt;/strong&gt; (TypeScript, três funcionalidades). A conclusão sobre o código ainda é aberta, e a rubrica dos documentos tem limitações. Mas o caminho (Haiku nos documentos, testes primeiro e correção no código, e uma pessoa revisando) é barato, mostrou resultado em vários casos e combina com como equipes reais trabalham. O artigo técnico traz os números, os intervalos e tudo que pode estar errado.&lt;/p&gt;

&lt;p&gt;Dados e código do estudo, arquivados com DOI: &lt;a href="https://doi.org/10.5281/zenodo.24052183" rel="noopener noreferrer"&gt;10.5281/zenodo.24052183&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Os experimentos, os dados e as conclusões são meus. A redação foi assistida por IA e revisada por mim.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>sdd</category>
      <category>haiku</category>
      <category>guia</category>
      <category>custo</category>
    </item>
  </channel>
</rss>
