<?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: Samarth Kumble</title>
    <description>The latest articles on DEV Community by Samarth Kumble (@samarth_kumble_a91ad88634).</description>
    <link>https://dev.to/samarth_kumble_a91ad88634</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%2F4145941%2Fb7d35af3-f2a6-4a62-bbc8-1fc940f1c1f3.png</url>
      <title>DEV Community: Samarth Kumble</title>
      <link>https://dev.to/samarth_kumble_a91ad88634</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samarth_kumble_a91ad88634"/>
    <language>en</language>
    <item>
      <title>When someone dies, their money doesn't tell the family where it is. So a local Gemma reads their inbox.</title>
      <dc:creator>Samarth Kumble</dc:creator>
      <pubDate>Sat, 31 Oct 2026 19:47:09 +0000</pubDate>
      <link>https://dev.to/samarth_kumble_a91ad88634/when-someone-dies-their-money-doesnt-tell-the-family-where-it-is-so-a-local-gemma-reads-their-ij6</link>
      <guid>https://dev.to/samarth_kumble_a91ad88634/when-someone-dies-their-money-doesnt-tell-the-family-where-it-is-so-a-local-gemma-reads-their-ij6</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;India has &lt;strong&gt;₹2.2 lakh crore&lt;/strong&gt; sitting unclaimed: ₹97,545 crore in bank deposits, ₹89,004 crore in shares and dividends, ₹20,062 crore in insurance, ₹10,915 crore in provident fund. Those are December 2025 figures from a 1 Finance report, &lt;a href="https://www.businesstoday.in/personal-finance/news/story/rs-22-lakh-crore-unclaimed-funds-lie-idle-across-banks-epf-insurance-stocks-mfs-524958-2026-04-10" rel="noopener noreferrer"&gt;as reported by Business Today&lt;/a&gt;. Among the causes it lists are &lt;em&gt;unreported deaths&lt;/em&gt; and &lt;em&gt;heirs who don't know about legacy investments&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;That second cause is the ghost this project is about. Nobody keeps a list of what they own. An FD renewal notice arrives once every five years. A premium receipt arrives once a year. A dividend notice comes from a company someone bought shares in before the internet. When that person dies, the only complete map of their money is their inbox, and the family usually doesn't know how to read it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ghost Ledger&lt;/strong&gt; reads it for them, on their own laptop:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Gemma 4 (E4B, through Ollama) reads the mailbox&lt;/strong&gt; and writes an inheritance map. Every deposit, policy, folio, demat account, pension, loan and subscription goes on it, with the exact sentence from the email that proves it and the official route to claim it (UDGAM for old bank deposits, IEPF-5 for shares, AMC transmission for mutual funds, EPFO Form 20, and so on).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plain code checks every line Gemma writes.&lt;/strong&gt; If the quote isn't in the email, or the account number isn't in it, the line is dropped. It never guesses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For each claim the family chooses, a Temporal workflow takes over.&lt;/strong&gt; It drafts the letter, &lt;strong&gt;asks the executor's phone for approval (Auth0 Guardian)&lt;/strong&gt;, sends it &lt;strong&gt;from her own Gmail through Auth0 Token Vault&lt;/strong&gt;, waits 15 days on a durable timer, sends reminders, and finally drafts the complaint to the regulator.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's who I tested it on. &lt;strong&gt;Raghavendra Rao&lt;/strong&gt; was a retired school teacher in Mysuru who died in June 2026. He is fictional; I wrote his 75-email mailbox by hand, with a written answer key, so the results could be scored. Here is what Ghost Ledger found in it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;₹4,29,812 fixed deposit&lt;/strong&gt; at Malnad Co-operative Bank. It matured in 2024 and was never collected. There were only two emails about it in seven years.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;life policy that matured in 2022 and was never paid out&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;200 physical shares&lt;/strong&gt; of Hampi Textiles with seven years of unclaimed dividends. They are about to be moved to IEPF.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;state pension still being credited&lt;/strong&gt; after his death. The family has to stop it, because the bank will recover it otherwise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A streaming plan, a postpaid phone bill and an e-paper subscription&lt;/strong&gt; still renewing, months after he died.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And here is what it refused to use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Six scam emails&lt;/strong&gt;, including &lt;em&gt;"Pay a refundable processing fee of Rs. 4,999 to the account below to release the bonus"&lt;/em&gt; and &lt;em&gt;"URGENT: Your Kaveri Bank account will be BLOCKED today"&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A savings account he closed in 2021.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Promotions&lt;/strong&gt; that name funds he never held.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;&lt;strong&gt;Live site:&lt;/strong&gt; &lt;a href="https://ghostledger.tech" rel="noopener noreferrer"&gt;ghostledger.tech&lt;/a&gt;&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/Ve1dt-xGcuY" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;br&gt;
   &lt;em&gt;Narration generated with ElevenLabs (voice: Aarav J, Eleven v4).&lt;/em&gt;&lt;br&gt;
