Skip to content
S/N
Selected work
04 — Business & Commercial Transformation

The model advises. Policy and people decide.

Type
hybrid
Role

Designed and built the concept, backend, front end, tests and demo

Context
Product registrations get delayed when document problems are found late and the application goes back for another review. Finding them at intake saves reviewers' time and applicants' weeks.

01The brief

Follows one application through four moments: find where applications get stuck, catch a mismatch at intake, act with control, and measure the improvement. Built on a synthetic 480-case event log and a local model.

Product registrations get delayed when document problems are found late and the application goes back for another review. Finding them at intake saves reviewers' time and applicants' weeks.

FastAPI and SQLite behind a React front end. A local Ollama model compares fields, the server verifies its answer, and a YAML policy engine allows, escalates or blocks every action.

Challenges

  • A model's suggestion must never act on its own
  • Every number shown has to be traceable to data, not typed in
  • Document text must not be able to instruct the system (prompt injection)

02How it works

Purpose

Mine a synthetic event log to find where applications loop back into review.

Inputs

  • → 480 synthetic cases and their event log

Outputs

  • ← Rework rate of 38.5%
  • ← The rework loop highlighted

Considerations

  • Every number in the UI comes from the database or the simulation engine, never typed by hand

03Approach

My role

  • Designed and built the concept, backend, front end, tests and demo

Approach

  • Mine the event log first, so the problem is measured before AI is added
  • Make the model advisory: the server verifies its output and discards what it cannot confirm
  • Route every action through one path: policy check, idempotency, audit
The model advises, the policy engine decides
The LLM never triggers an action. Its output is verified field by field against the documents, and the policy gate reads structured fields only, so document text cannot instruct it.
Small model, measured
Three local models were benchmarked on the comparison task. qwen3:1.7b matched the larger model's accuracy at about 2.5 times the speed, so it is the default. Small sample, one machine.
Honest fallbacks
If no model is reachable, the interface says so and offers a simulation mode that is labelled as rules, never presented as AI.
Numbers carry their provenance
Each metric is tagged Demonstrated, Projected or Historical, with the assumptions behind projections visible and adjustable.

04Results

  • 480

    Synthetic cases mined

  • 38.5%

    Cases with rework

  • 1.8

    Review steps avoided per case

  • 46

    Backend tests

  • 38.5% of synthetic cases loop back into document review
  • A 150-second narrated walkthrough, including a prompt-injection attempt that the server blocks
  • 46 backend tests and 11 end-to-end tests

05Honest limits

  • Built as a pitch to ARIS, based on its published Dubai Municipality customer story. It is not an ARIS or Dubai Municipality product, and it is not integrated with either.
  • All data is synthetic. Companies, certificates and event logs are generated locally.
  • Roles in the interface are simulated, not authentication. It is not built to be deployed publicly.
  • The model benchmark is a small sample on one machine.
  • Python
  • FastAPI
  • SQLite
  • React
  • TypeScript
  • Ollama
  • Playwright