Articles
Notes on software, AI and shipping, newest first.
December 2026
Denial of wallet: how a public AI chatbot can run up your API bill, and the limits that stop it
A public chatbot bills you for every token, so anyone who can send it messages can spend your money. What OWASP LLM10:2025 says, how to price one abusive request, and the server-side limits to put in front of the model.
6 min read
Deepfake voice and video fraud: payment controls that stop a cloned voice
A cloned voice or a fake video call can sound exactly like your boss. These process controls, from call-backs on known numbers to two-person approval in ERPNext, stop it from moving money.
6 min read
Giving an AI agent tools safely: MCP server security, tool poisoning and least privilege
What the Model Context Protocol specification says about trusting tool servers, how tool poisoning works, and the least-privilege habits that keep an MCP setup safe.
6 min read
Slopsquatting: when your AI coding assistant invents a package
AI coding tools sometimes recommend packages that do not exist, and attackers can register those names. What the USENIX Security 2025 study measured, and four checks that keep a hallucinated package out of your project.
6 min read
Daraja C2B vs STK Push vs Till: Choosing the Right M-Pesa Flow for an ERPNext Shop
Till, Paybill and STK push all land money in your M-Pesa account, but they differ in who starts the payment and what reference ERPNext gets. Here is which flow fits counter sales, remote invoices and pay-later customers, and what ERPNext's built-in Mpesa Settings actually covers.
13 min read
KRA eTIMS from ERPNext: what OSCU and VSCU actually send, and the failures to plan for
What ERPNext sends to KRA eTIMS through OSCU or VSCU, in the order KRA expects it, what comes back for the receipt, and the failure states to design for before go-live, from KRA's specifications and the source of two open-source Frappe apps.
13 min read
August 2026
July 2026
Your spare Android phone is a payment gateway: an offline-first SMS relay for M-Pesa
M-Pesa till confirmations arrive as an SMS, and Daraja is not open to every merchant. So we turned a spare Android phone into a self-hosted SMS-to-HTTP gateway: encrypted on-device, HMAC-signed on the wire, and built so that it never loses a message.
14 min read
Metering, model routing and the regression suite that stops your agent rotting
Two questions decide whether an AI feature survives its first year: does each request make money, and will a prompt edit break something silently? An append-only credit ledger, two-tier routing, and a suite that asserts question-to-metric mappings are the answers.
6 min read
Six ways Android will eat your background service, and what actually worked
A broadcast receiver is a lie, WAL journalling wedged openDatabase on OxygenOS, and one polite database close in a WorkManager teardown silently stopped the whole gateway. Six real failure modes from a production Android SMS gateway, and the fix for each.
16 min read
Exactly-once over an unreliable pipe: HMAC, nonces, and a byte-exact contract
A per-request nonce and a per-content hash look like the same idea and are not. One says this request arrived twice, the other says this message arrived twice, and a payment pipeline needs both. The signing design behind a production SMS gateway.
12 min read
Shipping an Android app that can never be on the Play Store
Play forbids READ_SMS for anything that is not the default SMS handler, so this app was never going to be listed. Then a silent fallback to the debug keystore and a versionCode stuck at 1 turned every update into an uninstall. Two traps, one incident.
9 min read
Deploying Frappe apps to a client server you're not allowed to touch
The client will not give you access to their dev server, so every code change means someone on their side pulls and migrates by hand. Here is the complete fix: a self-hosted runner they install, a deploy script they own, and no credential to their environment on your side at all.
13 min read
The OEM autostart rabbit hole: deep-linking into a dozen undocumented settings screens
Android has no API for the autostart allowlist your phone's manufacturer invented. So you keep a list of undocumented component names, try them in order, and design the failure case properly, because Transsion, which is enormous in Africa, exposes nothing at all.
9 min read
Bolting a phone onto ERPNext: custom routes, guest endpoints and HMAC auth in Frappe
Frappe claims every /api/* path before website routing, so a fixed third-party path 404s. Here is the before_request rewrite that fixes it, including the cached property you also have to bust, and why allow_guest endpoints can still be strongly authenticated.
12 min read
A payment source, not a payment parser: what keeping the pipe dumb actually buys
The SMS gateway could have extracted the M-Pesa transaction code on the phone. It deliberately does not. Here is what that bought, what it cost, and the boundary question every integration eventually has to answer: where does meaning belong?
11 min read
The pull model: systemd timers and release polling
When the client's security team refuses a runner outright, you can still ship. A systemd timer on their server asks GitHub what the latest release is, compares it against what is checked out, and deploys when they differ. Nothing external can execute anything.
8 min read
Push access is code execution: hardening a self-hosted runner
A self-hosted runner executes whatever the workflow file says, and the workflow file lives in a repository you control. So push access to your repository is command execution on your client's server. Here is the honest risk and the layers that contain it.
7 min read
SSH deployment for Frappe: how it works, and what it costs you
SSH deployment is the right answer when you own the server, and here is a complete working pipeline for it. It is also a private key held by a third party's CI system, which is a bill worth reading before you sign it.
8 min read
What bench migrate actually does, and the rollback you'll wish you had
Every patch commits as it completes and records itself as applied. So a migration that fails halfway is not a failed migration, it is a half-finished one, and re-running will not undo it. Here is the recovery, with real commands.
8 min read
Anatomy of a Frappe bench
Five directories, one of which is not a directory at all but a collection of independent git repositories. Understanding that is the difference between a deploy that works and a Saturday spent fixing file ownership.
8 min read
Shipping a business agent on WhatsApp: templates, webhooks and the 24-hour window
The in-app chat panel was good and nobody opened it. Putting the agent on WhatsApp means the Cloud API's template rules, idempotent webhooks, per-tenant scheduled jobs, alert hysteresis, and testing that Sheng routes to the right metric.
6 min read
Secrets, environments and required reviewers
A repository secret is readable by everyone who can push to the repository. An environment secret is not released until a gate opens. Understanding that difference is what lets you hand the client the key to their own deployments.
8 min read
What a runner actually is: GitHub-hosted vs self-hosted
A runner is a process that asks GitHub for work and executes it wherever it happens to live. Once that sentence is true for you, deploying to a firewalled server with no inbound access stops being a trick.
9 min read