&lt;strong&gt;The report Gemma produced for Raghavendra:&lt;/strong&gt; &lt;a href="https://ghostledger.tech/demo/report.html" rel="noopener noreferrer"&gt;ghostledger.tech/demo/report.html&lt;/a&gt;&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%2Fh8jlhbzscbhu78mxb7bk.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%2Fh8jlhbzscbhu78mxb7bk.png" alt="The inheritance map Ghost Ledger writes. Every line quotes the email it came from, and account numbers are masked." width="800" height="655"&gt;&lt;/a&gt;&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%2F0kjeh23kftiz0p7k1yeg.jpeg" 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%2F0kjeh23kftiz0p7k1yeg.jpeg" alt="A claim waiting on my phone: Auth0 Guardian asks before any letter leaves the executor's Gmail." width="698" height="1444"&gt;&lt;/a&gt;&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%2Fsqpzo41akf59x6m7vucs.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%2Fsqpzo41akf59x6m7vucs.png" alt="The claim letter, and the &amp;quot;bank's&amp;quot; reply, in Gmail." width="799" height="380"&gt;&lt;/a&gt;&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%2F1kqys6cs60f53yqvtj3u.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%2F1kqys6cs60f53yqvtj3u.png" alt="The same claim as a Temporal workflow: approval, send, and the durable 15-day wait." width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  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/samarthkumble" rel="noopener noreferrer"&gt;
        samarthkumble
      &lt;/a&gt; / &lt;a href="https://github.com/samarthkumble/ghost-ledger" rel="noopener noreferrer"&gt;
        ghost-ledger
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &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;Ghost Ledger&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;When someone dies, their money doesn't tell the family where it is.&lt;/strong&gt; Ghost Ledger reads a loved one's mailbox on your own computer with a local Gemma model. It writes down every deposit, policy, folio, pension, loan and subscription it finds, each with the email sentence that proves it. Then it helps you claim them, one phone-approved letter at a time.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Live site:&lt;/strong&gt; &lt;a href="https://ghostledger.tech" rel="nofollow noopener noreferrer"&gt;ghostledger.tech&lt;/a&gt; · &lt;strong&gt;Example report:&lt;/strong&gt; &lt;a href="https://ghostledger.tech/demo/report.html" rel="nofollow noopener noreferrer"&gt;ghostledger.tech/demo/report.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/samarthkumble/ghost-ledger/docs/img/report.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fsamarthkumble%2Fghost-ledger%2FHEAD%2Fdocs%2Fimg%2Freport.png" alt="Ghost Ledger report"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;India has about ₹2.2 lakh crore unclaimed across bank deposits, shares, insurance, provident fund and mutual funds (1 Finance, figures as of December 2025, &lt;a href="https://www.businesstoday.in/personal-finance/news/story/rs-22-lakh-crore-unclaimed-funds-lie-idle-across-banks-epf-insurance-stocks-mfs-524958-2026-04-10" rel="nofollow noopener noreferrer"&gt;via Business Today&lt;/a&gt;). Unreported deaths and heirs who don't know about older investments are among the causes it lists. Usually, the only complete record of what someone owned is their inbox.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;How it works&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;th&gt;Built with&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Load&lt;/td&gt;
&lt;td&gt;A folder of &lt;code&gt;.eml&lt;/code&gt; files or a Google Takeout &lt;code&gt;.mbox&lt;/code&gt;. A cheap filter&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/samarthkumble/ghost-ledger" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The reader: Gemma 4 on a laptop CPU
&lt;/h3&gt;

