Krishna Misra

Bengaluru, India

Krishna Misra

Every call scored against the rules. One verdict is missing, so it fails.How that fail was caught

0generations

Conway’s Game of Life, rule B3/S23. Four rules, no randomness, Turing complete. The gun at the top fires a glider every 30 generations. Scroll is the clock; scroll back and it runs backwards. New to it? How the Game of Life works ↗

How the work ran.

Two years, four companies: from OCR models as an intern to running an AI platform alone.

career.run

MedWanderBusiness Analyst InternAug – Nov 2024

First models in production: OCR and entity extraction

First contact with models in production-shaped work. OCR with PyTesseract, then GPU-accelerated entity extraction with BERT, RoBERTa and spaCy, plus a LangChain and FastAPI chatbot.

Anagram Media LabsData Scientist InternDec 2024 – Mar 2025

Data plumbing, from 1M to 4.5M records

1M → 4.5Mrecords into PostgreSQL

Plumbing before intelligence. Python ETL into PostgreSQL on RDS, from 1M to 4.5M records, and a media migration to S3.

QwikGigAI Developer & Consultant · led two engineersMar 2025 – Aug 2026

Turning hand-sampled call audits into a product

2.5M+recordings, 40+ call centers

I worked with the founders to turn hand-sampled call audits into a product, and led two engineers from prototypes to production. By August 2026 the platform had reached 40+ call centers and ingested 2.5M+ recordings.

Read the write-up →

Mar 2025 – Feb 2026claims.document_gate

A check that stops the wrong letter going out

Before the AI, the claims business. I wrote the checks that compare each letter of authority against the CRM record before it can be emailed. A false means the email never leaves. Sanctions screening ran against the live UK list.

Sep 2025calls.first_scorer

The first AI check was a batch job

The platform started as a batch job. It took call transcripts with no compliance report yet, checked them against a written FCA and SRA ruleset for car-finance claims, and wrote the result back onto the call. The production pipeline is that job, rebuilt around a queue.

Sep 2025video.one_pass

Three minutes per ten-second ad, down to one model pass

Captioning a video frame by frame took about 3 minutes for a 10-second ad. I replaced it with one native Gemini pass over the whole file.

3 min → 1 passper 10-second ad

Feb – Mar 2026build_then_buy

Built a GPU speech stack, then replaced it in 2.5 weeks

I built a self-hosted WhisperX and pyannote stack on a GPU instance, then replaced it with AssemblyAI inside the same queue design within about 2.5 weeks. Owning the model was not the product.

Read the write-up →

2.5 weeksto swap the GPU stack for AssemblyAI

Mar – Apr 2026eval.model_choice

Picking the model that didn’t hedge

Gemini 2.5 Flash against 3.1 Flash-Lite on the same calls: 14 vs 9 violations flagged, 4 vs 16 inconclusive. The lighter model hedged. I chose the decisive one.

14 vs 9violations flagged; 4 vs 16 inconclusive

audio.dual_mono

Two identical channels, so every line was transcribed twice

Some stereo files carried the same audio on both channels, so every utterance was transcribed twice. One ffmpeg astats pass now tells true stereo from a copy, and any failure falls back to mono, which can’t duplicate.

Show the channel check
L
R
L − R = 0 went unchecked, so both channels were sent:
  1. Agent Hi, you’re through to the claims team.
  2. Agent Hi, you’re through to the claims team.
astats: the difference channel is silent, so the file is treated as mono:
  1. Agent Hi, you’re through to the claims team.
Illustration. The line of dialogue is invented; the bug and the fix are real.

2× → 1×transcripts per utterance

image.cpu_reencode

An SDK silently re-encoding every image

The SDK silently re-encoded every image to PNG: 0.9–3.4 s of CPU per asset, blocking the event loop. After the fix it takes ~0.1 ms, with byte-identical regression tests.

~0.1 msper image, was 0.9–3.4 s

evidence.recovery

Cited quotes that couldn’t be found: 0/9 to 9/9

0/9 → 9/9rules with their evidence found

Quotes the model cited kept failing to match the source after markdown, punctuation and smart quotes. I rebuilt the normalization. Checked on real traces, evidence recovery went from 0/9 to 9/9 rules.

Try the quote matcher

TranscriptThere’s no guarantee you’ll get a refund, and our fee is 39.9% of what you recover.

  1. Exact match: the quote appears verbatim, so it is kept.
Runs in your browser: a simplified rewrite of the production resolvers. Exact, then normalized, then fuzzy at 85 or above, and a fuzzy match must keep negation and figures and cover 60% of the quote’s words.

Jun 2026scorer.penalty_model

The model doesn’t set its own penalty

I designed the scoring used across calls, images, video and text. Severity comes from the client’s rule, never from the model. When several violations share one piece of evidence, each extra one counts for less. In June 2026 I took the model’s confidence out of the score.

−15 / −10 / −5 / −2critical to low, set by the rule

Jul 2026scorer.false_pass✕ MAX_TOKENS

A model ran out of words, and the audit passed

MAX_TOKENS → passfixed in the bundle checker

I swept six scorers for how they handled a model that stopped mid-answer. Truncated output meant fewer violations, and fewer violations meant a pass. I made it a rule that an unfinished answer is retried or marked undetermined, never passed. It landed fully in the bundle checker at AuditSail.

Read the write-up →
Open the scoring sheet
Scoring sheet Reconstruction · July 2026
  1. Disclosure presentAnswered
  2. Agent identifiedAnswered
  3. Terms explainedNo answer
Original scorer Pass

Two answers came back clean. Counting violations let the whole batch pass.

