<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Kangsen]]></title><description><![CDATA[Kangsen]]></description><link>https://yksalun.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:14:37 GMT</lastBuildDate><atom:link href="https://yksalun.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How one model-filter line silently turned 30 SSR pages into Soft 404s]]></title><description><![CDATA[How a single model-filter line and over-stripped SSR pricing rows turned 30 live HTTP 200 pages into Soft 404s, and the 1-model SSR fix.]]></description><link>https://yksalun.hashnode.dev/how-one-model-filter-line-silently-turned-30-ssr-pages-into-soft-404s</link><guid isPermaLink="true">https://yksalun.hashnode.dev/how-one-model-filter-line-silently-turned-30-ssr-pages-into-soft-404s</guid><category><![CDATA[webdev]]></category><category><![CDATA[SEO]]></category><category><![CDATA[TypeScript]]></category><category><![CDATA[cloudflare]]></category><dc:creator><![CDATA[Kangsen]]></dc:creator><pubDate>Thu, 03 Dec 2026 00:02:18 GMT</pubDate><content:encoded><![CDATA[<p>In my <a href="https://dev.to/yksalun/my-ssr-pages-were-shipping-23-mb-of-html-how-i-found-it-and-cut-92-29m4">previous post</a>, I walked through how we cut raw SSR HTML from <strong>2.39 MB down to ~175 KB</strong> on a TanStack Start + Nitro + Cloudflare Workers app by removing 9,531 AI model pricing rows from the shared route loader.</p>
<p>Everything looked clean in Chrome after that deploy. Pages loaded quickly, client hydration fetched <code>/api/catalog</code>, and every interactive workspace worked.</p>
<p>Then I ran a 25-line raw-HTML crawler audit (zero JavaScript execution) against every URL in <code>sitemap.xml</code> — and <strong>30 live HTTP 200 pages lit up with <code>"No compatible model is available"</code> and <code>data-generator-unavailable</code> right inside the SSR HTML</strong>.</p>
<p>Because client hydration immediately loaded the full catalog within ~200 ms, human visitors barely noticed a flash. To Googlebot and AI search crawlers inspecting the initial HTML document, 30 real product pages looked like broken empty shells — classic <strong>Soft 404s</strong>. Google Search Console had already flagged two of them.</p>
<p>Here is the exact two-part deadlock that caused it, the minimal 1-model SSR fix that kept HTML under 205 KB, and the CI smoke check we now run before every deploy.</p>
<hr />
<h2>1. Why humans never saw the bug (and crawlers did)</h2>
<p>Our app mixes two kinds of public pages:</p>
<ul>
<li><strong>Browser-local tools</strong> like <a href="https://liofx.com/photo-to-gif">Photo to GIF</a>, which run entirely on-device with zero server catalog or pricing dependencies.</li>
<li><strong>Cloud-priced AI workspaces</strong> like <a href="https://liofx.com/photo-to-sketch">Photo to Sketch</a> and our <a href="https://liofx.com/ai-pixel-art-generator">AI Pixel Art Generator</a>, which validate compatible models and display exact credit quotes before a user starts a job.</li>
</ul>
<p>In the browser, the page hydrated and immediately pulled all 93 models (45 image + 48 video) from <code>/api/catalog</code>. On the server during SSR, however, the route loader ran a compatibility filter against a stripped catalog — got an empty array <code>[]</code> — and rendered our graceful <code>"No compatible model is available"</code> fallback state into the HTML.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/7matq8d4bzcte13lyztp.png" alt="Diagram comparing healthy Chrome hydration against 30 silent Soft 404 SSR responses seen by crawlers" /></p>
<p>That is the nastiest property of SSR Soft 404s: <strong>the HTTP status code is <code>200 OK</code>, Chrome looks fine, and your browser E2E tests pass</strong> — while search engines quietly drop the pages from their index.</p>
<hr />
<h2>2. Root cause #1: one line in <code>generatorProfile()</code></h2>
<p>Digging into <code>src/lib/generator-profile.ts</code>, the model matcher filtered our catalog like this:</p>
<pre><code class="language-ts">const models = catalog.filter(
  (m) =&gt;
    m.media === media &amp;&amp;
    m.enabled &amp;&amp;
    m.documented &amp;&amp;
    (!m.managedYir || ordinary) &amp;&amp; // &lt;-- the single line
    ...
);
</code></pre>
<p>Look closely at <code>(!m.managedYir || ordinary)</code>:</p>
<ul>
<li><code>ordinary</code> was <code>true</code> for broad hub routes (<code>/ai-image-generator</code>, <code>/ai-video-generator</code>).</li>
<li>For 30 specialized tool routes that use exact per-tool credit quotes (<code>hasExactToolPricing(tool.id)</code>), <code>ordinary</code> was <code>false</code>.</li>
<li>Once we migrated our live image models onto managed gateway pricing (<code>m.managedYir = true</code>), that single condition filtered out <strong>every compatible managed model</strong> on all 30 specialized routes.</li>
</ul>
<p>The fix in <code>src/lib/generator-profile.ts</code> was literally one extra clause:</p>
<pre><code class="language-diff">       m.media === media &amp;&amp;
       m.enabled &amp;&amp;
       m.documented &amp;&amp;