&lt;p&gt;My laptop has a Ryzen 5 5500U and no GPU. Gemma 4 E4B runs there through Ollama at about &lt;strong&gt;20 seconds per email&lt;/strong&gt;. A real mailbox holds ten years of mail, so Gemma only reads what could matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A cheap filter keeps emails that mention accounts or money.&lt;/strong&gt; It drops the shopping orders, temple receipts and "photos from Dasara". 51 of Raghavendra's 75 emails survive.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scam checks run in code before the model sees anything.&lt;/strong&gt; These are free-mail senders claiming to be banks, fee requests, links to other domains, and "call our officer". A grieving family is exactly who these emails target, so they are never sent to Gemma and never become evidence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemma answers in a fixed JSON schema&lt;/strong&gt; (Ollama's &lt;code&gt;format&lt;/code&gt;, temperature 0). For each holding it gives the kind, institution, account number and the sentence that shows it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then comes the part that made this trustworthy enough to send letters from. Each item Gemma writes is checked by plain code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nf"&gt;in_email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;evidence&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;the evidence is not copied word for word from the email&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nf"&gt;institution_named&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;institution&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;'"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;institution&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt; is not named in the email&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;kind&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;subscription&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;utility&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;identifier&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;no account, policy, folio or other identifier: a mention is not a holding&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;last4&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;digits&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;the identifier &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;identifier&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt; does not appear in the email&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A rejected item gets &lt;strong&gt;one retry that names the problem&lt;/strong&gt;. If it still fails, it's dropped and logged. A promotion that says "invest in Western Ghats Mutual Fund" has no folio number, so it never becomes a holding.&lt;/p&gt;

&lt;p&gt;Gemma's job ends at finding holdings. The claim letters are &lt;strong&gt;fixed templates&lt;/strong&gt; filled from verified fields, because a letter to a bank should say exactly what the evidence says and nothing more.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Measured twice, and the second time on a mailbox it had never seen
&lt;/h3&gt;

