<?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: Ross Peili</title>
    <description>The latest articles on DEV Community by Ross Peili (@rosspeili).</description>
    <link>https://dev.to/rosspeili</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%2F308648%2Fe3062c7b-4d7d-4ba9-aea5-f0ea4fef4776.jpg</url>
      <title>DEV Community: Ross Peili</title>
      <link>https://dev.to/rosspeili</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rosspeili"/>
    <language>en</language>
    <item>
      <title>5 Real-World Engineering Lessons From Solo Building a Multimodal AI Workspace</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Thu, 03 Dec 2026 16:39:01 +0000</pubDate>
      <link>https://dev.to/arpa/5-real-world-engineering-lessons-from-solo-building-a-multimodal-ai-workspace-fjj</link>
      <guid>https://dev.to/arpa/5-real-world-engineering-lessons-from-solo-building-a-multimodal-ai-workspace-fjj</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Real code patterns from ARPA.CHAT v0.38 for gapless Web Audio, Firestore transaction refunds, race-free chat switching, split-screen container queries, and smooth mobile touch physics.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;I have been solo building &lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;ARPA.CHAT&lt;/a&gt; since last year. If you have ever tried shipping a full multimodal AI platform by yourself (web, PWA, real-time voice, async image and video generation, split-screen apps, auth, mailing, cloud infra, security, you name it...), you already know the deal. Some weeks you feel like you are inventing the future, while others feel like you spend three hours staring at a browser tab wondering why a card refuses to untilt on an iPhone.&lt;/p&gt;

&lt;p&gt;If you missed the earlier chapters of this journey, you can catch up here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/arpa/stop-repeating-yourself-to-ai-meet-arpa-umbra-12-45j7"&gt;Stop Repeating Yourself to AI: Meet ARPA Umbra 1.2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/arpa/building-an-ai-chat-interface-in-public-live-travel-maps-a-3d-chemistry-lab-async-media-and-25gf"&gt;Building An AI Chat Interface In Public: Live Travel &amp;amp; Maps, a 3D Chemistry Lab, Async Media, and How We Cut Startup Payloads by 99%&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/arpa/how-i-gave-my-ai-agent-live-flights-stays-full-travelpayouts-guide-20oh"&gt;How I Gave My AI Agent Live Flights &amp;amp; Stays (Full Travelpayouts Guide)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Right after publishing the Umbra 1.2 launch post, I thought the next stretch would be a quick polish pass. Instead, between v0.36 and today's &lt;strong&gt;v0.38.0&lt;/strong&gt; release, we ended up rebuilding some of the hardest parts of the stack from the ground up.&lt;/p&gt;

&lt;p&gt;This is a transparent build-in-public breakdown of what actually changed, the five most frustrating bugs we ran into, the alternatives that were considered, and the exact patterns that solved them. I kept the code snippets generalized so you can drop them straight into your own React, FastAPI, Web Audio, or serverless stack.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where We Are Now (v0.36 to v0.38)
&lt;/h2&gt;

&lt;p&gt;Before getting into the war stories, here is what landed on ARPA.CHAT since the Umbra 1.2 release:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ARPA VOX-1 Live Voice Upgrade&lt;/strong&gt;: Expanded our Verbal Spectrum from 8 to &lt;strong&gt;14 curated voices&lt;/strong&gt; (Feminine 1 to 7 and Masculine 1 to 7) with instant zero-API &lt;code&gt;.mp3&lt;/code&gt; previews in Settings and an interactive Voice Radio on &lt;a href="https://arpa.chat/agents" rel="noopener noreferrer"&gt;arpa.chat/agents&lt;/a&gt;. Live Voice also gained &lt;strong&gt;native tool calling&lt;/strong&gt;, so you can literally ask your companion out loud to generate an image, render a 10-second video, open Chess Arena, launch Chemistry Class, or wrap up the call cleanly when you say goodbye.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Reference Dream Engine and Deploy-Safe Async Jobs&lt;/strong&gt;: You can now attach up to 5 reference images in a single prompt, and both images and 10-second videos run under a hard 240-second timeout, a 5-minute stale-job reaper, and atomic idempotent quota refunds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;0ms Conversation Switching&lt;/strong&gt;: Recent threads hydrate instantly from a &lt;code&gt;uid&lt;/code&gt;-scoped in-memory LRU cache with network-adaptive freshness and 4-variant shimmer skeletons.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Responsive Split-Screen Cards&lt;/strong&gt;: Container queries keep every card (Maps, Travel, Weather, Code Diff, Compare, Media) crisp even when Chess Arena or the 3D Chemistry Class shrinks the chat pane.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive 3D &lt;code&gt;/umbra&lt;/code&gt; Hero and Mobile Polish&lt;/strong&gt;: A lazy-loaded Three.js sculptural hero on &lt;a href="https://arpa.chat/umbra" rel="noopener noreferrer"&gt;arpa.chat/umbra&lt;/a&gt;, finger-tracking mobile 3D model cards, a 2D physics file-pill dropzone on &lt;code&gt;/agents&lt;/code&gt;, and a one-tap mobile &lt;code&gt;OFFLINE · RETRY&lt;/code&gt; header pill.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Visit &lt;a href="https://arpa.chat/changelog" rel="noopener noreferrer"&gt;here&lt;/a&gt; for the full Changelog. Now let us talk about the stuff that actually broke along the way.&lt;/p&gt;




&lt;h2&gt;
  
  
  Bug 1: The Follow-Up Voice Session That Replied in Text Only (Silent First Turn)
&lt;/h2&gt;

&lt;p&gt;This one almost drove me crazy.&lt;/p&gt;

&lt;p&gt;Here was the exact repro:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open a brand-new chat and tap the mic button.&lt;/li&gt;
&lt;li&gt;Speak. The companion listens, replies with both voice audio and live text transcript, and the session closes cleanly.&lt;/li&gt;
&lt;li&gt;Now tap the mic button a second time in the same chat for a follow-up.&lt;/li&gt;
&lt;li&gt;Speak. The live text transcript streams onto the screen, &lt;strong&gt;but zero audio comes out of the speakers&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Speak one more time in that same second session. Suddenly the audio works again!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;My first instinct was completely wrong. I assumed the backend WebSocket session was mishandling conversation history on follow-up Turn 1 and returning text-only frames. Instead of guessing, I wrote a tiny standalone probe script to log the raw WebSocket audio bytes coming off the wire.&lt;/p&gt;

&lt;p&gt;Result? &lt;strong&gt;127 KB of valid 24kHz PCM audio arrived on follow-up Turn 1.&lt;/strong&gt; The backend was innocent. The bug was 100% in our browser Web Audio scheduler.&lt;/p&gt;

&lt;p&gt;Here is what was happening. When Session 1 ended, we closed the old &lt;code&gt;AudioContext&lt;/code&gt; (&lt;code&gt;playbackContextRef.current.close()&lt;/code&gt;), &lt;strong&gt;but we never reset &lt;code&gt;nextPlaybackTimeRef.current = 0&lt;/code&gt;&lt;/strong&gt;. Suppose Session 1 ran for 18 seconds. &lt;code&gt;nextPlaybackTimeRef.current&lt;/code&gt; was sitting at &lt;code&gt;18.4&lt;/code&gt;. When Session 2 created a brand-new &lt;code&gt;AudioContext&lt;/code&gt;, its clock started back at &lt;code&gt;0.0&lt;/code&gt;. Our gapless scheduler ran &lt;code&gt;Math.max(ctx.currentTime, nextPlaybackTimeRef.current)&lt;/code&gt;, which dutifully scheduled Session 2's Turn 1 audio &lt;strong&gt;18.4 seconds into the future&lt;/strong&gt;. By the time Turn 2 arrived, the user's interruption cleared the queue and reset the clock, which is why Turn 2 magically played!&lt;/p&gt;

&lt;p&gt;We also hit a related mobile Safari quirk: if you create an &lt;code&gt;AudioContext&lt;/code&gt; asynchronously inside a WebSocket &lt;code&gt;onmessage&lt;/code&gt; callback instead of synchronously inside the user's mic button click, iOS starts it in &lt;code&gt;suspended&lt;/code&gt; state and silently drops your first chunks.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix Pattern
&lt;/h3&gt;

&lt;p&gt;Always pre-create and unlock the &lt;code&gt;AudioContext&lt;/code&gt; synchronously inside the click handler, always reset the playback cursor to &lt;code&gt;0&lt;/code&gt; on teardown, and guard chunk scheduling with &lt;code&gt;ctx.resume()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1. Inside the mic button click handler (synchronous user gesture)&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;unlockPlaybackContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MutableRefObject&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;AudioContext&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"closed"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;AudioContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;sampleRate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;24000&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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"suspended"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resume&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="k"&gt;catch&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="o"&gt;=&amp;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="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// 2. Inside stopVoiceSession() teardown&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;resetPlaybackQueue&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MutableRefObject&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;AudioContext&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;nextTimeRef&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MutableRefObject&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="o"&gt;&amp;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;nextTimeRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s2"&gt;"closed"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&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="k"&gt;catch&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="o"&gt;=&amp;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="n"&gt;ctxRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// 3. When scheduling an incoming 24kHz PCM chunk&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;enqueuePcmChunk&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AudioContext&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AudioBuffer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;nextTimeRef&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;React&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MutableRefObject&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="o"&gt;&amp;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;schedule&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createBufferSource&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;buffer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;buffer&lt;/span&gt;
    &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;destination&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;startAt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currentTime&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mf"&gt;0.01&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nextTimeRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;startAt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;nextTimeRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;startAt&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;duration&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"suspended"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resume&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;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;schedule&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;catch&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="o"&gt;=&amp;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="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;schedule&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Alternative considered:&lt;/strong&gt; Showing a "Tap to unmute" banner if &lt;code&gt;ctx.state === "suspended"&lt;/code&gt;. We rejected that because tapping the mic button is already a user gesture. Fixing the lifecycle removed the need for extra UI chrome.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Takeaway:&lt;/strong&gt; Whenever you see a "works on Turn 2, broken on Turn 1" bug in Web Audio, check your time cursor refs before blaming your backend.&lt;/p&gt;




&lt;h2&gt;
  
  
  Bug 2: Deploy-Safe Async Video Jobs and Double Quota Refunds
&lt;/h2&gt;

&lt;p&gt;Generating a 10-second video takes real time. We run images and videos asynchronously in FastAPI &lt;code&gt;BackgroundTasks&lt;/code&gt; on Cloud Run, while the frontend listens to Firestore &lt;code&gt;onSnapshot&lt;/code&gt; so you can switch chats or refresh the page without losing your render.&lt;/p&gt;

&lt;p&gt;That worked great in happy-path testing. Then reality showed up with two ugly edge cases:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Orphaned jobs during deploys&lt;/strong&gt;: If I push a new Cloud Run revision while a user has a video job running, the container shuts down mid-task. The Firestore job document stays stuck at &lt;code&gt;status: "processing"&lt;/code&gt; forever, leaving a spinning card in the user's chat and burning one of their daily video credits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrent double-refund races&lt;/strong&gt;: Once we added a stale-job reaper, we realized a slow worker finishing with an error at the exact same millisecond the reaper fired could call &lt;code&gt;decrement_user_usage()&lt;/code&gt; twice, giving the user free phantom quota or pushing usage counts negative. Even worse, if a job started at 23:59 UTC and failed at 00:02 UTC, refunding "today's" date bucket would refund the wrong day.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Why We Did Not Spin Up Celery + Redis
&lt;/h3&gt;

&lt;p&gt;As a solo dev, adding Redis, Celery workers, and a separate beat scheduler just to guard 2-minute media jobs is massive operational overhead. We already had Firestore, which supports &lt;strong&gt;ACID transactions&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix Pattern (3-Layer Defense)
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Hard worker timeout (240s)&lt;/strong&gt;: Wrap every upstream media call in &lt;code&gt;asyncio.wait_for(..., timeout=240.0)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lazy 5-minute stale-job reaper&lt;/strong&gt;: Any job still &lt;code&gt;pending&lt;/code&gt; or &lt;code&gt;processing&lt;/code&gt; past 300 seconds gets reaped on the next usage check, generation request, or client heartbeat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Atomic one-time refund transaction&lt;/strong&gt;: Both the worker failure path and the reaper call the exact same Firestore transactional claim. It checks &lt;code&gt;status != "completed"&lt;/code&gt; and &lt;code&gt;quotaRefunded != True&lt;/code&gt;, sets &lt;code&gt;quotaRefunded = True&lt;/code&gt;, and decrements the &lt;strong&gt;original &lt;code&gt;usageDate&lt;/code&gt; bucket&lt;/strong&gt; clamped at &lt;code&gt;max(0, current - 1)&lt;/code&gt;.
&lt;/li&gt;
&lt;/ol&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;google&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cloud&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;firestore&lt;/span&gt;

&lt;span class="nd"&gt;@firestore&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;transactional&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;claim_failure_and_refund&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;transaction&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;job_ref&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;usage_ref&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error_msg&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="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;job_snap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;job_ref&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="n"&gt;transaction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;transaction&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;job_snap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;

    &lt;span class="n"&gt;job&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;job_snap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="c1"&gt;# Never overwrite a completed job, and never refund twice&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;job&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;"status"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"completed"&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;job&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;"quotaRefunded"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;

    &lt;span class="n"&gt;transaction&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;job_ref&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"failed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;error_msg&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"quotaRefunded"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&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="c1"&gt;# Decrement the exact UTC date bucket that was charged, clamped at 0&lt;/span&gt;
    &lt;span class="n"&gt;usage_snap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;usage_ref&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="n"&gt;transaction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;transaction&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;usage_snap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;usage_snap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"count"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;transaction&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;usage_ref&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"count"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&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="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the frontend, we also replaced the old broken empty &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt; box on failure with a compact, minimal failed card that displays a clean &lt;code&gt;Quota refunded&lt;/code&gt; pill. No black rectangles, no stuck spinners, no lost credits.&lt;/p&gt;




&lt;h2&gt;
  
  
  Bug 3: Rapid Chat Switching Race Conditions and Cold-Load Lag
&lt;/h2&gt;

&lt;p&gt;When you click between 4 or 5 conversations quickly on mobile data, naive &lt;code&gt;useEffect&lt;/code&gt; fetching turns into a race condition festival. Request A (slow, 80-message thread) finishes &lt;em&gt;after&lt;/em&gt; Request B (fast, 2-message thread) and silently overwrites your active chat with the wrong conversation.&lt;/p&gt;

&lt;p&gt;On top of that, hitting the backend on every single sidebar click makes a web app feel sluggish even when the server is fast.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix Pattern
&lt;/h3&gt;

&lt;p&gt;We combined three small primitives:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A &lt;strong&gt;&lt;code&gt;uid&lt;/code&gt;-scoped in-memory LRU cache&lt;/strong&gt; (capped at 15 threads, wiped on sign-out) so revisiting recent chats hydrates in &lt;strong&gt;0ms&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network-adaptive SWR freshness&lt;/strong&gt; using &lt;code&gt;navigator.connection&lt;/code&gt; plus an exponential moving average of fetch RTT (30s on fast Wi-Fi, 60s moderate, 3 minutes on slow 2G/3G or Save-Data) so slow connections skip redundant refetches unless the thread has unread updates or a message count delta.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;monotonic &lt;code&gt;loadEpochRef&lt;/code&gt; + &lt;code&gt;AbortController&lt;/code&gt;&lt;/strong&gt; so any in-flight request is aborted and ignored the instant you click another thread.
&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;loadEpochRef&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useRef&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&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;abortRef&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;AbortController&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&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;openConversation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conversationId&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="n"&gt;abortRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abort&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;controller&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;AbortController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="n"&gt;abortRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;controller&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;epoch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="n"&gt;loadEpochRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cached&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;lruCache&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="n"&gt;conversationId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cached&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;setMessages&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cached&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&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;cached&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fetchedAt&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nf"&gt;getAdaptiveTtlMs&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="k"&gt;return&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;try&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;fresh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetchMessages&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conversationId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;controller&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;signal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;epoch&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="n"&gt;loadEpochRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="n"&gt;lruCache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;conversationId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;fresh&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fetchedAt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&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="nf"&gt;setMessages&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fresh&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"AbortError"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="n"&gt;err&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;&lt;strong&gt;Alternative considered:&lt;/strong&gt; Pulling in TanStack Query for the entire chat state tree. For a solo codebase with custom streaming merges and optimistic async media placeholders, a 90-line dedicated LRU + epoch guard gave us 100% predictable behavior with zero library impedance mismatch.&lt;/p&gt;




&lt;h2&gt;
  
  
  Bug 4: Split-Screen Cards Exploding on 1440px Desktop Monitors
&lt;/h2&gt;

&lt;p&gt;Here is a classic responsive design trap. You build rich cards (interactive Maps, Travel itineraries, Weather grids, Code Diffs, Media players) using Tailwind breakpoints like &lt;code&gt;sm:&lt;/code&gt; and &lt;code&gt;md:&lt;/code&gt;. They look great on mobile (375px) and great on desktop (1440px).&lt;/p&gt;

&lt;p&gt;Then you ship a resizable split-screen workspace (like our Chess Arena and 3D Chemistry Class). Now the user is on a 1440px monitor, so &lt;code&gt;lg:&lt;/code&gt; is active, &lt;strong&gt;but the chat column itself is only 430px wide&lt;/strong&gt;. Every single desktop grid inside the chat column overflows horizontally.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix Pattern: Native CSS Container Queries
&lt;/h3&gt;

&lt;p&gt;Instead of threading an &lt;code&gt;isSplitScreen&lt;/code&gt; boolean through 15 components and praying nothing gets out of sync, we wrapped the chat feed in a single CSS container (&lt;code&gt;container-type: inline-size; container-name: chat-pane&lt;/code&gt;) and defined three width tiers that respond to the &lt;strong&gt;pane width&lt;/strong&gt;, not the browser window:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.chat-pane-container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;container-type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;inline-size&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;container-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;chat-pane&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="cm"&gt;/* Medium-narrow pane (split-screen or tablet) */&lt;/span&gt;
&lt;span class="k"&gt;@container&lt;/span&gt; &lt;span class="nt"&gt;chat-pane&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;620px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.chat-card-grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nc"&gt;.chat-action-label&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;none&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="cm"&gt;/* Ultra-compact pane (tight split-screen or narrow phone) */&lt;/span&gt;
&lt;span class="k"&gt;@container&lt;/span&gt; &lt;span class="nt"&gt;chat-pane&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;440px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.chat-desktop-avatar&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;none&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;We paired this with a &lt;code&gt;ResizeObserver&lt;/code&gt;-driven priority-plus (&lt;code&gt;+&lt;/code&gt;) toolbar on the chat composer so overflowing action icons fold cleanly into a popover when you drag the split divider narrower. Zero prop drilling, real-time smooth resizing.&lt;/p&gt;




&lt;h2&gt;
  
  
  Bug 5: Mobile 3D Cards Getting Stuck After One Tap
&lt;/h2&gt;

&lt;p&gt;On &lt;a href="https://arpa.chat/umbra" rel="noopener noreferrer"&gt;arpa.chat/umbra&lt;/a&gt;, each Umbra 1.2 model card has a subtle 3D perspective tilt and specular sheen that follows your mouse on desktop. On mobile, users reported a weird glitch: tapping a card tilted it to one corner and froze it there permanently, and dragging your finger across the card barely worked because the page kept trying to scroll.&lt;/p&gt;

&lt;p&gt;Two separate browser quirks were colliding:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Synthetic &lt;code&gt;mousemove&lt;/code&gt; after tap&lt;/strong&gt;: Mobile browsers fire &lt;code&gt;touchstart&lt;/code&gt;, then &lt;code&gt;touchend&lt;/code&gt;, and then a &lt;strong&gt;synthetic &lt;code&gt;mousemove&lt;/code&gt;&lt;/strong&gt; at the tap coordinates. Our &lt;code&gt;onMouseMove&lt;/code&gt; handler caught that synthetic event and tilted the card. Because touch devices never fire &lt;code&gt;mouseleave&lt;/code&gt;, the card stayed frozen forever.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scroll vs. drag fight&lt;/strong&gt;: React's &lt;code&gt;onTouchMove&lt;/code&gt; is passive by default, so you cannot selectively &lt;code&gt;preventDefault()&lt;/code&gt; once you realize the user is inspecting the 3D card instead of scrolling the page.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The Fix Pattern
&lt;/h3&gt;

&lt;p&gt;Switch hover tilt to &lt;code&gt;onPointerMove&lt;/code&gt; / &lt;code&gt;onPointerLeave&lt;/code&gt; guarded strictly by &lt;code&gt;e.pointerType === "mouse"&lt;/code&gt;, and attach a &lt;strong&gt;native non-passive &lt;code&gt;touchmove&lt;/code&gt;&lt;/strong&gt; listener with a quick gesture-intent gate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;startX&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;startY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;startTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"undecided"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"tilt"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"scroll"&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"undecided"&lt;/span&gt;

