<?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: Dinesh Singh Panwar</title>
    <description>The latest articles on DEV Community by Dinesh Singh Panwar (@dpanwarvigyan).</description>
    <link>https://dev.to/dpanwarvigyan</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%2F3995881%2Fd016fd10-69ca-48ed-84b9-488df1001644.png</url>
      <title>DEV Community: Dinesh Singh Panwar</title>
      <link>https://dev.to/dpanwarvigyan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dpanwarvigyan"/>
    <language>en</language>
    <item>
      <title>Agentic AI in Mortgage Origination</title>
      <dc:creator>Dinesh Singh Panwar</dc:creator>
      <pubDate>Mon, 22 Jun 2026 08:23:20 +0000</pubDate>
      <link>https://dev.to/dpanwarvigyan/agentic-ai-in-mortgage-origination-1cmo</link>
      <guid>https://dev.to/dpanwarvigyan/agentic-ai-in-mortgage-origination-1cmo</guid>
      <description>&lt;p&gt;&lt;em&gt;The Mortgage Process Already Knows Where AI Belongs&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A technical guide to converting existing BPMN mortgage workflows to APMN for agentic AI&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;The Australian mortgage industry has significant AI investment and limited AI production deployment.&lt;/p&gt;

&lt;p&gt;Most programmes are piloting document tools or building chatbots alongside existing processes. Few are asking the more productive question: what is already encoded in our existing process diagrams, and where does AI fit inside that?&lt;/p&gt;

&lt;p&gt;Every lender running Appian, IBM BPM, Pega, or a comparable platform has BPMN diagrams for mortgage origination. Serviceability rules encoded. APRA CPS 234 requirements mapped. Exception paths tested against real borrowers over years.&lt;/p&gt;

&lt;p&gt;Those diagrams are the starting point, not an obstacle to work around.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where BPMN Falls Short for Mortgage AI
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Income verification is probabilistic.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A human assessor reviews payslips, tax returns, and bank statements and returns a verified income figure. An AI model does the same work but returns a confidence-weighted output. BPMN cannot express "proceed if confidence above 90%, flag for assessor review if 70-90%, request additional documents if below 70%". Every implementation hacks this into service task variables and exclusive gateways -- obscuring the business logic and making the decision trail difficult to audit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Document intelligence output is not a system event.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;BPMN handles document receipt as a message event. AI document intelligence is different -- the model reads, extracts, validates, and returns a structured output that can be wrong. There is no BPMN boundary event for "the AI extracted an income figure that is implausible for the declared employment type". Catching this requires custom code that sits outside the process diagram and outside the audit trail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;APRA requires explainability. BPMN does not enforce it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When AI is embedded inside a BPMN service task, the decision logic is invisible to the process diagram. The diagram shows "credit decision service task" and says nothing about which model ran, what version, what confidence it returned, or what the assessor was shown before approving. This is a governance gap regulators are focused on.&lt;/p&gt;




&lt;h2&gt;
  
  
  What APMN Adds
&lt;/h2&gt;

&lt;p&gt;APMN -- AI Process Model and Notation -- is an open extension of BPMN 2.0 that makes AI a first-class citizen of the process diagram. Fully backwards compatible with existing BPMN tools.&lt;/p&gt;

&lt;p&gt;Key constructs for mortgage:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ragTask&lt;/strong&gt; -- retrieve financial context before assessment. Credit bureau data, ATO income data via CDR, previous application history, property records. The retrieval step is explicit in the diagram and in the audit trail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;agentTask&lt;/strong&gt; -- AI performs the assessment. Specifies model, version, prompt context, and expected output schema. When a compliance officer asks what the AI assessed and why, the answer is in the process record.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;confidenceGate&lt;/strong&gt; -- route based on confidence score. Above threshold: straight-through processing. Mid-range: assessor review of AI output. Below threshold: full manual assessment. Thresholds are configurable by loan type, borrower segment, and regulatory requirement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;humanInLoopTask&lt;/strong&gt; -- structured assessor review of AI output. The assessor sees the AI recommendation, the confidence score, the documents referenced, and the key factors driving the output. Every decision is recorded against the process instance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;escapeGate&lt;/strong&gt; -- automatic fallback. If confidence drops below minimum, if the model times out, or if output fails structural validation, the escapeGate routes to the manual assessor queue. No application stalls because an AI component failed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;modelVersionGate&lt;/strong&gt; -- run a new model version on a percentage of applications alongside the current model. Compare outputs. Validate before full deployment. This is how you upgrade your income verification model without a big-bang release.&lt;/p&gt;

