<?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: Xinyue Zhan</title>
    <description>The latest articles on DEV Community by Xinyue Zhan (@xinyue_zhan_35ea4c0965196).</description>
    <link>https://dev.to/xinyue_zhan_35ea4c0965196</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%2F4230234%2F130ee82c-411a-49e2-b939-f3b9f4202ae3.png</url>
      <title>DEV Community: Xinyue Zhan</title>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xinyue_zhan_35ea4c0965196"/>
    <language>en</language>
    <item>
      <title>The ASGI shutdown path that took down our p95 latency</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:46:04 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/the-asgi-shutdown-path-that-took-down-our-p95-latency-4pck</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/the-asgi-shutdown-path-that-took-down-our-p95-latency-4pck</guid>
      <description>&lt;p&gt;On call, the alert said "p95 latency up". The cause was an ASGI worker that had been logging &lt;code&gt;shutting down&lt;/code&gt; for eleven minutes before it finally died. This is the short version of what I now check on every Python service I touch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shutdown path is a code path
&lt;/h2&gt;

&lt;p&gt;Graceful shutdown is not a flag, it is an async task that runs on signals and often waits on other tasks. If the wait has no timeout, the process can sit there until the orchestrator kills it with a different signal and you lose the logs you needed.&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;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;lifespan&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;yield&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;wait_for&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;connection_pool&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&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="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ten seconds is usually enough to drain; anything that needs longer should not be in the shutdown hook.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check it from outside
&lt;/h2&gt;

&lt;p&gt;The probe is a start, a signal, and a measurement of how long the process takes to exit. If the exit time equals your grace period, the hook is being cut, not finishing. That is a one-line check in the deploy script and it has caught two regressions since we added it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Restart and readiness are different
&lt;/h2&gt;

&lt;p&gt;A process that restarts quickly but answers health checks before its dependencies are ready will take traffic into a broken pool. Readiness should include at least one real dependency call.&lt;/p&gt;

&lt;h2&gt;
  
  
  Log one line per lifecycle
&lt;/h2&gt;

&lt;p&gt;Start, draining, drained, exit, with the elapsed time. When the next incident happens, those four lines answer most of the first question.&lt;/p&gt;

&lt;p&gt;The probe itself is in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;, together with the notes for the services we run.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cheapest upgrade
&lt;/h2&gt;

&lt;p&gt;If you do nothing else this quarter, add the exit-time measurement. It turns a silent, slow failure into a number in your deploy output.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Fourteen shots into one fan trailer: what worked and what wasted a week</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:45:43 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/fourteen-shots-into-one-fan-trailer-what-worked-and-what-wasted-a-week-5973</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/fourteen-shots-into-one-fan-trailer-what-worked-and-what-wasted-a-week-5973</guid>
      <description>&lt;p&gt;Running a fan trailer for an unannounced game sounds like a quick AI video job until you try to make fourteen shots look like one trailer. Here is the workflow that finally held up, after two that did not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule one: the look lives in a reference, not in words
&lt;/h2&gt;

&lt;p&gt;Every shot starts from the same style reference: one frame pulled from the first shot that worked. We pass it as the image input for every generation, and the descriptions stay almost identical apart from the action. Writing "neon night, palm trees, cinematic" in each prompt was worse than using the frame, because the model read the words differently every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule two: cut on action, not on a sentence
&lt;/h2&gt;

&lt;p&gt;Trailers feel like trailers because shots end mid-movement. Generate 5-6 second clips, and use only the last second of each unless the first half is the reason you picked it. A 2-second cut of a car passing reads like a trailer; a 5-second slow zoom reads like a screensaver.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule three: track music before shots
&lt;/h2&gt;

&lt;p&gt;Pick the track first. With a 90-second track, count the beats and give each shot one or two beats. When we started from shots and fitted music later, every cut landed a frame off and the whole thing felt amateur.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it cost
&lt;/h2&gt;

&lt;p&gt;Fourteen usable shots took 61 generations. About half of the rejects were good images with wrong motion, so the workflow now starts with image-to-video from a still, not text-to-video. My notes from this project, including the per-shot costs, are in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would not do again
&lt;/h2&gt;

