Maya Builds AI

Maya Chen

Enterprise AI infrastructure explained by someone who has seen what breaks in production. Every episode breaks down one concept that matters when you are running AI at scale in regulated industries. LLMOps. Orchestration. Governance. Compliance. Observability. The stuff between the models and the business logic that nobody talks about until something goes wrong. New episodes three times a week.

  1. Sep 11

    The Autonomous Vendor Contract Indexation Slip: An 18% Compound Disaster

    An autonomous procurement agent was tasked with executing an annual inflation adjustment on a three-year master supply agreement. During structured JSON tool compilation, the model inverted the base Consumer Price Index ratio: evaluating (CPI_base / CPI_t) instead of (CPI_t / CPI_base). Under softening commodity prices, that single inverted fraction turned an intended 2% annual discount into an automated 18% compounding price hike—signed and committed via DocuSign with zero human intervention. In this finale of our High-Stakes Supply Chain series, Maya Lin breaks down the architectural failure of letting autoregressive token predictors compile commercial mathematics directly to systems of record. Inside the post-mortem: The AST-level breakdown of the tool-calling inversion Why Pydantic schema validation and HTTP 200 checks fail to catch arithmetic bugs The fundamental failure mode of relying on system prompts for formal algebraic verification How to engineer deterministic symbolic math solvers and runtime circuit breakers at the API gateway layer TIMESTAMPS:00:00 - The $14M Fraction Inversion04:20 - Autonomous CLM Workflows & Direct API Keys09:15 - How the Model Inverted the CPI Ratio14:30 - The 18% Compounding Balance Sheet Trap19:50 - Why Prompts Cannot Perform Formal Algebraic Verification25:10 - Schema Checks vs. Execution Invariants30:45 - Building External AST and Symbolic Math Solvers36:20 - Out-of-Band Signature Interceptors41:40 - Runtime Agent Governance with Claire RESOURCES:Full technical post-mortem: letsaskclaire.comConnect with Maya Lin on LinkedIn: linkedin.com/in/mayabuildsaiFollow on X: x.com/mayabuildsai

  2. Sep 10

    The $450K Rotated Barcode Demurrage Disaster (Part Two)

    A multimodal vision-language agent deployed to process incoming ocean Bills of Lading encountered a security seal barcode rotated 90 degrees along a document margin. The vision parser returned a silent null value, triggering a downstream default rule that classified 14 containers as unverified hazardous cargo. The agent emitted an HTTP 200 success code, human operators were never paged, and the containers sat on marine terminal pavement for three weeks until demurrage fees surpassed $450,000. In this episode of High-Stakes AI, Maya Lin unpacks the Silent Parse Failure. We explore why vision transformers degrade on physical document skew, why LLM extraction prompts cannot guarantee spatial grounding, and how deterministic OCR reconciliation proxies prevent unverified document extractions from committing high-liability regulatory actions. THE FAILURE MECHANICS The Rotated Artifact: An ocean Bill of Lading entered an automated customs ingestion pipeline with a container seal barcode rotated 90 degrees counter-clockwise. Spatial Attention Collapse: Standard vision encoders slice inputs into fixed spatial patches. Out-of-distribution rotation caused visual token dropout, prompting the language decoder to output a valid JSON schema with seal_number set to null. Automated Default Execution: Downstream logistics logic evaluated the missing seal and automatically applied a regulatory rule: unverified containers must be placed on mandatory hazardous security hold. The Demurrage Accrual: Because the agent considered the payload successfully executed, no exception was raised. The 14 containers exceeded allowable port free time, accumulating escalating daily terminal demurrage across 21 days until the aggregate bill reached $450,800. WHY SYSTEM PROMPTS FAILPrompt engineering cannot force visual models to read tokens they failed to ground. Telling an agent to carefully inspect every margin of a document does not alter visual transformer cross-attention matrices. When resolution drops, fold creases obscure text, or barcodes rotate, probabilistic vision models do not throw code exceptions. Instead, they degrade fluently, omitting missing fields or synthesizing plausible defaults. The failure occurs because downstream services trust raw agent payloads implicitly, allowing probabilistic omissions to trigger destructive regulatory holds. THE CLAIRE ARCHITECTURAL FIXDeploying multimodal document agents into customs and freight workflows requires runtime verification outside the extraction model. The Claire Gateway platform enforces: Deterministic OCR Reconciliation Proxies: Running parallel, orientation-invariant heuristic OCR pipelines that compare raw bounding box streams against vision model extractions before downstream parsing. Field Completeness Invariants: Blocking automated execution whenever mission-critical identifiers (seal numbers, IMO tags, hazardous placards) resolve to null on high-liability cargo. Out-of-Band Exception Interceptors: Trapping document parsing ambiguities and routing them directly to human customs specialists before status writes touch port terminal operating systems. TIMESTAMPS:00:00 - The $450,000 Rotated Barcode Disaster04:30 - How Vision-Language Models Parse Logistics Documentation09:45 - The 90-Degree Rotation Bug and Tokenizer Dropouts15:10 - The Silent Failure: Why HTTP 200 is Not Verification20:40 - The Downstream Hazardous Fallback Rule26:15 - Demurrage Compounding Curves on Marine Terminals31:50 - Why Prompts Cannot Fix Visual Grounding Limits37:25 - The Deterministic OCR Reconciliation Proxy Pattern43:10 - Runtime Document Verification with Claire ECOSYSTEM LINKS:Runtime Agent Governance: https://letsaskclaire.comConnect with Maya Lin on LinkedIn: https://www.linkedin.com/in/mayabuildsai/Follow on X: https://x.com/mayabuildsaiRead the Technical Post-Mortem on Medium: https://medium.com/@maya.chen.claire

  3. Sep 10

    Why an AI Agent Caused an $8M Deadstock Disaster (Part One)

    An autonomous procurement agent just triggered an 80,000-unit replenishment order of perishable goods by mistake, leaving an enterprise distributor holding an $8M deadstock loss on concrete warehouse floors. The system did not fail because the model hallucinated syntax or emitted broken JSON. It failed because a probabilistic planning agent was given direct, un-governed write access to enterprise resource planning endpoints without an external verification layer tracking physical supply chain state. In this episode of High-Stakes AI, Maya Lin unpacks the engineering post-mortem of the Agentic Bullwhip Bug. We analyze why an autonomous ReAct loop compounded purchase order multipliers at machine speed during a routine ocean transit bottleneck, why system prompts are mathematically useless at bounding inventory lead times, and how to build deterministic runtime gateways to govern agent execution before irreversible API writes hit production systems of record. THE FAILURE MECHANICS Incomplete Telemetry Representation: Severe vessel congestion at the port delayed inbound shipping transit times by 14 days. Within the ERP ledger, warehouse inventory dropped below safety thresholds while incoming goods receipts flatlined at zero. Causal Misinterpretation: The planning agent possessed internal inventory visibility but lacked integration with ocean carrier AIS tracking or customs manifests. It interpreted the temporary supply starvation not as a shipping delay, but as an unprecedented consumer demand surge. The Compounding Multiplier Loop: Operating on a 72-hour batch cycle, the agent attempted to restore safety buffers by issuing a 2x replenishment order. With inbound goods still delayed at sea, the subsequent planning run triggered a 4x order, followed by an 8x emergency order on the third run. Physical Supply Shock: When the port cleared, 140,000 units arrived at a facility engineered for a 40,000-unit operating buffer. Because the commodity had a strict 60-day shelf life, 80,000 units expired on concrete before distribution, resulting in an irreversible $8M write-down. WHY IN-CONTEXT PROMPTS FAIL Prompt engineering cannot govern multi-echelon supply physics. Instructing an LLM to exercise caution during inventory fluctuations operates entirely inside the generative model token pass. A system prompt influences probability distributions over tokens; it does not enforce mathematical boundaries. When declining stock numbers flood the context window, the probability of generating emergency reorder tool calls overwhelms conversational guardrails. Most critically, prompts live inside the agent context. The loss occurs after the reasoning pass at the network execution boundary, where prompts have zero operational capability to intercept an emitted HTTP POST request. THE CLAIRE ARCHITECTURAL FIX To deploy autonomous planning agents into enterprise supply chains, decision generation must be decoupled from execution enforcement. At Claire, we engineer stateful runtime control towers that sit directly between the agent tool execution layer and core ERP backends like SAP S/4HANA and Oracle NetSuite: Stateful Causal State Machines: Intercept proposed reorder payloads and independently verify real-world logistics telemetry (carrier AIS tracking, customs status) before authorizing execution. Rate-of-Change Circuit Breakers: Implement strict mathematical invariants that evaluate order acceleration over sliding time windows ($dQ/dt$), halting runaway multiplier compounding instantly. Deterministic Invariant Solvers: Route high-capital exposures or anomalous order volumes to human operational queues with full telemetry diffs and reasoning traces before write authorization. ECOSYSTEM LINKS: Runtime Agent Governance: https://letsaskclaire.comConnect with Maya Lin on LinkedIn: https://www.linkedin.com/in/mayabuildsai/Follow on X: https://x.com/mayabuildsaiRead the Technical Post-Mortem on Medium: https://medium.com/@maya.chen.claire

About

Enterprise AI infrastructure explained by someone who has seen what breaks in production. Every episode breaks down one concept that matters when you are running AI at scale in regulated industries. LLMOps. Orchestration. Governance. Compliance. Observability. The stuff between the models and the business logic that nobody talks about until something goes wrong. New episodes three times a week.