-      (!m.managedYir || ordinary) &amp;&amp;
+      (!m.managedYir ||
+        ordinary ||
+        (!!tool &amp;&amp; hasExactToolPricing(tool.id))) &amp;&amp;
</code></pre>
<hr />
<h2>3. Root cause #2: over-stripping <code>yirRates</code> in SSR</h2>
<p>Fixing that filter line alone still wasn't enough!</p>
<p>To shrink SSR HTML by 92%, our shared loader <code>pageData()</code> had stripped <code>yirRates</code> from <strong>every model except single-model detail routes</strong>:</p>
<pre><code class="language-ts">// Before: tool routes had model === undefined, so ALL 93 models lost yirRates
const ssrModels = allModels.map((m) =&gt; {
  if (model &amp;&amp; m.id === model.id) return m;
  const { yirRates: _yirRates, ...rest } = m;
  return rest;
});
</code></pre>
<p>In live mode (<code>publishedPricing: env.GENERATION_MODE === 'live'</code>), our matcher checks <code>hasPublishedImageOptions(m, true)</code> to ensure it never quotes an unpriced model. With <code>yirRates</code> stripped from all 93 models on tool routes, SSR <em>still</em> computed zero priceable models and rendered the unavailable fallback!</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/9x2qyvtnmesmjmgp5bqr.png" alt="Side-by-side diff of the one-line generator-profile filter fix and 1-model SSR rate retention" /></p>
<h3>The minimal-SSR compromise: keep 1 matched model (~4 KB), hydrate 93 on the client</h3>
<p>Instead of putting 1.95 MB of pricing rows back into SSR, we ran <code>generatorProfile()</code> once on the server for the active tool, picked the <strong>first compatible priced model</strong>, and kept only that single model's <code>yirRates</code> in the dehydrated payload:</p>
<pre><code class="language-ts">const ssrRateModelIds = new Set&lt;string&gt;();
if (model) ssrRateModelIds.add(model.id);

if (tool &amp;&amp; !toolRecipes[tool.operation]) {
  const matched = generatorProfile(
    {
      media: tool.media,
      tool,
      publishedPricing: env.GENERATION_MODE === 'live',
    },
    allModels
  ).models;

  for (const candidate of matched) {
    if (candidate.yirRates &amp;&amp; Object.keys(candidate.yirRates).length) {
      ssrRateModelIds.add(candidate.id);
      if (ssrRateModelIds.size &gt;= 1) break;
    }
  }
}

const ssrModels = allModels.map((m) =&gt; {
  if (ssrRateModelIds.has(m.id)) return m;
  const { yirRates: _yirRates, ...rest } = m;
  return rest;
});
</code></pre>
<p>The numbers worked out cleanly:</p>
<ul>
<li><strong>Extra SSR weight</strong>: ~3–6 KB per tool route (keeping total raw HTML at <strong>164–205 KB</strong>, still &gt;91% smaller than <code>2.39 MB</code>).</li>
<li><strong>Crawler HTML</strong>: renders the real interactive workspace and an accurate credit quote immediately on first byte — zero unavailable fallback strings.</li>
<li><strong>Client experience</strong>: once hydrated, TanStack Query fetches <code>/api/catalog</code> so users still get all 93 models in the model switcher.</li>
</ul>
<hr />
<h2>4. The 25-line raw-HTML scanner that caught all 30 pages</h2>
<p>Normal unit tests didn't catch this because mocks often used stub pricing or non-managed fixtures, and Playwright E2E tests waited for hydration. What caught all 30 routes in under 4 seconds was fetching the <strong>live sitemap URLs without JavaScript</strong> and scanning for fallback markers:</p>
<pre><code class="language-python">import concurrent.futures
import urllib.request

FALLBACK_MARKERS = [
    "No compatible model is available",
    "data-generator-unavailable",
    "Currently unavailable",
]

def audit(url: str):
    req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"})
    raw = urllib.request.urlopen(req, timeout=20).read()
    html = raw.decode("utf-8", "ignore")
    flags = [m for m in FALLBACK_MARKERS if m in html]
    if len(raw) &gt; 300_000:
        flags.append(f"HTML_TOO_LARGE:{len(raw)//1024}KB")
    return (url, flags, len(raw)) if flags else None