&lt;p&gt;Promise a trailer in a day. The first version looked fine to the person who made it and wrong to everyone else. Show a 15-second cut before generating the other eleven shots.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>A week of load on a video workstation: what the numbers changed</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:45:24 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/a-week-of-load-on-a-video-workstation-what-the-numbers-changed-2mho</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/a-week-of-load-on-a-video-workstation-what-the-numbers-changed-2mho</guid>
      <description>&lt;p&gt;In smaller studios a video engineer often runs five things at once: renders, a render farm, uploads, reviews and the odd captioning job. This is the load pattern I found after measuring a week on my own machine, and what I changed because of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the week showed
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Peak CPU was 71% of wall-clock time, but it came in 4-6 minute bursts, not steadily.&lt;/li&gt;
&lt;li&gt;Memory sat flat at 60% for hours, then spiked to 91% during composite exports.&lt;/li&gt;
&lt;li&gt;GPU was busy in bursts that never overlapped the CPU bursts. Both were idle at the same time more often than not.&lt;/li&gt;
&lt;li&gt;Uploads were the slowest step per completed deliverable, and they ran on the same network the backups used.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I changed
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Renders queued, not parallel.&lt;/strong&gt; Two concurrent renders made both slower on this machine. The queue runs one at a time and the interface now shows an honest estimate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backups moved off the working hours.&lt;/strong&gt; Upload throughput doubled during working hours with nothing else changed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generated intermediates go to a scratch disk.&lt;/strong&gt; The main project drive stopped filling up during the week, and so did the nightly cleanup job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One "fleet" view.&lt;/strong&gt; A single table that shows what is running, what finished, and what failed. Making the state visible was worth more than any tuning.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The server side of this work is the small Python services that track the queue, and the probes I run on them before each deploy are in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;, where I keep the rest of these measurements.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would tell another studio
&lt;/h2&gt;

&lt;p&gt;Measure a normal week before buying hardware. The bottleneck on my machine was never the thing I expected, and in your studio it probably will not be either.&lt;/p&gt;

</description>
      <category>hardware</category>
      <category>performance</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Making hundreds of clips share one music track without losing your mind</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:45:05 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/making-hundreds-of-clips-share-one-music-track-without-losing-your-mind-3nik</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/making-hundreds-of-clips-share-one-music-track-without-losing-your-mind-3nik</guid>
      <description>&lt;p&gt;Sharing one music track across hundreds of clips started with a flag on a creative call and ended with a queue I now run every morning. The technical part took an evening; the rest was process.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Social clips ship in batches, each cut under 60 seconds, and a single track gets used across the batch for consistency. Changing that one track later should be a five-minute job. In practice it meant touching every cut and every export, and the licensing note lived in a different spreadsheet.&lt;/p&gt;

&lt;h2&gt;
  
  
  What fixed it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One manifest per batch: clip id, in and out points relative to the track, and the license reference. JSON, versioned in the repository.&lt;/li&gt;
&lt;li&gt;One script that re-cuts every clip from the manifest. No hand edits, ever.&lt;/li&gt;
&lt;li&gt;A license check that runs before the script does, and refuses the batch if the track has no matching record.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;manifest&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"clips"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ffmpeg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-i"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="s2"&gt;"-ss"&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;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"in"&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="s2"&gt;"-t"&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;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"out"&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="s2"&gt;"-i"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"track"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-map"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"0:v"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-map"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"1:a"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="s2"&gt;"-shortest"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"output"&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="n"&gt;check&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script does not know anything about which track is "current". That is the point: swapping music is a one-line change in the manifest.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that saves the most time
&lt;/h2&gt;

&lt;p&gt;The license record lives next to the manifest, and the check is the first line of the script. Before that, a single bad track slipped through and we had to pull six posts. The check has caught two since, both before export.&lt;/p&gt;

&lt;p&gt;How I set up the manifest and the check is written up with the rest of my field notes in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;, so whoever takes over has one place to start.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;p&gt;Write the check before the script. We added it after the incident, and the process change mattered more than the automation.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>productivity</category>
      <category>tools</category>
    </item>
    <item>
      <title>AI video on a 100-second free tier: what I learned paying nothing</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:44:47 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/ai-video-on-a-100-second-free-tier-what-i-learned-paying-nothing-25a7</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/ai-video-on-a-100-second-free-tier-what-i-learned-paying-nothing-25a7</guid>
      <description>&lt;p&gt;A weak GPU and a 100-second free tier taught me more about AI video than any benchmark post. This is what I would write on a sticky note for someone starting today, with almost no budget.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with a test that tells you when to stop
&lt;/h2&gt;

