<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ankit Sinha — Notes</title>
    <link>https://anki.site/</link>
    <description>Short engineering notes on backend correctness, financial state machines, and AI infrastructure.</description>
    <language>en-us</language>
    <atom:link href="https://anki.site/rss.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>Plain-code reconciliation before the LLM</title>
      <link>https://anki.site/notes/reconcile-before-llm.html</link>
      <guid isPermaLink="true">https://anki.site/notes/reconcile-before-llm.html</guid>
      <pubDate>Sat, 28 Nov 2026 14:00:00 +0530</pubDate>
      <description>Letting deterministic SQL close clean settlement rows first, while keeping idempotency keys and timeouts in code.</description>
    </item>
    <item>
      <title>Two-phase micro-USD reservations in SQL</title>
      <link>https://anki.site/notes/micro-usd-reservations.html</link>
      <guid isPermaLink="true">https://anki.site/notes/micro-usd-reservations.html</guid>
      <pubDate>Sat, 28 Nov 2026 13:00:00 +0530</pubDate>
      <description>Preventing concurrent LLM requests from racing past virtual-key budget caps without holding database locks across network I/O.</description>
    </item>
    <item>
      <title>Verify passphrases before consuming a view</title>
      <link>https://anki.site/notes/verify-before-consume.html</link>
      <guid isPermaLink="true">https://anki.site/notes/verify-before-consume.html</guid>
      <pubDate>Sat, 28 Nov 2026 12:00:00 +0530</pubDate>
      <description>Keeping self-destructing secrets atomic in PostgreSQL so bad passphrase guesses never burn reads and files expire with the note.</description>
    </item>
    <item>
      <title>Row locks, cursor outboxes, and Redis rebuilds</title>
      <link>https://anki.site/notes/cursor-outbox-leaderboards.html</link>
      <guid isPermaLink="true">https://anki.site/notes/cursor-outbox-leaderboards.html</guid>
      <pubDate>Sat, 28 Nov 2026 11:00:00 +0530</pubDate>
      <description>Keeping an idle-game economy linearizable in PostgreSQL while draining bonus batches by cursor and rebuilding Redis leaderboards.</description>
    </item>
  </channel>
</rss>
