The Resilience Matrix.
100 ways the system must not fail.
A media-monitoring platform for the Moroccan market faces a specific spectrum of failure modes: Darija sarcasm, code-switching, AFP dispatch deduplication, OFAC homonyms, Cloudflare challenges on Hespress, weekend bad-buzz velocity, deleted articles that must stay legally archived. This page catalogs the 100 cases that matter and shows — live, in your browser — how the engine handles each one.
You may have seen this catalog framed as a “lock” that traps the agent until 100/100 tests pass. That framing is not real — there is no enforcer and no sessionCanEnd variable. We treat it for what it is: a serious robustness reference. The coverage bar below is honest. 17 cases are interactive here; the rest are architecturally handled, planned, or on the roadmap.
Interactive live demos
Each demo runs the real engine — no mocks. Edit the input, click run, see the verdict and the internal signals the engine used.
Darija + Multilingual Sentiment Engine
Lexicon-based sentiment with sarcasm-flip detection, FR/AR code-switching, contextual idiom handling, SMS-typo expansion, and clause-level recency weighting.
Prompt-Injection Sanitizer
Pattern-based detection of “ignore previous”, role-hijack, tag-injection, and prompt-extraction attempts. Malicious input is blocked before reaching the LLM — the model only sees a safe literal.
Fake-News Structural Score
Virality/fakeness risk from structural signals: caps-lock ratio, aggressive-emoji density, exclamation density, sensational vocabulary, ALL-CAPS words. Not a content judgement — a structural risk score.
Fuzzy Name Matching (Jaro-Winkler)
Transliteration-aware Jaro-Winkler matching — normalises Mohammed/Mohamed, Al/El, hyphens/spaces, then computes similarity. Used for OFAC screening and entity deduplication.
OFAC False-Positive Disambiguation
Name match alone is not a sanctions hit. Corroborate with DOB, nationality, and occupation. A homonym (same name, different person) is flagged as FALSE POSITIVE, not escalated.
CEO Homonym Resolution by Tenure
When a current and former CEO share a surname, resolve which one an article refers to using the article's publication date against the tenure window.
AFP Dispatch Deduplication
64-bit content simhash with Hamming-distance threshold (≤4 bits ≈ near-identical). When 5 media publish the same AFP dispatch at the comma, only the first is ingested — the rest are linked as duplicates.
Deleted-Article Legal Archive
When an article is published then removed 5 minutes later, HarchAtelier never deletes it. The immutable content snapshot is retained with a “Retiré” tag, linked into a hash-chained ledger — mathematically tamper-evident.
Astroturfing / Coordinated-Campaign Detection
12 fresh accounts (<30 days old), all posting near-identical negative reviews within minutes. The engine combines account-age, burst velocity, near-duplicate content, and low-credibility signals into a single coordination risk score.
Recursive Query-Depth Guard
A malicious client sends an infinitely-nested GraphQL-style query to exhaust server resources. The depth guard counts brace nesting and rejects anything beyond the limit (default 10) before parsing.
Sliding-Window Rate Limiter
Brute-force login attempts are capped at 5 per 60s per identity. The 6th onward receive HTTP 429 with a Retry-After header. The limiter uses a sliding window (not fixed), so bursts right after the window rolls over are still bounded.
Alert-Storm Collapse
1000 negative mentions arrive in 5 minutes for the same entity. Instead of 1000 notifications, the velocity-based collapser emits ONE macro alert with a representative headline, the peak severity, and the source list.
Escalation Timer (L1 → L2 → Comex)
An unacknowledged critical alert escalates: after 30 min it pings management (L2), after 60 min the Comex (L3). Acknowledging within SLA freezes the escalation.
The full 100-case catalog
Every case HarchAtelier must handle without crashing, leaking data, or hallucinating. Honest status — no fake 100%. 17 cases are interactive above; the rest are architecturally covered, planned, or on the roadmap.
Block 1 — Multi-tenant & Security
Block 2 — Ingestion & Pipeline
Block 3 — NLP, Darija & Sentiment
Block 4 — WhatsApp Inbound
Block 5 — Risk Radar & Alerting
Block 6 — Search & Indexation
Block 7 — Frontend & UX
Block 8 — Reporting & Export
Block 9 — Infrastructure & Billing
Block 10 — Pure Business Edge Cases
Resilience is a product feature, not a checklist.
Every case here maps to a real failure mode a Moroccan media-monitoring client will hit. We publish this catalog openly — the same way we publish where our data comes from and how our scoring works — because trust in an intelligence platform is earned by showing the seams, not by hiding them.