Ai4
Deploying reliable AI in high-stakes finance requires stripping governance out of LLMs into deterministic application code and declarative rubrics that risk analysts can update in minutes.
AI-assisted summary of Building Reliable AI Agents in Production With Block Inc — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published on YouTube by the Ai4 channel on August 20, 2026, this technical presentation features Charishma Bhavani Koneru, a Senior Machine Learning Engineer at Block Inc. The talk explores the engineering patterns, governance frameworks, and continuous evaluation pipelines used to build and operate reliable autonomous AI agents for high-stakes financial operations at Cash App.
## TL;DR Koneru details how Cash App transitioned from monolithic batch pipelines to an event-driven Universal Runtime running over 50 specialized subagents across more than 30 fraud and risk typologies. The platform enables risk experts to deploy new investigation domains in minutes using declarative Markdown rubrics and YAML configurations without writing executable code. To ensure safety and regulatory compliance, Block implements a strict four-stage trust ladder from shadow mode to bounded autopilot, backed by a human override flywheel. The runtime relies on deterministic application code rather than LLM prompts for final governance, evaluated through a three-layer pipeline of deterministic graders, sampled LLM judges, and human trend discovery.
## Atmosphere & style The presentation is pragmatic, authoritative, and deeply rooted in production engineering realities rather than speculative AI hype. Koneru delivers a clear, disciplined walkthrough of high-stakes architecture, balancing systemic design patterns with the rigorous statistical gates required in regulated fintech. Listening to the talk feels like an architectural masterclass from the engineering front lines, emphasizing that long-term reliability comes from hard deterministic guardrails and continuous human feedback loops.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=4s) The primary engineering challenge in high-stakes production AI is no longer raw model capability, but architecting the deterministic governance layer and audit trail surrounding autonomous agents. - [03:04](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=184s) Cash App evolved its fraud architecture from monolithic batch LLM pipelines to an event-driven, multi-phase reasoning runtime coordinating 50+ specialized subagents across 30+ fraud typologies. - [03:04](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=184s) Domain experts deploy new investigation skills in minutes using declarative YAML configurations and Markdown rubrics with zero new lines of executable application code. - [05:49](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=349s) Specialist agents execute in parallel isolation without viewing one another's intermediate reasoning, preventing evidence cross-contamination before synthesis. - [05:49](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=349s) Routing between autonomous resolution, copilot review, and human escalation is executed deterministically in application code based on confidence thresholds rather than prompted within an LLM. - [08:31](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=511s) Modular multi-agent architectures outperform single massive-context prompts by providing regulatory provenance, hot-deployability, and isolated golden-dataset testing. - [12:01](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=721s) AI agents must earn autonomy through a four-stage Trust Ladder (Shadow Mode, Copilot Mode, Sampled Spot-Check, Bounded Autopilot) requiring over 95% human agreement over 30 to 60 days. - [12:01](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=721s) Autopilot operations remain intentionally bounded, leaving 40% to 50% of cases in human hands due to high financial exposure and edge-case ambiguity. - [14:22](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=862s) Human analyst overrides are captured with explicit structured reasoning, creating a flywheel where root-cause analysis continuously refines investigation rubrics. - [14:22](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=862s) Production quality is governed by a three-layer evaluation pipeline: 100% deterministic guards, a sampled LLM-as-a-judge layer that prefers abstaining over incorrect scoring, and human trend discovery. - [14:22](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=862s) Because LLM judges are backward-looking and limited to historical patterns, subject matter experts are required in the loop to identify and catalog novel, emerging fraud vectors. - [18:58](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=1138s) Teams deploying autonomous agents should establish deterministic evaluation graders and instrument rich tracing schemas before investing in complex LLM-as-a-judge pipelines.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=4s) Operating High-Stakes Autonomous AI at Cash App
At Cash App, Block Inc.'s consumer finance platform serving more than 50 million customers, machine learning systems handle critical, high-stakes decisions every day. These systems are far from conventional conversational chatbots; they are autonomous agents tasked with determining whether an account is fraudulent, whether a transaction dispute should be approved, or if user activity requires freezing funds. Because Cash App encompasses a broad product suite—spanning banking, peer-to-peer payments, investing in Bitcoin, and borrowing via cash advances—every surface area introduces complex fraud vectors and stringent regulatory obligations.
The fundamental engineering challenge in modern production AI is no longer model capability. Modern large language models like Claude or ChatGPT can readily perform complex investigations with reasonable competence out of the box, but "reasonable isn't good enough anymore" when a false decision can freeze an innocent user's bank account or violate financial compliance mandates. In regulated environments like fintech, healthcare, and legal services, teams must establish an unassailable audit trail showing regulators precisely which piece of evidence drove which specific decision. Consequently, the primary engineering effort lies in architecting the governance layer surrounding the autonomous agents.
```mermaid flowchart TD accTitle: High-Stakes Decision Surface at Cash App subgraph Products["Cash App Product Surfaces"] P1["P2P Payments"] P2["Banking & Cash Advances"] P3["Bitcoin & Investing"] end
subgraph Risks["Operational & Risk Vectors"] R1["Account Fraud"] R2["Dispute Claims"] R3["Sanctions & Compliance"] end
subgraph Decisions["Autonomous Agent Decisions"] D1["Freeze / Clear Account"] D2["Approve / Deny Claim"] D3["Regulatory Audit Trail"] end
Products --> Risks Risks --> Decisions ```
[03:04](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=184s) Production Scale and the Evolution from 2024 to 2026
Cash App's production deployment runs dozens of distinct investigation skills, orchestrates over 50 specialized subagents in parallel, and defends across more than 30 fraud and risk typologies ranging from scam reimbursements to identity verification and sanctions screening. The most notable operational benchmark is achieving zero lines of code per new domain. When a new fraud pattern emerges, subject matter experts author a Markdown rubric file that goes live in production within minutes, bypassing software deployments and engineering bottlenecks.
This current architecture represents a complete rebuild from the paradigm used in 2024. The legacy 2024 approach relied on scheduled batch pipelines, single monolithic LLM calls per claim, and rule-based aggregator systems where every new fraud domain demanded dedicated codebases and deployment cycles taking days or weeks. Because financial adversaries adapt within hours, the architecture was re-engineered in 2026 into a real-time, event-driven system featuring multi-phase agentic reasoning, extended thinking, and hard deterministic governance code.
- Scale in production: 50+ specialized parallel subagents handling 30+ fraud and risk typologies. - Zero engineering bottlenecks: New domain investigations deployed purely via Markdown rubric definitions. - Transition from 2024 to 2026: Shifted from scheduled batch pipelines and single LLM prompts to an event-driven, multi-phase reasoning runtime.
[05:49](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=349s) Multi-Agent Architecture and Evidence Synthesis
A typical operational case, such as an unauthorized dispute claim, appears straightforward on the surface but contains heavy ambiguity: device fingerprints may match historical records while geographical location does not, or claimants may themselves be adversarial bad actors filing first-party fraud claims. Furthermore, financial operations are constrained by strict regulatory SLA deadlines. When a case is ingested, the system fans out execution across bounded, single-responsibility specialist agents—such as payment behavior analysis, identity and profile verification, and account network linkages.
These specialist agents execute in parallel without viewing one another's intermediate reasoning, preventing cross-contamination of evidence. Each agent outputs a structured signal containing confidence scores and precise citations back to underlying source data. These signals feed directly into an evidence-grounded synthesis layer that compiles the findings before passing them to a deterministic routing engine. The router enforces strict operational paths based on confidence thresholds and regulatory flags:
```mermaid flowchart LR accTitle: Multi-Agent Parallel Investigation and Deterministic Routing subgraph Ingestion["Case Ingestion"] Case["Dispute / Event"] end
subgraph Specialists["Parallel Specialist Agents"] direction TB A1["Payment Behavior"] A2["Identity & Profile"] A3["Network Linkages"] end
subgraph Synthesis["Synthesis & Governance"] Syn["Evidence Synthesis Layer"] Router{"Deterministic Router"} end
subgraph Execution["Execution Paths"] direction TB E1["Autopilot (High Conf.)"] E2["Copilot (Med Conf. / Human Review)"] E3["Escalations (Low Conf. / Reg Flag)"] end
Case --> Specialists Specialists --> Syn Syn --> Router Router --> E1 Router --> E2 Router --> E3 ```
The core tenet of this setup is that routing decisions are executed deterministically in application code rather than prompted within an LLM: "LLM provides intelligence, code is the one which provides the governance."
[08:31](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=511s) The Universal Runtime and Declarative Investigation Rubrics
The cornerstone of the platform is the Universal Runtime. In this system, domain authors (risk investigators and operations specialists) interact exclusively with declarative YAML configurations and Markdown rubrics. The YAML files declare required data sources and workflow stages, while the Markdown files specify the investigation rubric and evaluation instructions. Skill authors write zero executable code.
```mermaid flowchart TD accTitle: Universal Runtime Layer Separation subgraph DomainLayer["Skill Author Layer (Domain Experts)"] YML["Declarative YAML Config\n(Data Sources & Workflows)"] MD["Markdown Investigation Rubric\n(Reasoning Guidelines)"] end
subgraph PlatformLayer["Universal Runtime Platform (ML / Software Engineers)"] Fetch["Pre-fetching & Data Cataloging"] Guards["Deterministic Guardrails"] Render["Structured Report Rendering & Audit Trails"] end
DomainLayer --> PlatformLayer ```
The underlying platform manages data pre-fetching, cataloging, deterministic guards, evaluation pipelines, and structured report rendering for regulatory compliance. This separation prevents domain experts and infrastructure engineers from touching each other's codebases. Relying on specialized agents rather than a single massive context window prompt (even with models supporting a million tokens) is essential for four concrete reasons:
1. **System Stability:** Monolithic prompts require complete reprompting and retraining whenever a single scam pattern evolves. 2. **Quality Verification:** Any query or logic change requires validation against a golden dataset of at least 30 SME-labeled cases. 3. **Regulatory Provenance:** Audits require pointing directly to the exact agent, exact data evidence, and exact reasoning path that produced an adverse action. 4. **Hot-Deployability:** Operational teams can modify an investigation rubric for an emerging scam on a Tuesday afternoon and deploy it live within minutes without engineering releases or downtime.
- Specialists emit over 100 structured signals across four distinct evidence domains. - Every signal carries an explicit value, a confidence metric, and an immutable source citation.
[12:01](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=721s) The Trust Ladder: From Shadow Mode to Autopilot
An AI agent does not begin with autonomous privileges; it must climb a structured trust ladder designed to prove safety rather than raw capability. Progression through each step requires strict quantitative validation:
```mermaid flowchart LR accTitle: Autonomous Trust Ladder S1["1. Shadow Mode\n(100% cases, 0% impact, runs weeks)"] --> S2["2. Copilot Mode\n(Recommendations, human signs off, runs months)"] S2 --> S3["3. Sampled Spot-Check\n(Agent acts, human samples, runs months)"] S3 --> S4["4. Bounded Autopilot\n(Restricted scopes, continuous monitoring)"] ```
Promotion to subsequent stages mandates meeting hard statistical gates: maintaining a greater than 95% agreement rate with human decisions over a sustained 30-to-60-day window, keeping false approval rates below risk-adjusted thresholds, showing zero drift in escalation distributions, passing regulatory reviews, and clearing statistical A/B testing. Even in mature deployment, full automation is intentionally restricted; between 40% and 50% of incoming cases remain handled by human specialists due to their complexity, novelty, or high financial exposure.
[14:22](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=862s) The Human Override Flywheel and Three-Layer Evaluation Pipeline
When an analyst in copilot mode overrides an agent's recommendation, the platform captures the decision alongside the explicit reason for the override. These overrides act as high-value, labeled training data that initiate a root-cause analysis workflow to diagnose missing data signals, prompt ambiguities, or emerging fraud patterns. Updating the corresponding Markdown rubric directly drives down subsequent override rates.
```mermaid flowchart LR accTitle: Human Override and Continuous Learning Flywheel AgentAct["Agent Recommendation"] --> Review["Human Analyst Review"] Review -->|Override Triggered| RCA["Root Cause Analysis\n(Missing signal / prompt gap / new pattern)"] RCA --> UpdateRubric["Update Markdown Rubric"] UpdateRubric --> ProdAgent["Enhanced Production Agent"] ProdAgent -->|Lower Override Rate| AgentAct ```
To evaluate agents rigorously in production, Cash App employs a three-layer pipeline:
```mermaid flowchart TD accTitle: Three-Layer Production Evaluation Engine Trace["Production Decision Trace"] --> Gate1{"Gate 1: Deterministic Graders\n(100% traces, fast, structural checks)"} Gate1 -->|Pass| Gate2{"Gate 2: LLM-as-a-Judge\n(10% sample, semantic checks)"} Gate1 -->|Hard Fail| Drop["Hard Rejection / Fail Trace"] Gate2 -->|Parse Error / Uncertainty| Abstain["Abstain (No score > Wrong score)"] Gate2 -->|Pass| Gate3{"Gate 3: Human Trend Discovery\n(SME review on novel patterns)"} Gate3 -->|Disagreement| GoldenSet["Append to Golden Set & Fraud Trend Log"] ```
- **Layer 1 (Deterministic Guardrails):** Evaluates 100% of traces cheaply and rapidly to intercept structural and format violations; acts as a hard failure gate with no LLM override allowed. - **Layer 2 (LLM-as-a-Judge):** Samples approximately 10% of traces for deeper semantic scrutiny; if parsing errors or uncertainty occur, the judge abstains because "no score is better than the wrong score." - **Layer 3 (Human Trend Discovery):** Solves the limitation that LLM judges are inherently backward-looking and only evaluate against historical data. Subject matter experts analyze novel edge cases, adjudicate disagreements, and feed emerging behaviors into a version-controlled, auditable Live Fraud Trend Log.
[18:58](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=1138s) Reliability Philosophy and Production Takeaways
Operating autonomous systems at financial scale necessitates an integrated, five-layer reliability stack where each level catches faults that bypass the others:
```mermaid flowchart TD accTitle: Five-Layer Reliability Stack L5["5. Business & Risk Metrics"] L4["4. Continuous Evaluation (3-Layer Pipeline)"] L3["3. Observability & Tracing"] L2["2. Deterministic Guardrails"] L1["1. Modular Architecture (Universal Runtime)"]
L1 --> L2 L2 --> L3 L3 --> L4 L4 --> L5 ```
Live monitoring tracks error rates and escalation frequencies against historical baselines, triggering automated investigation and immediate rollbacks if anomalies arise. Reflecting on lessons learned building these frameworks, successful autonomous deployments rely on key architectural practices:
- Establish deterministic evaluation graders first before investing in complex LLM judges. - Instrument rich tracing schemas and evaluation data collection from month one prior to launching production systems. - Capture structured reasoning whenever human analysts disagree with an agent to fuel the retraining loop. - Treat emerging fraud trends as structured observations rather than unverified programmatic directives. - Maintain a strict boundary where domain experts define declarative rubrics while infrastructure teams maintain runtime execution.
## Notable quotes > [00:04](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=4s) reasonable isn't good enough anymore — Charishma Bhavani Koneru
> [05:49](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=349s) LLM provides intelligence, code is the one which provides the governance. — Charishma Bhavani Koneru
> [14:22](https://www.youtube.com/watch?v=Vo6NGRCxPWU&t=862s) no score is better than the wrong score — Charishma Bhavani Koneru
## Mentioned Ai4, Bitcoin, Block Inc, Cash App, Charishma Bhavani Koneru, ChatGPT, Claude, Markdown, YAML
## Video description Charishma Bhavani Koneru - Senior Machine Learning Engineer, Block Inc
Building an AI agent is easier than building one people trust in production. In this talk, I'll share lessons from building and operating production AI copilots and autopilot systems for high-volume financial operations using specialized AI agents, deterministic decision logic, and continuous feedback loops. I'll explain how we earned trust through a copilot-to-autopilot rollout strategy, subject matter expert validation, analyst override feedback, and continuous LLM evaluations (LLM-as-Judge) that monitor quality and detect regressions in production. You'll leave with practical design patterns for building reliable AI agents, establishing robust evaluation pipelines, and safely deploying AI systems in regulated, high-stakes environments.
[Source](https://www.youtube.com/watch?v=Vo6NGRCxPWU)