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

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.

2026-11-22 — Live Call: misheard names and a box to type what was said

2026-11-22 — An exact PhishTank match is "likely scam"

2026-11-22 — DefAI

2026-11-21 — Postman collection

2026-11-21 — Automatic deploys

2026-11-21 — iOS quickstart and a stable API contract

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.

BeforeAfter
Arabic code requests21 / 3535 / 35
Arabic personal-detail requests6 / 2020 / 20
English code requests12 / 2323 / 23
English personal-detail requests8 / 1919 / 19
Held-out requests, written after the rules and run once—25 / 30, then 29 / 29
Genuine call lines flagged (design + held-out)3 / 750 / 75

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.

  1. It remembers the language that worked, on the device only, so the next call starts there — disclosed on the Privacy page.

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.

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.

BeforeAfter
132 scam messages, 20 tactics, English and Arabic — missed980
…flagged "Likely a scam" or "Scam"1975
…flagged "Be careful"1557
313 genuine messages — wrongly flagged100
Red flags on a live call that raise a warning (7 tactics)10 / 1818 / 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 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:

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 warningBeforeAfter
English ("your account will be blocked today", "your Emirates ID was used in a money-laundering case", "this investigation is confidential"…)2 / 2727 / 27 (14 held out)
Arabic ("حسابك راح يتوقف", "قضية غسيل أموال", "حمل التطبيق اللي ارسلته لك"…)0 / 1414 / 14 (8 held out)
The same words in an ordinary call, left alone (English / Arabic)29 / 30 · 14 / 1430 / 30 · 14 / 14

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 warningBeforeAfter
English ("what is your OTP", "I need your PIN", "send the money to this account"…)7 / 2634 / 34 (8 held out)
Arabic, incl. Gulf dialect ("ابي الرمز اللي وصلك", "لا تسكر الخط"…)0 / 1620 / 20 (4 held out)
Ordinary calls left alone (English / Arabic)15 / 16 · 7 / 736 / 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.

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 caughtGenuine messages left alone
English, before16 / 2716 / 28
English, after39 / 39 (incl. 9 held out)42 / 42 (incl. 13 held out)
Arabic, before13 / 137 / 16
Arabic, after13 / 1316 / 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:

Recognition

Alarm robustness

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

Made useful

Docs site

Operating it

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.

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.

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:

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&region=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

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

CaseBeforeAfter
Arabic bank-suspension scamSAFE 0.00SCAM 0.92
Cafe mentioning a bank + unrelated linkSCAM 0.78SAFE 0.12

Tests: 56 → 126 passing, with five new regression suites.


Earlier — MVP feature build (rules 2026.07.03-*)