&lt;p&gt;Both mailboxes are invented, each with a written answer key. The regex baseline gets the same filters and the same checks, so the only difference is who reads the email.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Raghavendra (75 emails)&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Leela (47 emails, &lt;strong&gt;held out&lt;/strong&gt;)&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;regex&lt;/td&gt;
&lt;td&gt;Gemma&lt;/td&gt;
&lt;td&gt;regex&lt;/td&gt;
&lt;td&gt;Gemma&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Holdings and debts found&lt;/td&gt;
&lt;td&gt;11 / 15&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;15 / 15&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;7 / 13&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;13 / 13&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Subscriptions and bills found&lt;/td&gt;
&lt;td&gt;3 / 5&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5 / 5&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1 / 4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4 / 4&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Matured / at-risk / dormant / closed caught&lt;/td&gt;
&lt;td&gt;4 / 5&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5 / 5&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2 / 4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4 / 4&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invented entries&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Filed as the wrong kind&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Closed account put on the claim list&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scam emails used as evidence&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That table hides two things I'd rather tell you myself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gemma's first run on Raghavendra was not clean.&lt;/strong&gt; It found all 15 holdings, but there was one invented entry, one wrong kind and one missed "matured" flag. When I read Gemma's raw answers, all three came from &lt;em&gt;my&lt;/em&gt; code, not from Gemma:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The missed flag:&lt;/strong&gt; Gemma had correctly said "matured, unclaimed". My status check only read the one sentence Gemma quoted ("matured on 14-06-2024."), so it downgraded the status. The "held as matured unclaimed deposit" part was in the next sentence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The invented entry:&lt;/strong&gt; Gemma called demat shares "physical shares", so my scorer couldn't match them to the demat account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The wrong kind:&lt;/strong&gt; a card used to pay a phone bill became a separate "credit card at the phone company".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I fixed all three in code, with no prompt changes. A perfect score after fixing things on the same data proves very little, though. So I wrote a &lt;strong&gt;second estate&lt;/strong&gt;: Leela Menon, a retired nurse in Kochi, with different banks, HTML statements, a home loan, a dormant account, a deposit already closed on maturity, and different scams. &lt;a href="https://github.com/samarthkumble/ghost-ledger/commit/d31d2ac" rel="noopener noreferrer"&gt;I committed it and its answer key&lt;/a&gt; &lt;em&gt;before&lt;/em&gt; any model read it, then ran it once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The held-out run first scored "0 invented", and that was wrong.&lt;/strong&gt; Gemma had turned a Kochi Metro trip receipt (paid by card) into a utility bill. My ledger then silently merged it into the &lt;em&gt;Kochi Water Authority&lt;/em&gt; bill, because I compared only the first word of institution names. My scorer had the same shortcut, so it hid the error. I fixed both, and the honest number became &lt;strong&gt;1&lt;/strong&gt;. I didn't add a rule for metro receipts, because that would be tuning on the held-out set.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Temporal: because a claim takes months
&lt;/h3&gt;

&lt;p&gt;Settling an estate isn't a request and a response. You write to a bank, and they answer in three weeks, or never. That wait is the whole job, and it can't live in a cron job or a browser tab.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;EstateScan&lt;/code&gt;&lt;/strong&gt; reads the mailbox as one durable activity per email. Close the laptop lid halfway and it continues from the next unread email. Gemma's answers are cached, so a retried read costs nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ClaimFlow&lt;/code&gt;&lt;/strong&gt; runs one workflow per holding: draft → approval on the phone → send → wait → reminder → wait → reminder → complaint.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;day&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;waiting for a reply: day &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;day&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; of &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;workflow&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;wait_condition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reply&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                                      &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nf"&gt;timedelta&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seconds&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;day_seconds&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;TimeoutError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;pass&lt;/span&gt;
    &lt;span class="n"&gt;found&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;workflow&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute_activity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;check_replies&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;ReplyArgs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;thread_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;our_ids&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="p"&gt;...)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;found&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After two unanswered reminders, it drafts the complaint for the right regulator: RBI's Integrated Ombudsman for banks, Bima Bharosa for insurance, SEBI SCORES for funds and shares, EPFiGMS for provident fund. In demo mode a "day" is 20 seconds, so a 15-day wait takes 5 minutes. &lt;strong&gt;I killed the worker in the middle of a wait. When I restarted it, the claim carried on from day 7, with nothing lost.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Auth0 for AI Agents: acting with a grieving family's Gmail
&lt;/h3&gt;

&lt;p&gt;This is the part I was most careful with. An agent that sends letters from someone's Gmail, on behalf of a dead parent, has to earn that.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The executor signs in with Auth0.&lt;/strong&gt; Her Gmail is connected once through Connected Accounts into &lt;strong&gt;Token Vault&lt;/strong&gt;. Ghost Ledger never stores a Google token. When a letter actually goes out, it exchanges its Auth0 refresh token for a Gmail token that lasts minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing is sent without her phone.&lt;/strong&gt; Every letter and every reminder starts a &lt;strong&gt;CIBA request with Guardian push&lt;/strong&gt;. The message names the bank and the account ending ("Send claim letter to Malnad Co-operative Bank 7703"), so she knows exactly what she's approving. Deny, and nothing is sent. Ignore it, and it asks again the next day.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In my test run, I approved the push for the Nilgiri Life claim. The letter left my Gmail, and I replied from my college account playing the insurer: &lt;em&gt;"Your claim reference is NL/CLM/2026/0412."&lt;/em&gt; Within a minute the workflow read the reply from the Gmail thread and closed the claim as &lt;strong&gt;answered&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. A .tech home
&lt;/h3&gt;

