Dibya Sarothi
Dibya Sarothi
Technical Writing & Inquiry

Research & Systems Architecture

Technical explorations, architecture case studies, and engineering papers analyzing data integrity, deterministic validation boundaries around LLMs, and real-time game state machines.

AI Systems
October 2026•7 min read

Evidence First, AI Second: Enforcing Deterministic Invariants in LLM Applications

Why production AI applications must treat language models as explanatory layers rather than authoritative data stores.

Large Language Models operate through next-token probabilistic distributions. While this allows exceptional linguistic synthesis, it is intrinsically ill-suited for deterministic business rules, mathematical precision, and safety-critical domains. This paper examines the architectural pattern of placing relational database assertions and strict schema validators in front of, and behind, LLM invocations.

Backend Systems
September 2026•8 min read

Deterministic Multi-Tenant Boundary Isolation in Relational SaaS Backends

Analyzing query-level tenant scoping, thread-local context isolation, and IDOR prevention in high-throughput Django systems.

Multi-tenant B2B architectures must guarantee that tenant data remains entirely segregated under concurrent request loads. This article analyzes the trade-offs between schema-per-tenant and shared-schema row-level tenant filtering, detailing how custom Django QuerySet managers and thread-local middleware eliminate cross-tenant leakage by design.

Software Architecture
August 2026•6 min read

Engineering Deterministic Hierarchical State Machines for 2D Combat Loops

Managing input buffering, physics ticks, and zero-allocation combat states in Unity C#.

Action games live or die by the responsiveness of their combat loops. This technical paper documents the architectural patterns developed during the creation of Ashenfall, demonstrating how Hierarchical Finite State Machines (HFSM) and non-allocating 2D physics casts eliminate frame drops and input latency.