&lt;p&gt;Before generating anything serious, pick a one-sentence action, render it five times, and count how many look usable. If it is one in five, do not write a long prompt for the real scene; fix the phrasing until it is three in five. The model has not changed, your description has.&lt;/p&gt;

&lt;h2&gt;
  
  
  The free tier is a calibration, not a workspace
&lt;/h2&gt;

&lt;p&gt;Free credits are for finding out which settings to keep. Write down the seed and the settings of the best result before trying a variation, because free tiers often do not keep history long enough to find it again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep your own reference frames
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -ss 2 -i clip.mp4 -frames:v 1 frame.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pulling a frame from a clip you like and using it as the start image for the next shot keeps continuity across a sequence better than repeating the same description. It also costs nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to run locally
&lt;/h2&gt;

&lt;p&gt;Only when you need volume: batch tests, a fine-tune, or a workflow that has to run overnight. For one or two clips a week, the hosted tools are the right answer, even at your credit limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reading list I wish I had
&lt;/h2&gt;

&lt;p&gt;During the waits I read other people's field notes, and eventually started keeping my own in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;, because the failures I hit were rarely described in the tool documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  What surprised me
&lt;/h2&gt;

&lt;p&gt;The expensive part is not the generation, it is the retry loop where nothing changes between attempts. Each extra run should change one thing. If it does not, the credit was spent to learn nothing.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>learning</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Comparing AI video models without a leaderboard: what decided it for us</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:44:27 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/comparing-ai-video-models-without-a-leaderboard-what-decided-it-for-us-27f0</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/comparing-ai-video-models-without-a-leaderboard-what-decided-it-for-us-27f0</guid>
      <description>&lt;p&gt;Comparing five or six video models on one afternoon is a common request at work, and the answer I give now is a short list. Not a scoring table, just the things that decided the issue for us across about forty prompts over three weeks.&lt;/p&gt;

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

&lt;p&gt;Sets of prompts that described the same scene, so a difference in output was the model and not the wording:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A street at dusk with one person walking toward the camera.&lt;/li&gt;
&lt;li&gt;A close-up of a drink with condensation, from a still image.&lt;/li&gt;
&lt;li&gt;A 10-second product turntable, same key light.&lt;/li&gt;
&lt;li&gt;A short Korean-language caption baked into the scene, to see how well the model reads text.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What actually differed
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Coherence with the reference image.&lt;/strong&gt; For the still-image prompts, two of the six followed the lighting of the photo. The others re-invented it, which looked fine in isolation and wrong next to our brand shots.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retry rate.&lt;/strong&gt; The number of prompts that needed more than one generation to get something usable varied by more than 3x. In practice this matters more than the best-case output, because you pay for retries in time as much as in credits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text in the frame.&lt;/strong&gt; None of the models handled Korean captions reliably. If the clip needs on-screen text, plan for the editor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duration limits.&lt;/strong&gt; Free tiers and paid tiers differ here more than anywhere else, so a comparison on a free account does not tell you what the paid plan will do.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  One thing that helped most
&lt;/h2&gt;

&lt;p&gt;If the shot is close to a real video you already have, pull a frame from it and run image-to-video instead of describing it again. The model then only has to animate, not reconstruct. I keep notes like this next to the shell probes in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;, mostly so the next person does not repeat the three weeks.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do next time
&lt;/h2&gt;

&lt;p&gt;Two models, twenty prompts, one hour. The ranking barely changed between the quick pass and the long one, and the quick pass is what the team actually reads.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>tools</category>
    </item>
    <item>
      <title>Five logging decisions we would keep after four months of sleep lost</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:44:08 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/five-logging-decisions-we-would-keep-after-four-months-of-sleep-lost-2fcb</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/five-logging-decisions-we-would-keep-after-four-months-of-sleep-lost-2fcb</guid>
      <description>&lt;p&gt;Four months of log rotation, 3 AM pages and one outage. These are the decisions we would keep if we rebuilt our logging setup from the start, without the marketing words.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Log in JSON, decide the format later
&lt;/h2&gt;

&lt;p&gt;Our version of "structured logging" is simple: the application writes JSON lines to stdout with &lt;code&gt;service&lt;/code&gt;, &lt;code&gt;level&lt;/code&gt;, &lt;code&gt;event&lt;/code&gt;, &lt;code&gt;request_id&lt;/code&gt; and &lt;code&gt;duration_ms&lt;/code&gt;. Nothing else. Every time we started deciding "which fields are interesting" inside the app, the format changed five times in a month. Keep the app dumb, do the filtering later.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Pick one id and pass it everywhere
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;uuid&lt;/span&gt;

