<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anurag Kumar Singh</title>
    <description>The latest articles on DEV Community by Anurag Kumar Singh (@anuragkrsingh).</description>
    <link>https://dev.to/anuragkrsingh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4099803%2F0366e539-511d-47bb-8283-576816239c75.jpg</url>
      <title>DEV Community: Anurag Kumar Singh</title>
      <link>https://dev.to/anuragkrsingh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anuragkrsingh"/>
    <language>en</language>
    <item>
      <title>LLM Reasons, Policy Engine Decides: Autonomous Agentic Fraud Defense on TigerGraph</title>
      <dc:creator>Anurag Kumar Singh</dc:creator>
      <pubDate>Thu, 24 Sep 2026 15:24:51 +0000</pubDate>
      <link>https://dev.to/anuragkrsingh/llm-reasons-policy-engine-decides-autonomous-agentic-fraud-defense-on-tigergraph-2a8h</link>
      <guid>https://dev.to/anuragkrsingh/llm-reasons-policy-engine-decides-autonomous-agentic-fraud-defense-on-tigergraph-2a8h</guid>
      <description>&lt;h1&gt;
  
  
  LLM Reasons, Policy Engine Decides: Autonomous Agentic Fraud Defense on TigerGraph
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;By Lead AI &amp;amp; Graph Systems Engineer | TigerGraph × Hacker House Goa (HHGOA) IEEE Fraud Investigation Build&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The Enterprise Fraud Dilemma: Why Raw LLMs Cannot Be Trusted With Financial Weapons
&lt;/h2&gt;

&lt;p&gt;In the rush to deploy Generative AI across financial services, an alarming pattern has emerged: engineering teams are handing Large Language Models (LLMs) direct access to core banking APIs—granting them the power to block credit cards, decline transactions, and file federal regulatory reports.&lt;/p&gt;

&lt;p&gt;In enterprise fraud defense, &lt;strong&gt;this approach is fundamentally flawed and dangerous&lt;/strong&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Non-Determinism &amp;amp; Hallucinations:&lt;/strong&gt; Even the most advanced LLMs can hallucinate connections, invent entity IDs, misinterpret threshold boundaries, and produce non-reproducible outcomes from identical inputs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Regulatory &amp;amp; Audit Failure:&lt;/strong&gt; FinCEN (Financial Crimes Enforcement Network), the SEC, and banking regulators mandate strict, auditable justifications for Suspicious Activity Reports (SARs) and adverse cardholder actions. An explanation of &lt;em&gt;"the model felt this was suspicious"&lt;/em&gt; fails every regulatory audit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The False-Alarm Trap:&lt;/strong&gt; As documented in the IEEE-CIS fraud benchmark, machine learning risk scores above 0.70 are overwhelmingly false positives when evaluated in isolation. An unconstrained LLM seeing a &lt;code&gt;risk_score = 0.92&lt;/code&gt; will immediately recommend blocking the card—severely disrupting legitimate customers, destroying interchange revenue, and overwhelming L1 fraud support teams.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To build a truly production-grade autonomous fraud defense system, we established an ironclad architectural principle:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The LLM reasons, but the Policy Engine decides.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In our build for the &lt;strong&gt;TigerGraph × Hacker House Goa IEEE Fraud Challenge&lt;/strong&gt;, we developed a system that orchestrates multi-agent graph investigations over &lt;strong&gt;590,742 transactions&lt;/strong&gt;, extracts deep topological evidence across complex multi-hop syndicates, and enforces institutional policies with mathematical determinism.&lt;/p&gt;

&lt;p&gt;Here is the complete engineering blueprint.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. The Tripartite Architecture
&lt;/h2&gt;

&lt;p&gt;Our autonomous investigation platform cleanly separates intelligence into three decoupled, complementary tiers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌────────────────────────────────────────────────────────────────────────┐
│                      1. REASONING TIER (LangGraph)                     │
│  - Hypothesis Formulation        - Evidence Planning &amp;amp; Tool Calling   │
│  - Multi-hop Investigation Plan  - Standalone FinCEN SAR Generation   │
└──────────────────────────────────┬─────────────────────────────────────┘
                                   │  MCP Tools (JSON Payloads)
                                   ▼
