-
-
My own IBM certificate, verified from Coursera's page
-
Decision trail: rules, structured model, one LLM step
-
Append-only ledger: undo is a new entry
-
Decision map, thresholds and the D5 rule table
-
A real mistake: agent verified, reviewer undid, fix re-checked
-
Wrong name on a real link: escalated, never rejected
-
Paste a certificate link: three honest outcomes
Inspiration
Every CV now lists online certificates, and every one of them comes with a verification link. Course-platform certificates have no employer-side lookup: the only way to check one is to click the candidate's link and read it. Malaysian employers have said for years that fake credentials are an ongoing problem and that many companies skip the check entirely. I hold one of these myself (IBM Data Analyst Professional Certificate), so I built the checker I'd want a recruiter to use on me.
The hard part isn't reading a page. It's that a wrong "this is fake" costs a real applicant an opportunity. So SahKah ("sah kah?" is Malay for "is it valid?") acts alone in one direction only.
What it does
Paste a name, a certificate title and a Coursera or Credly link. SahKah:
- checks the link may be fetched (allowlist; look-alike domains are refused),
- reads the issuer's own public page (holder, title, date, credential type, expiry),
- scores whether the claimed name is the same person (Malaysian name forms: any order, bin/binti, a/l, a/p),
- asks an LLM only whether the claimed title is the same credential,
- returns one of three honest outcomes from an ordered rule table: Verified (agent acts alone), Needs human (a reviewer decides), Could not check (never treated as fraud).
The agent has no reject action. Only a human reviewer can reject. Every decision goes into an append-only ledger, and any verdict, by the agent or a human, can be undone.
Works beyond the demo
- Live at https://sahkah.vercel.app. Paste your own Coursera (verify or
sharelink) or Credly badge link. - Handles input it has never seen: unsupported issuers, broken links, look-alike sites, made-up codes, instructions hidden in the name field, expired badges and retired courses all have a defined path.
- Reviewer view: https://sahkah.vercel.app/review (judges' passcode:
sahkah-judge-2026). Approve, reject, undo, re-check live. - Abuse limits: per-device rate limit, passcode rate limit, redirects re-checked against the allowlist, 3 MB / 12 s caps.
Decision map (5 typed decisions)
| # | Decision | Type | Why |
|---|---|---|---|
| D1 | May the agent fetch this link, and which issuer is it? | Rules | Fetching must be deterministic and unarguable. Allowlist + URL patterns; look-alikes flagged, every redirect hop re-checked |
| D2 | What does the issuer page say? | Rules → LLM fallback | Coursera embeds structured data and Credly a summary line; a parser reads them exactly. The LLM fallback's output is discarded unless it appears verbatim on the page |
| D3 | Same person? | Structured model (0–1 score) | Identity needs a reproducible number, not an opinion. Token Jaro-Winkler with one-to-one matching, Malaysian particles, joined syllables |
| D4 | Same credential? | LLM (Gemini, temperature 0, JSON) | Titles vary in wording more than rules can cover. The LLM sees only two titles plus the credential type, never the name, and cannot act |
| D5 | Verdict | Rules (R1–R10, first match wins) | The only state-changing decision must be auditable line by line; each result names its rule |
Accountability layer
- Sources & state: only the issuer's public page. Each run stores final URL, time, HTTP status, size and SHA-256 of what was read, plus the evidence strings behind each field. Cases and ledger in Redis.
- Permissions: anyone can submit and view a result; approve / reject / undo / re-check need the reviewer passcode. The agent can only verify or escalate.
- Confidence gates: auto-verify needs name ≥ 0.92 and title confidence ≥ 0.80; name < 0.70 is labelled "likely mismatch".
- Human escalation: every uncertain case goes to the reviewer queue with the claim and the issuer record side by side.
- Undo: reverses the last status change; the original stays in history, and the ledger adds an entry pointing to what it reverses. Re-check live re-runs the agent on the current page.
- Disclosure: every result says whether the agent or a human decided, and which rule fired.
Fails honestly: what went wrong in testing
18 live test cases, 12 failure-oriented: 18/18 pass, median 1.8 s (full table, raw JSON for every case and screenshots in TESTING.md).
The recorded incorrect decision. During a probe run the agent auto-verified "Shermaine Yap Shi Ming" against a
certificate issued to "Shermaine Shi Min Yap": Jaro-Winkler scored ming≈min 0.985, as if it were a typo. In
Chinese names those are different given names. A reviewer clicked Undo with a note; the ledger kept the original
entry, greyed out and linked to the reversal. I changed the rule (short syllables must match exactly, pipeline 1.1.0),
added regression tests, and the reviewer clicked Re-check live: the same case now goes to a human with
"claimed but not on page [ming]; on page but not claimed [min]". The whole history stays on the case.
An outage, handled safely. In the first two live runs Gemini returned HTTP 503 and timeouts. The agent didn't guess: its fallback model is capped below the auto-verify bar, so four genuine certificates went to a human instead of being verified. That's slower for the reviewer and never unfair to the applicant. I then switched D4 to race two Flash-Lite models, with Flash as a fallback.
Limits I'm declaring: SahKah confirms that a link matches a claim, not that the person submitting it is the holder. It supports two issuers only. Coursera's retired-course pages show no title, so those always go to a human. Thresholds were tuned on 18 real cases, not a large labelled set.
Shows the work: how I built it
Feasibility before code: I fetched real Coursera and Credly pages from a server and found Coursera embeds holder, code, date and program data for every link type, and returns nothing for a fake code; Credly's JSON endpoint errors, but its page summary states badge, issuer, holder and "(Expired)". Dead ends and turns, including Apify (not needed), TypeScript 7 breaking the build, Vercel's bot checkpoint and the Gemini outages, are in the README's build-trail table. Every step is its own commit.
Built with: Next.js 15, TypeScript, Vercel, Upstash Redis, Gemini API, Vitest, Playwright. AI coding assistance (Claude) was used for the build; the test evidence comes from the live system.
Who pilots it next: me, in a graduate-hiring / HR screening workflow at my next workplace, measured by reviewer minutes per CV and how often reviewers undo the agent.
Links
- Live: https://sahkah.vercel.app (reviewer passcode
sahkah-judge-2026) - Code, decision map, accountability layer, tests: https://github.com/ShermaineYap/sahkah
- Test evidence: https://github.com/ShermaineYap/sahkah/blob/main/TESTING.md
- Demo video: https://youtu.be/w5wQL-1rUmI
Team: Shermaine Yap Shi Min (solo), Asia Pacific University of Technology and Innovation, Malaysia.
Built With
- gemini
- next.js
- playwright
- redis
- typescript
- upstash
- vercel
- vitest