&lt;p&gt;The project lives at &lt;strong&gt;&lt;a href="https://ghostledger.tech" rel="noopener noreferrer"&gt;ghostledger.tech&lt;/a&gt;&lt;/strong&gt;, using the free domain from Hacktoberfest. It shows the results above, the method, and Gemma's full report for Raghavendra. The page is styled like a &lt;em&gt;bahi-khata&lt;/em&gt;, the red cloth-bound ledger Indian families have kept accounts in for generations.&lt;/p&gt;

&lt;h3&gt;
  
  
  What it doesn't do (yet)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Both estates are synthetic.&lt;/strong&gt; I wrote them to look like real Indian retirees' mail, but real mailboxes are messier. The next step is a Google Takeout import tested with a family who agrees to it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The claim routes are general guidance&lt;/strong&gt; from RBI, SEBI, AMFI, IEPF and EPFO rules, not legal advice. Amounts and thresholds change, and the report says to confirm with the institution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;About 20 seconds per email on a CPU&lt;/strong&gt; is fine for a few hundred emails overnight. It's slow for 20 years of mail, which is why the filter exists.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;A dead parent's mailbox is the most private dataset a family will ever hold. Their health, their money, their arguments and their last few months are all in it. The honest alternative to Ghost Ledger is a service that asks a grieving daughter to upload all of that to a company, and that's not something I would ask of anyone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open weights&lt;/strong&gt; are what let Gemma run on an ordinary laptop with the Wi-Fi off. &lt;strong&gt;Open code&lt;/strong&gt; means a family, their lawyer or a curious nephew can read every line that touches the mailbox. &lt;strong&gt;Open rules&lt;/strong&gt; matter too: the claim routes are public regulations, written down in one file anyone can correct when SEBI changes a threshold, as it recently did.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;I built Ghost Ledger with Claude as my pair programmer, from the problem research to the code, the evals and the site. I didn't record a DevRelay session. The repository's commit history shows the order things happened, including the commit that froze the held-out estate before Gemma ever read it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;On Día de los Muertos, families lay paths of marigold petals so the dead can find their way home. In India, marigolds garland every funeral. "Ghost in the machine" made me think of the inbox someone leaves behind, still receiving dividend notices, premium reminders and renewal advice for a person who will never open them.&lt;/p&gt;