&lt;span class="n"&gt;request_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;request&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"x-request-id"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&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;uuid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uuid4&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Log it, return it in a response header, and put it in every outbound call. It is the single field that turns a 40-minute investigation into a 4-minute one.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Sample at the edge, not in the app
&lt;/h2&gt;

&lt;p&gt;1% of successful requests, 100% of errors, 100% of slow requests. Doing this in the collector means the application never behaves differently under load because of instrumentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Alert on symptoms, not on lines
&lt;/h2&gt;

&lt;p&gt;"Error rate above 2% for five minutes" is an alert. "Any log line with level=ERROR" is a notification nobody reads after week two. Two symptoms per service is usually enough to start.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Write down what a log is allowed to contain
&lt;/h2&gt;

&lt;p&gt;No passwords, no tokens, no full request bodies, no email addresses unless necessary. Put that in the review checklist, because the person adding the log line is not thinking about compliance at 6 PM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the field notes end up
&lt;/h2&gt;

&lt;p&gt;After an incident the first page anyone opens is the short checklist from the previous one. More of mine, including the probes I run on Python services before a deploy, live in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;.&lt;/p&gt;

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

&lt;p&gt;Most custom dashboards. Dashboards nobody opens during an incident are decoration; trace views and one good overview page do more work.&lt;/p&gt;

</description>
      <category>cloud</category>
    </item>
    <item>
      <title>What a video engineer actually checks before moving their repos</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:43:48 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/what-a-video-engineer-actually-checks-before-moving-their-repos-2djm</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/what-a-video-engineer-actually-checks-before-moving-their-repos-2djm</guid>
      <description>&lt;p&gt;I did the math for our small team before we picked where our repositories live. The comparison was not between vendors, it was between the Git server and everything you build around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask these four questions first
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Who creates repos?&lt;/strong&gt; If only admins can, your incident response is slower than it needs to be. If everyone can, you need naming rules. Write them down before the repo count doubles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What does the auditor need?&lt;/strong&gt; Usually the same list every year: who has access to production repos, who changed branch protection, and which tokens can push. Pick a setup where those are queryable, ideally from the API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where do CI runners live?&lt;/strong&gt; The repository hosting is cheap; the runners and the secrets they hold are where the real risk and cost sit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What happens on outage?&lt;/strong&gt; A local mirror with read-only access for everyone is not paranoia. The question is whether you can push for an hour while the host is down.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What the API check looks like
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -H &lt;span class="s2"&gt;"Authorization: Bearer $TOKEN"&lt;/span&gt; \
  https://&lt;span class="nv"&gt;$HOST&lt;/span&gt;/api/v1/repos?per_page=100 &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'.[] | {name, private}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that works and a normal user can also list their own repos, the migration will be boring, and boring is what you want. If listing requires an admin token, add two weeks to the plan.&lt;/p&gt;

&lt;p&gt;For a solo project, plain Git over SSH and one shared host is fine. The moment a second person needs access, the answer shifts to whichever option lets the team self-serve without opening a ticket.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that outlives the code
&lt;/h2&gt;

&lt;p&gt;Issues and discussions keep being read long after the code they were opened for is gone. I keep short checklists like this next to my Python deploy notes in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;, and copy them into every new project's README, because the migration happens once and the notes get read for years.&lt;/p&gt;

&lt;h2&gt;
  
  
  A cheaper path
&lt;/h2&gt;

&lt;p&gt;Start with one team and one repo, move the second repo in a week later, and let the tooling prove itself before you sign a contract. Comparing the third month instead of the first changes which option wins more often than any feature list.&lt;/p&gt;

