<?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: TANMAY SAYARE</title>
    <description>The latest articles on DEV Community by TANMAY SAYARE (@tanmay_sayare_c95b00a974e).</description>
    <link>https://dev.to/tanmay_sayare_c95b00a974e</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%2F2207954%2Ff723aa92-c4bf-4424-8d27-17f18c649a45.jpg</url>
      <title>DEV Community: TANMAY SAYARE</title>
      <link>https://dev.to/tanmay_sayare_c95b00a974e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tanmay_sayare_c95b00a974e"/>
    <language>en</language>
    <item>
      <title>JEVelric : An Agentic Fraud Investigation System on TigerGraph</title>
      <dc:creator>TANMAY SAYARE</dc:creator>
      <pubDate>Thu, 24 Sep 2026 22:47:45 +0000</pubDate>
      <link>https://dev.to/tanmay_sayare_c95b00a974e/jevelric-an-agentic-fraud-investigation-system-on-tigergraph-3kbm</link>
      <guid>https://dev.to/tanmay_sayare_c95b00a974e/jevelric-an-agentic-fraud-investigation-system-on-tigergraph-3kbm</guid>
      <description>&lt;h2&gt;
  
  
  What we built
&lt;/h2&gt;

&lt;p&gt;JEVelric is an AI agent that investigates card fraud the way a human&lt;br&gt;
fraud analyst would: it takes a trigger — a risk score, a customer&lt;br&gt;
complaint, or an analyst request — pulls the actual evidence from a&lt;br&gt;
knowledge graph, weighs how confident it can be, asks for more evidence&lt;br&gt;
when it can't be confident yet, and only then recommends an action —&lt;br&gt;
citing exactly which policy rule justifies it.&lt;/p&gt;

&lt;p&gt;Built for TigerGraph's HHGOA Agentic Fraud Investigation hackathon, on&lt;br&gt;
the IEEE-CIS/Vesta dataset restructured as a fraud-investigation&lt;br&gt;
benchmark: ~590,000 real card transactions, device/identity signals,&lt;br&gt;
closed historical cases, and 20 held-out benchmark cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;Trigger → TigerGraph evidence retrieval (6 GSQL queries: transaction&lt;br&gt;
window, device neighbors, region cluster, email cluster, closed-case&lt;br&gt;
similarity, customer history) → GraphRAG context assembly → LLM signal&lt;br&gt;
assessment → a &lt;strong&gt;deterministic policy engine&lt;/strong&gt; (10 explicit rules, R1–R10)&lt;br&gt;
→ stop-or-gather-more-evidence decision → SAR filing check → case&lt;br&gt;
written back to the graph → schema-validated answer file.&lt;/p&gt;

&lt;p&gt;The one architectural decision we'd underline: &lt;strong&gt;the LLM never picks an&lt;br&gt;
action.&lt;/strong&gt; It extracts signals — fraud probability, pattern match,&lt;br&gt;
evidence sufficiency — and a plain, auditable, unit-tested policy engine&lt;br&gt;
looks those signals up against a fixed rule table to decide what&lt;br&gt;
happens. Every recommended action carries the exact rule number that&lt;br&gt;
produced it. That split exists because a fraud policy needs to be&lt;br&gt;
explainable to a regulator, not just plausible to an LLM.&lt;/p&gt;

&lt;h2&gt;
  
  
  How TigerGraph is used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Graph database&lt;/strong&gt;: the actual relationship structure — cardholders,
cards, transactions, device profiles, email domains, billing regions,
and closed cases — connected as vertices and edges, not flattened rows.
This is what lets a single query answer "does this card share a device
with any other card in the last week" as a graph traversal instead of
a full-table scan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TigerGraph MCP&lt;/strong&gt;: the agent's actual tool interface into the graph —
schema creation, the six evidence-retrieval queries, and writing each
completed investigation back as a &lt;code&gt;Case&lt;/code&gt; vertex (case memory) all go
through MCP, not a hand-rolled REST client.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Case memory&lt;/strong&gt;: every resolved investigation is written back to the
graph, connected to the transactions, cards, and closed cases it
touched — so the next investigation involving a related entity has
that history available.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Agentic capabilities
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Uncertainty-gated evidence gathering.&lt;/strong&gt; When the evidence is
ambiguous, the agent doesn't guess — it requests specific evidence
(customer verification, step-up authentication, analyst input) and
re-assesses once it's available, changing its own recommendation if
the new evidence warrants it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Policy-governed, approval-routed actions.&lt;/strong&gt; Every action carries an
approval route — auto, team-lead, or fraud-manager — matching the
actual operational reality that a fraud system doesn't get to
unilaterally freeze someone's account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A live investigation endpoint.&lt;/strong&gt; Beyond the 20 batch cases, JEVelric
exposes its orchestrator as both a REST endpoint and an MCP tool
(&lt;code&gt;investigate_case&lt;/code&gt;), so a new, previously unseen case can be
submitted and investigated live, not just replayed from a fixed file.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What we learned
&lt;/h2&gt;

&lt;p&gt;Most of the real difficulty wasn't the agent logic — it was making the&lt;br&gt;
graph integration trustworthy. A few honest specifics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TigerGraph MCP's file-loading tool expects a path &lt;em&gt;on the TigerGraph
server&lt;/em&gt;, not the machine running your agent — passing a local path
fails silently with zero rows loaded and no error, which cost real
debugging time until we traced it in the tool's own source.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pyTigerGraph&lt;/code&gt;'s header-handling for programmatic loading jobs
disagreed with what we assumed from the GSQL docs — headers need to be
stripped for one loading path and kept for another, and getting this
wrong silently loads your header row as a data record.&lt;/li&gt;
&lt;li&gt;We evaluated an early-access GraphRAG/vector-retrieval MCP tool
(&lt;code&gt;grip-protocol&lt;/code&gt;) as an add-on for the retrieval layer. Its own status
check quietly returned a fake demo-graph response instead of connecting
to our real graph — good evidence for why we kept our own
TigerGraph-MCP path as the default rather than trusting a 3-day-old,
single-maintainer package with the benchmark.&lt;/li&gt;
&lt;li&gt;Free-tier LLM rate limits (across three different providers, at
different points) were a bigger operational bottleneck than any of the
actual reasoning logic.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What we'd improve with more time
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Full TigerGraph vector-backed retrieval for the policy/pattern/closed-case
documents, replacing our current flat-file context assembly — the
graph traversal side is solid, the document-retrieval side is still
the simpler of the two.&lt;/li&gt;
&lt;li&gt;A real human-in-the-loop approval UI for the L1/L2-routed actions,
rather than routes being recommendation-only in the output.&lt;/li&gt;
&lt;li&gt;Wiring TypeSafe's Jev as a structured, typed decision layer alongside
the LLM assessment step — the architecture was built with this as a
pluggable seam from day one, specifically so it could be added without
touching the policy engine or state machine.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Repo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/Tanmay-say/JEVelric" rel="noopener noreferrer"&gt;https://github.com/Tanmay-say/JEVelric&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tigergraph</category>
      <category>graphrag</category>
      <category>graphql</category>
    </item>
  </channel>
</rss>