&lt;p&gt;Full spec at apmn.kshetra.studio/spec/apmn-v0.1&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp0qdotxi8sgkoyvttqzb.png" alt="APMN Model for Mortgage Origination" width="800" height="138"&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  The TwinTrack Architecture for Mortgage
&lt;/h2&gt;

&lt;p&gt;Foundational separation between AI infrastructure and deterministic infrastructure, joined by lightweight orchestration ramps.&lt;/p&gt;

&lt;p&gt;Your existing mortgage process -- the one that passes APRA audits, that assessors know, that compliance has signed off -- runs on the reliable track. It does not change.&lt;/p&gt;

&lt;p&gt;AI runs on the innovation track in parallel. On-ramps divert selected applications based on routing criteria: standard residential, PAYG borrower, complete documentation. Low-risk, high-volume, high AI confidence. Start here.&lt;/p&gt;

&lt;p&gt;Off-ramp triggers: confidence below threshold, document anomaly, borrower segment outside training distribution, escapeGate fires. Any of these returns the application to the assessor queue on the reliable track.&lt;/p&gt;

&lt;p&gt;As evidence accumulates -- comparing AI outcomes to assessor decisions on the same applications -- the routing criteria widen at a pace your risk committee controls. Self-employed borrowers added when confidence on that segment is validated. Complex income structures added later.&lt;/p&gt;

&lt;p&gt;The governance surface is reduced because AI decisions are isolated from deterministic decisions. Each has its own audit trail, its own escalation path. Frictionless innovation on the AI track. Unconditional reliability on the deterministic track.&lt;/p&gt;




&lt;h2&gt;
  
  
  A Worked Example: Income Verification
&lt;/h2&gt;

&lt;p&gt;Standard BPMN: assessor reviews payslips and tax returns, calculates verified income, records in origination system. One human task. High volume. Time-consuming.&lt;/p&gt;

&lt;p&gt;In APMN with TwinTrack:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ragTask&lt;/strong&gt; retrieves all income documents from document management, plus ATO tax return via CDR integration where available, plus any previous income assessments from prior applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;agentTask&lt;/strong&gt; extracts structured income figures from each document, reconciles across sources, identifies discrepancies, flags anomalies, calculates verified income per APRA serviceability guidelines. Output includes confidence score, extracted figures, and structured explanation of the calculation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;confidenceGate&lt;/strong&gt; routes: above 92% on a standard PAYG borrower proceeds to serviceability calculation automatically; 75-92% presents AI assessment to assessor for review and confirmation; below 75% routes to full manual assessment with AI output available as reference only.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;humanInLoopTask&lt;/strong&gt; for mid-confidence cases presents the assessor with AI-calculated income, documents referenced, figures extracted, and plain-language explanation of discrepancies. Assessor confirms, adjusts, or overrides. Decision and reason recorded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;escapeGate&lt;/strong&gt; catches document read failures, model timeouts, output validation failures, figures outside plausible range. All return to manual track.&lt;/p&gt;

&lt;p&gt;The compliance record shows: model, version, confidence, documents referenced, what the assessor saw, what decision they made. The audit trail APRA expects.&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;Upload your existing mortgage origination BPMN to TwinTrack. It identifies every human task where AI can act, scores conversion confidence, and generates APMN output plus deployment-ready Orkes Conductor JSON.&lt;/p&gt;

&lt;p&gt;You control the confidence thresholds, routing criteria, and pace of adoption.&lt;/p&gt;

