Changelog
Newest first. Rules-pack versions are called out because clients cache against them.
2026-11-23 — New rules reach the phones without opening the app
GET /v1/rules/packis sentCache-Control: no-cache(wasmax-age=3600), so a phone revalidates on every sync instead of answering from its own HTTP cache for up to an hour after a deploy. Unchanged packs still cost a304.- The pack's ETag now covers the indicators and the region as well as the rules and entities. It used to answer
304to a phone holding old indicators. - Android refreshes the pack every 6 hours in the background (
RulesRefreshWorker), not only when the app is opened. The iOS README tells the iOS app to do the same withBGAppRefreshTaskand on every foreground. - The Android app builds again. It had three faults that stopped any build:
backend/rules/*.yamlinside a Kotlin comment opened a nested comment that never closed, the manifest named a launcher icon that didn't exist (added: the white shield on the brand teal), and the UI was missing a Compose import. docs/website-functions.md: what each part of the website does, in plain words, for judges and demos.
2026-11-22 — UAE PASS scams, threats and misspellings (rules 2026.11.22-1)
Reported: "please send uae pass details" and "uae pass wrong details please access the link if you dont acces the link now you will be fined" came back "No warning signs found", as texts and on calls.
- New rules, English and Arabic, for texts and calls:
uaepass-details-request: asks for your UAE PASS details, PIN, password or code (0.75).uaepass-problem-link: a UAE PASS "problem" (wrong details, suspended, expired, blocked) fixed through a link (0.6).open-link-or-else: a penalty or threat for not opening a link ("you will be fined", "i will …") (0.6).comply-or-penalty: arrest, a fine or a blocked account unless you act now (0.5).- The patterns accept how these texts actually arrive: misspelt, in text-speak and in capitals ("plz send ur uae pass detials", "acess the link imediatly or u will be fined"). Urgency also matches its misspellings ("urgnt", "imediatly") and Gulf Arabic ("بسرعة", "الحين").
- Profanity has no weight. "I will screw you" counts only as the threat for not opening the link.
- Each new rule alone is "Be careful" (safety invariant 12). Two together are "Likely a scam". On a call, each one shows a warning line, with the Arabic ones in both languages. The advice names the UAE PASS help desk, 600 561111 (icp.gov.ae, 24/7).
tests/test_uae_pass.py: 24 scams and 22 genuine look-alikes, as texts and as call lines.
2026-11-22 — Live Call: misheard names and a box to type what was said
- Chrome's recogniser turned a spoken "UAE PASS" into "EUPASS", so a UAE PASS call was never recognised as one. Entities can now list how recognisers mishear them (
heard_asinrules/known_entities.yaml); the live call puts the real name back before the checks run. UAE PASS has English and Arabic mishearings. Entities version2026.11.22-1. - Live Call has a box to type what the caller said when the recogniser gets it wrong. Typed text is checked exactly like a finished sentence of speech and shows in the transcript marked ✎.
- Where Chrome supports it, the recogniser is told to expect a few names (UAE PASS, Emirates ID, ICP, OTP and their Arabic forms). A browser that refuses the hints is used without them.
2026-11-22 — A Postman link to share
/postman.json: the Postman collection as plain JSON, for Import → Link. The download URL was rejected by Postman's link import ("Incorrect format").- The spec files (
/postman.json,/guide/api/postman.json,/openapi/v1.json,/guide/api/samples/.json) answerHEADand sendAccess-Control-Allow-Origin:, so browser-based tools can read them. They are public files with no user data; credentials are never allowed.
2026-11-22 — An exact PhishTank match is "likely scam"
- A link that PhishTank lists exactly now puts the verdict at
likely_scamor higher (score at least 0.50, up from 0.30).docs/link-lists-eval.mdmeasured zero list false alarms on 105 real legitimate links. Whole-site matches and URLhaus (not yet measured) stay at "be careful". The link's own score is unchanged at 0.75 or more.
2026-11-22 — VirusTotal link check, on request
POST /v1/links/virustotalchecks one link against VirusTotal when the user asks. It needsconsent: true(400 without), is capped site-wide below the free API's limits (4/min, 480/day), caches reports for an hour, and never calls a link safe. Off untilVIRUSTOTAL_API_KEYis set (capabilities.features.virustotal_check).- Web client: a "Check this link with VirusTotal" button under each link, with a consent prompt. The Privacy page says what is sent, and that the link lists are checked on our server.
2026-11-22 — Link lists: PhishTank, URLhaus
- New
urls[].listed_by: a link named by a downloaded list says which list and how old it is ("this link is listed as phishing by PhishTank (list updated 3 h ago)") and scores at least 0.75. That's the ceiling for an unmeasured signal (invariant 12) untildocs/link-lists-eval.mdmeasures the false-alarm rate. The verdict is never "safe" while a listed link is present. A whole site matches only when listed as a site or with two or more listed links, and never for shared platforms or official domains. Lists older than 3 days are ignored, andops checkwarns when none are fresh. scamguard-feeds.timerdownloads PhishTank (keyless, every 8 h) and URLhaus (needsURLHAUS_AUTH_KEY) on the server. A failed download keeps the last good list. Lists never enter the device rules pack.
2026-11-22 — DefAI
- The website, docs site, API title, quickstart and Postman collection are now DefAI (
DefAI API,DefAI.postman_collection.json). Server internals, the package and the mobile projects keep theirscamguardnames. - New "teal shield" theme. Dark and light text and button colours are all at least 4.5:1, checked by tests. The safe, caution and danger colours are unchanged.
2026-11-21 — Postman collection
/guide/api/postman.json: a Postman v2.1 collection of every documented example, with the real responses saved and a test per request. It's generated fromdocs/api/examples.jsonbybackend/scripts/capture_samples.py, and a test fails if it drifts.
2026-11-21 — Automatic deploys
- A new CI job,
promote, moves thelivebranch after every test job passes on a push tomain. It never force-pushes. - The Azure VM follows
liveevery 2 minutes (deploy/update.sh, installed as/usr/local/bin/scamguard-updatewith a systemd timer). It checks out, installs, runsapp.ops check, restarts, and health-checks. If anything fails it rolls back by itself and won't retry the bad commit. It runs as the app user, not root, with one sudo rule to restart the app. It checks every 30 seconds (AccuracySec=5s), so a merge is live about 2 minutes later. - The API's own description (shown first by Swagger and code generators) now sends app developers to
/guide/ios-quickstartand/openapi/v1.jsoninstead of the moving/openapi.json. This was the first change deployed automatically. setup-azure.shnow checks outlive(ormainbefore the first promotion) instead of pulling, and installs the updater.- No API or detection behaviour changed.
2026-11-21 — iOS quickstart and a stable API contract
- New public page iOS quickstart: base URL, no-key authentication, verdict and coverage meanings, errors with retry advice, limits, timeouts, privacy, and a minimal Swift client.
/openapi/v1.jsonserves a committed snapshot of the API schema (docs/api/openapi-v1.json) that only changes when regenerated withbackend/scripts/export_openapi.py. The test suite fails when it drifts.- Sample JSON for app previews at
/guide/api/samples/<name>.json, captured fromdocs/api/examples.jsonbybackend/scripts/capture_samples.py, which also replays them against a live server (--check <base-url>). - No API behaviour changed.
2026-11-20 — Requests that slipped past, and a caller check (rules 2026.11.20-1)
Reported: "in Arabic, sometimes being asked for the OTP triggers the alarm and sometimes it doesn't; sometimes asking for personal details doesn't trigger at all, in Arabic or English." Measured on recogniser-style text — no punctuation, dialect, dropped hamza, loanwords in Arabic script — 53 of 100 requests for a code or a personal detail raised no warning.
| Before | After | |
|---|---|---|
| Arabic code requests | 21 / 35 | 35 / 35 |
| Arabic personal-detail requests | 6 / 20 | 20 / 20 |
| English code requests | 12 / 23 | 23 / 23 |
| English personal-detail requests | 8 / 19 | 19 / 19 |
| Held-out requests, written after the rules and run once | — | 25 / 30, then 29 / 29 |
| Genuine call lines flagged (design + held-out) | 3 / 75 | 0 / 75 |
- Arabic spelling is folded before matching — text and patterns alike (
fold_arabic): hamza forms, ة/ه, ى/ي, diacritics, tatweel, Arabic-Indic digits. "أعطني الأو تي بي" missed while "اعطني الاو تي بي" fired. The phone pack still ships patterns as written, because the phone engines don't fold. - New call-only rules:
call-code-readbackandar-call-code-readback(read the code / the numbers / the message back; pre-announced codes, "بيوصلك كود الحين عطني اياه"; Gulf, Egyptian and Levantine forms),call-personal-detailsandar-call-personal-details(Emirates ID, passport, IBAN, account and card numbers, card back digits and expiry, photos of them). Weight ≤ 0.75 until measured; they complete the combo alarm. - Date of birth never alarms alone (
call-identity-question, combo-only): an existing test said so — clinics and your own bank ask for it — and it was right. After a false identity claim it completes the combo. - Two older false alarms found by the held-out set: "the three digits on the back of the receipt" (
call-credential-talk) and "اعطيني الرمز حق الواي فاي" (ar-otp-share-request). - Caller check — new, see caller-check.md. Type the number; during the call ScamGuard checks it against who the caller claims to be: number type (a bank on a personal mobile, or from abroad), the registry's verified numbers, community reports, earlier findings — and, with consent, the web: is the number on the organisation's own site, and is it reported? Results land on a card on the live-call pane, in alert lines and in the score; a reported number alarms before the caller speaks. Findings are kept in a
caller_evidencetable (fingerprints only) as the start of a source of truth;python -m app.ops numberslists numbers found on official sites for a person to promote into the registry. New endpoints:GET /v1/call/{id}/status,POST /v1/call/{id}/caller,POST /v1/caller/check. - Safety invariant 13: a caller's number can only raise the risk. An official match never lowers it — caller ID is spoofable.
- Fixed: with no number typed, a caller claiming Emirates NBD was told "the number calling you is NOT one of their official numbers". A withheld number is now "nothing to check".
- Identity claims as a recogniser writes them: "معاك" (Egyptian/Levantine), "احنا من", "اتصل عليك من", "موظف في", "Emirates NBD here", "the fraud team at FAB", "I work for …". Aliases and text are folded too. Registry: Abu Dhabi Islamic Bank added (domain only — numbers go in once verified), Arabic names for Dubai and Abu Dhabi Police, Etisalat and Mashreq.
2026-11-19 — Arabic on a live call: the page was listening for English
Reported: speaking Arabic, the page said "the speech service is not returning any words. This is the speech service, not your microphone." Neither was at fault. The browser's recogniser understands one language per session and cannot tell which one is being spoken. The page defaulted to the browser's own language — English on most computers — so Arabic produced nothing, and the diagnostic never considered a language mismatch.
- Auto (Arabic + English) is now the default. It starts in the likeliest language and, when someone is clearly talking but no words come back, switches to the other: about 3½ seconds of speech in tests, warning on screen at about
- It remembers the language that worked, on the device only, so the next call starts there — disclosed on the Privacy page.
- The listening language is always on screen, with one tap to switch. Choosing a language by hand turns Auto off. The diagnostic now names the language it is listening for instead of blaming the speech service.
- "Is someone talking?" is judged against the room's own background, not a fixed level that a quiet speakerphone never reaches; quiet time drains it, so keyboard clicks never add up to speech. Recogniser restarts no longer reset the clock — Chrome ends sessions by itself, and a recogniser that kept ending was never doubted. A language that has produced words needs far more evidence before Auto leaves it, and every fruitless switch doubles the bar, so noise alone cannot keep it restarting.
- Unsupported variants fall back (ar-AE → ar-SA → ar-EG …); a browser with no Arabic recogniser at all says so and names the browsers that have one.
- Server: Arabic rules run whenever Arabic is in the text. Rules with
locales: [ar]were skipped when a call or message resolved to English or "mixed", so a call that switched to Arabic part-way ("ابي الرمز اللي وصلك") raised nothing, and neither did a mostly-English text with an Arabic request in it. A locale-restricted rule now also runs when its script is present (_SCRIPTSinapp/core/rules.py). Ordinary mixed chat stays clean. - Tests: a scripted recogniser that only understands one language, behind a voice-like synthetic microphone — Auto switches and warns; a working language is never abandoned; a fixed language explains itself and offers the switch; variants fall back; a quiet speakerphone and a constantly restarting recogniser are both noticed (both tests fail against the page before this fix); noise backs off; the language is remembered. Mixed-language calls and texts in
test_call_rules.py, with benign twins.
Not yet: the Android and iOS on-device engines still pick one language per message by majority script, so on the phone a mostly-English SMS skips the Arabic rules. Same fix; not ported, as neither app can be built in this environment to test it.
2026-11-14 — Fast UI audit
Measured in a real browser (desktop, phone, dark mode): 41 defects before, none after.
- "Be careful" now says what to do about the tactic. It told someone looking at a loan-fee demand "do not click links or share codes" — the phishing sentence — and labelled it "phishing generic". Since 12 November a single pattern hit reads "Be careful", so that was the most common result for a scam. The engine now returns advice per tactic (
_TACTIC_ADVICEinapp/core/analyzer.py; every client gets it throughrecommended_action): "Don't pay it. Real loans, prizes, refunds and parcels are never released by paying a fee first — the fee is the scam." English only for now. - Plain-language labels on the result: "pretends to be a bank", "investment scam"; nothing at all for the catch-all category.
- Contrast. Muted text was 4.37:1 on the page and 4.14:1 inside notices, small amber text 3.52:1 — under the 4.5 minimum. Now 5.05 and 5.72; a test computes the ratios from the stylesheet.
- Tap targets. Example links (28 px), footer links (21 px) and the phone numbers in the help block (16 px) are now 32 px or more; examples are chips.
- Paste and Clear on the message box, and Ctrl/⌘ + Enter to check. Paste only appears where the browser can read the clipboard; Clear also clears the verdict.
- Phone layout: shorter intro, and the examples sit under "Check it" instead of pushing it off the first screen.
2026-11-12 — Tactic audit: most scam types were not covered (rules 2026.11.12-1)
Asked to check that every scam tactic works, the suite was green — and the answer was still no. The tests checked the tactics the engine was built around. Asked a different question — for each way people actually get scammed, does a realistic message get flagged? — the engine knew bank, government, delivery and code-theft messages and almost nothing else.
| Before | After | |
|---|---|---|
| 132 scam messages, 20 tactics, English and Arabic — missed | 98 | 0 |
| …flagged "Likely a scam" or "Scam" | 19 | 75 |
| …flagged "Be careful" | 15 | 57 |
| 313 genuine messages — wrongly flagged | 10 | 0 |
| Red flags on a live call that raise a warning (7 tactics) | 10 / 18 | 18 / 18 |
Tactics that had no coverage: advance-fee (loan, inheritance, prize, parcel), investment and crypto doubling, pay-per-task and pay-to-be-hired jobs, romance, "hi mum, new number", boss and gift-card fraud, fake renewal with a number to call, marketplace and rental tricks, recovery scams, wallet recovery phrases, charity appeals to personal accounts, QR-code fines, blackmail, and tech-support scares. Twenty-three rules were added, five of them Arabic; several older rules were widened or corrected.
The part worth remembering: the first version of these rules was wrong. It passed every list — all 146 genuine messages clean — and then flagged 29 of 52 genuine sentences written deliberately from the rules' own vocabulary, most as "Likely a scam": "I had to pay a clearance fee first", "she earns a commission for rating hotels", "Guaranteed returns? Sounds like a scam to me." The friendly lists had measured nothing. What fixed it:
- A demand is aimed at the reader. Narration ("I had to pay…", "she earns…", "did you pay…?") and questions are not demands.
- The object matters. "Pay the fee to receive your order" is a delivery; "…to release the funds" is the scam.
- An identity claim needs a money ask. "New number, save it" is nothing; "new number… can you send 2000" is the scam.
- Direction, again. "I'll send you the gift card code" is a present.
A second adversarial batch then went from 37 of 62 clean to 56 — better than the rules as they stood that morning (54), despite 23 more of them.
Calibration. With no measured false-positive rate (still the blocker in roadmap.md), one hit on a pattern rule now says "Be careful" with the specific reason; it takes a second signal — urgency, another rule, a bad link — to say "Likely a scam". Three tactics are definitive alone: a wallet recovery phrase, gift-card codes, blackmail. With the AI layer on and wrong about every one of the 132 scams, none drops to "No warning signs".
Also fixed in older rules, found by the same lists: "You won't believe it" matched you won; "your card will expire next month, a new card has been sent" read as a threat; a genuine fine notice ("pay through the Dubai Police app") and a bank's Emirates ID reminder were flagged; "my card is blocked, annoying" and "congratulations on the prize at sports day" likewise. On calls: "we sent you a code, please read it to me" scored 0.00 because the code came before the verb.
Known and left alone (seven sentences, all "Be careful", pinned in the tests so the cost stays visible): requests such as "buy the Apple gift cards for the raffle and send me the invoice". And "install TeamViewer so IT can update it" still reads as a scam — it is indistinguishable from one.
Honest limits. These lists were written by the same hand as the rules. They show the rules do what was intended on ~450 messages; they are not the labelled corpus, and the false-positive rate on real traffic is still unmeasured.
Tests: test_scam_tactics.py — tactics, three unseen sets, Arabic, calls, the red-team sentences, and the calibration.
2026-11-11 — Re-audit: long calls no longer slow the checker down
Full re-audit. Every test passes, including the live-call browser tests run three times in a row (scripted speech: warns mid-sentence, survives a lost response, holds the peak, Arabic alerts, ordinary calls stay quiet). One real finding:
- Each live-call update re-scanned the whole call. Cost grew with call length — about 2 ms at the start, ~90 ms per update after 45 minutes, at up to seven updates a second on a one-process server. Updates now scan only the newest speech plus a 600-character overlap and carry forward what was already heard (
CallSession.heard). The rules scan is now constant; a 45-minute call costs ~20 ms per update (what remains is the identity-claim check). A test checks the incremental result against a full scan of a long call cut into chunks mid-phrase. - A red flag that was committed now stays for the rest of the call even after the 40,000-character transcript window has moved past it. An interim guess the recogniser later revises still does not stick.
RuleEngine.combine()scores a set of matched rules;evaluate()uses it.
Measured (median): check a message 4 ms · 19k-character message 37 ms · live-call update 2 ms · home page 3 ms · rules pack 2 ms. No other changes were needed.
2026-10-08 — Warn on the setup of a scam call, not only the demand (rules 2026.10.08-1)
Third report of the same symptom: "it's listening, but there's no on-time alert when there's a red flag." The server answers a chunk in 2–4 ms and the page sends within 150 ms, so speed was not the cause. Coverage was. The call rules added on 1 October fire on the demand (code, PIN, card, transfer); a real scam call spends its first minute on the setup, and most of that said nothing:
| Lines from the opening of a scam call that raise an instant warning | Before | After |
|---|---|---|
| English ("your account will be blocked today", "your Emirates ID was used in a money-laundering case", "this investigation is confidential"…) | 2 / 27 | 27 / 27 (14 held out) |
| Arabic ("حسابك راح يتوقف", "قضية غسيل أموال", "حمل التطبيق اللي ارسلته لك"…) | 0 / 14 | 14 / 14 (8 held out) |
| The same words in an ordinary call, left alone (English / Arabic) | 29 / 30 · 14 / 14 | 30 / 30 · 14 / 14 |
- Five new call-only rules, each with a warning line:
call-account-threat(your account/card/SIM is blocked, hacked, has suspicious activity),call-authority-case(your ID is tied to a crime; pay or be arrested; "I'm transferring you to the cyber-crime department"),call-device-control(share your screen, install the app I'm sending, tap Allow),call-login-secret(password, username, security answer) andcall-secrecy("you must not tell anyone", "if the bank staff ask, say it's for family"). Arabic twins for the first three. - Second person only. The microphone hears the user too: "my bank account was blocked last week" and "انحظر حسابي" stay quiet.
call-money-instructiongained "go to the ATM and I will guide you" and advance-fee wording ("pay a refundable security deposit").- Two false positives in text rules, found while writing the quiet list. "We will never ask you to share your password or PIN" scored 0.85, and "…your password, PIN or OTP" scored 0.90: the safety-advice guard stopped at "ask you to share" and ended at the first secret in a list. Both now score 0; "never share your PIN… now read me the OTP" still fires.
- A test now fails if any call-only rule is missing its warning line — the first draft of these rules matched 22 of 27 phrases and stayed silent on every one.
Not measured: these were tested as text, the way the page sends it. Whether Chrome's speech recognition hears the words correctly through a speakerphone is a separate question, and the "What the checker heard" log on the Live call tab is how to tell the two apart.
2026-10-01 (later) — Calls get rules of their own (rules 2026.10.01-2)
Second report, after the fix below: "even when I'm calling and it's listening, when there's a red flag it doesn't alert anymore like before." The scripted tests passed because the scripted callers used tidy sentences. Measured against how people actually talk on a call:
| Red-flag phrases that raise an instant warning | Before | After |
|---|---|---|
| English ("what is your OTP", "I need your PIN", "send the money to this account"…) | 7 / 26 | 34 / 34 (8 held out) |
| Arabic, incl. Gulf dialect ("ابي الرمز اللي وصلك", "لا تسكر الخط"…) | 0 / 16 | 20 / 20 (4 held out) |
| Ordinary calls left alone (English / Arabic) | 15 / 16 · 7 / 7 | 36 / 36 · 19 / 19 |
Why it went quiet. The rules were written for texts, where "your OTP is 482913" is normal — so they need a request aimed at you. On a call, a caller mentioning your OTP, PIN or card number at all is the scam, and "what is your OTP" scored 0.00. In Arabic it was worse: the bare-mention patterns that used to make Arabic calls alert were exactly what flagged genuine Arabic bank texts, so fixing the texts (rules -1, below) took the alerts away — the "like before". And no Arabic rule had ever been in the live-call warning table, so an Arabic caller demanding the code could raise the score but never put a warning on screen.
- Rules know their channel. New
channelsfield;channels: [call]rules run on live calls andsource_type: call_transcript, never on texts, and are left out of the on-device pack (the phones judge SMS). See detection-rules.md. - Call rules:
call-credential-talk(any talk of OTP, PIN, CVV, card number, "the numbers on the front of your card", the code that just came) andcall-money-instruction(transfer it now, a "safe account", gift cards), with Arabic twins covering Gulf and Levantine forms — ابي، أبغى، عطني، قولي، شو. Genuine-bank advice ("we will never ask for your OTP or PIN") stays quiet. - Every Arabic alerting rule now has a warning line, in English and Arabic.
- Text rules gained "what is your OTP" and "I need your PIN" (no service ever asks either); "send me the location pin" is no longer a PIN request; "dont hang up", "لا تسكر الخط", AnyDesk written in Arabic script ("اني ديسك").
- Warnings no longer wait for the caller to stop talking. Interim updates were sent only every 10 characters or 700 ms, and the skipped one was dropped — so a caller who ended on the trigger ("…what is your OTP") got no warning until Chrome decided they'd finished, which on a noisy speakerphone can take seconds. Now at most one send per 150 ms, and the latest text is always sent.
- The call pane says what's listening — phrase checks, and whether the AI context check is on (the header no longer shows it). On your own machine it adds the reason AI is off and a "What the checker heard" log per chunk: text, latency, rules matched — so a silent call becomes evidence.
Tests: test_call_rules.py (calls, both languages, both directions, the channel boundary, the pack), more natural-phrasing cases in test_live_call_browser.py.
2026-10-01 — Live call: warnings fire mid-sentence again (rules 2026.10.01-1)
Reported as "it's not catching the words right, and the verdicts don't shoot out immediately as they used to." Measured before changing anything: with clean words the page warned 13 ms after the trigger phrase, 0.9 s before the caller paused. The client was fine. The problem was what the rules did with real speech.
The cause — partly a regression of mine from 2026-09-15. Speech recognisers emit no punctuation, so "hello this is your bank don't panic just tell me the code we sent" arrives as one run. The negation guard added on 15 September used full stops as its boundary; in speech it stretched from "don't" to the end of the demand and excused it. 0.00 — and "No warning signs found" — during a live scam call. The patterns added that day to catch "read me the code" also matched the most common genuine verification texts ("Enter the code we sent to your phone"). Their tests had eight benign phrasings and not one real 2FA text — exactly the failure CLAUDE.md warns about.
Measured against a matrix of real scam scripts (as speech and as text) and genuine bank, 2FA and everyday messages:
| Scams caught | Genuine messages left alone | |
|---|---|---|
| English, before | 16 / 27 | 16 / 28 |
| English, after | 39 / 39 (incl. 9 held out) | 42 / 42 (incl. 13 held out) |
| Arabic, before | 13 / 13 | 7 / 16 |
| Arabic, after | 13 / 13 | 16 / 16 |
Rules — rewritten around direction (genuine texts give the code to you; scams ask for it back) and guards that stop at the next disclosure verb:
otp-share-request— giving verbs need a recipient ("tell me", "send it to us"; "send you a code" is the service talking); a bare "code" counts only once it's the one just delivered ("we sent", "you received", "on your phone"); "can you confirm" as a question to a person; spelled-out "o t p", "six digit code", "one-time passcode"; third-person warnings that quote the scam ("if anyone asks you to read out the code, hang up") excluded.credential-request,verification-reversal— the same tempered guards; verification-reversal needs an actual demand and no longer pairs "verify your account" with "code" across a full stop.- Arabic —
ar-otp-share-requestandar-credential-requestfired on any mention of رمز التحقق / كلمة المرور, so "your verification code is 482913" and "your password was changed" read as scams.ar-secrecy-requestmatched "سري" inside "الرقم السري" — the ordinary word for PIN. - Safety invariant #11, and a "writing rules that survive speech" section in detection-rules.md.
Recognition
- The level meter was degrading the speech it diagnosed. It opened the mic with the default echo cancellation, noise suppression and gain control — and gain control can turn the system microphone down as the speakerphone gets loud. It now opens raw, and steps aside once words are flowing.
- Caller's accent: English (US, UK, India), Arabic (UAE, Saudi, Egypt), defaulting from the browser and switchable mid-call. Every keyword the recogniser mishears is a warning that never fires.
- Placement tips on the page: phone close to the computer, volume up, quiet room.
Alarm robustness
- The headline holds the peak of the call. When the recogniser revised "code" to "coat", a red verdict could flip back to "No warning signs found" with the warning still on screen.
- An alert can no longer be lost with one response. The server sends each alert once; the client now keeps every alert it has seen and alarms on new ones.
LiveCallStatusgainsseverity— the current state on every response — so the alarm sounds critical even if the response that first said so never arrived. (api-reference.md updated: don't build an alarm onshould_warnalone.) - Out-of-order responses no longer overwrite newer ones.
- A weak signal under a clean result is labelled "noticed, not enough to warn" instead of contradicting the headline.
Tests: test_speech_and_2fa.py (the matrices, both languages), test_live_call_browser.py (the served page with a scripted recogniser: warns mid-sentence after "don't panic", survives a lost response, holds the peak; skips where Playwright isn't installed), plus static checks in test_web_client.py.
2026-09-29 — Web polish for a soft launch, and the plan to run it
Went over the web app in a real (headless) browser, desktop and mobile, clicking every flow. The plan it was polished for is soft-launch.md.
Things that were silently broken
- Capability gating never ran.
refreshStatus()was defined and never called — the header said "checking" forever, and the third-party-checks box, recording upload and chat stayed live on a server that couldn't back them. The closed-alpha fix existed only as dead code; its tests checked strings, not calls. hiddendidn't hide. Authordisplayrules beat the attribute: empty orange boxes under the Check button and inside the chat, and a submitted report form that stayed on screen, filled in, inviting a duplicate.- The mic level bar was invisible — it used
var(--ok), which never existed. - A French message got a big green "Looks clean" with "NOT analysed" in the small print below it. The headline now says Not checked in neutral grey, and a clean result says No warning signs found — what the checks did, not a claim about the message.
- The chat told visitors to run
ollama serve. Operator detail now appears only on localhost; with AI off, the chat panel isn't shown at all. - Sender "hashes" were reversible. Plain SHA-256 of a UAE mobile number falls to enumeration in seconds. Fingerprints are now HMAC under
PSEUDONYM_KEY(safety invariant #9).
Made useful
- After a scam result: numbered steps (call the number on your card, change passwords, report it) with verified UAE reporting channels — Dubai Police eCrime, Abu Dhabi Police Aman, the MOI app, 999. Only verified numbers can appear; a test enforces it (invariant #10).
- Copy summary — plain text to send a relative, with links defanged.
- "This looks wrong" is three buttons and an optional note, not a
prompt()asking people to type "legitimate" — plus an opt-in to share the message, so a miss can actually be fixed (POST /v1/feedbackgainsshared_text+share_consent; the server discards the text without consent). - Four examples (fake bank text, code-theft call, ordinary message, Arabic) — seeing an ordinary message come back clean is what earns trust in the red one.
- New pages: How it works, Privacy (every claim checked against the code, and tested), Terms. "Alerts" became Scam patterns, with five rules that stop most scams, honestly labelled as guidance rather than a live feed.
- Report form: date picker, UAE fields (the UK "sort code" is gone), what-to-do after submitting, and "report something else".
- Mobile: two-row header, all input modes visible as a grid, and a note that a phone can't listen to its own call.
- Favicon, link-preview tags, per-page titles.
Docs site
- Multi-line blockquotes rendered as a stack of boxes with a literal
>. - The mobile "Contents" toggle showed on desktop and collapsed nothing on phones.
- Public mode:
DOCS_SHOW_INTERNAL=falseremoves strategy pages from/guide— nav, links and direct URLs (404). A page not listed is internal by default.
Operating it
python -m app.ops check(launch readiness, exits 1 on FAIL),stats(false reassurance vs false alarm per 100 checks) andmisses(every "you missed a scam", with the message if shared).deploy/: systemd unit, Caddyfile, and a backup script that was test-restored.backend/.env.production.example: the soft-launch configuration.
2026-09-17 — Live call: say which half is broken
Reported as "it does not seem to receive speech" — and the app had no way to answer that, because every live-call failure produced the same output: nothing, behind a reassuring "Microphone active — speak now."
The cause of the silence was partly self-inflicted. onerror wrote the real reason to the status line; onend then restarted the recogniser 250ms later and onstart unconditionally overwrote it. A speech service failing in a loop was indistinguishable from a user sitting quietly.
- The microphone is now measured independently of the speech service — an
AnalyserNodereading the input stream directly, shown as a live level bar. If it moves, sound is reaching the browser. That one signal separates a dead input device from an unreachable speech service, which previously looked identical. - Errors are sticky. A restart can no longer erase the message explaining why it restarted.
no-speechstays routine; everything else persists. - The restart loop is bounded. Six immediate deaths in a row stops the loop and says so, instead of spinning forever behind a healthy-looking label.
- Safari is named up front. It exposes
webkitSpeechRecognition, so the "no speech recognition" check waved it through — but it ignorescontinuousand will not resume without a user gesture, so a live call goes quiet after the first sentence. On a Mac this is the single most likely cause. - "Test microphone" actually tests the microphone. It used to confirm permission, which is rarely what fails; it now runs the meter for eight seconds and asks you to speak.
- The mic is released on teardown, so the browser's recording indicator does not stay lit after a call ends.
2026-09-15 — Closed-alpha review remediation (rules 2026.09.15-1)
The review's charge was that several production-looking surfaces were still prototypes underneath. Everything below closes one of those gaps.
Three detection bugs found by end-to-end verification, not by the review
The review tested surfaces. Driving the running app found three things no test covered, all of which had been shipping.
1. The flagship live-call scenario was silent. Every OTP test used the word "OTP". Nobody on a phone call says OTP — they say "read me the code we just sent to your phone", and that scored 0.00. otp-share-request now matches a bare "code" when it is qualified as just-delivered ("we just sent", "texted you", "on your phone"); that qualifier is what keeps promo codes, door codes and source code out of the rule. Eight benign phrasings are pinned as must-stay-safe tests alongside the six that must fire.
2. Genuine bank safety advice scored 0.90. "ADCB will never ask for your OTP or PIN. Never share them with anyone." — the OTP pattern's .{0,40} window reached across the full stop and paired "OTP" in the first sentence with "share" in the second. The windows are now [^.!?]{0,40}, so a match must live inside one sentence. Flagging the warnings that protect people is the worst false positive this product can produce: it teaches them to distrust those warnings. The advice-then-pivot attack ("We never ask for your code. Now read me the code we just sent.") still fires, because there the negation and the demand are in different sentences.
3. Every Latin-script language was reported as fully-analyzed English. Language detection was script-based, so French, Spanish, German, Italian, Portuguese and Dutch all resolved to en with coverage: full. A French scam was scanned by English-only regexes, matched nothing, and came back "safe — fully analyzed". That is precisely the unqualified-SAFE-for-an-unanalyzable- language failure safety invariant #2 exists to prevent. Detection now adds a stopword pass over six Latin-script languages — deliberately conservative, since a false "this isn't English" would suppress real analysis — and those messages now report coverage: none with a note naming the language.
- Ollama:
is_available()meant "the server answered", not "the model is there". A missing model reported healthy, then every chat 404'd. Availability is now a probe with a state (ready/unreachable/model_missing/disabled/error), a cause and a remedy, exposed atGET /v1/llm/statusand shown in the chat instead of a bare error. - Grounded chat: answers now come from the entity registry, the cited alerts feed and community reports, with citations. A confabulated "official" bank number is the worst failure this product could produce, so the system prompt's first rule is never to invent a contact detail.
- No silent truncation. Input over 20,000 characters was cut while the UI remembered the whole message as "analyzed" — a malicious link in the dropped tail would have carried a reassuring verdict. The API rejects oversized input visibly (422); the web client shows a counter and analyses long input in overlapping parts, worst verdict winning, evidence merged.
- Input tabs were cosmetic — Link and Email both submitted
source_type: "sms". They now send their real type. - Live-call end took the head of the transcript, not the tail, dropping the end of the call — which is exactly where the demand lands.
- Fixtures no longer pose as live data. Seeded alerts carry
is_fixture, the feed reportsis_fixture_feed, and the client labels it. - Reports and feedback persist to disk; "your report helps protect others" was false while they lived in RAM. Public feedback (
POST /v1/feedback, anonymous, redacted) is separate from the authenticated ground-truth queue — anonymous visitors could previously set ground truth. - Rate limiting covers
/v1/call/*, and forged API keys collapse into the caller's IP bucket instead of buying fresh quota.
2026-09-15 — Dependency refresh
Routine bump, no behaviour change. Backend: uvicorn 0.52 → 0.53, SQLAlchemy 2.0.52 → 2.0.53, httpx2 2.12 → 2.13; FastAPI 0.141, Starlette 1.3, Pydantic 2.13, cryptography 50 and pytest 9 were already current. Optional extras raised to redis 8.1, psycopg 3.3 and faster-whisper 1.2.
Android toolchain: AGP 8.7.3 → 8.9.1 with Kotlin 2.1.0 → 2.1.20, Compose plugin and BOM (2025.04.01) moved in step — those three must stay aligned or the build breaks. Also core-ktx 1.16, activity-compose 1.10.1, WorkManager 2.10.1, coroutines 1.10.2, serialization 1.8.1. Not build-verified (no Android SDK in the environment these were changed in), so the first ./gradlew assembleDebug is the real test.
Verified after upgrading: 206 tests passing with zero warnings, server boots, all surfaces return 200, and the regression cases are unmoved — phishing SMS 1.00, Arabic scam 0.92, both former false positives still SAFE, live-call arc still 0.50 → 0.85 → 0.98 with critical alerts, and the report preview still correctly declines to comment on a narrative.
2026-08-29 — Web app rebuilt: tool-first, reports, alerts
Applied the structure from web-structure.md and redesigned the interface.
New backend endpoints. POST /v1/report takes anonymous scam reports — only the description is required, because a real reporter rarely has every detail and a form that demands them collects nothing. It captures the scammer's bank details deliberately: that is the part a bank or police force can act on. The description is redacted before storage, since reporters routinely paste their own card number while explaining what happened. GET /v1/alerts serves the curated campaign feed; the store refuses an alert without a source_url, because an unsourced warning is a rumour.
A bug worth recording. The first version previewed the engine's verdict on the report's free-text description and returned "safe" to someone reporting a scam. Two things were wrong: a description is reported speech, not the artefact (the rules expect imperative phrasing, so genuine reports score low), and telling a victim their scam looks safe is insulting as well as incorrect. Now the preview runs only on a concrete artefact — the website or phone field — and a reassuring verdict is never surfaced on a report at all. Silence beats a confident wrong answer.
Interface rebuilt. Tool-first homepage with input modes (message · link · email · recording · live call), the forwarding channels above the tool, the alerts feed below it, plus #/report and #/alerts routes.
Visually it was rebuilt to look designed rather than generated: every emoji replaced with inline SVG at consistent stroke weight, one accent colour with colour reserved for conveying risk, real typographic contrast instead of ten near-identical sizes, 1px borders instead of drop shadows, and monospace for evidence (domains, scores, rule ids) so data looks like data and stays selectable. Light mode included. Two contrast failures found and fixed while measuring: button fill was 3.26:1 with white text and muted text 3.97:1 — both now clear AA.
Tests: 205 passing.
2026-08-28 — Competitor teardown and web structure
Reviewed scamscreen.co.uk (UK, same category) and wrote up web-structure.md: how their site is built, what to copy, and where the openings are.
Their whole site is three routes with no login and no pricing. The homepage is the tool — no marketing preamble — with multi-modal input tabs, a daily scam-alerts feed linking to primary sources (the SRA register, news), and an anonymous community-report form that collects the scammer's bank details.
Notably, "Forward Suspicious Texts to <number>" and "Forward Suspicious Emails to <address>" sit above their own tool — independent confirmation of the forwarding-address recommendation in product-features.md.
Where ScamGuard differs, and should: they train on user data by default, require 50+ characters of narrative before analysing, and give a generic AI verdict with no reasoning. ScamGuard's privacy architecture, deterministic evidence, and coverage honesty are genuine differentiators — and their lack of accounts means no retention and no revenue path. Copy the front door, not the business model.
Proposed site map includes /check/<domain-or-number> public lookup pages, which is the highest-leverage SEO asset in this category ("is 0800xxx a scam" is a constant search) — gated on having an appeals process first.
2026-07-23 — SaaS feature recommendations
Added product-features.md: what to build as this becomes a hosted product, ranked by revenue impact, with a "do not build" list.
Headline recommendation is the forwarding address — a unique check-xxxx@scamgrd.app per account that users forward suspicious messages to and get a verdict back. Four days of work, no install, works on every device including iPhones (sidestepping Apple's restrictions entirely), teaches the habit in one sentence, and every forward enlarges the labelled corpus that is the real moat.
Family/guardian mode is identified as the thing people actually pay for: the buyer is usually an adult child protecting a parent, not the person at risk.
The "do not build" list matters as much as the rest — dark-web monitoring (security theatre that cannot be verified by the buyer, and corrosive to the honesty this product is built on), deepfake detection, crypto screening, gamification, and any new detection surface before the false-positive rate is measured.
2026-07-23 — Dependencies updated
All dependency floors raised to current stable majors and verified: FastAPI 0.141, Starlette 1.3, Pydantic 2.13, SQLAlchemy 2.0.52, uvicorn 0.52, cryptography 50, pytest 9. 190 tests pass with zero warnings — the lingering StarletteDeprecationWarning is gone now that httpx2 is a dev dependency (Starlette's TestClient moved to it).
Two changes worth knowing about:
- Postgres driver moved from psycopg2 to psycopg 3.
psycopg2-binaryis in maintenance-only mode. The connection string changes with it:postgresql+psycopg://rather thanpostgresql+psycopg2://—.env.exampleis updated. This only affects the (optional) Postgres path; SQLite is untouched. - Android toolchain: AGP 8.5.2 → 8.7.3, Kotlin 2.0.20 → 2.1.0, with the Compose compiler plugin and BOM moved in step (these three must stay aligned or the build breaks). Coroutines 1.10.1, serialization 1.8.0, WorkManager 2.10. Not build-verified — there is no Android SDK in the environment these changes were made in, so the first
./gradlew assembleDebugis the real test.
CI now covers Python 3.10, 3.12 and 3.13.
2026-07-23 — Feasibility analysis and a dated timeline
Added feasibility.md, which answers three questions separately rather than as one: can it be built (yes, mostly done), can it be shipped (yes, with cuts), will it make money (unproven — the real risk).
The recommended cut: Android + SMS + UAE only for v1. iOS, live calls, voice upload, chat and payments all move to "later". The reason projects like this run forever is three platforms × four surfaces × no definition of done; the fix is turning off two of those multipliers, not planning harder.
Quantified remaining work: ~45 focused working days across evidence (18), backend productionisation (9) and Android store quality (18). Timeline: ~14 weeks full-time or ~28 part-time to a public Android launch, then +8 weeks for iOS after Android proves demand.
Three decision gates with explicit pass/fail criteria — including permission to stop. Gate 1 is false-positive rate under 1%; Gate 2 is 30-day retention above 30%; Gate 3 is 2% conversion or one B2B pilot.
2026-07-23 — Claude Code handoff
Added CLAUDE.md at the repo root: the context file Claude Code loads automatically. Covers the layout, the one architectural rule (detection logic only in backend/), all eight safety invariants with their regression suites, the commands for each client, and the platform constraints that shape the design — including the two that get "fixed" wrongly by anyone who doesn't know them (iOS has no call-audio API; the Android Accessibility API is a Play removal).
clients/ios/BUILD_TASK.md is a ready-to-paste first task: build the iOS app, which has never been through a compiler. It lists the likely failure points so the fixes can be judged rather than trusted.
2026-07-23 — iOS app is runnable
The iOS client had source files but no way to build or run it. Added the SwiftUI app entry point, the analyze/verdict UI mirroring the web client, Info.plist with App Review purpose strings, and an XcodeGen spec (project.yml) that generates the Xcode project — kept as a spec rather than a committed .pbxproj, which is unreadable in diffs and conflicts constantly.
RUN_ON_IPHONE.md documents both routes: the web app in Safari over LAN (two minutes, no Xcode) and the native build with a free Apple ID. Tests now fail if that guide loses the two warnings every first-time run needs — bind the backend with --host 0.0.0.0, and remember localhost on the phone means the phone — or if the development-only ATS exception loses its removal warning, or if a permission lacks a usable purpose string.
Recording analysis on iOS transcribes on-device with SFSpeechRecognizer, so only text reaches the backend.
2026-07-23 — Signed intelligence packs, delta sync, indicator provenance
Adopted the central-brain / local-brain architecture: devices synchronize verified knowledge, never retrain. Full write-up in intelligence-sync.md.
Signing closes a real hole. Packs were served unsigned — a compromised CDN edge or hostile mirror could have shipped rules that silently disable detection, or that flag a real bank as a scam. Packs are now Ed25519-signed (backend/app/intel/signing.py) and clients verify before activating (PackVerifier.kt), failing closed to the last trusted pack. Unknown key ids are rejected rather than trusted, which is what makes rotation safe. The private key belongs offline; a key in server settings is development mode and /v1/capabilities reports signing: "dev" so it cannot be mistaken for production.
Indicators now carry provenance. Each has source, confidence, regions, campaign and expires_at. Source caps confidence — an automated scraper cannot publish above 0.5 however certain it claims to be, only human verification reaches 1.0. Expiry defaults by provenance (14 days automated, a year verified), and an expired indicator stops scoring but stays visible: silent disappearance would make a device quietly less protective with no signal.
Delta sync. GET /v1/rules/delta?since_serial=N®ion=AE returns only what changed. Indicator churn is hourly and rule churn is weekly, so full packs on every refresh would waste mobile battery and bandwidth. Rule, entity or scoring changes set full_resync_required — those alter evaluation semantics and a delta would leave the device disagreeing with the server.
Pricing correction: the GPU-cost argument applied to cloud inference only. On-device models have no per-analysis bill, so the paid line moves to cloud escalation — which is also where data leaves the device, making it the honest place to charge.
Tests: 187 passing, including tampering, wrong-key, unknown-key-id and rotation cases.
2026-07-23 — Release roadmap
Added roadmap.md: the path from the current codebase to a revenue-generating product. Four phases (measure accuracy → deployable backend → private beta → public launch → B2B), with an honest business-model assessment, the LLM cost trap and how to avoid it, legal/compliance requirements, and the risks that actually kill this category of product.
Headline conclusion: the blocker is not features, it is an unmeasured false-positive rate. Phase 0 exists to produce that number, and nothing after it is worth building until it clears the bar.
2026-07-23 — Android app implemented, with live call listening
The Android client is no longer a scaffold. It now mirrors the web app and adds the two things only Android can do.
Live call listening (clients/android/CALL_LISTENING.md). Android blocked third-party call-audio capture in version 10, so CallAudioProbe tries to open a VOICE_CALL stream and reports what the device actually allowed — version checks lie, because OEM builds differ. The normal path is speakerphone + microphone with SpeechRecognizer (EXTRA_PREFER_OFFLINE), running in a foreground service. Partial recognition results stream to /v1/call/{id}/chunk with commit=false, so a warning lands mid-sentence exactly as in the web client; finals commit, a throttled /assess adds the LLM read, and /cancel purges the transcript if the user backs out.
SMS protection — the flagship Android feature. SmsReceiver evaluates every incoming message against the on-device rules pack in microseconds, with no network, and warns immediately when confident. Gray-zone messages, unknown languages, and sender/claim mismatches are queued through WorkManager to POST /v1/analyze/batch for the full pipeline. iOS cannot do this.
Call screening. ScamCallScreeningService sees the number before the phone rings, warns about previously reported numbers, and can start listening early (opt-in) so the caller's opening sentence is already being analyzed. It never auto-rejects: a wrong rejection means a missed hospital call, a wrong allow just means the user answers with ScamGuard already watching.
Compose UI with the full client contract — risk index wording, coverage warnings, processing disclosure, stale-result handling — plus a consent screen before the first listening session and an ACTION_SEND target so any app can share text or a call recording into ScamGuard.
Deliberately not shipped: the Accessibility API (Play policy forbids using it for call recording — instant removal) and any upload of reported numbers.
2026-07-23 — Documentation site, Android client, iOS call recording
Documentation is now a served page. /guide renders docs/*.md at request time with sidebar navigation — no build step, no generated files to commit, so the published page can never lag the markdown. A test edits a doc and asserts the page changes without a restart.
Android client (clients/android/). Kotlin/Compose scaffold with the API client and an on-device rules engine mirroring the server's aggregation and floors. Android is the stronger platform for this product: RECEIVE_SMS gives full message content that iOS deliberately withholds, so the flagship feature is a background SmsReceiver with instant offline warnings, backed by POST /v1/analyze/batch for the richer server pipeline. Documented the Play policy constraints (SMS/Call Log declaration required; Accessibility API for call recording gets apps removed).
iOS call recording (clients/ios/CALL_RECORDING.md). Four routes evaluated honestly, since no iOS API exposes live call audio. Recommended path is Apple's native call recording (iOS 18.1+, saved to Notes) shared into the app via a Share Extension — no workaround, no entitlement, and Apple handles consent. Added RecordingIngest.swift, which prefers on-device SFSpeechRecognizer transcription so the audio never leaves the phone and only text is sent.
Repository is GitHub-ready: MIT license, CONTRIBUTING.md, GitHub Actions CI (tests on Python 3.10/3.12, rule-pack compile check, docs-freshness job), issue template for detection misses, and a PR checklist.
New enforcement: tests now fail if a client directory is missing from docs/clients.md, if a mobile README loses its platform-constraint warnings, or if an on-device engine starts hard-coding rule content instead of reading the synced pack.
Tests: 155 passing.
2026-07-23 — Monorepo, mobile API, living docs
Structure. Split into backend/ (engine + API), clients/web/, clients/ios/, and docs/. Detection logic now lives in exactly one place; clients are thin front-ends over /v1. See architecture.md.
New endpoints for mobile clients
POST /v1/analyze/batch— up to 50 messages per round trip, items independent. Built for iOS SMS-filter queues that must flush without N round trips.GET /v1/rules/pack— ships the deterministic tier (rules, entities, scoring constants) for offline on-device evaluation.ETag/since_version→304. This is what letsILMessageFilterExtensionwork with no network while staying in sync with the server.GET /v1/capabilities— feature detection so clients stop guessing what a deployment supports.
Also: OpenAPI metadata and tags for client generation, configurable CORS (CORS_ORIGINS), API version bumped to 0.3.0.
iOS scaffold. clients/ios/ with the platform-constraints writeup (Apple does not permit third-party access to live call audio — the plan works within that), a Swift API client, and an on-device rules engine that mirrors the server's aggregation and floors.
Docs are now enforced. backend/tests/test_docs.py fails if an endpoint is undocumented, if docs reference a removed endpoint, if a regression suite named in the invariants is missing, if documented score floors drift from the rules pack, or if the live rules version has no changelog entry.
Tests: 138 passing.
2026-07-23 — Audit remediation (rules 2026.07.23-1)
Applied every finding from the 2026-07-22 product and engineering audit. Full detail in safety-invariants.md.
Two severe classification bugs fixed
| Case | Before | After |
|---|---|---|
| Arabic bank-suspension scam | SAFE 0.00 | SCAM 0.92 |
| Cafe mentioning a bank + unrelated link | SCAM 0.78 | SAFE 0.12 |
- Mention vs claim (
app/verify/claims.py, new): entity names are only identity claims when accompanied by self-identification, an SMS header, or possessive service framing. Links associate to nearby claim spans. Message and live-call paths now share this logic instead of drifting. - Arabic + coverage honesty (
app/core/language.py, new): 12 Arabic rule families, Arabic entity aliases and negation guards, locale propagated from all client paths, andcoverage/coverage_noteon every response so an unanalyzable language can never return an unqualified SAFE. - Cache redesign (
app/cache.py): no more response caching. Context-free artifacts only, versioned key, guard against caching user-linked fields, fresh record persisted per request. - Privacy: external lookups off by default and consent-gated;
processingdisclosure on every response; redaction extended to email, IBAN, passport, and address forms; concurrent lookups under a single deadline. - Resource limits: live-call idle/absolute TTLs,
/cancelendpoint, upload size/type/duration caps, API-key auth on review routes, global rate limiting. - UX/accessibility: contrast 3.22:1 → 6.65:1, ARIA tablist/live regions, 44px targets,
prefers-reduced-motion, mobile document flow, "risk index (not a probability)", report-wrong-verdict action, stale-result handling, and deterministic explanations when the LLM is offline.
Tests: 56 → 126 passing, with five new regression suites.
Earlier — MVP feature build (rules 2026.07.03-*)
- Message analysis pipeline: redact → rules → URLs → identity verification → local LLM → blended score with deterministic floors.
- Live-call analysis: rolling transcript, per-utterance deterministic checks, caller-ID vs claimed-identity cross-check, instant critical alerts with audio, interim-hypothesis analysis so warnings fire mid-sentence.
- Forensic-linguistics rule families: isolation tactics, authority threats, verification reversal, scripted reassurance, refund bait, secrecy demands.
- Voice-file upload with local faster-whisper transcription.
- Scam-advisor chat that can discuss incidents beyond the current verdict.
- Human review queue for gray-zone verdicts (0.40–0.75).