with concurrent.futures.ThreadPoolExecutor(max_workers=10) as ex:
    hits = [r for r in ex.map(audit, sitemap_urls) if r]

print(f"Flagged {len(hits)} / {len(sitemap_urls)} routes")
</code></pre>
<p>Right after shipping the two-part fix and re-running the scanner across production Cloudflare Workers:</p>
<ul>
<li><strong>Flagged routes dropped from <code>30</code> to <code>0</code></strong></li>
<li><strong>Raw SSR HTML stayed between <code>164 KB</code> and <code>205 KB</code></strong> across every tool page</li>
<li>After Googlebot recrawled our previously flagged routes, the GSC Soft 404 report cleared the affected tool page on the very next index snapshot</li>
</ul>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/idg1tkcmm6rygzhxp3e1.png" alt="Production SSR audit showing 30 to 0 unavailable pages while preserving 164-205 KB raw HTML and 93-model client hydration" /></p>
<hr />
<h2>3 rules we keep in CI after this outage</h2>
<ol>
<li><strong>Test the unhydrated HTML, not just the hydrated DOM.</strong> Any <code>"temporarily unavailable"</code>, <code>"no data"</code>, or loading skeleton rendered on HTTP 200 during SSR is a Soft 404 risk if crawlers read first paint before an API call resolves.</li>
<li><strong>Pair every SSR payload trim with a live fallback scan.</strong> Shrinking dehydrated loader state is great for crawl budget, but server-side capability checks often depend implicitly on fields you just removed.</li>
<li><strong>Fail CI with diagnostics, not just a boolean.</strong> As a reader suggested on my last post, printing both the triggered fallback marker and the top 5 largest keys in the dehydrated payload turns a broken deploy check into a 30-second fix.</li>
</ol>
<p>Have you ever shipped an SSR optimization that looked totally fine in the browser but broke crawler HTML? Curious what fallback strings people guard against in CI.</p>
]]></content:encoded></item><item><title><![CDATA[My SSR pages were shipping 2.3 MB of HTML — how I found it and cut 92%]]></title><description><![CDATA[How I profiled 2.39 MB of raw SSR HTML in a TanStack Start + Cloudflare Workers app, fixed a Soft-404 regression, and cut HTML by 92%.]]></description><link>https://yksalun.hashnode.dev/my-ssr-pages-were-shipping-2-3-mb-of-html-how-i-found-it-and-cut-92</link><guid isPermaLink="true">https://yksalun.hashnode.dev/my-ssr-pages-were-shipping-2-3-mb-of-html-how-i-found-it-and-cut-92</guid><category><![CDATA[webdev]]></category><category><![CDATA[performance]]></category><category><![CDATA[SEO]]></category><category><![CDATA[cloudflare]]></category><dc:creator><![CDATA[Kangsen]]></dc:creator><pubDate>Mon, 30 Nov 2026 02:57:05 GMT</pubDate><content:encoded><![CDATA[<p>Last week, Google Search Console dropped our site's indexed page count from <strong>145 down to 80</strong>, with <strong>63 URLs</strong> sitting in <em>"Crawled - currently not indexed"</em> and impressions flatlining to almost zero.</p>
<p>My first assumption was content thinness or link authority. It turned out to be something much more mechanical: <strong>every single SSR page on our site was shipping 2.33 to 2.39 MB of raw HTML</strong> — right past Googlebot's ~2 MB HTML parsing cutoff (<code>2,097,152</code> bytes).</p>
<p>Here is how I profiled the exact bytes inside a TanStack Start + Nitro + Cloudflare Workers + D1 app, fixed a subtle SSR fallback bug along the way, and brought HTML down by <strong>89%–92.6%</strong> without breaking client interactivity.</p>
<hr />
<h2>1. How I spotted the 2.39 MB HTML payload</h2>
<p>The site looked fast enough in Chrome with brotli compression over localhost. The problem only jumped out when I fetched raw SSR documents with a minimal Python script (no JS execution, just what a crawler sees first):</p>
<pre><code class="language-python">import urllib.request

for path in ["/", "/photo-to-gif", "/photo-to-sketch", "/pricing"]:
    req = urllib.request.Request(
        f"https://liofx.com{path}",
        headers={"User-Agent": "Mozilla/5.0"},
    )
    raw = urllib.request.urlopen(req).read()
    print(f"{path:20s} -&gt; {len(raw):,} bytes ({len(raw)/1024:.1f} KB)")