&lt;p&gt;APMN spec v0.1 (Apache 2.0): &lt;a href="https://apmn.kshetra.studio/spec/apmn-v0.1" rel="noopener noreferrer"&gt;apmn.kshetra.studio/spec/apmn-v0.1&lt;/a&gt;&lt;br&gt;
APMN visual modeller (MIT): &lt;a href="https://apmn-modeler.kshetra.studio" rel="noopener noreferrer"&gt;apmn-modeler.kshetra.studio&lt;/a&gt;&lt;br&gt;
TwinTrack, free to try: &lt;a href="https://bpmn2ai.kshetra.studio" rel="noopener noreferrer"&gt;bpmn2ai.kshetra.studio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Full article with APRA governance framework: &lt;a href="https://apmn.kshetra.studio" rel="noopener noreferrer"&gt;apmn.kshetra.studio&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Dinesh Singh Panwar, founder of Kshetra Studio. Creator of APMN and TwinTrack. Former Head of Technology, Westpac Group. Founder of askmybank.ai, AI-native mortgage document intelligence for Australian brokers and lenders.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agentaichallenge</category>
      <category>architecture</category>
      <category>apmn</category>
      <category>banking</category>
    </item>
    <item>
      <title>Agentic AI in Clinical Processes</title>
      <dc:creator>Dinesh Singh Panwar</dc:creator>
      <pubDate>Mon, 22 Jun 2026 07:54:34 +0000</pubDate>
      <link>https://dev.to/dpanwarvigyan/agentic-ai-in-clinical-processes-3b77</link>
      <guid>https://dev.to/dpanwarvigyan/agentic-ai-in-clinical-processes-3b77</guid>
      <description>&lt;p&gt;&lt;em&gt;Your Clinical Processes Already Know Where AI Belongs&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A technical guide to converting existing BPMN healthcare workflows to APMN for agentic AI&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;Most healthcare AI programmes start by asking the wrong question.&lt;/p&gt;

&lt;p&gt;"Which AI platform should we adopt?" "What should we pilot?" "Let's build something new and see what sticks."&lt;/p&gt;

&lt;p&gt;Meanwhile, sitting in a process repository, is a BPMN diagram for patient preadmission. Another for prior authorisation. Another for clinical triage. Each one represents years of institutional knowledge -- every compliance requirement codified, every exception path tested against real patients.&lt;/p&gt;

&lt;p&gt;That knowledge gets ignored. Teams reinvent from scratch. Pilots stay as pilots.&lt;/p&gt;

&lt;p&gt;There is a better starting point.&lt;/p&gt;




&lt;h2&gt;
  
  
  What BPMN Cannot Express
&lt;/h2&gt;

&lt;p&gt;BPMN 2.0 handles deterministic healthcare processes well. Sequential care steps, parallel workstreams, human tasks, service calls, exception handling -- it covers all of this.&lt;/p&gt;

&lt;p&gt;The problem is that AI agents are not deterministic. Three specific gaps matter for health:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Probabilistic outputs.&lt;/strong&gt; A radiologist returns a diagnosis. An AI model returns a probability distribution. BPMN has no way to say "proceed if confidence exceeds 90%, escalate to clinician if below". Teams hack this into service task variables and exclusive gateways. It works but makes the decision trail hard to audit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI-specific failure modes.&lt;/strong&gt; BPMN handles system failures well. It handles AI failures badly. There is no boundary event for hallucination, no error handler for model drift, no standard catch for "the model was confident but the output was clinically implausible".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transition states.&lt;/strong&gt; A hospital cannot flip a switch and hand clinical decisions to AI. BPMN has no concept of "run AI alongside human for six months, compare outcomes, then decide". A task is either human or automated. Nothing in between.&lt;/p&gt;




&lt;h2&gt;
  
  
  What APMN Adds
&lt;/h2&gt;

&lt;p&gt;APMN -- AI Process Model and Notation -- is an open extension of BPMN 2.0 that addresses these gaps while remaining fully backwards compatible with existing BPMN tools and diagrams.&lt;/p&gt;

&lt;p&gt;It uses BPMN 2.0's official extension mechanism. Your existing diagrams remain valid.&lt;/p&gt;

&lt;p&gt;The key constructs for healthcare:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;agentTask&lt;/strong&gt; -- an AI model performs clinical reasoning, document analysis, or administrative processing. The model, version, prompt context, and output schema are explicit in the diagram.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ragTask&lt;/strong&gt; -- retrieve clinical context before reasoning. Patient history, previous imaging, medication records, clinical guidelines. The retrieval step is a first-class process node, not hidden inside a service call.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;confidenceGate&lt;/strong&gt; -- route based on AI confidence score. Thresholds are configurable per process and per risk appetite. High confidence proceeds. Mid-range flags for clinician review. Low confidence falls back to the human task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;humanInLoopTask&lt;/strong&gt; -- structured clinician review of AI output before the process continues. Designed specifically for AI oversight -- the clinician sees the AI recommendation, the confidence score, the source documents, and the key factors driving the output.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;escapeGate&lt;/strong&gt; -- automatic safety net. If AI confidence drops below a minimum floor, if the model times out, or if output fails structural validation, the escapeGate catches it and routes to the deterministic fallback. The reliable process that was running before AI was introduced.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;modelVersionGate&lt;/strong&gt; -- run two model versions in parallel on a percentage of cases and compare outcomes before committing to an upgrade across the full patient population.&lt;/p&gt;

