Series

Build Log

Notes from building and running personal projects in pair with AI. Decisions, code, ops, and the things that broke.

4 entries

  1. #5
    Revenue & Costs

    Most of My App's AI API Cost Was Web Search — Cutting ¥66 to About ¥20 per User — Build Log #5

    The AI feature in my iOS app cost ¥66 a month for a user who maxed out their quota. Broken down per call, about ¥1.5 of every ¥2.2 was web search. Switching models, turning search off by default, and zeroing thinking looked like ¥6.8 at the time — but that used a placeholder price. With the official price it's about ¥20, a roughly 70% cut. Here's the math, and the correction.

  2. #6
    Review & Release

    Why My Forced Update Wasn't Showing: a Fail-Open Check, Patched Across 13 Old Runtime Versions — Build Log #6

    I raised the server's minimum build to 54, and users on the old build still saw no update screen. The cause was the app-side check: whenever the network call or the build-number read failed, it let you through (fail-open). This is how I closed it on July 24, 2026 by shipping a patch to 13 old runtime versions one by one, the incident I caused along the way, and the real root cause I found weeks later.

  3. #7
    Bugs & Outages

    The Number I Hid From the UI Was Wide Open in the API — Build Log #7

    My app's unit-cost figure was admin-only on screen. But the API had no admin check, so any logged-in user could fetch it directly. Closing it took one line. Realizing that a 401 doesn't prove anything took longer.

  4. #9
    Bugs & Outages

    My Sync Code Wiped Local Data on Account Switch — The "Server Is the Source of Truth" Pitfall — Build Log #9

    I deleted my account in my own to-do app, signed back in with the same Google login, and every task was gone. The culprit was an account-switch guard in my sync code that cleared the local cache because "the server has the real copy" — on a brand-new account where the server had nothing. Then I found the Supabase free plan had no backups.