on-internet

A Refund Changed the Customer’s Eligibility. How Does the API Know?

A customer has Gold membership and three completed purchases. That's enough to qualify for a rewards offer. Then one of those purchases is refunded. The business decision has changed. But what happens to the data that powers the Rewards API—and the AI agent relying on that API? This is a useful example of a broader data architecture challenge: How do we keep operational read models current as source data changes? The architectural pattern Consider a simple flow: PostgreSQL → Change Data Capture → Incremental SQL → Maintained Eligibility View → Rewards API → AI Agent Here's what happens: 1. The

Compressing a PDF to an exact file size (like 200 KB) in the browser with WebAssembly

Every government portal, job site and university application seems to have the same rule: "Upload a PDF, max 200 KB." Then you scan a two-page form on your phone and get a 4 MB file. I built KaiPDF, a free in-browser PDF toolkit; this is how one part of it works: the "make it smaller than X" mode of the compressor. Everything below runs in the browser tab. The file is never uploaded. Why upload portals have size limits The limits are rarely about the PDF itself. They come from older systems behind the form: Database blobs and mail gateways. Many back offices store attachments in a database col

The MCP context tax: I measured what tool definitions cost your context window (21,328 MCP servers)

Originally published on Serverdex, where the numbers update live. Here's a cost most people never see: every MCP tool definition is loaded into your model's context before it does any work. Connect a server, and its tools' names, descriptions and full argument schemas are sent to the model on every single turn — before it reads your prompt. Ten lean tools are cheap. One server with two hundred verbose tools is a standing bill you pay on every message. Nobody had measured that bill across the ecosystem, so I did. I called tools/list on every public MCP server that answers — no API key, no OAuth

AI Rate Limiting for LLM Calls in TypeScript

You fire 50 LLM calls at once. A batch job, a fan out over documents, a busy hour. The provider only lets 10 through at a time, so the rest come back as 429 Too Many Requests. The usual fix is to retry 429s with backoff. That helps, but notice what it means: every retry is a request you sent after you already got rate limited. You are reacting to a limit you could have stayed under. This post shows the difference with real numbers and how to rate limit LLM calls in TypeScript with VernLLM, before the provider says no. Retrying 429s vs not causing them I ran a 50 call burst against a scripted p

I Tested the Entire Prisma Platform on My Project: The Good, What Broke, and the Cloud Bill

A few months ago, I wrote an article titled “I Reduced Prisma Database Operations by 60% Without Upgrading My Database”. In that post, I shared how profiling slow queries with EXPLAIN ANALYZE helped us cut database operations on my project, Sellary (sellary.in)—a digital commerce platform for Indian creators. Shortly after publishing it, Martin Janse van Rensburg from the Prisma team reached out with an intriguing challenge: "Since you already use Prisma ORM, would you be up for a follow-up running Sellary on the whole Prisma platform, adding Prisma Postgres and Prisma Compute, with an AI agen

The 2026 Developer's Guide to Agent Fleets: Taming Unbounded Concurrency with Bounded Worker Pools

Originally published on tamiz.pro. Agent fleets fail in a peculiar way: they work beautifully in a demo, then collapse under production traffic. The code looks reasonable. You spawn a task for every incoming request, every document chunk, every sub-agent. Each task calls a model, retries on failure, waits on a tool, and spawns more work. Throughput rises until something saturates: connection pools, rate limits, memory, your monthly budget, or the provider's willingness to serve you. The fix is not to make agents faster. It is to make concurrency a bounded resource, not an emergent side effect

Stop Giving AI Agents Your Admin Credentials

The Problem Is Not the Agent. It's the Key You Gave It. In 2026, AI coding pipelines are no longer experimental. Teams are running them against real repositories, real deployment targets, and real cloud accounts. The security question that keeps surfacing is not whether these systems work. It's what happens when a pipeline that can push to production also has read access to your .env files, your shell history, and your AWS root key. According to Gartner's The State of AI in DevOps: Security and Governance Challenges (source), organizations deploying AI systems in DevOps environments face signi

Backup restore in the admin panel: short-lived signed links for private object storage

Decision rule first: keep every backup object private, and let an admin-only route mint a short-lived signed download URL at the moment a human clicks restore. Use your own app server as the download path only when you have to read or rewrite the bytes on their way out — decryption, redaction, per-row filtering. Everything else belongs in a presigned GET. That's the whole recommendation. The rest of this is why the second shape costs less than it looks, and what retention and deletion do to both of them. The system I have in mind is a B2B SaaS reporting product. A nightly job generates a repor

Building a Production Python MCP Server for International Air Freight & Volumetric Weight (FastMCP + Glama Docker Lessons)