&lt;p&gt;Full spec at apmn.kshetra.studio/spec/apmn-v0.1&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh7jthyf8rgexmgr4iwul.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh7jthyf8rgexmgr4iwul.png" alt="APMN Flow for Patient pre-admission" width="799" height="103"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The TwinTrack Architecture
&lt;/h2&gt;

&lt;p&gt;The architectural principle behind APMN adoption is foundational separation between AI infrastructure and deterministic infrastructure, joined by lightweight orchestration ramps.&lt;/p&gt;

&lt;p&gt;Your existing clinical process -- the one that passes audits, that clinicians trust -- runs on the reliable track. It does not change.&lt;/p&gt;

&lt;p&gt;AI runs on the innovation track in parallel. On-ramps divert selected cases to the AI track based on routing criteria you define. Off-ramps return cases to the reliable track if confidence drops or an escapeGate fires.&lt;/p&gt;

&lt;p&gt;The separation means a failure in the AI track cannot propagate to the reliable track. Governance of AI decisions is isolated from governance of deterministic decisions. Clinicians trust the reliable track unconditionally -- which is the prerequisite for AI adoption in clinical settings.&lt;/p&gt;

&lt;p&gt;As evidence accumulates, the routing criteria widen at a pace determined by your risk appetite.&lt;/p&gt;




&lt;h2&gt;
  
  
  A Worked Example: Patient Preadmission
&lt;/h2&gt;

&lt;p&gt;Standard BPMN: receive referral, verify insurance, review medical history, assess clinical priority, schedule, confirm. Steps 2, 3, 4 are human tasks.&lt;/p&gt;

&lt;p&gt;In APMN with TwinTrack:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verify insurance:&lt;/strong&gt; ragTask retrieves policy documents. agentTask verifies eligibility. confidenceGate routes on confidence score. escapeGate catches failures and returns to human task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Review medical history:&lt;/strong&gt; ragTask retrieves EHR records and clinical guidelines. agentTask summarises and flags risk factors. escapeGate validates output before it reaches the clinician. humanInLoopTask presents the AI summary alongside source documents for clinician sign-off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Assess clinical priority:&lt;/strong&gt; agentTask applies urgency scoring. confidenceGate routes high-confidence scores to expedited scheduling, borderline scores to consultant review, low confidence to the human task on the reliable track.&lt;/p&gt;

&lt;p&gt;Steps 1, 5, 6 are unchanged. The business logic and compliance requirements are unchanged. Three bottlenecks now have AI handling preparation work, with human oversight calibrated to confidence level and clinical risk.&lt;/p&gt;

&lt;p&gt;Full worked example with before/after diagrams at apmn.kshetra.studio/examples/patient_preadmission&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;Upload your existing BPMN to TwinTrack. It identifies every human task where AI can act, scores conversion confidence, and generates APMN output plus deployment-ready Orkes Conductor JSON.&lt;/p&gt;

&lt;p&gt;You control the confidence thresholds, the routing criteria, and the pace of adoption.&lt;/p&gt;

&lt;p&gt;APMN spec v0.1 (Apache 2.0): &lt;a href="https://apmn.kshetra.studio/spec/apmn-v0.1" rel="noopener noreferrer"&gt;apmn.kshetra.studio/spec/apmn-v0.1&lt;/a&gt;&lt;br&gt;
APMN visual modeller (MIT): &lt;a href="https://apmn-modeler.kshetra.studio" rel="noopener noreferrer"&gt;apmn-modeler.kshetra.studio&lt;/a&gt;&lt;br&gt;
TwinTrack, free to try: &lt;a href="https://bpmn2ai.kshetra.studio" rel="noopener noreferrer"&gt;bpmn2ai.kshetra.studio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Full article with regulatory context and governance framework: &lt;a href="https://apmn.kshetra.studio" rel="noopener noreferrer"&gt;apmn.kshetra.studio&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Dinesh Singh Panwar, founder of Kshetra Studio. Creator of APMN and TwinTrack.Former Head of Technology, Westpac Group.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>bpmn</category>
      <category>apmn</category>
      <category>orkes</category>
    </item>
  </channel>
</rss>