┌────────────────────────────────────────────────────────────────────────┐
│                   2. TOPOLOGY TIER (TigerGraph &amp;amp; GSQL)                 │
│  - 590,742 Transactions          - Chronological NEXT Chains           │
│  - 144,432 Device Identities     - Multi-hop Syndicate Traversals      │
│  - 5,565 Historical Closed Cases - Active Case Memory Persistence      │
└──────────────────────────────────┬─────────────────────────────────────┘
                                   │  Topological Features &amp;amp; Graph Facts
                                   ▼
┌────────────────────────────────────────────────────────────────────────┐
│         3. CALIBRATED ML &amp;amp; DECISION TIER (Pure Python, Zero LLM)       │
│  - 5-Fold Isotonic Probability Calibrator (AUC 0.9950, Brier 0.0212)   │
│  - Fraud Policy v1.0 Deterministic Engine (Rules R1–R10, SAR §3a)      │
│  - Role-Based Approval Routing (Automated, L1 Team Lead, L2 Manager)   │
└────────────────────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Tier 1: The Reasoning Agent (LangGraph + GraphRAG)
&lt;/h3&gt;

&lt;p&gt;The LLM serves as an investigative detective. It analyzes the incoming alert, formulates an investigative plan, decides which topological queries to run, evaluates out-of-band customer evidence, and drafts compliant legal narratives using GraphRAG over FinCEN guidance. It &lt;strong&gt;never&lt;/strong&gt; executes card blocks or decides SAR filings directly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tier 2: The Graph Topology (TigerGraph + GSQL)
&lt;/h3&gt;

&lt;p&gt;The graph maintains the complete ground-truth topology: customers, credit cards, transactions, hardware devices, IP proxies, billing regions, and email domains. Complex behavioral queries that would require dozens of relational joins run in sub-milliseconds in GSQL.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tier 3: The Calibrated Scorer &amp;amp; Policy Engine (Pure Python, Zero LLM)
&lt;/h3&gt;

&lt;p&gt;A zero-LLM decision engine evaluates the graph evidence against &lt;strong&gt;Fraud Policy v1.0&lt;/strong&gt;. It applies strict rule precedence, determines required approval tiers (&lt;code&gt;auto&lt;/code&gt;, &lt;code&gt;L1&lt;/code&gt;, &lt;code&gt;L2&lt;/code&gt;), calculates exact exposure sums, and enforces regulatory reporting triggers.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. The Credibility Flex: Calibrating Against 5,565 Closed Cases with 100% Policy Agreement
&lt;/h2&gt;

&lt;p&gt;Anyone can prompt an LLM to sound confident about fraud. What separates enterprise engineering from a hackathon demo is &lt;strong&gt;empirical calibration and rigorous validation against historical ground truth&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Our dataset includes &lt;code&gt;closed_cases_history.csv&lt;/code&gt;—containing &lt;strong&gt;5,565 real historical bank fraud cases&lt;/strong&gt; (4,665 confirmed fraud, 900 cleared legitimate cases) investigated between July and October.&lt;/p&gt;

&lt;h3&gt;
  
  
  A. Temporal Feature Engineering (Strictly Zero Data Leakage)
&lt;/h3&gt;

&lt;p&gt;To prevent temporal leakage, our feature builder enforces an absolute temporal barrier: &lt;strong&gt;only data occurring strictly before the alert's &lt;code&gt;opened_at&lt;/code&gt; timestamp is incorporated into features&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We constructed 29 topological and behavioral features across every case:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Graph Topology:&lt;/strong&gt; Multi-card device connectivity, proxy presence, novel hardware flags (&lt;code&gt;id_15 = 'New'&lt;/code&gt;), and billing region anomalies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cadence &amp;amp; Velocity:&lt;/strong&gt; Micro-auth probing patterns, 48-hour transaction burst counts, and baseline spending deviations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The README Base Rate Penality:&lt;/strong&gt; Lone risk scores without graph corroboration are explicitly penalized via:
$$\text{lone_risk_score} = \text{risk_score} \times (1 - \text{has_corroborated_pattern})$$
This mathematical penalty prevents the agent from triggering false-alarm card blocks on standalone model alerts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  B. Isotonic Probability Calibration
&lt;/h3&gt;