&lt;p&gt;Ghost Ledger is my marigold path, run the other way: it helps what they left behind find its way home to the people they left it for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma&lt;/strong&gt;: Gemma 4 E4B runs locally through Ollama and reads every email, with its output checked by code. Evaluated against a regex baseline on two estates, one held out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Temporal&lt;/strong&gt;: the durable mailbox scan, plus long-running claim workflows with timers, reminders, replies and escalation. The worker was killed mid-claim and resumed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Auth0 for AI Agents&lt;/strong&gt;: executor sign-in, Gmail through Token Vault (no Google tokens on disk), and a CIBA + Guardian approval on the phone before every letter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of a .tech Domain&lt;/strong&gt;: &lt;a href="https://ghostledger.tech" rel="noopener noreferrer"&gt;ghostledger.tech&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of ElevenLabs&lt;/strong&gt;: the demo's narration is generated with ElevenLabs (Eleven v4), voicing the story of a family finding what their father left behind.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I get 50 placement emails a week. A local Gemma now tells me which 4 I can apply to.</title>
      <dc:creator>Samarth Kumble</dc:creator>
      <pubDate>Sat, 24 Oct 2026 11:03:28 +0000</pubDate>
      <link>https://dev.to/samarth_kumble_a91ad88634/i-get-50-placement-emails-a-week-a-local-gemma-now-tells-me-which-4-i-can-apply-to-4l88</link>
      <guid>https://dev.to/samarth_kumble_a91ad88634/i-get-50-placement-emails-a-week-a-local-gemma-now-tells-me-which-4-i-can-apply-to-4l88</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I'm a final-year CSBS student, and it's placement season. Last week my college inbox got &lt;strong&gt;50&lt;/strong&gt; placement emails. Each one hides its CGPA cutoff, branch list, batch and deadline somewhere in the third paragraph, or doesn't say at all and leaves you to click through to the placement portal. Most aren't for me, or have already closed by the time I read them. I still have to open every one to find out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cutoff&lt;/strong&gt; reads them for me. An open-weight model, Gemma 4 E4B running in Ollama on my laptop, pulls the criteria out of each email. Plain code checks them against my profile. In the morning I get one short list:&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%2Footbts9vclfczfz54z51.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%2Footbts9vclfczfz54z51.png" alt="Cutoff's digest for one week of placement emails" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fifty emails become ten lines. Most lines carry the email's own Apply link, and each "need a look" says exactly why.&lt;/p&gt;

&lt;p&gt;It's for anyone on a college placement mailing list. My college uses Superset, and Superset sends every job to every student. You only find out you're not eligible when you click Apply.&lt;/p&gt;

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

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

&lt;p&gt;&lt;em&gt;75 seconds: the real run on my inbox, the evidence behind one answer, the eval, and a run with Wi-Fi off. The voiceover is generated with ElevenLabs.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  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/samarthkumble" rel="noopener noreferrer"&gt;
        samarthkumble
      &lt;/a&gt; / &lt;a href="https://github.com/samarthkumble/cutoff" rel="noopener noreferrer"&gt;
        cutoff
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &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;Cutoff&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;A local Gemma reads your placement emails, so you only open the ones you can actually apply to.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Final-year placement season means a dozen emails a day. Each one hides a CGPA cutoff, a branch list, a batch and a deadline somewhere in the third paragraph, or doesn't say at all and leaves you to click through to the portal. Most of them rule you out. You still have to open every one to find out.&lt;/p&gt;
&lt;p&gt;Cutoff reads them for you, using an open-weight model on your own laptop. Here's a real run over one week of my inbox (50 emails, BMS College of Engineering, CSBS, 2027 batch, CGPA 7.08):&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/samarthkumble/cutoff/docs/digest.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fsamarthkumble%2Fcutoff%2FHEAD%2Fdocs%2Fdigest.png" alt="Cutoff's digest for one week of placement emails"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;
&lt;pre class="notranslate"&gt;&lt;code&gt;Cutoff · Fri 23 Oct
4 drives you can apply to (from 50 emails):
  ✓ IBM — Software Developer · apply by Sat 24 Oct, 11:00 (×3 emails)
  ✓ First Advantage Pvt Ltd — Associate Software Engineer Trainee ·&lt;/code&gt;&lt;/pre&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/samarthkumble/cutoff" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;h3&gt;
  
  
  A 4B model is a confident form-filler
&lt;/h3&gt;

&lt;p&gt;Gemma reads one email and fills a form: company, role, minimum CGPA, minimum %, branches, batch, max active backlogs, deadline. &lt;strong&gt;Every value has to come with the exact sentence it came from.&lt;/strong&gt; Then plain Python checks two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Is that sentence really in the email?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Is the value really in that sentence?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If either check fails, Gemma gets one retry that names the rejected value and the reason. If it fails again, the value becomes UNKNOWN.&lt;/p&gt;