Inspect the model output
[
  {"rule": "R1", "violated": false},
  {"rule": "R2", "violated": false},
  {"rule": "R3", "viol

Stopped · MAX_TOKENS

Aug 2026dashboard.average

A dashboard average that was quietly wrong

38 of 39calls counted; the lost one scored 87

The customer dashboard’s averages were wrong, in a backend I didn’t own. The proof came from production: an hour with 39 scored calls showed a count of 38 and an average of 87, which was exactly the score of the missing call.

Show the lost call
SET total on every 10-second flush. The dashboard said count 38 · avg 87, and 87 was the score of the call it had lost.
Exactly one writer, increments only, and the average derived inside one transaction: count 39, with every scored call in the average.
One hour, 39 scored calls, from production.

backfill.resume

A backfill interrupted halfway still landed exactly

Syncing scores from MongoDB to PostgreSQL, a dry run planned 493 updates. The live run stopped after 384. It resumed from its checkpoint and applied 109 more: exactly 493, nothing lost and nothing written twice.

384 + 109 = 493updates; none lost, none doubled

The team was laid off. I kept the platform running.

Sep 2026team.laid_off

AuditSailFounding AI Engineer · soloSep 2026 – now

Running an AI platform alone

15 servicesone AI engineer

I’m the sole AI engineer on a live platform, with 15 services to own. The work now is making one fix reach everything.

Sep – Nov 2026lib.adoption

One shared library under nine services

9 serviceson one library, 19 releases

I prototyped a broad SDK first, with 315 tests, to find where the boundary belonged. What shipped is narrower: the contract around the model call. The library owns the contract, the service owns its dependencies. 19 releases later, 9 services run on it, the pilot service alone dropped 627 lines of its own error contract, and one release corrected a ~2× cost over-estimate everywhere at once.

agent.guidelinesrunning

An agent that writes the rules the audits run on

Turns a regulatory document into the rules the audits run on. It fans out across eight UK regimes, and a citation ledger checks every citation against the sources actually retrieved during the run. Quick runs finish in under 4 minutes for $0.38.

$0.38per quick run, under 4 min · dev/test

rules.legalruleml_lite

A rule schema the checkers can decide on

I designed LegalRuleML-lite, a rule-derivation schema. The model never picks a rule’s type: code derives one of six from the rule’s modality and its condition. Each rule carries a verbatim citation, and code assigns its ID and hash. A rule reaches the compliance checkers with enough context to decide pass or fail on its own.

6 rule typesderived by code, never by the model

onboarding.verbatim

A registration number counts only if the company printed it

Onboarding reads a company’s own website and prefills its UK registration numbers: FCA, SRA, Companies House, ICO. A number the model reports is kept only if it appears word for word on a page it scraped.

Nov 2026bundle.decompose

250 model calls, down to 22

250 → 22model calls

A full social ad bundle has 250 combinations to check. Reading each piece once and combining facts in code needs 22 model calls. On a real fixture it cost $0.17 instead of $1.27, with 10/10 agreement on rule status. A model that stops early now splits the batch and retries; anything still undecided is marked undetermined, not compliant.

Read the write-up →
Show 250 calls become 22
250 model calls, one for every combination in a full 10×5×5 bundle.
22 model calls: each piece is read once, facts are combined in code, and the model judges only the overall impression.
Full 10×5×5 bundle: 10 cards, 5 headlines, 5 primary texts.

finish_reason: "stop"End of trace, for now. Read the résumé or write to me.

Every tool I’ve shipped with.

The trace is what I built; this is what I built it with. Tools sit near tools that do similar work.

Start with Redis →
Meaning: bge-small-en-v1.5 embeddings of each description, t-SNE to 2D; lines join the five nearest (cosine similarity). Time: the year each began, per its source.

58 tools. Pick a dot.

Each one opens what it does, where I used it, and where it came from.

That’s the work. Off the clock it’s the same habit: open the thing up and look inside.

A blog, a desk, a shelf, and the server this page runs on.

krishna.log

Read the blog ↗

Not really a tech blog. Whatever I’m thinking about; code only sometimes.

Self-hosted WriteFreely: no ads, no algorithm, no tracking. Follow from any Mastodon account, or by RSS.

Follow
@zimer@blog.krishnamisra.com
  • The Strange Death of The Quirky Internet

    If you are like me, someone who grew up in the early days of the internet, before the algorithmic feed and before it became so heavily monetized, I am sure there must be a part of you which feels a…

Three keyboards on my desk.

In rotation. Pick a board and type.

Board I · Sapphire & Violet (Tactile 62g) Tap or type any key 0 keystrokes

Away from the keyboard.

Reading
Whatever’s on the shelf below.
History
Rome to the World Wars, revolutions in between.
Playing
Red Dead Redemption 2.
On the shelf, lately. Pick one up.
Animal Farm — George Orwell

The seventh commandment, before and after. Nobody announced the change.

- All animals are equal.
+ All animals are equal
+ but some animals are more equal than others.
Turn the medal over.

Meditations’ author, cast in bronze by Giovanni del Cavino in the sixteenth century. Marcus Aurelius at The Met ↗

Served from a Raspberry Pi.

Angle

Drag to turn the board · Pick the silicon die or ports to inspect

The page you’re reading is served from a Raspberry Pi on my desk. Nothing on it phones home: no trackers, no third-party scripts.

This site
Raspberry Pi 4B, static HTML, atomic flock releases
Desktops
Manjaro (personal) & Pop!_OS (work)
Blog
krishna.log, WriteFreely on the same Pi, with RSS and ActivityPub
Privacy
CalyxOS on a Pixel 8a, Proton for mail and storage