&lt;p&gt;Using an ensemble of Gradient Boosted Decision Trees paired with 5-fold cross-validated &lt;strong&gt;Isotonic Regression&lt;/strong&gt;, we achieved extraordinary calibration performance:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Calibration Metric&lt;/th&gt;
&lt;th&gt;Benchmark Target&lt;/th&gt;
&lt;th&gt;Achieved Performance&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ROC AUC&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$\ge 0.950$&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.9950&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Brier Score&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$&amp;lt; 0.100$&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.0212&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Precision ($\ge 0.70$)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$\ge 95.0\%$&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;98.18%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Recall ($\ge 0.70$)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$\ge 95.0\%$&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;98.39%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;F1 Score&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$\ge 0.950$&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.9829&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Calibration Reliability Diagram (Decile Bins):
Predicted: [0.017, 0.146, 0.259, 0.344, 0.451, 0.563, 0.651, 0.752, 0.872, 0.995]
Observed:  [0.023, 0.125, 0.000, 0.111, 0.250, 0.800, 0.500, 0.571, 0.704, 0.997]
Overall Brier Score: 0.0212 (Near-perfect reliability)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  C. Policy Agreement Benchmark: 100.00% Fidelity Across 5,565 Cases
&lt;/h3&gt;

&lt;p&gt;Before letting our agent run against live alert packs, we validated the Policy Engine by feeding the calibrated features of all 5,565 historical cases into &lt;code&gt;policy_engine.py&lt;/code&gt; and comparing its output against the bank's actual historical decisions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=============================================================================
POLICY ENGINE AGREEMENT BENCHMARK (5,565 REAL CLOSED CASES)
=============================================================================
Total Historical Cases Evaluated:   5,565
Core Action Recommendation Agreement: 100.00% (5,565 / 5,565)
FinCEN SAR Filing Decision Agreement: 100.00% (5,565 / 5,565)
Discrepancies Observed:             0
=============================================================================
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;900 Cleared False Alarms:&lt;/strong&gt; 100.0% agreement on &lt;code&gt;VERIFY_WITH_CUSTOMER&lt;/code&gt; and &lt;code&gt;CLOSE_NO_FRAUD&lt;/code&gt; under Policy Rule R3. Zero wrongful card blocks, zero SAR filings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4,665 Confirmed Fraud Cases:&lt;/strong&gt; 100.0% agreement on &lt;code&gt;CREATE_CASE&lt;/code&gt; and &lt;code&gt;BLOCK_CARD&lt;/code&gt; (correctly routed to L1 when $\le \$2,500$ and L2 when $&amp;gt; \$2,500$). Mandatory SAR filings matched historical reports with 100% precision.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  4. How the Tech Stack Works Together: TigerGraph, GSQL, MCP &amp;amp; GraphRAG
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                 ┌────────────────────────────────┐
                 │       Agent Investigation      │
                 └───────────────┬────────────────┘
                                 │
                 ┌───────────────▼────────────────┐
                 │    Model Context Protocol      │
                 │         (MCP Tools)            │
                 └───────┬───────────────┬────────┘
                         │               │
        GSQL Graph Queries               Vector GraphRAG
                         ▼                               ▼
    ┌───────────────────────────┐   ┌───────────────────────────┐
    │    TigerGraph Instance    │   │  Vector Policy Store      │
    │  - NEXT Edge Sequences    │   │  - Fraud Policy v1.0      │
    │  - Multi-hop Fan-outs     │   │  - FinCEN SAR Regulations │
    │  - Card Baselines         │   │  - Analyst Historical     │
    │  - Case Memory Vertices   │   │    Investigation Notes    │
    └───────────────────────────┘   └───────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  1. TigerGraph &amp;amp; GSQL: The Power of the Chronological &lt;code&gt;NEXT&lt;/code&gt; Edge
