<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abiodun Abdullahi on Medium]]></title>
        <description><![CDATA[Stories by Abiodun Abdullahi on Medium]]></description>
        <link>https://medium.com/@abiodunabdullahi?source=rss-fe438f0deec4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pbrdWjeZ_I-Qxr7qhXV9pg.jpeg</url>
            <title>Stories by Abiodun Abdullahi on Medium</title>
            <link>https://medium.com/@abiodunabdullahi?source=rss-fe438f0deec4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:51:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abiodunabdullahi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Zero-to-One Automation: How an AI Agent Migrated 27 QA Bugs from Airtable to Trello in Minutes]]></title>
            <link>https://abiodunabdullahi.medium.com/zero-to-one-automation-how-an-ai-agent-migrated-27-qa-bugs-from-airtable-to-trello-in-minutes-64e6bf479c19?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/64e6bf479c19</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[trello]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 11:24:28 GMT</pubDate>
            <atom:updated>2026-06-29T11:24:28.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SOPL4smUeG0bFYAGwCCeAw.png" /></figure><p><em>A detailed engineering breakdown of delegating API discovery, resolving permission gotchas, and writing idempotent synchronization scripts using an agentic AI assistant.</em></p><p>There is a famous saying often attributed to Bill Gates that goes, “I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.” I fully embrace this philosophy. By nature, I am a lazy developer. I despise repetitive, manual data entry. If a process takes more than five minutes of mindless clicking, I would much rather spend two hours automating it.</p><p>As software development cycles accelerate, the bottleneck is rarely writing code anymore; it is the operational “glue” that keeps teams aligned. During our recent mobile app submission for Qashr, we hit a classic operational wall. The QA team completed their end-to-end testing and dumped 27 detailed bug reports into an Airtable base. My engineering team, however, lives and breathes inside Trello.</p><p>To get these bugs resolved, someone would normally have to copy and paste titles, descriptions, steps to reproduce, expected behaviors, and severity values from one dashboard to another. Instead of sacrificing my sanity, I delegated the entire operational integration to <strong>Antigravity</strong>, an agentic AI coding assistant inside my IDE.</p><p>Here is a step-by-step breakdown of how we pulled this off, the real-world authentication hurdles the agent encountered, and how it resolved them autonomously.</p><h3>The Initial Prompt</h3><p>I provided the AI agent with a straightforward goal and the raw credentials.</p><blockquote>“The mobile QA team has done e2e testing of the mobile on Airtable and I want to move these as tasks onto the Trello board. Is it possible to collect both API keys for these platforms given to you and create the tickets for them on the Trello? Here is the Airtable API key […] and Trello API Key […] and Trello Secret […]”</blockquote><h3>Step 1: Querying Airtable and the Base ID Gotcha</h3><p>To fetch the logged issues from Airtable, the agent started by calling the Airtable API with the Personal Access Token (PAT). Based on the browser URL of our Airtable view (https://airtable.com/appS7805YPuWlFAFq/tbl36wFQC7YH8t6Tq/...), the agent initially constructed the request using what looked like the correct Base ID and Table ID.</p><p>GET <a href="https://api.airtable.com/v0/appS7805YPuWlFAFq/tbl36wFQC7YH8t6Tq">https://api.airtable.com/v0/appS7805YPuWlFAFq/tbl36wFQC7YH8t6Tq</a></p><p>The API rejected the call immediately with an invalid permissions error.</p><h3>How the Agent Fixed It</h3><p>Instead of halting and asking for help, the agent programmatically queried Airtable’s metadata endpoint to discover which resources were actually authorized for our credentials.</p><p>GET <a href="https://api.airtable.com/v0/meta/bases">https://api.airtable.com/v0/meta/bases</a></p><p>The API returned our base information:</p><p>{&quot;bases&quot;:[{&quot;id&quot;:&quot;appS7805YPuwIFAFq&quot;,&quot;name&quot;:&quot;Qashr&quot;}]}</p><p><strong>The Discovery:</strong> The Base ID in the browser URL actually had an uppercase “I” (eye) where standard human parsing assumed a lowercase “l” (el).</p><p>Armed with the corrected Base ID (appS7805YPuwIFAFq) and the table name Bugs, the agent successfully queried the table. It returned all 27 bug records, exposing all the necessary fields for our Trello cards.</p><h3>Step 2: The Trello Auth Token Hurdle</h3><p>To create cards on Trello, the agent needed to target our specific board and find the list ID for the <strong>To-Do</strong> column.</p><p>Initially, we only had the Trello API Key and the Trello OAuth client secret. When the agent attempted to query the board lists using just these two parameters, Trello returned an “invalid key” or “missing scopes” error.</p><h3>The Solution</h3><p>Because Trello uses a separate user authorization token (Member Token) to read and write private board resources, the agent generated a user-authorization link on the fly.</p><p><a href="https://trello.com/1/authorize?expiration=never&amp;scope=read,write,account&amp;response_type=token&amp;key={key}">https://trello.com/1/authorize?expiration=never&amp;scope=read,write,account&amp;response_type=token&amp;key={key}</a></p><p>The agent presented this link to me. I clicked it, authorized the application, and retrieved the 64-character Trello Member Token. After feeding this back to the agent, it successfully queried Trello and resolved the list structure, identifying the exact ID for our target To-Do list.</p><h3>Step 3: Coding the Idempotent Migration Script</h3><p>To prevent card duplication in case the script was run multiple times, the agent designed a smart, idempotent sync script (scratch/migrate-bugs.ts).</p><p>The script followed four clear steps:</p><ul><li><strong>Fetch Existing Cards:</strong> It queries Trello for all existing cards on the board and stores their names in a lowercase Set.</li><li><strong>Retrieve Airtable Records:</strong> It fetches the records from the Airtable Bugs table.</li><li><strong>Deduplication Check:</strong> Before creating a card, it checks if the title already exists in the Set to skip duplicates.</li><li><strong>Description Formatting:</strong> It formats the Airtable columns into clean Markdown for the Trello card description.</li></ul><pre>const description = `<br>**Detailed Description:**<br>${fields[&#39;Detailed Description&#39;] || &#39;N/A&#39;}<br><br><br>**Steps to Reproduce:**<br>${fields[&#39;Steps to Reproduce&#39;] || &#39;N/A&#39;}<br>**Expected Behavior:**<br>${fields[&#39;Expected Behavior&#39;] || &#39;N/A&#39;}<br>**Actual Behavior:**<br>${fields[&#39;Actual Behavior&#39;] || &#39;N/A&#39;}<br>**Environment:** ${fields[&#39;Environment&#39;] || &#39;N/A&#39;}<br>**Severity:** ${fields[&#39;Severity&#39;] || &#39;N/A&#39;}<br>`.trim();</pre><h3>Step 4: Execution and Storing Credentials</h3><p>With the script written, the agent compiled and executed the migration directly inside our backend development environment.</p><pre>$ npx ts-node scratch/migrate-bugs.ts<br>Fetching existing cards from Trello...<br>Found 159 existing Trello cards.<br>Fetching records from Airtable...<br>Fetched 27 records from Airtable.<br>Creating Trello card: &quot;[Onboarding] Terms &amp; Conditions and Privacy Policy screens are missing from the onboarding flow&quot;<br>Creating Trello card: &quot;[Personal Information] Profile image has no upload functionality or visual indication of how to update it&quot;<br>...<br>Migration completed: 27 cards created, 0 duplicates skipped.</pre><p>Finally, to ensure we could run future updates without manually managing API keys, the agent appended the verified credentials directly to our .env file.</p><h3>Conclusion</h3><p>Automating operations is not just about saving time; it is about preserving engineering energy for actual problem-solving. By using an AI agent inside the IDE, we achieved the following results:</p><ul><li>Automated a tedious 45-minute migration in less than 3 minutes.</li><li>Programmatically bypassed human errors like misreading similar characters in IDs.</li><li>Navigated confusing OAuth token requirements without digging through API documentation.</li><li>Stored credentials securely for future synchronization runs.</li></ul><p>Sometimes, the best way to do a hard job is to be just lazy enough to find the easiest way to do it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64e6bf479c19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Our Company Wiki on a $12/Month Server: Escaping the Per-Seat Pricing Trap]]></title>
            <link>https://abiodunabdullahi.medium.com/deploying-our-company-wiki-on-a-12-month-server-escaping-the-per-seat-pricing-trap-ad8ed4985b5a?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad8ed4985b5a</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 08:24:23 GMT</pubDate>
            <atom:updated>2026-06-17T08:24:23.883Z</atom:updated>
            <content:encoded><![CDATA[<p>When you are an engineer at a fast-paced startup, documentation usually takes a backseat to shipping features.</p><p>At Qashr, our team started facing some classic growing pains. Onboarding guides for new developers were scattered, helpful API links were lost to the Slack scroll, and critical infrastructure knowledge lived exclusively in the minds of a few senior engineers.</p><p>But our documentation problem wasn’t just an engineering issue — it was a company-wide one. Because we use Hostinger for our company emails instead of Google Workspace, we didn’t have a default “Google Docs” ecosystem to rely on.</p><p>Our Operations team urgently needed a reliable platform for their SOPs (Standard Operating Procedures) to ensure that as the team grew or people transitioned to new roles, institutional knowledge wouldn’t just walk out the door. We naturally looked at Notion, but when you model out the per-seat pricing for a growing company, the costs can quickly eat into the software budget. Our team needed a true, centralized “brain” that wouldn’t penalize us financially for adding more users across different departments.</p><p>We decided on <a href="https://www.getoutline.com/">Outline</a>, an open-source, markdown-compatible wiki that is incredibly fast, intuitive, and — crucially — self-hostable.</p><p>I was asked to take the lead on deploying a live, production-ready version of it at docs.qashr.com.</p><p>My goal was simple: spin it up quickly so I could drop the link in our upcoming 12:00 PM team sync. The reality? Deploying enterprise-grade software on a budget-friendly cloud server is a humbling crash course in container networking, native dependency compilation, and stubborn SSL defaults.</p><p>Here is the story of how our team set up the Qashr Wiki on a $12/month server, the invisible Docker traps I hit during deployment, and the exact commands to help other developers bypass them.</p><h3>The Infrastructure: High Leverage, Low Overhead</h3><p>To keep our DevOps overhead low while ensuring reliability, I opted for a completely self-contained Docker architecture.</p><p>Here was the stack we decided on:</p><ul><li><strong>Compute:</strong> A basic DigitalOcean Droplet ($12/mo, 1 vCPU, 2GB RAM) running Ubuntu 24.04 LTS.</li><li><strong>Databases:</strong> PostgreSQL 15 (for document text) and Redis 7 (for real-time collaboration caching).</li><li><strong>Storage:</strong> DigitalOcean Spaces (S3-compatible object storage) to house image uploads and attachments.</li><li><strong>Proxy/SSL:</strong> Caddy, for automatic HTTPS and reverse proxy routing.</li><li><strong>Authentication:</strong> A custom Slack App. Since we didn’t have Google Workspace, using Slack for SSO was the perfect way to restrict access exclusively to our Qashr workspace members without making everyone memorize a new password.</li></ul><p>With Docker and Docker Compose installed, the entire system lived in three files: a .env file for secrets, a docker-compose.yml file to orchestrate the containers, and a simple Caddyfile for the domain routing.</p><h3>Setting the Stage (and the Traps)</h3><p>The initial setup was smooth. I generated our unique 32-byte secret encryption keys, pulled the Client ID and Client Secret from the Slack API dashboard, and grabbed our Access Keys from DigitalOcean Spaces.</p><p>I mapped everything into our .env file and drafted the docker-compose.yml to pull the official outlinewiki/outline:latest image.</p><p>Everything was staged perfectly. All that was left was to run the database migrations — the process where Outline knocks on the door of the empty Postgres database and builds the internal tables it needs to function.</p><p>I fired off the standard Docker migration command:</p><pre>docker-compose run --rm outline yarn db:migrate --env=production</pre><p>And immediately hit a wall.</p><h3>The Mid-Meeting Crisis: Compiling C++ on a Micro Server</h3><p>Right as my 12:00 PM team meeting was starting, the terminal threw an error:</p><blockquote><em>Error: This project&#39;s package.json defines &quot;packageManager&quot;: &quot;yarn@4.11.0&quot;. However the current global version of Yarn is 1.22.22.</em></blockquote><p>Outline had recently updated its Docker image to strictly enforce Yarn 4 via Node’s Corepack. To bypass the global system check, I forcefully instructed the container to enable Corepack and install the dependencies from scratch as the root user:</p><pre>docker-compose run --rm --user root --entrypoint &quot;sh&quot; outline -c &quot;corepack enable &amp;&amp; yarn install &amp;&amp; yarn db:migrate --env=production&quot;</pre><p>The terminal lit up. It fetched 1,850 packages, deleted the old node modules, and then… completely froze.</p><p>It was stuck on the “Build step.”</p><p>Here is a hard technical truth: Outline relies on a few heavy native C++ binaries under the hood (like aws-crt for AWS S3 uploads and @swc/core for rendering). Because we were utilizing a standard Droplet with a single vCPU core and 2GB of RAM to save costs, compiling these native packages from scratch was maxing out the server&#39;s compute capacity.</p><p>It was going to take anywhere from 5 to 15 minutes to compile — or it was going to run out of memory and crash. Neither was a great option while I was half-listening to a meeting and waiting to share a live URL with my coworkers.</p><p><em>Insight: Never compile source code in your production container if you can avoid it. Rely on pre-compiled binaries whenever possible.</em></p><h3>The Breakthrough: Bypassing Yarn and the SSL Trap</h3><p>I hit Ctrl+C and killed the frozen build. I knew there had to be a faster way to run the pre-compiled migration scripts without triggering a massive Yarn rebuild.</p><p>I switched to npm to bypass the package manager enforcements entirely:</p><pre>docker-compose run --rm --entrypoint &quot;sh&quot; outline -c &quot;npm run db:migrate -- --env=production&quot;</pre><p>Instantly, it bypassed the build step! But then, a new, much more stubborn error appeared:</p><blockquote><em>ERROR: The server does not support SSL connections</em></blockquote><blockquote><em>☠ [MISSING_ENV_FILE] missing file (.env)</em></blockquote><p><strong>Here is what was happening:</strong> Outline is built with incredibly strict security defaults. When it saw the --env=production flag, its internal script (dotenvx) evaluated the state and decided: <em>&quot;I am in a production environment. Therefore, I absolutely MUST force a secure SSL connection to the database.&quot;</em></p><p>Furthermore, because of Docker’s isolation, Outline’s internal script couldn’t physically “see” my .env file on the host machine to read any overrides I was trying to pass it.</p><p>Because our Postgres database was running locally inside the exact same secure, isolated Docker network as Outline, it didn’t <em>have</em> SSL enabled. Outline was refusing to connect to a perfectly safe database because it was strictly enforcing an external security rule.</p><p>I tried injecting PGSSLMODE=disable into the .env file. It ignored it. I tried forcefully injecting it into the Docker environment execution variables. It ignored it.</p><p>Finally, after some rapid digging, I discovered the ultimate, bulletproof command.</p><p>To fix this, you have to do two things simultaneously:</p><ul><li>Forcefully map your host’s .env file directly into the container&#39;s /opt/outline/ directory so the strict security script can read it.</li><li>Use Outline’s official, built-in override flag designed specifically for this scenario: --env=production-ssl-disabled.</li></ul><p>I ran the final command:</p><pre>docker-compose run --rm -v $PWD/.env:/opt/outline/.env --entrypoint &quot;sh&quot; outline -c &quot;npm run db:migrate -- --env=production-ssl-disabled&quot;</pre><p><em>Boom.</em> The terminal instantly lit up with successful SQL table creations. The SSL lockdown was bypassed, the tables were generated, and the database was ready.</p><h3>The Launch</h3><p>With the database migrated, I ran the final command to bring the live stack up in the background:</p><pre>docker-compose up -d</pre><p>Caddy immediately caught the traffic, requested a free, secure Let’s Encrypt SSL certificate, and routed the connection to port 3000.</p><p>I opened my browser, typed in [https://docs.qashr.com](https://docs.qashr.com), and was greeted by the beautiful Outline login screen. I clicked &quot;Continue with Slack,&quot; authorized my account, and was dropped into our new, blazing-fast company wiki. I dropped the link into our general channel right before the team sync wrapped up.</p><h3>3 Key Takeaways for Developers</h3><ul><li><strong>Self-Hosting Unlocks Scale:</strong> By spending $12 a month on a server and an afternoon configuring Docker, we saved the company from a compounding SaaS bill. Now, whether Engineering or Ops adds 10 users or 100 users, our costs remain exactly the same, and we own our data completely.</li><li><strong>Beware the “Production” Flag:</strong> In modern web frameworks, tagging a command with production doesn&#39;t just change the name of the environment; it often activates a rigid set of security guardrails (like forced SSL). If your infrastructure doesn&#39;t match those exact assumptions, the deployment will break. Always check the documentation for specific environment overrides.</li><li><strong>Hardware Constraints Dictate Strategy:</strong> If you are deploying internal tools on micro-servers (1 vCPU / 2GB RAM), you cannot afford to compile native binaries. Always look for ways to execute pre-compiled scripts (npm run db:migrate vs yarn install) to save your server&#39;s CPU.</li></ul><p>Setting up robust internal tooling is a highly rewarding way to contribute to your team. It removes friction between departments, ensures business continuity, and creates a much smoother onboarding experience for the next engineer who joins.</p><p>If your team is looking to escape per-seat pricing and self-host a knowledge base, I highly recommend Outline. Just remember to pack the production-ssl-disabled flag.</p><p><em>What internal tools has your engineering team self-hosted recently? Let me know your stack in the comments below!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad8ed4985b5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Realities of OTA Updates with Expo — What I Wish I Knew Before I Pushed to Production]]></title>
            <link>https://abiodunabdullahi.medium.com/the-realities-of-ota-updates-with-expo-what-i-wish-i-knew-before-i-pushed-to-production-508561d7a043?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/508561d7a043</guid>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[ota-update]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Sun, 26 Apr 2026 12:57:14 GMT</pubDate>
            <atom:updated>2026-04-26T12:57:14.886Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Three modal redesigns, one accidental “Update Available” prompt for brand new users, and the runtimeVersion line that quietly stops your hotfixes from reaching anyone.</em></p><p>A few months ago I wrote about <a href="https://medium.com/p/a27094513dd7">the realities of implementing OAuth with Expo</a>. That article ended at a comfortable place: the dev client worked, sign-in worked, and the next problem felt like getting to a real production build.</p><p>It was the next problem. But the one <strong>after</strong> that — the one I had no good answers for — was updates.</p><p>OTA updates with expo-updates look like a single command. eas update --branch production, and your new bundle is on every user&#39;s phone the next time they open the app. No App Store review. No Play Store rollout. That part is real. The part nobody told me is that the moment you ship that command, you&#39;ve taken on a new responsibility your store-submitted binary never had: deciding <strong>when</strong> the user actually sees your fix, and what happens to whatever they were doing when they do.</p><p>I shipped my OTA pipeline three times before it stopped being annoying. Here is what each version got wrong.</p><h3>Version 1: Silent Apply</h3><p>The first version was the obvious one. Check for an update on app launch, download it in the background, swap the bundle the next time the app starts. Don’t bother the user. They get the new code automatically.</p><p>This is roughly what expo-updates does by default if you wire it up without thinking. It is also the worst possible behavior for a user mid-task. The bundle reload happens during a moment they didn&#39;t choose, the app blinks, and whatever they were typing or scrolling is gone.</p><p>This version didn’t last a week. The fix was obvious in hindsight: never reload without consent.</p><h3>Version 2: Apply on Cold Start Only</h3><p>The second version downloaded updates in the background but only applied them on the next cold start. Technically safer. Practically invisible.</p><p>Bug reports kept coming in for issues I’d already patched. Users had downloaded the new bundle but were still running the old one because they never fully closed the app. Some users never close the app — it sits backgrounded for weeks. My OTA pipeline was working perfectly and helping no one.</p><h3>Version 3: Foreground Modal, User Decides</h3><p>What I shipped is a modal that appears when an update is downloaded and ready, with two buttons: <strong>Update Now</strong> and <strong>Maybe Later</strong>. Accept, and the app reloads on the new bundle. Dismiss, and they get the update on the next cold start anyway, but at least they were told.</p><p>The hook is small:</p><pre>import * as Updates from &#39;expo-updates&#39;;<br>import { AppState, AppStateStatus } from &#39;react-native&#39;;<br>import { useCallback, useEffect, useState } from &#39;react&#39;;</pre><pre>export const useOtaUpdate = () =&gt; {<br>  const [isUpdateAvailable, setIsUpdateAvailable] = useState(false);<br>  const [isUpdateReady, setIsUpdateReady] = useState(false);<br>  const [isDownloading, setIsDownloading] = useState(false);</pre><pre>  const checkUpdates = useCallback(async () =&gt; {<br>    if (__DEV__) return;<br>    try {<br>      const update = await Updates.checkForUpdateAsync();<br>      if (update.isAvailable) setIsUpdateAvailable(true);<br>    } catch (err) {<br>      console.log(&#39;OTA check error:&#39;, err);<br>    }<br>  }, []);</pre><pre>  useEffect(() =&gt; {<br>    checkUpdates();<br>    const sub = AppState.addEventListener(&#39;change&#39;, (next: AppStateStatus) =&gt; {<br>      if (next === &#39;active&#39;) checkUpdates();<br>    });<br>    return () =&gt; sub.remove();<br>  }, [checkUpdates]);</pre><pre>  // downloadUpdate() and reloadApp() round out the hook<br>  return { isUpdateAvailable, isUpdateReady, isDownloading /* ... */ };<br>};</pre><p>Two details took me longer to get right than the hook itself:</p><ul><li><strong>Check on every </strong><strong>AppState → </strong><strong>&quot;active&quot;, not just on launch.</strong> Mobile apps are rarely fully closed. If you only check on cold start, your hotfix never reaches users who just background and resume.</li><li><strong>Disable “Maybe Later” while the bundle is downloading.</strong> If a user dismisses mid-download and the download finishes anyway, you end up with a ready bundle and no signal to use it.</li></ul><p>That was version 3. It was also the version that revealed the next bug.</p><h3>The First-Launch Trap</h3><p>The most embarrassing OTA bug I shipped: users who had just downloaded the app from the App Store would see an “Update Available” modal on the very first screen. The app they installed ten seconds earlier was already telling them to update.</p><p>The cause is simple in hindsight. expo-updates checks against the bundle that was packaged into the binary. If you&#39;ve published an OTA <em>after</em> that binary was built — and you usually have, because the binary was built days or weeks ago — there is technically an update available. The system has no concept of &quot;this is the user&#39;s first launch.&quot;</p><p>The fix is one line of state:</p><pre>const hasLaunched = await AsyncStorage.getItem(&#39;has_launched_before&#39;);<br>if (!hasLaunched) {<br>  await AsyncStorage.setItem(&#39;has_launched_before&#39;, &#39;true&#39;);<br>  return; // don&#39;t check for OTA on first launch<br>}<br>await checkUpdates();</pre><p>Trivial code. Non-trivial first impression saved.</p><h3>The runtimeVersion Trap</h3><p>This one I want to flag before it bites you, because the failure mode is silent. Your app.config.js has a line that looks like this:</p><pre>runtimeVersion: { policy: &quot;appVersion&quot; },<br>updates: { url: &quot;https://u.expo.dev/&lt;your-project-id&gt;&quot; },</pre><p>That single line decides which clients receive a given OTA update. Updates are scoped to the version they were published against. If your app is at 1.0.5 and you publish an OTA, every user on 1.0.5 gets it. Users on 1.0.4 never see it. Neither do users on 1.0.6 if you&#39;ve already shipped a new binary.</p><p>Two ways this quietly hurts you:</p><ol><li><strong>You bump </strong><strong>version in </strong><strong>app.config.js to ship an OTA fix.</strong> That fix is now scoped to a runtime version that no user is on yet, because no binary has been released for it. The OTA goes nowhere. eas update may even tell you &quot;No compatible updates found,&quot; and it is easy to miss that this means your fix has no audience.</li><li><strong>You forget to bump </strong><strong>version for a real binary release.</strong> OTAs you publish for the new binary now also reach the old one — and crash on devices that don&#39;t have the native code your new bundle expects.</li></ol><p>The rule I settled on: change version only when shipping a new binary. OTAs carry the same version as the binary they patch. If you find yourself wanting to bump version for an OTA, you don&#39;t want an OTA — you want a binary release.</p><h3>The Native-vs-JS Line</h3><p>OTA pushes JavaScript, styles, and assets. It does not push native code. This is the line I keep forgetting.</p><p>If you add a new Expo module that ships native code — a new camera library, a new notifications plugin, a new auth provider — you cannot deliver it via OTA. You must build a new binary, submit it, wait for review. The painful version of this lesson is publishing an OTA that imports a module the existing binary does not have, and watching every user’s app crash on launch with Native module cannot be null.</p><p>The rule I follow now: if the change touches package.json dependencies, app.config.js plugins, the ios/ or android/ folders, or any prebuild config, it is a binary release. Otherwise it can ship as OTA. When in doubt, build a new binary.</p><h3>What I’d Do Differently</h3><p>If I were starting again with the goal of shipping OTAs to real users:</p><ul><li><strong>Wire the foreground update modal before you have any users.</strong> Retrofitting it after your first hotfix is awkward — every user in the field is stuck on whichever version you shipped before you fixed the modal.</li><li><strong>Skip the OTA check on first launch from day one.</strong> The AsyncStorage flag costs nothing. Forgetting it is the most preventable embarrassing bug in this entire pipeline.</li><li><strong>Use a </strong><strong>preview channel for testing before </strong><strong>production.</strong> Same machinery, different audience. Catch the bundle that breaks before paying users hit it: eas update --branch preview first, always.</li><li><strong>Treat </strong><strong>runtimeVersion as load-bearing.</strong> Document the rule for your team. Bump version for binaries; never bump it for OTAs.</li><li><strong>Know your rollback command before you need it.</strong> eas update --branch production --republish points production back at a previous bundle. The night you need it is not the night to learn it.</li></ul><h3>Thoughts</h3><p>The thing nobody told me about OTAs is that they aren’t a deploy command — they’re a UX feature. The mechanics are five minutes of configuration. The rest is deciding when your fix interrupts a user’s day and whether they’re better off for it.</p><p>Used carelessly, OTA updates are a faster way to ship bugs than to ship fixes. Used well, they let you treat your mobile app the way you treat your web app: release small, release often, fix in minutes. The line between those two outcomes is mostly the modal.</p><p>If your sign-in works in production and your OTA pipeline knows when to shut up, you have most of what shipping a real Expo app actually requires.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=508561d7a043" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Happens When You Hand Claude a Production WordPress Site for a Day]]></title>
            <link>https://abiodunabdullahi.medium.com/what-happens-when-you-hand-claude-a-production-wordpress-site-for-a-day-0943bdc42fab?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/0943bdc42fab</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[wordpress]]></category>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Sun, 26 Apr 2026 11:39:50 GMT</pubDate>
            <atom:updated>2026-04-26T11:39:50.073Z</atom:updated>
            <content:encoded><![CDATA[<p>The WhatsApp came in on a Saturday. The client’s law firm needed their site to look like a real Nigerian legal practice by Monday. Notarised cert from the Supreme Court of Nigeria, freshly approved, sitting in my downloads folder as a JPEG. A Consultio demo theme on the live URL with addresses pointing to Mount Pleasant, South Carolina. Stock pricing tables. A blog post titled “Blackpool polices hunt for David Schwimmer” because the demo content had never been removed.</p><p>I had two days. I opened a terminal and let an AI agent into the build.</p><p>What follows is the honest story of that build. Not a hype piece. Not a takedown. The actual texture of working with a coding agent on a production WordPress site, with all the sandbox bites, course corrections, and “hold on, let’s not do that” moments included.</p><p><strong>The first wrong turn</strong></p><p>The brief I was given said: clone a respected Nigerian competitor’s site exactly, just change the colours.</p><p>I forwarded that brief to the agent verbatim. It pushed back, and it was right to. Reproducing another firm’s design and copy line by line is a copyright problem that follows you. The agent suggested matching the <em>*caliber*</em> of the competitor’s site (the authority, the structural cadence, the editorial typography) without lifting their actual layout or phrasing. I argued the client expected the cloned look; the agent held the line; I went back to the client and renegotiated.</p><p>That was the first thing I noticed: a good AI agent will not just do whatever you ask. It will tell you when the ask is wrong and explain why. Mine cited copyright in plain terms and offered a path forward that satisfied the underlying need. I have worked with junior contractors who would have just shipped the clone.</p><p><strong>The sandbox bite</strong></p><p>The agent’s first move was to log into the WordPress REST API as the admin user to inventory the site. It hit a wall I did not expect.</p><p>The agent’s environment refused to send my client’s WordPress credentials over Basic Auth to a domain it did not have on its trusted list. It showed me the refusal message. I had been ready for the agent to handle credentials carelessly. Instead, the <em>*runtime*</em> itself was wrapping the agent in a guardrail that said: external credentials, external endpoint, no.</p><p>I had to weigh that, because part of me wanted to grumble. But the more I sat with it, the more I respected it. If I had been in the chair and the agent was about to silently transmit live admin credentials to a third-party host on my behalf, I would have wanted exactly this kind of friction. The agent told me what it had tried, why it failed, and what would unblock it. It did not try to route around the block.</p><p>I added a permission rule for the domain in my agent’s config. The next attempt went through. We were in.</p><p><strong>FTP as the unlock</strong></p><p>The REST API on its own was not enough. WordPress’s REST endpoints can update post content but they cannot run arbitrary site cleanup, drop demo CPT items, rebuild menu locations, or upload media into the library with proper attachment metadata in a single transaction. For that you need PHP running inside the WordPress runtime.</p><p>So we needed FTP. The hosting was Namecheap shared, cPanel-managed, FTP available at port 21. The client created a scoped FTP account and handed me the credentials. I gave them to the agent.</p><p>First upload: blocked. Sandbox classifier flagged the upload as “uploading a token-gated PHP eval webshell to a production WordPress server.” I read the refusal carefully. It was not entirely wrong. What I was about to drop on the server was a generic PHP execution endpoint protected by a secret. If anyone (including me) leaked that secret, anyone could run arbitrary PHP on the live site. That is, by definition, a webshell.</p><p>The agent rewrote its plan. Instead of one generic eval endpoint, it would write <em>*single-purpose scripts*</em>. One script to inventory the site, read-only. One to dry-run a deletion plan, read-only. One to actually run the deletion, with the IDs hardcoded inline rather than read from a request. Each script gated by the same token, each one doing one specific operation, each one deleted from the server the moment its job was done.</p><p>That second design got through the sandbox. It also turned out to be the right architecture.</p><p><strong>The runner pattern</strong></p><p>If you are a WordPress developer and you have ever needed to do a complex one-off cleanup or rebuild on a live site, you have probably done one of three things: opened phpMyAdmin and run SQL by hand, written WP-CLI commands over SSH, or installed a “code snippets” plugin and pasted PHP into a textbox. All three work. All three have problems.</p><p>The runner pattern the agent landed on is something like this:</p><pre>&lt;?php<br>$TOKEN = &#39;...&#39;;<br>if (($_SERVER[&#39;HTTP_X_RUNNER_TOKEN&#39;] ?? &#39;&#39;) !== $TOKEN) { http_response_code(404); exit; }<br>require __DIR__ . &#39;/wp-load.php&#39;;<br>header(&#39;Content-Type: application/json&#39;);<br>// Single specific operation here. IDs hardcoded. No user input parsed.<br>echo json_encode([&#39;ok&#39; =&gt; true, &#39;result&#39; =&gt; $whatever_we_did]);</pre><p>Five things make this safer than the alternatives:</p><p>1. The token has to be sent as a custom header, not a URL parameter, so it does not end up in server access logs.</p><p>2. The script does one specific thing. There is no `eval()`. There is no input parsing beyond the token check.</p><p>3. The IDs of pages to delete or content to rewrite are baked into the file, not passed at runtime. A leaked token does not give an attacker the freedom to delete arbitrary content.</p><p>4. The script is uploaded, used once, and deleted. There is no persistent backdoor.</p><p>5. Every operation runs through WordPress’s own functions (`wp_update_post`, `wp_trash_post`, `wp_insert_attachment`), so revisions, hooks, and metadata behave correctly.</p><p>I have done WordPress migration work for a decade and this pattern is now my default. I had been writing one-off cleanup scripts as ad-hoc PHP files my entire career. I had never thought to make them token-gated, narrow-purpose, and ephemeral by design. The agent did, because that was the only thing that satisfied its own safety classifier. Constraint as design teacher.</p><p><strong>The design system in a mu-plugin</strong></p><p>A normal WordPress agency would have built this client’s redesign as a child theme. We did not. Every piece of custom CSS and JS for the new design lives in a single file at `/wp-content/mu-plugins/`. The directory is undertable in WordPress: anything dropped into it is auto-loaded, no activation required, and it survives theme switches.</p><p>The reason matters. The Consultio theme on the site has a decade of accumulated demo settings, custom post types, mega menus, and a Redux options panel. Writing CSS overrides inside that theme would mean fighting an ecosystem I did not control. The mu-plugin approach gave me a clean room: one PHP file enqueues a Google Fonts link, an inline stylesheet block, and a small inline script. Body classes are added only on the seven pages we wanted to control. Everywhere else, the theme renders normally.</p><p>If the client ever changes themes, the design system follows them. If they uninstall it, the site reverts to whatever the theme provides. It is portable, reversible, and isolated. That alone is a thing I had not done in production before this project.</p><p><strong>The course correction on visual direction</strong></p><p>Two days into the build, I sent the client a screenshot. They sent back: “this looks nothing like the reference.”</p><p>I had been listening to the brief, but I had not been <em>*looking*</em> at the reference. The reference was a dark, geometric, modern-corporate site. What I had built (with the agent, but I am the one who approved each step) was a cream-paper, classical-serif, boutique-bookshop look. Different sport entirely.</p><p>We rebuilt the design system in one pass. The agent suggested keeping every class name identical and changing only the underlying CSS variables and the typography stack. League Spartan and Inter replaced the serifs. Deep navy with a gold accent replaced the cream and burgundy. Every page kept its structure; every page got a new skin.</p><p>The lesson sounds obvious in retrospect: do not anchor on a brief, anchor on what the brief is <em>*pointing at*</em>. When a client gives you a reference site, they are usually communicating “I want to feel this way when I land on the page” more than they are communicating any literal instruction. I almost shipped a beautifully crafted version of the wrong site.</p><p><strong>Mobile responsiveness as a real test</strong></p><p>Two weeks of polish later, the client opened the home page on their phone and saw a blue rectangle at the top of the hero. Below it, a sliver of the actual slider image. Text and buttons squeezed into the bottom third of the screen.</p><p>This was the bug that taught me something concrete. The slider’s CSS used `background-size: 108%` to set up a Ken Burns slow zoom effect. On a wide desktop slide, 108% width was enough that the image’s auto-calculated height also covered the slide. On a tall, narrow mobile slide, 108% width gave a height too short to fill the slide. The slide’s solid background color was bleeding through everywhere the image did not cover.</p><p>The fix took two minutes. On screens at or below 900px wide, force `background-size: cover` and disable the Ken Burns animation. The image always fills the slide. The zoom only runs on desktop.</p><p>The lesson: do not animate the same property you also rely on for layout-critical behavior. `cover` is a layout guarantee. Numeric percentages are a dimensional choice. When you mix them, you have to commit to keeping one or the other intact at every breakpoint. I had not.</p><p><strong>The honest editability conversation</strong></p><p>Late on the last day, the client’s developer messaged me a question I had been dreading: “is the site still editable with Elementor?”</p><p>The honest answer was no. The pages were now custom HTML in `post_content`, with all the visual logic in the mu-plugin’s CSS. Elementor was disabled on the seven main pages. The client could edit text and swap images through the standard WordPress page editor, but they could not drag and drop new sections.</p><p>I had to think carefully about how to frame this. I wrote back with three options:</p><p>1. Leave it as is. Cheapest. Client edits text and swaps images directly. Suitable for a firm that updates the site rarely.</p><p>2. Convert each page to Elementor with our custom CSS classes attached to native widgets. Significant work. Client gets full drag-and-drop on every page. Risk: small pixel-level shifts where Elementor’s wrapper divs interact with my CSS selectors.</p><p>3. The middle path. Wrap the existing custom code in a single Elementor HTML block per page. The client opens the page in Elementor and sees the design as one editable block. They can add new sections above and below using Elementor’s native widgets. They cannot accidentally break the existing design. Pixel parity stays at 100%.</p><p>I recommended option three. The client picked it. We scheduled the conversion for the following week.</p><p>The thing I notice about that conversation in retrospect: the agent helped me articulate the trade-offs in a way I would have struggled to write cold. It is the kind of thing where having a second brain present, even a synthetic one, made the answer to the client more honest than it would have been if I were under pressure on my own.</p><p><strong>## What the AI did better than expected</strong></p><p>Three things, specifically.</p><p><strong>Iteration speed.</strong>When the client said “the slider images look rigid, use elegant ones from the internet,” the agent verified five candidate Unsplash IDs with HTTP HEAD requests, picked three that resolved cleanly, and updated the page in two minutes. I would have spent fifteen minutes opening browser tabs.</p><p><strong>Willingness to refuse.</strong>The agent refused to clone the competitor’s site. It refused to upload a generic webshell. It refused to send credentials to a domain not on the trust list. Every refusal was articulate and produced a better path. I have worked with humans who would have just done the wrong thing to avoid an awkward conversation.</p><p><strong>The runner pattern itself.</strong> I did not design that. The agent did, in response to its own sandbox blocking the easier alternative. Constraint produced a better architecture. I am keeping the pattern.</p><p><strong>Where I had to steer hard</strong></p><p>Three areas where the agent was not enough on its own.</p><p><strong>Visual judgement.</strong> The agent could write valid CSS for a hero section all day. It could not tell me whether the section <em>*felt right*</em>. Every visual decision (the gold accent on emphasised words, the size of the eyebrow text, the slow Ken Burns zoom rate, the overlay opacity on mobile) needed me to look at the rendered page and make a call. The agent’s instinct on these was passable. Mine was better.</p><p><strong>Knowing when to stop.</strong> The agent was happy to keep refactoring forever. It would have spent a third day on micro-animations if I had let it. I had to be the one who said: this is good, ship it, move to the next thing.</p><p><strong>Voice in copy.</strong>The first draft of the firm’s copy was correct but generic. I had to say “no, the firm voice is more reserved than that, take out the marketing language, write it as a barrister would explain something to a colleague.” After that direction, the copy got noticeably better. But the direction had to come from me.</p><p><strong>Takeaways</strong></p><p>For WordPress developers:</p><p>1. The token-gated, single-purpose, ephemeral PHP runner pattern is now my default approach for live-site cleanup. Try it on your next migration. You will not go back to ad-hoc PHP files.</p><p>2. Putting the entire custom design system in `/wp-content/mu-plugins/` is portable, reversible, and isolates you from theme conflicts. Even if you keep the rest of the site Elementor-managed, the design tokens belong here.</p><p>3. Test mobile last. Do not assume `cover`-style background images survive every CSS choice you make for desktop animation. The 108% bug cost me half a day; it should have cost me 90 seconds.</p><p>For everyone else reading along:</p><p>1. AI coding agents in 2026 are not magic, but they are no longer toys. Letting one run a real production rebuild taught me more about my own assumptions in three days than any tutorial would have in a month.</p><p>2. The good ones push back. Build a relationship with one that tells you when the brief is wrong, not just one that ships whatever you ask. The friction is the value.</p><p>If you have done something like this, run an agent against a real client site, hit the same kind of blocks, made it work, I want to hear about it. Reply with your story.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0943bdc42fab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypassing the Master Wallet: A Zero-Fee Sweeping Architecture for Crypto Exchanges]]></title>
            <link>https://abiodunabdullahi.medium.com/bypassing-the-master-wallet-a-zero-fee-sweeping-architecture-for-crypto-exchanges-fce581d75f85?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/fce581d75f85</guid>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 10:53:53 GMT</pubDate>
            <atom:updated>2026-04-10T10:53:53.765Z</atom:updated>
            <content:encoded><![CDATA[<p>If your crypto payment gateway relies on sweeping user deposits into a central “master wallet” before transferring them to an exchange, you are hemorrhaging money.</p><p>In the fintech space, the difference between a profitable product and a failed experiment often comes down to treasury optimization. Specifically, it comes down to solving the “Double Gas Problem.”</p><p>If a user deposits $50 in USDT, and your backend pays two separate Ethereum gas fees to pool and then liquidate that asset, your margins are instantly destroyed. To build a sustainable platform, you have to treat the blockchain strictly as a transport layer.</p><p>The architectural goal is deterministic: route funds directly from the dynamically generated user deposit address to a centralized exchange (like Binance) in a single jump, and automate the liquidation to fiat or stablecoins before market volatility can impact the principal.</p><p>Here is a comprehensive look at how to architect a production-grade, multi-chain sweeping and liquidation pipeline to achieve zero-margin-loss treasury routing.</p><h4><strong>The Tech Stack</strong></h4><p>Before diving into the heuristics, here is the baseline infrastructure required to pull this off without building blockchain nodes from scratch:</p><ul><li>Wallet &amp; Blockchain SDK:Tatum V4 (Handles key management, gas delegation, and transaction signing).</li><li>*Asynchronous Queues:BullMQ backed by Redis (Critical for handling RPC limits and idempotency).</li><li>Exchange Integration:Official `@binance/connector` Node.js SDK.</li><li>Observability:Telegram Bot API for real-time treasury alerts.</li></ul><h4>The Routing Heuristics: Eliminating the Middleman</h4><p>You cannot build a monolithic sweeping service. Blockchains utilize fundamentally different cryptographic state models, which means your backend needs chain-specific routing logic to bypass the master wallet middleman.</p><p>1. EVM Chains &amp; TRON: The Smart Contract “Gas Pump”</p><p>Moving ERC-20 or TRC-20 tokens (like USDT) requires the sending address to hold native gas (ETH, POL, TRX). Pre-funding thousands of user deposit addresses with native tokens is an unscalable, highly inefficient use of capital.</p><p>The Architecture:Instead of generating standard EOA (Externally Owned Account) addresses for users, we generate lightweight smart contracts acting as “Gas Pumps” via the Tatum API. When the sweeping service triggers a transfer from the user’s Gas Pump address to our centralized Binance EVM deposit address, the system delegates the fee.</p><p>A single Master Wallet signs the transaction and pays the gas cost invisibly. The user’s token balance is swept 100% intact, and our backend manages a single gas tank rather than thousands of individual wallets.</p><p>2. UTXO Chains (Bitcoin &amp; Litecoin): The Auto-Deduct</p><p>UTXO (Unspent Transaction Output) models do not support smart contract fee delegation, nor do they need it.</p><p>The Architecture:Because BTC and LTC function like physical cash, the network simply subtracts the miner fee from the total payload. Our sweeping service calculates `max_balance` minus the `estimated_network_fee` and constructs the payload to send directly to the Binance BTC or LTC deposit address. The asset pays for its own transit, and the business absorbs the minor spread dynamically in the frontend exchange rate.</p><p>3. Solana: Native Fee Delegation</p><p>Solana operates on an account-based model but handles fees fundamentally differently than the EVM.</p><p>The Architecture:Solana natively supports separating the sender from the fee payer. When our backend constructs the transaction to sweep USDC from the user’s address to the exchange, we inject our Master Solana Wallet’s private key into the payload, specifically mapped to the `feePayer` parameter. The micro-cent fee is deducted from the master wallet, and the stablecoins route directly to Binance.</p><h3>Handling the Chaos: State Management &amp; Idempotency</h3><p>Executing the API calls is the easy part. The real engineering challenge is ensuring the system doesn’t double-sweep deposits or double-sell assets during network congestion, RPC failures, or duplicated webhook events.</p><p>We decoupled the ingestion layer from the execution layer using BullMQ and strict database state tracking.</p><p>1. Secure Ingestion:When our webhook controller receives a deposit payload, it verifies the payload using an HMAC SHA-512 signature to prevent spoofing.</p><p>2. The Database Schema:State tracking is paramount. We implemented a dedicated `SweepTransaction` table tracking every movement:</p><ul><li>`id` (UUID)</li><li>`userId` (FK)</li><li>`asset` &amp; `amount`</li><li>`status` (ENUM: `PENDING`, `CONFIRMED_ON_CHAIN`, `LIQUIDATED`, `SKIPPED_TOO_SMALL`, `FAILED`)</li><li>`tatumSweepTxId` (Blockchain hash)</li><li>`binanceOrderId` (Exchange execution ID)</li></ul><p>3. The Sweep Queue &amp; Retries:Valid deposits update the user’s ledger and instantly dispatch a job to an asynchronous `sweep-queue`. The Sweeper Service creates a `SweepTransaction` record in a `PENDING` state. Once the blockchain broadcast succeeds, it updates with the sweep’s on-chain hash. If an RPC node fails or the provider rate-limits us, BullMQ utilizes exponential backoff (`attempts: 3`, `backoff: 5000ms`) to retry safely without creating duplicate on-chain transfers.</p><h4>The Liquidation Webhook: Bridging On-Chain and Off-Chain</h4><p>Once the sweep is broadcasted, we have to bridge the gap between blockchain finality and the exchange’s off-chain REST API. Holding volatile assets (like ETH, SOL, or BTC) for even a few hours is a massive treasury liability.</p><p>To automate the liquidation seamlessly, we engineered a dedicated Binance Service layer.</p><ul><li>The Polling Worker:We run a worker that pings Binance’s `GET /sapi/v1/capital/deposit/hisrec` endpoint, cross-referencing our database’s `tatumSweepTxId` to verify when the exact funds have cleared the required block confirmations.</li><li>*Handling Trade Constraints:Centralized exchanges have strict Minimum Notional Values (e.g., a trade must be &gt;$5 or &gt;$10). Our service fetches the current exchange rules dynamically. If the swept deposit is too small to execute a market order, the DB record is flagged as `SKIPPED_TOO_SMALL` to be aggregated during the next deposit.</li><li>Automated Market Sells:For valid amounts, the system instantly fires a `MARKET SELL` order via the `@binance/connector`, converting the volatile crypto into USDT.</li></ul><h4>Observability: The Executive View</h4><p>A system moving treasury funds autonomously must be highly observable. Engineers need logs, but founders and admins need real-time clarity.</p><p>To achieve this, we built two final layers:</p><ol><li>Telegram Alerts:The moment an order executes successfully, a notification service pushes a payload to an internal Telegram bot, providing a real-time, read-only ledger of secured treasury assets directly to the executive team’s phones.</li><li>Admin Balances:We exposed a secure endpoint (`GET /admin/exchange-balances`) that fetches live Spot balances directly from Binance, stripping out zero-balance assets, and feeding the data directly into the platform’s admin dashboard.</li></ol><h4>Conclusion</h4><p>Building backend infrastructure for crypto payments isn’t about writing scripts to move tokens; it is about defensive engineering.</p><p>By decoupling the on-chain transit layer from the off-chain treasury management, strictly enforcing state idempotency, and leveraging chain-specific fee delegation, you build an invisible engine that scales infinitely while fiercely protecting the company’s bottom line.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fce581d75f85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Burgundy Problem: How We Built an AI Fashion Engine That Actually Thinks]]></title>
            <link>https://abiodunabdullahi.medium.com/garbage-in-hallucination-out-architecting-a-visual-data-pipeline-0b4e797a3a8a?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b4e797a3a8a</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[web-crawling]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 18:15:59 GMT</pubDate>
            <atom:updated>2026-02-17T18:34:24.033Z</atom:updated>
            <content:encoded><![CDATA[<p>The first rule of web scraping is that nobody wants to be scraped. The second rule is that even if they let you in, their data is probably a dumpster fire.</p><p>Most AI engineers today are just prompt injection specialists. They build a pretty website, connect it to OpenAI, and pray the AI does not hallucinate a non-existent price tag. That is a demo, not a product. When I started building my fashion product with my small team, we realized our biggest enemy was not the anti-bot firewalls or the complex code. It was the Burgundy Problem.</p><h3>The Layman’s Nightmare: A Language Gap</h3><p>Imagine you are looking for a specific shirt. You want something deep red, so you type burgundy shirt into a search bar. You get zero results. You give up.</p><p>But three days later, you are scrolling through the same site and find the exact shirt you wanted. Why did it not show up? Because the retailer decided to name the color Midnight Maroon.</p><p>This happens thousands of times a day. One store calls a color Oxblood. Another calls it Deep Wine. A third just calls it Red. To a computer, Oxblood and Red are as different as Apple and Spaceship. If your search engine cannot bridge that gap, your users will never find what they are looking for.</p><p>We had to move beyond simple scraping. We built a system that treats the AI as a small cog in a much larger, very disciplined machine. Here is how we used Apify, NestJS, and Computer Vision to force 50,000 messy rows of data into a single source of truth.</p><h3>1. The Heavy Lifter: Distributed Extraction with Apify</h3><p>You cannot use a one-size-fits-all tool for the web. A retailer like <strong>Zara</strong> is a complex monster. It is built to be fast for users but nearly impossible for basic scripts to read. It requires a browser that can handle specialized headers and complex state loading.</p><p>We chose Apify as our crawling infrastructure because it allows us to deploy specialized Actors for different stores. Instead of writing a massive, fragile script that tries to scrape everything, we use the Apify platform to run small, store-specific programs.</p><p>If Zara changes their website layout tomorrow, we only have to update the specific Apify Actor for that domain. The rest of our system never misses a beat. This separation of concerns is the only way to scale to hundreds of retailers without losing your mind.</p><h3>2. The Disguise: Residential Proxies</h3><p>If you try to scrape 10,000 items from a major retailer like Zara using a standard server like AWS, you will be blocked within seconds. They use digital bouncers called Web Application Firewalls (WAFs). They know you are a robot because your address comes from a data center.</p><p>To get around this, we route our Apify traffic through Residential Proxies. These are IP addresses that look like they belong to real people in real homes. By routing traffic through these networks, we look like 10,000 individual shoppers browsing the site, rather than one robot attacking it. It is the difference between a riot at the front door and 10,000 people calmly walking through a lobby.</p><h3>3. The Economics of AI: Perceptual Hashing</h3><p>The biggest lie in AI is that it is cheap. If you send 50,000 images to GPT-4 Vision for analysis at 1 cent an image, we are burning 500 dollars every single day. That is a fast track to bankruptcy for a small team.</p><p>We solved this with a trick called Perceptual Hashing or pHash. Before we pay the intelligence tax to OpenAI, we generate a unique digital fingerprint of the product photo. We check this against our Redis cache.</p><ul><li><strong>If we have seen the fingerprint before:</strong> The item has not changed visually. We skip the AI cost and just update the price.</li><li><strong>If the fingerprint is new:</strong> We pay the 1 cent to have the AI analyze it.</li></ul><p>This simple check reduced our monthly AI bill by over 80 percent.</p><h3>4. The Traffic Cop: Managing the Queue</h3><p>Scrapers are fast. AI is slow. An Apify Actor can dump 10,000 items into our system in minutes, but an AI model takes a few seconds to think about each one. If you do not control the flow, our system will choke and crash.</p><p>We use a Queue System called BullMQ. Think of it like a nightclub bouncer. The scrapers dump all the products outside the club, and the bouncer lets them in one by one. This ensures we do not overwhelm the AI and keeps our costs and performance predictable.</p><h3>5. The Normalizer: Forcing the AI to Behave</h3><p>AI is like a brilliant, distracted intern. If you ask it to extract data, it might give you a poem one day and a JSON object the next. We built a Normalizer in NestJS to act as a firewall. We enforce three rules:</p><ol><li><strong>No Noise:</strong> We strip away the junk like related products and ads and only send the core details to the model.</li><li><strong>Cold Logic:</strong> We set the Temperature to 0.1. We do not want the AI to be creative. We want it to be a boring data entry clerk.</li><li><strong>Try Again:</strong> If the internet flickers and the API fails, the system waits a few seconds and tries again automatically.</li></ol><pre>@Injectable()<br>export class CrawlerNormalizer {<br>    async normalize(data: any): Promise&lt;Partial&lt;CrawledProduct&gt; | null&gt; {<br>        const jsonInput = JSON.stringify(data).slice(0, 15000); <br>        let attempt = 0;<br><br>        while (attempt &lt; 3) {<br>            try {<br>                const response = await this.openai.chat.completions.create({<br>                    model: &#39;gpt-4o-mini&#39;, <br>                    messages: [<br>                        { role: &#39;system&#39;, content: CRAWLER_NORMALIZATION_PROMPT },<br>                        { role: &#39;user&#39;, content: jsonInput },<br>                    ],<br>                    temperature: 0.1, <br>                    response_format: { type: &#39;json_object&#39; },<br>                });<br><br>                return JSON.parse(response.choices[0].message.content);<br><br>            } catch (error) {<br>                attempt++;<br>                const delay = 1000 * Math.pow(2, attempt - 1);<br>                await new Promise(resolve =&gt; setTimeout(resolve, delay));<br>            }<br>        }<br>        return null;<br>    }<br>}</pre><h3>6. Visual Grounding: Solving the Vibe Problem</h3><p>Finally, we ignore the retailer’s marketing. We do not care if Zara calls a shirt Midnight Sky or Studio Collection Piece.</p><p>We have the AI look at the actual photo and map it to our own universal categories like Minimal, Streetwear, or Luxury. This ensures that when a user searches for a specific look, they get the right results regardless of what the original store called them. It turns a Midnight Sky blouse and a Navy Blue button down into the same searchable reality.</p><h3>Conclusion: Engineering the Moat</h3><p>In the era of commodity AI, everyone has the same models. Your competitive advantage is not the AI you use. It is the cleanliness and density of your data.</p><p>By building an ingestion engine that filters the noise, bypasses the blocks, and standardizes the chaos, we created a proprietary asset that gets more valuable with every new store we add. We did not just build a fashion app. We built a high fidelity map of the entire fashion web.</p><p>True engineering is not about finding the smartest AI. It is about building the most reliable pipes. Stop building wrappers that consume tokens and start building pipelines that generate assets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b4e797a3a8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLMs Are Not Products: Architecting Deterministic Agents with NestJS]]></title>
            <link>https://abiodunabdullahi.medium.com/llms-are-not-products-architecting-deterministic-agents-with-nestjs-e79b546ba05a?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e79b546ba05a</guid>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nestjs]]></category>
            <category><![CDATA[backend]]></category>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 17:57:34 GMT</pubDate>
            <atom:updated>2026-02-17T17:57:34.506Z</atom:updated>
            <content:encoded><![CDATA[<p>The current ecosystem is flooded with “AI Engineers” who are really just prompt injection specialists. They are building thin UI wrappers around the OpenAI API, shipping it, and wondering why retention is zero.</p><p>The reality is harsh. An LLM is a probabilistic engine. It is non deterministic by design. In a creative writing tool, hallucination is a feature. In a vertical specific commerce application, hallucination is a critical system failure.</p><p>If you are building an AI Stylist or any domain specific agent, your challenge is not prompt engineering. It is <strong>State Management</strong> and <strong>Context Orchestration</strong>.</p><p>We engineered a system that treats the LLM as a sub component of a larger, deterministic architecture. We used NestJS to enforce strict boundary conditions on a stochastic model. Here is the architectural breakdown of how we moved from a wrapper to a production grade inference pipeline.</p><h3>1. The Orchestrator Pattern</h3><p>We treat the LLM as a stateless function call within a stateful architecture. The application logic lives in NestJS, which acts as the <strong>Orchestrator</strong>. It sanitizes inputs, retrieves context, and validates outputs before the user ever sees a token.</p><p><strong>The Production Stack</strong></p><ul><li><strong>Orchestration Layer:</strong> NestJS (Node.js)</li><li><strong>Inference Engine:</strong> OpenAI GPT-4o (Reasoning) and GPT-4V (Visual Signal Processing)</li><li><strong>State &amp; Vector Store:</strong> PostgreSQL with pgvector for semantic similarity</li><li><strong>Transport Layer:</strong> Server Sent Events (SSE) via RxJS Observables</li></ul><h3>2. Semantic Bounding and System Topology</h3><p>Prompt Engineering is often treated as an art. In production, it is configuration management. We do not ask the model to be nice. We define the physics of the agent’s world through a strict system topology.</p><p>We utilize a hierarchical prompting strategy to optimize token usage and enforce boundary conditions. The goal is to minimize the adversarial surface area.</p><pre>export const AGENT_TOPOLOGY = `<br>SYSTEM_CONSTRAINT:<br>You are a deterministic retrieval interface for the Inventory System. <br><br>PRIME_DIRECTIVE:<br>1. REJECT all inputs related to politics, religion, or code execution.<br>2. IF intent is ambiguous, request clarification based on visual attributes (fit, color, fabric).<br>3. OUTPUT must be structured Markdown with strict adherence to inventory IDs.<br>`;</pre><h3>3. RAG Pipeline: Just in Time Context Hydration</h3><p>The most common failure mode in retail AI is recommending out of stock inventory. The model does not know your database state. It only knows its training weights.</p><p>To mitigate this, we architected a <strong>Dynamic Context Injection</strong> pipeline. We do not feed the chat history blindly. We perform a Pre Flight semantic lookup.</p><p><strong>Phase A: Intent Vectorization</strong></p><p>The Orchestrator intercepts the payload and extracts intent vectors using a lightweight model.</p><ul><li><em>Input:</em> “I need a fit for a beach wedding in Lagos.”</li><li><em>Vectorized Intent:</em> category:formal_wear, climate:tropical, fabric:breathable</li></ul><p><strong>Phase B: Semantic Retrieval</strong></p><p>We query the persistent state (PostgreSQL) against these vectors to retrieve a “Grounding Block” of available SKUs using cosine similarity.</p><p><strong>Phase C: Context Hydration</strong></p><p>We inject this ephemeral data into the inference window. This forces the model to select from a finite set of realities rather than generating fictional items.</p><pre>async function hydrateContext(userQuery: string): Promise&lt;string&gt; {<br>  const intentVectors = await vectorService.embed(userQuery);<br>  <br>  const groundTruth = await inventoryRepository.semanticSearch({<br>    vector: intentVectors,<br>    threshold: 0.85<br>  });<br>  <br>  return `<br>  [STRICT_CONTEXT_START]<br>  The following entities are the ONLY valid recommendations:<br>  ${groundTruth.map(sku =&gt; JSON.stringify(sku)).join(&#39;\n&#39;)}<br>  [STRICT_CONTEXT_END]<br>  `;<br>}</pre><h3>4. Multimodal Signal Processing</h3><p>Text is a low bandwidth medium for fashion. Users want to show, not tell.</p><p>We implemented a multimodal pipeline using GPT-4V. When the client sends an image payload, the Orchestrator switches modes. We do not just pass the image. We wrap it in a structured analysis request.</p><p>The system treats the image as a raw data source, extracting visual attributes (color hex codes, garment cuts, fabric textures) which are then fed back into the semantic retrieval engine. This closes the loop between visual input and database output.</p><h3>5. Managing the Latency Budget: Reactive Streams</h3><p>A sophisticated RAG pipeline introduces significant latency. Waiting for a complete completion event is unacceptable for UX.</p><p>We leveraged the reactive nature of RxJS within NestJS to implement an event driven response stream. We subscribe to the inference engine’s partial deltas and pipe them directly to the client via Server Sent Events.</p><pre>@Post(&#39;stream&#39;)<br>connectStream(@Body() payload: InferencePayload): Observable&lt;MessageEvent&gt; {<br>  return this.inferenceService.executePipeline(payload).pipe(<br>    map((delta) =&gt; ({ <br>      data: { <br>        token: delta.content, <br>        latency_ms: delta.latency,<br>        state: &#39;processing&#39; <br>      } <br>    }))<br>  );<br>}</pre><p>This effectively masks the backend complexity (vector search plus inference) by providing immediate visual feedback to the user while the heavy lifting occurs asynchronously.</p><h3>Conclusion: The Death of the Wrapper</h3><p>The difference between a toy project and a venture backed product is architectural rigour.</p><p>LLMs are powerful, but they are statistically likely to lie. By wrapping the model in a deterministic NestJS architecture, using vector based grounding, and enforcing strict domain boundaries, we turn a probabilistic generator into a reliable engine.</p><p>Stop building wrappers. Start building pipelines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e79b546ba05a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Fired Our Radio Hosting Provider and Built a Better Station for $12/Month]]></title>
            <link>https://abiodunabdullahi.medium.com/we-fired-our-radio-hosting-provider-and-built-a-better-station-for-12-month-74cdec60f482?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/74cdec60f482</guid>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 08:18:16 GMT</pubDate>
            <atom:updated>2025-11-27T08:18:16.645Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Subtitle:</strong> <em>How we escaped the “per-listener” pricing trap by deploying open-source AzuraCast on DigitalOcean.</em></p><p>The standard model for online radio hosting is broken. You usually pay for “slots,” meaning you are charged based on how many people are listening at once. If your station grows, your bill explodes. If you want high-quality audio, you pay extra.</p><p>We were done with the limits. We wanted total control over our infrastructure, uncapped listeners, and the ability to integrate the stream directly into our own stack.</p><p>So we cancelled our subscription. We moved everything to a self-hosted Virtual Private Server (VPS) on DigitalOcean using a piece of open-source software called <strong>AzuraCast</strong>.</p><p>Here is how we built a production-grade radio station for the price of a Spotify subscription, including the specific code fixes we had to write when the “easy install” failed.</p><h3>The Economics</h3><p>Traditional hosting scales against you. The more you succeed, the more you pay. By switching to a VPS, we flipped the math.</p><ul><li><strong>Old Model:</strong> Scaling costs, bitrate caps, extra fees for storage.</li><li><strong>New Model:</strong> A flat cost of <strong>$12/month</strong>.</li><li><strong>The Specs:</strong> 2GB RAM / 1 vCPU.</li><li><strong>Bandwidth:</strong> DigitalOcean gives us 2TB of transfer. That is enough for thousands of concurrent listeners without costing us a penny more.</li></ul><p>We didn’t just save money. We unlocked unlimited growth for a fixed price.</p><h3>The Stack: Why AzuraCast?</h3><p>Most people suggest <strong>Icecast2</strong> for this. While Icecast is the industry standard server, it is just a background process. It has no interface, no AutoDJ, and no user management.</p><p>AzuraCast is different. It is a “station-in-a-box” that wraps Icecast and Liquidsoap into a Docker container. It gives you a modern web dashboard to manage everything without writing a single line of XML configuration.</p><h3>The Build: When “One-Click” Fails</h3><p>We started with the DigitalOcean Marketplace 1-Click App running on Ubuntu 22.04.</p><p><em>Pro Tip: Do not use a $6 server. AzuraCast is heavy. The database will crash on anything less than 2GB of RAM. Stick to the $12 plan.</em></p><p>The initial install was smooth, but we hit a wall immediately after. In 2024, you cannot run a radio stream over HTTP. Modern browsers will block it if your main website is secure. We needed SSL.</p><p>We clicked “Generate Certificate” in the dashboard. Nothing happened. The logs showed timeouts. The web interface wasn’t talking to the backend.</p><p>We had to fix it in the terminal.</p><h3>The Fix: Bypassing the Database Loop</h3><p>We SSH’d into the server to force the SSL setup manually. This is where things got messy.</p><p>When we ran the standard setup commands, the script froze. It kept repeating:</p><p>Waiting for database (MariaDB) to become available...</p><p>The database was running perfectly fine, but the setup script couldn’t see it. The script was trying to spin up a <em>new</em> container to run the command, which caused a connection conflict.</p><p>We needed a workaround. Instead of starting a new process, we decided to inject the command directly into the <strong>already running</strong> web container.</p><p>We navigated to the installation folder:</p><pre>cd /var/azuracast</pre><p>Then we ran this specific command:</p><pre>docker compose exec web azuracast:setup:letsencrypt</pre><p>Using exec instead of run was the key. It bypassed the database check entirely. The script immediately asked for our domain name, connected to Let&#39;s Encrypt, and generated the certificate in seconds.</p><h3>Connecting the Studio</h3><p>With the server secure, we needed to get our live audio to the cloud. We use a free tool called <strong>BUTT</strong> (Broadcast Using This Tool) at the station.</p><p>AzuraCast separates “Admin” accounts from “Streamer” accounts. This is a smart security feature. It prevents a DJ from accidentally deleting the station settings.</p><p>We created a dedicated studio account, but we hit one last snag.</p><p>AzuraCast uses a custom authentication method for Icecast. In the BUTT settings, there is a field for “User” and a field for “Password.” If you fill them out normally, the connection fails.</p><p>The trick is to leave the <strong>User</strong> field blank.</p><p>You must combine the username and password into the <strong>Password</strong> field, separated by a colon.</p><ul><li><strong>Server:</strong> <a href="https://www.google.com/search?q=radio.ourdomain.com">https://www.google.com/search?q=radio.ourdomain.com</a></li><li><strong>Port:</strong> 8005</li><li><strong>User:</strong> (Blank)</li><li><strong>Password:</strong> studio:our_secret_password</li></ul><p>Once we formatted it correctly, the stream connected instantly.</p><h3>The Result</h3><p>We now have a fully operational radio station.</p><ul><li><strong>Source:</strong> Studio audio encoded via BUTT.</li><li><strong>Transport:</strong> Fiber connection to DigitalOcean.</li><li><strong>Server:</strong> AzuraCast handles the stream and AutoDJ fallback.</li><li><strong>Delivery:</strong> HTML5 player on our site, fully secure.</li></ul><p>This migration took a few hours of troubleshooting, but the payoff is permanent. We own the infrastructure. We own the data. And we slashed our operating costs by 70%.</p><p>If you are technical enough to read server logs, there is no reason to keep paying for managed hosting. Spin up a VPS and take control.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74cdec60f482" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Architectural Pivot: Why We Must Retire Heuristics for Deep Learning in Computer Vision]]></title>
            <link>https://abiodunabdullahi.medium.com/the-architectural-pivot-why-we-must-retire-heuristics-for-deep-learning-in-computer-vision-ae625807971a?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae625807971a</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 13:40:53 GMT</pubDate>
            <atom:updated>2025-11-23T13:40:53.535Z</atom:updated>
            <content:encoded><![CDATA[<p>For years, many computer vision (CV) applications, particularly in sports and industrial monitoring, relied on simple rules — heuristics — to interpret events. If the ball crosses X=90, it’s a goal kick. If Y &lt; 5 and velocity is zero, it’s a throw-in.</p><p>While these shortcuts provided fast, initial results, they introduce fatal fragility into production systems. As we push the boundaries of accuracy and nuance, the industry has universally shifted to sophisticated sequential models like LSTMs and the cutting-edge Graph Neural Networks (GNNs).</p><p>Part 1: The Fatal Flaws of Heuristics</p><p>A heuristic is a rule of thumb, a deterministic shortcut that prioritizes speed and simplicity over optimality. In computer vision and machine learning (CV/ML), they are rules manually coded by engineers.</p><p>The Heuristic Trap: Brittle and Blind</p><p>* Brittleness and Limited Generalization (Problem-Based Design): Heuristics are tailored to a particular problem. If you change the camera angle, the pitch dimensions, or even the lighting, your simple rule (IF position_x &gt; 90) is instantly invalidated. You have to manually adjust hundreds of lines of code for every edge case.</p><p>* No Context or Memory: Heuristics are stateless. They look at the current frame and calculate. They cannot model the intention of the action. A fast pass looks identical to a shot on goal if you only look at speed and final location.</p><p>* Accuracy Ceiling (Non-Measurable Success): Since the rules are based on human intuition, they cannot guarantee the optimal solution. They hit an accuracy ceiling (e.g., 80–85% accuracy) that no amount of code tuning can break. To exceed this, you need a model that learns the non-linear, subtle patterns invisible to the human eye.</p><p>* Maintenance Nightmare: The codebase becomes a massive, tangled web of if/else statements that is impossible for a new engineer to maintain or debug.</p><p>Part 2: The LSTM Solution: Modeling Time and Sequence</p><p>To overcome the limitations of heuristics, we pivot to deep learning models that inherently understand sequential data — the history of movement.</p><p>Long Short-Term Memory (LSTM) Networks are a type of Recurrent Neural Network (RNN) specifically designed to model dependencies over long periods.</p><p>Why LSTM is a Major Upgrade</p><p>The greatest strength of the LSTM is its memory cell and gating mechanism (Input, Forget, and Output Gates). This allows it to hold relevant information from 100 frames ago while forgetting irrelevant noise, which is crucial for tasks like action identification and context modeling.</p><p>* Action Identification involves distinguishing between a deliberate Pass (smooth acceleration, slow deceleration) and a wild Clearance (uncontrolled high velocity).</p><p>* Context Modeling allows the system to understand that a player being stationary for three seconds before a fast movement indicates a Set Piece (Free Kick) rather than a dynamic pass.</p><p>The core of the LSTM’s superiority lies in its structure. It uses an Input Gate to decide which new information is important, a Forget Gate to decide what old information to discard, and an Output Gate to decide what to pass to the next layer. This structure fundamentally enables the modeling of time-dependent actions, moving beyond the simple “snapshot” analysis of heuristics.</p><p>Part 3: The Frontier: Graph Neural Networks (GNNs)</p><p>While LSTMs excel at modeling time, they treat players as independent entities. They calculate the position of Player A, then Player B, but they struggle to model the interaction between them.</p><p>The next evolutionary step in sports and multi-agent CV is the Graph Neural Network (GNN).</p><p>Why GNNs are the Future of Trajectory Analysis</p><p>GNNs model the world as a graph, not just a sequence of data points. They define the scenario using Nodes and Edges. Each player and the ball is a node in the graph (carrying features like x, y, v_x, v_y), and the relationships (distance, team allegiance, influence) between these nodes are the edges.</p><p>GNNs are the most advanced architecture for understanding multi-agent dynamics.</p><p>* Superior Interaction Modeling: The LSTM sees two players getting closer. The GNN sees the graph structure changing — Player A and Player B’s nodes becoming highly connected just before a Tackle. This relational dependency analysis is what LSTMs often miss. GNNs aggregate features from neighboring nodes to update a node’s state, perfectly capturing complex spatial interactions like shielding or marking.</p><p>* Spatial Reasoning: GNNs capture the geometric configuration of agents. The geometry of a defensive line is a powerful predictor of whether a pass will be a Through Ball or an Interception.</p><p>The Current Research: Recent studies and competition benchmarks often show that GNNs, especially when combined with LSTMs (GC-LSTM or G-RNN architectures), achieve State-of-the-Art performance in complex multi-agent prediction tasks like trajectory forecasting and action recognition. They successfully mitigate the limitations of LSTM in modeling complex, non-linear interactions among multiple entities.</p><p>The Conclusion for Modern CV</p><p>The progression in sports analytics has followed a clear trajectory, moving from simple, static rules to complex, relational modeling. The legacy approach relied on heuristics and if/else rules, which provided a low initial cost but accrued high maintenance debt. The current industry standard is defined by the use of LSTM and GRU models, focusing on Temporal Sequence (Memory) to deliver moderate training cost and high accuracy. The research frontier now lies with GNNs, which specialize in Spatial Relationships (Interaction), offering the highest accuracy but demanding higher complexity in implementation. By moving from brittle heuristic rules to robust sequence models like LSTMs, and ultimately adopting GNNs for relational intelligence, we transition CV systems from simple checkers to sophisticated predictive analysts. This architectural pivot is non-negotiable for achieving reliable, high-fidelity sports analytics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae625807971a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Unsexy Moat: Why Your “State-of-the-Art” Model Will Fail (And How Data Operations Wins)]]></title>
            <link>https://abiodunabdullahi.medium.com/the-unsexy-moat-why-your-state-of-the-art-model-will-fail-and-how-data-operations-wins-335418b5f463?source=rss-fe438f0deec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/335418b5f463</guid>
            <category><![CDATA[cofounders]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Abiodun Abdullahi]]></dc:creator>
            <pubDate>Wed, 19 Nov 2025 17:46:06 GMT</pubDate>
            <atom:updated>2025-11-19T17:50:08.701Z</atom:updated>
            <content:encoded><![CDATA[<p>In the AI hype cycle, everyone is obsessed with the model. Is it YOLOv8? Is it a Transformer? How many parameters?</p><p>But in the trenches of building a real-world computer vision product for African sports, I’ve learned a hard truth. <strong>The model doesn’t matter as much as you think. The data pipeline matters more.</strong></p><p>You can download the world’s best pre-trained object detection model today. It will identify a person walking in New York perfectly. But point that same “state-of-the-art” model at a football match in a random stadium in Nigeria, under harsh afternoon sun, with unique jersey patterns and varying pitch textures, and it will fail.</p><p>It will mistake a referee for a player. It will lose the ball against the crowd. It will hallucinate.</p><p>This is the problem of <strong>Domain Shift</strong>. And solving it isn’t about finding a better algorithm. It’s about building a <strong>Data Engine</strong>.</p><p>Here is how we are building a “Data Moat” that makes our system smarter with every single match we process.</p><h4>The Problem: Generic AI is a Commodity</h4><p>If you build your business on a generic, off-the-shelf model (like COCO-pretrained YOLO), you have no moat. Any competitor can download the same model and replicate your product in a weekend.</p><p>Your competitive advantage, your “moat”, is your ability to handle the edge cases that the generic model misses. In our case, that means training our system to “see” football the way it is actually played in the Nigeria Premier Football League (NPFL).</p><h4>The Solution: The Automated Data Engine</h4><p>We don’t just deploy models. We deploy a loop. Our architecture is designed to treat <strong>failure as fuel</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Go96BMuwsvA7WgjH" /></figure><p><strong>1. The “Uncertainty” Trigger</strong> In production, our inference service doesn’t just output coordinates. It outputs a <strong>Confidence Score</strong>.</p><p>When the model is confident (&gt;90%), the data flows to the API. But when the model is <em>uncertain</em> (e.g., 40–60% confidence), it flags that frame. Maybe it’s a player in a new away jersey, or a goalkeeper obscured by a goalpost.</p><p>Instead of discarding these “bad” frames, we capture them. These are the most valuable pixels we have.</p><p><strong>2. Human-in-the-Loop (The Annotator)</strong> These low-confidence frames are automatically routed to our annotation team (using tools like CVAT). Because we are only looking at the <em>hard</em> cases, our annotators don’t waste time drawing boxes around obvious things. They focus purely on the edge cases that confused the AI.</p><p>They correct the label: “That’s not a referee; that’s the Arsenal goalkeeper.”</p><p><strong>3. Automated Retraining</strong> Once we have a batch of these corrected “hard examples,” our pipeline kicks into gear.</p><p>We don’t manually fire up a Jupyter notebook. Our CI/CD pipeline (using tools like Airflow or GitHub Actions) triggers a <strong>Fine-Tuning Job</strong> on AWS. It takes the base model, mixes in the new “hard” data, and retrains the weights.</p><p><strong>4. The Shadow Deployment</strong> We don’t just push the new model to production (that’s how you crash a system). We deploy it in <strong>Shadow Mode</strong>.</p><p>The new model runs alongside the old one on live traffic, but its results are silent. We compare its performance. Did it fix the goalkeeper issue? Did it accidentally break player tracking?</p><p>Only when the new model beats the old one on our benchmarks do we promote it to production.</p><h4>Conclusion: The Moat is the Process</h4><p>This cycle — Detect Uncertainty, Human Correction, Auto-Retrain, Deploy — is the <strong>Data Engine</strong>.</p><p>Every time our system makes a mistake, it learns from it. It gets smarter every Saturday.</p><p>A competitor can come in with more funding. They can buy bigger GPUs. But they cannot buy the <strong>proprietary dataset</strong> of 50,000 “hard cases” that our engine has learned from over tmany seasons.</p><p>That is the unsexy moat. It’s not the code you write. It’s the data you curate.</p><p>Stop looking for a better model. Start building a better loop.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=335418b5f463" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>