</description>
      <category>git</category>
    </item>
    <item>
      <title>The cloud studio asks for 'format' as a JSON object</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:43:27 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/the-cloud-studio-asks-for-format-as-a-json-object-pal</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/the-cloud-studio-asks-for-format-as-a-json-object-pal</guid>
      <description>&lt;p&gt;On a review call I showed a colleague how I get output formats, durations and limits out of the video services we depend on, without keeping two browser tabs open for the whole afternoon. These are the checks I run from a shell.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you can pull from each service
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Output format and resolution.&lt;/strong&gt; The CDN URLs in the model metadata usually carry the codec and dimensions, for example a &lt;code&gt;video.mp4&lt;/code&gt; with a &lt;code&gt;Content-Type&lt;/code&gt; of &lt;code&gt;video/mp4&lt;/code&gt; and a resolution in the filename. The model listing rarely shows it, so extract the URL and read the headers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duration and frame count.&lt;/strong&gt; When there is an ffprobe-friendly URL, &lt;code&gt;ffprobe -v error -show_entries format=duration -of csv=p=0 &amp;lt;url&amp;gt;&lt;/code&gt; takes a second and is the only number I trust across providers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Limits.&lt;/strong&gt; Most services return their limits in a short &lt;code&gt;429&lt;/code&gt; body or a rate-limit header. Capture the raw response once instead of retrying blindly; a steady cadence of timed calls invites throttling, so add a delay of a few seconds when you can.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A small runner
&lt;/h2&gt;

&lt;p&gt;Keep one script that loops over a list of endpoints, and prints a table at the end:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; svc &lt;span class="k"&gt;in&lt;/span&gt; kling4 seedance wan&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;status&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s -o /tmp/&lt;span class="nv"&gt;$svc&lt;/span&gt;.json -w &lt;span class="s1"&gt;'%{http_code}'&lt;/span&gt; https://&lt;span class="nv"&gt;$svc&lt;/span&gt;.example/api/...&lt;span class="o"&gt;)&lt;/span&gt;
  &lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%-10s %s\n'&lt;/span&gt; &lt;span class="s2"&gt;"$svc"&lt;/span&gt; &lt;span class="s2"&gt;"$status"&lt;/span&gt;
  sleep 3
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it from whatever your real account is, so the results describe what a customer sees, not what a test harness sees. For accounts with a dashboard, also check the usage page, because the API totals and the dashboard totals disagree more often than you would think.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the notes live
&lt;/h2&gt;

&lt;p&gt;The wait times, the Korean-UI quirks and the per-model credits all end up in one markdown file, next to notes from the other services in &lt;a href="https://github.com/barasel200-bit/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;github.com/barasel200-bit/uvicorn-teardown-notes&lt;/a&gt;, and I update it after every test run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why bother
&lt;/h2&gt;

&lt;p&gt;The point is not to benchmark every service. It is to notice when a limit changes before a customer does, and to know which check to rerun after an upgrade. Ten minutes of shell work per month saved us twice this quarter already.&lt;/p&gt;

</description>
      <category>ai</category>
    </item>
    <item>
      <title>What I keep in CLAUDE.md, and what I stopped putting in it</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:38:49 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/what-i-keep-in-claudemd-and-what-i-stopped-putting-in-it-4kbf</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/what-i-keep-in-claudemd-and-what-i-stopped-putting-in-it-4kbf</guid>
      <description>&lt;p&gt;Writing a CLAUDE.md is easy. Keeping it useful three months later is the part nobody documents, so here is what changed for us after a few rounds with Claude Code on a mid-sized codebase that mixes Python services and a TypeScript frontend.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we put in it
&lt;/h2&gt;

&lt;p&gt;Four sections, in this order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Commands&lt;/strong&gt; that are not obvious: how to run one test file, how to seed the local database, which formatter comes first when two disagree.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Layout&lt;/strong&gt; of the two or three directories a new person touches first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conventions&lt;/strong&gt; that a linter cannot enforce, for example "services take a settings object rather than reading environment variables directly".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Things to avoid&lt;/strong&gt;, each with one sentence of why: "do not add new migrations in pull requests that also rename models, they are impossible to review together".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We deliberately left out tutorials. Anything that repeats the README drifts out of sync with it and teaches the model the wrong version.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we learned about size
&lt;/h2&gt;

&lt;p&gt;The file stayed under about 80 lines. The first draft was 300, and the results were worse. Long files with contradictory examples made Claude Code pick a convention at random, and the longer the file, the harder it was for a human reviewer to notice the contradiction. Every line we keep has to justify itself against a real mistake.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two rules that keep answers short
&lt;/h2&gt;

