54/60 vs 38/60new phrasings understood: AI-first vs rules alone, first run, published as measured
01The problem
Why it exists
A citizen describes a life event in one sentence, in Arabic (Saudi dialect included) or English, such as «بسافر مع العيال والمدام الأسبوع الجاي». Ijraa works out every government service that event needs, checks each one against the household's records with fixed rules, orders them so each one passes (the fine before the renewal it blocks, the passport before a trip that outlasts it), shows the total and runs all of it after one approval with a code. Version 5.0 is AI-native end to end: the model reads every message and words every reply, while code decides eligibility, fees and order, and every plan comes with a decision receipt that says who decided what. It also acts before being asked: a trip guardian watches travellers until departure, autopilot prepares due renewals, and a year-ahead view prices everything coming up. Built as a fictional demo: the people, ID numbers, fees and rules are illustrative, and it is not affiliated with any government platform.
02The system
What I built
One sentenceArabic, dialect or English
AI understandsvalidated; asks when unsure
Rules decidechecked, ordered, priced
One approvalone-time code
Watched afterguardian, receipts, audit
A rules engine for 38 services (passports, IDs, iqamas, exit and re-entry with extension, cancellation and refunds, final exit, licences, registration, plates, inspection, violations and objections, visit visas, domestic workers, sponsorship transfer, worker absence, complaints, travel restrictions, marriage, a death in the family, review requests): every check returned in Arabic and English, so the citizen sees why
AI-first understanding (Groq gpt-oss-120b, then Workers AI, then rules) whose output is validated field by field; when the model and the rules read a request differently and both would act, it asks instead of guessing
Reply guards: the AI's wording is rejected if it adds a number, claims something already happened, promises an action a read-only answer can't take, or leaks its prompt, checked per language (Arabic, Urdu, Hindi, Bengali, Tagalog)
One approval with a one-time code; every step re-checked against the live record when it runs; a plan map with a decision receipt (what the AI understood, what the rules decided, what only the citizen decides, where it is logged)
Never stuck: every failed rule check maps to a fix from a fixed table (pay the fine first, a date it opens with one tap to schedule, something to bring, or a person decides), and any blocked step can go to an officer for review with the failed check attached; life events told once (moving takes upcoming appointments to the new city; marriage and a death verified by an officer); delegation with a spending cap, above which the plan goes to the account holder to approve with their own code
Acting before being asked: a trip guardian that re-checks travellers daily until departure and warns once about anything new, autopilot standing instructions, scheduled plans, a priced year-ahead timeline and a 90-day forecast that counts each step once
An officer console with a rules-ranked queue (accidents, absences, complaints, objections near the service level first), AI briefs that never decide, decision letters drafted by AI and checked by code (numbers only from the case, the same outcome the officer chose, one script) before the officer edits and signs, supervisor patterns, quality and fairness, and a policy simulator on 200 synthetic households
Trust by design: a Trust center with the access log in plain words, a hash-chained audit, verifiable and printable documents, masking before any model call, a strict content security policy, and a published 27-attack red-team run
Measured in production, not only on test sets: officers label a random 1 in 20 of real AI readings, and the Trust center shows the live agreement rate with its interval only after 30 labels, kept apart from the test-set numbers; only the label is kept, never what the visitor typed
03The result
What it achieved
Measured on phrasings written before each test and published as they came out: on 60 new phrasings the AI-first pipeline got 54 right on its first run against 38 for rules alone, and on 40 new Arabic phrasings (Gulf dialect and MSA) 39 right plus 1 where it asked, against 35 for rules alone. On 30 phrasings for the 6.0 life events and delegation caps, the first run gave 18 right plus 1 asked for AI-first against 14 for rules alone; the misses (a dropped subject, "my car died" read as a death) were fixed by class and the after-fixes run is published separately. The same person wrote the rules and the tests, so these are not independent numbers; an independent set is being collected. A 68-test QA run against the live site found 12 failures, 11 fixed the same day and re-checked live. 102 unit tests and the rules-only evaluation run in free CI on every push; a post-deploy smoke test, a pre-meeting demo check, and three end-to-end scripts through chat, approval, delegation and the officer console. A wrong reading costs a wrong suggestion, never a wrong action, because nothing runs without the citizen's code.