Engineering essays.
Deep-dives on AI code review, multi-agent architecture, and the craft of shipping reliable software at speed.
August 30, 2026Technical Deep DiveConnection Leak in PgBouncer Transaction Mode: A Caught Misconfig
Real PR catch: Prisma + PgBouncer transaction mode without `?pgbouncer=true` — prepared statement failures. Config fix.
8 min read· Mesrai Team
August 29, 2026Technical Deep DiveMemory Leak in a React Context That Never Garbage-Collects
Real PR catch: Context Provider with inline-literal value — every consumer re-renders, memory pressure. useMemo + useCallback fix.
8 min read· Mesrai Team
August 29, 2026Technical Deep DiveUnbounded Retry Loop on Transient Failure: Mesrai's Backoff Suggestion
Real PR catch: tight retry loop hammers upstream — rate-limit ban. Exponential backoff + jitter fix.
8 min read· Mesrai Team
August 28, 2026Technical Deep DiveMissing Timeout on Outbound HTTP: The Hanging-Worker Bug
Real PR catch: fetch with no timeout — hung upstream froze workers, cascading outage. AbortSignal fix.
8 min read· Mesrai Team
August 28, 2026Technical Deep DivePromise Rejection Swallowed by Promise.allSettled Misuse
Real PR catch: allSettled result discarded — rejections invisible. Inspect + log + metric fix.
8 min read· Mesrai Team
August 27, 2026Technical Deep DiveLost Error Context in a Try/Catch Re-Throw: The Stack-Trace Killer
Real PR catch: re-throw as new Error(message) — original stack lost. Error cause option fix.
8 min read· Mesrai Team
August 27, 2026Technical Deep DiveDatabase Transaction Never Committed on Early Return: A Caught Path
Real PR catch: BEGIN/COMMIT with early return between — silent rollback. Managed-transaction fix.
8 min read· Mesrai Team
August 26, 2026Technical Deep DiveEvent Listener Leak in a Long-Lived SSE Connection
Real PR catch: SSE subscribe without unsubscribe on client disconnect — listener stack. req.on('close') fix.
8 min read· Mesrai Team
August 26, 2026Technical Deep DiveUnclosed File Descriptors in a Streaming Endpoint
Real PR catch: file open without close in finally — leaks under error. try/finally + `using` fixes.
8 min read· Mesrai Team
August 25, 2026Technical Deep DiveThe Silent catch {} Mesrai Refused to Approve
Real PR catch: empty catch swallowing all errors in a sync job. Log + metric + continue fix.
8 min read· Mesrai Team
August 25, 2026Technical Deep DiveDST Transition Bug in Billing Cycle Math
Real PR catch: addMonths in local time drifts at DST — renewals hours off. Temporal ZonedDateTime fix.
8 min read· Mesrai Team
August 24, 2026Technical Deep DiveTax Inclusive vs Tax Exclusive: Mesrai's Single Source-of-Truth Rule
Real PR catch: ambiguous price field — listing inclusive, checkout exclusive. basePricePaise + applyTax convention.
8 min read· Mesrai Team