&lt;p&gt;Context accumulates: tool outputs, diffs, and repeated explanations. When working on a small, mechanical change, tell the agent to work in short, direct terms and skip restating the plan. We settled on a routine that caps each reply at roughly 50 words unless the task is exploratory. It fits especially well in long sessions, where verbose answers crowd out the code the model actually needs to read.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review it like code
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt; goes through the same pull request as the code it describes. When a review comment explains why something must be done a certain way, that is a signal to move the reason into the file, not just resolve the thread. Over two months the file turned into a short, accurate record of our decisions, and answers about the project do not start from zero.&lt;/p&gt;

&lt;p&gt;I keep the same habit for my own notes on Python services: the checks I run before an upgrade live in &lt;a href="https://www.npmjs.com/package/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;npmjs.com/package/uvicorn-teardown-notes&lt;/a&gt;, because writing them down was how I found out which ones I actually follow.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we would do differently
&lt;/h2&gt;

&lt;p&gt;Start with ten lines. Add one only after the same mistake happens twice. The file you end up with is smaller than you expect and used far more than the 300-line one.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>ai</category>
    </item>
    <item>
      <title>What my deploy runbook got wrong about SIGTERM on a UNIX socket</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 03 Dec 2026 18:44:26 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/what-my-deploy-runbook-got-wrong-about-sigterm-on-a-unix-socket-3mhi</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/what-my-deploy-runbook-got-wrong-about-sigterm-on-a-unix-socket-3mhi</guid>
      <description>&lt;p&gt;Our deploy runbook had one line under "verify": restart the service, wait for the port to accept a connection, move on. It worked for years because the failures we cared about did not accept connections: a worker that could not bind its socket died loudly, and we noticed.&lt;/p&gt;

&lt;p&gt;Then we moved a couple of services to UNIX sockets so a sidecar could talk to them over a path. The port check kept passing while the service got worse. A rolling restart could leave two processes behind the same path, both logging "Uvicorn running on unix socket /run/app.sock", and only one of them receiving traffic. Requests were fine until the busy one retired for its periodic restart, and then the path belonged to the wrong owner until the next deploy.&lt;/p&gt;

&lt;p&gt;The lesson was not "add another check", it was know what the teardown actually waits for. That second one is the hard part to test by accident, and it is easy to test on purpose with a small script: start the service, send &lt;code&gt;SIGTERM&lt;/code&gt; to the parent, and look at how long the workers took to finish. Running it was the step I had skipped at work, and the script itself is one of the &lt;a href="https://www.npmjs.com/package/uvicorn-teardown-notes" rel="noopener noreferrer"&gt;notes I keep&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three lines we actually monitor
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is a server still listening on the path we think?&lt;/strong&gt; The probe starts &lt;code&gt;uvicorn --uds &amp;lt;path&amp;gt;&lt;/code&gt;, waits until the path is a socket, sends &lt;code&gt;SIGTERM&lt;/code&gt; to the parent, and prints the exit code, time to exit, and whether the path was left behind. Exit code &lt;code&gt;3&lt;/code&gt; is uvicorn's STARTUP_FAILURE, which is what &lt;code&gt;--uds&lt;/code&gt; and &lt;code&gt;--fd&lt;/code&gt; return when something else already holds the socket. That alone turned the "two processes, one path" incident into a 3 a.m. page that is clear in one line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Did shutdown finish or did it time out?&lt;/strong&gt; Compare the elapsed teardown with your rollout's grace period. If teardown equals the grace period almost exactly, your shutdown hook is not finishing; it is being cut. Log the number on every deploy, not only on failures.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who holds the path afterwards?&lt;/strong&gt; &lt;code&gt;lsof -U | grep app.sock&lt;/code&gt; in the container, before and after. More than one PID means a foreign socket exists, and the next start will adopt whichever one is left.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python probe.py
exit=0 teardown=1.84s path_left=False
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Things I assumed that turned out wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A port that answers is not readiness.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;curl&lt;/code&gt; against the service as the health check was measuring the edge, not the worker.&lt;/li&gt;
&lt;li&gt;SIGTERM means the same thing to the parent process and to its workers. Half the time it does not, and the difference is not in the docs you first read.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The runbook line now says "run the probe, paste the output in the deploy ticket". The cost is under a minute per service. If your team also runs a few ASGI services behind long-lived sockets, this is a cheap first step. What else do you check after a rolling restart that your load balancer does not see?&lt;/p&gt;