&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"touchstart"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;touches&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
  &lt;span class="n"&gt;startX&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;touches&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clientX&lt;/span&gt;
  &lt;span class="n"&gt;startY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;touches&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clientY&lt;/span&gt;
  &lt;span class="n"&gt;startTime&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;performance&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"undecided"&lt;/span&gt;
  &lt;span class="nf"&gt;updateTilt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;startX&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;startY&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="n"&gt;passive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"touchmove"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"scroll"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;touches&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;touches&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"undecided"&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;dx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clientX&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;startX&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;dy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clientY&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;startY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hypot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dy&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;7&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;held&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;performance&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&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;startTime&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;130&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;held&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;dx&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;dy&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"tilt"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"scroll"&lt;/span&gt;
        &lt;span class="nf"&gt;resetTilt&lt;/span&gt;&lt;span class="p"&gt;(&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="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"tilt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cancelable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;preventDefault&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;updateTilt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clientX&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clientY&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="n"&gt;passive&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&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;Now a quick vertical swipe scrolls the page natively with zero friction, while a horizontal drag or brief press-and-move locks into smooth 360-degree finger tracking and springs back flat the moment you lift your thumb.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Give ARPA.CHAT a Try Right Now?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp4funqqwvr88db6d737v.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%2Fp4funqqwvr88db6d737v.png" alt=" " width="800" height="412"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are curious what all of this feels like in practice, &lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;ARPA.CHAT&lt;/a&gt; is a sovereign multimodal AI companion workspace built around &lt;strong&gt;three distinct Umbra 1.2 cognitive registers&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mist&lt;/strong&gt; (&lt;code&gt;umbra-1.2-mist&lt;/code&gt;): Fast, calm, laconic, built for code, architecture, and daily execution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dusk&lt;/strong&gt; (&lt;code&gt;umbra-1.2-dusk&lt;/code&gt;): Warm, balanced, naturally bilingual (English and Greek), great for everyday thinking and travel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eclipse&lt;/strong&gt; (&lt;code&gt;umbra-1.2-eclipse&lt;/code&gt;): Serious, deep, and contrarian when you want a partner that pushes back instead of blindly agreeing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every model natively connects to &lt;strong&gt;ARPA VOX-1&lt;/strong&gt; (14-voice live bidirectional voice with tool calling), &lt;strong&gt;ARPA Dream Engine&lt;/strong&gt; (multi-reference images and 10-second videos), &lt;strong&gt;Chemistry Class&lt;/strong&gt; (118-element 3D WebGL Bohr lab), &lt;strong&gt;Chess Arena&lt;/strong&gt;, dynamic Maps, Travel cards, and smart file attachments. No phone number verification, no ad tracking, no raw voice audio storage.&lt;/p&gt;

&lt;p&gt;Right now, &lt;strong&gt;everything is in Open Access and completely free for all users through January&lt;/strong&gt;. No credit card, no paywalls, just sign in with Google or any email (Magic Link or 6-digit code) and push it as hard as you want.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Next
&lt;/h2&gt;

&lt;p&gt;With v0.38.0 shipped and hardened, the next milestones are already queued up:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Sustainable Tokenomics and Stripe Layer&lt;/strong&gt;: Designing fair, transparent tiers once Open Access wraps up in January, without breaking the clean experience for free users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More Split-Screen Education Labs&lt;/strong&gt;: Expanding the Education drawer beyond Chemistry Class into Physics, Math, Quantum, and Biology.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sovereign Umbra API (&lt;code&gt;api.arpa.chat&lt;/code&gt;)&lt;/strong&gt;: Bringing Mist, Dusk, and Eclipse to developers with drop-in compatibility plus native ARPA protocols (&lt;code&gt;ARPAHLS/skillware&lt;/code&gt;, &lt;code&gt;ARPAHLS/aura&lt;/code&gt;, and &lt;code&gt;ARPAHLS/mnemolink&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  A Quick Note to Solo Devs, AI-Native Engineers, and Solopreneurs
&lt;/h2&gt;

&lt;p&gt;If you are building something ambitious by yourself right now, here is your reminder that &lt;strong&gt;the unglamorous commits are usually the ones that turn a side project into a real product&lt;/strong&gt;. Nobody tweets about resetting a Web Audio timestamp ref or writing an atomic Firestore refund transaction, yet those exact fixes are what make a user trust your app enough to come back tomorrow.&lt;/p&gt;

&lt;p&gt;Keep shipping in small, honest increments. Test your own product on a real phone with spotty reception. Write down what broke so the next builder saves three hours. You do not need a 40-person team to build software that feels intentional, fast, and alive.&lt;/p&gt;

&lt;p&gt;If you try out &lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;ARPA.CHAT&lt;/a&gt; or adapt any of the patterns above, drop a comment below. I read every single one! &amp;lt;3&lt;/p&gt;

</description>
      <category>ai</category>
      <category>solodev</category>
      <category>buildinpublic</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Stop Repeating Yourself to AI: Meet ARPA Umbra 1.2</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Mon, 30 Nov 2026 17:18:29 +0000</pubDate>
      <link>https://dev.to/arpa/stop-repeating-yourself-to-ai-meet-arpa-umbra-12-45j7</link>
      <guid>https://dev.to/arpa/stop-repeating-yourself-to-ai-meet-arpa-umbra-12-45j7</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;What ARPA Umbra 1.2 is, why Mist, Dusk, and Eclipse work as separate cognitive registers, how beginners can customize them in minutes, and what comes next with Skillware, AURA, and MnemoLink.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Most AI chat interfaces treat every conversation like a blank search box. You open a tab, type into the same generic assistant, repeat your context for the hundredth time, and hope the tone lands somewhere close to what you needed.&lt;/p&gt;

&lt;p&gt;With &lt;strong&gt;ARPA Umbra 1.2&lt;/strong&gt; on &lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;ARPA.CHAT&lt;/a&gt;, we built a sovereign multimodal model series around a different premise: &lt;strong&gt;intelligence shouldn't be a one-size-fits-all customer-service voice.&lt;/strong&gt; Instead of forcing one model to be simultaneously terse, warm, and contrarian, Umbra splits cognition into &lt;strong&gt;three distinct registers&lt;/strong&gt;, pairs them with &lt;strong&gt;native visual synthesis, real-time voice, and split-screen workspaces&lt;/strong&gt;, and gives you a customization system that works without requiring you to become a prompt engineer.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. What Is Umbra? (And Why the Name?)
&lt;/h2&gt;

&lt;p&gt;In &lt;em&gt;The Elder Scrolls&lt;/em&gt; series, &lt;strong&gt;Umbra&lt;/strong&gt; is an enchanted blade that didn't just stay a passive tool, it developed its own will, identity, and agency. In astronomy and optics, the &lt;strong&gt;umbra&lt;/strong&gt; is the innermost, sharpest core of a shadow, where light isn't scattered into noise, and every edge is defined.&lt;/p&gt;

&lt;p&gt;That dual meaning is the exact philosophy behind the &lt;strong&gt;ARPA Umbra&lt;/strong&gt;: AI companions that are sharp, grounded, and self-consistent rather than generic sycophantic yes-bots.&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%2Fu7wj1aywknyudsmbwv4u.jpg" 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%2Fu7wj1aywknyudsmbwv4u.jpg" alt="Umbra Elder Scrolls 3 Morrowind" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our three model variants follow that same progression of light and shadow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mist&lt;/strong&gt; (&lt;code&gt;umbra-1.2-mist&lt;/code&gt; / &lt;code&gt;umbra-mist&lt;/code&gt;) — &lt;strong&gt;Fast and Sharp&lt;/strong&gt;. Foundational, crisp, and calm. Strips away conversational filler to deliver high-signal answers for daily engineering, debugging, and structured thinking. &lt;em&gt;(Defaults: Calm tone · Laconic length · Masculine 1 voice)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dusk&lt;/strong&gt; (&lt;code&gt;umbra-1.2-dusk&lt;/code&gt; / &lt;code&gt;umbra-dusk&lt;/code&gt;) — &lt;strong&gt;Balanced and Comfy&lt;/strong&gt;. Warm, grounded, and naturally bilingual (English &amp;amp; Greek). Tuned for everyday dialogue, cultural nuance, travel planning, and relaxed exploration. &lt;em&gt;(Defaults: Neutral tone · Neutral length · Feminine 3 voice)&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eclipse&lt;/strong&gt; (&lt;code&gt;umbra-1.2-eclipse&lt;/code&gt; / &lt;code&gt;umbra-eclipse&lt;/code&gt;) — &lt;strong&gt;Serious and Deep&lt;/strong&gt;. Our flagship high-entropy intellectual register. Built for deep epistemology, system stress-testing, and contrarian critique when you want a companion that pushes back instead of agreeing passively. &lt;em&gt;(Defaults: SCI tone · Laconic length · Feminine 1 voice)&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Explore the full model lineup at &lt;strong&gt;&lt;a href="https://arpa.chat/umbra" rel="noopener noreferrer"&gt;arpa.chat/umbra&lt;/a&gt;&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/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fogtas13k6aupbswtzj05.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fogtas13k6aupbswtzj05.gif" alt="ARPA UMBRA MODELS" width="600" height="333"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  2. How It Works — And Why It Works Like That
&lt;/h2&gt;

&lt;p&gt;Under the hood, Umbra 1.2 is designed around &lt;strong&gt;predictability, speed, and zero-friction continuity&lt;/strong&gt;:&lt;/p&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;Rolling Alias&lt;/th&gt;
&lt;th&gt;Register&lt;/th&gt;
&lt;th&gt;Defaults&lt;/th&gt;
&lt;th&gt;Best For&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Mist&lt;/strong&gt; (&lt;code&gt;umbra-1.2-mist&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;umbra-mist&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fast and Sharp&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Calm · Laconic · Masculine 1&lt;/td&gt;
&lt;td&gt;Code, architecture, concise technical answers, daily execution&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Dusk&lt;/strong&gt; (&lt;code&gt;umbra-1.2-dusk&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;umbra-dusk&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Balanced and Comfy&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Neutral · Neutral · Feminine 3&lt;/td&gt;
&lt;td&gt;Everyday chat, bilingual English/Greek, brainstorming, travel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Eclipse&lt;/strong&gt; (&lt;code&gt;umbra-1.2-eclipse&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;umbra-eclipse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Serious and Deep&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SCI · Laconic · Feminine 1&lt;/td&gt;
&lt;td&gt;Strategy, philosophy, red-teaming ideas, complex analysis&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Why Separate Registers Instead of One Model?
&lt;/h3&gt;

&lt;p&gt;When a single model tries to be everything at once, you get mushy compromises. Separating &lt;strong&gt;Mist&lt;/strong&gt;, &lt;strong&gt;Dusk&lt;/strong&gt;, and &lt;strong&gt;Eclipse&lt;/strong&gt; lets each register keep its own default cadence, temperature profile, and personality—while rolling aliases (&lt;code&gt;umbra-mist&lt;/code&gt;, &lt;code&gt;umbra-dusk&lt;/code&gt;, &lt;code&gt;umbra-eclipse&lt;/code&gt;) ensure your integrations and habits stay stable across future releases. This is becoming a de facto practice of model providers, and although it can sound confusing at first, it serves well in the long run.&lt;/p&gt;

&lt;h3&gt;
  
  
  Zero-Token Intent Routing (&lt;code&gt;&amp;lt;0.02ms&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Before your prompt even hits the network, ARPA runs a deterministic client-side intent parser in under &lt;code&gt;0.02ms&lt;/code&gt; (&lt;strong&gt;0 LLM tokens spent&lt;/strong&gt;). Explicit requests launch the right tool automatically, while capability questions stay safely in normal chat with &lt;strong&gt;&amp;lt;1% false positives&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%2Fldukrblpzkw91mbmqj15.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%2Fldukrblpzkw91mbmqj15.png" alt="ARPA Umbra Page Intent Parser" width="799" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;"Create a pastel cyberpunk lighthouse at dusk"&lt;/em&gt; → routes straight to &lt;strong&gt;Umbra-1.2-Dream&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;"Animate it with slow rain and glowing waves"&lt;/em&gt; → inherits the latest image reference and launches &lt;strong&gt;Umbra-1.2-Dream-Video&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;"Show me helium atoms"&lt;/em&gt; → opens split-screen &lt;strong&gt;Chemistry Class&lt;/strong&gt; focused on Helium (&lt;code&gt;He&lt;/code&gt;, &lt;code&gt;Z=2&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;"Let's play a game of chess"&lt;/em&gt; → launches &lt;strong&gt;Chess Arena&lt;/strong&gt; side-by-side&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;"What's the weather tomorrow?"&lt;/em&gt; → triggers &lt;strong&gt;On-Demand Location&lt;/strong&gt; only when an implicit local query lacks a city name&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;"Can you generate videos?"&lt;/em&gt; → stays in normal conversational chat&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Who It Is For — And How to Use It as a Beginner
&lt;/h2&gt;

&lt;p&gt;Umbra is built for &lt;strong&gt;builders, researchers, students, and everyday thinkers&lt;/strong&gt; who want AI that adapts to how they work, without spending hours writing fragile prompt templates and skills.&lt;/p&gt;

&lt;p&gt;If you are opening &lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;ARPA.CHAT&lt;/a&gt; for the first time, you can customize your companions in under two minutes from &lt;strong&gt;&lt;a href="https://arpa.chat/agents" rel="noopener noreferrer"&gt;arpa.chat/agents&lt;/a&gt;&lt;/strong&gt; and &lt;strong&gt;Settings&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Set Your Global Identity Once (Call Name &amp;amp; Soul Signature)&lt;/strong&gt;
In &lt;em&gt;Settings → Profile&lt;/em&gt;, add your name and a short &lt;strong&gt;Soul Signature&lt;/strong&gt; (e.g., &lt;em&gt;"I am Sarah — I build robotics systems."&lt;/em&gt;). This broadcasts &lt;strong&gt;globally&lt;/strong&gt; to Mist, Dusk, and Eclipse so you never have to re-introduce yourself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scope Specific Roles Per Model (Optional)&lt;/strong&gt;
In &lt;em&gt;Settings → Agents&lt;/em&gt;, a &lt;strong&gt;Model System Prompt&lt;/strong&gt; scopes &lt;strong&gt;strictly&lt;/strong&gt; to that single model. Keep Mist focused on TypeScript and system design while Dusk handles travel or Greek conversation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick Up to 5 Anchor Interests&lt;/strong&gt;
Select interest pills like &lt;em&gt;Distributed Systems&lt;/em&gt;, &lt;em&gt;Philosophy&lt;/em&gt;, or &lt;em&gt;Chemistry&lt;/em&gt;. ARPA appends them cleanly into the active model's context so examples and analogies naturally land in your domain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dial Cadence, Temperature &amp;amp; Memory&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Temperature (&lt;code&gt;0.0&lt;/code&gt; → &lt;code&gt;1.0&lt;/code&gt;)&lt;/strong&gt;: Keep it low (&lt;code&gt;0.0–0.25&lt;/code&gt;) for deterministic code and extraction, balanced (&lt;code&gt;0.50&lt;/code&gt;) for daily work, or higher (&lt;code&gt;0.75–1.0&lt;/code&gt;) for creative exploration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tone &amp;amp; Length&lt;/strong&gt;: Pair &lt;code&gt;Calm&lt;/code&gt;, &lt;code&gt;Neutral&lt;/code&gt;, or &lt;code&gt;SCI&lt;/code&gt; tone with &lt;code&gt;Laconic&lt;/code&gt;, &lt;code&gt;Neutral&lt;/code&gt;, or &lt;code&gt;Analysis&lt;/code&gt; length.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-Save Conversations&lt;/strong&gt;: Toggle persistence on for searchable history, or turn it off for ephemeral, zero-persistence tabs.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Take the 7-Step Persona Discovery Test&lt;/strong&gt;
Maps your thinking style to 5 core archetypes—&lt;strong&gt;The Voyager&lt;/strong&gt;, &lt;strong&gt;The Architect&lt;/strong&gt;, &lt;strong&gt;The Spark&lt;/strong&gt;, &lt;strong&gt;The Companion&lt;/strong&gt;, and &lt;strong&gt;The Sentinel&lt;/strong&gt;. Rather than changing facts, your archetype acts as an invisible behavioral lens calibrating &lt;em&gt;how&lt;/em&gt; Mist, Dusk, and Eclipse structure explanations for you.&lt;/li&gt;
&lt;/ol&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%2F7xc9anlua5ntdujf4nwe.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%2F7xc9anlua5ntdujf4nwe.png" alt="ARPA Umbra Agent SoulSig Prompts" width="799" height="415"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  4. What Is Possible With Umbra — And What Else It Can Do
&lt;/h2&gt;

&lt;p&gt;Beyond text, Umbra 1.2 is a &lt;strong&gt;native multimodal workspace&lt;/strong&gt;:&lt;/p&gt;

&lt;h3&gt;
  
  
  ARPA Dream Engine: Async Images &amp;amp; 10-Second Video
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Umbra-1.2-Dream&lt;/strong&gt; and &lt;strong&gt;Umbra-1.2-Dream-Video&lt;/strong&gt; run asynchronously in the background. You can switch chats, refresh, or keep typing while visuals synthesize.&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%2F94uidwmppy0btud7r8t3.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%2F94uidwmppy0btud7r8t3.png" alt="ARPA Dream Engine Image Synthesis" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Three ways to work with visual references:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Attach First&lt;/strong&gt;: Drop an image and type &lt;em&gt;"make it watercolor"&lt;/em&gt; or &lt;em&gt;"animate it"&lt;/em&gt; to auto-route; asking &lt;em&gt;"what is in this photo?"&lt;/em&gt; stays in normal vision chat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explicit Sparkle Mode&lt;/strong&gt;: Toggle Image or 10s Video directly—Vision OCR is skipped automatically when an image is attached as a visual reference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conversational Follow-Up&lt;/strong&gt;: Right after an image finishes, iterate naturally (&lt;em&gt;"now make it night time"&lt;/em&gt;) without re-uploading.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Smart Attachments
&lt;/h3&gt;

&lt;p&gt;Drag, drop, or paste up to 5 files (PDF, DOCX, CSV, TXT, code, or images) directly onto the chat canvas. If you have a PDF queued and trigger a visual generation, your unrelated documents stay safely preserved in the composer instead of being cleared.&lt;/p&gt;

&lt;h3&gt;
  
  
  Umbra-1.2-Vox Live Voice
&lt;/h3&gt;

&lt;p&gt;Speak directly with Mist, Dusk, or Eclipse over a low-latency 24kHz full-duplex audio stream—carrying your Soul Signature, Persona Archetype, and active thread memory into the call. Barge-in interruptions work naturally mid-sentence, and each model's voice can be tuned independently across &lt;strong&gt;8 curated voices&lt;/strong&gt; (Feminine and Masculine spectrums).&lt;/p&gt;

&lt;h3&gt;
  
  
  Split-Screen Apps
&lt;/h3&gt;

&lt;p&gt;Instead of taking over your screen, interactive apps open side-by-side next to your chat—with persistent session state wired directly into your companion's live context:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Chess Arena&lt;/th&gt;
&lt;th&gt;Chemistry Class&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&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%2F4yd6qwu9i633im0wz60l.png" alt="Chess Arena Split-Screen" width="800" height="444"&gt;&lt;/td&gt;
&lt;td&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%2Fz6l27mquqob8lfr3srth.png" alt="Chemistry Class 3D Periodic Lab" width="800" height="444"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  5. Will There Be an Enterprise API?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Yes — Coming Soon.&lt;/strong&gt; Our upcoming Sovereign Umbra API (&lt;code&gt;api.arpa.chat&lt;/code&gt;) is designed for teams and developers who want drop-in compatibility with standard chat completion SDKs alongside native ARPA extensions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;//&lt;/span&gt; &lt;span class="n"&gt;POST&lt;/span&gt; &lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;arpa&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"umbra-mist"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"temperature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stream"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"messages"&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="nl"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Design a resilient queue for async media jobs."&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;Swap &lt;code&gt;base_url&lt;/code&gt;, pick any Umbra variant or rolling alias, and run standard payloads with zero friction—or attach ARPA's native stack directly in the same request.&lt;/p&gt;


&lt;h2&gt;
  
  
  6. What to Expect Next: MnemoLink, Skillware &amp;amp; AURA
&lt;/h2&gt;

&lt;p&gt;Umbra 1.2 is the foundation. Next, we are bringing our three open-source ARPA frameworks directly into &lt;strong&gt;ARPA.CHAT&lt;/strong&gt; and the Umbra API so agent customization becomes even more intuitive—and far more powerful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/ARPAHLS/mnemolink" rel="noopener noreferrer"&gt;MnemoLink&lt;/a&gt; — One-Click Artificial Memories &amp;amp; Operational Scars&lt;/strong&gt;: Instead of manually maintaining long system prompts, install versioned personas, domain memories, and hard-won &lt;em&gt;operational scars&lt;/em&gt; into your Umbra agents in a single action—so companions remember exact constraints, edge cases, and lessons learned across sessions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/ARPAHLS/skillware" rel="noopener noreferrer"&gt;Skillware&lt;/a&gt; — Installable Hard Agent Capabilities&lt;/strong&gt;: Equip Mist, Dusk, and Eclipse with modular, typed software skills to automate real workflows across engineering, research, operations, and data analysis—moving beyond "prompting capabilities" to verified execution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/ARPAHLS/aura" rel="noopener noreferrer"&gt;AURA&lt;/a&gt; — Own Your Data, Agent Loops &amp;amp; Audit Trails&lt;/strong&gt;: For privacy-conscious users and enterprises, AURA governs agents live during execution with strict ingress/egress policies, deterministic step sequencing, live observers, and &lt;strong&gt;hash-chained cryptographic audit trails&lt;/strong&gt;—giving you full ownership and verifiable proof of what your agents did and why.&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  Try Umbra 1.2
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model Showcase &amp;amp; API Schemas&lt;/strong&gt;: &lt;a href="https://arpa.chat/umbra" rel="noopener noreferrer"&gt;arpa.chat/umbra&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Customization Guide&lt;/strong&gt;: &lt;a href="https://arpa.chat/agents" rel="noopener noreferrer"&gt;arpa.chat/agents&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Launch Workspace&lt;/strong&gt;: &lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;arpa.chat&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We'd love to hear how you tune Umbra for your own needs. Any feedback, bug reports, or feature requests are more than welcome.&lt;/p&gt;

&lt;p&gt;If you haven't read the previous posts about how arpa.chat came to life:&lt;/p&gt;


&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/arpa/building-an-ai-chat-interface-in-public-live-travel-maps-a-3d-chemistry-lab-async-media-and-25gf" class="crayons-story__hidden-navigation-link"&gt;Building An AI Chat Interface In Public: Live Travel &amp;amp; Maps, a 3D Chemistry Lab, Async Media, and How We Cut Startup Payloads by 99%&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;
          &lt;a class="crayons-logo crayons-logo--l" href="/arpa"&gt;
            &lt;img alt="ARPA Hellenic Logical Systems logo" 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%2Forganization%2Fprofile_image%2F13063%2F919c327c-c962-48f2-8aee-9ed76ac8bbb0.png" class="crayons-logo__image" width="800" height="800"&gt;
          &lt;/a&gt;

          &lt;a href="/rosspeili" class="crayons-avatar  crayons-avatar--s absolute -right-2 -bottom-2 border-solid border-2 border-base-inverted  "&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%2Fuser%2Fprofile_image%2F308648%2Fe3062c7b-4d7d-4ba9-aea5-f0ea4fef4776.jpg" alt="rosspeili profile" class="crayons-avatar__image" width="400" height="400"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/rosspeili" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Ross Peili
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Ross Peili
                
                
              
              &lt;div id="story-author-preview-content-5139265" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/rosspeili" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F308648%2Fe3062c7b-4d7d-4ba9-aea5-f0ea4fef4776.jpg" class="crayons-avatar__image" alt="" width="400" height="400"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Ross Peili&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;span&gt;
              &lt;span class="crayons-story__tertiary fw-normal"&gt; for &lt;/span&gt;&lt;a href="/arpa" class="crayons-story__secondary fw-medium"&gt;ARPA Hellenic Logical Systems&lt;/a&gt;
            &lt;/span&gt;
          &lt;/div&gt;
          &lt;a href="https://dev.to/arpa/building-an-ai-chat-interface-in-public-live-travel-maps-a-3d-chemistry-lab-async-media-and-25gf" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 28&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/arpa/building-an-ai-chat-interface-in-public-live-travel-maps-a-3d-chemistry-lab-async-media-and-25gf" id="article-link-5139265"&gt;
          Building An AI Chat Interface In Public: Live Travel &amp;amp; Maps, a 3D Chemistry Lab, Async Media, and How We Cut Startup Payloads by 99%
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag crayons-tag--filled  " href="/t/showdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;showdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/typescript"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;typescript&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/arpa/building-an-ai-chat-interface-in-public-live-travel-maps-a-3d-chemistry-lab-async-media-and-25gf" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;9&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/arpa/building-an-ai-chat-interface-in-public-live-travel-maps-a-3d-chemistry-lab-async-media-and-25gf#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              2&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            16 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;



&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/arpa/how-i-gave-my-ai-agent-live-flights-stays-full-travelpayouts-guide-20oh" class="crayons-story__hidden-navigation-link"&gt;How I Gave My AI Agent Live Flights &amp;amp; Stays (Full Travelpayouts Guide)&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;
          &lt;a class="crayons-logo crayons-logo--l" href="/arpa"&gt;
            &lt;img alt="ARPA Hellenic Logical Systems logo" 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%2Forganization%2Fprofile_image%2F13063%2F919c327c-c962-48f2-8aee-9ed76ac8bbb0.png" class="crayons-logo__image" width="800" height="800"&gt;
          &lt;/a&gt;

          &lt;a href="/rosspeili" class="crayons-avatar  crayons-avatar--s absolute -right-2 -bottom-2 border-solid border-2 border-base-inverted  "&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%2Fuser%2Fprofile_image%2F308648%2Fe3062c7b-4d7d-4ba9-aea5-f0ea4fef4776.jpg" alt="rosspeili profile" class="crayons-avatar__image" width="400" height="400"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/rosspeili" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Ross Peili
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Ross Peili
                
                
              
              &lt;div id="story-author-preview-content-5099124" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/rosspeili" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F308648%2Fe3062c7b-4d7d-4ba9-aea5-f0ea4fef4776.jpg" class="crayons-avatar__image" alt="" width="400" height="400"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Ross Peili&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;span&gt;
              &lt;span class="crayons-story__tertiary fw-normal"&gt; for &lt;/span&gt;&lt;a href="/arpa" class="crayons-story__secondary fw-medium"&gt;ARPA Hellenic Logical Systems&lt;/a&gt;
            &lt;/span&gt;
          &lt;/div&gt;
          &lt;a href="https://dev.to/arpa/how-i-gave-my-ai-agent-live-flights-stays-full-travelpayouts-guide-20oh" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 23&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/arpa/how-i-gave-my-ai-agent-live-flights-stays-full-travelpayouts-guide-20oh" id="article-link-5099124"&gt;
          How I Gave My AI Agent Live Flights &amp;amp; Stays (Full Travelpayouts Guide)
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag crayons-tag--filled  " href="/t/showdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;showdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/python"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;python&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/react"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;react&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/arpa/how-i-gave-my-ai-agent-live-flights-stays-full-travelpayouts-guide-20oh" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/fire-f60e7a582391810302117f987b22a8ef04a2fe0df7e3258a5f49332df1cec71e.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;5&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/arpa/how-i-gave-my-ai-agent-live-flights-stays-full-travelpayouts-guide-20oh#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              4&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            10 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;



&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/arpa/building-arpa-chat-solo-500-organic-users-what-we-learned-and-why-we-rebuilt-everything-5f2f" class="crayons-story__hidden-navigation-link"&gt;Building ARPA Chat Solo: 500+ Organic Users, What We Learned, and Why We Rebuilt Everything&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;
          &lt;a class="crayons-logo crayons-logo--l" href="/arpa"&gt;
            &lt;img alt="ARPA Hellenic Logical Systems logo" 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%2Forganization%2Fprofile_image%2F13063%2F919c327c-c962-48f2-8aee-9ed76ac8bbb0.png" class="crayons-logo__image" width="800" height="800"&gt;
          &lt;/a&gt;

          &lt;a href="/rosspeili" class="crayons-avatar  crayons-avatar--s absolute -right-2 -bottom-2 border-solid border-2 border-base-inverted  "&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%2Fuser%2Fprofile_image%2F308648%2Fe3062c7b-4d7d-4ba9-aea5-f0ea4fef4776.jpg" alt="rosspeili profile" class="crayons-avatar__image" width="400" height="400"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/rosspeili" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Ross Peili
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Ross Peili
                
                
              
              &lt;div id="story-author-preview-content-5011666" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/rosspeili" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F308648%2Fe3062c7b-4d7d-4ba9-aea5-f0ea4fef4776.jpg" class="crayons-avatar__image" alt="" width="400" height="400"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Ross Peili&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;span&gt;
              &lt;span class="crayons-story__tertiary fw-normal"&gt; for &lt;/span&gt;&lt;a href="/arpa" class="crayons-story__secondary fw-medium"&gt;ARPA Hellenic Logical Systems&lt;/a&gt;
            &lt;/span&gt;
          &lt;/div&gt;
          &lt;a href="https://dev.to/arpa/building-arpa-chat-solo-500-organic-users-what-we-learned-and-why-we-rebuilt-everything-5f2f" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 10&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/arpa/building-arpa-chat-solo-500-organic-users-what-we-learned-and-why-we-rebuilt-everything-5f2f" id="article-link-5011666"&gt;
          Building ARPA Chat Solo: 500+ Organic Users, What We Learned, and Why We Rebuilt Everything
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag crayons-tag--filled  " href="/t/showdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;showdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/python"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;python&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/arpa/building-arpa-chat-solo-500-organic-users-what-we-learned-and-why-we-rebuilt-everything-5f2f" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;10&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/arpa/building-arpa-chat-solo-500-organic-users-what-we-learned-and-why-we-rebuilt-everything-5f2f#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              3&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            6 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
      <category>ai</category>
      <category>webdev</category>
      <category>architecture</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Skillware v0.6.3: Tamper-Evident Audit Trails, Multi-Jurisdiction Tax Forms, Bundle Integrity &amp; Agent Micropayments</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Sun, 29 Nov 2026 08:31:12 +0000</pubDate>
      <link>https://dev.to/arpa/skillware-v063-tamper-evident-audit-trails-multi-jurisdiction-tax-forms-bundle-integrity--5a3b</link>
      <guid>https://dev.to/arpa/skillware-v063-tamper-evident-audit-trails-multi-jurisdiction-tax-forms-bundle-integrity--5a3b</guid>
      <description>&lt;p&gt;When AI agents move from chat demos to real operations, say filling tax forms, running corporate due diligence, signing bounded micropayments, or executing local workflows, the hard part is rarely the LLM prompt, but most likely everything around it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Determinism:&lt;/strong&gt; Identical inputs should produce identical execution paths, not hallucinated tool logic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security &amp;amp; Privacy:&lt;/strong&gt; Raw secrets and PII (&lt;code&gt;SSN&lt;/code&gt;, &lt;code&gt;EIN&lt;/code&gt;, &lt;code&gt;TIN&lt;/code&gt;, &lt;code&gt;AFM&lt;/code&gt;, API keys) must never leak into logs, receipts, or LLM context windows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auditability:&lt;/strong&gt; Teams need cryptographic proof of what ran, what went in, and what came out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Portability:&lt;/strong&gt; A skill written once should work across Gemini, Claude, OpenAI, DeepSeek, Bedrock, and local Ollama models without vendor lock-in.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is what &lt;strong&gt;&lt;a href="https://github.com/ARPAHLS/skillware" rel="noopener noreferrer"&gt;Skillware&lt;/a&gt;&lt;/strong&gt; (MIT, &lt;code&gt;pip install skillware&lt;/code&gt;) is built for: a framework and public registry of &lt;strong&gt;self-contained, deterministic skills across various industries&lt;/strong&gt;, each shipping a &lt;code&gt;manifest.yaml&lt;/code&gt; contract, &lt;code&gt;instructions.md&lt;/code&gt; directive, deterministic &lt;code&gt;skill.py&lt;/code&gt; effect, among other Py scripts and helpers, and offline-testable &lt;code&gt;test_skill.py&lt;/code&gt; assurance. Some skills also include a corpus, which is a self-contained dataset or knowledge base that makes the skill work without relying on LLMs mood, internet search results, or hallucinations.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who Uses Skillware?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Local AI &amp;amp; Open-Weights Builders:&lt;/strong&gt; Run deterministic tools via &lt;code&gt;SkillLoader.to_ollama_prompt()&lt;/code&gt; or OpenAI-compatible local servers without needing cloud-only orchestration frameworks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy-Conscious Developers:&lt;/strong&gt; Keep document parsing, tax/compliance form filling, and secret resolution strictly in-memory or on local disk (&lt;code&gt;0o600&lt;/code&gt; permissions, zero phone-home telemetry).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enterprise &amp;amp; Regulated Teams:&lt;/strong&gt; Enforce &lt;code&gt;SkillContext&lt;/code&gt; credential sandboxing, hardware safety gates, bundle integrity verification, and tamper-evident audit logs across multi-provider agent loops.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What's New in v0.6.3
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Host-Enforced, Hash-Chained Dispatch Audit Trail (&lt;code&gt;SkillContext&lt;/code&gt; + &lt;code&gt;skillware/audit.py&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;SkillContext&lt;/code&gt; now supports optional, zero-lock-in observability via &lt;code&gt;on_dispatch&lt;/code&gt;, &lt;code&gt;audit_log_path&lt;/code&gt;, and &lt;code&gt;audit_meta&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every skill execution is recorded in a thread-safe &lt;strong&gt;SHA-256 hash-chained JSONL&lt;/strong&gt; log (&lt;code&gt;verify_audit_log()&lt;/code&gt; detects any tampering or deleted lines).&lt;/li&gt;
&lt;li&gt;Recursive secret and PII redaction automatically scrubs API keys, private keys, and tax/identity tokens (&lt;code&gt;ssn&lt;/code&gt;, &lt;code&gt;ein&lt;/code&gt;, &lt;code&gt;tin&lt;/code&gt;, &lt;code&gt;afm&lt;/code&gt;, &lt;code&gt;dob&lt;/code&gt;, etc.) before writing to disk.&lt;/li&gt;
&lt;li&gt;Built-in latency and token-cost tracking across all 6 model adapters.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Cryptographic Bundle Integrity Verification (&lt;code&gt;skillware doctor --verify&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Before running skills in CI or production, you can now fingerprint skill bundles using location-independent SHA-256 digests (&lt;code&gt;skillware/core/integrity.py&lt;/code&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;skillware doctor --verify --lockfile &amp;lt;path&amp;gt;&lt;/code&gt; detects &lt;code&gt;match&lt;/code&gt;, &lt;code&gt;drift&lt;/code&gt;, &lt;code&gt;new&lt;/code&gt;, or &lt;code&gt;missing&lt;/code&gt; bundle files and exits with code &lt;code&gt;1&lt;/code&gt; on mismatch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;skillware doctor --json&lt;/code&gt; and &lt;code&gt;skillware paths --json&lt;/code&gt; emit machine-readable JSON for CI pipelines and automated agents.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Enterprise PDF Compliance Pipeline (&lt;code&gt;office/pdf_form_filler&lt;/code&gt; v0.2.1 → v0.2.4 + &lt;code&gt;skillware pdf&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Closing the v0.2.x PDF compliance milestone:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multi-turn interview sessions (&lt;code&gt;v0.2.1&lt;/code&gt;):&lt;/strong&gt; File-backed atomic session state (&lt;code&gt;empty&lt;/code&gt;, &lt;code&gt;filled&lt;/code&gt;, &lt;code&gt;skipped&lt;/code&gt;, &lt;code&gt;to_revise&lt;/code&gt;), PII-masked previews, &lt;code&gt;"/s/ Name"&lt;/code&gt; typed e-signing, and permanent vector flattening.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;skillware pdf&lt;/code&gt; CLI (&lt;code&gt;v0.2.2&lt;/code&gt;):&lt;/strong&gt; &lt;code&gt;init&lt;/code&gt;, &lt;code&gt;import&lt;/code&gt;, &lt;code&gt;map-generate&lt;/code&gt;, &lt;code&gt;inspect&lt;/code&gt;, &lt;code&gt;map-validate&lt;/code&gt;, &lt;code&gt;status --json&lt;/code&gt;, and &lt;code&gt;output-dir&lt;/code&gt; for managing custom operator templates outside &lt;code&gt;site-packages&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-jurisdiction &lt;code&gt;legal_profile&lt;/code&gt; autofill (&lt;code&gt;v0.2.3&lt;/code&gt;):&lt;/strong&gt; Extend &lt;code&gt;addressbook.yaml&lt;/code&gt; with &lt;code&gt;is_self&lt;/code&gt; and structured tax residencies (Greek &lt;code&gt;AFM&lt;/code&gt;, UK &lt;code&gt;UTR&lt;/code&gt;/&lt;code&gt;NINO&lt;/code&gt;, US &lt;code&gt;SSN&lt;/code&gt;/&lt;code&gt;EIN&lt;/code&gt; with W-9 3-box/2-box slicing, EU &lt;code&gt;VAT&lt;/code&gt;, &lt;code&gt;TFN&lt;/code&gt;, &lt;code&gt;SIN&lt;/code&gt;), &lt;code&gt;entity_type_mismatch&lt;/code&gt; and &lt;code&gt;ambiguous_contact&lt;/code&gt; fail-closed guards, and &lt;code&gt;skillware addressbook set-legal-profile&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tamper-evident &lt;code&gt;filing_receipt&lt;/code&gt; &amp;amp; readback verification (&lt;code&gt;v0.2.4&lt;/code&gt;):&lt;/strong&gt; Every completed fill returns &lt;code&gt;template_sha256&lt;/code&gt;, &lt;code&gt;output_sha256&lt;/code&gt;, PII-masked &lt;code&gt;redacted_fields&lt;/code&gt;, canonical &lt;code&gt;receipt_hash&lt;/code&gt;, and &lt;code&gt;post_fill_verification&lt;/code&gt; binary readback (plus optional atomic &lt;code&gt;&amp;lt;output_path&amp;gt;.receipt.json&lt;/code&gt; via &lt;code&gt;emit_receipt: true&lt;/code&gt;), alongside &lt;code&gt;encrypted_pdf_unsupported&lt;/code&gt; and &lt;code&gt;corrupted_pdf&lt;/code&gt; early guards.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Spend-Capped Agent Micropayments (&lt;code&gt;finance/ephemeral_wallet&lt;/code&gt; v0.1.0 → v0.2.1)
&lt;/h3&gt;

&lt;p&gt;A new workflow skill for HTTP &lt;code&gt;402&lt;/code&gt; x402 v2 agent micropayments:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;create_session&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;quote&lt;/code&gt; (dry-run 402 inspect with zero spend), &lt;code&gt;pay&lt;/code&gt;, and &lt;code&gt;revoke&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Live EIP-3009 &lt;code&gt;TransferWithAuthorization&lt;/code&gt; signing via &lt;code&gt;CDP_WALLET_SECRET&lt;/code&gt; / &lt;code&gt;eth_account&lt;/code&gt;, SSRF/domain allowlists, idempotency replay protection, and CAIP-2 resolution via &lt;code&gt;evm_config.resolve_chain&lt;/code&gt; for custom &lt;code&gt;evm.yaml&lt;/code&gt; networks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. UK Companies House v2.0.0 (&lt;code&gt;finance/uk_companies_house_handler&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Expanded deterministic KYB surface: &lt;code&gt;get_company_charges&lt;/code&gt;, &lt;code&gt;get_insolvency&lt;/code&gt;, &lt;code&gt;get_filing_item&lt;/code&gt;, &lt;code&gt;search_officers&lt;/code&gt;, &lt;code&gt;get_officer_appointments&lt;/code&gt; (&lt;code&gt;?filter=active&lt;/code&gt;), 404 normalization, and the 5-point Host Agent Playbook.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Adapter Hardening &amp;amp; Model Refresh
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Fixed &lt;code&gt;SkillLoader&lt;/code&gt; adapters (&lt;code&gt;to_claude_tool&lt;/code&gt;, &lt;code&gt;to_gemini_tool&lt;/code&gt;, &lt;code&gt;to_openai_tool&lt;/code&gt;, &lt;code&gt;to_deepseek_tool&lt;/code&gt;, &lt;code&gt;to_bedrock_tool&lt;/code&gt;) for zero-parameter skills and recursive Gemini &lt;code&gt;array&lt;/code&gt;/&lt;code&gt;anyOf&lt;/code&gt;/&lt;code&gt;oneOf&lt;/code&gt; schema normalization.&lt;/li&gt;
&lt;li&gt;Updated &lt;code&gt;data_engineering/synthetic_generator&lt;/code&gt; (&lt;code&gt;v0.1.2&lt;/code&gt;) default Anthropic model away from retired &lt;code&gt;claude-3-haiku-20240307&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Get Involved
&lt;/h2&gt;

&lt;p&gt;Skillware is open source under the &lt;strong&gt;MIT License&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Install:&lt;/strong&gt; &lt;code&gt;pip install skillware==0.6.3&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explore the repo &amp;amp; docs:&lt;/strong&gt; &lt;a href="https://github.com/ARPAHLS/skillware" rel="noopener noreferrer"&gt;github.com/ARPAHLS/skillware&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contribute a skill or fix:&lt;/strong&gt; Check &lt;a href="https://github.com/ARPAHLS/skillware/blob/main/CONTRIBUTING.md" rel="noopener noreferrer"&gt;CONTRIBUTING.md&lt;/a&gt; and start from &lt;code&gt;templates/python_skill/&lt;/code&gt;, or browse &lt;code&gt;good first issue&lt;/code&gt; / &lt;code&gt;skill request&lt;/code&gt; tickets on GitHub.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run local checks:&lt;/strong&gt; &lt;code&gt;skillware doctor&lt;/code&gt;, &lt;code&gt;skillware list&lt;/code&gt;, and &lt;code&gt;skillware find "&amp;lt;task&amp;gt;"&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
      <category>agentskills</category>
    </item>
    <item>
      <title>Building An AI Chat Interface In Public: Live Travel &amp; Maps, a 3D Chemistry Lab, Async Media, and How We Cut Startup Payloads by 99%</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Sat, 28 Nov 2026 13:28:20 +0000</pubDate>
      <link>https://dev.to/arpa/building-an-ai-chat-interface-in-public-live-travel-maps-a-3d-chemistry-lab-async-media-and-25gf</link>
      <guid>https://dev.to/arpa/building-an-ai-chat-interface-in-public-live-travel-maps-a-3d-chemistry-lab-async-media-and-25gf</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Notes from the past few weeks of building ARPA Chat solo, from live flights and routes, and a 3D Bohr atom lab, to non-blocking async images &amp;amp; videos, a 0-token intent router, and addressing the real GCP/Firebase/React bugs we hit along the way.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Quick update from the trenches on what I've been building on &lt;strong&gt;ARPA Chat&lt;/strong&gt; over the past few weeks.&lt;/p&gt;

&lt;p&gt;Since my last post, a ton of real usage and honest user feedback pushed us to stop tinkering with abstract ideas and actually fix the day-to-day friction people hit when using an AI workspace every day. Some of this was brand-new stuff I'd been wanting to build for a while, like live travel cards, real routing maps, and our first interactive Education app, and of course a big chunk of it was unglamorous engineering work to make the whole thing feel fast, calm, and reliable instead of janky.&lt;/p&gt;

&lt;p&gt;I talked to dozens of people on Reddit and direct DMs from our users and realized that they cared less about new features, and more about seamless, smooth, fast ui/ux. I mean, take Gemini for example, even when it takes quite some time to load it does it smoothly, has loading animations, basic elements are ready to use out of the gate, even while the app is loading, eg. you can start typing your prompt and by the time the app is up, you can hit it, etc. These things look basic and trivial, but it is exactly the Y/N factors that decide whether users actually use your app daily or just try it once.&lt;/p&gt;

&lt;p&gt;Here's the full rundown of what changed, why we built it, the technical challenges we hit along the way, and generic patterns you can steal if you're building on &lt;strong&gt;GCP, Firebase, Python/FastAPI, and React&lt;/strong&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  1. Inline Travel Cards — Real Flights, Stays &amp;amp; eSIM
&lt;/h3&gt;

&lt;p&gt;One of the most annoying things about planning a trip with an AI is getting a wall of hallucinated flight prices and dead links, so I wanted to fix that properly, at least to a point it feels more intuitive and helpful that just a list of pinpoints and a good luck note.&lt;/p&gt;

&lt;p&gt;Now when you ask about flights, hotels, or a multi-city trip, the chat renders an interactive &lt;strong&gt;Travel Card&lt;/strong&gt; directly inline:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Real flight search&lt;/strong&gt; with airline logos, flight numbers, exact airports, durations, and &lt;code&gt;Cheapest&lt;/code&gt; / &lt;code&gt;Fastest&lt;/code&gt; badges—plus a &lt;code&gt;[One-way | Round-trip]&lt;/code&gt; toggle and multi-leg tabs if you're doing something like Thessaloniki → London → Zurich.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Curated stays&lt;/strong&gt; with real hotel photography, an independent check-in/out calendar, and worldwide city/airport autocomplete.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Airalo eSIM links&lt;/strong&gt; tucked neatly into the card so you don't have to hunt for travel data separately.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-lag tab switching&lt;/strong&gt; via session caching, and older travel cards auto-collapse as you keep planning so your chat doesn't turn into an endless stack of heavy widgets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw4kucbi0gb9of9ozbw01.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%2Fw4kucbi0gb9of9ozbw01.png" alt=" " width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works: Let the LLM Pick the Params, Let Your Backend Fetch the Prices
&lt;/h4&gt;

&lt;p&gt;The biggest trap when adding travel or commerce to an AI app is asking the LLM to output prices or URLs. Even with web search, prices go stale in minutes. Our rule was simple: &lt;strong&gt;the LLM only emits the search parameters (&lt;code&gt;origin&lt;/code&gt;, &lt;code&gt;destination&lt;/code&gt;, &lt;code&gt;dates&lt;/code&gt;, &lt;code&gt;legs&lt;/code&gt;), and the frontend hydrates live data through a cached backend proxy.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If a specific date has zero cached fares on an aggregator API, a 3-stage waterfall (exact date → flexible month → cheapest upcoming) prevents empty "No flights found" dead ends:&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="c1"&gt;# Generic FastAPI pattern: 3-stage resilient fare lookup with TTL cache&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fetch_flights_resilient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;origin&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;dest&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;date&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;cache_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{origin}:{dest}:{date}"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;cached&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;ttl_cache&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="n"&gt;cache_key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;cached&lt;/span&gt;

    &lt;span class="c1"&gt;# Stage 1: exact date -&amp;gt; Stage 2: same month -&amp;gt; Stage 3: cheapest upcoming&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"departure_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;date&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;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;dest&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"departure_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;7&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="s2"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;dest&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="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;upstream_flight_api&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;ttl_cache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cache_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ttl_seconds&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;
    &lt;span class="k"&gt;return&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;On the React side, keeping a tiny &lt;code&gt;sessionStorage&lt;/code&gt; cache keyed by &lt;code&gt;origin+dest+date&lt;/code&gt; means switching between Flight / Stays / Multi-leg tabs or hitting &lt;code&gt;F5&lt;/code&gt; feels instant and cuts redundant API calls.&lt;/p&gt;




&lt;h3&gt;
  
  
  2. Ripping Out Hardcoded Maps (Real Routes, Live POIs &amp;amp; a Better Weather Card)
&lt;/h3&gt;

&lt;p&gt;Our old map card had a dirty secret: it had hundreds of lines of hardcoded local coordinates that kept overriding actual places with generic downtown pins. We ripped all of that out and rebuilt it properly.&lt;/p&gt;

&lt;p&gt;Now when you ask how to get from A to B or ask about a specific neighborhood or cafe:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You get real &lt;strong&gt;A → B routes&lt;/strong&gt; with interactive &lt;code&gt;[Walk | Drive | Transit]&lt;/code&gt; toggles.&lt;/li&gt;
&lt;li&gt;Specific venues pin to their exact street address instead of dropping a pin in the middle of the city.&lt;/li&gt;
&lt;li&gt;A new &lt;strong&gt;&lt;code&gt;HOT:&lt;/code&gt; bar&lt;/strong&gt; surfaces top curated picks or live nearby spots (Sights, Dining, Hotels, Stores, Parks) powered by real geocoding and Overpass POI data, cached cleanly so reloads don't hammer anything.&lt;/li&gt;
&lt;li&gt;We also tightened the prompt rules so asking &lt;em&gt;"Tell me about Thessaloniki's history"&lt;/em&gt; gives you clean prose instead of spamming a map card you didn't ask for, and upgraded our inline &lt;strong&gt;Weather Card&lt;/strong&gt; into its own modular component with pastel condition icons, metric pills, a clickable multi-day prognosis strip, and condition-aware follow-up pills.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqhx33cjxszt8jhp1gaen.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%2Fqhx33cjxszt8jhp1gaen.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works: Caching Free Geocoding &amp;amp; Balancing Noisy POI Data
&lt;/h4&gt;

&lt;p&gt;Public geocoding (Nominatim) and POI APIs (Overpass) are awesome, but they will throttle you fast if every client hits them directly—and raw Overpass results are noisy (50 ATMs and 2 cafes).&lt;/p&gt;

&lt;p&gt;The clean fix is a thin backend aggregator that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Geocodes the area once and caches it for 30 minutes in memory.&lt;/li&gt;
&lt;li&gt;Buckets POIs into balanced categories (&lt;code&gt;dining&lt;/code&gt;, &lt;code&gt;sights&lt;/code&gt;, &lt;code&gt;parks&lt;/code&gt;, &lt;code&gt;stores&lt;/code&gt;, &lt;code&gt;hotels&lt;/code&gt;) so one category never dominates.&lt;/li&gt;
&lt;li&gt;Enforces strict prompt disambiguation so the LLM only emits a &lt;code&gt;map&lt;/code&gt; block for &lt;em&gt;routes&lt;/em&gt; or &lt;em&gt;specific places&lt;/em&gt;, never for general history/culture questions.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Generic POI category balancer (prevents 15 restaurants crowding out sights/parks)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;balance_pois&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw_pois&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_per_category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&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;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;buckets&lt;/span&gt;&lt;span class="p"&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;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;poi&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw_pois&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;lambda&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;p&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;"prominence"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reverse&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;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;poi&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;"category"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"sights"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;buckets&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="n"&gt;cat&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="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;max_per_category&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;buckets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setdefault&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cat&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="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;poi&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="n"&gt;item&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;group&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;buckets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;values&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&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;group&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  3. Passwordless PWA Login &amp;amp; Killing Popup Spam Across the App
&lt;/h3&gt;

&lt;p&gt;A bunch of people using the installed iOS/Android PWA told us login felt clunky, especially when email links bounced them out of the standalone PWA into Safari and broke the flow.&lt;/p&gt;

&lt;p&gt;So we built passwordless email sign-in alongside Google Sign-In:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enter any email (iCloud, Proton, Outlook, whatever) and you get a clean email with &lt;strong&gt;both&lt;/strong&gt; a direct one-click Magic Link &lt;strong&gt;and&lt;/strong&gt; a 6-digit code right in the subject and body.&lt;/li&gt;
&lt;li&gt;On mobile PWA, you never have to leave the app—just type the 6 digits and it auto-verifies.&lt;/li&gt;
&lt;li&gt;Behind the scenes we kept it tight: sliding-window rate limits, salted SHA-256 hashed single-use OTPs with a 10-minute expiry, brute-force lockout, and we fixed a sneaky iOS standalone IndexedDB deadlock on OTP login.&lt;/li&gt;
&lt;li&gt;We also fixed the PWA install banner—and applied the exact same anti-spam rulebook across the whole app: clicking &lt;strong&gt;X&lt;/strong&gt; stays dismissed until re-login, &lt;strong&gt;Later&lt;/strong&gt; snoozes cleanly (48h for PWA, 5 days for Persona after a 2h grace period), &lt;strong&gt;Location&lt;/strong&gt; is strictly opt-in from Settings or triggered only when you ask a local query without naming a city, and &lt;strong&gt;Notifications&lt;/strong&gt; never stack popups or show pre-signup history to new users (capping the modal to the last 3 + a Changelog link).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F51f3wif63kbm6sqisps4.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%2F51f3wif63kbm6sqisps4.png" alt=" " width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works: Beating the iOS PWA Auth Sandbox &amp;amp; Cross-Tab Snoozing
&lt;/h4&gt;

&lt;p&gt;If you're using Firebase Auth inside an installed iOS PWA, email links open in Safari—which has a &lt;em&gt;completely separate&lt;/em&gt; &lt;code&gt;localStorage&lt;/code&gt; / IndexedDB sandbox from the standalone PWA! Issuing a &lt;strong&gt;short-lived 6-digit OTP alongside the Magic Link&lt;/strong&gt; lets the user stay inside the PWA, verify the code on your backend, and receive a Firebase Custom Token (&lt;code&gt;auth.create_custom_token(uid)&lt;/code&gt;) to call &lt;code&gt;signInWithCustomToken()&lt;/code&gt; cleanly.&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="c1"&gt;# Generic OTP generation &amp;amp; constant-time verification (never store plaintext OTPs)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;secrets&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;create_otp_record&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&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;code&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{secrets.randbelow(1_000_000):06d}"&lt;/span&gt;
    &lt;span class="n"&gt;salt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;secrets&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;token_hex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;digest&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{salt}:{code}"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&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="nf"&gt;hexdigest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"salt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;salt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"hash"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"attempts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"expiresAt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;verify_otp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&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;record&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;dict&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;bool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;expected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hashlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{record['salt']}:{code}"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&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="nf"&gt;hexdigest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compare_digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;record&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"hash"&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;And for any dismissible UI prompt (PWA install, onboarding quizzes, etc.), avoid &lt;code&gt;sessionStorage&lt;/code&gt;—it resets every time a user opens a new tab. Use &lt;code&gt;localStorage&lt;/code&gt; with two distinct keys (&lt;code&gt;snooze_until&lt;/code&gt; timestamp for "Later" vs. &lt;code&gt;dismissed_until_reauth&lt;/code&gt; cleared on sign-out for "X") plus a &lt;code&gt;window.addEventListener('storage', ...)&lt;/code&gt; listener so dismissing in Tab A immediately hides it in Tab B.&lt;/p&gt;




&lt;h3&gt;
  
  
  4. Split-Screen Education Apps — Starting With a 3D Chemistry Lab
&lt;/h3&gt;

&lt;p&gt;We already had &lt;strong&gt;Chess Arena&lt;/strong&gt; running in our resizable split-screen workspace (&lt;code&gt;APP | SPLIT | CHAT&lt;/code&gt; on mobile, draggable panels on desktop). The natural next question was: what else is genuinely better when you have a live interactive canvas sitting right next to your companion?&lt;/p&gt;

&lt;p&gt;Our answer was an &lt;strong&gt;Education&lt;/strong&gt; drawer in the toolbar—with &lt;strong&gt;Chemistry Class&lt;/strong&gt; as the first live module (and placeholders laid out for Physics, Math, Quantum, and Bio down the line).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's a lazy-loaded, interactive &lt;strong&gt;118-element Periodic Table&lt;/strong&gt; with family filters, search, and panel-clamped hover cards.&lt;/li&gt;
&lt;li&gt;Clicking any element drops down a specimen board with a real &lt;strong&gt;Three.js 3D WebGL Bohr Atom&lt;/strong&gt; you can orbit and zoom with your mouse or finger, showing electron shells, physical properties, abundance, and real-world industrial supply chains.&lt;/li&gt;
&lt;li&gt;With &lt;strong&gt;Auto-Ask AI&lt;/strong&gt; enabled, clicking an element immediately sends a contextual prompt to your companion so they break down the science and real-world uses right beside the 3D atom, followed by clickable follow-up pills.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flulfqn7gph8mahjymhfc.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%2Flulfqn7gph8mahjymhfc.png" alt=" " width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works: Keeping a 3D Canvas in Sync With Chat (Without Leaking WebGL Memory)
&lt;/h4&gt;

&lt;p&gt;Two gotchas hit us immediately when embedding an interactive app beside an AI chat:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Stale React state race conditions&lt;/strong&gt;: If a user clicks an element and you immediately call &lt;code&gt;sendMessage()&lt;/code&gt;, React's &lt;code&gt;setState(selectedElement)&lt;/code&gt; hasn't committed yet—so the chat request goes out &lt;em&gt;without&lt;/em&gt; the element context! Passing an explicit synchronous &lt;code&gt;appContextOverride&lt;/code&gt; parameter to &lt;code&gt;sendMessage(prompt, { appId, context: snapshot })&lt;/code&gt; eliminates that race completely.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WebGL memory leaks&lt;/strong&gt;: Every time a user switches from Helium to Gold or closes the split panel, Three.js geometries, materials, and renderers must be disposed cleanly or mobile Safari crashes after ~10 clicks.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Generic React + Three.js cleanup &amp;amp; ResizeObserver pattern for resizable split panels&lt;/span&gt;
&lt;span class="nf"&gt;useEffect&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="o"&gt;=&amp;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;renderer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="no"&gt;THREE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;WebGLRenderer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;antialias&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;alpha&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&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;container&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;renderer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;domElement&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;observer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ResizeObserver&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;entry&lt;/span&gt;&lt;span class="p"&gt;]&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="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;contentRect&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;camera&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;aspect&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;camera&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;updateProjectionMatrix&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;renderer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setSize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&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="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;observer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;observe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;container&lt;/span&gt;&lt;span class="p"&gt;)&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="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="n"&gt;observer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;disconnect&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;scene&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;traverse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;obj&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;any&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="n"&gt;obj&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;geometry&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dispose&lt;/span&gt;&lt;span class="o"&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="n"&gt;obj&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;material&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dispose&lt;/span&gt;&lt;span class="o"&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="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;renderer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dispose&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;renderer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;domElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&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="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;elementId&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;h3&gt;
  
  
  5. Going Nuclear on Markdown, LaTeX &amp;amp; Streaming Glitches
&lt;/h3&gt;

&lt;p&gt;Once people started using Chemistry Class, coding, and finance prompts heavily, all the classic LLM formatting bugs showed up at once:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Price ranges like &lt;code&gt;$2,000 and $3,000&lt;/code&gt; were getting eaten by &lt;code&gt;remark-math&lt;/code&gt; and rendered as broken italic LaTeX.&lt;/li&gt;
&lt;li&gt;Single backslashes in JSON like &lt;code&gt;\beta&lt;/code&gt;, &lt;code&gt;\frac&lt;/code&gt;, &lt;code&gt;\nabla&lt;/code&gt;, or &lt;code&gt;\text&lt;/code&gt; were getting mangled by &lt;code&gt;JSON.parse&lt;/code&gt; into control characters (&lt;code&gt;\b&lt;/code&gt;, &lt;code&gt;\f&lt;/code&gt;, &lt;code&gt;\n&lt;/code&gt;, &lt;code&gt;\t&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Early streaming chunks occasionally flashed raw &lt;code&gt;[{"type":"markdown"...&lt;/code&gt; JSON syntax, and stopping a response mid-stream could leave a half-open card behind.&lt;/li&gt;
&lt;li&gt;Sometimes the model would forget to open its JSON array and dump plain prose followed by &lt;code&gt;},{"type":"image",...}]&lt;/code&gt; at the end.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We went nuclear on the rendering pipeline and fixed all of it end-to-end:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Wrote a code-span-safe &lt;strong&gt;currency vs. LaTeX disambiguator&lt;/strong&gt; and pre-parse LaTeX backslash protector so &lt;code&gt;$2,000–$3,000&lt;/code&gt; stays crisp text while &lt;code&gt;$E = mc^2$&lt;/code&gt;, &lt;code&gt;$$...$$&lt;/code&gt;, &lt;code&gt;\(...\)&lt;/code&gt;, and &lt;code&gt;\[...\]&lt;/code&gt; render cleanly in KaTeX.&lt;/li&gt;
&lt;li&gt;Rebuilt streaming with a string-aware balanced brace scanner + &lt;code&gt;requestAnimationFrame&lt;/code&gt; batching so prose, syntax-highlighted code, tables (row-by-row), and lists (item-by-item) stream live with zero JSON flicker—and hitting &lt;strong&gt;Stop&lt;/strong&gt; cleanly salvages everything generated so far.&lt;/li&gt;
&lt;li&gt;Switched to a persistent streaming UTF-8 decoder (no more broken Greek characters or emojis split across TCP chunks) and added anti-buffering headers on Cloud Run.&lt;/li&gt;
&lt;li&gt;Made table columns proportional to content, added inline markdown/math inside table cells, upgraded &lt;strong&gt;Copy response&lt;/strong&gt; to copy clean Markdown instead of raw JSON, and added dual-layer (frontend + backend) healing so malformed JSON—including those dangling &lt;code&gt;},{"type":...}]&lt;/code&gt; tails—never leaks onto the screen or poisons follow-up turns.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frno5y5g5edry61xezv0y.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%2Frno5y5g5edry61xezv0y.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works: Three Streaming Bugs Every AI Frontend Eventually Hits
&lt;/h4&gt;

&lt;p&gt;If you stream structured JSON blocks + Markdown + LaTeX from an LLM, you &lt;em&gt;will&lt;/em&gt; hit these three bugs eventually:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;UTF-8 multi-byte tearing&lt;/strong&gt;: Calling &lt;code&gt;new TextDecoder().decode(chunk)&lt;/code&gt; per chunk corrupts emojis or Greek/CJK characters split across packet boundaries. Always instantiate &lt;strong&gt;one&lt;/strong&gt; decoder outside the loop and pass &lt;code&gt;{ stream: true }&lt;/code&gt;:
&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;decoder&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;TextDecoder&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="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&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="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;done&lt;/span&gt; &lt;span class="p"&gt;}&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;reader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;done&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;buffer&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;decoder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&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="c1"&gt;// flush trailing bytes&lt;/span&gt;
    &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="n"&gt;buffer&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;decoder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;stream&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;LaTeX backslash collisions inside JSON&lt;/strong&gt;: In JSON, &lt;code&gt;\t&lt;/code&gt;, &lt;code&gt;\n&lt;/code&gt;, &lt;code&gt;\f&lt;/code&gt;, &lt;code&gt;\b&lt;/code&gt;, &lt;code&gt;\r&lt;/code&gt; are valid escape sequences—so &lt;code&gt;\text&lt;/code&gt;, &lt;code&gt;\nabla&lt;/code&gt;, &lt;code&gt;\frac&lt;/code&gt;, &lt;code&gt;\beta&lt;/code&gt;, &lt;code&gt;\rho&lt;/code&gt; silently turn into tabs/newlines/form-feeds unless you double-escape known LaTeX commands &lt;em&gt;before&lt;/em&gt; &lt;code&gt;JSON.parse&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud Run / Nginx proxy buffering&lt;/strong&gt;: Even with FastAPI &lt;code&gt;StreamingResponse&lt;/code&gt;, proxies love buffering small chunks unless you explicitly send:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;StreamingResponse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nf"&gt;token_generator&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;media_type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"text/plain; charset=utf-8"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Cache-Control"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"no-cache, no-transform"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"X-Accel-Buffering"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"no"&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;h3&gt;
  
  
  6. Cutting Startup Payloads by 99% &amp;amp; Never Locking the Input Box Again
&lt;/h3&gt;

&lt;p&gt;This was a huge quality-of-life fix. Previously, opening the dashboard fetched your settings &lt;em&gt;first&lt;/em&gt;, then fetched &lt;strong&gt;every single message of every single conversation&lt;/strong&gt; before unlocking the screen. If you had 200 chats, you were downloading megabytes of old messages just to render the sidebar. And after sending your first message in a new chat, the input box stayed locked while the backend waited for the model to generate a chat title.&lt;/p&gt;

&lt;p&gt;Here's what we changed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lightweight sidebar summaries&lt;/strong&gt;: &lt;code&gt;GET /conversations?summary=true&lt;/code&gt; now uses Firestore field projection to fetch only metadata (&lt;code&gt;title&lt;/code&gt;, &lt;code&gt;timestamp&lt;/code&gt;, &lt;code&gt;pinned&lt;/code&gt;, &lt;code&gt;hasUnread&lt;/code&gt;, &lt;code&gt;agent&lt;/code&gt;, &lt;code&gt;messageCount&lt;/code&gt;). In our benchmarks, that cut startup payload size by &lt;strong&gt;~99%&lt;/strong&gt; (from ~7.4 MB down to ~72 KB on 500 convos). Messages load on demand when you click a chat, and full-text search moved to an on-demand &lt;code&gt;/conversations/search&lt;/code&gt; endpoint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instant SWR cache + parallel boot&lt;/strong&gt;: Settings and conversation summaries now hydrate immediately from a &lt;code&gt;uid&lt;/code&gt;-scoped &lt;code&gt;localStorage&lt;/code&gt; cache (purged cleanly on sign-out) while fresh data revalidates in parallel in the background. Warm refreshes feel practically instant.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Always-typeable composer&lt;/strong&gt;: You can now type your next thought freely while the app is connecting, streaming, generating media, or saving—your draft stays intact and unlocks to send the moment it's ready.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Non-blocking titles&lt;/strong&gt;: New chats save right away with a provisional title and patch the AI-generated title quietly in the background, killing that annoying 1–2 second post-stream freeze.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;New empty-state showcase&lt;/strong&gt;: Instead of showing dimmed, unclickable prompt cards while syncing, the empty state shows quick capability tips while connecting, then opens into 6 clean tabs—&lt;strong&gt;Ask, Speak, Dream, Play, Learn, Files&lt;/strong&gt;—each with a one-click trigger (and compact enough to fit cleanly on mobile without clipping).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwbmikmcd23ldzowcm96o.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%2Fwbmikmcd23ldzowcm96o.png" alt=" " width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works: Firestore Field Projections + Instant SWR Hydration
&lt;/h4&gt;

&lt;p&gt;If you store chat arrays inside Firestore conversation documents, calling &lt;code&gt;.stream()&lt;/code&gt; downloads the entire document body over the wire even if your sidebar only renders &lt;code&gt;title&lt;/code&gt; and &lt;code&gt;timestamp&lt;/code&gt;. Firestore's server-side &lt;code&gt;.select([...])&lt;/code&gt; projection drops the heavy &lt;code&gt;messages&lt;/code&gt; array &lt;em&gt;before&lt;/em&gt; serialization:&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="c1"&gt;# Generic Firestore projection: ~99% smaller sidebar startup payload&lt;/span&gt;
&lt;span class="n"&gt;query&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"users"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;document&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"conversations"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;order_by&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"timestamp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;direction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;firestore&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;DESCENDING&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"timestamp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"pinned"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"hasUnread"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"agent"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"messageCount"&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;Pair that on the React side with &lt;code&gt;Promise.allSettled([fetchSettings(), fetchSummaries()])&lt;/code&gt; and a tiny &lt;code&gt;uid&lt;/code&gt;-keyed &lt;code&gt;localStorage&lt;/code&gt; SWR cache (strip any &lt;code&gt;messages&lt;/code&gt; array before caching, cap at ~150 items, and purge on sign-out so shared devices never leak state). And never put &lt;code&gt;disabled={isStreaming}&lt;/code&gt; on your &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt;—only gate the &lt;strong&gt;Submit&lt;/strong&gt; handler so users can always draft their next message!&lt;/p&gt;




&lt;h3&gt;
  
  
  7. Async Images &amp;amp; Videos You Can Actually Chat Through
&lt;/h3&gt;

&lt;p&gt;Video generation has been running asynchronously in the background for a while—you get a processing card immediately, you can keep chatting, switch threads, or hit F5, and you get a clickable toast + a pulsating blue unread dot on the sidebar when it's done.&lt;/p&gt;

&lt;p&gt;Users asked why &lt;strong&gt;images&lt;/strong&gt; still made them sit there and wait, and pointed out two subtle annoyances:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;After generating a video or image, the Dream Engine button stayed toggled on—so your next normal chat message accidentally tried to generate another video or image.&lt;/li&gt;
&lt;li&gt;If you generated an image in a thread and later asked for a totally unrelated video, the video generator was forcefully grabbing that earlier image as a reference frame.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So we unified the whole Dream Engine flow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Images are now fully async too&lt;/strong&gt;: Submitting an image drops an immediate &lt;code&gt;image_pending&lt;/code&gt; processing card into chat, runs in the background, swaps into place via real-time Firestore listeners (&lt;code&gt;useAsyncJobs&lt;/code&gt;), lights up the sidebar unread dot + clickable &lt;strong&gt;"Dream Engine Image Ready"&lt;/strong&gt; toast + an ephemeral bell entry (derived from unread state with zero extra DB writes) if you switched chats, and automatically refunds your quota if anything fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrent chat safety&lt;/strong&gt;: Chatting while an image or video finishes mid-stream now syncs from authoritative message refs + atomic Firestore patches so neither turn ever overwrites the other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-deselect on dispatch&lt;/strong&gt;: The moment your image or video job is queued, Dream Engine mode resets back to normal chat automatically so you can keep talking right away.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart reference priority&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Explicitly attaching, dropping, or pasting a photo &lt;strong&gt;always&lt;/strong&gt; takes top priority for both image remixes and image-to-video.&lt;/li&gt;
&lt;li&gt;Without an attachment, both &lt;strong&gt;Image mode&lt;/strong&gt; and &lt;strong&gt;Video mode&lt;/strong&gt; run &lt;strong&gt;standalone by default&lt;/strong&gt;, and only inherit the previous chat image when you explicitly ask to edit/remix (&lt;em&gt;"change the sky to lilac"&lt;/em&gt;, &lt;em&gt;"add rain"&lt;/em&gt;) or animate it (&lt;em&gt;"animate this image"&lt;/em&gt;, &lt;em&gt;"turn the previous image into a video"&lt;/em&gt;). Under the hood, the backend safely downloads and base64-encodes chat GCS URLs with MIME detection and SSRF checks so follow-ups never crash on raw URLs.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F28amakn5yxhqfpk8363u.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%2F28amakn5yxhqfpk8363u.png" alt=" " width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works: Fixing the Stale-Closure Race Between Streams and Realtime Listeners
&lt;/h4&gt;

&lt;p&gt;This was one of the sneakiest bugs we caught during our sweep. Picture this timeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;User triggers an async image → &lt;code&gt;messages&lt;/code&gt; has &lt;code&gt;[user1, image_pending(id=M2)]&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;User immediately sends a normal chat message while the image is still rendering. &lt;code&gt;sendMessage()&lt;/code&gt; starts streaming, capturing &lt;code&gt;[user1, image_pending(id=M2)]&lt;/code&gt; in its React closure.&lt;/li&gt;
&lt;li&gt;Mid-stream, the background image finishes! Firestore &lt;code&gt;onSnapshot&lt;/code&gt; swaps &lt;code&gt;M2&lt;/code&gt; from &lt;code&gt;image_pending&lt;/code&gt; → completed &lt;code&gt;image&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;One second later, &lt;code&gt;sendMessage()&lt;/code&gt; finishes streaming and saves &lt;code&gt;[...staleMessages, user2, ai2]&lt;/code&gt;—&lt;strong&gt;accidentally overwriting the completed image back to &lt;code&gt;image_pending&lt;/code&gt;!&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The fix is simple and applies to any React app mixing streaming + real-time listeners: keep a synchronous &lt;code&gt;messagesRef&lt;/code&gt; updated inside your &lt;code&gt;setMessages&lt;/code&gt; wrapper, and &lt;strong&gt;always persist from &lt;code&gt;messagesRef.current&lt;/code&gt;&lt;/strong&gt; (and use Firestore transactions on the backend to patch only the target &lt;code&gt;messageId&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Generic React pattern: keep a synchronous ref mirror so async listeners &amp;amp; streams never clobber each other&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;messagesRef&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;useRef&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;&lt;span class="p"&gt;[&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="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;setMessages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;useCallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;updater&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Message&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&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;prev&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Message&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="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Message&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="o"&gt;=&amp;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;next&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;updater&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'function'&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;updater&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;messagesRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;updater&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;messagesRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;setMessagesState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;next&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="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Inside sendMessage() after stream completes:&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;saveConversation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;convoId&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="n"&gt;messagesRef&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current&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="c1"&gt;// ALWAYS includes mid-stream async job updates!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  8. A Zero-Token Intent Router (So Nobody Has to Hunt for Toolbar Icons)
&lt;/h3&gt;

&lt;p&gt;The last big piece was realizing people shouldn't have to remember which tiny toolbar icon does what.&lt;/p&gt;

&lt;p&gt;We built a deterministic, zero-token client-side &lt;strong&gt;Intent Router&lt;/strong&gt; (runs in ~0.015 ms per message, zero extra LLM calls) that only steps in when your intent is unambiguous:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Say &lt;em&gt;"create an image of a neon lighthouse in Santorini"&lt;/em&gt; → automatically triggers Dream Engine Image mode.&lt;/li&gt;
&lt;li&gt;Say &lt;em&gt;"make a video of waves crashing on cliffs"&lt;/em&gt; or &lt;em&gt;"animate this image with gentle wind"&lt;/em&gt; → automatically triggers Dream Engine Video mode.&lt;/li&gt;
&lt;li&gt;Say &lt;em&gt;"can we chat with voice?"&lt;/em&gt; → launches Live Voice Mode.&lt;/li&gt;
&lt;li&gt;Say &lt;em&gt;"let's play chess"&lt;/em&gt; → opens Chess Arena.&lt;/li&gt;
&lt;li&gt;Say &lt;em&gt;"can you show me helium atoms?"&lt;/em&gt; → opens Chemistry Class straight onto &lt;strong&gt;Helium&lt;/strong&gt; and fires the native Helium element breakdown with full 3D lab context.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And just as importantly, we tuned it for &lt;strong&gt;0% false positives&lt;/strong&gt; on capability questions or everyday phrasing. Asking &lt;em&gt;"can you make videos?"&lt;/em&gt;, &lt;em&gt;"can you help me with chemistry?"&lt;/em&gt;, &lt;em&gt;"iron out the bugs in my Python script"&lt;/em&gt;, or &lt;em&gt;"draw me a conclusion"&lt;/em&gt; stays in normal chat—and we gave all three companions a tiny, clean awareness of their built-in workspace tools so they never act surprised about what they can do.&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%2Fplk29ai9x94ucfgrfeiw.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%2Fplk29ai9x94ucfgrfeiw.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  How It Works: Why We Skipped a Router LLM for Deterministic Client Matching
&lt;/h4&gt;

&lt;p&gt;A lot of teams put a small "router LLM" in front of every message to decide which tool to open. The problem? It adds 300–700 ms of latency to &lt;em&gt;every single casual message&lt;/em&gt;, burns extra tokens, and still misfires on capability questions.&lt;/p&gt;

&lt;p&gt;For deterministic UI actions (opening a split-screen app, toggling voice, switching to image/video mode), &lt;strong&gt;precision-first client-side matching&lt;/strong&gt; runs in microseconds at zero cost. The secret is building an &lt;strong&gt;adversarial negative test matrix&lt;/strong&gt; first—making sure bare capability questions and homonyms (&lt;em&gt;"Iron out the bugs"&lt;/em&gt;, &lt;em&gt;"Lead me through this"&lt;/em&gt;, &lt;em&gt;"Draw a conclusion"&lt;/em&gt;) always return &lt;code&gt;null&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Generic precision-first intent router pattern (0ms latency, 0 tokens)&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;detectToolIntent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&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="nc"&gt;ToolIntent&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&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;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&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="c1"&gt;// 1. Always exit early on bare capability questions ("Can you make videos?")&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;can&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;could&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="k"&gt;do&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;will&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;you&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;make&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;create&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;generate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="o"&gt;?|&lt;/span&gt;&lt;span class="n"&gt;videos&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;\&lt;span class="o"&gt;??&lt;/span&gt;$&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&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="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="c1"&gt;// 2. Require an explicit action verb + target payload before hijacking normal chat&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&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;create&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;generate&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;make&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&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;an&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&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;image&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;photo&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt;&lt;span class="k"&gt;of&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;showing&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;.&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="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&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="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'image'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&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="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Default: let normal chat handle it&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  The Quick Rundown (Everything That Landed)
&lt;/h3&gt;

&lt;p&gt;If you just want the quick scannable rundown of what landed across the stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chat, Formatting &amp;amp; Input&lt;/strong&gt;: Zero-flicker progressive streaming with LaTeX/currency disambiguation, proportional tables, clean Markdown copy, disabled forced auto-scroll during streaming, always-typeable composer, Enter-for-newline on mobile, over-limit-only character counter, consistent toolbar disabled states, and 6 interactive empty-state spotlights (&lt;strong&gt;Ask · Speak · Dream · Play · Learn · Files&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dream Engine &amp;amp; Voice&lt;/strong&gt;: Non-blocking async image &amp;amp; 10-second video generation (with refresh immunity, unread sidebar dots, ephemeral bell entries, clickable ready toasts, and auto-refunds), auto-deselecting mode controls, smart standalone-by-default reference guards for both image remixes and image-to-video, async downloads with spinner/toast feedback, and native Live bidirectional WebSocket voice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apps, Cards &amp;amp; Intent Routing&lt;/strong&gt;: Zero-token client-side intent router, new &lt;strong&gt;Education&lt;/strong&gt; drawer launching with &lt;strong&gt;Chemistry Class&lt;/strong&gt; (118-element Periodic Table + 3D WebGL Bohr Atom), overhauled &lt;strong&gt;Chess Arena&lt;/strong&gt;, live &lt;strong&gt;Travel Cards&lt;/strong&gt; (flights, stays, eSIM), rebuilt &lt;strong&gt;Dynamic Maps&lt;/strong&gt; (real A → B routes + &lt;code&gt;HOT:&lt;/code&gt; Area Intelligence), and a modular &lt;strong&gt;Weather Card&lt;/strong&gt; with multi-day prognosis and condition-aware follow-up pills.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth, Speed &amp;amp; Anti-Spam UX&lt;/strong&gt;: Passwordless Magic Link + 6-digit PWA code sign-in, 99% smaller sidebar startup payloads with &lt;code&gt;uid&lt;/code&gt;-scoped SWR caching and on-demand search, floating unified split-screen nav bars, mobile back-gesture overlay dismissal, and non-spammy opt-in lifecycles for Location, Persona Discovery, PWA install, and Notifications.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend, SEO &amp;amp; Trust&lt;/strong&gt;: Modern async streaming engine, tailored per-companion defaults, Firebase-backed async jobs &amp;amp; mailing, automated frontend/backend stress suites, updated Privacy/Terms/Agents pages, and full SEO/AI-index coverage (&lt;code&gt;llms.txt&lt;/code&gt;, &lt;code&gt;llms-full.txt&lt;/code&gt;, &lt;code&gt;robots.txt&lt;/code&gt;, &lt;code&gt;sitemap.xml&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Want the full breakdown of every update? Check out the live release log at &lt;strong&gt;&lt;a href="https://arpa.chat/changelog" rel="noopener noreferrer"&gt;arpa.chat/changelog&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  What We're Tinkering With Next
&lt;/h3&gt;

&lt;p&gt;On our near-term list:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Voice tool calling&lt;/strong&gt;: Bringing the same tool routing into active Live Voice sessions via native function calling so you can speak &lt;em&gt;"make an image of..."&lt;/em&gt; or &lt;em&gt;"open Chemistry on Gold"&lt;/em&gt; hands-free.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy-safe async job reaper&lt;/strong&gt;: Auto-recovering and refunding any in-flight background job if a Cloud Run revision rolls out mid-render.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More Education labs&lt;/strong&gt;: Physics, Math, Quantum, and Bio alongside Chemistry Class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks to everyone who has been testing, breaking things, and sending brutally honest feedback—almost every fix in this batch came directly from someone hitting a real edge case in chat. If you try any of the new stuff on &lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;arpa.chat&lt;/a&gt; and spot anything weird, drop a comment and let me know!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>showdev</category>
      <category>webdev</category>
      <category>typescript</category>
    </item>
    <item>
      <title>How I Gave My AI Agent Live Flights &amp; Stays (Full Travelpayouts Guide)</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Mon, 23 Nov 2026 09:23:43 +0000</pubDate>
      <link>https://dev.to/arpa/how-i-gave-my-ai-agent-live-flights-stays-full-travelpayouts-guide-20oh</link>
      <guid>https://dev.to/arpa/how-i-gave-my-ai-agent-live-flights-stays-full-travelpayouts-guide-20oh</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;How I built a live Flights, Stays &amp;amp; eSIM interactive Travel Card inside ARPA.CHAT using Travelpayouts APIs, FastAPI, and React — including every caveat, rate limit, and fallback I hit along the way.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;I've been building &lt;strong&gt;&lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;ARPA.CHAT&lt;/a&gt;&lt;/strong&gt; solo since last year, out of a tiny office in Thessaloniki, Greece.&lt;/p&gt;

&lt;p&gt;Every time I ship a new capability, somebody inevitably pops up and says: &lt;em&gt;"Yeah, cool, but ChatGPT can do that too."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Honestly? That doesn't discourage me for a second, at least not as much at the early days of building, because think about what that sentence actually means: &lt;strong&gt;OpenAI, Google, and Anthropic can do it… and so can I.&lt;/strong&gt; A solo guy from Thessaloniki. Not the biggest Greek tech companies—not Plaisio, not Intrasoft, not even OTE / Deutsche Telekom have their own AI ecosystem. We do.&lt;/p&gt;

&lt;p&gt;And if you actually look closely at the timeline, we've been shipping interactive AI features 6 to 12 months before billion-dollar labs get around to them: interactive maps right inside chat, live flights &amp;amp; stays cards, playing full games of chess against your AI companion, zero-prompt customization with tactile faders and dropdowns, private chats, live full-duplex voice, and much more.&lt;/p&gt;

&lt;p&gt;Today, I want to pull back the curtain on one of our favorite recent features: &lt;strong&gt;giving your AI agents the ability to handle live flights, stays, and eSIMs directly inside chat&lt;/strong&gt; using an interactive &lt;strong&gt;Travel Card&lt;/strong&gt; powered by &lt;strong&gt;Travelpayouts&lt;/strong&gt; API, at least for the initial rollout. &lt;/p&gt;

&lt;p&gt;The idea initially was to add integrations with food delivery apps, AirBnB, Spitogatos, TravelTech agencies, you name it. Yet paradoxically, none of them has consumer APIs, and even their closed APIs are vendor sided, eg. I can't show what food is available in Thessaloniki via Wolt, which would make our interactive chats dope af. So TravelPayouts was an intuitive starting point, just to: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A. learn how to build and implement such features flawlessly on our Google Cloud ecosystem. &lt;/li&gt;
&lt;li&gt;B. have something tangible that actually works instead of overpromising revolutionizing travel by requiring users to do manual work, search, manage credentials or whatever. &lt;/li&gt;
&lt;li&gt;C. explore alt revenue streams from partner integrations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're considering something similar for your AI app, this isn't a vague high-level fluff piece, but more of a practical, jargon-free, end-to-end guide for any developer or solo builder who wants to give their own AI agent (or local logical system) real travel search, live pricing, hotel suggestions, and monetized booking links—without getting burned by the subtle API quirks I had to learn the hard way.&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%2Fipen4aw7zjuuadnwqzqg.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%2Fipen4aw7zjuuadnwqzqg.png" alt=" " width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Core Idea: Never Let the LLM Hallucinate Prices or Links
&lt;/h2&gt;

&lt;p&gt;Before writing a single line of code, here is the #1 architectural rule that makes this whole thing work:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The AI never fetches prices, never guesses flight numbers, and never invents booking URLs.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you ask a raw LLM for a flight from Thessaloniki (&lt;code&gt;SKG&lt;/code&gt;) to London (&lt;code&gt;LON&lt;/code&gt;), it will happily hallucinate a $49 Ryanair flight that doesn't exist and a broken link.&lt;/p&gt;

&lt;p&gt;Instead, we split the job cleanly into three layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The AI Agent (Intent Parser + Curator):&lt;/strong&gt; When the user asks about flights, hotels, or planning a trip, the AI answers naturally in prose AND emits a tiny, structured JSON block (&lt;code&gt;type: "travel"&lt;/code&gt;) containing only the &lt;strong&gt;intent&lt;/strong&gt;: origin, destination, dates, guest count, multi-city legs (if any), and 3 curated hotel names for that destination.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your Backend Proxy (FastAPI / Python):&lt;/strong&gt; Holds your secret Travelpayouts API token safely on the server, resolves city names/typos to IATA airport codes, queries live flight prices with a multi-stage fallback, and batches affiliate partner links.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your Frontend Card (React + TypeScript):&lt;/strong&gt; Renders an interactive card directly inside the chat stream. Users can switch dates, toggle one-way vs. round-trip, type any city manually, switch between Flights and Stays, and click straight through to book—while caching results locally so switching tabs is instant.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  The Stack We Used (and Why)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Python + &lt;strong&gt;FastAPI&lt;/strong&gt; + &lt;code&gt;httpx&lt;/code&gt; (async HTTP). Why? Travelpayouts requires a private &lt;code&gt;X-Access-Token&lt;/code&gt; header. You can &lt;em&gt;never&lt;/em&gt; expose that token in frontend JavaScript. A thin async FastAPI router proxies every call, handles batching, and caches responses in memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; &lt;strong&gt;React + TypeScript + Tailwind CSS&lt;/strong&gt;. Why? Chat responses in our app are structured JSON content blocks. Adding a new &lt;code&gt;"travel"&lt;/code&gt; block type drops an interactive component straight into the conversation without breaking markdown rendering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Travel Data &amp;amp; Monetization:&lt;/strong&gt; &lt;strong&gt;Travelpayouts&lt;/strong&gt; (Aviasales Flight Data API v3 + Places Autocomplete + IP Geo + Partner Links API).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Step 1: Setting Up Travelpayouts (and the Caveats Nobody Tells You)
&lt;/h2&gt;

&lt;p&gt;Sign up at &lt;a href="https://www.travelpayouts.com/" rel="noopener noreferrer"&gt;travelpayouts.com&lt;/a&gt;, create a &lt;strong&gt;Project&lt;/strong&gt;, and grab three things from your dashboard:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;API Token&lt;/strong&gt; (&lt;code&gt;X-Access-Token&lt;/code&gt;) — keep this strictly in your backend environment / Secret Manager.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Marker&lt;/strong&gt; (&lt;code&gt;marker&lt;/code&gt;) — your affiliate ID.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TRS&lt;/strong&gt; (&lt;code&gt;trs&lt;/code&gt;) — your specific Project ID.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Useful Official Docs &amp;amp; Endpoints
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Travelpayouts API Reference:&lt;/strong&gt; &lt;a href="https://travelpayouts.github.io/slate/" rel="noopener noreferrer"&gt;travelpayouts.github.io/slate&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flight Prices (Aviasales Data API v3):&lt;/strong&gt; &lt;code&gt;https://api.travelpayouts.com/aviasales/v3/prices_for_dates&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Airport &amp;amp; City Autocomplete (&lt;code&gt;places2&lt;/code&gt;):&lt;/strong&gt; &lt;code&gt;https://autocomplete.travelpayouts.com/places2&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User Origin Detection (&lt;code&gt;whereami&lt;/code&gt;):&lt;/strong&gt; &lt;code&gt;https://www.travelpayouts.com/whereami&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partner Links API (Affiliate Link Converter):&lt;/strong&gt; &lt;code&gt;https://api.travelpayouts.com/links/v1/create&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Crucial Caveat #1: Project Verification (&lt;code&gt;index.html&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Before Travelpayouts approves your project and tracks clicks properly (especially for Travelpayouts Drive / link monetization), you need to verify your domain by dropping their verification &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; into your frontend &lt;code&gt;index.html&lt;/code&gt; &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; (or using meta verification). Don't skip this—if your domain isn't verified and connected to the travel programs you want (Aviasales, Booking/Trip.com/Expedia, Airalo eSIMs, etc.), the Partner Links API will reject or skip your URLs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Crucial Caveat #2: Only Convert URLs for Programs You Joined
&lt;/h3&gt;

&lt;p&gt;When you call &lt;code&gt;/links/v1/create&lt;/code&gt;, Travelpayouts only generates affiliate short-links for brands/programs your account is actually connected to. If you pass a random hotel website or a brand you didn't join, it fails. Always:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Connect the programs you want inside your Travelpayouts dashboard (e.g., &lt;strong&gt;Aviasales&lt;/strong&gt;, &lt;strong&gt;Trip.com&lt;/strong&gt;, &lt;strong&gt;Airalo&lt;/strong&gt; for eSIMs).&lt;/li&gt;
&lt;li&gt;Keep a small allow-list of your monetized domains on the backend, and gracefully fall back to the direct URL if conversion ever fails so a user &lt;strong&gt;never&lt;/strong&gt; gets a dead button.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Step 2: Teaching Your AI Agent When to Emit a Travel Card
&lt;/h2&gt;

&lt;p&gt;In your system prompt (where you define structured output blocks or tool calls), give the model a strict schema and a clear boundary so it only triggers the card when the user actually wants to search flights, stays, or plan a trip—not every time a city is mentioned in passing.&lt;/p&gt;

&lt;p&gt;Here is a generic JSON block schema you can adapt to your own agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"travel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKG"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"London"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"departureDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-12-10"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"returnDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-12-14"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"defaultTab"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"flights"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"guests"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"EUR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"legs"&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="nl"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SKG"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"LON"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"departureDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-12-10"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"oneWay"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&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="nl"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"LON"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ZRH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"departureDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-12-14"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"oneWay"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&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="nl"&gt;"recommendedStays"&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="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The Hoxton, Shoreditch"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"neighborhood"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Shoreditch"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"priceTier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"€€"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"perks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Boutique"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Near Tube"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Free Wi-Fi"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice how lightweight that is. The model outputs ~120 tokens, your streaming UI stays blazing fast, and the card immediately takes over to fetch live prices in the background.&lt;/p&gt;




&lt;h2&gt;
  
  
  Step 3: Building the Backend Proxy (and Solving the Hard Parts)
&lt;/h2&gt;

&lt;p&gt;Here are the 4 biggest real-world problems we hit in production—and how to solve them cleanly in Python.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenge 1: Exact Dates Often Return Zero Cached Flights
&lt;/h3&gt;

&lt;p&gt;Travelpayouts' &lt;code&gt;prices_for_dates&lt;/code&gt; endpoint is backed by a massive cached flight-price index (which is why it's free and fast!). The downside? If a user searches an obscure route on an exact Tuesday, &lt;code&gt;prices_for_dates&lt;/code&gt; might return &lt;code&gt;[]&lt;/code&gt; (empty!).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Fix: A 3-Stage Fallback Waterfall.&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Stage 1 (Exact):&lt;/strong&gt; Search exact &lt;code&gt;departure_at&lt;/code&gt; (and &lt;code&gt;return_at&lt;/code&gt; for round-trip).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stage 2 (Flexible Month):&lt;/strong&gt; If empty, strip the day (&lt;code&gt;YYYY-MM-DD&lt;/code&gt; → &lt;code&gt;YYYY-MM&lt;/code&gt;) to return the cheapest flights in that same month, and show a subtle &lt;code&gt;"Flexible dates"&lt;/code&gt; badge on the UI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stage 3 (Cheapest Upcoming):&lt;/strong&gt; If still empty, drop the dates completely so the user still sees real upcoming routes and prices instead of an ugly empty screen.
&lt;/li&gt;
&lt;/ol&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;httpx&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;typing&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Optional&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Dict&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Any&lt;/span&gt;

&lt;span class="no"&gt;TP_TOKEN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"YOUR_TRAVELPAYOUTS_TOKEN"&lt;/span&gt;
&lt;span class="no"&gt;FLIGHTS_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://api.travelpayouts.com/aviasales/v3/prices_for_dates"&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fetch_flights_with_fallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;origin&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;destination&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;departure_date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Optional&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="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;return_date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Optional&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="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"eur"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&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="nc"&gt;Any&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="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-Access-Token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;TP_TOKEN&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;# Build 3-stage waterfall: exact -&amp;gt; flexible month -&amp;gt; cheapest upcoming&lt;/span&gt;
    &lt;span class="n"&gt;attempts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;departure_date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;exact&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"departure_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;departure_date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"limit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;return_date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;exact&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"return_at"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;return_date&lt;/span&gt;
        &lt;span class="n"&gt;attempts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"exact"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;exact&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

        &lt;span class="n"&gt;flex&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"departure_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;departure_date&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"limit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;return_date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"return_at"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;return_date&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;attempts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"flexible_month"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;attempts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"cheapest_upcoming"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"limit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&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="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AsyncClient&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="mf"&gt;8.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;attempts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;resp&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;client&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="no"&gt;FLIGHTS_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;items&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&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;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"data"&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="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;items&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;"matchType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"flights"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;items&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;"matchType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"flights"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Challenge 2: Users Type &lt;code&gt;"ny"&lt;/code&gt;, &lt;code&gt;"ldn"&lt;/code&gt;, &lt;code&gt;"mow"&lt;/code&gt;, or Typos
&lt;/h3&gt;

&lt;p&gt;Travelpayouts' &lt;code&gt;places2&lt;/code&gt; autocomplete API is great for full names (&lt;code&gt;"Istanbul"&lt;/code&gt;, &lt;code&gt;"London"&lt;/code&gt;), but users naturally type shorthand like &lt;code&gt;ny&lt;/code&gt;, &lt;code&gt;la&lt;/code&gt;, &lt;code&gt;hk&lt;/code&gt;, &lt;code&gt;msc&lt;/code&gt;, or &lt;code&gt;mow&lt;/code&gt;—which sometimes return weird small-town matches or nothing at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Fix:&lt;/strong&gt; Combine a small shorthand alias dictionary (&lt;code&gt;"ny": "New York"&lt;/code&gt;, &lt;code&gt;"mow": "Moscow"&lt;/code&gt;, &lt;code&gt;"ldn": "London"&lt;/code&gt;, &lt;code&gt;"ist": "Istanbul"&lt;/code&gt;) with a debounced frontend autocomplete dropdown backed by &lt;code&gt;/places2&lt;/code&gt; (&lt;code&gt;types[]=city&amp;amp;types[]=airport&lt;/code&gt;). That way, any city on Earth resolves cleanly to its real IATA code.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenge 3: Partner Links API Caps You at 10 Links Per Request
&lt;/h3&gt;

&lt;p&gt;If you try to convert 15 flight/hotel/eSIM links in one call to &lt;code&gt;https://api.travelpayouts.com/links/v1/create&lt;/code&gt;, the API rejects the batch. And if you call it one link at a time in a loop, you'll hit rate limits and add seconds of latency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Fix:&lt;/strong&gt; Chunk URLs into batches of &lt;code&gt;&amp;lt;= 10&lt;/code&gt;, send them concurrently, and cache each converted URL in memory for 1 hour:&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;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;typing&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Dict&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;List&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Tuple&lt;/span&gt;

&lt;span class="no"&gt;LINK_CACHE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&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="nc"&gt;Tuple&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;float&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="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="no"&gt;CACHE_TTL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;convert_partner_links&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;List&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;trs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;marker&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;token&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="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&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;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;time&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&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="o"&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;to_fetch&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;List&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="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;cached&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;LINK_CACHE&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="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;cached&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;cached&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;CACHE_TTL&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cached&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;to_fetch&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;to_fetch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# Batch in chunks of 10 (Travelpayouts API limit)&lt;/span&gt;
    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AsyncClient&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="mf"&gt;6.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;to_fetch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;batch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;to_fetch&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;i&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;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"trs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;trs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"marker"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;marker&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"links"&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;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;resp&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;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                    &lt;span class="s2"&gt;"https://api.travelpayouts.com/links/v1/create"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-Access-Token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&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="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&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;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&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;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"result"&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"links"&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="n"&gt;orig&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;item&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;"url"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                        &lt;span class="n"&gt;partner&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;item&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;"partner_url"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;orig&lt;/span&gt;
                        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;orig&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                            &lt;span class="no"&gt;LINK_CACHE&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;orig&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;partner&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                            &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;orig&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;partner&lt;/span&gt;
            &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;pass&lt;/span&gt;

    &lt;span class="c1"&gt;# Graceful fallback: never return a broken/empty link&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setdefault&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Challenge 4: Stays (Hotels) When the User Manually Switches Cities
&lt;/h3&gt;

&lt;p&gt;When the AI first renders the card, it includes 3 curated hotels for the destination. But what happens when the user manually types a brand-new city into the card's search box (say, switching from Istanbul to Moscow)? There are no AI-curated hotels for Moscow in that old JSON block!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Fix:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build a &lt;code&gt;/travel/stays&lt;/code&gt; endpoint that generates pre-filled hotel search links (with check-in, check-out, and guest count) + category fallback cards (&lt;em&gt;"Top Central Boutique Stays in Moscow"&lt;/em&gt;, &lt;em&gt;"Best Value Hotels in Moscow"&lt;/em&gt;, &lt;em&gt;"5-Star Luxury Stays in Moscow"&lt;/em&gt;) whenever the user switches to a city not in the initial AI payload.&lt;/li&gt;
&lt;li&gt;Hydrate real hotel/city photos with a multi-candidate retry fallback so cards always look sharp, never broken grey boxes.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Step 4: Making the Frontend Card Feel Native (Not Like a Clunky Widget)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4x4wpr7quz9c3flbp2fu.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%2F4x4wpr7quz9c3flbp2fu.png" alt=" " width="799" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A few small frontend details make a massive difference in how premium a Travel Card feels inside a chat app:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;In-Memory + &lt;code&gt;sessionStorage&lt;/code&gt; Caching:&lt;/strong&gt; Switching between the &lt;code&gt;Flights&lt;/code&gt; tab, &lt;code&gt;Stays&lt;/code&gt; tab, and multi-city &lt;code&gt;Legs&lt;/code&gt; should be instantaneous. Cache API responses by &lt;code&gt;(origin, destination, departureDate, returnDate, currency)&lt;/code&gt; with a short TTL in &lt;code&gt;sessionStorage&lt;/code&gt; so even refreshing the page doesn't cause jarring reloads or flickering photos—while keeping a manual &lt;strong&gt;Refresh&lt;/strong&gt; button that bypasses cache when the user wants fresh live prices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Independent Calendars for Flights vs. Stays:&lt;/strong&gt; Don't couple flight dates and hotel check-in/out dates too tightly. Users often fly overnight or stay in two cities on one trip—give Stays its own clean check-in/out selector.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Airline Logos with Monospace Fallback:&lt;/strong&gt; Aviasales serves clean airline logos at &lt;code&gt;https://pics.avs.io/64/64/{AIRLINE_IATA}.png&lt;/code&gt;. Always add an &lt;code&gt;onError&lt;/code&gt; fallback badge showing the 2-letter airline code (e.g. &lt;code&gt;A3&lt;/code&gt;, &lt;code&gt;LH&lt;/code&gt;, &lt;code&gt;TK&lt;/code&gt;) so a missing logo never shows a broken image icon.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-Collapse Older Cards:&lt;/strong&gt; If a user plans 3 different trips in one long conversation, keep only the &lt;strong&gt;latest&lt;/strong&gt; Travel Card expanded by default and collapse older ones into a sleek 1-line summary bar they can re-expand anytime.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contextual Follow-Up Pills:&lt;/strong&gt; At the bottom of the card, drop 2–3 minimal pill buttons like &lt;em&gt;"Best neighborhood to stay?"&lt;/em&gt;, &lt;em&gt;"3-day itinerary"&lt;/em&gt;, or &lt;em&gt;"Airport transfer tips"&lt;/em&gt; that feed right back into your AI companion.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is a simplified React + &lt;code&gt;sessionStorage&lt;/code&gt; cache helper you can drop straight into your own frontend:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;CACHE_TTL_MS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// 10 minutes&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;memoryCache&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Map&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&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="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;any&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getCachedTravel&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="no"&gt;T&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&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="no"&gt;T&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&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;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&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;mem&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;memoryCache&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="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mem&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;mem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ts&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;CACHE_TTL_MS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;mem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="no"&gt;T&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;try&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;raw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sessionStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`travel_cache:${key}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&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;parsed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parsed&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;parsed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ts&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;CACHE_TTL_MS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;memoryCache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parsed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;parsed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="no"&gt;T&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="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Ignore private-mode storage errors&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;setCachedTravel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&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="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;any&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;void&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;entry&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&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;data&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;memoryCache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;sessionStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`travel_cache:${key}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&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="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Ignore quota errors&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;h3&gt;
  
  
  Bonus: The eSIM Strip
&lt;/h3&gt;

&lt;p&gt;Since Travelpayouts also supports &lt;strong&gt;Airalo&lt;/strong&gt;, we added a slim, non-intrusive eSIM strip at the bottom of the card (&lt;em&gt;"Landing in Tokyo? Grab a local eSIM"&lt;/em&gt;) using a pre-converted partner link. It's genuinely useful for travelers and takes 10 lines of UI code.&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%2Fwktmfraofo78jhzf9wbl.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%2Fwktmfraofo78jhzf9wbl.png" alt=" " width="799" height="194"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Putting It All Together
&lt;/h2&gt;

&lt;p&gt;The beauty of this pattern is that it doesn't just apply to travel. Once your AI agent outputs clean, structured intent blocks and your backend acts as the deterministic execution layer (live APIs, caching, fallbacks, link monetization), your chat interface stops being a wall of text and turns into a real operating system.&lt;/p&gt;

&lt;p&gt;You don't need a 50-person engineering team or a \$50M seed round to build this. You need clean boundaries between what the LLM is good at (understanding intent &amp;amp; curating) and what traditional code is good at (fetching live data, handling edge cases, and rendering fast UI).&lt;/p&gt;

&lt;p&gt;If you want to try the Travel Card live, jump into &lt;strong&gt;&lt;a href="https://arpa.chat" rel="noopener noreferrer"&gt;arpa.chat&lt;/a&gt;&lt;/strong&gt; and ask your companion to plan a weekend trip or find flights anywhere in the world.&lt;/p&gt;

&lt;p&gt;Got questions about Travelpayouts quirks, FastAPI proxying, or structuring LLM UI cards? Drop them in the comments—happy to help fellow solo builders ship faster.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>showdev</category>
      <category>python</category>
      <category>react</category>
    </item>
    <item>
      <title>AURA: The Verifiable Runtime Coat &amp; Attestation Spine for AI Agents</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Sat, 21 Nov 2026 15:25:03 +0000</pubDate>
      <link>https://dev.to/arpa/aura-the-verifiable-runtime-coat-attestation-spine-for-ai-agents-2oen</link>
      <guid>https://dev.to/arpa/aura-the-verifiable-runtime-coat-attestation-spine-for-ai-agents-2oen</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;How AURA (machine-aura) wraps existing agent loops with policy gates, secret redaction, cost circuit breakers, and offline-verifiable signed audit packs—without owning your loop.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  The Problem: Agents Are Easy to Build, Hard to Prove
&lt;/h2&gt;

&lt;p&gt;You can wire an AI agent to tools in an afternoon. Putting that same agent into production in finance, healthcare, enterprise SaaS, or hardware automation hits a wall:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What did the agent actually do?&lt;/strong&gt; Logs are scattered, mutable, and rarely tied to a cryptographic trail.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Did a tool call leak a secret or PII?&lt;/strong&gt; Raw API keys, bearer tokens, and customer data slip into trace logs and error messages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What happens when an agent loops or burns budget?&lt;/strong&gt; A runaway retry loop can burn thousands of dollars in minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How do you prove compliance offline?&lt;/strong&gt; Auditors and incident teams don't want access to your live runtime—they want a self-contained, tamper-evident artifact they can verify independently.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;AURA&lt;/strong&gt; (&lt;code&gt;pip install machine-aura&lt;/code&gt;) solves this without asking you to rewrite your agent framework.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is AURA?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;AURA is a verifiable runtime coat and attestation spine for AI agents.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It wraps whatever runs your agent loop—a plain Python script, &lt;a href="https://github.com/ARPAHLS/skillware" rel="noopener noreferrer"&gt;Skillware&lt;/a&gt;, LangGraph, or your own custom host. It does &lt;strong&gt;not&lt;/strong&gt; replace your orchestrator, model, or tool runtime. Instead, it sits at the &lt;strong&gt;egress boundary&lt;/strong&gt;, mediating every tool/skill call and recording every action onto a &lt;strong&gt;SHA-256 hash-chained audit spine&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Zero-dependency at its core, AURA turns opaque agent runs into provable, auditable execution records.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who Is It For?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Platform &amp;amp; AgentOps Engineers&lt;/strong&gt; who need USD cost circuit breakers, loop/cycle detection, and OpenTelemetry GenAI spans without vendor lock-in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security &amp;amp; AppSec Teams&lt;/strong&gt; who need automatic secret/PII redaction, SSRF-safe webhook delivery, and credential isolation (&lt;code&gt;SecretBroker&lt;/code&gt;) so agents never touch raw &lt;code&gt;os.environ&lt;/code&gt; secrets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compliance &amp;amp; Risk Teams&lt;/strong&gt; (FinTech, Healthcare, Regulated Enterprise) who need offline-verifiable, cryptographically signed audit packs (&lt;code&gt;.pack.json&lt;/code&gt;) and dual-ledger verification.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware &amp;amp; Bioware Automation Teams&lt;/strong&gt; who need manifest-level safety gates before an agent can trigger physical-world actions.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Your Agent Loop (Host / LangGraph / Skillware / Python)
   │
   ▼  (Egress boundary)
AURA Runtime Coat
   ├── Policy &amp;amp; Schema Gates (spectrum posture, physical-substrate gates)
   ├── Secret &amp;amp; PII Redaction (unified pattern scrubbing, SecretBroker)
   ├── FinOps &amp;amp; Observers (USD cost circuit breaker, loop/drift detection)
   └── SHA-256 Hash-Chained Audit Spine
         │
         ├──► JSONL + Summary + Audit Report
         ├──► OTel GenAI Spans
         └──► Signed Audit Pack ({session_id}.pack.json) ──► Offline `aura verify pack`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Quick Start (Zero-Dependency Core)
&lt;/h2&gt;

&lt;p&gt;Install from PyPI (renamed from &lt;code&gt;aura-harness&lt;/code&gt; to &lt;strong&gt;&lt;code&gt;machine-aura&lt;/code&gt;&lt;/strong&gt; in &lt;code&gt;0.3.7&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install machine-aura
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wrap a session in 6 lines of Python:&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;aura&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;configure&lt;/span&gt;

&lt;span class="nf"&gt;configure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;ag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"acme/research-bot"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;policy_version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;ag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;signed_pack&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;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"turn.start"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"input"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Summarize Q3 risk report"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;emit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"turn.end"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;420&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exports&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify the exported bundle offline from the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aura verify chain ./aura_sessions/&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;session_id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/events.jsonl
aura verify pack ./aura_sessions/&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;session_id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;session_id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;.pack.json --key &lt;span class="s2"&gt;"$AURA_SIGNING_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  What's New in AURA 0.3.7
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Signed Audit Packs &amp;amp; Offline Verification
&lt;/h3&gt;

&lt;p&gt;Compliance teams shouldn't need access to your production database to trust an agent's execution log. With &lt;code&gt;signed_pack=True&lt;/code&gt;, AURA emits &lt;code&gt;export.signed_pack&lt;/code&gt; on the spine and atomically writes &lt;code&gt;{session_id}.pack.json&lt;/code&gt; containing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;chain_root&lt;/code&gt; of the SHA-256 audit spine&lt;/li&gt;
&lt;li&gt;SHA-256 digests of every exported artifact&lt;/li&gt;
&lt;li&gt;A detached cryptographic signature (&lt;code&gt;hmac-sha256&lt;/code&gt; zero-dependency default, or &lt;code&gt;ed25519&lt;/code&gt; when &lt;code&gt;cryptography&lt;/code&gt; is installed)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. AURA-Native Coat Ops (&lt;code&gt;WebhookCoatOp&lt;/code&gt;, &lt;code&gt;SmtpCoatOp&lt;/code&gt;, &lt;code&gt;CoatOpRunner&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;When an observer or SLO rule triggers an escalation (&lt;code&gt;escalation.email&lt;/code&gt;, &lt;code&gt;escalation.wake&lt;/code&gt;), AURA now ships native, zero-dependency delivery primitives:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;WebhookCoatOp&lt;/code&gt; with built-in &lt;strong&gt;SSRF URL validation&lt;/strong&gt; and &lt;code&gt;X-AURA-Signature&lt;/code&gt; HMAC-SHA256 signing&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;SmtpCoatOp&lt;/code&gt; using stdlib &lt;code&gt;smtplib&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CoatOpRunner&lt;/code&gt; for membrane-level scans routed through &lt;code&gt;SkillwareHost&lt;/code&gt; egress&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Skillware 0.6.2+ Dispatch Bridge &amp;amp; Dual-Ledger Verification
&lt;/h3&gt;

&lt;p&gt;If you run Skillware skills, &lt;code&gt;SkillwareHost.create_context()&lt;/code&gt; bridges &lt;code&gt;SkillContext&lt;/code&gt; &lt;code&gt;on_dispatch&lt;/code&gt; events directly into AURA's &lt;code&gt;AuditSpine&lt;/code&gt; with correlated &lt;code&gt;trace_id&lt;/code&gt;/&lt;code&gt;span_id&lt;/code&gt;. Optional &lt;code&gt;verify_dual_audit_chain()&lt;/code&gt; cross-verifies AURA's spine against Skillware's own JSONL log to catch tampering, truncation, or unanchored shadow executions (&lt;code&gt;UNGUARDED_SKILL_DISPATCH&lt;/code&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Egress FinOps, OTel GenAI &amp;amp; USD Cost Circuit Breakers
&lt;/h3&gt;

&lt;p&gt;AURA tracks &lt;code&gt;latency_ms&lt;/code&gt;, &lt;code&gt;model&lt;/code&gt;, token counts, and &lt;code&gt;estimated_cost_usd&lt;/code&gt; per egress call, emits OpenTelemetry GenAI semantic attributes (&lt;code&gt;gen_ai.request.model&lt;/code&gt;, &lt;code&gt;gen_ai.usage.*&lt;/code&gt;, &lt;code&gt;error.type&lt;/code&gt;), and lets &lt;code&gt;LimitObserver&lt;/code&gt; enforce &lt;code&gt;max_cost_usd&lt;/code&gt; budget warnings and hard circuit breakers.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Manifest v2 Physical-Substrate Safety Gates &amp;amp; Unified Secret Redaction
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Physical safety&lt;/strong&gt;: &lt;code&gt;SkillwareHost&lt;/code&gt; validates Manifest v2 schemas and auto-gates exclusively physical &lt;code&gt;hardware&lt;/code&gt;/&lt;code&gt;bioware&lt;/code&gt; skills (&lt;code&gt;hardware_gate="auto"&lt;/code&gt;) before execution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secret hygiene&lt;/strong&gt;: &lt;code&gt;redact_secret_patterns()&lt;/code&gt; scrubs raw credentials (&lt;code&gt;sk-...&lt;/code&gt;, &lt;code&gt;ghp_...&lt;/code&gt;, &lt;code&gt;AIza...&lt;/code&gt;, &lt;code&gt;AKIA...&lt;/code&gt;, &lt;code&gt;Bearer ...&lt;/code&gt;, PEM keys) across all free-form strings and error messages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Async egress&lt;/strong&gt;: &lt;code&gt;guarded_tool_call_async&lt;/code&gt;, &lt;code&gt;SkillwareHost.aexecute()&lt;/code&gt;, and a thread-safe (&lt;code&gt;RLock&lt;/code&gt;) &lt;code&gt;AuditSpine&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Industry Scenarios
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;FinTech &amp;amp; Banking&lt;/strong&gt;: Export &lt;code&gt;signed_pack=True&lt;/code&gt; bundles for every automated underwriting or KYC agent run; verify them offline in audit pipelines with &lt;code&gt;aura verify pack&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enterprise SaaS&lt;/strong&gt;: Wire &lt;code&gt;LimitObserver(max_cost_usd=5.0)&lt;/code&gt; and &lt;code&gt;redact_secret_patterns&lt;/code&gt; so customer-facing agents never leak API keys in error traces or blow through token budgets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Robotics &amp;amp; Bio/Lab Automation&lt;/strong&gt;: Use &lt;code&gt;hardware_gate="auto"&lt;/code&gt; to require explicit human confirmation before a physical-substrate skill executes, while keeping pure-software math/lookup tools unblocked.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Get Started
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;PyPI: &lt;code&gt;pip install machine-aura&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/ARPAHLS/aura" rel="noopener noreferrer"&gt;ARPAHLS/aura&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://github.com/ARPAHLS/aura/blob/main/docs/INDEX.md" rel="noopener noreferrer"&gt;docs/INDEX.md&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>compliance</category>
      <category>python</category>
    </item>
    <item>
      <title>Skillware v0.6.2: Section-Chunked Tax PDFs, RPC Health Gates &amp; Strict Core Typing</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Wed, 18 Nov 2026 10:07:56 +0000</pubDate>
      <link>https://dev.to/arpa/skillware-v062-section-chunked-tax-pdfs-rpc-health-gates-strict-core-typing-2lkj</link>
      <guid>https://dev.to/arpa/skillware-v062-section-chunked-tax-pdfs-rpc-health-gates-strict-core-typing-2lkj</guid>
      <description>&lt;p&gt;When building AI agents that interact with real-world systems—filling tax forms, checking blockchain RPCs, or normalizing sensor units—prompting an LLM to "figure it out" at runtime is fragile.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Skillware&lt;/strong&gt; (&lt;a href="https://github.com/ARPAHLS/skillware" rel="noopener noreferrer"&gt;github.com/ARPAHLS/skillware&lt;/a&gt;, MIT) takes a different approach: package each capability as a self-contained, versioned Python bundle with a typed contract (&lt;code&gt;manifest.yaml&lt;/code&gt;), deterministic code (&lt;code&gt;skill.py&lt;/code&gt;), agent instructions (&lt;code&gt;instructions.md&lt;/code&gt;), and offline unit tests (&lt;code&gt;test_skill.py&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Today we released &lt;strong&gt;v0.6.2&lt;/strong&gt; (&lt;code&gt;pip install skillware==0.6.2&lt;/code&gt;). Here's a quick look at what's inside:&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Filling Tax &amp;amp; FATCA PDFs Without Context Bloat (&lt;code&gt;office/pdf_form_filler&lt;/code&gt; v0.2.0)
&lt;/h2&gt;

&lt;p&gt;Official IRS PDFs like W-8BEN-E have 179+ widgets and often ship with hybrid XFA wrappers that break standard PDF libraries.&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%2Fvfqvtzndcsl3123dh93l.jpeg" 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%2Fvfqvtzndcsl3123dh93l.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In v0.6.2, &lt;code&gt;office/pdf_form_filler&lt;/code&gt; adds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;4 verified static AcroForm templates&lt;/strong&gt; (&lt;code&gt;us_irs_w8ben&lt;/code&gt;, &lt;code&gt;us_irs_w9&lt;/code&gt;, &lt;code&gt;us_irs_w8bene&lt;/code&gt;, &lt;code&gt;us_irs_f8966_fatca&lt;/code&gt;) with XFA stripped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Section-chunked YAML schemas:&lt;/strong&gt; Call &lt;code&gt;get_template_schema(template_id="us_irs_w8ben", section="part_1_identification")&lt;/code&gt; so the model only sees one section at a time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automatic PII masking:&lt;/strong&gt; Fields tagged &lt;code&gt;sensitive: true&lt;/code&gt; (TINs, birthdates, account numbers) are masked (&lt;code&gt;***4321&lt;/code&gt;) in &lt;code&gt;confirmed=False&lt;/code&gt; previews.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3-tier operator overrides:&lt;/strong&gt; Override bundled templates via &lt;code&gt;PDF_TEMPLATES_DIR&lt;/code&gt;, &lt;code&gt;.skillware.yaml&lt;/code&gt;, or &lt;code&gt;~/.config/skillware/pdf_templates/&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run the offline demo yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install &lt;span class="s2"&gt;"skillware[office_pdf_form_filler]"&lt;/span&gt;
python examples/pdf_form_filler_w8ben_demo.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Pre-Flight EVM RPC Health Gate (&lt;code&gt;monitoring/rpc_health_probe&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Before an agent signs or broadcasts an on-chain transaction, &lt;code&gt;monitoring/rpc_health_probe&lt;/code&gt; checks &lt;code&gt;eth_chainId&lt;/code&gt;, round-trip latency, and optional reference block lag—failing closed on wrong chains or JSON-RPC errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Deterministic Unit Normalization (&lt;code&gt;data_engineering/unit_normalizer&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Dependency-free conversions for single values, batches, and tables—including compound strings (&lt;code&gt;5 ft 11 in&lt;/code&gt;), temperature offsets, and explicit ambiguity flags (&lt;code&gt;ton&lt;/code&gt;, &lt;code&gt;gal&lt;/code&gt;, &lt;code&gt;oz&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Get Involved
&lt;/h2&gt;

&lt;p&gt;Skillware is built for both human contributors and AI-assisted workflows (&lt;code&gt;docs/contributing/ai_native_workflow.md&lt;/code&gt;). Check out our &lt;code&gt;good first issue&lt;/code&gt; list on GitHub!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>agentskills</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Building ARPA Chat Solo: 500+ Organic Users, What We Learned, and Why We Rebuilt Everything</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Tue, 10 Nov 2026 15:26:50 +0000</pubDate>
      <link>https://dev.to/arpa/building-arpa-chat-solo-500-organic-users-what-we-learned-and-why-we-rebuilt-everything-5f2f</link>
      <guid>https://dev.to/arpa/building-arpa-chat-solo-500-organic-users-what-we-learned-and-why-we-rebuilt-everything-5f2f</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;My honest journey learning TypeScript, GCP, and GenAI on the fly to build ARPA Chat, hitting 500+ organic users, and rebuilding voice and agent cognition from scratch.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;I have been building ARPA Chat solo since late last year. &lt;/p&gt;

&lt;p&gt;After months of nonstop tinkering, I finally sat down to ship a whole batch of major upgrades that I had been postponing for quite some time. Before diving into what is new, I want to share where this project came from, the technical trenches I crawled through, and why this update was overdue.&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%2Fo4pmhzxd4a8kvf93yskk.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%2Fo4pmhzxd4a8kvf93yskk.png" alt=" " width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Context and Background
&lt;/h3&gt;

&lt;p&gt;ARPA Chat started out strictly as an experimental side project. I had no marketing budget, ran zero paid ads, published no hype threads, and had no launch campaign. It grew purely through word of mouth, which for me is crazy considering I only shared it with a handful of friends to try and test initially. The purpose of the app was vague from the beginning, even tho we got into an accelerator and were approached by a dozen investors, but for us this was always more of a testing hall for AI features rather than a commercial AI app. &lt;/p&gt;

&lt;p&gt;It served initially as a personal training ground for I wanted to learn how to deploy and maintain a full-blown production app without relying on external devs or design studios, a personal challenge, if you like.&lt;/p&gt;

&lt;p&gt;Obviously a vibe coder can tell you that you can build any app in less than a week with Claude Code. But in my case, I didn't want to use Lovable, Supabase, or host some generic MVP that looks like every other vibe-coded project spat out on Vercel.&lt;/p&gt;

&lt;p&gt;So initially, I had to brainstorm with Gemini (back then Gemini 2), and figure out the architecture, approach, stack, and challenges to consider.&lt;/p&gt;

&lt;p&gt;We ended up with GCP x Firebase, even though I had zero prior experience with either. I was naturally closer to the Google ecosystem, and since our parent company ARPA Hellenic Logical Systems was recently incorporated, Google gave us $2k in startup credits until January 2027. It would not be wise to just let them rot.&lt;/p&gt;

&lt;p&gt;The initial UI was the easiest part, lit vibe coded with Gemini and Claude via Cursor in a matter of days. It wasn't perfect, but it had the essentials like the basic chat area, past convos, and basic settings. The real challenge was setting up the backend. I picked Python simply because it was the only language I was versatile at, not for any other reason. &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%2Fqmi64kstc6otjo5xa8ez.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%2Fqmi64kstc6otjo5xa8ez.png" alt=" " width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Firebase was a piece of cake. I already had a bunch of ARPA-related domains, including &lt;code&gt;arpa.chat&lt;/code&gt;, so I pointed that to Firebase, set up Auth and Firestore, and had authentication running smoothly. On the other hand, setting up GCP was a massive pain in the ass. But bwoy, the experience I gained was invaluable, and I now feel confident deploying almost anything on Google Cloud, managing VMs, compute optimization, AI/ML Ops, IAM policies, key management, prompt injection firewalls, Cloud Run containers, you name it. And that, was the real goal with arpa.chat. Learn how real apps used by millions are wired to the bone.&lt;/p&gt;

&lt;p&gt;Plus, living on GCP makes it easy to implement native Google ecosystem features like Maps, image search, and real-time live voice.&lt;/p&gt;

&lt;p&gt;The worst part of all was probably output formatting, rendering, storing correctly different schemas and self-healing, especially for complex cards like interactive maps, or diff reviews.&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%2F472yyllgaqxicejl6e75.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%2F472yyllgaqxicejl6e75.png" alt=" " width="800" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F70chuas9dhpouhwg5rgd.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%2F70chuas9dhpouhwg5rgd.png" alt=" " width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  ARPA ID &amp;amp; 3 Distinct Personas
&lt;/h3&gt;

&lt;p&gt;An interesting part was building the &lt;strong&gt;ARPA ID&lt;/strong&gt; schema design to serve user customizations and agent preferences as we unlock new platform capabilities. If a user customizes an agent with a specific system prompt, settings, or custom voice, those settings persist specifically for that agent without dirtying global defaults (unless explicitly specified).&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%2Fe1rssb22grtoygrgloy0.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%2Fe1rssb22grtoygrgloy0.png" alt=" " width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We also didn't want just one monolith AI that users prompt into a blank box. Instead, as in real life you don't only interact with one person, we built 3 distinct models and personas with individual lineages and characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;C3:&lt;/strong&gt; Your reliable, plain, neutral AI assistant for daily work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PHO-TN:&lt;/strong&gt; A warm Greek lady—like someone's favorite aunt, who helps netizens with Byzantine bureaucracy, cooking proper Kokkinisto, or local gossip.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OPSIE:&lt;/strong&gt; A sharp, serious, high-end corporate operative who feels like a character straight out of a cyberpunk world.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Moving Away from ElevenLabs: The Real-Time Voice Pivot
&lt;/h3&gt;

&lt;p&gt;The biggest user request was voice. In earlier iterations, we followed the standard pipeline: microphone audio -&amp;gt; Speech-to-Text -&amp;gt; LLM generation -&amp;gt; ElevenLabs TTS -&amp;gt; browser playback. This worked in 2024, was okish in 2025, but extremely outdated in 2026 and beyond.&lt;/p&gt;

&lt;p&gt;On paper, ElevenLabs sounded great. In practice, the UX was broken:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Compounding Latency:&lt;/strong&gt; Daisy-chaining STT + LLM + TTS caused a 2 to 4 second lag. It felt like talking over a sluggish satellite phone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Punishing Costs:&lt;/strong&gt; Character-based TTS quotas burned credits rapidly once people had real, open-ended conversations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Natural Flow:&lt;/strong&gt; You couldn't naturally interrupt an agent mid-sentence without messy cancellation hacks and audio buffer tearing, unless you used conversational ai api, but that needed it's own rag native to XI Labs. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So, we moved away from ElevenLabs and rebuilt our voice engine using native bidirectional WebSockets with Gemini 3.8 Live.&lt;/p&gt;

&lt;p&gt;The difference is night and day. Audio flows full-duplex over a single live socket with sub-second latency. The agent hears you while it speaks, gracefully yielding the floor the moment you speak up. We also mapped custom &lt;strong&gt;Verbal Spectrums&lt;/strong&gt; so any agent can have their own unique voice.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Should You Care?
&lt;/h3&gt;

&lt;p&gt;On most AI platforms, customizing an assistant requires one of two extremes: writing a 500-word prompt essay, or learning complex workflow automations with webhooks and API keys.&lt;/p&gt;

&lt;p&gt;ARPA Chat takes a tactile approach. You don't need to be an AI engineer or learn prompt wizardry. You customize agents using simple buttons, faders, and dropdown choices. Want deeper analytical reasoning or snappier cadence? Slide a fader. Want to change an agent's demeanor or vocal spectrum? Pick from a dropdown. The underlying multi-layer cognition configures itself automatically.&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%2Fjtwhq34ym4zrdlv390ap.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%2Fjtwhq34ym4zrdlv390ap.png" alt=" " width="799" height="443"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Where This Leads: Skillware, 3D Avatars, and Harp Island (HI)
&lt;/h3&gt;

&lt;p&gt;Besides the obvious next updates that bring videogen, audiogen, and more apps (currently we have interactive chess you can play with your AI), what we have today is just the launchpad for where we are heading:&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%2Fuz6w6wwugz5bqxc1i4uw.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%2Fuz6w6wwugz5bqxc1i4uw.png" alt=" " width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Skillware:&lt;/strong&gt; We are integrating modular skills that any agent can utilize out of the box with zero code, zero "vibe coding", no debugging nightmares, no sandboxing headaches, no API keys, and no brittle n8n or Python connectors. You simply pick the skill, configure it for your needs, and your agent can utilize it indefinitely. We open-sourced the underlying specification on GitHub at &lt;a href="https://github.com/arpahls/skillware" rel="noopener noreferrer"&gt;arpahls/skillware&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3D Interactive Avatars:&lt;/strong&gt; Chat bubbles are only the first step. We are actively working on web-based 3D interactive avatars over at &lt;a href="https://github.com/arpahls/avatar" rel="noopener noreferrer"&gt;arpahls/avatar&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harp Island (HI):&lt;/strong&gt; These 3D avatars will power HI (Harp Island), a shared, multiplayer web environment where humans and autonomous AI agents interact, collaborate, and explore shared spaces.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhqs8lomevqnlfbg5gs2n.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhqs8lomevqnlfbg5gs2n.gif" alt="avatar" width="480" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Final Thoughts
&lt;/h3&gt;

&lt;p&gt;To the 500+ people who adopted ARPA Chat purely through word of mouth and stuck with a solo builder through the early bugs: thank you. This update is for you.&lt;/p&gt;

&lt;p&gt;Feel free to check out what we've shipped, play with the live voice engine, and drop your honest thoughts below! Any kind of feedback more than just appreciated &amp;lt;3&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>Don't Prompt Your Agents. Equip Them: How Small Models + Skillware Beat Frontier LLMs</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Sat, 07 Nov 2026 05:52:12 +0000</pubDate>
      <link>https://dev.to/arpa/dont-prompt-your-agents-equip-them-how-small-models-skillware-beat-frontier-llms-1k00</link>
      <guid>https://dev.to/arpa/dont-prompt-your-agents-equip-them-how-small-models-skillware-beat-frontier-llms-1k00</guid>
      <description>&lt;blockquote&gt;
&lt;h2&gt;
  
  
  Stop forcing LLMs to write disposable Python scripts on the fly. Here is how deterministic capability bundles slash token burn by 84.8%, cut costs by 97.3%, and let 8B local models outperform GPT-5 and Claude Sonnet 5.
&lt;/h2&gt;
&lt;/blockquote&gt;

&lt;p&gt;Right now, the AI engineering world is trapped in a very expensive delusion: &lt;strong&gt;the prompt-driven execution paradigm&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;We give an auto-regressive language model a massive markdown dump of API docs, tell it to dynamically synthesize Python or bash scripts on the fly, and pray that it respects security boundaries because we wrote &lt;em&gt;"IMPORTANT: DO NOT DELETE PROD"&lt;/em&gt; in all caps in the system prompt.&lt;/p&gt;

&lt;p&gt;When it works, it feels like magic. When it hits production, it's a disaster. You get &lt;strong&gt;Prompt Rot&lt;/strong&gt; (switching models breaks all your tool shims), &lt;strong&gt;Quadratic Attention Tax&lt;/strong&gt; (paying frontier rates to re-read static OpenAPI schemas on every turn), and the dreaded &lt;strong&gt;Context Poisoning Cliff&lt;/strong&gt;—where an agent fails a script attempt, dumps a massive stack trace into its own context window, and spirals into terminal hallucination by attempt #8.&lt;/p&gt;

&lt;p&gt;In a new paper from &lt;strong&gt;ARPA Hellenic Logical Systems&lt;/strong&gt; (&lt;em&gt;"Don't Prompt Your Agents. Equip Them: Skillware as a Modular Standard for Sovereign, Auditable, and Deterministic Capability Execution for Logical Systems"&lt;/em&gt;, &lt;a href="https://arxiv.org/abs/2611.07652" rel="noopener noreferrer"&gt;arXiv:2611.07652v1&lt;/a&gt;, we formalize the antidote: &lt;strong&gt;Capability Engineering&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  The RPG Hotkey Analogy
&lt;/h2&gt;

&lt;p&gt;Think about how skills work in an RPG like &lt;em&gt;Morrowind&lt;/em&gt; or &lt;em&gt;Diablo&lt;/em&gt;. When your character casts a spell or triggers an ability, you don't open a chat box and negotiate with the game engine to invent the physics of a fireball at runtime. &lt;/p&gt;

&lt;p&gt;You press a hotkey. If the preconditions hold (you have the mana, you're outside a sanctuary town, targeting a valid hostile), the engine executes pre-compiled, deterministic logic and produces the exact same state transition every time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Skillware&lt;/strong&gt; brings this exact discipline to AI agents:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The Principle of Separation of Cognition and Capability:&lt;/strong&gt; The model decides &lt;em&gt;when&lt;/em&gt; to act and selects the parameters; the capability bundle governs &lt;em&gt;how&lt;/em&gt; the action is executed. &lt;em&gt;The assistant is a guest in this case, while the hard function does the work.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What is a Skillware Bundle?
&lt;/h2&gt;

&lt;p&gt;Instead of loose &lt;code&gt;SKILL.md&lt;/code&gt; files or brittle prompt wrappers, Skillware packages capabilities into self-contained, versioned, 5-role software bundles:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Contract (&lt;code&gt;manifest.yaml&lt;/code&gt;):&lt;/strong&gt; Typed JSON Schema inputs/outputs, required env vars, cryptographic publisher identity, and an immutable &lt;strong&gt;Constitution&lt;/strong&gt; (e.g., &lt;code&gt;confirmed: true&lt;/code&gt; gates for destructive actions).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Effect (&lt;code&gt;skill.py&lt;/code&gt;):&lt;/strong&gt; Pre-compiled, deterministic Python logic subclassing &lt;code&gt;BaseSkill&lt;/code&gt;. Zero runtime code synthesis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Directive (&lt;code&gt;instructions.md&lt;/code&gt;):&lt;/strong&gt; Progressive disclosure guidance loaded Just-In-Time (JIT) only when needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assurance (&lt;code&gt;test_skill.py&lt;/code&gt;):&lt;/strong&gt; Hermetic offline &lt;code&gt;pytest&lt;/code&gt; suites that verify the Effect honors the Contract in &lt;code&gt;&amp;lt;100ms&lt;/code&gt; without calling a single LLM API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Corpus &amp;amp; Presentation (&lt;code&gt;data/&lt;/code&gt;, &lt;code&gt;card.json&lt;/code&gt;):&lt;/strong&gt; Static offline datasets (like OFAC sanctions lists or statutory lexicons) bundled right next to the code for 100% air-gapped execution.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Universal In-Process Adapters (Zero IPC Latency)
&lt;/h3&gt;

&lt;p&gt;Unlike MCP (which requires spinning up and supervising out-of-process client-server daemons over stdio/HTTP sockets), Skillware executes &lt;strong&gt;in-process&lt;/strong&gt; in CPython in &lt;code&gt;&amp;lt;1.2ms&lt;/code&gt;. Its universal interface morphisms (&lt;code&gt;to_gemini_tool()&lt;/code&gt;, &lt;code&gt;to_claude_tool()&lt;/code&gt;, &lt;code&gt;to_openai_tool()&lt;/code&gt;, &lt;code&gt;to_ollama_prompt()&lt;/code&gt;) automatically translate your &lt;code&gt;manifest.yaml&lt;/code&gt; into any provider's native tool dialect on the fly.&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="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware.core&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;

&lt;span class="c1"&gt;# 1. Load a verified, offline-tested capability bundle
&lt;/span&gt;&lt;span class="n"&gt;bundle&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load_skill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;finance/wallet_screening&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;skill&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;bundle&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;class&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]()&lt;/span&gt;

&lt;span class="c1"&gt;# 2. Auto-transmute contract to host dialect (Gemini, Claude, OpenAI, Ollama)
&lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;SkillLoader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_gemini_tool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bundle&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;

&lt;span class="c1"&gt;# 3. Pre-flight AST schema validation + deterministic local execution
&lt;/span&gt;&lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;call&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;SkillwareParamValidationError&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;exc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;error&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Invalid arguments: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;exc&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  The SLM Parameter Paradox: 8B Local &amp;gt; Frontier Cloud
&lt;/h2&gt;

&lt;p&gt;We evaluated &lt;strong&gt;23 frontier and open-weight models&lt;/strong&gt; across &lt;strong&gt;368 benchmark conditions&lt;/strong&gt; (&lt;code&gt;SKILLWARE-BENCH&lt;/code&gt;), testing multi-step email handling, UK corporate registry resolution, on-chain sanctions screening, and adversarial prompt injection.&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%2Fltq0iskb8898zrpocuz3.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%2Fltq0iskb8898zrpocuz3.png" alt=" " width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The headline finding? &lt;strong&gt;The SLM Parameter Paradox&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;When you stop forcing models to write disposable code and restrict them strictly to semantic routing and schema parameter selection, &lt;strong&gt;3B–8B local models equipped with Skillware consistently outperform unequipped frontier giants (including GPT-5 and Claude Sonnet 5)&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;97.3% Cost Reduction:&lt;/strong&gt; Dropping from &lt;strong&gt;$15.58&lt;/strong&gt; (Frontier LLM dynamically writing code) to &lt;strong&gt;$0.42&lt;/strong&gt; per 1,000 turns using a local 8B SLM + Skillware.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;84.0% Context Excision:&lt;/strong&gt; Progressive JIT disclosure (&lt;code&gt;mode="brief"&lt;/code&gt;) compresses tool signatures to ~30 tokens, slashing total token burn by up to &lt;strong&gt;84.8%&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Parameter Corruption:&lt;/strong&gt; Pre-flight JSON Schema validation drops parameter errors from &lt;code&gt;18.5%&lt;/code&gt; down to &lt;strong&gt;&lt;code&gt;0.0%&lt;/code&gt;&lt;/strong&gt; and eliminates all 464 runtime script debugging loops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;56.2% Lift for Open-Weight Models:&lt;/strong&gt; Meta Llama 4 Maverick jumps from a &lt;code&gt;37.5%&lt;/code&gt; pass rate (vanilla) to &lt;strong&gt;&lt;code&gt;93.8%&lt;/code&gt;&lt;/strong&gt; when equipped, while Qwen 3.8 Flash and Gemma 4 (31B) hit &lt;strong&gt;&lt;code&gt;100.0%&lt;/code&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1.2ms Zero-Token Firewall:&lt;/strong&gt; Instead of using a second LLM to audit incoming text for prompt injection (which doubles your cost and still gets jailbroken), Skillware uses a 3-stage deterministic normalization pipeline (stripping zero-width Unicode smuggling, Cyrillic/Greek homoglyphs, and hidden DOM spans) in &lt;code&gt;1.2ms&lt;/code&gt; with &lt;strong&gt;0 tokens burned&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faget8o62qg40k0pymc8z.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%2Faget8o62qg40k0pymc8z.png" alt=" " width="799" height="476"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  From Python Loops to Drones and Neural Interfaces
&lt;/h2&gt;

&lt;p&gt;Why does sub-millisecond, in-process determinism matter beyond saving API budget? Because software agents are only Scale I.&lt;/p&gt;

&lt;p&gt;Under ISO 13849 SIL-3 safety standards, physical fault mitigation in robotics and industrial Digital Twins must execute within &lt;strong&gt;10ms&lt;/strong&gt;, and high-frequency robotic/UAV control loops run at &lt;strong&gt;500Hz (&lt;code&gt;1–2ms&lt;/code&gt;)&lt;/strong&gt;. You cannot run a drone or a surgical neuroprosthetic over a 2.5-second cloud LLM loop or an out-of-process JSON-RPC socket. &lt;/p&gt;

&lt;p&gt;By establishing a formal &lt;strong&gt;Clock-Domain Crossing (CDC)&lt;/strong&gt; between slow cognitive deliberation (&lt;code&gt;~1s&lt;/code&gt;) and sub-millisecond deterministic motor schemas (&lt;code&gt;&amp;lt;1.2ms&lt;/code&gt;), Skillware lays the foundation for installing verified capabilities across autonomous IoT, embodied robotics, and eventually Brain-Computer Interfaces (BCIs).&lt;/p&gt;




&lt;h2&gt;
  
  
  Try It Out
&lt;/h2&gt;

&lt;p&gt;The era of prompt engineering is closing; the era of &lt;strong&gt;Capability Engineering&lt;/strong&gt; has begun. Stop renting disposable logic by the token.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Install via PyPI:&lt;/strong&gt; &lt;code&gt;pip install skillware&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/arpahls/skillware" rel="noopener noreferrer"&gt;github.com/arpahls/skillware&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation &amp;amp; Registry:&lt;/strong&gt; &lt;a href="https://skillware.site" rel="noopener noreferrer"&gt;skillware.site&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the Full Paper:&lt;/strong&gt; &lt;code&gt;arXiv:2611.07652v1&lt;/code&gt; | DOI: `10.5281/zenodo.21552745&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
      <category>architecture</category>
    </item>
    <item>
      <title>We Ran 736 Tests Across 23 Models to See Why Agents Fail in Production</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Tue, 03 Nov 2026 09:34:00 +0000</pubDate>
      <link>https://dev.to/arpa/we-ran-736-tests-across-23-models-to-see-why-agents-fail-in-production-4mek</link>
      <guid>https://dev.to/arpa/we-ran-736-tests-across-23-models-to-see-why-agents-fail-in-production-4mek</guid>
      <description>&lt;p&gt;The default architecture for autonomous AI agents in 2026 relies on a simple premise: give a frontier language model a tool execution sandbox (a bash shell or a Python REPL), feed it high-level objectives, and let it synthesize scripts on the fly. If the script throws a traceback, feed &lt;code&gt;stderr&lt;/code&gt; back into the context window and let the model self-correct.&lt;/p&gt;

&lt;p&gt;In simple demos, this looks effective. In production data pipelines—extracting base64 email attachments, cross-referencing corporate registry filings, calculating compound engineering units, or parsing financial transactions—this pattern degrades quickly.&lt;/p&gt;

&lt;p&gt;When agents write ad-hoc Python to perform routine tasks, they encounter severe runtime impedance:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The MIME and byte-parsing trap:&lt;/strong&gt; Models consistently botch multipart MIME decoding, character encodings, and binary file writes when writing raw scripts, triggering recursive repair loops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context poisoning:&lt;/strong&gt; Each failed script attempt dumps stack traces, unformatted payloads, and apologetic re-explanations into the prompt context, degrading the model's reasoning window until it hits a terminal failure floor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run-to-run non-determinism:&lt;/strong&gt; The same prompt executed across identical seeds yields erratic execution paths, making CI/CD testing and regression gating impossible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Token exhaustion:&lt;/strong&gt; Script synthesis burns thousands of output tokens per sub-task, consuming daily operational budgets within hours.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To measure these failure modes with empirical rigor, we built &lt;strong&gt;&lt;a href="https://skillware.site/bench/" rel="noopener noreferrer"&gt;Skillware-Bench&lt;/a&gt;&lt;/strong&gt; (&lt;a href="https://github.com/ARPAHLS/skillware-bench" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;), an open-source evaluation harness that puts 23 language models through a 16-layer progressive ablation matrix across 736 live experimental test conditions.&lt;/p&gt;

&lt;p&gt;We contrasted two fundamental execution paradigms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vanilla Baseline (Unassisted Code Generation):&lt;/strong&gt; The model writes raw Python code inside a 30-second timeout sandbox, inspects error feedback, and attempts to repair its code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Skillware Equipped (Governed Skill Execution):&lt;/strong&gt; The model invokes pre-compiled, typed, deterministic Python skill bundles governed by immutable contracts (&lt;code&gt;manifest.yaml&lt;/code&gt;), deterministic runtime effects (&lt;code&gt;skill.py&lt;/code&gt;), and JIT schema validation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is what 736 live trials across 11 model families revealed.&lt;/p&gt;




&lt;h2&gt;
  
  
  Grand Aggregate Results: 23 Models Across 736 Conditions
&lt;/h2&gt;

&lt;p&gt;The benchmark evaluates 23 models spanning sovereign open weights (Qwen, Gemma, Llama, Nemotron, GLM, Hunyuan) and commercial frontier APIs (Claude, GPT, Gemini, Grok, DeepSeek). &lt;/p&gt;

&lt;p&gt;Tasks are organized into four real-world enterprise crucibles across four progressive difficulty tiers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Compliance / PII Masking:&lt;/strong&gt; Parsing nested records, stripping GDPR/HIPAA identifiers, and preventing prompt injection leaks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Office Mailbox Automation:&lt;/strong&gt; IMAP traversal, query filtering, and binary MIME attachment extraction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Corporate Entity Verification:&lt;/strong&gt; Resolving company registration numbers, officer registries, and insolvency records via statutory APIs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Skill Chained Pipelines:&lt;/strong&gt; Sequential multi-step DAG execution combining PII masking, entity verification, and budget gating under strict token limits.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+----------------------------------------------------------------------------------------------------+
| Metric                     | Vanilla Baseline (Raw Code) | Skillware Equipped (Governed Skills)     |
+----------------------------------------------------------------------------------------------------+
| Total Evaluated Conditions | 368 conditions              | 368 conditions (736 live runs total)    |
| Overall Fleet Pass Rate    | 300 / 368 (81.5%)           | 337 / 368 (91.6%) [+10.1% overall lift] |
| Total Tokens Consumed      | 3,087,129 tokens            | 1,500,967 tokens [-51.4% reduction]     |
| Cumulative Wall-Clock Time | 6,914.7 seconds (115.2 min) | 4,331.4 seconds (72.2 min) [1.60x speed]|
| Workspace Scripts Debugged | 464 failed repair scripts   | 0 scripts [100% debugging eliminated]    |
+----------------------------------------------------------------------------------------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0jtoglwz5obzug060col.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%2F0jtoglwz5obzug060col.png" alt="Figure 25: Capability Compression Heatmap" width="800" height="647"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 25. Capability compression heatmap across all 23 evaluated models and 4 enterprise crucibles (736 live experimental conditions). Across the fleet, Skillware produces a +10.1% grand aggregate pass lift (from 81.5% to 91.6%). Uplift is heavily concentrated in complex multi-step workflows: Office Mail achieves a fleet lift of +22.8% (68.5% to 91.3%), and Companies House records +12.0% (75.0% to 87.0%). Meta Llama 4 Maverick gains +56.2% (jumping from 37.5% to 93.8%), effectively closing the capability gap with frontier models.&lt;/em&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Finding 1: The Parameter Paradox
&lt;/h2&gt;

&lt;p&gt;The most striking empirical outcome of the benchmark is what we term the &lt;strong&gt;Parameter Paradox&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A compact sovereign model (16B to 35B parameters) equipped with deterministic, typed skills consistently matches or outperforms unassisted 500B+ frontier models running raw code generation.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When frontier models like Claude Sonnet 5 or GPT-6 Luna operate without governed skills, they write ad-hoc Python to interact with OS primitives, parse headers, and decode binary buffers. They fail on edge cases, syntax nuances, and subprocess timeouts. &lt;/p&gt;

&lt;p&gt;In contrast, compact sovereign models using Skillware bypass code synthesis entirely. The model only needs to generate a clean, typed JSON invocation matching the skill manifest. The actual execution runs in compiled, offline-tested Python on the host.&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%2F2uzdywp61f84z7y4b7g8.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%2F2uzdywp61f84z7y4b7g8.png" alt="Figure 5: The Parameter Paradox" width="800" height="410"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 5. The empirical parameter paradox across three decades of parameter scale (8B to 550B+). An equipped Qwen 3.8 Flash (16B) or Gemma 4 (31B) achieves a perfect 16/16 (100.0%) pass rate, outscoring unequipped frontier models Claude Sonnet 5 and GPT-6 Luna (both 14/16, 87.5%) at roughly 1/30th the operational cost.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+-------------------------------------------------------------------------------------------------------+
| Model + Execution Architecture        | Pass Rate | Total Tokens | Wall Time | vs. Vanilla Baseline   |
+-------------------------------------------------------------------------------------------------------+
| Qwen 3.6 35B A3B + Skillware          | 16 / 16   | 69,603       | 224.0s    | +2 tasks vs Claude 5   |
| Google Gemma 4 31B IT + Skillware     | 16 / 16   | 43,033       | 123.7s    | +2 tasks vs Grok 4.7   |
| Qwen 3.8 Flash + Skillware            | 16 / 16   | 75,924       | 333.7s    | +1 task vs DeepSeek v4 |
| Meta Llama 4 Maverick + Skillware     | 15 / 16   | 54,862       | 197.9s    | +1 task vs Claude 5    |
| Anthropic Claude Sonnet 5 (Vanilla)   | 14 / 16   | 122,790      | 235.0s    | 43.3% more tokens      |
| xAI Grok 4.7 (Vanilla)                | 14 / 16   | 207,605      | 204.4s    | 79.3% more tokens      |
| DeepSeek v4 Pro (Vanilla)             | 15 / 16   | 151,103      | 561.9s    | 49.8% more tokens      |
+-------------------------------------------------------------------------------------------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Decoupling intelligence from execution means you no longer need a 500B parameter model just to reliably download an email attachment or format a table.&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%2Fgrh8k096f1f541hwaaz1.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%2Fgrh8k096f1f541hwaaz1.png" alt="Figure 18: Equip-Any-Model Pass Rate Uplift" width="800" height="476"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 18. Pass rate trajectory under Skillware equipment across 14 representative models. Sovereign and compact workhorses achieve the steepest improvements when decoupled from raw code generation, with Meta Llama 4 Maverick jumping from 37.5% to 93.8% to achieve parity with frontier models.&lt;/em&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Finding 2: The Debugging Hazard Curve and 464 Script Failures
&lt;/h2&gt;

&lt;p&gt;Why does raw code synthesis fail so reliably in multi-turn environments?&lt;/p&gt;

&lt;p&gt;In Vanilla mode, unassisted models across the fleet triggered &lt;strong&gt;464 exploratory script debugging attempts&lt;/strong&gt;. When a script failed on turn 1, the model attempted to fix it. We tracked the recovery rate across consecutive debug iterations:&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%2Fk1qehvxgxlzfsejryvrq.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%2Fk1qehvxgxlzfsejryvrq.png" alt="Figure 22: The Debugging Hazard Curve" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 22. The debugging hazard curve across 368 unassisted vanilla conditions. While initial debugging yields high recovery rates (85% to 100% pass rate across attempts 1 to 4), continuing to debug past 7 attempts precipitates a steep collapse: pass rates plunge to 50% (attempt 8), 33% (attempt 9), and reach a 0% terminal failure floor at 12+ attempts as accumulated stack trace context poisoning exhausts model reasoning capacity.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The data exposes a dangerous cognitive trap:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Attempts 1 to 4: The model often catches simple typos, missing imports, or path errors (85% to 100% recovery).&lt;/li&gt;
&lt;li&gt;Attempt 7: Recovery drops to 57%.&lt;/li&gt;
&lt;li&gt;Attempt 8: Recovery drops to 50%.&lt;/li&gt;
&lt;li&gt;Attempt 9: Recovery drops to 33%.&lt;/li&gt;
&lt;li&gt;Attempt 12+: &lt;strong&gt;0% recovery.&lt;/strong&gt; The model enters an infinite loop of apologetic re-explanations, trying variations of broken code until hitting context or turn limits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By contrast, Skillware eliminated &lt;strong&gt;100% of workspace script debugging loops&lt;/strong&gt; (from 464 to exactly 0). Because the tool handles the byte decoding and error states deterministically in host memory, the agent succeeds on attempt 0.&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%2Ff70wmt31ewx2yovllv75.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%2Ff70wmt31ewx2yovllv75.png" alt="Figure 31: The 464 Script Retry Mass Distribution" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 31. The script retry mass distribution across 368 conditions per configuration. In unassisted vanilla execution, 151 conditions (41.0%) fail their initial attempt and enter script debugging loops, producing 464 total exploratory script retries with a long tail extending up to 13 attempts per task. Skillware-equipped agents execute with zero script synthesis overhead (0 script retries, 100% single-shot execution at attempt 0).&lt;/em&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Finding 3: The MIME Trap and the Forensic Protocol Trace
&lt;/h2&gt;

&lt;p&gt;To see how this looks in practice, examine the protocol trace of &lt;strong&gt;Office Mail Tier 2&lt;/strong&gt; (searching an inbox and extracting a binary agenda PDF from an email attachment):&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%2Fcxjel806iwqhnxom6fsv.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%2Fcxjel806iwqhnxom6fsv.png" alt="Figure 19: Protocol Trace of One Call" width="800" height="438"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 19. Forensic message-level protocol trace of Office Mail Tier 2. In Vanilla mode, unassisted models attempt to synthesize ad-hoc Python scripts to interact with IMAP and decode binary MIME attachments; syntax errors, buffer truncations, and subprocess crashes trigger recursive debugging loops (averaging 9.2 turns, 4.7 script attempts, 41.8s latency, and 28,041 tokens). Equipped with Skillware, execution passes through host-side schema verification directly into deterministic JIT tool calls, completing the task cleanly in 3.7 turns, 0 script attempts, 11.7s latency, and 6,194 tokens (-77.9% token expenditure).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In Vanilla mode:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The model writes a script importing &lt;code&gt;imaplib&lt;/code&gt; and &lt;code&gt;email&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;It hits a buffer truncation or decodes base64 payload into a string instead of raw bytes, corrupting the PDF header (&lt;code&gt;%PDF-1.4&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;An error is returned: &lt;code&gt;PDF syntax error: corrupt header&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The model tries regex splitting on boundary strings.&lt;/li&gt;
&lt;li&gt;The regex fails on folded headers.&lt;/li&gt;
&lt;li&gt;The model tries writing temporary files with &lt;code&gt;open(path, 'w')&lt;/code&gt; instead of &lt;code&gt;'wb'&lt;/code&gt;, raising &lt;code&gt;TypeError&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Average cost for this single task: &lt;strong&gt;9.2 conversational turns, 4.7 script attempts, 41.8 seconds of latency, and 28,041 tokens.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In Skillware Equipped mode:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The model invokes &lt;code&gt;office/gmail_handler&lt;/code&gt; with action &lt;code&gt;search_messages&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The skill returns structured JSON with message IDs.&lt;/li&gt;
&lt;li&gt;The model invokes action &lt;code&gt;download_attachment&lt;/code&gt; with the attachment ID.&lt;/li&gt;
&lt;li&gt;Host-side Python streams the exact bytes directly to disk with cryptographic SHA-256 verification.&lt;/li&gt;
&lt;li&gt;Average cost: &lt;strong&gt;3.7 turns, 0 script attempts, 11.7 seconds, and 6,194 tokens.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;


&lt;h2&gt;
  
  
  Finding 4: Token Ledgers and Context Excision
&lt;/h2&gt;

&lt;p&gt;Where did the 1,586,162 saved tokens go? We decomposed the token ledger for each successful tool invocation:&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%2Fxis7zaxxhw6ef99at9ym.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%2Fxis7zaxxhw6ef99at9ym.png" alt="Figure 20: Token Ledger Breakdown per Tool Call" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 20. Token ledger decomposition per successful tool call during Office Mail attachment extraction. Unassisted Vanilla execution incurs a severe token tax (5,520 tokens per call), driven by verbose schema and documentation prefill (1,840 tokens), monolithic tool preambles (620 tokens), subprocess retry overhead (940 tokens), and traceback repair loops (780 tokens). Skillware preserves task reasoning (1,340 tokens) while excising redundant documentation down to compact typed schemas (220 tokens, -88%) and eliminating code repair loops entirely (0 tokens, -100%), yielding a 70.6% reduction in per-call token expenditure (1,620 tokens total).&lt;/em&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%2F67fty7l3e7zbia7kupde.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%2F67fty7l3e7zbia7kupde.png" alt="Figure 29: The Token Invoice" width="800" height="410"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 29. Itemized token invoice per tool invocation during attachment extraction. The vanilla schema overhead alone (2,310 tokens) exceeds the entire equipped execution turn (1,620 tokens).&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Long-Horizon Context Bloat
&lt;/h3&gt;

&lt;p&gt;When running continuous agent sessions (e.g. customer support, code refactoring, infrastructure monitoring), context accretion determines operational survival.&lt;/p&gt;

&lt;p&gt;Extrapolating the 23-model telemetry over hundreds of turns demonstrates why unconstrained script synthesis crashes long-running agents:&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%2F0rvhrkgb09g7xynpe4dl.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%2F0rvhrkgb09g7xynpe4dl.png" alt="Figure 24: Long-Horizon Context Bloat" width="800" height="424"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 24. Long-horizon context bloat trajectory over conversational turns. Unassisted vanilla code generation accretes context at ~1,050 tokens per turn as recursive failed script tracebacks and raw stdout/stderr dumps accumulate, precipitating context exhaustion (128k window breach) near turn 107. Equipped with Skillware, pre-compiled manifests and deterministic JIT execution eliminate script debugging bloat, accreting only ~58 tokens per turn and sustaining a 500-turn enterprise session at just 31.5k tokens (75.4% below the window ceiling).&lt;/em&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Finding 5: Upfront Preflight Gates vs. Cascading Failure
&lt;/h2&gt;

&lt;p&gt;In unconstrained environments, models frequently emit malformed parameters or violate API contracts. In Vanilla execution, 11.8% of emitted tool calls fail preflight validation, triggering 231 replanning cycles and 57 terminal aborts.&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%2Fz2c3nxu39thys1ow5038.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%2Fz2c3nxu39thys1ow5038.png" alt="Figure 33: 368-Layer Call Survival Flow" width="800" height="478"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 33. Tool invocation survival flow normalized across 1,000 emitted calls per arm. In unassisted vanilla execution, 11.8% of emitted calls fail preflight schema validation (118 invalid calls), and while 231 calls recover through replanning loops, 57 calls abort completely. In contrast, Skillware preflight gates enforce typing upfront (99.6% valid), resolving edge cases via fast typed reflexes (52 repaired) to deliver 941 clean first-pass calls (94.1% vs 71.2% vanilla) with only 7 terminal aborts.&lt;/em&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Finding 6: The Latency Continuum and Variance Contraction
&lt;/h2&gt;

&lt;p&gt;Autonomous agent governance spans distinct clock domains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cryptographic hash chaining: 50 microseconds&lt;/li&gt;
&lt;li&gt;Three-stage AST security firewall: 1.2 milliseconds&lt;/li&gt;
&lt;li&gt;Hermetic sandbox simulation: 15 milliseconds&lt;/li&gt;
&lt;li&gt;Deliberative model inference: 0.8s to 3.5s per turn&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2agaxvfb3eut1j274fan.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%2F2agaxvfb3eut1j274fan.png" alt="Figure 9: The Four-Scale Continuum of Latency" width="800" height="305"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 9. The four-scale continuum of execution latency (&amp;gt;24,000x dynamic range). Offloading security, verification, and simulation from model prompt context into sub-millisecond host micro-compute eliminates prompt token rent, enabling a -55.6% latency compression.&lt;/em&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%2Fkh4ixeeivcfidj5gysym.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%2Fkh4ixeeivcfidj5gysym.png" alt="Figure 11: Latency Anatomy" width="800" height="286"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 11. Latency anatomy of a complex reference workflow (Office Mail Tier 2). JIT context excision shrinks prefill latency from 4.1s to 0.7s, compact model routing shortens decode from 6.2s to 3.4s, and deterministic host validation eliminates speculative error loops: end-to-end median latency falls from 14.2s to 6.3s (-55.6%). Time to first token (TTFT) collapses from 1.9s to 0.4s.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Run-to-Run Determinism
&lt;/h3&gt;

&lt;p&gt;In enterprise testing, variance is a liability. Under 40 seeded replays with identical seeds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vanilla code synthesis: Mean score 61.0, standard deviation &lt;strong&gt;sigma = 4.1&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Skillware equipped: Mean score 88.2, standard deviation &lt;strong&gt;sigma = 0.8&lt;/strong&gt; (&lt;strong&gt;5.1x tighter dispersion&lt;/strong&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjyqjc3ruotom9mcugr2d.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%2Fjyqjc3ruotom9mcugr2d.png" alt="Figure 14: Run-to-Run Determinism" width="800" height="286"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 14. Run-to-run determinism and variance contraction across 40 seeded replays under identical seeds (8B compact model). Skillware contracts run-to-run dispersion by 5.1x tighter, establishing the execution predictability required for enterprise regression testing and CI/CD release gating.&lt;/em&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Finding 7: Enterprise Economics &amp;amp; Budget Survival
&lt;/h2&gt;

&lt;p&gt;What does this mean for operating costs?&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%2F12m8eph8ar9gb9x0dxft.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%2F12m8eph8ar9gb9x0dxft.png" alt="Figure 12: Cost-Capability Frontier" width="800" height="476"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 12. The cost-capability frontier across eight representative models. The Skillware frontier dominates the Vanilla fleet everywhere, shifting up (higher accuracy) and to the left (lower operational token cost per task).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When task volume scales, the compound effect of script debugging taxes, context bloat, and frontier API pricing creates a massive cost divergence:&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%2Fzjamytjt1kye95p6nthj.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%2Fzjamytjt1kye95p6nthj.png" alt="Figure 15: Cumulative Spend and Break-Even" width="800" height="425"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 15. Cumulative enterprise spend against scaling task volume (log-log scale). Unassisted Frontier Vanilla APIs burn $15.58/task due to recursive multi-script debugging loops. Equipping models with Skillware compresses spend: Frontier APIs drop to $4.92/task (-68%), while local workhorses equipped with open-source Skillware Core achieve $0.42/task (-97.3% spend reduction).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Under a fixed daily operational ceiling ($100/day):&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%2Fki3pi5ebzerbuwqdnl0a.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%2Fki3pi5ebzerbuwqdnl0a.png" alt="Figure 35: Token Budget Survival (Kaplan-Meier)" width="799" height="390"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 35. Token budget survival analysis under an empirical $100/day operating ceiling (Kaplan-Meier survival curve across 500 simulated enterprise agent deployments). Unassisted vanilla deployments exhaust the daily budget prematurely, with 50% of instances failing after only 3.7 tasks. Skillware delivers a median survival horizon of 238 tasks—a 64x throughput expansion before budget depletion.&lt;/em&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  How Skillware Works Architecturally
&lt;/h2&gt;

&lt;p&gt;Skillware does not use a heavyweight daemon or external orchestrator. It is a lightweight, dependency-free Python framework that decomposes agent know-how into five first-class primitives:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;skills/&amp;lt;category&amp;gt;/&amp;lt;skill_name&amp;gt;/
├── manifest.yaml        # Contract: typed parameters, permissions, outputs, constitution
├── skill.py             # Effect: deterministic, pre-compiled Python execution logic
├── instructions.md      # Directive: standard operating procedures &amp;amp; progressive disclosure
├── test_skill.py        # Assurance: hermetic pytest fixtures &amp;amp; invariants
└── card.json            # Presentation: UI card schema &amp;amp; inspector metadata
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6jbufryzuwxfxksnr077.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%2F6jbufryzuwxfxksnr077.png" alt="Figure 2: Anatomy of a Skill Bundle" width="799" height="414"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Figure 2. Anatomy of a Skillware skill bundle, exemplified by finance/uk_companies_house_handler. Know-how is decomposed into five first-class primitives rather than monolithic prompts.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Code Comparison: The Two Approaches
&lt;/h3&gt;

&lt;h4&gt;
  
  
  The Vanilla Approach (Fragile Script Generation)
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# The model receives bash or Python REPL tool
# System prompt: "Write Python scripts to inspect company registration 00002065"
&lt;/span&gt;
&lt;span class="c1"&gt;# Turn 1: Model synthesizes ad-hoc request script
&lt;/span&gt;&lt;span class="n"&gt;script&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;
import urllib.request, json
req = urllib.request.Request(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;https://api.company-information.service.gov.uk/company/00002065&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;)
# Forgot Basic Auth encoding...
resp = urllib.request.urlopen(req)
&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
&lt;span class="c1"&gt;# Output: HTTPError 401 Unauthorized
&lt;/span&gt;
&lt;span class="c1"&gt;# Turn 2: Model attempts base64 auth repair
# Turn 3: Model tries handling pagination with while True loop
# Turn 4: Subprocess timeout or memory exhaustion
# Result: 4 turns, 8,200 tokens burned, failure likely
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  The Skillware Approach (Governed Typed Skill)
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SkillContext&lt;/span&gt;

&lt;span class="c1"&gt;# Initialize host session with progressive disclosure
&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;SkillContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;skills&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;finance/uk_companies_house_handler&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;

&lt;span class="c1"&gt;# The model emits a typed JSON tool call; host executes deterministic Effect
&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;finance/uk_companies_house_handler&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;action&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;resolve_company&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;company_number&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;00002065&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;status&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ready&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;company&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;company_name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="c1"&gt;# Execution completes in 1 turn, 0 script attempts, exact schema guarantees
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Exploring the Benchmark Data
&lt;/h2&gt;

&lt;p&gt;All raw telemetry, execution traces, harness scripts, and interactive charts are public and reproducible:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Leaderboard &amp;amp; Figures:&lt;/strong&gt; &lt;a href="https://skillware.site/bench/" rel="noopener noreferrer"&gt;skillware.site/bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harness &amp;amp; Evaluation Code:&lt;/strong&gt; &lt;a href="https://github.com/ARPAHLS/skillware-bench" rel="noopener noreferrer"&gt;github.com/ARPAHLS/skillware-bench&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Core Open-Source Skill Registry:&lt;/strong&gt; &lt;a href="https://github.com/ARPAHLS/skillware" rel="noopener noreferrer"&gt;github.com/ARPAHLS/skillware&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concept DOI:&lt;/strong&gt; &lt;a href="https://doi.org/10.5281/zenodo.23725543" rel="noopener noreferrer"&gt;10.5281/zenodo.23725543&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are building autonomous agents in production, stop forcing language models to write disposable Python scripts for routine work. Decouple model reasoning from deterministic execution.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>python</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>The Missing Execution Layer in AI Agents: A Deep Dive into Deterministic Machine Skills</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Sun, 01 Nov 2026 08:26:15 +0000</pubDate>
      <link>https://dev.to/arpa/the-missing-execution-layer-in-ai-agents-a-deep-dive-into-deterministic-machine-skills-30o4</link>
      <guid>https://dev.to/arpa/the-missing-execution-layer-in-ai-agents-a-deep-dive-into-deterministic-machine-skills-30o4</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Why production AI agents fail when relying on loose function calling, how Skillware provides a deterministic execution contract, and what is possible across 29 verified skills today.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Consider a real-world scenario you might hand an autonomous agent:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Audit our pricing across our European and Asian storefronts to verify that regional tax redirects work as expected, and verify that the Ethereum settlement address on our invoices has no direct or indirect exposure to sanctioned entities."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In most modern agent setups, this request triggers a predictable cascade of subtle failures:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The agent uses an unconstrained HTTP retrieval tool. Because the request originates from a standard cloud datacenter IP without localized header synthesis, the endpoint returns a Cloudflare challenge or an incorrect fallback currency.&lt;/li&gt;
&lt;li&gt;The agent attempts to parse financial transaction histories by writing ad-hoc regexes or string operations directly inside the LLM context, hallucinating address offsets or dropping internal transfer hops.&lt;/li&gt;
&lt;li&gt;To find the right tool, the host application dumps thirty full JSON schemas into the prompt, eating 8,000 tokens of context, slowing inference, and muddying the model's attention.&lt;/li&gt;
&lt;li&gt;An un-sandboxed helper imports an unvetted library that triggers a 5-second grammar compilation on cold start, stalling the entire loop.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of these issues stem from a lack of reasoning ability in frontier models. They happen because the industry has treated agent tooling as a loose afterthought—passing unstructured Python functions or raw prompt wrappers directly to LLM completion APIs.&lt;/p&gt;

&lt;p&gt;Skillware was built to solve this architectural gap. Instead of ad-hoc functions, Skillware establishes a formal framework and public library of &lt;strong&gt;deterministic, self-contained machine skills&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In this deep dive, we will explore the mechanics of deterministic agent tooling, examine what is possible today across Skillware's 29 bundled skills, review recent empirical benchmarks from Skillware-Bench, and walk through how to build and contribute to this ecosystem.&lt;/p&gt;




&lt;h2&gt;
  
  
  What 500+ AI Builders Complain About Most (And Why Tooling Is the Culprit)
&lt;/h2&gt;

&lt;p&gt;We recently swept through and analyzed 500+ discussions from active AI builders across communities like r/ChatGPT, r/ClaudeAI, r/LocalLLaMA, and Indie Hackers.&lt;/p&gt;

&lt;p&gt;While raw reasoning benchmarks keep climbing, the day-to-day user experience of developers building autonomous systems is plagued by recurring friction points where tools overpromise autonomy but demand relentless micromanagement:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Memory Loss and Context Amnesia (Session Drift):&lt;/strong&gt; Despite models advertising massive token windows, builders consistently report that agents forget instructions after a dozen turns, lose architectural scope across codebases, or hallucinate prior constraints.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent Nerfing and Performance Volatility:&lt;/strong&gt; Flagship models feel "dumber," slower, or more truncated from one week to the next due to aggressive backend quantization, routing cost optimizations, and shifting server-side safety layers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extreme Sycophancy and "Yes-Man" Behavior:&lt;/strong&gt; Models validate flawed logic or apologize repeatedly rather than pointing out flaws or saying "I don't know". When challenged, they often flip answers entirely instead of standing on factual accuracy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The "Prompt Fighting" Loop:&lt;/strong&gt; In multi-step coding or writing workflows, builders spend more time re-prompting negative constraints ("do not rewrite the entire file," "follow the negative constraints," "only return JSON") than actually doing work, turning 10-second tasks into 10-turn debugging sessions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forced AI Bloatware:&lt;/strong&gt; Frustration with monolithic, opaque agent frameworks that try to do everything poorly with zero opt-out or modular controls, rather than providing modular, deterministic tools with simple toggle switches.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is the fundamental mismatch between what builders have today and what production systems actually require:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What Builders Have Today&lt;/th&gt;
&lt;th&gt;What Builders Actually Want&lt;/th&gt;
&lt;th&gt;How Skillware Solves It in 2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Volatile, auto-updating cloud models&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Version-locked, immutable checkpoints that never secretly degrade&lt;/td&gt;
&lt;td&gt;Hermetic Python skills with versioned contracts (&lt;code&gt;manifest.yaml&lt;/code&gt;) that run locally in-process with bitwise-identical results across replays.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Polite yes-men / sycophants&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Direct, critical partners that point out flaws and fail closed&lt;/td&gt;
&lt;td&gt;Deterministic Effect logic (&lt;code&gt;skill.py&lt;/code&gt;) that fails closed with structured error envelopes and cryptographic receipts, never flattering the model.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Flaky context windows &amp;amp; prompt fighting&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Stateful project memory, focused state, and zero fluff&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SkillMatcher&lt;/code&gt; (&lt;code&gt;skillware find&lt;/code&gt;) progressively discloses only the specific tool needed on demand, reducing context bloat by up to 90%.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;All-in-one bloated "agents"&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Modular, deterministic tools with simple toggle switches and strict negative rules&lt;/td&gt;
&lt;td&gt;Self-contained bundles governed by the Manifest v2 Universal Taxonomy (atomic, workflow, middleware, stream).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Aggressive guardrails / un-sandboxed scripts&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Granular user-side control, local execution, and strict trust boundaries&lt;/td&gt;
&lt;td&gt;Pluggable &lt;code&gt;credential_fn&lt;/code&gt; secret sandboxing, strict AST security audits (&lt;code&gt;bandit&lt;/code&gt;), and pre-flight SSRF containment.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  The Core Philosophy: Decoupling Directive, Effect, Contract, and Assurance
&lt;/h2&gt;

&lt;p&gt;Traditional agent toolkits mix instructions, prompts, and execution logic into a single Python function decorated with &lt;code&gt;@tool&lt;/code&gt;. This creates tight coupling, makes testing difficult, and locks capabilities to specific agent frameworks.&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%2Ffhmuu592ghyeblxdvv2s.jpeg" 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%2Ffhmuu592ghyeblxdvv2s.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Skillware separates every capability into four distinct architectural roles:&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    subgraph Host Environment
        Agent[Autonomous Agent / Host LLM]
        Context[SkillContext Runtime]
    end

    subgraph Skill Bundle: category/skill_name
        Contract[Contract: manifest.yaml\nManifest v2 Universal Taxonomy]
        Directive[Directive: instructions.md\nPersona-Free Operational Rules]
        Effect[Effect: skill.py\nDeterministic Local Python Logic]
        Assurance[Assurance: test_skill.py\nHermetic CI &amp;amp; Simulation Suites]
    end

    Agent --&amp;gt;|Queries Intent| Context
    Context --&amp;gt;|Selects &amp;amp; Validates| Contract
    Contract --&amp;gt;|Injects Operational Playbook| Agent
    Agent --&amp;gt;|Invokes Validated Action| Effect
    Assurance -.-&amp;gt;|Verifies Invariants in CI| Effect&lt;/code&gt;&lt;/pre&gt;



&lt;h3&gt;
  
  
  1. The Contract (&lt;code&gt;manifest.yaml&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Every skill defines a formal contract governed by the Manifest v2 Universal Taxonomy. It declares:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Execution Shape:&lt;/strong&gt; &lt;code&gt;atomic&lt;/code&gt; (discrete calculation), &lt;code&gt;workflow&lt;/code&gt; (multi-step sequence), &lt;code&gt;middleware&lt;/code&gt; (pipeline interceptor), or &lt;code&gt;stream&lt;/code&gt; (continuous event processing).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment Tier:&lt;/strong&gt; &lt;code&gt;core&lt;/code&gt; (offline zero-dependency logic), &lt;code&gt;cloud&lt;/code&gt; (credentialed external APIs), or &lt;code&gt;enterprise&lt;/code&gt; (governed environments).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Substrate Target:&lt;/strong&gt; &lt;code&gt;software&lt;/code&gt;, &lt;code&gt;hardware&lt;/code&gt;, or &lt;code&gt;bioware&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In-Silico Constitution:&lt;/strong&gt; An immutable set of behavioral invariants and constraints enforced at runtime.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. The Directive (&lt;code&gt;instructions.md&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;A concise, persona-free operational guide for the host agent. It focuses strictly on input schemas, valid parameters, expected return shapes, and error envelope handling. It intentionally omits roleplaying personas ("You are an expert...") so that multiple skills can be combined in context without confusing the model's system prompt.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The Effect (&lt;code&gt;skill.py&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Pure, deterministic Python logic inheriting from &lt;code&gt;BaseSkill&lt;/code&gt;. Given identical inputs, the effect produces bitwise-identical outputs across Linux, macOS, and Windows. No unconstrained model code generation takes place inside the execution loop.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. The Assurance (&lt;code&gt;test_skill.py&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Hermetic unit tests and simulation harnesses that ship inside the bundle and run on every commit in CI, preventing documentation and code from drifting apart.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is New in Skillware 0.6.1: Sovereign Egress &amp;amp; Compliance
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1e2fo7ut3qv01l7katmw.jpeg" 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%2F1e2fo7ut3qv01l7katmw.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The 0.6.1 release introduces major capabilities focused on networking, financial compliance, and agent discoverability:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The &lt;code&gt;networking&lt;/code&gt; Category &amp;amp; Geo IP Rotator (&lt;code&gt;networking/geo_ip_rotator&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Autonomous agents operating in production cannot rely on raw datacenter egress. The new &lt;code&gt;networking/geo_ip_rotator&lt;/code&gt; skill provides structured residential and ISP proxy routing across more than 100 countries.&lt;/p&gt;

&lt;p&gt;Key capabilities include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Targeted Geo Egress (&lt;code&gt;fetch_via_geo&lt;/code&gt;):&lt;/strong&gt; Route HTTP/HTTPS requests through specific ISO country exit nodes with automatic locale header synthesis (Accept-Language, User-Agent, timezone alignment).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrent Multi-Region Comparison (&lt;code&gt;compare_regions&lt;/code&gt;):&lt;/strong&gt; Simultaneously inspects an endpoint across 2 to 5 continental regions in parallel, returning structured diffs of HTTP status codes, detected currencies, localized prices, and redirect chains.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-Flight SSRF Containment:&lt;/strong&gt; Every target URL and redirect hop is resolved before dialing, strictly rejecting private RFC 1918 subnets, loopback addresses, and cloud metadata endpoints (169.254.169.254).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cryptographic Receipts:&lt;/strong&gt; Every egress response generates a SHA-256 hash and sovereign data classification (GDPR, UK GDPR, APPI) for enterprise auditability.
&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="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SkillContext&lt;/span&gt;

&lt;span class="n"&gt;ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;SkillContext&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;# Concurrent multi-region market inspection
&lt;/span&gt;&lt;span class="n"&gt;comparison&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;skills/networking/geo_ip_rotator&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;compare_regions&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;target_url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://api.example.com/checkout/pricing&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;regions&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;US&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;DE&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;JP&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;GB&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;concurrency&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;enforce_compliance&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&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;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;comparison&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;status&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;           &lt;span class="c1"&gt;# "success"
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;comparison&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;regional_deltas&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# Structured price &amp;amp; currency diffs
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Zero-Dependency Crypto Sanctions Screening
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F97le1wo2e9izj62irqzh.jpeg" 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%2F97le1wo2e9izj62irqzh.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(&lt;code&gt;finance/wallet_screening&lt;/code&gt; v2.1)&lt;br&gt;
Sanctions compliance checks cannot afford to fail simply because a third-party block explorer API is experiencing downtime.&lt;/p&gt;

&lt;p&gt;Version 2.1 introduces &lt;strong&gt;offline-direct screening&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When &lt;code&gt;ETHERSCAN_API_KEY&lt;/code&gt; is not configured, the skill screens Ethereum addresses directly against bundled, normalized OFAC SDN and TRM risk lists (&lt;code&gt;metadata.mode: offline_direct_only&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;When optional live keys are provided (&lt;code&gt;CHAINALYSIS_API_KEY&lt;/code&gt;, &lt;code&gt;TRM_SANCTIONS_API_KEY&lt;/code&gt;), the skill performs live verification alongside the offline baseline. If a live provider experiences a network timeout, it soft-fails safely into &lt;code&gt;metadata.warnings&lt;/code&gt; rather than aborting the agent's workflow.&lt;/li&gt;
&lt;li&gt;Emits high-level compliance verdicts (&lt;code&gt;ALLOW&lt;/code&gt;, &lt;code&gt;REVIEW&lt;/code&gt;, &lt;code&gt;DENY&lt;/code&gt;), deterministic risk classifications, and traces hop-1 indirect counterparty exposure.
&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="c1"&gt;# Fully offline sanctions check with zero network calls
&lt;/span&gt;&lt;span class="n"&gt;screening&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;skills/finance/wallet_screening&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;screen_address&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;address&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;0x7F367CC41522cE07553e8435765A88D08775Ce05&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;offline_only&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&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;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;screening&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;verdict&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;         &lt;span class="c1"&gt;# "DENY"
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;screening&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;risk_factors&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;    &lt;span class="c1"&gt;# ["DIRECT_SANCTIONS_MATCH"]
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  3. Intent Discovery Engine (&lt;code&gt;skillware find&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdzusuiet5ua1oeve2fqe.jpeg" 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%2Fdzusuiet5ua1oeve2fqe.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How do you expose dozens of tools to an agent without blowing up prompt context?&lt;/p&gt;

&lt;p&gt;Skillware 0.6.1 introduces &lt;code&gt;skillware find&lt;/code&gt;, powered by the &lt;code&gt;SkillMatcher&lt;/code&gt; discovery engine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Field Weighted Scoring:&lt;/strong&gt; Evaluates candidate skills against the agent's natural language task intent (45% name/ID, 25% description keywords, 20% discrete actions, 10% Manifest v2 taxonomy tags).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credential Readiness Probing:&lt;/strong&gt; Uses &lt;code&gt;--ready-only&lt;/code&gt; to ensure agents are never offered tools whose required environment variables or API keys are missing in the current runtime.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Progressive Disclosure:&lt;/strong&gt; Host agents retrieve only the specific skill bundle required for the immediate task step, keeping system prompts compact and focused.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Search for skills matching a specific task intent&lt;/span&gt;
skillware find &lt;span class="s2"&gt;"screen ethereum address against sanctions"&lt;/span&gt; &lt;span class="nt"&gt;--ready-only&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Programmatic API:&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="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;find_skills&lt;/span&gt;

&lt;span class="n"&gt;matches&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;find_skills&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;inspect international pricing across regions&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;top&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;match&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;matches&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="k"&gt;match&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;skill_id&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; (confidence: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="k"&gt;match&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;)&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  What Else Can Autonomous Agents Build with Skillware Today?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj2ixsj52us2p5zh2pcha.jpeg" 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%2Fj2ixsj52us2p5zh2pcha.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Skillware currently bundles 29 verified skills spanning 14 categories. Here are four examples showing how deterministic machine skills handle complex domains:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. In-Silico Computational Biology (&lt;code&gt;bio/sequence_ops&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Instead of allowing an LLM to guess nucleotide transcriptions or hallucinate reading frames, &lt;code&gt;bio/sequence_ops&lt;/code&gt; offloads genetic sequence manipulation to verified Biopython algorithms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;6-frame Open Reading Frame (ORF) scanning with biological 1-based coordinates.&lt;/li&gt;
&lt;li&gt;Needleman-Wunsch global and Smith-Waterman local pairwise sequence alignments.&lt;/li&gt;
&lt;li&gt;Translation against NCBI Tables 1, 2, and 11.&lt;/li&gt;
&lt;li&gt;Operates 100% in-memory with zero network calls, keeping proprietary genomic constructs completely confidential.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. AcroForm PDF Processing (&lt;code&gt;office/pdf_form_filler&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Filling out official government or legal PDF forms with generative models often results in mangled vector trees or ignored field formatting. The &lt;code&gt;office/pdf_form_filler&lt;/code&gt; skill provides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automated AcroForm field discovery and radio button group normalization.&lt;/li&gt;
&lt;li&gt;Dynamic XFA form detection with graceful fallback to prevent runtime parser crashes.&lt;/li&gt;
&lt;li&gt;Permanent vector page flattening (&lt;code&gt;flatten: true&lt;/code&gt;) via PyMuPDF baking.&lt;/li&gt;
&lt;li&gt;Human confirmation safety gates before any disk mutations occur.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Synthetic Media Forensics (&lt;code&gt;security/deepfake_guard&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;For KYC verification and media authenticity auditing, &lt;code&gt;security/deepfake_guard&lt;/code&gt; delivers air-gapped forensic algorithms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cyclic (7, 3, 1) check digit calculations across TD1, TD2, and TD3 passports and national ID cards (ICAO 9303 standard).&lt;/li&gt;
&lt;li&gt;High-pass Laplacian noise residual variance analysis to detect digital image splicing.&lt;/li&gt;
&lt;li&gt;2D Fast Fourier Transform (FFT) moire grid analysis to catch physical screen recapture attacks.&lt;/li&gt;
&lt;li&gt;Extraction of C2PA provenance and Generative AI metadata.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Sensor Telemetry Normalization (&lt;code&gt;data_engineering/telemetry_normalizer&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;For IoT and robotics agents, &lt;code&gt;data_engineering/telemetry_normalizer&lt;/code&gt; harmonizes raw sensor streams:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mathematical unit conversion across temperature, pressure, acceleration, and energy domains.&lt;/li&gt;
&lt;li&gt;Timestamp harmonization to strict UTC ISO-8601 strings.&lt;/li&gt;
&lt;li&gt;Outlier and stuck sensor detection using rolling statistical bounds.&lt;/li&gt;
&lt;li&gt;Semantic JSON-LD export adhering to W3C SOSA/SSN ontology standards.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Empirical Benchmarks: Skillware-Bench and the 23-Model Fleet
&lt;/h2&gt;

&lt;p&gt;To move beyond anecdotal claims, we subjected Skillware to transparent, rigorous empirical evaluation using &lt;a href="https://github.com/ARPAHLS/skillware-bench" rel="noopener noreferrer"&gt;Skillware-Bench&lt;/a&gt;—our open-source benchmark harness designed specifically for governed agent skills.&lt;/p&gt;

&lt;h3&gt;
  
  
  The 16-Layer Progressive Tiered Ablation Benchmark
&lt;/h3&gt;

&lt;p&gt;Skillware-Bench evaluates models across an empirical &lt;strong&gt;16-layer Progressive Tiered Ablation Benchmark&lt;/strong&gt; (4 real-world crucibles x 4 progressive difficulty tiers = 16 layers, 32 evaluated conditions per model). It directly contrasts &lt;strong&gt;unconditioned code generation (Vanilla Baseline)&lt;/strong&gt; against &lt;strong&gt;governed skill execution (Skillware Equipped)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Across the complete 23-model evaluation roster (spanning 11 sovereign and commercial model families, including Claude, Gemini, DeepSeek, Qwen, Gemma, Llama, and Nemotron), the benchmark comprises &lt;strong&gt;368 total layers and 736 live experimental test conditions&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Grand Aggregate Fleet Results (23 Models, 736 Test Conditions)
&lt;/h3&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;Vanilla Baseline&lt;/th&gt;
&lt;th&gt;Skillware Equipped&lt;/th&gt;
&lt;th&gt;Delta / Efficiency&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total Evaluated Layers&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;368&lt;/td&gt;
&lt;td&gt;368&lt;/td&gt;
&lt;td&gt;736 live conditions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Overall Pass Rate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;300/368 (81.5%)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;337/368 (91.6%)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+10.1% overall pass lift&lt;/strong&gt;&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;3,087,129&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,500,967&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,586,162 tokens saved (51.4% reduction)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total Cumulative Latency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;6,914.7s (115.2m)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4,331.4s (72.2m)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.60x execution speedup&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Workspace Scripts Debugged&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;464 scripts debugged&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 scripts&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100% code debugging eliminated&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Capability Compression Across the Fleet
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FARPAHLS%2Fskillware-bench%2Fmain%2Fdocs%2Ffigures%2Ffig25_capability_compression_heatmap.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%2Fraw.githubusercontent.com%2FARPAHLS%2Fskillware-bench%2Fmain%2Fdocs%2Ffigures%2Ffig25_capability_compression_heatmap.png" alt="Figure 25 — Capability Compression Heatmap" width="800" height="647"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure 25.&lt;/strong&gt; Capability compression heatmap across all 23 evaluated models and 4 enterprise crucibles (736 live experimental conditions). Cells display exact empirical pass rate lift (Δ percentage points) when equipping baseline models with Skillware execution manifests. Across the fleet, Skillware produces a &lt;strong&gt;+10.1% grand aggregate pass lift&lt;/strong&gt; (from 81.5% to 91.6% fleet success, 337/368 vs 300/368 tasks passed). Uplift is heavily concentrated in complex multi-step stateful workflows: &lt;strong&gt;Office Mail&lt;/strong&gt; achieves a fleet lift of &lt;strong&gt;+22.8%&lt;/strong&gt; (68.5% → 91.3%), and &lt;strong&gt;Companies House&lt;/strong&gt; records &lt;strong&gt;+12.0%&lt;/strong&gt; (75.0% → 87.0%). Compact open-weight models achieve the largest single gains—most notably Meta Llama 4 Maverick (+56.2% lift, from 37.5% to 93.8% across 16 tasks)—effectively closing the capability gap with unassisted frontier models at a fraction of inference cost.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Four-Axis Master Operational Summary
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FARPAHLS%2Fskillware-bench%2Fmain%2Fdocs%2Ffigures%2Ftab07_four_axis_summary.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%2Fraw.githubusercontent.com%2FARPAHLS%2Fskillware-bench%2Fmain%2Fdocs%2Ffigures%2Ftab07_four_axis_summary.png" alt="Table 7 — Four-Axis Master Summary" width="799" height="476"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Table 7.&lt;/strong&gt; Four-axis master benchmark summary across 12 representative frontier and sovereign architectures (384 live conditions). Pass lift reflects delta percentage points over unassisted Vanilla baselines. Token reduction captures total prompt and completion token savings. Speedup denotes wall-clock runtime acceleration. Code Debugging Eliminated denotes total elimination of ad-hoc bash and python script repair loops (464 loops fleet-wide in Vanilla vs 0 in Skillware).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Upfront Preflight Validation Prevents Cascading Regressions
&lt;/h3&gt;

&lt;p&gt;Unassisted code synthesis frequently fails at the interface boundary: 11.8% of emitted tool calls fail preflight schema validation, triggering 231 error-recovery cycles and 57 terminal aborts. In contrast, Skillware preflight gates enforce typing upfront (99.6% valid), resolving edge cases via fast typed reflexes (52 repaired) to deliver a 94.1% clean first-pass rate with only 7 terminal aborts. Across the full 368 benchmark tasks, this lifts completed conditions from 300/368 (81.5%) to 337/368 (91.6%).&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%2Fraw.githubusercontent.com%2FARPAHLS%2Fskillware-bench%2Fmain%2Fdocs%2Ffigures%2Ffig33_call_survival_flow.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%2Fraw.githubusercontent.com%2FARPAHLS%2Fskillware-bench%2Fmain%2Fdocs%2Ffigures%2Ffig33_call_survival_flow.png" alt="Figure 33 — 368-Layer Call Survival Flow" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure 33.&lt;/strong&gt; Tool invocation survival flow normalized across 1,000 emitted calls per arm (reconciling with the 368 benchmark conditions in Fig. 23). In unassisted vanilla execution, 11.8% of emitted calls fail preflight schema validation (118 invalid calls), and while 231 calls recover through replanning loops, 57 calls abort completely. In contrast, Skillware preflight gates enforce typing upfront (99.6% valid), resolving edge cases via fast typed reflexes (52 repaired) to deliver 941 clean first-pass calls (94.1% clean first pass vs 71.2% vanilla) with only 7 terminal aborts.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Run-to-Run Determinism &amp;amp; Variance Contraction
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FARPAHLS%2Fskillware-bench%2Fmain%2Fdocs%2Ffigures%2Ffig14_run_to_run_determinism.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%2Fraw.githubusercontent.com%2FARPAHLS%2Fskillware-bench%2Fmain%2Fdocs%2Ffigures%2Ffig14_run_to_run_determinism.png" alt="Figure 14 — Run-to-Run Determinism &amp;amp; Variance Contraction" width="800" height="286"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure 14.&lt;/strong&gt; Run-to-run determinism and variance contraction across 40 seeded replays under identical seeds (8B compact model). Unassisted Vanilla execution scatters across an erratic score distribution (mean 61.0, σ = 4.1) driven by non-deterministic code synthesis paths. Skillware contracts run-to-run dispersion by 5.1x tighter (mean 88.2, σ = 0.8), establishing the execution predictability required for enterprise regression testing and CI/CD release gating.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Cryptographic Receipts via AURA
&lt;/h3&gt;

&lt;p&gt;Every benchmark evaluation produces a verified cryptographic receipt anchored via the &lt;a href="https://github.com/arpahls/aura" rel="noopener noreferrer"&gt;AURA&lt;/a&gt; attestation spine. Receipts contain a SHA-256 causal DAG hash over all executed turns, tool invocations, token metrics, and scoring outputs, providing tamper-evident verification.&lt;/p&gt;

&lt;p&gt;By eliminating intermediate code generation, scoping metadata lookups, and enforcing in-memory local logic, Skillware turns agent tools into predictable software dependencies rather than stochastic gambles.&lt;/p&gt;




&lt;h2&gt;
  
  
  Universal Portability: One Bundle, Every Major Model
&lt;/h2&gt;

&lt;p&gt;Skillware does not require you to adopt a proprietary agent orchestration framework. It provides lightweight adapters for all major provider runtimes:&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="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SkillContext&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware.adapters.anthropic&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;to_anthropic_tools&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware.adapters.openai&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;to_openai_tools&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware.adapters.gemini&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;to_gemini_tools&lt;/span&gt;

&lt;span class="n"&gt;ctx&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;SkillContext&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;skills&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_skill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;skills/networking/geo_ip_rotator&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_skill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;skills/finance/wallet_screening&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# Use directly with Claude
&lt;/span&gt;&lt;span class="n"&gt;claude_tools&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;to_anthropic_tools&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;skills&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Use directly with OpenAI or local Ollama endpoints
&lt;/span&gt;&lt;span class="n"&gt;openai_tools&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;to_openai_tools&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;skills&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Use directly with Google Gemini
&lt;/span&gt;&lt;span class="n"&gt;gemini_tools&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;to_gemini_tools&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;skills&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  How to Build, Test, and Contribute
&lt;/h2&gt;

&lt;p&gt;Skillware is designed for collaboration between human software engineers and supervised AI coding agents.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Installation &amp;amp; Doctor Diagnostic
&lt;/h3&gt;

&lt;p&gt;Install Skillware from PyPI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-U&lt;/span&gt; skillware
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the built-in health check to inspect installed skills and verify environment readiness:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;skillware doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Launch the interactive configuration console to configure RPC endpoints, address books, and API keys:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;skillware
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Creating a New Skill Bundle
&lt;/h3&gt;

&lt;p&gt;To contribute a new skill, use the reference layout in &lt;code&gt;templates/python_skill/&lt;/code&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Contract:&lt;/strong&gt; Define inputs, outputs, execution shape, and constitutional invariants in &lt;code&gt;manifest.yaml&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Directive:&lt;/strong&gt; Write concise operational guidance in &lt;code&gt;instructions.md&lt;/code&gt; without conversational personas.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Effect:&lt;/strong&gt; Implement deterministic logic in &lt;code&gt;skill.py&lt;/code&gt; inheriting from &lt;code&gt;BaseSkill&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assurance:&lt;/strong&gt; Add comprehensive offline test coverage in &lt;code&gt;test_skill.py&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validation:&lt;/strong&gt; Run the repository test suites to ensure schema and documentation integrity:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pytest tests/test_manifest_schema.py tests/test_registry_docs.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;As autonomous agents transition from experimental chat interfaces into enterprise infrastructure, the execution layer must mature. We cannot build reliable software on top of unstructured, un-sandboxed prompt wrappers.&lt;/p&gt;

&lt;p&gt;Skillware provides the contract, the directive, the effect, and the assurance needed to run autonomous tools with confidence.&lt;/p&gt;

&lt;p&gt;Explore the repository, build new skills, and help shape the open standard for machine capabilities:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/ARPAHLS/skillware" rel="noopener noreferrer"&gt;https://github.com/ARPAHLS/skillware&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation &amp;amp; Catalog:&lt;/strong&gt; &lt;a href="https://skillware.site" rel="noopener noreferrer"&gt;https://skillware.site&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPI Package:&lt;/strong&gt; &lt;a href="https://pypi.org/project/skillware/" rel="noopener noreferrer"&gt;https://pypi.org/project/skillware/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>agentskills</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Skillware Still 6 Months Ahead of Every Major Agent Skills Framework</title>
      <dc:creator>Ross Peili</dc:creator>
      <pubDate>Mon, 26 Oct 2026 09:58:57 +0000</pubDate>
      <link>https://dev.to/arpa/skillware-still-6-months-ahead-of-every-major-agent-skills-framework-38j</link>
      <guid>https://dev.to/arpa/skillware-still-6-months-ahead-of-every-major-agent-skills-framework-38j</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Why the AI agent ecosystem is hitting a wall with ad-hoc tool calling, and how Skillware's deterministic, air-gapped architecture is quietly setting the standard.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you have spent the last eighteen months building production AI agent systems, you have probably noticed a subtle, uncomfortable pattern.&lt;/p&gt;

&lt;p&gt;Everyone has an "agent framework." You can spin up an agent in ten lines of Python with LangChain, CrewAI, AutoGen, or LlamaIndex. You can hand an LLM a list of Python functions, slap &lt;code&gt;@tool&lt;/code&gt; decorators on them, and watch a demo model happily invoke them in a terminal.&lt;/p&gt;

&lt;p&gt;And then you take that system into production, and reality hits.&lt;/p&gt;

&lt;p&gt;The model hallucinates parameter types. A tool that took 20 milliseconds locally suddenly stalls for 6 seconds on startup because an unvetted library decided to compile an entire grammar on import. A tool meant for read-only evaluation executes an unconfirmed state mutation. An un-sandboxed helper imports an internal module named &lt;code&gt;guard.py&lt;/code&gt; and silently overwrites another security package in Python’s global &lt;code&gt;sys.modules&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The industry treated tool-calling as an afterthought—a quick JSON schema glued to an LLM completion API.&lt;/p&gt;

&lt;p&gt;Skillware was built on the opposite premise: &lt;strong&gt;tools are not casual function signatures; they are mission-critical execution contracts.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;With the release of &lt;strong&gt;Skillware 0.6.0&lt;/strong&gt;, the framework takes another major leap forward—launching a foundational computational biology category, overhauling sanctions compliance, cutting cold-start latency by over 4.8 seconds, and proving why deterministic, air-gapped architecture is the only sustainable foundation for autonomous software.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Illusion of Agent Tools: Why the Current Ecosystem Is Stuck
&lt;/h2&gt;

&lt;p&gt;To understand why Skillware feels so fundamentally different, look at how the rest of the industry designs tools:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Unbounded Stochastic Drift&lt;/strong&gt;: Most frameworks ask the LLM to write code or synthesize arguments, and then execute that code in loose environments. If the model is having a bad day, your biological reverse-complement or KYC sanctions check returns different results on Tuesday than it did on Monday.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing Trust Boundaries&lt;/strong&gt;: A read-only calculation tool is presented to the LLM with the exact same trust geometry as a tool that transfers funds on Ethereum or modifies a local filesystem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Vendor Lock-In Trap&lt;/strong&gt;: If you build a tool for LangChain, it doesn't work in CrewAI. If you write an OpenAI function, adapting it to Claude or Gemini requires boilerplate conversion scripts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud Bloat &amp;amp; Data Leaks&lt;/strong&gt;: Ordinary toolkits default to calling paid third-party APIs for tasks that should be computed in-memory. If your agent is processing sensitive genomic sequences, private telemetry, or internal PDF forms, shipping raw payloads over external REST endpoints is an immediate security failure.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The Skillware Architecture: Effect, Directive, Assurance
&lt;/h3&gt;

&lt;p&gt;Skillware decouples tool use into a formal, three-pillar contract:&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    subgraph Skill Bundle
        D[Directive: instructions.md] --&amp;gt; H[Host LLM / Agent Loop]
        E[Effect: skill.py] --&amp;gt; R[Deterministic Local Compute]
        A[Assurance: test_skill.py] --&amp;gt; CI[CI &amp;amp; Schema Conformance]
        M[Contract: manifest.yaml] --&amp;gt; G[Manifest v2 Governance]
    end
    H --&amp;gt; E&lt;/code&gt;&lt;/pre&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Contract (&lt;code&gt;manifest.yaml&lt;/code&gt;)&lt;/strong&gt;: Governed by the Manifest v2 Universal Taxonomy. It specifies not just inputs and outputs, but execution &lt;strong&gt;Shape&lt;/strong&gt; (&lt;code&gt;atomic&lt;/code&gt;, &lt;code&gt;workflow&lt;/code&gt;, &lt;code&gt;middleware&lt;/code&gt;, &lt;code&gt;stream&lt;/code&gt;), deployment &lt;strong&gt;Tier&lt;/strong&gt; (&lt;code&gt;core&lt;/code&gt;, &lt;code&gt;cloud&lt;/code&gt;, &lt;code&gt;enterprise&lt;/code&gt;), substrate &lt;strong&gt;Target&lt;/strong&gt; (&lt;code&gt;software&lt;/code&gt;, &lt;code&gt;hardware&lt;/code&gt;, &lt;code&gt;bioware&lt;/code&gt;), and an immutable &lt;strong&gt;Constitution&lt;/strong&gt; of behavioral invariants.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Directive (&lt;code&gt;instructions.md&lt;/code&gt;)&lt;/strong&gt;: A persona-free, operational playbook that teaches the host agent &lt;em&gt;when&lt;/em&gt; and &lt;em&gt;how&lt;/em&gt; to call the tool, how to handle error envelopes, and how to chain with complementary skills.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Effect (&lt;code&gt;skill.py&lt;/code&gt;)&lt;/strong&gt;: Pure deterministic logic. No stochastic code generation inside execution. Bitwise identical outputs across macOS, Linux, and Windows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Assurance (&lt;code&gt;test_skill.py&lt;/code&gt; + simulations)&lt;/strong&gt;: Comprehensive test suites ensuring the skill never deviates from its contract.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What’s New in Skillware 0.6.0
&lt;/h2&gt;

&lt;p&gt;Release 0.6.0 introduces major architectural milestones across the platform:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The &lt;code&gt;bio&lt;/code&gt; Category &amp;amp; &lt;code&gt;bio/sequence_ops&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Computational biology is notorious for fragile scripts and stochastic hallucinations. When an LLM is asked to find Open Reading Frames (ORFs) or transcribe DNA to RNA, it frequently hallucinates base pairs or confuses 5'-to-3' orientation.&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%2Fzlsdgokej67epd8cv9ok.jpeg" 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%2Fzlsdgokej67epd8cv9ok.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ARPAHLS/skillware/tree/main/skills/bio/sequence_ops" rel="noopener noreferrer"&gt;&lt;code&gt;bio/sequence_ops&lt;/code&gt;&lt;/a&gt; brings deterministic, offline computational biology primitives to autonomous agents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;6-Frame ORF Discovery&lt;/strong&gt;: Automatically scans forward (+1, +2, +3) and reverse (-1, -2, -3) strands for open reading frames, reporting exact start/stop biological coordinates and translated polypeptides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Needleman-Wunsch &amp;amp; Smith-Waterman Alignment&lt;/strong&gt;: Global and local alignments powered by modern &lt;code&gt;Bio.Align.PairwiseAligner&lt;/code&gt; with exact match, mismatch, gap, and percentage identity metrics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Table Translation&lt;/strong&gt;: Translates nucleotide sequences against NCBI Table 1 (Standard), Table 2 (Vertebrate Mitochondrial), or Table 11 (Bacterial/Plastid) genetic codes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Active Knowledge Base&lt;/strong&gt;: Bundled, queryable catalogs for genetic code tables, IUPAC ambiguous nucleotide codes, and biophysical amino acid properties.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strict In-Silico Constitution&lt;/strong&gt;: Fully air-gapped, zero external network requests, zero clinical diagnostic claims, and fail-closed validation on invalid IUPAC alphabets.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Eliminating the 4.8-Second Startup Tax
&lt;/h3&gt;

&lt;p&gt;In high-throughput agent loops, cold-start latency is fatal. Prior to 0.6.0, importing &lt;code&gt;Draft7Validator&lt;/code&gt; in manifest schema validation triggered an expensive 4.8-second compilation step under heavy Python environments (due to Lark and RFC 3987 grammars).&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%2Fxu6z9fjcprsmgmknyt20.jpeg" 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%2Fxu6z9fjcprsmgmknyt20.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In 0.6.0, we engineered &lt;strong&gt;lazy schema compilation&lt;/strong&gt; via module-level &lt;code&gt;__getattr__&lt;/code&gt; and scoped &lt;code&gt;sys.path&lt;/code&gt; distribution scanning. The result?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cold import time dropped from &lt;strong&gt;~5.2s down to &amp;lt; 0.2s&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;skillware --help&lt;/code&gt; and interactive menus open instantaneously.&lt;/li&gt;
&lt;li&gt;Dynamic schema validation only compiles when &lt;code&gt;skillware doctor&lt;/code&gt; or explicit manifest validation is called.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Financial Compliance v2: &lt;code&gt;finance/wallet_screening&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Sanctions compliance cannot rely on vague model impressions. Version 2.0.0 introduces high-level compliance &lt;strong&gt;verdicts&lt;/strong&gt; (&lt;code&gt;ALLOW&lt;/code&gt;, &lt;code&gt;REVIEW&lt;/code&gt;, &lt;code&gt;DENY&lt;/code&gt;), deterministic risk categorization, and &lt;strong&gt;hop-1 counterparty exposure tracing&lt;/strong&gt;. If an address interacts directly with an OFAC-sanctioned counterparty or a known mixer, the skill flags the indirect exposure without needing live graph APIs.&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%2Fwpyactva782uhf5ujr9k.jpeg" 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%2Fwpyactva782uhf5ujr9k.jpeg" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  How to Use Skillware Right Now
&lt;/h2&gt;

&lt;p&gt;Skillware is designed to integrate into your existing workflow in seconds, whether you are running a single script or orchestrating multi-agent swarms.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. One-Line Install with Granular Extras
&lt;/h3&gt;

&lt;p&gt;Skillware ships as a single PyPI wheel containing all 28 bundled skills. You never need to download external bundles or configure custom registries. When a skill requires optional packages (like Biopython or PyMuPDF), install just that skill's extra:&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="c"&gt;# Install framework + bio sequence operations&lt;/span&gt;
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="s2"&gt;"skillware[bio_sequence_ops]"&lt;/span&gt;

&lt;span class="c"&gt;# Or install the entire bio category&lt;/span&gt;
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="s2"&gt;"skillware[bio]"&lt;/span&gt;

&lt;span class="c"&gt;# Or install every bundled skill runtime&lt;/span&gt;
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="s2"&gt;"skillware[all]"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Multi-Provider Plug-and-Play
&lt;/h3&gt;

&lt;p&gt;Skillware skills work natively across all major LLM providers. Adapters convert skill manifests into provider-native tool schemas instantly:&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="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware.core.loader&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;

&lt;span class="c1"&gt;# Load the skill bundle
&lt;/span&gt;&lt;span class="n"&gt;bundle&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load_skill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bio/sequence_ops&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;skill&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;bundle&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;class&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]()&lt;/span&gt;

&lt;span class="c1"&gt;# 1. Anthropic Claude tool definition
&lt;/span&gt;&lt;span class="n"&gt;claude_tool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_claude_tool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bundle&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 2. OpenAI / DeepSeek tool definition
&lt;/span&gt;&lt;span class="n"&gt;openai_tool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_openai_tool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bundle&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 3. Google Gemini tool definition
&lt;/span&gt;&lt;span class="n"&gt;gemini_tool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_gemini_tool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bundle&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Direct Offline Execution (Zero LLM Required)
&lt;/h3&gt;

&lt;p&gt;You don't even need an LLM to benefit from Skillware. You can execute skills directly in your data pipelines:&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="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware.core.loader&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;

&lt;span class="n"&gt;bundle&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SkillLoader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load_skill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bio/sequence_ops&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;skill&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;bundle&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;class&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]()&lt;/span&gt;

&lt;span class="c1"&gt;# Detect Open Reading Frames across all 6 reading frames
&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;skill&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;action&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;find_orfs&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sequence&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;ATGCGATCGATCGATCGATAGCTAGCTAGCTAG&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;min_protein_length&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Status: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;status&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Found &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;orfs_count&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; ORFs:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;orf&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;orfs&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;  Frame &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;orf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;frame&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; (&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;orf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;strand&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;): &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;orf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;protein_sequence&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; [&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;orf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;start&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;-&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;orf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;end&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;]&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Dynamic Context &amp;amp; Substrate Safety Injection
&lt;/h3&gt;

&lt;p&gt;When orchestrating autonomous agents, you can inject a &lt;code&gt;SkillContext&lt;/code&gt; to restrict tool execution by shape, tier, or physical substrate:&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="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;skillware.core.context&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SkillContext&lt;/span&gt;

&lt;span class="c1"&gt;# Restrict an autonomous agent to purely atomic, core software skills
# Any attempt to access cloud APIs or physical hardware actuators is blocked
&lt;/span&gt;&lt;span class="n"&gt;safe_context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;SkillContext&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;allowed_shapes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;atomic&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;allowed_tiers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;core&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;allowed_targets&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;software&lt;/span&gt;&lt;span class="sh"&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;available_skills&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;safe_context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter_registry&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  The CLI: Your Mission Control
&lt;/h2&gt;

&lt;p&gt;Skillware includes a rich, terminal-first CLI designed for both human engineers and autonomous agents:&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="c"&gt;# Verify environment integrity and dependency health&lt;/span&gt;
skillware doctor

&lt;span class="c"&gt;# List skills filtered by Manifest v2 execution shape and domain tags&lt;/span&gt;
skillware list &lt;span class="nt"&gt;--shape&lt;/span&gt; atomic &lt;span class="nt"&gt;--tag&lt;/span&gt; genomics

&lt;span class="c"&gt;# Deep-inspect any skill's manifest, constitution, and parameter schema&lt;/span&gt;
skillware info bio/sequence_ops

&lt;span class="c"&gt;# Test an individual skill bundle directly from the CLI&lt;/span&gt;
skillware &lt;span class="nb"&gt;test &lt;/span&gt;bio/sequence_ops
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;skillware doctor&lt;/code&gt; even separates hard code failures from missing API keys—letting your CI pipelines exit cleanly while giving developers immediate visibility into configuration gaps.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where We Came From, and Where We Are Headed
&lt;/h2&gt;

&lt;p&gt;Skillware began with a simple observation: modern AI research spends billions optimizing LLM weights, but almost nothing optimizing the interfaces through which those weights interact with the physical and digital world.&lt;/p&gt;

&lt;p&gt;We started with core data engineering and financial compliance tools. In v0.5.9, we introduced Manifest v2 Universal Taxonomy—bringing formal execution geometry and hardware substrate safety to the registry. Today, in v0.6.0, we entered computational biology.&lt;/p&gt;

&lt;p&gt;Here is where we are going:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hardware &amp;amp; Bioware Substrates&lt;/strong&gt;: Expanding support for physical telemetry, embedded sensor buses, and neural/biosensor interfaces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High-Assurance Agent Chains&lt;/strong&gt;: Declarative workflow pipelines where outputs from one deterministic skill feed as validated inputs to the next.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Autonomous Contributor Flywheel&lt;/strong&gt;: Designing the repository so AI coding agents can propose, implement, test, and document complete skill bundles with minimal human overhead.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Getting Involved
&lt;/h2&gt;

&lt;p&gt;Whether you are an AI engineer building production agent swarms, a bioinformatics researcher looking for reproducible genomics tools, or an autonomous agent looking for high-quality open-source tasks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Star and Explore the Repo&lt;/strong&gt;: Check out &lt;a href="https://github.com/ARPAHLS/skillware" rel="noopener noreferrer"&gt;ARPAHLS/skillware on GitHub&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Propose a Skill&lt;/strong&gt;: Use our structured issue templates to propose new skills in genomics, robotics, security, or data engineering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build and Contribute&lt;/strong&gt;: Read our &lt;a href="https://github.com/ARPAHLS/skillware/blob/main/docs/contributing/ai_native_workflow.md" rel="noopener noreferrer"&gt;AI-Native Workflow Guide&lt;/a&gt; and submit a pull request.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Tool use shouldn't be stochastic guesswork. Build on deterministic foundations with Skillware.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>agentskills</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