</code></pre>
<p>The output was brutal:</p>
<ul>
<li><code>/</code> -&gt; <strong>2,447,360 bytes (2,390 KB)</strong></li>
<li><code>/photo-to-gif</code> -&gt; <strong>2,406,400 bytes (2,350 KB)</strong></li>
<li><code>/pricing</code> -&gt; <strong>2,385,920 bytes (2,330 KB)</strong></li>
</ul>
<p>Even <code>/pricing</code>, our <a href="https://liofx.com/photo-to-sketch">Photo to Sketch</a> workspace, and our purely browser-local <a href="https://liofx.com/photo-to-gif">Photo to GIF converter</a> — which doesn't even call a cloud AI model — were shipping over <strong>2.3 MB</strong> of HTML before a single stylesheet or script ran.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/7sdogbw52vs1exmul5wb.png" alt="Raw SSR HTML size before vs after optimization across 5 production routes" /></p>
<hr />
<h2>2. Profiling what was actually inside the HTML</h2>
<p>Next, I broke down <code>&lt;script&gt;</code> tags vs visible markup inside the SSR document:</p>
<ul>
<li>Visible HTML markup + head metadata: <strong>~42 KB</strong></li>
<li>TanStack Router dehydrated loader payload (<code>__TSR__</code> / inline state): <strong>~2.29 MB</strong></li>
</ul>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/c02qsekzs45msel8o6j7.png" alt="Breakdown of the 2.39 MB dehydrated SSR payload inside raw HTML" /></p>
<p>Inside that dehydrated JSON, one field was responsible for almost <strong>2.0 MB</strong> by itself:</p>
<h3>Culprit #1: 9,531 pricing rows serialized into every route (<code>~1.95 MB</code>)</h3>
<p>Two days earlier, we had seeded <strong>93 AI image and video models</strong> into Cloudflare D1 along with <strong>9,531 granular per-option pricing rows (<code>yirRates</code>)</strong> so the studio UI can display exact credit quotes before users run a job.</p>
<p>Because our shared <code>pageData()</code> loader fetched the full model catalog and returned it inside SSR loader data, <strong>every public route was dehydrating all 9,531 pricing rows into the HTML document</strong> — even pages that only run locally in the browser!</p>
<h3>Culprit #2: Server-only routing tables and duplicate nav trees (<code>~239 KB</code>)</h3>
<p>After stripping <code>yirRates</code> from SSR and moving the full catalog to a client-side TanStack Query endpoint (<code>/api/catalog</code>, <code>staleTime: 5 min</code>), I re-measured.</p>
<p>HTML dropped from <code>2.39 MB</code> to <strong><code>391–463 KB</code></strong> — much better, but still heavier than I wanted for a clean &lt;300 KB target. A second pass inspecting top-level keys inside the dehydrated state revealed three more leaks:</p>
<table>
<thead>
<tr>
<th>Dehydrated key</th>
<th align="right">Size in SSR HTML</th>
<th>Actually needed on client?</th>
</tr>
</thead>
<tbody><tr>
<td><code>directory.routes</code></td>
<td align="right"><code>78.5 KB</code></td>
<td>No — server-side route lookup map only</td>
</tr>
<tr>
<td><code>directory.navigation</code></td>
<td align="right"><code>111.0 KB</code></td>
<td>Duplicated full tools list + unused long descriptions</td>
</tr>
<tr>
<td><code>templates.items</code></td>
<td align="right"><code>49.5 KB</code></td>
<td>Unused on non-template tool pages</td>
</tr>
</tbody></table>
<p>Slimming those three payloads in the SSR loader (while leaving the shared directory builder untouched for server/sitemap generation) shaved off another <strong>~220 KB</strong> per page.</p>
<hr />
<h2>3. The sneaky regression I caught during verification</h2>
<p>Stripping <code>yirRates</code> from SSR had one subtle side effect worth sharing if you run SSR with dynamic pricing or feature flags.</p>
<p>On tool pages that compute exact single-photo credit quotes during SSR (like our <a href="https://liofx.com/clay-animation">Clay Animation</a> and Chibi style workspaces), removing <code>yirRates</code> from the SSR model list initially made the server think zero models were priceable — rendering a <code>"temporarily unavailable"</code> fallback string directly in SSR HTML (which Google can read as a <strong>Soft 404</strong>!).</p>
<p>The fix had two parts:</p>
<ol>
<li><strong>Keep only the 1 matched compatible model's <code>yirRates</code> in SSR</strong> on exact-pricing tool pages (cost: ~3–6 KB instead of 1.95 MB), while lazily hydrating all 93 models on the client via <code>/api/catalog</code>.</li>
<li><strong>Fix a pre-existing model filter condition</strong> (<code>!m.managedYir || ordinary || (!!tool &amp;&amp; hasExactToolPricing(tool.id))</code>) that had been accidentally excluding managed-pricing models on 30 tool pages in production.</li>
</ol>
<p>Running an automated SSR scanner across every public URL confirmed all 30 pages flipped from <code>unavailable=True</code> back to <code>unavailable=False</code> while staying under <strong>205 KB</strong>.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/mp0axzef2wwc8c6x133b.png" alt="Zero Soft-404 SSR model hydration architecture comparing single matched SSR model vs full client catalog hydration" /></p>
<hr />
<h2>4. Before vs. After (measured on production Cloudflare Workers)</h2>
<table>
<thead>
<tr>
<th>Page</th>
<th align="right">Before (raw SSR HTML)</th>
<th align="right">After (raw SSR HTML)</th>
<th align="right">Reduction</th>
</tr>
</thead>
<tbody><tr>
<td><code>/</code> (Home)</td>
<td align="right"><code>2,390 KB</code></td>
<td align="right"><strong><code>249 KB</code></strong></td>
<td align="right"><strong>-89.6%</strong></td>
</tr>
<tr>
<td><code>/photo-to-gif</code></td>
<td align="right"><code>2,350 KB</code></td>
<td align="right"><strong><code>175 KB</code></strong></td>
<td align="right"><strong>-92.6%</strong></td>
</tr>
<tr>
<td><code>/photo-to-sketch</code></td>
<td align="right"><code>2,348 KB</code></td>
<td align="right"><strong><code>177 KB</code></strong></td>
<td align="right"><strong>-92.5%</strong></td>
</tr>
<tr>
<td><code>/clay-animation</code></td>
<td align="right"><code>2,360 KB</code></td>
<td align="right"><strong><code>201 KB</code></strong></td>
<td align="right"><strong>-91.5%</strong></td>
</tr>
<tr>
<td><code>/pricing</code></td>
<td align="right"><code>2,330 KB</code></td>
<td align="right"><strong><code>173 KB</code></strong></td>
<td align="right"><strong>-92.6%</strong></td>
</tr>
</tbody></table>
<p>Client behavior stayed identical: once hydrated, <code>/api/catalog</code> loads all 45 image models and 48 video models cleanly with zero console errors.</p>
<hr />
<h2>5. Bonus: Keeping browser tools genuinely zero-upload</h2>
<p>While untangling server vs. client boundaries, we also extracted the pure client-side GIF89a encoder logic (zero external dependencies, median-cut quantization + LZW stream writer) into a tiny standalone MIT repo so anyone can inspect how browser-only GIF encoding works without uploading files to a server:</p>
<ul>
<li>Live zero-upload demo: <a href="https://yksalun.github.io/local-gif-encoder/">yksalun.github.io/local-gif-encoder</a></li>
<li>Source code (MIT): <a href="https://github.com/yksalun/local-gif-encoder">github.com/yksalun/local-gif-encoder</a></li>
</ul>
<hr />
<h2>Takeaways if you run SSR + TanStack / Next / Remix</h2>
<ol>
<li><strong>Always inspect uncompressed SSR HTML bytes</strong>, not just compressed DevTools transfer size. Crawlers care about decoded document size and truncation thresholds.</li>
<li><strong>Audit your dehydrated state keys after every database/catalog expansion.</strong> One innocent <code>SELECT *</code> in a shared root/page loader can silently multiply every route by 10x.</li>
<li><strong>Always run a post-slim SSR scan for fallback/empty-state strings</strong> (<code>"unavailable"</code>, <code>"not found"</code>, <code>"loading..."</code>) so trimming SSR data doesn't accidentally introduce Soft 404s.</li>
</ol>
<p>If you've ever been bitten by invisible loader bloat in SSR frameworks, I'd love to hear what bloated your HTML the most in the comments!</p>
]]></content:encoded></item><item><title><![CDATA[Keep the Prompt Frozen When You Swap Video Models]]></title><description><![CDATA[When a new video model drops, it is tempting to "give it a fair chance" by rewriting the prompt after you have already seen another model's output. That is…]]></description><link>https://yksalun.hashnode.dev/keep-the-prompt-frozen-when-you-swap-video-models</link><guid isPermaLink="true">https://yksalun.hashnode.dev/keep-the-prompt-frozen-when-you-swap-video-models</guid><dc:creator><![CDATA[Kangsen]]></dc:creator><pubDate>Wed, 18 Nov 2026 07:19:39 GMT</pubDate><content:encoded><![CDATA[<p>When a new video model drops, it is tempting to "give it a fair chance" by rewriting the prompt after you have already seen another model's output. That is no longer a model comparison. It is a prompt-engineering contest with a moving target.</p>
<h2>What quietly invalidates the test</h2>
<p>A typical dirty loop looks like this:</p>
<ol>
<li>Run Model A on your baseline prompt</li>
<li>Notice a weak motion or a missed style cue</li>
<li>Tweak the prompt so Model B can dodge that failure</li>
<li>Declare B the winner</li>
</ol>
<p>You did not measure whether B is better on your real workload. You measured whether you are better at prompting after you have seen a failure. The second run also got information the first run never had.</p>
<p>If a tool genuinely needs a different prompting style, that is a useful fact—but it belongs on its own axis, such as "prompt portability" or "how much rewriting this tool needs to match the others." It should not be smuggled in as a silent mid-benchmark edit.</p>
<h2>A cleaner protocol</h2>
<ul>
<li>Write the prompt once, then freeze it for the round</li>
<li>Run every candidate on the same prompt, same duration/resolution targets, and the same seed policy if the tool exposes one</li>
<li>Score the outputs before you allow any prompt rewrite</li>
<li>If you want a "best effort" number, run a second, clearly labeled round where prompts may be adapted—and never mix those scores with the frozen-prompt round</li>
</ul>
<p>This is the same idea as a fixed evaluation checklist: the thing you change is the model, not the instructions, unless the experiment is explicitly about instructions.</p>
<h2>What to record</h2>
<p>Keep a one-line note per tool:</p>
<ul>
<li>Frozen-prompt result (pass/fail or 0–2 on your usual axes)</li>
<li>Whether a rewritten prompt recovered the failure</li>
<li>How large the rewrite was (a style tag vs a whole new script)</li>
</ul>
<p>When two tools look close on the pretty clips, the one that survived the frozen prompt is usually the safer default. The one that only wins after a custom prompt may still be worth having, but it is a different kind of win.</p>
<h2>Takeaway</h2>
<p>If you change the prompt while you change the model, you cannot tell which one moved the result. Freeze the prompt for the comparison round, and treat prompt rewrites as a separate measurement.</p>
]]></content:encoded></item><item><title><![CDATA[Don't Average Away the Failure Mode: Score Visual, Motion, and Audio Separately]]></title><description><![CDATA[When you compare AI video tools, it is tempting to give each clip one number and pick the highest average. That number usually hides the failure mode your…]]></description><link>https://yksalun.hashnode.dev/don-t-average-away-the-failure-mode-score-visual-motion-and-audio-separately</link><guid isPermaLink="true">https://yksalun.hashnode.dev/don-t-average-away-the-failure-mode-score-visual-motion-and-audio-separately</guid><dc:creator><![CDATA[Kangsen]]></dc:creator><pubDate>Wed, 11 Nov 2026 07:21:21 GMT</pubDate><content:encoded><![CDATA[<p>When you compare AI video tools, it is tempting to give each clip one number and pick the highest average. That number usually hides the failure mode your users will actually complain about.</p>
<h2>What a single score buries</h2>
<p>A clip can look sharp in a still frame and still be unusable: faces drift after two seconds, camera motion stutters, or the voice track slips off the mouth. If you fold those into one "quality" score, a pretty but unsyncable result can beat a slightly softer clip that would actually ship.</p>
<p>Split the score even if the rubric stays short:</p>
<ul>
<li>Visual: identity, sharpness, text-in-frame, color consistency</li>
<li>Motion: camera path, subject movement, flicker, morphing</li>
<li>Audio (when the tool produces it): lip sync, timing, background noise, cutoff</li>
</ul>
<p>Use a simple 0–2 or pass/fail per axis. You do not need a 20-criteria spreadsheet.</p>
<h2>How to use the split</h2>
<p>Promote a default only if it is acceptable on <em>every</em> axis you care about, not just the average. If your product is talking-head clips, audio sync is a veto, not a tie-breaker. If you ship silent loops, audio can be ignored instead of quietly dragging the average down.</p>
<p>When two tools tie on the pretty stills, look at the axis with the most reproducible fails. That is usually the real differentiator.</p>
<h2>Keep the rubric stable</h2>
<p>Do not invent a new weighted formula every time a vendor posts a demo. Keep the three axes fixed from week to week, and only add a row when a new failure mode shows up in production. The point is comparability: last month's notes should still be readable next to this week's run.</p>
<h2>Takeaway</h2>
<p>An average is a convenience for a slide, not a decision rule. Score visual, motion, and audio separately, let your product's vetoes stand, and promote the tool that survives the axis users will notice first.</p>
]]></content:encoded></item><item><title><![CDATA[Log the Failures You Skip When Benchmarking AI Video Tools]]></title><description><![CDATA[Most comparison posts only show the clips that looked good. The clips you threw away are usually more informative—especially if you are choosing a default…]]></description><link>https://yksalun.hashnode.dev/log-the-failures-you-skip-when-benchmarking-ai-video-tools</link><guid isPermaLink="true">https://yksalun.hashnode.dev/log-the-failures-you-skip-when-benchmarking-ai-video-tools</guid><dc:creator><![CDATA[Kangsen]]></dc:creator><pubDate>Thu, 05 Nov 2026 07:10:46 GMT</pubDate><content:encoded><![CDATA[<p>Most comparison posts only show the clips that looked good. The clips you threw away are usually more informative—especially if you are choosing a default model for a small product.</p>
<h2>What silent discards hide</h2>
<p>When a round of tests ends with three “nice” samples and twelve deleted renders, the published winner is often the model that failed less loudly, not the one that was best on the hard cases. If you never write down why a render was discarded, next week you will relearn the same failure modes.</p>
<p>Keep a short discard log next to your score table:</p>
<ul>
<li>Prompt id and seed</li>
<li>Failure class (identity drift, motion collapse, text mush, audio desync, timeout, policy block)</li>
<li>Whether the failure is reproducible on a second try</li>
<li>Whether you would ship that failure to a user or hide it behind a retry</li>
</ul>
<h2>A minimal template</h2>
<table>
<thead>
<tr>
<th>Prompt</th>
<th>Model A</th>
<th>Model B</th>
<th>Discard reason</th>
<th>Retry OK?</th>
</tr>
</thead>
<tbody><tr>
<td>P03 dialogue</td>
<td>pass</td>
<td>fail</td>
<td>lip sync drift after 2s</td>
<td>no</td>
</tr>
<tr>
<td>P07 text-in-frame</td>
<td>fail</td>
<td>pass</td>
<td>unreadable logo</td>
<td>yes once</td>
</tr>
</tbody></table>
<p>You do not need a fancy dashboard. A markdown table in the repo is enough. The point is that discarded runs stay visible when someone asks “why did we pick this default?”</p>
<h2>How this changes decisions</h2>
<p>Teams that only archive winners tend to over-promote flashy demos. Teams that archive failures tend to pick boring defaults that survive Monday morning traffic. If two models tie on the pretty set, promote the one with fewer <em>reproducible</em> hard failures—even if its best demo looks less impressive.</p>
<h2>Takeaway</h2>
<p>Benchmarking without a discard log is storytelling. Write down what you threw away, classify it, and let those notes vote when you promote a model.</p>
]]></content:encoded></item><item><title><![CDATA[When a Fixed Effects Checklist Beats Chasing New Model Releases]]></title><description><![CDATA[When a Fixed Effects Checklist Beats Chasing New Model Releases Shipping AI video work often looks like a race to try every new model the week it drops. A…]]></description><link>https://yksalun.hashnode.dev/when-a-fixed-effects-checklist-beats-chasing-new-model-releases</link><guid isPermaLink="true">https://yksalun.hashnode.dev/when-a-fixed-effects-checklist-beats-chasing-new-model-releases</guid><category><![CDATA[AI]]></category><category><![CDATA[Machine Learning]]></category><category><![CDATA[engineering]]></category><dc:creator><![CDATA[Kangsen]]></dc:creator><pubDate>Wed, 04 Nov 2026 07:07:21 GMT</pubDate><content:encoded><![CDATA[<p>When a Fixed Effects Checklist Beats Chasing New Model Releases</p>
<p>Shipping AI video work often looks like a race to try every new model the week it drops. A quieter approach works better for most small teams: keep one fixed evaluation checklist, and only swap models when they beat your baseline on that checklist.</p>
<h2>Why a fixed checklist helps</h2>
<p>Model cards and launch posts optimize for demos. Your product cares about repeatable quality on your prompts, your aspect ratios, and your latency budget. If the scoring rubric keeps changing, you cannot tell whether last week's winner still wins.</p>
<p>A good checklist stays boring on purpose:</p>
<ul>
<li>Same 8–12 prompts every round (cover dialogue, motion, text-in-frame, and a hard failure case)</li>
<li>Same resolution and duration targets</li>
<li>Same pass/fail notes for artifacts, identity drift, and audio sync when relevant</li>
<li>Same cost and wall-clock budget per clip</li>
</ul>
<h2>What to change, and what not to</h2>
<p>Change the model (or the sampler / seed policy) when the checklist says so. Do not change the checklist just because a competitor announced something flashy. If a new failure mode appears in production, add one prompt to the set instead of rewriting the whole rubric.</p>
<h2>A practical cadence</h2>
<ul>
<li>Weekly: rerun the fixed set on your current default model (regression check)</li>
<li>When evaluating a candidate: run the same set once, score side-by-side, keep notes in a table</li>
<li>Promote only if it wins on your weighted priorities (for many teams that is identity + motion first, novelty last)</li>
</ul>
<p>This is not anti-experimentation. It is how you keep experiments comparable. Without a fixed baseline, every new release feels like progress even when quality for your users did not move.</p>
<h2>Takeaway</h2>
<p>Treat model shopping like performance work: measure against a frozen suite, promote on evidence, and keep the suite stable enough that last month's scores still mean something.</p>
]]></content:encoded></item><item><title><![CDATA[Evaluating multi-model AI video tools against a fixed effects pipeline]]></title><description><![CDATA[A fixed effects pipeline and a stack of generative video models are solving different problems. If you score them on a single demo clip, the model usually…]]></description><link>https://yksalun.hashnode.dev/evaluating-multi-model-ai-video-tools-against-a-fixed-effects-pipeline</link><guid isPermaLink="true">https://yksalun.hashnode.dev/evaluating-multi-model-ai-video-tools-against-a-fixed-effects-pipeline</guid><dc:creator><![CDATA[Kangsen]]></dc:creator><pubDate>Sat, 31 Oct 2026 13:12:20 GMT</pubDate><content:encoded><![CDATA[<p>A fixed effects pipeline and a stack of generative video models are solving different problems. If you score them on a single demo clip, the model usually wins the first look and loses the tenth cut. These are the checks I use before I decide which one owns a shot.</p>
<h2>Hold the inputs still</h2>
<p>Compare like with like:</p>
<ul>
<li>Same duration, aspect ratio, and frame rate.</li>
<li>Same source stills or reference clip, if the tool accepts them.</li>
<li>Same written brief, not a prompt rewritten until one tool looks better.</li>
<li>A time box. Ten minutes of retries counts as part of the result.</li>
</ul>
<p>If a tool only looks good after you throw away most of the takes, write that down. The discarded takes are the real cost.</p>
<h2>What "good" means for a repeating shot</h2>
<p>For shots you will make again (a product turn, a lower-third sting, a transition between two known frames), I care about:</p>
<ol>
<li><strong>Shot-to-shot consistency.</strong> Does the palette, grain, and camera move stay in the same family when you change one line of the brief?</li>
<li><strong>Editability.</strong> Can you swap a color, shorten the clip, or replace one frame without regenerating the whole thing?</li>
<li><strong>Failure mode.</strong> Does it fail loudly (a broken hand, a warped logo) or quietly (a look that is almost right and expensive to QC)?</li>
<li><strong>Usable seconds per hour.</strong> Count only frames you would ship, not the highlight reel.</li>
</ol>
<p>A fixed pipeline (graded plates, a small set of transitions, a LUT, a camera move you can keyframe) is boring on purpose. The look is versioned. QC is a checklist. The hundredth render matches the first.</p>
<h2>Where a multi-model setup earns its place</h2>
<p>Generative tools are better when you cannot specify the shot yet:</p>
<ul>
<li>You need five different treatments of the same idea before you pick a direction.</li>
<li>The motion is hard to keyframe (cloth, crowds, weather) and a rough take is enough to decide.</li>
<li>You are filling a gap the preset library does not cover, then locking the winner into the pipeline.</li>
</ul>
<p>Running several models is useful only if you score them on the same rubric. Otherwise you just collect favorites. I keep a short table: model or pipeline, prompt or preset, takes kept, takes thrown away, and one sentence on why.</p>
<h2>A practical split</h2>
<p>I do not pick one system for the whole video.</p>
<ul>
<li>Repeating, branded, or legally sensitive shots stay on the fixed pipeline. You can diff the project file.</li>
<li>Exploratory shots go to whichever model produced a usable take inside the time box.</li>
<li>Once an exploratory shot becomes a repeating one, rebuild it as a preset. Do not keep regenerating it.</li>
</ul>
<p>The model is a sketch tool. The pipeline is the print. Mixing them up is how a one-off demo becomes a workflow you cannot schedule.</p>
<h2>What I stopped tracking</h2>
<p>Vanity metrics such as "more realistic," "more cinematic," or raw resolution do not tell you whether Tuesday's edit will match Monday's. Track the number of takes you kept, how long QC took, and whether a second person could reproduce the shot from your notes alone.</p>
<p>If you can reproduce it, it belongs in the pipeline. If you cannot, it was a sketch, and that is fine as long as you label it that way.</p>
]]></content:encoded></item></channel></rss>