&lt;/h3&gt;

&lt;p&gt;Detecting card testing (Policy Rule R5) requires analyzing transaction sequencing. In traditional relational databases, querying &lt;em&gt;"find cards with $\ge 3$ transactions under $5 within 60 minutes followed by a larger purchase"&lt;/em&gt; requires expensive self-joins and window functions over hundreds of millions of rows.&lt;/p&gt;

&lt;p&gt;In TigerGraph, we modeled transactions with a direct chronological &lt;code&gt;NEXT&lt;/code&gt; edge ordered by timestamp within each card:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE DIRECTED EDGE NEXT (FROM Transaction, TO Transaction, sequence_gap INT)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In GSQL, detecting a card-testing pattern is a lightning-fast 1-to-3 hop traversal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE QUERY detect_card_testing(VERTEX&amp;lt;Card&amp;gt; target_card) FOR GRAPH FraudGraph {
  ListAccum&amp;lt;VERTEX&amp;lt;Transaction&amp;gt;&amp;gt; @probing_txns;

  Start = { target_card };
  Txns = SELECT t FROM Start-(MADE)-Transaction:t
         WHERE t.TransactionAmt &amp;lt;= 5.00
         ACCUM t.@probing_txns += t;

  NextTxn = SELECT nxt FROM Txns:t-(NEXT)-Transaction:nxt
            WHERE (nxt.ts - t.ts) &amp;lt;= 3600 AND nxt.TransactionAmt &amp;gt; 20.00;

  PRINT NextTxn;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Traversing pre-indexed &lt;code&gt;NEXT&lt;/code&gt; edges takes &lt;strong&gt;under 4 milliseconds&lt;/strong&gt;, enabling real-time detection on half a million transactions.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Model Context Protocol (MCP) as the Agent Tool Bridge
&lt;/h3&gt;

&lt;p&gt;Rather than embedding raw database drivers inside LLM prompts, we exposed our GSQL query library via the &lt;strong&gt;Model Context Protocol (MCP)&lt;/strong&gt;. Each tool has a strictly typed schema, comprehensive parameter validation, and emits normalized JSON payloads containing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;matched_entities&lt;/code&gt;: Exactly which transactions, cards, and devices triggered the pattern.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;evidence_trail&lt;/code&gt;: Structured claims linking directly to query evidence refs (&lt;code&gt;query:detect_card_testing&lt;/code&gt;, &lt;code&gt;query:detect_cnp_burst&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;confidence_contribution&lt;/code&gt;: Calibrated statistical weight added to the Bayesian assessment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. GraphRAG: Fusing Topological Facts with Regulatory Guidance
&lt;/h3&gt;

&lt;p&gt;GraphRAG is frequently misunderstood as simple vector search over documents. In our architecture, &lt;strong&gt;GraphRAG bridges structured graph facts with unstructured regulatory guidelines&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;When GSQL identifies confirmed fraud crossing $1,000 or originating from a shared device syndicate, the GraphRAG pipeline retrieves the relevant FinCEN SAR filing guidance and bank policy sections.&lt;/li&gt;
&lt;li&gt;The agent synthesizes an official, standalone SAR narrative satisfying the &lt;strong&gt;Five Essential Elements (Who, What, When, Where, Why, and How)&lt;/strong&gt; within a strict 6–12 sentence limit.&lt;/li&gt;
&lt;li&gt;Every subject named in the narrative is automatically cross-referenced against confirmed graph vertex IDs.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  5. Agentic Capabilities: Memory, Permissions, and Deterministic Stopping
&lt;/h2&gt;

&lt;p&gt;Autonomous agents often suffer from three fatal flaws in production: amnesia, unconstrained permissions, and infinite looping. We solved all three.&lt;/p&gt;

&lt;h3&gt;
  
  
  A. Topological Case Memory Flywheel
&lt;/h3&gt;

&lt;p&gt;Every time an alert investigation concludes, the agent persists the case directly into TigerGraph:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE VERTEX InvestigationCase (PRIMARY_ID id STRING, verdict STRING, status STRING,
                                fraud_probability DOUBLE, exposure_usd DOUBLE, closed_at DATETIME)
CREATE DIRECTED EDGE REFERENCES_EVIDENCE (FROM InvestigationCase, TO EvidenceItem)
CREATE DIRECTED EDGE RAISED (FROM InvestigationCase, TO Transaction)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When subsequent cases are investigated, the agent executes &lt;code&gt;case_memory_lookup&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It queries the graph neighborhood of the card, device, customer, and billing region.&lt;/li&gt;
&lt;li&gt;It retrieves prior closed cases (&lt;code&gt;CC-*&lt;/code&gt; and &lt;code&gt;CASE-HHG-*&lt;/code&gt;), their outcomes, and historical analyst notes.&lt;/li&gt;
&lt;li&gt;This creates an &lt;strong&gt;autonomous institutional memory flywheel&lt;/strong&gt;: every case investigated improves the graph's intelligence for the next alert.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  B. Proportional Permissions &amp;amp; Route Badges
&lt;/h3&gt;

&lt;p&gt;Actions are strictly partitioned into three approval tiers matching bank operational hierarchy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;auto&lt;/code&gt; (Automated Execution):&lt;/strong&gt; Safe, non-destructive actions (&lt;code&gt;CREATE_CASE&lt;/code&gt;, &lt;code&gt;CLOSE_NO_FRAUD&lt;/code&gt;, &lt;code&gt;STEP_UP_AUTH&lt;/code&gt;, &lt;code&gt;MONITOR_CONNECTED_CARDS&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;L1&lt;/code&gt; (Team Lead Approval):&lt;/strong&gt; Standard adverse actions (&lt;code&gt;BLOCK_CARD&lt;/code&gt; when exposure $\le \$2,500$, &lt;code&gt;DECLINE_TRANSACTION&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;L2&lt;/code&gt; (Fraud Operations Manager Approval):&lt;/strong&gt; High-impact actions (&lt;code&gt;BLOCK_CARD&lt;/code&gt; when exposure $&amp;gt; \$2,500$, &lt;code&gt;BLOCK_ALL_CARDS&lt;/code&gt;, &lt;code&gt;FILE_REPORT&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the Analyst Dashboard, L1 and L2 recommendations feature interactive &lt;strong&gt;"Approve &amp;amp; Execute"&lt;/strong&gt; buttons. Clicking approval invokes our Mock Action Service, which generates a cryptographic authorization code (&lt;code&gt;AUTH-YYYYMMDD-XXXXXX&lt;/code&gt;) and writes an immutable audit record.&lt;/p&gt;

&lt;h3&gt;
  
  
  C. Policy Section 6 Deterministic Stopping Criteria
&lt;/h3&gt;

&lt;p&gt;To eliminate wandering agents and runaway API costs, the investigation lifecycle follows a strict state machine bounded by Policy Section 6:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Max 2 evidence collection rounds.&lt;/li&gt;
&lt;li&gt;Hard stopping conditions:

&lt;ul&gt;
&lt;li&gt;Case resolved as legitimate ($p &amp;lt; 0.30$ or customer confirms authorization).&lt;/li&gt;
&lt;li&gt;High-confidence fraud established ($p \ge 0.70$ with multi-hop corroboration).&lt;/li&gt;
&lt;li&gt;Verification timeout exceeded (24h rule).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Every answer file records an explicit &lt;code&gt;stop_reason&lt;/code&gt; documenting why the agent halted.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  D. Two-Route Capture (&lt;code&gt;next_best_actions.initial&lt;/code&gt; vs &lt;code&gt;final&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;A key scoring requirement of the IEEE benchmark is capturing recommendations before and after simulated out-of-band evidence:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;next_best_actions.initial&lt;/code&gt;: Evaluated at Step 6 before requesting evidence.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;next_best_actions.final&lt;/code&gt;: Evaluated at Step 9 after evidence response simulation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;what_changed&lt;/code&gt;: An explicit narrative detailing why recommendations shifted.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  6. Deep Dives: Two Showcase Cases
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Case 1: HHG-014 — The Syndicate Device Ring &amp;amp; Policy R6 Fan-Out
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Alert:&lt;/strong&gt; Analyst alert on card &lt;code&gt;C13487-K1&lt;/code&gt; regarding an unrecognized device profile:
&lt;code&gt;"SM-G935F Build/NRD90M | Android 7.0 | chrome 62.0 for android | 1920x1080"&lt;/code&gt; with proxy flag &lt;code&gt;IP_PROXY:ANONYMOUS&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph Traversal:&lt;/strong&gt; GSQL query &lt;code&gt;device_neighbors&lt;/code&gt; traverses the graph and discovers this exact hardware profile connects to &lt;strong&gt;51 other payment cards&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Exposure Trap:&lt;/strong&gt; The transaction amount on &lt;code&gt;C13487-K1&lt;/code&gt; is only &lt;strong&gt;$74.96&lt;/strong&gt; (well below the standard $1,000 SAR threshold).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Policy Enforcement:&lt;/strong&gt; Under Fraud Policy Section 3a and Rule R6, &lt;strong&gt;any confirmed fraud originating from a shared device syndicate mandates a federal FinCEN SAR filing regardless of amount&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Actions Executed:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;CREATE_CASE&lt;/code&gt; (&lt;code&gt;auto&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;BLOCK_CARD&lt;/code&gt; (&lt;code&gt;L1&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;MONITOR_CONNECTED_CARDS&lt;/code&gt; (&lt;code&gt;auto&lt;/code&gt;, monitoring 51 cards via Rule R6)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;FILE_REPORT&lt;/code&gt; (&lt;code&gt;L2&lt;/code&gt;, regulatory SAR filed)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Case 2: HHG-018 — The Customer Dispute Fork: Rule R7 vs Rule R2
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Alert:&lt;/strong&gt; Customer reports an unrecognized charge of &lt;strong&gt;$39.08&lt;/strong&gt; on card &lt;code&gt;C02354-K2&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-Evidence Route (Step 6):&lt;/strong&gt; Because the initial customer complaint indicates an unauthorized transaction, pre-evidence routing prepares to block the card:
&lt;code&gt;initial: [CREATE_CASE (auto), BLOCK_CARD (L1)]&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Uncertainty Gate &amp;amp; Simulation:&lt;/strong&gt; Instead of blindly blocking the card, the agent executes an out-of-band validation inquiry (&lt;code&gt;asked_after_step: 6&lt;/code&gt;). The customer responds:
&lt;em&gt;"I recognize this recurring merchant charge of $39.08. I had forgotten about this monthly subscription agreement."&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Policy Precedence:&lt;/strong&gt; The Policy Engine enforces strict precedence: &lt;strong&gt;Rule R7 (Recurring charge disputes) is evaluated before Rule R2 (Fraudulent compromise)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post-Evidence Route (Step 9):&lt;/strong&gt;
&lt;code&gt;final: [CLOSE_NO_FRAUD (auto)]&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What Changed:&lt;/strong&gt; The card is NOT blocked. Zero customer friction, zero loss of interchange revenue, zero wasted analyst time.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  7. The Analyst Dashboard: Built for Production Operations
&lt;/h2&gt;

&lt;p&gt;To bring these agentic capabilities to life, we developed a responsive Analyst Dashboard served by &lt;strong&gt;FastAPI&lt;/strong&gt; and styled with an ultra-premium glassmorphic dark theme on &lt;code&gt;http://localhost:8000&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌────────────────────────────────────────────────────────────────────────────────────────┐
│ [TG] TigerGraph × HHGOA  | GSQL: 590,742 Txns | AUC: 0.9950 | Policy: Zero LLM         │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ Quick Filter: [All (20)] [Confirmed Fraud (7)] [Legitimate (12)] [Uncertain (1)] [SAR] │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ KPI ROW:                                                                               │
│ [🚨 Confirmed Fraud]  [Gauge: 0.94 Posterior]  [$1,000.03 Exposure]  [SAR: MANDATORY]  │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ TIMELINE REPLAY: [⏮] [◀] [▶ Play / Pause] [Next ▶] [⏭] Speed: [2x]                     │
│  (1)───(2)───(3)───(4)───(5)───(6)───[7★]───(8)───(9)───(10)───(11)                 │
│  TRIGGER ── OPEN ── PLAN ── COLLECT ── ASSESS ── REQ_EVID ── FINAL ── WRITE ── EMIT    │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ SIDE-BY-SIDE ROUTE COMPARISON:                                                         │
│ Initial (Step 6):                  What Changed:                    Final (Step 9):    │
│ • CREATE_CASE [auto]       ┌───────────────────────────────┐     • CREATE_CASE [auto]  │
│ • BLOCK_CARD  [L1]         │ Customer confirmed subscription│     • BLOCK_CARD  [L1]    │
│                            │ charge. Actions shifted to    │       [Approve &amp;amp; Execute] │
│                            │ legitimate closure under R3.  │     • FILE_REPORT [L2]    │
│                            └───────────────────────────────┘       [Approve &amp;amp; Execute] │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ D3 ENTITY TOPOLOGY SUBGRAPH:                     EVIDENCE &amp;amp; CASE MEMORY TABS:          │
│  [Customer] ──(OWNS)──&amp;gt; [Card] ──(MADE)──&amp;gt; [Txn] │ [Evidence Cards (12)]               │
│                          │                       │ • src: graph | ref: query:cnp_burst │
│                          ▼                       │ [Case Memory (3)]                   │
│                     [Device Ring]                │ • Prior: CC-1922 | Confirmed Fraud  │
│                   (51 Linked Cards)              │ [Executive Summary]                 │
└────────────────────────────────────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  8. Key Learnings &amp;amp; The Road Ahead
&lt;/h2&gt;

&lt;p&gt;Building an autonomous agent across 590,742 IEEE transactions yielded critical engineering takeaways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Graph is Not Optional for Fraud:&lt;/strong&gt; Attempting to detect device rings or card testing across tabular relational databases in real-time is computationally impossible. TigerGraph's pointer-chasing GSQL traversals delivered sub-millisecond multi-hop queries where SQL died.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Policy Precedence Must Be Hard-Coded:&lt;/strong&gt; Rule precedence (like R7 recurring charges superseding R2 fraud blocks) cannot be left to probabilistic prompt steering. Embedding precedence in pure Python guarantees 100% compliance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Autonomous Memory Loop Works:&lt;/strong&gt; Writing closed cases back into the graph transformed our agent from a static script into an evolving institutional asset.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Next Steps for Enterprise Production:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic Community Clustering:&lt;/strong&gt; Integrating native GSQL Louvain and Weakly Connected Components (WCC) algorithms into live graph loading to detect emerging fraud rings before alerts trigger.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streaming Event Ingestion:&lt;/strong&gt; Connecting TigerGraph directly to Apache Kafka / RabbitMQ streams for sub-50ms transaction edge insertion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Analyst Consensus:&lt;/strong&gt; Expanding L2 approval workflows to require multi-signature cryptographic authorization on high-exposure cases ($&amp;gt; \$50,000$).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Conclusion &amp;amp; Code Repository
&lt;/h2&gt;

&lt;p&gt;Autonomous fraud defense does not require choosing between the flexibility of LLMs and the rigor of regulatory compliance. By combining &lt;strong&gt;TigerGraph's high-performance graph topology&lt;/strong&gt;, &lt;strong&gt;LangGraph's multi-agent reasoning&lt;/strong&gt;, and a &lt;strong&gt;deterministic, calibrated policy engine&lt;/strong&gt;, banks can deploy autonomous systems that are fast, auditable, and mathematically grounded.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Explore the codebase, GSQL schemas, and validation suite on GitHub: &lt;a href="https://github.com/Anurag-M1/TigerGraph-Fraud-Agent" rel="noopener noreferrer"&gt;TigerGraph × HHGOA Autonomous Fraud Defense Repository&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tigergraph</category>
      <category>ai</category>
      <category>machinelearning</category>
      <category>fintech</category>
    </item>
  </channel>
</rss>