&lt;p&gt;That leads to the one rule the whole project is built on:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;UNKNOWN can send a drive to "check it yourself", but never to "not eligible".&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Being told to skip a drive you could have applied to is the expensive mistake. Opening one extra email is the cheap one.&lt;/p&gt;

&lt;h3&gt;
  
  
  I measured it on my real inbox
&lt;/h3&gt;

&lt;p&gt;I exported my 50 latest placement emails, with classmates' names and addresses scrubbed, and labelled every field by hand. For drives whose emails don't state criteria, I opened each job on Superset to see whether it would let me apply. Then I ran three things against those labels: a regex baseline with no AI, Gemma with my first prompt, and Gemma with my third.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Regex, no AI&lt;/th&gt;
&lt;th&gt;Gemma, prompt v1&lt;/th&gt;
&lt;th&gt;Gemma, prompt v3&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Told "not eligible" but I was&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Told "eligible" but I wasn't&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sent to "check it yourself"&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;10&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Company / role correct&lt;/td&gt;
&lt;td&gt;0% / 22%&lt;/td&gt;
&lt;td&gt;100% / 91%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100% / 100%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Branch list correct&lt;/td&gt;
&lt;td&gt;69%&lt;/td&gt;
&lt;td&gt;81%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Seconds per email (median, Ryzen 5 5500U laptop, no GPU)&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;td&gt;67&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;39&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Emails that needed a retry&lt;/td&gt;
&lt;td&gt;–&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From the very first run, Gemma got all 32 CGPA cutoffs and all 32 percentage cutoffs right. Everything interesting happened in the other fields.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Gemma got wrong, and what fixed it
&lt;/h3&gt;

&lt;p&gt;Every run writes a report listing each mistake with its evidence. These are real ones:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. It invented "All branches".&lt;/strong&gt; Superset's "Open for application" emails say nothing about branches. In v1, Gemma filled in &lt;code&gt;["All branches"]&lt;/code&gt; for almost every one of them. Grounding rejected each one ("the evidence is not copied word-for-word from the email"), and that's where most of the 16 retries came from. In v2 the prompt says to return "All branches" &lt;em&gt;only if the email says so&lt;/em&gt;. Retries dropped from 16 to 2, and the median time per email from 67 s to 42 s.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. It read a batch year from a file name.&lt;/strong&gt; It quoted &lt;code&gt;KPMG_Format_(Registrations-UG) - 2027.xlsx&lt;/code&gt; as evidence that the drive is for the 2027 batch. It also read "for a January 2027 start" as a graduation year. Prompt instructions didn't stop either one, so I made the check stricter: a batch year's evidence now has to say &lt;em&gt;batch&lt;/em&gt;, &lt;em&gt;graduating&lt;/em&gt;, &lt;em&gt;passing out&lt;/em&gt; or similar. Text from the attachment list doesn't count as evidence at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. It called a category a role.&lt;/strong&gt; "Job Profile Category : Tier 1" became the role "Tier 1". One line in the prompt fixed it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. It applied one role's rule to the whole email.&lt;/strong&gt; NxtWave's email offered two roles. Only one of them said "Open to 2026 graduating students", but Gemma applied that to the whole email and Cutoff told me I wasn't eligible. Telling it in the prompt not to do that didn't work. What did work was &lt;strong&gt;asking it a yes/no question instead&lt;/strong&gt;: &lt;em&gt;does this email have several roles with different criteria?&lt;/em&gt; Gemma answered that correctly, and the code takes care of the rest: failing one role's rule now means "check", not "no". That was the biggest lesson of the week. &lt;strong&gt;Don't hand a small model a policy. Ask it a question, and let the code decide what follows.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Some mistakes were mine, not Gemma's:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Quoted replies.&lt;/strong&gt; Forwarded emails start their lines with &lt;code&gt;&amp;gt;&lt;/code&gt;, so a correctly quoted sentence failed the word-for-word check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Toyota.&lt;/strong&gt; Gemma correctly read "2027 passing out". My rules then called the drive eligible, even though the email says the rest of the criteria are "mentioned in the above attachment". Now that phrase blocks a clean "eligible".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Four of my own labels were wrong.&lt;/strong&gt; I listed each correction, with its reason, in the labels file.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Things only a real inbox teaches you
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The same drive arrives in 2–3 emails.&lt;/strong&gt; IBM sent a forwarded company email with full criteria, plus two Superset notices with none. Cutoff matches them by company, so the notices borrow the forwarded email's criteria. That alone turned 8 "check" results into real answers. Borrowing can turn "check" into "eligible", but never into "not eligible", because the other email might be about a different role.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"CS" is not "CSE".&lt;/strong&gt; Superset let me (CSBS) apply where the email said "CS", for IBM and KPMG. It didn't where the email spelled out "Computer Science &amp;amp; Engineering", for Tejas Networks. I'd never have guessed that, so it's two separate switches in my profile.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"70%/7.0 CGPA" is an either-or, and it only applies to the degree.&lt;/strong&gt; "60% throughout in 10th, 12th, Graduation" applies to all three. Cutoff reads which marks a cutoff covers from the sentence that states it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hackathons promise PPOs.&lt;/strong&gt; Gemma kept calling some of them drives, so a rule on the subject line now skips them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What it still can't see
&lt;/h3&gt;

