<?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: Hibat Errahmane Gholal</title>
    <description>The latest articles on DEV Community by Hibat Errahmane Gholal (@hibat_errahmanegholal_34).</description>
    <link>https://dev.to/hibat_errahmanegholal_34</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%2F4179133%2F9f978bd7-a729-438b-bdb3-1c5e1020a8ab.jpg</url>
      <title>DEV Community: Hibat Errahmane Gholal</title>
      <link>https://dev.to/hibat_errahmanegholal_34</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hibat_errahmanegholal_34"/>
    <language>en</language>
    <item>
      <title>LedgerGuard: Investigating the Ghost in Financial Transactions</title>
      <dc:creator>Hibat Errahmane Gholal</dc:creator>
      <pubDate>Sun, 01 Nov 2026 03:05:25 +0000</pubDate>
      <link>https://dev.to/hibat_errahmanegholal_34/ledgerguard-investigating-the-ghost-in-financial-transactions-30hc</link>
      <guid>https://dev.to/hibat_errahmanegholal_34/ledgerguard-investigating-the-ghost-in-financial-transactions-30hc</guid>
      <description>&lt;p&gt;Financial discrepancies are not always obvious. A payment may be allocated to the wrong invoice, a delivery may not match an order, or records across different systems may contradict each other.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;LedgerGuard&lt;/strong&gt;, an AI-powered financial reconciliation and investigation platform, for the Hacktoberfest 2026 DEV Challenge — Week 4: Ghost in the Machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does LedgerGuard do?
&lt;/h2&gt;

&lt;p&gt;LedgerGuard combines deterministic reconciliation with AI-assisted investigation to help identify and understand inconsistencies across business records.&lt;/p&gt;

&lt;p&gt;Key capabilities include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reconciliation engine:&lt;/strong&gt; Detects quantity, operational, and financial discrepancies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-record checks:&lt;/strong&gt; Identifies suspicious relationships between deliveries, invoices, and payments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI investigation:&lt;/strong&gt; Uses evidence from business records to explain discrepancies and suggest what should be checked next.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Analytics center:&lt;/strong&gt; Presents financial and operational trends.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Notifications:&lt;/strong&gt; Highlights currently active discrepancies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit trail:&lt;/strong&gt; Records investigation notes and status changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Open-source AI
&lt;/h2&gt;

&lt;p&gt;LedgerGuard uses &lt;strong&gt;Llama 3.2 (3B)&lt;/strong&gt; through &lt;strong&gt;Ollama&lt;/strong&gt;, running locally.&lt;/p&gt;

&lt;p&gt;The AI is an investigation assistant, not the source of truth. The deterministic reconciliation engine identifies discrepancies, while the AI helps interpret the available evidence.&lt;/p&gt;

&lt;p&gt;This local-first approach avoids dependence on paid inference APIs and demonstrates how open-weight models can support practical business applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this project?
&lt;/h2&gt;

&lt;p&gt;A discrepancy is not automatically proof of fraud, theft, or human error.&lt;/p&gt;

&lt;p&gt;LedgerGuard aims to make investigations more transparent by separating verified facts from possible explanations and missing information. Human verification remains essential.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technology stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;li&gt;FastAPI&lt;/li&gt;
&lt;li&gt;React&lt;/li&gt;
&lt;li&gt;PostgreSQL&lt;/li&gt;
&lt;li&gt;Ollama&lt;/li&gt;
&lt;li&gt;Llama 3.2 (3B)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/y20huLE1pR0" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Source code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/hibat-errahmane" rel="noopener noreferrer"&gt;
        hibat-errahmane
      &lt;/a&gt; / &lt;a href="https://github.com/hibat-errahmane/LedgerGuard" rel="noopener noreferrer"&gt;
        LedgerGuard
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      LedgerGuard is a deterministic financial and operational reconciliation engine that detects inconsistencies across orders, deliveries, invoices, payments, and credit notes. Built with Python and PostgreSQL, it identifies discrepancies, validates transactions, tracks corrections, and generates reconciliation reports with transaction-safe processing.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;LedgerGuard — AI-Powered Financial Reconciliation &amp;amp; Investigation&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;LedgerGuard is an AI-assisted reconciliation and investigation platform designed to help businesses detect financial inconsistencies, trace operational discrepancies, and investigate suspicious transaction records.&lt;/p&gt;
&lt;p&gt;It combines a deterministic reconciliation engine with a locally hosted open-weight language model. The reconciliation engine identifies discrepancies using business rules and database evidence; AI helps explain the evidence and suggest investigation steps while keeping human reviewers in control.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;The Problem&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Business records are often distributed across orders, deliveries, invoices, credit notes, and payments. Inconsistencies between these records can be difficult to detect and investigate manually.&lt;/p&gt;
&lt;p&gt;Examples include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Ordered quantities that do not match recorded deliveries.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Delivery quantities allocated incorrectly to invoice items.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Payments allocated to invoices belonging to different customers.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Overallocated payments and overpaid invoices.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Credit-note inconsistencies.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;LedgerGuard aims to make these discrepancies traceable, understandable, and easier to investigate.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Key Features&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;1. Deterministic Reconciliation&lt;/h3&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Order-to-delivery quantity reconciliation.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Delivery-to-invoice consistency…&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/hibat-errahmane/LedgerGuard" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


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

&lt;p&gt;Building LedgerGuard helped me explore the engineering challenges of financial reconciliation, database integrity, evidence-based AI investigation, and integrating a locally running language model into a full-stack application.&lt;/p&gt;

&lt;p&gt;Open innovation matters because developers and students should be able to experiment with AI systems, inspect their behavior, and build useful applications without depending entirely on proprietary services.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