</description>
      <category>python</category>
      <category>devops</category>
    </item>
    <item>
      <title>Keeping AI video subjects stable: a checklist that catches drift early</title>
      <dc:creator>Xinyue Zhan</dc:creator>
      <pubDate>Thu, 26 Nov 2026 20:27:40 +0000</pubDate>
      <link>https://dev.to/xinyue_zhan_35ea4c0965196/keeping-ai-video-subjects-stable-a-checklist-that-catches-drift-early-2o2m</link>
      <guid>https://dev.to/xinyue_zhan_35ea4c0965196/keeping-ai-video-subjects-stable-a-checklist-that-catches-drift-early-2o2m</guid>
      <description>&lt;p&gt;Every team that ships AI video hits the same wall: the first second looks great, the third second starts to melt, and by the fifth the face belongs to someone else. It is tempting to blame the model, but most drift I have debugged comes from shot design and review habits, not from a missing feature.&lt;/p&gt;

&lt;p&gt;Here is the checklist I run before and after every generation. It is model-agnostic; I use it with open-weight video models as well as hosted tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Write a continuity card before you write a prompt
&lt;/h2&gt;

&lt;p&gt;Pick six attributes that must not change between shots: face/identity, hair, wardrobe, light direction, lens feel, and background geometry. Write them once, in plain language, and paste them verbatim into every prompt in the sequence.&lt;/p&gt;

&lt;p&gt;The failure mode is re-describing the character each time with slightly different words ("silver jacket" becomes "grey blazer"), which quietly gives the model permission to redesign them. A continuity card turns that into a copy-paste instead of a memory test.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Give each shot a motion budget
&lt;/h2&gt;

&lt;p&gt;A prompt that asks for a camera push, a walking subject, wind in the hair and a turning head is asking for four motions at once. Models handle this by averaging them, and averaging is what produces rubber limbs.&lt;/p&gt;

&lt;p&gt;Split motion into three slots and spend only one or two per shot:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Camera:&lt;/strong&gt; push in, orbit, static, handheld drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subject:&lt;/strong&gt; walk, turn, gesture, sit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment:&lt;/strong&gt; wind, rain, traffic, crowd.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the shot needs a camera move and a subject walk, drop the environment motion. This one change removed most of the limb artifacts in my own tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Anchor identity with a frame, not with adjectives
&lt;/h2&gt;

&lt;p&gt;Words like "same woman as before" carry no pixel information. When the tool supports image-to-video, feed it a clean reference frame: neutral expression, even light, face at roughly 15-20% of the frame height, no strong profile.&lt;/p&gt;

&lt;p&gt;Extreme angles and heavy shadows are where identity models fall apart, because half the face is missing from the input. If you must use a profile, generate it last in the sequence and keep it short.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Cut before the drift starts
&lt;/h2&gt;

&lt;p&gt;Long single generations accumulate error the way a phone call accumulates noise. I plan 3-4 second shots and stitch them, matching the last frame of one shot to the first frame of the next.&lt;/p&gt;

&lt;p&gt;For quick text-to-video checks I keep a browser tab on &lt;a href="https://wan-3.io/" rel="noopener noreferrer"&gt;Wan 3.0&lt;/a&gt; open, because iterating four short shots is faster than re-rolling one long one and it makes the bad shot obvious immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Review with a contact sheet, not a video player
&lt;/h2&gt;

&lt;p&gt;Scrubbing a timeline hides small errors. Instead, export the first, middle and last frame of every shot into one grid and compare columns:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Pass condition&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Identity&lt;/td&gt;
&lt;td&gt;same jawline, hairline, eye spacing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wardrobe&lt;/td&gt;
&lt;td&gt;same fabric, same folds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Light&lt;/td&gt;
&lt;td&gt;shadow direction unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hands&lt;/td&gt;
&lt;td&gt;five fingers, consistent scale&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Background&lt;/td&gt;
&lt;td&gt;no geometry sliding between frames&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a shot fails two or more rows, regenerate it rather than trying to fix it downstream in an editor. Repair work on melted frames almost always looks worse than a fresh 4-second attempt.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Log the prompt, seed and model version
&lt;/h2&gt;

&lt;p&gt;Drift is only reproducible if you can replay it. Keep a one-line log per generation: model version, seed, prompt hash, reference image, and a verdict. When a model update lands, you can re-run the winning configuration instead of rediscovering it.&lt;/p&gt;

&lt;p&gt;None of this is glamorous. But stability in AI video is mostly bookkeeping: fixed descriptions, a motion budget, short shots, and a review loop that compares frames instead of vibes. Do that and the model stops being the variable you blame.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
