<?xml version='1.0' encoding='utf-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tharusha Nuwansara — Zero-Cost Production Reliability</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/</link><description>Sandbox-verified Python, SQLite WAL, HMAC webhook, and fault-tolerant AI benchmarks.</description><language>en-us</language><atom:link href="https://nuwansaratharusha.github.io/kofi-devto-autopilot/feed.xml" rel="self" type="application/rss+xml" /><item><title>Atomic Token-Bucket API Rate Limiting in SQLite WAL Without Redis Lua Scripts</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/atomic-token-bucket-api-rate-limiting-in-sqlite-wal-without-0389ea/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/atomic-token-bucket-api-rate-limiting-in-sqlite-wal-without-0389ea/</guid><pubDate>Fri, 27 Nov 2026 21:49:28 +0000</pubDate><description>Enforcing exact burst-and-refill API rate limits across multi-worker Python processes using a 40-line SQLite WAL token bucket instead of Redis.</description></item><item><title>Idle-Chunk Watchdogs &amp; Partial JSON Recovery for Stalled SSE LLM Streams in Python</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/idle-chunk-watchdogs-partial-json-recovery-for-stalled-sse-llm-e98e07/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/idle-chunk-watchdogs-partial-json-recovery-for-stalled-sse-llm-e98e07/</guid><pubDate>Thu, 26 Nov 2026 22:09:00 +0000</pubDate><description>Detecting mid-stream SSE socket stalls in 1.5 seconds instead of hanging worker threads for two minutes—and recovering valid partial payloads cleanly.</description></item><item><title>Zero-Drift Payment Reconciliation: Auditing Payment Webhooks Against Immutable SQL Postings</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/zero-drift-payment-reconciliation-auditing-payment-webhooks-against-immutable-sql-13a5a3/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/zero-drift-payment-reconciliation-auditing-payment-webhooks-against-immutable-sql-13a5a3/</guid><pubDate>Wed, 25 Nov 2026 22:10:11 +0000</pubDate><description>Detecting dropped payment webhooks, recording append-only compensating refunds, and proving zero-cent balance invariants with pure SQL views.</description></item><item><title>Poison-Pill Isolation: Designing Exponential NACK Backoff and Dead-Letter Replay in SQLite</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/poison-pill-isolation-designing-exponential-nack-backoff-and-dead-letter-433b47/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/poison-pill-isolation-designing-exponential-nack-backoff-and-dead-letter-433b47/</guid><pubDate>Tue, 24 Nov 2026 22:55:43 +0000</pubDate><description>How to prevent two malformed high-priority webhooks from starving 150 healthy background jobs—and replay quarantined dead-letter payloads cleanly after deploying a hotfix.</description></item><item><title>Enforcing Deterministic Token Ceilings and Multi-Provider Failover in Tool-Calling Loops</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/enforcing-deterministic-token-ceilings-and-multi-provider-failover-in-tool-d368ec/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/enforcing-deterministic-token-ceilings-and-multi-provider-failover-in-tool-d368ec/</guid><pubDate>Fri, 20 Nov 2026 00:26:48 +0000</pubDate><description>Preventing runaway overnight API bills and silent Python bool-as-int schema bugs with hard per-run token budgets, repair hints, and instant secondary model failover.</description></item><item><title>Why Timestamp Windows Alone Fail Webhook Security (Atomic SQLite Nonce Deduplication Under Load)</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/why-timestamp-windows-alone-fail-webhook-security-atomic-sqlite-nonce-64887a/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/why-timestamp-windows-alone-fail-webhook-security-atomic-sqlite-nonce-64887a/</guid><pubDate>Fri, 20 Nov 2026 00:26:48 +0000</pubDate><description>Proving why 5-minute HMAC timestamp checks still allow parallel replay double-spends—and blocking 15 concurrent replay threads atomically with bounded SQLite WAL nonce tables.</description></item><item><title>Eliminating Overlapping Cron Double-Execution With SQLite WAL Leases and Stale-Lock Takeover</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/eliminating-overlapping-cron-double-execution-with-sqlite-wal-leases-and-b373d4/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/eliminating-overlapping-cron-double-execution-with-sqlite-wal-leases-and-b373d4/</guid><pubDate>Fri, 20 Nov 2026 00:26:48 +0000</pubDate><description>Eliminating duplicate invoice emails and overlapping GitHub Actions / crontab runs using atomic SQLite WAL execution windows and automatic stale-lease recovery.</description></item><item><title>Why Naive Exponential Backoff Causes Retry Storms (And Fixing HTTP 429 With Full Jitter in Pure Python)</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/why-naive-exponential-backoff-causes-retry-storms-and-fixing-http-ee531e/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/why-naive-exponential-backoff-causes-retry-storms-and-fixing-http-ee531e/</guid><pubDate>Fri, 20 Nov 2026 00:26:48 +0000</pubDate><description>Simulating 60 synchronized API workers hitting HTTP 429 at once—and proving why Retry-After-aware full jitter eliminates thundering-herd retry amplification in pure Python.</description></item><item><title>Constant-Time HMAC Webhook Verification &amp; Integer-Cent Double-Entry SQL Ledgers in Python</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/constant-time-hmac-webhook-verification-integer-cent-double-entry-sql-cd295f/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/constant-time-hmac-webhook-verification-integer-cent-double-entry-sql-cd295f/</guid><pubDate>Thu, 19 Nov 2026 23:41:46 +0000</pubDate><description>How to verify raw webhook bytes in constant time, block intra-window replay attacks with SQLite WAL nonces, and record zero-drift integer-cent journal postings.</description></item><item><title>Replacing Redis Queue With a 180-Line Transactional SQLite WAL Job Broker &amp; Dead-Letter CLI</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/replacing-redis-queue-with-a-180-line-transactional-sqlite-wal-48c679/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/replacing-redis-queue-with-a-180-line-transactional-sqlite-wal-48c679/</guid><pubDate>Thu, 19 Nov 2026 23:41:45 +0000</pubDate><description>Benchmarking atomic BEGIN IMMEDIATE visibility leases, duplicate webhook suppression, and poison-pill dead-letter isolation on a single SQLite WAL file.</description></item><item><title>Zero-Dependency Python Circuit Breakers &amp; Self-Repairing JSON Routers for Unreliable LLM APIs</title><link>https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/zero-dependency-python-circuit-breakers-self-repairing-json-routers-for-04a7e6/</link><guid isPermaLink="true">https://nuwansaratharusha.github.io/kofi-devto-autopilot/posts/zero-dependency-python-circuit-breakers-self-repairing-json-routers-for-04a7e6/</guid><pubDate>Thu, 19 Nov 2026 23:41:45 +0000</pubDate><description>How to stop cascading HTTP 429/503 stalls, repair fenced JSON tool payloads, and route around upstream brownouts using pure Python 3.11+ standard library code.</description></item></channel></rss>
