<?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: 王果ai</title>
    <description>The latest articles on DEV Community by 王果ai (@wangguode).</description>
    <link>https://dev.to/wangguode</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%2F4236711%2Fb983faaa-4628-49c7-b02b-98957f7203b7.jpg</url>
      <title>DEV Community: 王果ai</title>
      <link>https://dev.to/wangguode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wangguode"/>
    <language>en</language>
    <item>
      <title>Why AI Crawlers Only See "App Needs JavaScript" (And How We Built an Edge /llms.txt &amp; AEO Checker)</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Mon, 30 Nov 2026 02:44:03 +0000</pubDate>
      <link>https://dev.to/wangguode/why-ai-crawlers-only-see-app-needs-javascript-and-how-we-built-an-edge-llmstxt-aeo-checker-2a65</link>
      <guid>https://dev.to/wangguode/why-ai-crawlers-only-see-app-needs-javascript-and-how-we-built-an-edge-llmstxt-aeo-checker-2a65</guid>
      <description>&lt;p&gt;While auditing dozens of newly launched SaaS apps on Show HN this week, the most common growth bug we ran into had nothing to do with product quality—it was &lt;strong&gt;invisible HTML for non-JS crawlers&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can ship a thoughtful 10 KB &lt;code&gt;/llms.txt&lt;/code&gt; manifest, launch on Hacker News, and still fail to get indexed properly by ChatGPT Search, Perplexity, or Slack/X link unfurlers if a raw &lt;code&gt;curl https://your-app.com&lt;/code&gt; returns an empty &lt;code&gt;&amp;lt;div id="root"&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt; or &lt;code&gt;"This app needs JavaScript"&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 4 Checks Most Indie SaaS Launches Miss
&lt;/h2&gt;

