Decision map
How SahKah decides
| # | Decision | Type | Why this type |
|---|---|---|---|
| D1 | Which issuer is this, and may the agent fetch it? | rules | An agent must never fetch arbitrary URLs. A host allowlist is deterministic, testable and can't be talked out of it. Look-alike domains are flagged, not fetched. |
| D2 | What does the issuer's page actually say? | rules → LLM fallback | Coursera embeds structured data; Credly states holder and issuer in one line. A parser reads them exactly. Only if that fails does an LLM read the visible text, and any value it returns that isn't on the page word for word is thrown away. |
| D3 | Is the claimed name the same person? | structured model | Identity needs a reproducible number, not a model's opinion. Token-level Jaro-Winkler with one-to-one matching handles name order, bin/binti, a/l, a/p, initials and joined syllables. |
| D4 | Is the claimed title the same credential? | LLM | Titles vary in wording far more than rules can cover. The LLM sees only the two titles and the page's credential type, never the name, and it has no power to act. Without an LLM a token model takes over, capped below the auto-verify bar. |
| D5 | What is the verdict? | rules | The only decision that changes state is an ordered, auditable table. The agent can verify or escalate; it has no reject action. |
Thresholds
| Auto-verify name score | ≥ 0.92 |
|---|---|
| Title confidence to auto-verify | ≥ 0.8 |
| "Likely mismatch" label below | 0.7 |
| Fetchable hosts | coursera.org, www.coursera.org, credly.com, www.credly.com |
| LLM in use | gemini:auto (newest Flash-Lite pair raced, Flash fallback) |
Verdict rules (D5), first match wins
| Rule | Verdict |
|---|---|
| R1 unsafe-or-unsupported-link | COULD_NOT_CHECK |
| R2 issuer-unreachable | COULD_NOT_CHECK |
| R3 no-certificate-at-link | COULD_NOT_CHECK |
| R4 suspicious-input | NEEDS_HUMAN |
| R5 expired | NEEDS_HUMAN |
| R6 missing-field | NEEDS_HUMAN |
| R7 name-likely-mismatch | NEEDS_HUMAN |
| R8 title-mismatch | NEEDS_HUMAN |
| R9 below-auto-threshold | NEEDS_HUMAN |
| R10 auto-verify | VERIFIED |
Accountability
| Data sources | Only the issuer's public page, fetched live. Each run stores the URL, time, HTTP status and SHA-256 of what was read. |
|---|---|
| Permissions | Anyone can submit a check and view its result. Approve, reject, undo and re-check need the reviewer passcode. The agent itself can only verify or escalate. |
| Escalation | Every non-certain case lands in the reviewer queue with the evidence side by side. |
| Undo | Any verdict, by the agent or a human, can be reversed. The original stays in the history and the ledger. |
| Disclosure | Every result says whether the agent or a human decided, and which rule fired. |
| Abuse limits | 30 checks per hour per device; 10 passcode attempts per 10 minutes; redirects re-checked against the allowlist; 3 MB page cap; 12 s timeout. |