&lt;p&gt;The one remaining "not eligible" mistake is EY's email asking the college to confirm a schedule. Gemma says it isn't a drive, and honestly that's arguable. Of the 10 "check" results:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;6 have no criteria anywhere in the email:&lt;/strong&gt; three Superset notices for EY, one each for BCE and Tata Power, and Migsak's own email.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3 keep them in an attachment:&lt;/strong&gt; two Invictus emails and Toyota.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;1 is NxtWave's two-role email.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For all of those, "check it yourself" is the correct answer. A next step would be reading the attached JD PDFs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;My data stays on my laptop.&lt;/strong&gt; My CGPA, backlogs, marks and my college inbox, along with my classmates' names in forwarded emails, never leave it. I wouldn't paste a week of placement emails into a hosted API, and most students shouldn't either.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Retries are free, so the checks can be strict.&lt;/strong&gt; On a paid API, every rejected value costs money, and there's pressure to accept "close enough". Locally a retry just takes 40 seconds, so Cutoff rejects anything it can't verify.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same email always gets the same answer.&lt;/strong&gt; Temperature 0, a fixed seed and a cache keyed on (model, prompt version, email) mean that. That made the evaluation trustworthy. It also meant that after changing a &lt;em&gt;rule&lt;/em&gt;, I could re-score all 50 emails in seconds instead of re-running Gemma for 35 minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Honestly, a bigger hosted model would probably need fewer retries&lt;/strong&gt; and might read the PDFs too. But for this job a 4B model on a laptop is enough, and it's mine.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Lazy Payoff
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Before:&lt;/strong&gt; open 50 emails a week, read each one down to its eligibility paragraph, and click through to Superset for the ones that don't say.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Now:&lt;/strong&gt; read 10 lines. 4 say apply, with the link. 6 say check, with the reason. Everything else (6 not eligible, 11 closed, 18 not drives) I never see.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model is lazy in the right way too. It's slow, about 40 s an email on my laptop (an AMD Ryzen 5 5500U with 16 GB RAM and no dedicated GPU), but it runs while I sleep, and nobody needs a placement digest in 200 ms. Slow and steady.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma.&lt;/strong&gt; Gemma 4 E4B, running locally through Ollama, is the only model in Cutoff. The project is about making a small open model &lt;em&gt;trustworthy&lt;/em&gt; on a real task: every value is grounded in a quote, one retry is targeted at the exact problem, UNKNOWN is never treated as "no", and it's measured against hand labels across three prompt versions.&lt;/li&gt;
&lt;/ul&gt;

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