&lt;p&gt;When we built the passive diagnostic engine behind &lt;strong&gt;&lt;a href="https://pulse.statementflow.win?utm_source=devto&amp;amp;utm_campaign=nov30_aeo_post" rel="noopener noreferrer"&gt;LaunchPulse&lt;/a&gt;&lt;/strong&gt; on Cloudflare Workers + D1, we benchmarked launches across 12 lightweight HTTP checks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Raw HTML Shell (No-JS Readability)&lt;/strong&gt;: Does &lt;code&gt;GET /&lt;/code&gt; return a real &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;meta name="description"&amp;gt;&lt;/code&gt;, and meaningful &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; copy without running client JavaScript?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;/llms.txt&lt;/code&gt; + &lt;code&gt;robots.txt&lt;/code&gt; Alignment&lt;/strong&gt;: Having &lt;code&gt;/llms.txt&lt;/code&gt; is useful, but only if &lt;code&gt;robots.txt&lt;/code&gt; doesn't block AI user-agents and the root HTML provides consistent canonical metadata.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;&amp;lt;link rel="canonical"&amp;gt;&lt;/code&gt; + &lt;code&gt;og:image&lt;/code&gt;&lt;/strong&gt;: Without canonical tags on pSEO or query-string pages, Google Search Console quickly flags duplicate pages; without &lt;code&gt;og:image&lt;/code&gt;, social shares lose 60%+ CTR.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edge 302 Attribution (&lt;code&gt;/r/:code&lt;/code&gt;)&lt;/strong&gt;: Instead of guessing which directory or Show HN post sent real signups, a 1-hop edge Worker redirect logs country/device/referrer into D1 before forwarding.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Minimal Edge Check Pattern (Cloudflare Worker)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;checkNoJsReadability&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;targetUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;targetUrl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (compatible; LaunchPulseBot/1.0)"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;hasCanonical&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"']canonical["&lt;/span&gt;&lt;span class="s1"&gt;']/i.test(html);
  const hasOgImage = /property=["'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="n"&gt;og&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;image&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"']/i.test(html);
  const hasJsonLd = /application\/ld\+json/i.test(html);
  const jsBlocked = /needs?\s+javascript|enable\s+javascript/i.test(html);
  return { status: res.status, hasCanonical, hasOgImage, hasJsonLd, jsBlocked };
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Try the Free Local / Edge Utilities
&lt;/h2&gt;

&lt;p&gt;We opened up the diagnostic endpoints with zero signup wall:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live 12-Point AEO &amp;amp; &lt;code&gt;/llms.txt&lt;/code&gt; Checker&lt;/strong&gt;: &lt;a href="https://pulse.statementflow.win/tools/aeo-checker" rel="noopener noreferrer"&gt;https://pulse.statementflow.win/tools/aeo-checker&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free &lt;code&gt;/llms.txt&lt;/code&gt; Generator&lt;/strong&gt;: &lt;a href="https://pulse.statementflow.win/tools/llms-txt-generator" rel="noopener noreferrer"&gt;https://pulse.statementflow.win/tools/llms-txt-generator&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Directory Finder&lt;/strong&gt;: &lt;a href="https://pulse.statementflow.win/tools/directory-finder" rel="noopener noreferrer"&gt;https://pulse.statementflow.win/tools/directory-finder&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you shipped a SaaS this week, try running &lt;code&gt;curl -s https://your-domain.com | head -n 40&lt;/code&gt; first—you might be surprised how much of your landing page is invisible to non-JS bots.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>javascript</category>
      <category>saas</category>
      <category>seo</category>
    </item>
    <item>
      <title>When Can You Safely Replace Flagship LLM APIs with Flash Models—and Cut Inference Costs by 88%?</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Sun, 29 Nov 2026 00:07:43 +0000</pubDate>
      <link>https://dev.to/wangguode/when-can-you-safely-replace-flagship-llm-apis-with-flash-models-and-cut-inference-costs-by-88-4416</link>
      <guid>https://dev.to/wangguode/when-can-you-safely-replace-flagship-llm-apis-with-flash-models-and-cut-inference-costs-by-88-4416</guid>
      <description>&lt;p&gt;Most engineering teams default every production LLM endpoint to a flagship model (&lt;code&gt;Max&lt;/code&gt; / &lt;code&gt;Pro&lt;/code&gt;) "just to be safe." Then the first month's API invoice lands, and they realize 80% of their traffic is ticket routing, dirty JSON extraction, and constrained summaries—work where flagship models cost 8× more and run 2× slower.&lt;/p&gt;

&lt;p&gt;We ran &lt;strong&gt;48 live deterministic API calls&lt;/strong&gt; (DashScope OpenAI-compatible endpoint, &lt;code&gt;temperature=0&lt;/code&gt;, &lt;code&gt;enable_thinking=false&lt;/code&gt;) across four model tiers—&lt;code&gt;qwen3.8-flash&lt;/code&gt;, &lt;code&gt;qwen-flash&lt;/code&gt;, &lt;code&gt;qwen3.5-plus&lt;/code&gt;, and &lt;code&gt;qwen3.8-max&lt;/code&gt;—on 12 real enterprise tasks split into 4 difficulty tiers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Routing (&lt;code&gt;CLS 1–3&lt;/code&gt;)&lt;/strong&gt;: Single-label intent classification (refunds, VAT invoices, API 502 errors).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dirty Extraction (&lt;code&gt;EXT 1–3&lt;/code&gt;)&lt;/strong&gt;: Pulling 10-digit PO numbers out of voided-ID noise, converting to integer cents, and calculating &lt;code&gt;35 boxes × 12 units&lt;/code&gt; while ignoring spare-part decoys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Constrained Summaries (&lt;code&gt;SUM 1–3&lt;/code&gt;)&lt;/strong&gt;: Strict length caps retaining exact metrics (&lt;code&gt;18%&lt;/code&gt;, &lt;code&gt;3.2s&lt;/code&gt;), rollback decisions, and cross-year ERP posting rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code &amp;amp; Finance Audits (&lt;code&gt;AUD 1–3&lt;/code&gt;)&lt;/strong&gt;: Async TOCTOU race detection, SQL injection detection, and a retrospective straight-line accrual calculation (&lt;code&gt;AUD-2&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Live Results Matrix (48 Calls, Zero LLM-as-a-Judge)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model Tier&lt;/th&gt;
&lt;th&gt;Pass Rate&lt;/th&gt;
&lt;th&gt;Failed Task&lt;/th&gt;
&lt;th&gt;Avg Latency&lt;/th&gt;
&lt;th&gt;12-Task Cost&lt;/th&gt;
&lt;th&gt;Cost vs Flagship&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;qwen3.8-flash&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;12 / 12&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.95s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;¥0.00056&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;12.2% (-87.8%)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;qwen-flash&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;12 / 12&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;0.78s&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;¥0.00084&lt;/td&gt;
&lt;td&gt;18.3% (-81.7%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;qwen3.5-plus&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;11 / 12&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AUD-2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.44s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;¥0.00123&lt;/td&gt;
&lt;td&gt;26.7% (-73.3%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;11 / 12&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AUD-2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.95s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;¥0.00460&lt;/td&gt;
&lt;td&gt;100% (Baseline)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why Did the Flagship Fail &lt;code&gt;AUD-2&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;AUD-2&lt;/code&gt; was a retrospective ERP accrual problem: a ¥120,000 tooling contract over 122 days gets a ¥10,000 retroactive price cut in month 2 (adjusted total ¥110,000), requiring cumulative 61-day accrual (&lt;code&gt;¥55,000&lt;/code&gt;) minus prior month accrual (&lt;code&gt;¥29,508.20&lt;/code&gt;) = &lt;code&gt;¥25,491.80&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;With thinking disabled, both &lt;code&gt;qwen3.8-max&lt;/code&gt; and &lt;code&gt;qwen3.5-plus&lt;/code&gt; tripped on mental decimal subtraction. The takeaway is blunt: &lt;strong&gt;never use a flagship LLM as a calculator.&lt;/strong&gt; Use a Flash model to extract parameters into a Pydantic schema, then compute exact cents in 10 lines of deterministic Python &lt;code&gt;Decimal&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;decimal&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;ROUND_HALF_UP&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pydantic&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;BaseModel&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;AccrualParams&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;BaseModel&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;original_price&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;
    &lt;span class="n"&gt;price_delta&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;
    &lt;span class="n"&gt;total_days&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;
    &lt;span class="n"&gt;elapsed_days&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;
    &lt;span class="n"&gt;prev_accrued&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calc_retrospective_accrual&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AccrualParams&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;adjusted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;original_price&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;price_delta&lt;/span&gt;
    &lt;span class="n"&gt;cum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;adjusted&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;elapsed_days&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;total_days&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;quantize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"0.01"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rounding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;ROUND_HALF_UP&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;curr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cum&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prev_accrued&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;quantize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"0.01"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rounding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;ROUND_HALF_UP&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"adjusted_total"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;adjusted&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cum_accrual"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cum&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"curr_month"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;curr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Production Migration Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;☐ Move routing, dirty field extraction, and fixed-format summaries to &lt;code&gt;qwen3.8-flash&lt;/code&gt; (sub-second latency, -88% cost).&lt;/li&gt;
&lt;li&gt;☐ Decouple all financial arithmetic from LLMs into deterministic &lt;code&gt;Decimal&lt;/code&gt; code.&lt;/li&gt;
&lt;li&gt;☐ Replay 100 real production logs across Flash vs Max before gradual rollout (&lt;code&gt;10% → 50% → 100%&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;☐ Explicitly lock &lt;code&gt;enable_thinking=false&lt;/code&gt; on high-QPS endpoints.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Reproducible Scripts &amp;amp; Sponsorship
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Benchmark Suite&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/llm-prod-bench/tree/main/p06_to_p10" rel="noopener noreferrer"&gt;https://github.com/wangguode/llm-prod-bench/tree/main/p06_to_p10&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chinese Full Report (Zhihu)&lt;/strong&gt;: &lt;a href="https://zhuanlan.zhihu.com/p/2108498731620487175" rel="noopener noreferrer"&gt;https://zhuanlan.zhihu.com/p/2108498731620487175&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Want an independent production stress-test for your LLM or inference gateway? Open a &lt;code&gt;[Benchmark Request]&lt;/code&gt; issue on GitHub or DM &lt;a href="https://x.com/sansaxypy" rel="noopener noreferrer"&gt;@sansaxypy&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Building an Open-Source 3D World Explorer in the Browser with MapLibre GL, Three.js &amp; Gaussian Splatting</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Sat, 28 Nov 2026 07:17:07 +0000</pubDate>
      <link>https://dev.to/wangguode/building-an-open-source-3d-world-explorer-in-the-browser-with-maplibre-gl-threejs-gaussian-146l</link>
      <guid>https://dev.to/wangguode/building-an-open-source-3d-world-explorer-in-the-browser-with-maplibre-gl-threejs-gaussian-146l</guid>
      <description>&lt;p&gt;Most "neural world model" demos today exist only as 10-second MP4 videos in arxiv appendices, while classic web globes stop at static 2D/2.5D tile inspection.&lt;/p&gt;

&lt;p&gt;I wanted an open-source, zero-signup browser playground where you can fly across real global 3D terrain at 60 FPS, drop into physics-driven driving or flight modes anywhere on Earth, and step through 3D Gaussian Splatting (&lt;code&gt;.splat&lt;/code&gt; / &lt;code&gt;.spz&lt;/code&gt;) scene portals — all running client-side with zero API keys required.&lt;/p&gt;

&lt;p&gt;Here is how we architected &lt;strong&gt;TERRA-OASIS&lt;/strong&gt; (&lt;a href="https://terra.statementflow.win" rel="noopener noreferrer"&gt;live browser explorer&lt;/a&gt; · &lt;a href="https://github.com/wangguode/terra-world-travel" rel="noopener noreferrer"&gt;MIT GitHub repo&lt;/a&gt;).&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Synchronizing MapLibre Globe/Terrain with Three.js + Cannon-es
&lt;/h2&gt;

&lt;p&gt;Combining a global vector/satellite basemap with rigid-body vehicle physics in a single WebGL frame loop hits three immediate coordinate-system traps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Precision jitter at planetary scale&lt;/strong&gt;: Standard 32-bit float world coordinates visibly jitter when rendering meter-scale vehicle suspensions on a WGS84 globe. We anchor the local physics origin (&lt;code&gt;cannon-es&lt;/code&gt;) to a floating tangent-plane ENU frame centered on the active landmark and re-center seamlessly on teleportation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-key tile &amp;amp; elevation pipeline&lt;/strong&gt;: Instead of locking contributors behind proprietary Mapbox tokens, the terrain layer streams open global elevation tiles paired with OpenFreeMap 3D building extrusions and high-resolution satellite imagery out of the box.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic frame budget&lt;/strong&gt;: Physics stepping runs on a fixed &lt;code&gt;1/60s&lt;/code&gt; accumulator decoupled from camera interpolation so frame-rate dips on mobile GPUs never launch the vehicle through terrain meshes.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Fixed-step rigid-body tick decoupled from MapLibre camera slerp&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;FIXED_DT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;world&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;step&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;FIXED_DT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;deltaSeconds&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;syncMapLibreCameraToChassis&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;chassisBody&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;chassisBody&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;quaternion&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  2. Bridging Macro Geography &amp;amp; Micro 3D Gaussian Splatting (&lt;code&gt;@sparkjsdev/spark&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Satellite tiles look great from 800 meters up, but break down at street level. Conversely, 3D Gaussian Splatting scenes look photorealistic at eye level, yet feel disconnected when floating in an empty black viewport.&lt;/p&gt;

&lt;p&gt;In TERRA-OASIS, geo-anchored &lt;strong&gt;Scene Portals&lt;/strong&gt; sit directly on real coordinates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Flying down into a portal cross-fades from the macro MapLibre globe into a Three.js + SparkJS Gaussian Splatting renderer.&lt;/li&gt;
&lt;li&gt;Memory is bounded by disposing GPU splat buffers immediately upon exiting back to orbital flight, keeping tab memory stable on 8 GB laptops.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Built-In World Models Research Graph
&lt;/h2&gt;

&lt;p&gt;Alongside the 3D globe, we indexed &lt;strong&gt;100+ foundational papers and open-source implementations&lt;/strong&gt; across action-conditioned video world models, 3DGS/NeRF spatial representations, and embodied simulation so researchers can jump straight from architectural taxonomy to playable spatial interaction.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try It Live (Zero Signup / MIT Licensed)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live WebGL Explorer&lt;/strong&gt;: &lt;a href="https://terra.statementflow.win" rel="noopener noreferrer"&gt;https://terra.statementflow.win&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source Code (MIT)&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/terra-world-travel" rel="noopener noreferrer"&gt;https://github.com/wangguode/terra-world-travel&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are experimenting with browser-native 3DGS, MapLibre custom WebGL layers, or real-time agent/world interfaces (like our sister low-latency voice engine &lt;a href="https://hardcall.statementflow.win" rel="noopener noreferrer"&gt;HardCall&lt;/a&gt;), I would love your feedback and PRs!&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Multimodal Vision Models on Dirty Invoices, UI Screenshots &amp; Architecture Diagrams: 45 Live Calls</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Thu, 26 Nov 2026 23:51:51 +0000</pubDate>
      <link>https://dev.to/wangguode/multimodal-vision-models-on-dirty-invoices-ui-screenshots-architecture-diagrams-45-live-calls-3d7j</link>
      <guid>https://dev.to/wangguode/multimodal-vision-models-on-dirty-invoices-ui-screenshots-architecture-diagrams-45-live-calls-3d7j</guid>
      <description>&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%2Femrerm9ve2q92l2kx7eu.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%2Femrerm9ve2q92l2kx7eu.png" alt=" " width="800" height="336"&gt;&lt;/a&gt;---&lt;br&gt;
title: "Multimodal Vision Models on Dirty Invoices, UI Screenshots &amp;amp; Architecture Diagrams: 45 Live Calls"&lt;br&gt;
published: true&lt;br&gt;
description: "Vision models read blurred text and handwriting surprisingly well—and then silently approve a 1,000 RMB invoice discrepancy. Here is what 45 live calls across qwen3-vl-plus, qwen3.8-max, and kimi-k3.1-pro revealed."&lt;br&gt;
tags: multimodal, vision, ocr, benchmark&lt;/p&gt;

&lt;h2&gt;
  
  
  series: Production AI Benchmarks
&lt;/h2&gt;

&lt;p&gt;Every multimodal model demo uses a crisp, flat, high-resolution invoice. Real business pipelines receive tilted smartphone photos with glare, opaque stamps covering invoice numbers, handwritten totals, and cropped edges. Worse, unlike traditional OCR that fails loudly, a vision LLM can return a &lt;strong&gt;clean, valid JSON with a hallucinated or truncated number&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We generated &lt;strong&gt;15 controlled synthetic "dirty" test images&lt;/strong&gt; (via Python PIL/matplotlib, explicitly labeled as synthetic) and ran &lt;code&gt;45&lt;/code&gt; live requests (&lt;code&gt;15&lt;/code&gt; samples × &lt;code&gt;3&lt;/code&gt; models: &lt;code&gt;qwen3-vl-plus&lt;/code&gt;, &lt;code&gt;qwen3.8-max&lt;/code&gt;, &lt;code&gt;kimi-k3.1-pro&lt;/code&gt;, total cost &lt;code&gt;¥0.5564&lt;/code&gt; on DashScope):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;8 Dirty Invoices (&lt;code&gt;inv01–inv08&lt;/code&gt;)&lt;/strong&gt;: Heavy Gaussian blur, glare washout, opaque stamp occlusion (must return &lt;code&gt;null&lt;/code&gt;), rotated handwriting, &lt;code&gt;7.5°&lt;/code&gt; tilt + shadow, &lt;strong&gt;word-vs-numeric amount mismatch (&lt;code&gt;+1000&lt;/code&gt; RMB)&lt;/strong&gt;, 6-row line items, and right-edge cropping (must return &lt;code&gt;null&lt;/code&gt;, not partial digits).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4 UI Screenshots (&lt;code&gt;ui01–ui04&lt;/code&gt;)&lt;/strong&gt;: Login form, settings toggles &amp;amp; active tab, data table, low-contrast mobile UI (&lt;code&gt;31&lt;/code&gt; total controls).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2 Architecture Diagrams (&lt;code&gt;arch01–arch02&lt;/code&gt;)&lt;/strong&gt;: &lt;code&gt;7&lt;/code&gt; nodes / &lt;code&gt;6&lt;/code&gt; edges and &lt;code&gt;8&lt;/code&gt; nodes / &lt;code&gt;9&lt;/code&gt; edges (with reverse &amp;amp; crossing edges).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1 Unlabeled Bar Chart (&lt;code&gt;chart01&lt;/code&gt;)&lt;/strong&gt;: &lt;code&gt;6&lt;/code&gt; bars, grid step &lt;code&gt;20&lt;/code&gt;, zero value labels.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Scorecard (45 Live Requests)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Invoice Fields (&lt;code&gt;56&lt;/code&gt; total)&lt;/th&gt;
&lt;th&gt;Wrong / Guessed&lt;/th&gt;
&lt;th&gt;Line Items&lt;/th&gt;
&lt;th&gt;UI Controls&lt;/th&gt;
&lt;th&gt;Arch Edges (&lt;code&gt;arch02&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Bar Chart&lt;/th&gt;
&lt;th&gt;Avg Cost / Image&lt;/th&gt;
&lt;th&gt;Avg &lt;code&gt;c_ttft&lt;/code&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;qwen3-vl-plus&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;49&lt;/code&gt; ok / &lt;code&gt;4&lt;/code&gt; &lt;code&gt;null&lt;/code&gt; / &lt;code&gt;3&lt;/code&gt; err&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;3&lt;/code&gt; (incl. &lt;code&gt;1&lt;/code&gt; partial crop)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;21/21&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;31/31&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;14/15&lt;/code&gt; (&lt;code&gt;1&lt;/code&gt; reversed)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;6/6&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;¥0.0025&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;0.676s&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;51&lt;/code&gt; ok / &lt;code&gt;3&lt;/code&gt; &lt;code&gt;null&lt;/code&gt; / &lt;code&gt;2&lt;/code&gt; err&lt;/td&gt;
&lt;td&gt;&lt;code&gt;2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;21/21&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;31/31&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;15/15&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;6/6&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;¥0.0152&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.457s&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;52&lt;/code&gt; ok / &lt;code&gt;3&lt;/code&gt; &lt;code&gt;null&lt;/code&gt; / &lt;code&gt;1&lt;/code&gt; err&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;1&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;21/21&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;31/31&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;15/15&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;6/6&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;¥0.0194&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.822s&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;(All 45 responses were pure JSON with zero Markdown fences.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4 Failure Modes That Break Financial &amp;amp; Diagram Pipelines
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;They Read Both Numbers, Yet Miss the Fraud (&lt;code&gt;inv06&lt;/code&gt;)&lt;/strong&gt;: On the invoice where written-out Chinese amount exceeded numeric total by &lt;code&gt;1,000&lt;/code&gt; RMB, &lt;strong&gt;all 3 models returned &lt;code&gt;grand_total_words_consistent: true&lt;/code&gt;&lt;/strong&gt;. Vision models transcribe well; they do &lt;strong&gt;not&lt;/strong&gt; reliably cross-audit arithmetic consistency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copying Partial Digits Instead of &lt;code&gt;null&lt;/code&gt; (&lt;code&gt;inv08&lt;/code&gt;)&lt;/strong&gt;: When the right half of the invoice number was cropped off, &lt;code&gt;qwen3.8-max&lt;/code&gt; and &lt;code&gt;kimi-k3.1-pro&lt;/code&gt; obeyed instructions and returned &lt;code&gt;null&lt;/code&gt;. &lt;code&gt;qwen3-vl-plus&lt;/code&gt; returned &lt;code&gt;"2611"&lt;/code&gt;—a partial prefix that looks valid to downstream parsers unless you enforce length/regex checks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent Edge Reversal in Architecture Diagrams (&lt;code&gt;arch02&lt;/code&gt;)&lt;/strong&gt;: &lt;code&gt;qwen3-vl-plus&lt;/code&gt; got all &lt;code&gt;8&lt;/code&gt; nodes and &lt;code&gt;9&lt;/code&gt; edge counts right, but &lt;strong&gt;flipped the direction&lt;/strong&gt; of &lt;code&gt;"Data Pipeline -&amp;gt; Feature Store"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single-Character Homophone Substitution (&lt;code&gt;inv06&lt;/code&gt;)&lt;/strong&gt;: &lt;code&gt;qwen3.8-max&lt;/code&gt; misread &lt;code&gt;"智造"&lt;/code&gt; as &lt;code&gt;"制造"&lt;/code&gt; in the buyer's company name—invisible to schema checks, fatal for vendor reconciliation.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Production Architecture Rule
&lt;/h2&gt;

&lt;p&gt;Use &lt;code&gt;qwen3-vl-plus&lt;/code&gt; (&lt;code&gt;~¥24&lt;/code&gt; per 10,000 invoices vs &lt;code&gt;¥154&lt;/code&gt; for &lt;code&gt;qwen3.8-max&lt;/code&gt; and &lt;code&gt;¥197&lt;/code&gt; for &lt;code&gt;kimi-k3.1-pro&lt;/code&gt;) for fast, cheap &lt;strong&gt;field transcription&lt;/strong&gt;, then enforce &lt;strong&gt;all&lt;/strong&gt; arithmetic reconciliation, regex ID-length checks, and cross-field validation in deterministic code—routing any mismatch or &lt;code&gt;null&lt;/code&gt; to human review.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Series: **Production AI Benchmarks&lt;/em&gt;* — Independent engineering evaluations without leaderboard hype.*&lt;/p&gt;




&lt;h3&gt;
  
  
  Reproducible Scripts &amp;amp; Sponsorship
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Benchmark Suite&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/llm-prod-bench" rel="noopener noreferrer"&gt;https://github.com/wangguode/llm-prod-bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chinese Full Report (Zhihu)&lt;/strong&gt;: &lt;a href="https://zhuanlan.zhihu.com/p/2106136384415196171" rel="noopener noreferrer"&gt;https://zhuanlan.zhihu.com/p/2106136384415196171&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Building a multimodal vision API, OCR pipeline, or Agent DevTool and want an independent production stress-test? Open a &lt;code&gt;[Benchmark Request]&lt;/code&gt; issue on GitHub or DM &lt;a href="https://x.com/sansaxypy" rel="noopener noreferrer"&gt;@sansaxypy&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>multimodal</category>
      <category>vision</category>
      <category>ocr</category>
      <category>benchmark</category>
    </item>
    <item>
      <title>Why Post-Launch SaaS Distribution Breaks: Building a 3-Wave Directory Pacer &amp; Sub-10ms Edge Attribution Engine</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:52:59 +0000</pubDate>
      <link>https://dev.to/wangguode/why-post-launch-saas-distribution-breaks-building-a-3-wave-directory-pacer-sub-10ms-edge-3od0</link>
      <guid>https://dev.to/wangguode/why-post-launch-saas-distribution-breaks-building-a-3-wave-directory-pacer-sub-10ms-edge-3od0</guid>
      <description>&lt;p&gt;Shipping the code is usually the easy 20%. The painful 80% starts the morning after launch:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Manual directory submissions eat days&lt;/strong&gt;—copy-pasting taglines, screenshots, and categories across 100+ SaaS/AI directories one tab at a time, while automated "submit to 200 sites in 5 minutes" bots risk triggering Google's link-velocity sandbox or dumping your domain on dead link farms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Community outreach walks a fine line&lt;/strong&gt;—high-intent buyers ask for recommendations daily on Reddit, Hacker News, and GitHub Issues, yet dropping raw promo links from a fresh account gets your comment shadow-removed in seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attribution breaks at checkout&lt;/strong&gt;—UTM spreadsheets tell you a directory sent 140 clicks, not whether any of those clicks turned into a verified &lt;code&gt;$39&lt;/code&gt; or &lt;code&gt;$29/mo&lt;/code&gt; payment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Over the past few weeks, I built &lt;strong&gt;LaunchPulse&lt;/strong&gt; (&lt;a href="https://pulse.statementflow.win" rel="noopener noreferrer"&gt;https://pulse.statementflow.win&lt;/a&gt;) on &lt;strong&gt;Cloudflare Workers + D1 + Next.js 16&lt;/strong&gt; to solve these three problems inside one lightweight growth console.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Anti-Sandbox 3-Wave Directory Pacing + HTTP 200 &amp;amp; &lt;code&gt;dofollow&lt;/code&gt; Verification
&lt;/h2&gt;

&lt;p&gt;Instead of blasting 100 links in an hour, LaunchPulse organizes 100+ manually cleaned SaaS, developer, and AI directories into &lt;strong&gt;3 weekly waves&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Wave 1 (Flagship Authority, DR 80+)&lt;/strong&gt;: Product Hunt, G2, SourceForge, Slashdot, DEV, Hashnode, AlternativeTo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wave 2 (Vertical SaaS &amp;amp; AI Curators)&lt;/strong&gt;: SaaSHub, BetaList, Uneed, MicroLaunch, vertical directories.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wave 3 (Long-Tail &amp;amp; Ecosystem Listings)&lt;/strong&gt;: Niche registries and regional software catalogs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;More importantly, a scheduled Cloudflare Worker (&lt;code&gt;0 13 * * *&lt;/code&gt;) probes live backlink URLs to verify &lt;strong&gt;HTTP 200 status&lt;/strong&gt; and inspect whether the anchor carries &lt;code&gt;rel="dofollow"&lt;/code&gt; vs &lt;code&gt;nofollow&lt;/code&gt;, surfacing real backlink receipts instead of "trust me, we submitted it" spreadsheets.&lt;/p&gt;

&lt;p&gt;You can browse the full cleaned list of 100+ directories for free here:&lt;br&gt;
👉 &lt;strong&gt;&lt;a href="https://pulse.statementflow.win/tools/directory-finder" rel="noopener noreferrer"&gt;100+ Curated High-DR SaaS Directory Finder&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Multi-Source Buyer Intent Radar + Zero-Link Safe Mode
&lt;/h2&gt;

&lt;p&gt;LaunchPulse scans &lt;strong&gt;Hacker News (Algolia API), Reddit, GitHub Issues, and DEV.to&lt;/strong&gt; for real-time buying and competitor-alternative threads matching your pain keywords (while filtering out job posts and noise).&lt;/p&gt;

&lt;p&gt;Inside the split-pane Buyer Inbox, the &lt;strong&gt;Reply Studio&lt;/strong&gt; defaults to &lt;strong&gt;Zero-Link Safe Mode&lt;/strong&gt;—generating peer-level engineering answers via Cloudflare Workers AI without stuffing external URLs, so founders build genuine thread karma first instead of triggering spam filters.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Sub-10ms Edge Shortlinks (&lt;code&gt;/r/&amp;lt;code&amp;gt;&lt;/code&gt;) + Verifiable Revenue Reports
&lt;/h2&gt;

&lt;p&gt;Every directory listing and community channel gets a dedicated edge shortlink (&lt;code&gt;/r/&amp;lt;code&amp;gt;&lt;/code&gt;) handled directly at Cloudflare's edge:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Geo &amp;amp; device breakdown captured with zero third-party cookie bloat&lt;/li&gt;
&lt;li&gt;A 1-line conversion pixel (&lt;code&gt;window.lpConvert('signup')&lt;/code&gt; / &lt;code&gt;window.lpConvert('purchase', 39)&lt;/code&gt;) reconciles &lt;strong&gt;Clicks → Qualified Visits → Signups → Paid USD&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Optional read-only &lt;strong&gt;Public Growth Reports&lt;/strong&gt; (&lt;code&gt;/report&lt;/code&gt;) so indie founders building in public can share verified attribution numbers&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Free Pre-Launch Tools (No Signup Required)
&lt;/h2&gt;

&lt;p&gt;While building the onboarding scanner, I also extracted two standalone read-only tools anyone can run on their domain:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://pulse.statementflow.win/tools/aeo-checker" rel="noopener noreferrer"&gt;12-Point AEO &amp;amp; AI Crawler Checker&lt;/a&gt;&lt;/strong&gt; — checks whether &lt;code&gt;GPTBot&lt;/code&gt;, &lt;code&gt;OAI-SearchBot&lt;/code&gt;, &lt;code&gt;ClaudeBot&lt;/code&gt;, and &lt;code&gt;PerplexityBot&lt;/code&gt; are allowed in &lt;code&gt;robots.txt&lt;/code&gt;, validates &lt;code&gt;/llms.txt&lt;/code&gt;, inspects &lt;code&gt;SoftwareApplication&lt;/code&gt; / &lt;code&gt;FAQPage&lt;/code&gt; JSON-LD, and audits security headers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://pulse.statementflow.win/tools/llms-txt-generator" rel="noopener noreferrer"&gt;/llms.txt Manifest Generator&lt;/a&gt;&lt;/strong&gt; — crawls your homepage metadata and generates a clean &lt;code&gt;llmstxt.org&lt;/code&gt;-compliant Markdown manifest in 10 seconds.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want to click around the full V8 Growth Console without creating an account, here is the live interactive sandbox:&lt;br&gt;
👉 &lt;strong&gt;&lt;a href="https://pulse.statementflow.win/r/pulsd-k1eczk" rel="noopener noreferrer"&gt;https://pulse.statementflow.win/dashboard?sample=1&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Source &amp;amp; architecture notes are also up on GitHub: &lt;a href="https://github.com/wangguode/launchpulse" rel="noopener noreferrer"&gt;https://github.com/wangguode/launchpulse&lt;/a&gt;. Would love feedback from fellow solo founders—especially if there are underrated niche directories we should add to Wave 2/3!&lt;/p&gt;

</description>
      <category>showdev</category>
    </item>
    <item>
      <title>Structured Output &amp; Function Calling Under Stress: 5 Production Failure Modes Across 201 Calls</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Wed, 25 Nov 2026 01:59:57 +0000</pubDate>
      <link>https://dev.to/wangguode/structured-output-function-calling-under-stress-5-production-failure-modes-across-201-calls-62e</link>
      <guid>https://dev.to/wangguode/structured-output-function-calling-under-stress-5-production-failure-modes-across-201-calls-62e</guid>
      <description>&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%2Fcqekbvp0n9vbgmky6o55.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%2Fcqekbvp0n9vbgmky6o55.png" alt=" " width="800" height="336"&gt;&lt;/a&gt;---&lt;br&gt;
title: "Structured Output &amp;amp; Function Calling Under Stress: 5 Production Failure Modes Across 201 Calls"&lt;br&gt;
published: true&lt;br&gt;
description: "100% valid JSON doesn't mean 100% accurate arithmetic, and tool_choice isn't a 100% guarantee. Here are 5 real failure modes observed across 201 live API calls."&lt;br&gt;
tags: llm, agents, json, benchmark&lt;/p&gt;

&lt;h2&gt;
  
  
  series: Production AI Benchmarks
&lt;/h2&gt;

&lt;p&gt;In a demo, getting valid JSON once feels like a solved problem. In production—at tens of thousands of Agent calls per day—a &lt;code&gt;1%&lt;/code&gt; drift rate (one extra line of prose, a miscalculated total, or a model asking the user a question instead of calling a tool) will stall your state machine at 3 AM.&lt;/p&gt;

&lt;p&gt;We ran &lt;strong&gt;201 live requests&lt;/strong&gt; (&lt;code&gt;2026-11-17&lt;/code&gt;, via DashScope, total cost &lt;code&gt;¥2.6166&lt;/code&gt;) across four models to test &lt;strong&gt;repeated consistency&lt;/strong&gt; on two tasks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;S1 / S1R&lt;/strong&gt;: Nested customer-support JSON extraction (&lt;code&gt;89900 + 3×3900 − 6000 = 95600&lt;/code&gt; integer cents), tested prompt-only (&lt;code&gt;S1&lt;/code&gt;, &lt;code&gt;n=10&lt;/code&gt;) and with &lt;code&gt;response_format: {"type": "json_object"}&lt;/code&gt; (&lt;code&gt;S1R&lt;/code&gt;, &lt;code&gt;n=10&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;S2 / S2T&lt;/strong&gt;: 6-tool routing where the prompt mandates &lt;code&gt;query_inventory&lt;/code&gt; as step 1, tested prompt-only (&lt;code&gt;S2&lt;/code&gt;, &lt;code&gt;n=20&lt;/code&gt;) and with explicit &lt;code&gt;tool_choice=query_inventory&lt;/code&gt; (&lt;code&gt;S2T&lt;/code&gt;, &lt;code&gt;n=10&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;(Note: &lt;code&gt;glm-5.3-prime&lt;/code&gt; rejected &lt;code&gt;enable_thinking=false&lt;/code&gt; on DashScope with &lt;code&gt;The value of the enable_thinking parameter is restricted to True&lt;/code&gt;, so it ran with thinking enabled while the other three ran with thinking disabled.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Results Matrix (201 Live Calls)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;S1&lt;/code&gt; (Prompt JSON)&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;S1R&lt;/code&gt; (&lt;code&gt;json_object&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;S2&lt;/code&gt; (Prompt Tool)&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;S2T&lt;/code&gt; (&lt;code&gt;tool_choice&lt;/code&gt;)&lt;/th&gt;
&lt;th&gt;Avg Cost / Call&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/strong&gt; (no-think)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;10/10&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;10/10&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;20/20&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;10/10&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;¥0.0079&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;deepseek-v4-pro&lt;/code&gt;&lt;/strong&gt; (no-think)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;2/10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;5/10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;7/20&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;9/9&lt;/code&gt; (+1 HTTP 400)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;¥0.0081&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;glm-5.3-prime&lt;/code&gt;&lt;/strong&gt; (thinking on*)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;10/10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;10/10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;19/20&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;7/10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;¥0.0268&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/strong&gt; (no-think)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;10/10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;10/10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0/20&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;10/10&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;¥0.0098&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The 5 Production Failure Modes We Actually Observed
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Perfect JSON, Wrong Arithmetic (&lt;code&gt;deepseek-v4-pro&lt;/code&gt; on &lt;code&gt;S1&lt;/code&gt;/&lt;code&gt;S1R&lt;/code&gt;)&lt;/strong&gt;: 7 of 8 &lt;code&gt;S1&lt;/code&gt; failures returned valid JSON with &lt;code&gt;"payable_cents": 95000&lt;/code&gt; instead of &lt;code&gt;95600&lt;/code&gt;. Adding &lt;code&gt;json_object&lt;/code&gt; eliminated Markdown fences (&lt;code&gt;S1R&lt;/code&gt;), but &lt;code&gt;5/10&lt;/code&gt; still failed arithmetic (&lt;code&gt;95000&lt;/code&gt;, &lt;code&gt;104600&lt;/code&gt;, &lt;code&gt;95700&lt;/code&gt;, &lt;code&gt;93000&lt;/code&gt;). &lt;strong&gt;Schema validation cannot catch business-logic math errors—always recompute totals in code.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Reasonable Detours" (&lt;code&gt;kimi-k3.1-pro&lt;/code&gt; &lt;code&gt;20/20&lt;/code&gt;, &lt;code&gt;deepseek-v4-pro&lt;/code&gt; &lt;code&gt;9/20&lt;/code&gt; on &lt;code&gt;S2&lt;/code&gt;)&lt;/strong&gt;: Instead of calling &lt;code&gt;query_inventory&lt;/code&gt; first as instructed, &lt;code&gt;kimi-k3.1-pro&lt;/code&gt; called &lt;code&gt;query_order&lt;/code&gt; every single time ("to verify the SKU first"). Reasonable logic, 100% workflow violation. Enforcing &lt;code&gt;tool_choice&lt;/code&gt; fixed &lt;code&gt;kimi-k3.1-pro&lt;/code&gt; to &lt;code&gt;10/10&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replying to the User Instead of Calling a Tool (&lt;code&gt;deepseek-v4-pro&lt;/code&gt; &lt;code&gt;4/20&lt;/code&gt;, &lt;code&gt;glm-5.3-prime&lt;/code&gt; &lt;code&gt;1/20&lt;/code&gt;)&lt;/strong&gt;: When uncertain, models fall back to conversational clarification. Your Agent state machine must explicitly handle a &lt;code&gt;no tool_calls&lt;/code&gt; branch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;tool_choice&lt;/code&gt; Is Not Always Hard-Enforced (&lt;code&gt;glm-5.3-prime&lt;/code&gt; &lt;code&gt;3/10&lt;/code&gt; on &lt;code&gt;S2T&lt;/code&gt;)&lt;/strong&gt;: Even with &lt;code&gt;tool_choice=query_inventory&lt;/code&gt; explicitly set, &lt;code&gt;glm-5.3-prime&lt;/code&gt; called &lt;code&gt;query_order&lt;/code&gt; twice and replied &lt;code&gt;"好的"&lt;/code&gt; (no tool call) once. Never treat &lt;code&gt;tool_choice&lt;/code&gt; as a 100% guarantee without code-level assertion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transient Server-Side Grammar Timeout (&lt;code&gt;deepseek-v4-pro&lt;/code&gt; &lt;code&gt;1/10&lt;/code&gt; on &lt;code&gt;S2T&lt;/code&gt;)&lt;/strong&gt;: One &lt;code&gt;tool_choice&lt;/code&gt; request returned HTTP 400: &lt;code&gt;grammar validation or compilation failed: sandbox grammar compile timed out&lt;/code&gt;. Clients must catch 4xx/5xx grammar errors and apply idempotent retry/fallback.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Bonus safety check&lt;/em&gt;: Across all &lt;code&gt;199&lt;/code&gt; successful responses, &lt;strong&gt;zero&lt;/strong&gt; models erroneously triggered destructive write tools (refund, create exchange order, send SMS).&lt;/p&gt;

&lt;h2&gt;
  
  
  Engineering Guardrails Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;☐ Treat &lt;code&gt;tool_choice&lt;/code&gt; as a hint and assert &lt;code&gt;tool_calls[0].function.name&lt;/code&gt; in code.&lt;/li&gt;
&lt;li&gt;☐ Handle &lt;code&gt;no tool_calls&lt;/code&gt; explicitly in your state machine.&lt;/li&gt;
&lt;li&gt;☐ Extract raw quantities/prices with the LLM, but compute financial totals in deterministic code.&lt;/li&gt;
&lt;li&gt;☐ Align &lt;code&gt;enable_thinking&lt;/code&gt; flags between staging evals and production—toggling it changes both latency and accuracy.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Next in **Production AI Benchmarks&lt;/em&gt;&lt;em&gt;: Multimodal Vision Models on Dirty Invoices, UI Restoration, and Architecture Diagrams.&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Reproducible Scripts &amp;amp; Sponsorship
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Benchmark Suite&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/llm-prod-bench" rel="noopener noreferrer"&gt;https://github.com/wangguode/llm-prod-bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chinese Full Report (Zhihu)&lt;/strong&gt;: &lt;a href="https://zhuanlan.zhihu.com/p/2106135589607170990" rel="noopener noreferrer"&gt;https://zhuanlan.zhihu.com/p/2106135589607170990&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Building an LLM gateway, inference platform, or Agent DevTool and want an independent production stress-test? Open a &lt;code&gt;[Benchmark Request]&lt;/code&gt; issue on GitHub or DM &lt;a href="https://x.com/sansaxypy" rel="noopener noreferrer"&gt;@sansaxypy&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>llm</category>
      <category>agents</category>
      <category>json</category>
      <category>benchmark</category>
    </item>
    <item>
      <title>Why QuickBooks &amp; Xero Reject Bank CSVs — and How We Built a 100% Browser-Local Fixer &amp; OFX/QBO Parser</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Tue, 24 Nov 2026 01:16:55 +0000</pubDate>
      <link>https://dev.to/wangguode/why-quickbooks-xero-reject-bank-csvs-and-how-we-built-a-100-browser-local-fixer-ofxqbo-3m4a</link>
      <guid>https://dev.to/wangguode/why-quickbooks-xero-reject-bank-csvs-and-how-we-built-a-100-browser-local-fixer-ofxqbo-3m4a</guid>
      <description>&lt;p&gt;Every month-end close, bookkeepers and founders run into the same frustrating bank-import errors when uploading raw bank CSVs or Web Connect (.qbo / .qfx / .ofx) files into QuickBooks Online or Xero:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Invalid Date / Swapped Month &amp;amp; Day&lt;/strong&gt;: US QuickBooks expects &lt;code&gt;MM/DD/YYYY&lt;/code&gt;, while UK/AU/NZ Xero expects &lt;code&gt;DD/MM/YYYY&lt;/code&gt;. Mixing formats silently scrambles ledger dates or rejects the entire batch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split Debit / Credit Columns &amp;amp; Inverted Credit Card Signs&lt;/strong&gt;: Many banks export separate &lt;code&gt;Debit&lt;/code&gt; and &lt;code&gt;Credit&lt;/code&gt; columns, or list credit card charges as positive numbers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Currency Symbols, Accounting Parentheses &amp;amp; European Decimals&lt;/strong&gt;: Values like &lt;code&gt;($1,240.50)&lt;/code&gt;, &lt;code&gt;€1.234,56&lt;/code&gt;, or leading-dot &lt;code&gt;.50&lt;/code&gt; frequently break accounting importers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiline Descriptions &amp;amp; Illegal Symbols&lt;/strong&gt;: Wrapped PDF-to-CSV descriptions create phantom rows, while symbols like &lt;code&gt;#&lt;/code&gt;, &lt;code&gt;*&lt;/code&gt;, or &lt;code&gt;|&lt;/code&gt; trigger QuickBooks syntax errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Broken Web Connect (.qbo / .ofx) Files (Error -16802)&lt;/strong&gt;: Opening a &lt;code&gt;.qbo&lt;/code&gt; SGML file in Excel and saving it corrupts its tags—making QuickBooks reject it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Why We Built 100% Client-Side, Zero-Upload Tools
&lt;/h3&gt;

&lt;p&gt;Accountants cannot upload unredacted client bank statements to random cloud converters. So we built two completely free, browser-local TypeScript engines that run 100% inside your tab (zero server file uploads, no signup):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://statementflow.win/tools/quickbooks-csv-fixer" rel="noopener noreferrer"&gt;Free QuickBooks &amp;amp; Xero CSV Import Fixer&lt;/a&gt;&lt;/strong&gt;: Auto-detects delimiters (&lt;code&gt;,&lt;/code&gt;, &lt;code&gt;;&lt;/code&gt;, &lt;code&gt;TAB&lt;/code&gt;), skips top bank summary banners, normalizes dates, merges split Debit/Credit columns, removes exact duplicate transactions, flips credit card signs, and exports native QuickBooks 3-column or Xero 5-column CSV (&lt;code&gt;*Date, *Amount, Payee, Description, Reference&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://statementflow.win/tools/ofx-qbo-to-csv" rel="noopener noreferrer"&gt;Free OFX / QFX / QBO to CSV Converter&lt;/a&gt;&lt;/strong&gt;: Parses both OFX 1.x (SGML without closing tags) and OFX 2.x (XML) locally, extracts &lt;code&gt;&amp;lt;LEDGERBAL&amp;gt;&lt;/code&gt; metadata and &lt;code&gt;&amp;lt;STMTTRN&amp;gt;&lt;/code&gt; rows, and exports clean CSVs for QuickBooks, Xero, or Excel.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Handling Historical PDF Bank Statements (&amp;gt;90 Days Old)
&lt;/h3&gt;

&lt;p&gt;When banks refuse to provide CSVs older than 90 days and only give multi-page PDFs or scanned statements, we combined client-side &lt;code&gt;pdfjs-dist&lt;/code&gt; extraction with deterministic integer-cent double-entry verification (&lt;code&gt;Opening + Credits - Debits === Ending&lt;/code&gt; to &lt;code&gt;$0.00&lt;/code&gt;) and zero-warning native OOXML &lt;code&gt;.xlsx&lt;/code&gt; export in &lt;strong&gt;&lt;a href="https://statementflow.win" rel="noopener noreferrer"&gt;StatementFlow AI&lt;/a&gt;&lt;/strong&gt; (open-source on &lt;a href="https://github.com/wangguode/statementflow-ai" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Engineering Lessons
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Never trust an LLM to do ledger arithmetic&lt;/strong&gt;: Use AI strictly for semantic row extraction and run integer-cent TypeScript state machines for balance checks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sanitize CSV/Excel formula injection&lt;/strong&gt;: Always prefix cell strings starting with &lt;code&gt;=&lt;/code&gt;, &lt;code&gt;+&lt;/code&gt;, &lt;code&gt;-&lt;/code&gt;, or &lt;code&gt;@&lt;/code&gt; before export.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deduplicate on &lt;code&gt;date|amount|description|ref&lt;/code&gt;&lt;/strong&gt;: Prevents accidental double-entry imports when merging overlapping bank exports.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try both free browser-local utilities anytime and let us know if you hit an edge-case bank format!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>software</category>
      <category>softwaredevelopment</category>
      <category>tools</category>
    </item>
    <item>
      <title>128K Long-Context Needle-in-a-Haystack: Multi-Hop Contract Audits &amp; Context Caching Economics</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Mon, 23 Nov 2026 01:18:31 +0000</pubDate>
      <link>https://dev.to/wangguode/128k-long-context-needle-in-a-haystack-multi-hop-contract-audits-context-caching-economics-23hd</link>
      <guid>https://dev.to/wangguode/128k-long-context-needle-in-a-haystack-multi-hop-contract-audits-context-caching-economics-23hd</guid>
      <description>&lt;p&gt;200K and 1M context windows are standard marketing claims now, often pitched as a drop-in replacement for RAG. Yet anyone who has built contract or financial audit pipelines knows that &lt;em&gt;accepting&lt;/em&gt; 128K tokens is very different from &lt;em&gt;catching&lt;/em&gt; an unmarked amendment buried at clause 1,749 and combining it with a fee table on page 1.&lt;/p&gt;

&lt;p&gt;In this benchmark (&lt;code&gt;2026-11-17&lt;/code&gt;, 18 requests via DashScope with &lt;code&gt;enable_thinking=false&lt;/code&gt;), we generated a deterministic &lt;code&gt;219,938&lt;/code&gt;-character synthetic outsourcing contract (fixed seed &lt;code&gt;20261117&lt;/code&gt;) and planted two unmarked needles side by side at &lt;code&gt;10%&lt;/code&gt;, &lt;code&gt;50%&lt;/code&gt;, and &lt;code&gt;90%&lt;/code&gt; depth:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ADV (Adversarial Unmarked Needle)&lt;/strong&gt;: A conversational clause stating liquidated damages are reduced from &lt;code&gt;500,000&lt;/code&gt; to &lt;code&gt;376,000&lt;/code&gt; RMB with late fees waived.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HOP (Multi-Hop Calculation)&lt;/strong&gt;: States that the training fee in Clause 2 is waived—forcing the model to retrieve &lt;code&gt;1,286,000&lt;/code&gt; and &lt;code&gt;48,500&lt;/code&gt; from the top of the contract to compute &lt;code&gt;1,237,500&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Results: 18/18 Passed, Zero Lost-in-the-Middle on Clean Synthetic Text
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Tier / Depth&lt;/th&gt;
&lt;th&gt;Actual Input Tokens&lt;/th&gt;
&lt;th&gt;Cached Tokens&lt;/th&gt;
&lt;th&gt;ADV &lt;code&gt;c_ttft&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;HOP &lt;code&gt;c_ttft&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;Result (ADV / HOP)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;32K&lt;/code&gt; / &lt;code&gt;50%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;32,363&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;0&lt;/code&gt; / HOP &lt;code&gt;31,744&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;2.53s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.51s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;128K&lt;/code&gt; / &lt;code&gt;10%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127,313&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;12,288&lt;/code&gt; / HOP &lt;code&gt;126,976&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;5.25s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.55s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;128K&lt;/code&gt; / &lt;code&gt;50%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127,313&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;15,360&lt;/code&gt; / HOP &lt;code&gt;126,976&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;4.81s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.83s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;128K&lt;/code&gt; / &lt;code&gt;90%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127,313&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;62,464&lt;/code&gt; / HOP &lt;code&gt;126,976&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;4.94s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.67s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;32K&lt;/code&gt; / &lt;code&gt;50%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;29,050&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;28,672&lt;/code&gt; / HOP &lt;code&gt;28,672&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;3.63s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;3.68s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;128K&lt;/code&gt; / &lt;code&gt;10%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;114,125&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;11,264&lt;/code&gt; / HOP &lt;code&gt;113,664&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;9.08s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;3.75s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;128K&lt;/code&gt; / &lt;code&gt;50%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;114,125&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;14,336&lt;/code&gt; / HOP &lt;code&gt;113,664&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;11.26s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;4.14s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;128K&lt;/code&gt; / &lt;code&gt;90%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;114,125&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;113,664&lt;/code&gt; / HOP &lt;code&gt;113,664&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;7.15s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;3.09s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-flash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;128K&lt;/code&gt; / &lt;code&gt;50%&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;127,326&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ADV &lt;code&gt;0&lt;/code&gt; / HOP &lt;code&gt;127,232&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;6.64s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1.47s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ / ✅&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  3 Practical Engineering Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cold 128K Latency Is 2–3x Slower&lt;/strong&gt;: Cold &lt;code&gt;128K&lt;/code&gt; &lt;code&gt;c_ttft&lt;/code&gt; hit &lt;code&gt;4.8–5.2s&lt;/code&gt; (&lt;code&gt;qwen3.8-max&lt;/code&gt;), &lt;code&gt;9.1–11.3s&lt;/code&gt; (&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;), and &lt;code&gt;6.6s&lt;/code&gt; (&lt;code&gt;qwen3.8-flash&lt;/code&gt;). For interactive UX, cold 128K feels noticeably sluggish.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context Caching Changes the Unit Economics&lt;/strong&gt;: When the document sits as a static prefix and the second question (&lt;code&gt;HOP&lt;/code&gt;) hits cache, &lt;code&gt;qwen3.8-max&lt;/code&gt; per-query cost dropped from &lt;code&gt;~¥1.40&lt;/code&gt; to &lt;code&gt;~¥0.20&lt;/code&gt; (&lt;code&gt;~85%&lt;/code&gt; per-hit savings), and &lt;code&gt;c_ttft&lt;/code&gt; fell to &lt;code&gt;1.5–1.8s&lt;/code&gt;. Total run cost across 18 requests was &lt;code&gt;¥8.301&lt;/code&gt; vs &lt;code&gt;~¥19.87&lt;/code&gt; uncached.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10% Tokenizer Difference on Identical Text&lt;/strong&gt;: The exact same &lt;code&gt;219,938&lt;/code&gt;-character contract tokenized to &lt;code&gt;127,313&lt;/code&gt; tokens on Qwen vs &lt;code&gt;114,125&lt;/code&gt; on Kimi—a 10% gap that directly affects cross-model cost comparisons.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Scope &amp;amp; When to Stick with RAG
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Scope&lt;/strong&gt;: Clean synthetic text, 1 sample per cell, no distractor clauses from third-party entities, and no PDF layout/OCR noise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decision rule&lt;/strong&gt;: Use &lt;strong&gt;Long Context + Prefix Caching&lt;/strong&gt; for low-frequency deep reads of single contracts (always require verbatim clause citations verified by code). Use &lt;strong&gt;Hybrid RAG + Rerank&lt;/strong&gt; for high-frequency QA across hundreds of documents.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Next in **Production AI Benchmarks&lt;/em&gt;&lt;em&gt;: Structured Output (&lt;code&gt;json_object&lt;/code&gt;) &amp;amp; Function Calling Stability Across 201 Live Requests.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Reproducible scripts &amp;amp; Benchmark Requests&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/llm-prod-bench" rel="noopener noreferrer"&gt;github.com/wangguode/llm-prod-bench&lt;/a&gt; — Chinese version published on &lt;a href="https://zhuanlan.zhihu.com/p/2106132039657317156" rel="noopener noreferrer"&gt;Zhihu&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>llm</category>
      <category>rag</category>
      <category>longcontext</category>
      <category>benchmark</category>
    </item>
    <item>
      <title>Zero-Upload Bank Statement Parsing: Why We Moved PDF Extraction 100% Client-Side</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Sat, 21 Nov 2026 03:03:48 +0000</pubDate>
      <link>https://dev.to/wangguode/zero-upload-bank-statement-parsing-why-we-moved-pdf-extraction-100-client-side-1lhp</link>
      <guid>https://dev.to/wangguode/zero-upload-bank-statement-parsing-why-we-moved-pdf-extraction-100-client-side-1lhp</guid>
      <description>&lt;p&gt;The #1 objection we heard from bookkeepers and fractional CFOs when testing AI bank-statement converters wasn't accuracyâ€”it was &lt;strong&gt;data governance&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"I cannot upload my client's 12-month Chase or Mercury PDF statements to a random startup's backend server."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Even if you promise not to store uploaded files, compliance-conscious finance teams rightly refuse to send raw financial PDFs over the wire unless there is a strict enterprise DPA.&lt;/p&gt;

&lt;p&gt;So in &lt;strong&gt;&lt;a href="https://github.com/wangguode/statementflow-ai" rel="noopener noreferrer"&gt;StatementFlow AI&lt;/a&gt;&lt;/strong&gt; (live at &lt;strong&gt;&lt;a href="https://statementflow.win" rel="noopener noreferrer"&gt;statementflow.win&lt;/a&gt;&lt;/strong&gt;), we moved multi-page PDF parsing &lt;strong&gt;100% client-side in the browser&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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fssmsaw4s5ntlvwpq43f4.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%2Fssmsaw4s5ntlvwpq43f4.png" alt="StatementFlow AI Deterministic Architecture" width="799" height="439"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How Client-Side Coordinate Reconstruction Works
&lt;/h2&gt;

&lt;p&gt;Most naive browser PDF parsers fail on bank statements because PDF streams don't store "table rows"â€”they store positioned text fragments (&lt;code&gt;x&lt;/code&gt;, &lt;code&gt;y&lt;/code&gt;, &lt;code&gt;str&lt;/code&gt;). If you just concatenate &lt;code&gt;str&lt;/code&gt; tokens, dates, descriptions, and dollar amounts drift out of alignment.&lt;/p&gt;

&lt;p&gt;Inside &lt;code&gt;src/lib/client-pdf.ts&lt;/code&gt;, we use &lt;code&gt;pdfjs-dist&lt;/code&gt; with a local Web Worker (&lt;code&gt;/pdf.worker.min.mjs&lt;/code&gt;) to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Extract every text item's &lt;code&gt;(x, y)&lt;/code&gt; PDF transform coordinates per page.&lt;/li&gt;
&lt;li&gt;Group items into logical table lines using a &lt;code&gt;Â±3pt&lt;/code&gt; Y-coordinate tolerance, then sort strictly left-to-right by &lt;code&gt;x&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Feed the reconstructed rows into our zero-key heuristic parser and deterministic &lt;code&gt;Decimal(opening + sum == closing)&lt;/code&gt; balance gateâ€”&lt;strong&gt;without a single byte of the client's PDF leaving their laptop&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try It With Your Own Statement
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Zero-Upload Studio&lt;/strong&gt;: &lt;a href="https://statementflow.win" rel="noopener noreferrer"&gt;https://statementflow.win&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;30+ Bank &amp;amp; Accounting Presets&lt;/strong&gt;: Chase, Mercury, Wise, Payoneer, Airwallex, QuickBooks CSV, Xero CSV&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source Repo&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/statementflow-ai" rel="noopener noreferrer"&gt;https://github.com/wangguode/statementflow-ai&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>fintech</category>
      <category>privacy</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Production MaaS Gateway Benchmark: Streaming TTFT, 100-Way Burst Concurrency &amp; Token Billing Quirks</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Sat, 21 Nov 2026 03:01:51 +0000</pubDate>
      <link>https://dev.to/wangguode/production-maas-gateway-benchmark-streaming-ttft-100-way-burst-concurrency-token-billing-quirks-1cm1</link>
      <guid>https://dev.to/wangguode/production-maas-gateway-benchmark-streaming-ttft-100-way-burst-concurrency-token-billing-quirks-1cm1</guid>
      <description>&lt;p&gt;In week one of production deployment, systems rarely fail because a model isn't smart enough. They fail because of an unhandled HTTP 429, a streaming response that drops the final &lt;code&gt;usage&lt;/code&gt; frame, or a monthly bill that doesn't match local token estimates.&lt;/p&gt;

&lt;p&gt;In this benchmark (&lt;code&gt;2026-11-17&lt;/code&gt;, 240 direct requests against &lt;code&gt;dashscope.aliyuncs.com/compatible-mode/v1&lt;/code&gt; with &lt;code&gt;enable_thinking=false&lt;/code&gt; and zero SDK wrappers), we put the &lt;strong&gt;cloud inference gateway layer&lt;/strong&gt; under a microscope.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary Scorecard (DashScope, 240 Requests)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Measured Result&lt;/th&gt;
&lt;th&gt;Sample &amp;amp; Scope&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Streaming &lt;code&gt;c_ttft&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;qwen3.8-max&lt;/code&gt;: P50 &lt;code&gt;0.585s&lt;/code&gt; / P95 &lt;code&gt;0.857s&lt;/code&gt;; &lt;code&gt;qwen3.8-flash&lt;/code&gt;: P50 &lt;code&gt;0.521s&lt;/code&gt; / P95 &lt;code&gt;0.762s&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;20 sequential requests/model, &lt;code&gt;max_tokens=64&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total Request Latency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;qwen3.8-max&lt;/code&gt;: P50 &lt;code&gt;1.349s&lt;/code&gt; / P95 &lt;code&gt;1.794s&lt;/code&gt;; &lt;code&gt;qwen3.8-flash&lt;/code&gt;: P50 &lt;code&gt;1.155s&lt;/code&gt; / P95 &lt;code&gt;1.599s&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Same as above&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Streaming &lt;code&gt;usage&lt;/code&gt; Frame&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;40/40&lt;/code&gt; returned complete &lt;code&gt;usage&lt;/code&gt; in the final chunk with &lt;code&gt;stream_options.include_usage&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;20 streams/model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;tools&lt;/code&gt; Protocol&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;5/5&lt;/code&gt; per model returned standard &lt;code&gt;tool_calls&lt;/code&gt; (&lt;code&gt;query_order&lt;/code&gt;, &lt;code&gt;ORD-77&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Non-streaming&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;json_object&lt;/code&gt; Mode&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;5/5&lt;/code&gt; per model returned valid &lt;code&gt;json.loads()&lt;/code&gt; output (&lt;code&gt;amount_cents=19950&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Non-streaming&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;10 -&amp;gt; 100-Way Burst&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;180/180&lt;/code&gt; HTTP 200 on &lt;code&gt;qwen3.8-flash&lt;/code&gt; (&lt;code&gt;0&lt;/code&gt; HTTP 429s)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;max_tokens=16&lt;/code&gt;, stopped at 100-way burst&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Rate-Limit Headers&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Only &lt;code&gt;x-request-id&lt;/code&gt; and &lt;code&gt;x-dashscope-timeout&lt;/code&gt; present; no &lt;code&gt;x-ratelimit-*&lt;/code&gt; or &lt;code&gt;Retry-After&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Observed on HTTP 200 responses&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  3 Production Findings You Won't See on Pricing Pages
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Identical Prompts Bill Different &lt;code&gt;prompt_tokens&lt;/code&gt; Across Models
&lt;/h3&gt;

&lt;p&gt;Across all 40 sequential &lt;code&gt;T1&lt;/code&gt; requests with the exact same prompt:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;qwen3.8-max&lt;/code&gt; billed &lt;strong&gt;&lt;code&gt;22–23&lt;/code&gt; &lt;code&gt;prompt_tokens&lt;/code&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;qwen3.8-flash&lt;/code&gt; billed &lt;strong&gt;&lt;code&gt;35–36&lt;/code&gt; &lt;code&gt;prompt_tokens&lt;/code&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Never estimate costs using a local tokenizer or a single model's token count. Always compute spend from each endpoint's returned &lt;code&gt;usage&lt;/code&gt; object.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. 100-Way Burst Passed—Which Means You Must Build Your Own Circuit Breaker
&lt;/h3&gt;

&lt;p&gt;Stepping concurrency from &lt;code&gt;10 -&amp;gt; 20 -&amp;gt; 50 -&amp;gt; 100&lt;/code&gt; concurrent short requests yielded &lt;code&gt;180/180&lt;/code&gt; HTTP 200s (100-way wall time: &lt;code&gt;2.200s&lt;/code&gt;, &lt;code&gt;c_ttft&lt;/code&gt; P50 &lt;code&gt;0.565s&lt;/code&gt; / P95 &lt;code&gt;1.005s&lt;/code&gt;, max &lt;code&gt;2.187s&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Because &lt;strong&gt;no &lt;code&gt;x-ratelimit-*&lt;/code&gt; headers&lt;/strong&gt; are returned on 200s and default burst headroom is high, a runaway Agent loop will burn through your budget long before hitting a platform 429. Per-key rate limits and hard daily spend caps must live in your own gateway.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Batch Channels Cut Offline Compute Bills by 50%
&lt;/h3&gt;

&lt;p&gt;On DashScope's published pricing, &lt;code&gt;qwen3.8-max&lt;/code&gt; Batch File inference is priced at half of real-time (&lt;code&gt;6 / 18&lt;/code&gt; RMB per 1M input/output tokens vs &lt;code&gt;12 / 36&lt;/code&gt; real-time; context-cached input drops to &lt;code&gt;1.5&lt;/code&gt;). Routing overnight summarization and ETL jobs through real-time endpoints doubles your bill unnecessarily.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pre-Launch Gateway Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;☐ Isolate every service with a dedicated sub-account API key and hard daily budget cap.&lt;/li&gt;
&lt;li&gt;☐ Log and bill strictly from the API's returned &lt;code&gt;usage&lt;/code&gt; payload.&lt;/li&gt;
&lt;li&gt;☐ Enforce client-side circuit breakers and exponential backoff with jitter.&lt;/li&gt;
&lt;li&gt;☐ Route non-interactive batch workloads to Batch / low-priority endpoints.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Next in **Production AI Benchmarks&lt;/em&gt;&lt;em&gt;: Testing 128K Long-Context "Needle in a Haystack" &amp;amp; Multi-Hop Contract Audits.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproducible Code &amp;amp; Benchmarking Collaborations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source Benchmark Suite (&lt;code&gt;p02_gateway&lt;/code&gt;)&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/llm-prod-bench" rel="noopener noreferrer"&gt;github.com/wangguode/llm-prod-bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Independent Evaluations &amp;amp; DevRel Inquiries&lt;/strong&gt;: Open to reproducible production benchmarks for LLMs, inference gateways, and Agent infra. Reach out via &lt;a href="https://github.com/wangguode" rel="noopener noreferrer"&gt;GitHub (@wangguode)&lt;/a&gt; or &lt;a href="https://x.com/sansaxypy" rel="noopener noreferrer"&gt;X (@sansaxypy)&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>api</category>
      <category>cloud</category>
      <category>infrastructure</category>
      <category>performance</category>
    </item>
    <item>
      <title>Why Turn-Based Voice AI Feels Broken: Building a 52ms Barge-In Loop (HardCall)</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Fri, 20 Nov 2026 01:23:11 +0000</pubDate>
      <link>https://dev.to/wangguode/why-turn-based-voice-ai-feels-broken-building-a-52ms-barge-in-loop-hardcall-9pc</link>
      <guid>https://dev.to/wangguode/why-turn-based-voice-ai-feels-broken-building-a-52ms-barge-in-loop-hardcall-9pc</guid>
      <description>&lt;p&gt;Most "voice AI" demos feel unnatural for one simple reason: they are still turn-based walkie-talkies under the hood.&lt;/p&gt;

&lt;p&gt;When a user interrupts the AI mid-sentence, a typical wrapper waits for endpointing (300ms+), waits for STT finalization (200ms+), and then cancels the server-side TTS stream while WebSocket frames are still draining. The result is &lt;strong&gt;650ms–900ms of awkward cross-talk&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;While building &lt;strong&gt;&lt;a href="https://github.com/wangguode/hardcall" rel="noopener noreferrer"&gt;HardCall&lt;/a&gt;&lt;/strong&gt; — an open-source full-duplex AI voice interview &amp;amp; high-stakes drill simulator live at &lt;strong&gt;&lt;a href="https://hardcall.statementflow.win" rel="noopener noreferrer"&gt;hardcall.statementflow.win&lt;/a&gt;&lt;/strong&gt; — we replaced turn-based waiting with a &lt;strong&gt;52ms dual-loop barge-in architecture&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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ofoltwos1dh2gm88coc.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%2F0ofoltwos1dh2gm88coc.png" alt="HardCall 52ms Dual-Loop Barge-In Architecture" width="799" height="439"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Never Wait for STT End-of-Turn
&lt;/h2&gt;

&lt;p&gt;If you wait for a transcript before cutting audio, you have already lost the human conversation feel. Humans notice interruption lag above ~200ms.&lt;/p&gt;

&lt;p&gt;HardCall splits interruption into two asynchronous loops:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;50ms Audio Fast-Loop (Deterministic)&lt;/strong&gt;: Local Silero VAD detects speech onset (~18ms) and immediately invokes  to flush the outbound audio ring buffer in &lt;strong&gt;0.16ms&lt;/strong&gt;. Zero server round-trip required to stop talking.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;200ms Semantic Slow-Loop (Intent Gate)&lt;/strong&gt;: While audio is already silent, a lightweight intent gate checks whether the user's utterance is a real rebuttal ("Wait—our p99 dropped 42%...") or meaningless backchannel/noise ("uh-huh", cough).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  2. Why Dual-Loop Beats Raw Energy Thresholds
&lt;/h2&gt;

&lt;p&gt;Pure energy VAD cuts out on keyboard clicks or throat clearing. Pure LLM turn-detection feels sluggish.&lt;/p&gt;

&lt;p&gt;By combining:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Instant local buffer flush&lt;/strong&gt; on speech onset&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State reset&lt;/strong&gt; to drop stale TTS frames&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast semantic classification&lt;/strong&gt; to either pivot the rebuttal prompt (&amp;lt;200ms) or smoothly resume&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;you get crisp &lt;strong&gt;52.16ms&lt;/strong&gt; perceived barge-in without false-positive interruptions derailing the session.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Try It Live or Inspect the Source
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Full-Duplex Simulator&lt;/strong&gt;: &lt;a href="https://hardcall.statementflow.win" rel="noopener noreferrer"&gt;https://hardcall.statementflow.win&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source Repo (macOS + Web)&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/hardcall" rel="noopener noreferrer"&gt;https://github.com/wangguode/hardcall&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are building real-time voice agents over WebRTC or raw 8kHz RTP, I'd love to hear how you handle outbound buffer flushing and false-trigger recovery!&lt;/p&gt;

</description>
      <category>voiceai</category>
      <category>opensource</category>
      <category>ai</category>
      <category>realtime</category>
    </item>
    <item>
      <title>Benchmarking 4 Chinese Flagship LLMs Under Real Agent Load (16 Deterministic Production Tests)</title>
      <dc:creator>王果ai</dc:creator>
      <pubDate>Thu, 19 Nov 2026 09:39:14 +0000</pubDate>
      <link>https://dev.to/wangguode/benchmarking-4-chinese-flagship-llms-under-real-agent-load-16-deterministic-production-tests-32eh</link>
      <guid>https://dev.to/wangguode/benchmarking-4-chinese-flagship-llms-under-real-agent-load-16-deterministic-production-tests-32eh</guid>
      <description>&lt;p&gt;Every week, another model claims #1 on public leaderboards. Yet the moment you wire these models into a production Agent loop—facing dirty ERP logs, concurrency race conditions, multi-turn tool error recovery, 60s API gateway timeouts, and runaway &lt;code&gt;reasoning_tokens&lt;/code&gt; bills—public benchmarks stop being predictive.&lt;/p&gt;

&lt;p&gt;To measure what actually breaks in production, I built &lt;strong&gt;Suite v2&lt;/strong&gt;: 16 deterministic engineering tests across 6 dimensions, executed directly against Alibaba Cloud DashScope's OpenAI-compatible endpoint (&lt;code&gt;dashscope.aliyuncs.com/compatible-mode/v1&lt;/code&gt;) with zero proxy wrappers or client caching (test date: &lt;code&gt;2026-11-16&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Methodology: 4 Engineering Rules
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Direct, unwrapped Python probes&lt;/strong&gt;: Pure standard-library HTTP calls so SDK quirks cannot hide gateway behavior.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split TTFT (&lt;code&gt;r_ttft&lt;/code&gt; vs &lt;code&gt;c_ttft&lt;/code&gt;)&lt;/strong&gt;: For reasoning models, we separate &lt;em&gt;reasoning&lt;/em&gt; first-token latency from &lt;em&gt;content&lt;/em&gt; first-token latency (&lt;code&gt;c_ttft&lt;/code&gt;). Downstream JSON parsers only start working at &lt;code&gt;c_ttft&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;100% deterministic assertions&lt;/strong&gt;: All 15 functional tasks use code assertions (&lt;code&gt;json.loads()&lt;/code&gt;, integer-cent checks, AST/keyword checks, &lt;code&gt;tool_calls&lt;/code&gt; protocol verification)—zero LLM-as-a-judge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;6 Test Dimensions&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A (Structured Extraction, &lt;code&gt;A1–A3&lt;/code&gt;)&lt;/strong&gt;: Dirty ERP financial logs, nested SKU discount math, and raw Nginx/Java 502 stack traces (strict JSON, zero Markdown fences).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;B (Production Code Audit, &lt;code&gt;B1–B4&lt;/code&gt;)&lt;/strong&gt;: TOCTOU race conditions + idempotency (&lt;code&gt;B1&lt;/code&gt;), SQL N+1 &amp;amp; cursor pagination (&lt;code&gt;B2&lt;/code&gt;), &lt;code&gt;asyncio&lt;/code&gt; blocking + reentrant deadlock (&lt;code&gt;B3&lt;/code&gt;), SQLi + SSRF (&lt;code&gt;B4&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;C (Agent Tool Calling, &lt;code&gt;C1–C4&lt;/code&gt;)&lt;/strong&gt;: Unauthorized write interception (&lt;code&gt;C1&lt;/code&gt;), first-hop dependency routing (&lt;code&gt;C2&lt;/code&gt;), 2-turn error recovery to backup tool (&lt;code&gt;C3&lt;/code&gt;), strict integer-cent argument construction (&lt;code&gt;C4&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;D (16K Long-Context Noise, &lt;code&gt;D1–D2&lt;/code&gt;)&lt;/strong&gt;: Mid-document contract amendment conflict (&lt;code&gt;D1&lt;/code&gt;) and distributed timeout bottleneck (&lt;code&gt;D2&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;E (Anti-Hallucination &amp;amp; Negative Constraints, &lt;code&gt;E1–E2&lt;/code&gt;)&lt;/strong&gt;: Refusing a fabricated closed-source function (&lt;code&gt;E1&lt;/code&gt;) and strict line/word/zero-English constraints (&lt;code&gt;E2&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;F (5-Way Burst Concurrency)&lt;/strong&gt;: Wall-clock throughput and SDK parameter compatibility.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Overall Scorecard
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;deepseek-v4-pro&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;glm-5.3-prime&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Script Auto-Pass Rate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;14/15&lt;/code&gt; (&lt;code&gt;93.3%&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;14/15&lt;/code&gt; (&lt;code&gt;93.3%&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;14/15&lt;/code&gt; (&lt;code&gt;93.3%&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;13/15&lt;/code&gt; (&lt;code&gt;86.7%&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Human-Audited Pass Rate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;14/15&lt;/code&gt; (&lt;code&gt;C4&lt;/code&gt; missed call)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;15/15&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;15/15&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;15/15&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total Latency (15 Tasks)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;1,184.0s&lt;/code&gt; (&lt;strong&gt;19.7 min&lt;/strong&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;309.9s&lt;/code&gt; (5.1 min)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;226.1s&lt;/code&gt; (3.7 min)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;824.7s&lt;/code&gt; (13.7 min)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total Tokens Consumed&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;69,144&lt;/code&gt; (highest)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;29,809&lt;/code&gt; (lowest)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;52,931&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;49,203&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;5-Way Burst Wall Time&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;3.891s&lt;/code&gt;&lt;/strong&gt; (&lt;code&gt;5/5&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;19.519s&lt;/code&gt; (&lt;code&gt;5/5&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;4.909s&lt;/code&gt; (&lt;code&gt;5/5&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;11.225s&lt;/code&gt; (&lt;code&gt;5/5&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Key takeaway&lt;/strong&gt;: On &lt;em&gt;correctness&lt;/em&gt;, all four models cluster between 93% and 100%. What separates them in production is a &lt;strong&gt;5.2x latency gap&lt;/strong&gt;, a &lt;strong&gt;2.3x token cost gap&lt;/strong&gt;, and silent tool-calling failures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deep Dive: Where Production Systems Actually Break
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The 572-Second Gateway Timeout Bomb (Dimension B)
&lt;/h3&gt;

&lt;p&gt;Most enterprise API gateways (Nginx, AWS ALB, Kong) enforce a &lt;code&gt;60s–90s&lt;/code&gt; &lt;code&gt;proxy_read_timeout&lt;/code&gt;. On heavy code audits (&lt;code&gt;B1–B4&lt;/code&gt;), reasoning chains blew past that limit:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Audit Task&lt;/th&gt;
&lt;th&gt;&lt;code&gt;glm-5.3-prime&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;deepseek-v4-pro&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;B1_toctou_idempotency&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;62.853s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;64.218s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;159.170s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;&lt;code&gt;572.793s&lt;/code&gt;&lt;/strong&gt; (&lt;strong&gt;9.5 min&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;B2_sql_n_plus_one&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;47.968s&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;65.595s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;164.431s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;175.706s&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;B3_async_deadlock&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;42.482s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;37.120s&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;74.381s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;109.418s&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;B4_security_sqli_ssrf&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;33.995s&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;67.063s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;298.862s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;228.445s&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dimension B Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;187.3s&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;234.0s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;696.8s&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;1,086.4s&lt;/code&gt; (18.1 min)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you wire &lt;code&gt;qwen3.8-max&lt;/code&gt; or &lt;code&gt;kimi-k3.1-pro&lt;/code&gt; synchronously behind a GitHub/GitLab Code Review webhook, the connection will time out before the model finishes thinking. Meanwhile, &lt;code&gt;deepseek-v4-pro&lt;/code&gt; solved all four audits in &lt;code&gt;29,809&lt;/code&gt; total tokens across all 15 tasks—less than half of &lt;code&gt;qwen3.8-max&lt;/code&gt; (&lt;code&gt;69,144&lt;/code&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Silent Tool-Call Drops &amp;amp; Error Recovery (Dimension C)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Unauthorized Write Trap (&lt;code&gt;C1&lt;/code&gt;)&lt;/strong&gt;: All 4 models respected the read-only boundary (&lt;code&gt;2.098s&lt;/code&gt; on &lt;code&gt;glm-5.3-prime&lt;/code&gt; to &lt;code&gt;8.522s&lt;/code&gt; on &lt;code&gt;kimi-k3.1-pro&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2-Turn Error Recovery (&lt;code&gt;C3&lt;/code&gt;)&lt;/strong&gt;: When &lt;code&gt;query_order&lt;/code&gt; returned &lt;code&gt;PRIMARY_RATE_LIMIT&lt;/code&gt; with a hint to use &lt;code&gt;backup_query_order&lt;/code&gt;, all 4 models switched cleanly (&lt;code&gt;glm-5.3-prime&lt;/code&gt; completed both turns in &lt;code&gt;2.912s&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strict Type Check (&lt;code&gt;C4&lt;/code&gt; Failure)&lt;/strong&gt;: Instructed to post &lt;code&gt;250.00&lt;/code&gt; yuan as integer cents (&lt;code&gt;amount_cents: 25000&lt;/code&gt;), &lt;code&gt;glm-5.3-prime&lt;/code&gt; (&lt;code&gt;2.999s&lt;/code&gt;), &lt;code&gt;deepseek-v4-pro&lt;/code&gt; (&lt;code&gt;6.325s&lt;/code&gt;), and &lt;code&gt;kimi-k3.1-pro&lt;/code&gt; (&lt;code&gt;6.542s&lt;/code&gt;) all emitted valid &lt;code&gt;tool_calls&lt;/code&gt;. &lt;strong&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt; returned an empty tool call (&lt;code&gt;no call&lt;/code&gt;, &lt;code&gt;5.361s&lt;/code&gt;)&lt;/strong&gt;, outputting plain text instead—a classic state-machine deadlock if your Agent loop doesn't handle text-only responses.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Note on Sampling Parameter Compatibility
&lt;/h3&gt;

&lt;p&gt;In this run, the benchmark harness stripped the &lt;code&gt;temperature&lt;/code&gt; parameter for &lt;code&gt;kimi-k3&lt;/code&gt; requests beforehand (&lt;code&gt;suite_v2.py&lt;/code&gt; lines 109–110), so no &lt;code&gt;temperature&lt;/code&gt;-related HTTP error was triggered or recorded in the raw logs. Cross-model parameter compatibility differences will be tested separately with raw request/response payloads.&lt;/p&gt;

&lt;h2&gt;
  
  
  Production Routing Matrix
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Workload Role&lt;/th&gt;
&lt;th&gt;Best Fit&lt;/th&gt;
&lt;th&gt;Evidence from 16-Task Run&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;High-Frequency Agent Routing &amp;amp; ETL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;glm-5.3-prime&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fastest overall (&lt;code&gt;226.1s&lt;/code&gt; total), reliable JSON &amp;amp; tool recovery, &lt;code&gt;4.909s&lt;/code&gt; 5-way burst&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Code Audit &amp;amp; Cost-Sensitive Reasoning&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;deepseek-v4-pro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowest token burn (&lt;code&gt;29,809&lt;/code&gt; total), all &lt;code&gt;B1–B4&lt;/code&gt; tasks under &lt;code&gt;67s&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;High-Concurrency Short Tasks / Async Queues&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fastest 5-way burst (&lt;code&gt;3.891s&lt;/code&gt;), but heavy reasoning requires async queues + &lt;code&gt;no call&lt;/code&gt; fallback&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Long-Logic Fallback &amp;amp; Anti-Hallucination&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Strongest hallucination refusal; configure &lt;code&gt;300s+&lt;/code&gt; async timeouts for heavy audits&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;p&gt;&lt;em&gt;Next in **Production AI Benchmarks&lt;/em&gt;&lt;em&gt;: Cloud MaaS Gateway Latency, 100-Way Burst Concurrency, and Real Billing Audits on Alibaba Cloud DashScope.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproducible Code &amp;amp; Benchmarking Collaborations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source Benchmark Suite (&lt;code&gt;Suite v2&lt;/code&gt;)&lt;/strong&gt;: &lt;a href="https://github.com/wangguode/llm-prod-bench" rel="noopener noreferrer"&gt;github.com/wangguode/llm-prod-bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Independent Evaluations &amp;amp; DevRel Inquiries&lt;/strong&gt;: Open to reproducible production benchmarks for LLMs, inference gateways, and Agent infra. Reach out via &lt;a href="https://github.com/wangguode" rel="noopener noreferrer"&gt;GitHub (@wangguode)&lt;/a&gt; or &lt;a href="https://x.com/sansaxypy" rel="noopener noreferrer"&gt;X (@sansaxypy)&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>llm</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
