Engineering essays.
Deep-dives on AI code review, multi-agent architecture, and the craft of shipping reliable software at speed.
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
August 24, 2026Technical Deep DiveRazorpay Webhook Amount in Paisa vs Rupees: The 100x Bug
Real PR catch: Razorpay amount treated as rupees — 100× overbilling. Paise convention fix.
8 min read· Mesrai Team
August 23, 2026Technical Deep DiveCurrency Conversion at Read Time vs Write Time: The Drift Bug
Real PR catch: FX at report time — historical totals drift. Write-time capture fix with schema change.
8 min read· Mesrai Team