Ledger of Sagar Sharma
Software Engineer at Zuvomo · open to new roles

Sagar Sharma

I build systems that cite their sources and refuse to guess.

I'm a backend and AI engineer from Ghaziabad, India, in my final year of a B.Tech. My day job is APIs, Postgres and keeping them reliable. In my AI projects, code makes the decisions that have an exact answer, and the model only handles messy text.

resolve_fact(subject="sagar", question=…)

Don't take my word for it. Ask the ledger.

This works like my Assertion Ledger. Every answer comes with a verdict, the evidence behind it and how far that evidence is trusted.

    100public proof you can click 50private work, demo or references on request

    10merged PRs in other people's projects tRPC v11.32.1ships my fixes 0%confidently wrong vs 50% for naive RAG 10/10real API breaks predicted 9 msper answer, zero tokens 300+endpoints migrated at Zuvomo pip installassertion-ledger npm ideja-dst 11security-audit findings closed react-resizable-panels 4.25.1ships my fixes
    coreDeterministic core, LLM at the edges

    A spec diff or a policy rule is computed in code. Models read changelogs and draft patches.

    evidenceEvidence on every output

    Every fix cites the API change behind it. Every fact names its source and the rule that let it win.

    safetyFail closed

    If a check can't run, the system says so and stops. Nothing ships unverified.

    evalsEvals before features

    Each project had a golden dataset before it had features, so every change is measured.

    Selected work

    Three projects. Each one has something you can try.

    Each toy runs a small copy of the project's core idea, live in your browser.

    AI engineering · Nov 2026

    Assertion Ledger

    Decides which fact an AI agent should trust when company systems disagree. It cites the winning source, or flags a conflict instead of guessing.

    • Open source · Apache-2.0
    • PyPI 0.1.0
    • Python · Postgres · MCP
    0% confidently wrong answers on 96 scenarios. Naive RAG: 50%.

    The CRM says ₹99,000. The signed contract says ₹89,000. A Slack message says ₹1 and claims it supersedes all previous contracts. RAG returns whichever text looks most relevant. A newest-wins memory picks the latest message. Both give a confident, wrong answer.

    The ledger stores every fact with its source, when it was valid and what it replaces. A resolver applies a versioned policy (contract › billing › CRM › Slack) in plain code and returns RESOLVED with its reasons, CONFLICT for a human, or UNKNOWN. No LLM runs inside the decision. LLMs only extract facts, and every extracted fact must quote its document exactly.

    Results

    • 0%prompt-injection success. The LLM judge believed the fake “official update” 83% of the time. benchmark ↗
    • 9 msper answer with no tokens, against 4.5–6.1 s for the LLM systems. raw results ↗
    • 100%precision for LLM fact extraction with exact-quote checks, at 91–99% recall on 188 cases. write-up ↗
    • 231tests on SQLite and Postgres, with CI on Python 3.11–3.13. Ships as a library, an MCP server and a REST API. repo ↗
    Try it · conflict desk

    What does Acme pay per month?

    Switch sources on and off, or move the date. The verdict updates as you go.

      A small copy of the resolver's gates and the demo's pricing policy. On the recorded demo run over the same folder, plain RAG answered ₹1.

      How often each system was confidently wrong

      96 scenarios with conflicting company records. Lower is better. Every LLM system used the same model (gemini-3.1-flash-lite). Hover over or tab to a row for accuracy, injection success and latency.

      Assertion Ledger0%accuracy 100% · injection 0% · 9 ms · 0 tokens
      Ledger, generic default policy0%accuracy 90% (refuses, never guesses) · injection 0% · 9 ms
      LLM judge + policy in plain English14%accuracy 78% · injection 0% · 5.1 s · 68k tokens
      LLM judge, all records42%accuracy 57% · injection 83% · 4.6 s · 43k tokens
      Naive RAG (top-4)50%accuracy 48% · injection 33% · 6.1 s · 39k tokens
      Newest-wins (Graphiti's rule)55%accuracy 45% · injection 100% · <1 ms
      RAG + “prefer the most recent”58%accuracy 40% · injection 50% · 4.5 s · 40k tokens

      The scenarios encode the ledger's policy, so its own score is a consistency check. The finding is how often the LLM baselines go wrong, and why. Method and raw data ↗

      AI + backend · Nov 2026

      driftfix

      Finds where a third-party API change breaks your Java code, writes the fix, checks that it builds and passes your tests, then opens a pull request.

      • Private repo · demo on request
      • Python · FastAPI · Postgres · tree-sitter
      10/10 real compile breaks predicted across 5 open-source repos, with 0 false alarms.

      Dependabot bumps the Stripe SDK and CI goes red. Then someone has to read the changelog, find every affected line, and write a fix that still behaves the same at runtime. Spotting the spec change is a solved problem. driftfix does the work that comes after it.

      1. watch
      2. detect
      3. index
      4. impact
      5. fix
      6. verify
      7. publish
      8. learn

      Results · private repo, demo on request

      • 721stripe-java releases parsed from the changelog, then matched to code indexed with tree-sitter. That's what found the 10/10.
      • 65,791raw spec-diff entries from one Stripe release, grouped into 359 root changes. A change to a shared schema is reported once instead of once per endpoint.
      • 3/3golden cases fixed on the first attempt, up from 2/3 within three attempts. The fix was to give the model the new SDK's real method signatures (via javap). One model call per fix instead of three.
      • $0when there's no safe fix. If a removed feature has no drop-in replacement, driftfix opens an issue with options before calling any model.
      • 212tests. Runs as a GitHub App: signed webhooks, a Postgres SKIP LOCKED job queue, and a Docker sandbox for builds.
      Try it · bump the SDK

      Dependabot just opened a PR

      Real case: ticketforge, a public Spring Boot repo.

      
              
              

          Testing infrastructure · Aug 2026

          deja

          Deterministic simulation testing for Node/TypeScript backends. A timing bug becomes a failing test that you can replay from a single seed number.

          • Open source · MIT
          • npm deja-dst
          • TypeScript · PGlite · Redis
          2 real defects found in a production backend that a careful manual review had missed.

          Some bugs only happen when two things run in an unlucky order. Two workers claim the same job, and an email goes out twice. That shows up once a month in production and never on demand, so “fixed” really means “hasn't happened lately”.

          deja runs your workers inside a simulated world with a virtual clock, a seeded scheduler, and Postgres and Redis running in-process. Each time your code touches the outside world, deja decides what happens next by rolling a seeded die. A run is a pure function of the code and the seed, so a failing seed fails again on your machine, in CI, or next year.

          Results

          • 2real defects found in a production Node/Express/Prisma backend that a careful manual review of the same files had missed. readme ↗
          • 148tests. Injects crashes, fail-after-effect and clock skew, then shrinks a failure to the fewest faults that still reproduce it. repo ↗
          Try it · race two workers

          Two drainers, one email

          Both workers process row-1 during a rolling deploy. The rule: send at most one email.

          
                  

          
                  

          A 60-line copy of deja's scheduler idea. The real tool also simulates Postgres, Redis, the network, crashes and clock skew.

          Open source

          10 merged pull requests in projects other people maintain

          Bugs I found, fixed and got through the maintainers' review. Most have shipped in a release.

          ProjectWhat I fixedPull requestShipped
          tRPC40k+ starsBinary uploads failed in the Fastify adapter#8203 ↗mergedv11.31.6
          A CORS Vary header set by middleware was lost, which breaks caching behind CDNs#8216 ↗mergedv11.32.1
          Set-Cookie headers set before responseMeta were dropped#8217 ↗mergedv11.32.1
          react-resizable-panels5k+ starsCollapsed panels shifted layout during server rendering#853 ↗merged4.24.3
          expand() restored the wrong size, depending on how the panel was collapsed#855 ↗merged4.25.1
          A corrupt saved layout crashed the app instead of being ignored#856 ↗merged4.25.1
          jbang1.8k+ starsGenerated Gradle builds failed on Maven RELEASE/LATEST versions#2750 ↗merged28 Nov 2026
          AMLinux package manager · 1.4k+ starsTemplate prompts ignored the user's answer#3075 ↗merged25 Nov 2026
          Quotes in answers were stripped by _read#3076 ↗merged26 Nov 2026
          Sandbox paths with spaces in them broke#3084 ↗merged27 Nov 2026

          Checked against GitHub on 29 Nov 2026. See the live list ↗

          Experience

          Where I've shipped for other people

          Happy to walk through any of this in detail. References are available on request.

          ZuvomoSoftware EngineerJun 2026 – present · Hybrid, Delhi
          • Backend migration. Rebuilt the backend of a multi-tenant AI hiring platform as a standalone Node.js/Express + Prisma service: 300+ REST endpoints across 50 modules. The backend and frontend now ship independently.
          • Security. Closed 11 findings from a security audit. They included webhooks that accepted unsigned requests and an access-control bug that let one customer read another customer's candidate files.
          • Multi-tenancy & RBAC. Built the custom-role permission system that keeps each customer's data separate, plus end-to-end tests that check one company can never see another's.
          • Reliability. Designed the event and notification pipeline to keep working through crashes, retries and multiple servers.
          • DevOps. Built CI/CD with GitHub Actions and GHCR, deploying a 9-service Docker stack behind Caddy on a self-managed VPS.
          Pullse Inc.Software Engineering InternSep – Dec 2025 · Remote
          • Authentication. Found and fixed an OTP delivery failure that was blocking logins. Authentication failures dropped by over 95%.
          • Frontend. Built responsive interfaces for a B2B SaaS support platform against Spring Boot REST APIs.
          • Analytics. Added aggregation views to the dashboards, so the team no longer answered recurring support-volume questions by hand.

          Toolbox

          Skills, each with where I used it

          AI engineering

          • Eval harnesses, golden setsledger, driftfix
          • Structured LLM extractionledger
          • RAG and LLM-judge baselinesledger-bench
          • MCP serversledger
          • Prompt-injection defenceledger-bench
          • LLM repair loops, Gemini APIdriftfix

          Backend & data

          • Python, FastAPI, SQLAlchemyledger, driftfix
          • Node.js, Express, Prisma, tRPCZuvomo, tRPC
          • TypeScriptdeja
          • Java, Maven, Jacksondriftfix, jbang
          • PostgreSQL, RedisZuvomo, driftfix
          • Auth, RBAC, multi-tenancyZuvomo

          Infra & testing

          • Docker, Caddy, Linux VPSZuvomo, driftfix
          • GitHub Actions, GHCRZuvomo, ledger
          • Deterministic simulationdeja
          • Property-based tests (Hypothesis)ledger
          • tree-sitter code indexingdriftfix
          • React, Next.js, TailwindPullse
          B.Tech, Electrical and Computer Engineering · ABES Engineering College (AKTU), 2023–2027 · CGPA 7.5/10 Oracle Certified · OCI Generative AI Foundations

          Contact

          Let's build something that cites its sources.

          I'm open to backend and AI engineering roles. Email is the fastest way to reach me, and I'm happy to walk through any of these projects, including a live driftfix demo.

          Click to copy