<?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: PV-J</title>
    <description>The latest articles on DEV Community by PV-J (@pvj).</description>
    <link>https://dev.to/pvj</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%2F4189296%2Fb6e940b8-aa05-4899-a264-03c543528db3.png</url>
      <title>DEV Community: PV-J</title>
      <link>https://dev.to/pvj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pvj"/>
    <language>en</language>
    <item>
      <title>Why UPI Fraud Is a Temporal Logic Problem (and How PLCs Solved It 50 Years Ago)</title>
      <dc:creator>PV-J</dc:creator>
      <pubDate>Fri, 16 Oct 2026 17:21:40 +0000</pubDate>
      <link>https://dev.to/pvj/why-upi-fraud-is-a-temporal-logic-problem-and-how-plcs-solved-it-50-years-ago-oh9</link>
      <guid>https://dev.to/pvj/why-upi-fraud-is-a-temporal-logic-problem-and-how-plcs-solved-it-50-years-ago-oh9</guid>
      <description>&lt;p&gt;UPI fraud detection is probabilistic and post-authorization. The money moves, then a model scores it 0.73 and a fraud analyst looks at it in two days.&lt;/p&gt;

&lt;p&gt;That's a power plant that checks the boiler after it explodes.&lt;/p&gt;

&lt;p&gt;In 1981, IEC 61131 defined the PLC. The core principle: &lt;strong&gt;a hard fault gets a hard response.&lt;/strong&gt; No probability. No score. The interlock trips, and the machine stops. Same input → same output → every time → forever.&lt;/p&gt;

&lt;p&gt;I applied that principle to UPI payment events.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;fraud-watchdog&lt;/strong&gt; is a ~300+ line Python library that checks three axes for every payment:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Axis&lt;/th&gt;
&lt;th&gt;What it checks&lt;/th&gt;
&lt;th&gt;Example trip&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Velocity&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dwell times, transaction rate&lt;/td&gt;
&lt;td&gt;Payment confirmed in 4 s after "arrest" call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Sequence&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Required event order&lt;/td&gt;
&lt;td&gt;Screen-off → resume without re-auth&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Context&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Time-of-day, device state&lt;/td&gt;
&lt;td&gt;18 s burst at 3 AM, outside user's active window&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;8 scenarios. 6 tripped. 2 passed. Zero false positives.&lt;/p&gt;

&lt;p&gt;No ML. No GPU. No cloud. Runs on a ₹6,000 phone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Video:&lt;/strong&gt; [&lt;a href="https://youtu.be/AGleG9RFQz0" rel="noopener noreferrer"&gt;https://youtu.be/AGleG9RFQz0&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repo:&lt;/strong&gt; [&lt;a href="https://github.com/PV-J/fraud-watchdog" rel="noopener noreferrer"&gt;https://github.com/PV-J/fraud-watchdog&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;Phase 2 is community-driven. File an issue with your own scam scenario and I'll add it.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
