Kubai Kevin

Older Posts — Page 8 of 19

Agent tracing: when logs lie and metrics mislead

Async agents break synchronous tracing assumptions. Learn how to model queue spans, propagate context across brokers, and read traces honestly.

10 min read · 28 August 2026

AI features rot faster than you build them

Model APIs, prompts and schemas change under you. Here is how to make AI feature contracts explicit, versioned and reversible without a rewrite.

15 min read · 27 August 2026

agent code review gap nobody admits

AI-generated PRs pass linting and unit tests yet break production. The gap is environment fidelity, not code quality. Here is how to close it.

13 min read · 27 August 2026

Mobile-first AI fails you didn’t plan…

Mobile-first AI features fail on payload size, latency and device RAM, not model quality. A practical guide to measuring and fixing the network and device bottlenecks.

13 min read · 26 August 2026

AI on slow networks: Nairobi teams' 2026 playbook

How to cut perceived AI latency with multi-tier caching, stampede guards, and edge orchestration, plus how to measure each layer yourself.

13 min read · 26 August 2026

PyPI poisoned models hit prod in 2025

How to pin, hash and audit Python packages and datasets so a poisoned model or tampered dataset cannot reach training or production.

11 min read · 25 August 2026

Self-service is broken without AI ops

Self-service platforms fail on cognitive load, not RBAC. How to add pre-flight, mid-flight and post-flight guardrails with measurable results.

12 min read · 24 August 2026

Agent auth: where the docs ended up lying

OAuth2 and OIDC assume reliable clocks, stable power and trusted hardware. Here is what breaks on constrained agent networks, and how to measure it.

14 min read · 24 August 2026

AI payments break in M-Pesa first

Payment webhooks arrive duplicated and out of order. Here is how to normalize provider events, dedupe them, and reconcile an AI feature store safely.

14 min read · 23 August 2026

Agentic FinOps is a trap

Standard FinOps tracks per-call cost and latency. Agents with retries, growing state and human hand-offs leak cost that never shows on the dashboard.

12 min read · 22 August 2026

AI errors hide in plain latency

Why token counts and GPU utilization miss user-visible AI degradation, and how to instrument end-to-end p95/p99 latency and error rate instead.

10 min read · 21 August 2026

WebSockets vs Server-Sent Events: latency over 3G

Compare WebSocket and Server-Sent Events for real-time features on 3G/4G: reconnect behaviour, proxy timeouts, framing overhead, and how to measure each.

14 min read · 21 August 2026

Validating AI-Generated Code Before It Reaches Production

AI-written code often fails quietly under load. Here is how to validate it at build time, guard it at runtime, and keep on-call triage fast.

10 min read · 20 August 2026

Evolve your monolith without rewriting in 2026

A three-layer FastAPI layout (API, domain, infra) that keeps a monolith evolvable: worked code, failure modes, cache stampede fixes, and how to measure.

15 min read · 19 August 2026

AI unit costs: the metric both teams fight over

Why per-call AI cost estimates break down, and how to instrument a shared cost-per-outcome metric that product and finance both accept.

14 min read · 18 August 2026

Audit logs that scale: skip the 3AM fire drills

How to design audit log pipelines that satisfy auditors and engineers: immutable event streams, hash chains, tiered retention, and a decision checklist.

16 min read · 17 August 2026

Replace managed services with Postgres 17

How to decide whether to replace managed cache, search, and scheduler services with Postgres extensions, and how to measure the trade-off honestly.

14 min read · 16 August 2026

AI-era promotions hinge on this one thing

AI features fail through cache eviction, schema drift and missing rollback paths. A practical guide to validation gates, fallback caches and metrics.

11 min read · 15 August 2026

Rust SDK vs FastAPI for LLM ops: trust in 2026

How to compare a compiled Rust inference service against a Python async API for LLM serving: cold starts, cache stampedes, memory, and how to measure each.

10 min read · 14 August 2026

Currency switch fails in Ghana: one config file to rule…

Mobile money providers put currency codes in different places. Learn a deterministic extraction, validation, and normalization pipeline that stops silent fallbacks.

13 min read · 13 August 2026

Senior engineer title inflation in 2026

How AI-generated code changes senior-engineer expectations: residency-aware LLM gateways, retry budgets, audit logs, and verification you can run.

11 min read · 13 August 2026

Foreign AI models vs sovereign fintech stacks: 2026 reality

How to choose between offshore LLM APIs and locally hosted inference for regulated fintech, with latency math, cost break-even, and a compliance checklist.

12 min read · 13 August 2026

Spot evictions: the retry logic that holds up

Spot evictions break naive retry logic. Learn how to decouple retries from instance lifecycle, add jitter, and avoid coordinated retry storms.

13 min read · 12 August 2026

African fintech agents: the compliance cliff most miss

How to design region-resident, queryable audit trails for autonomous fintech agents facing per-country latency, residency and retention rules.

10 min read · 12 August 2026