When AI shopping or procurement agents are asked "How much does it cost to ship a 12 kg auto parts box from California to Riyadh, Dubai, London, or Sydney?", they almost always hallucinate flat courier prices and completely miss IATA dimensional (volumetric) weight (L × W × H / 5000) and consolidation repacking savings. To give Claude, Cursor, Windsurf, and autonomous procurement agents deterministic landed-cost math and real-time airwaybill tracking, we built and open-sourced AQXLOGISTICS/aqx-shipping-rates-mcp — a lightweight Python Model Context Protocol (MCP) server backed by live contract

The benchmark is no longer FLOPS: what an agentic HPC loop actually buys you

Every November, the supercomputing community gathers in Chicago and compares machines the same way it has for decades: how fast can this system solve a fixed problem? At SC26, which ran November 15–20, Nvidia spent a lot of time talking about raw performance. But the more interesting argument it made was that raw performance is no longer the right unit of account. The new question is: how many times can a researcher — or an AI agent acting as one — go from hypothesis to result in a single day? That sounds like a productivity slogan. It is actually a concrete architectural claim, and it changes

The shipment spec is the prompt: what a buyer agent should ask before it requests a freight rate

The shipment spec is the prompt Every agent that buys freight eventually hits the same wall. The pricing call is easy. Getting the inputs right is not. A person booking a pallet shipment carries a lot of context they never write down. They know the box on the dock is a little taller than the spec sheet says. They know the receiver is a strip-mall storefront with no loading dock. They know "about 800 pounds" really means 800 pounds plus a pallet. When an AI agent books the same load, none of that context exists unless the agent asked for it. Whatever the agent sends in the rate request is the w

Building a Local-First Subscription Tracker for Android: Privacy, Reminders and Data Control

What designing Seabil taught us about recurring payments, offline workflows and keeping financial records under the user's control. Many subscription management apps try to automate everything. They connect to financial accounts, analyze transactions, synchronize information and attempt to identify recurring charges. Those features can be useful. But they also introduce additional infrastructure, permissions and dependencies. When developing Seabil, our Android subscription tracker at TSI Dev Studio, we explored a different approach: What if tracking recurring payments didn't require access to

Short Romance Story

tittle: My Mafia Man Continue reading on Medium »

Short Romance Story

Tittle: My Mafia Man Continue reading on Medium »

GrapheneOS Expects Google to Lock Pixel Bootloaders. How to Unlock Yours Now

"We expect Google will begin bootloader locking Pixels." That's from the GrapheneOS project on November 19, a few posts into a thread that opens with the claim that Google is "trying to convince OEM partners not to support GrapheneOS or even bootloader unlocking." Pixels are the only phones GrapheneOS officially supports right now. If that prediction comes true, GrapheneOS loses its hardware, and the list of phones where an Android bootloader unlock still works gets very short. I've spent the day reading the thread, the Hacker News fight it started (386 points and 136 comments when I looked),

Un suministro insuficiente de combustible a los motores de la primera etapa provocó el fallo del lanzamiento de vuelta al servicio del Vulcan Centaur de ULA

A United Launch Alliance le ha faltado tiempo esta semana para ir publicando actualizaciones sobre el fallo en la vuelta al servicio de su cohete Vulcan Centaur el pasado domingo. Aún no saben por qué pero parece que la causa está en un suministro insuficiente de combustible a los motores BE-4 de la primera etapa. Eso hizo que cuando se produjo la separación de la etapa superior Centaur el cohete estuviera a menos altitud y con menos velocidad de lo previsto y aunque el sistema de guiado detectó el problema simplemente era imposible que los motores RL-10 pudieran compensarlo. Así que la segund

Day 88: A Marker in the File and a Disputed Status Code

Day 88 of DevOps, Day 38 of Azure. Both tasks today put the thing that matters somewhere other than where I had recorded it. An Ansible module that is reliably idempotent turns out to store its entire record of what it did in two comment lines inside the file it edits. And an Azure error code I had written down as the answer turns out to be one of several the same condition produces, depending on the client. One Ansible task, one Azure task. Write a block of content into a web page on three servers, then upload a file from a VM into a private blob container. The tasks come from the KodeKloud E

The Guardrails I Give My AI Coding Agent

In my last post I wrote that the more I use AI to code, the more engineering judgment matters. A fair follow-up question is: what does that judgment look like on an ordinary day? For the past few weeks, an AI coding agent (Claude Code, in my case) has been writing much of the code for our product's search pages. In one day this week it shipped four separate changes to our development environment: a new way to combine filters with a plain-text view of a search, two small visual fixes, and a layout change for smaller laptop screens. I didn't write those changes. I did decide what got built, what

Older stories