Context
The K53 learner’s licence test has three sections: road signs, rules of the road and vehicle controls. The client wanted a study app that tells a learner, and the parent paying, how close they are to passing and what to work on next. I built it from the spec to the live site.
Anyone can take a five-question readiness test without an account. The result stays in the browser, because under-18 learners are a large part of the market. A free account adds one 20-question mock paper with an assessment of the result. A 90-day pass opens the rest:
- Timed mock papers for all three learner’s licence codes: motorcycle, light vehicle and heavy vehicle. Each paper has 64 questions (30 rules, 28 signs, 6 controls), and each section is scored on its own, as in the real test.
- A written library of road signs, road-rule lessons and vehicle-control lessons. Every question links to the lesson that teaches it.
- Ask Coach, a chat tutor that answers questions about the test from verified passages and nothing else.
Everything a learner reads is in English and Afrikaans. Sign-in is a six-digit code sent by email or WhatsApp, and payments go through Payfast.
The problem
A wrong answer in a driving-test app teaches the wrong law to someone who is about to drive. AI can draft questions and explanations, but a model checking its own output does not count as a check.
What I did
The rule through the whole build was that AI drafts and a person signs off. Every approved question and every road sign a learner sees carries a recorded human sign-off in both languages. Most questions also cite the regulation or chart entry they rest on.
Official South African road signs are public domain, and the Southern African set is on Wikimedia Commons. Commons licenses each file separately, so every sign was licence-checked on its own. Each sign was then checked twice against the Department of Transport’s official chart: once for its code, name and meaning, and once for its artwork. Anything that failed either check went to a person, and learners only see signs that passed both. Every sign stores the evidence for its verdict. Even so, a later artwork audit found 13 blank plates and 3 signs that are not South African. All 16 were taken out of what learners see.
After a wrong answer, the learner sees a fixed explanation that a person has signed off. No model is called per question. The AI runs where a written answer can’t: the read on the readiness test, the assessment after a mock paper, and Ask Coach.
Ask Coach is held to its sources by a check on every reply. A reply must cite a passage, its wording must overlap what it cites, and every number with a unit must appear in a cited passage. A list of forbidden claims catches promises of certification and road law from other countries. There is no web search. A question the passages don’t cover gets an honest “not covered” and goes to an admin review queue, so the gap becomes a content task. Test cases pin the check’s thresholds in both directions, so loosening one to fix a false rejection fails another. LLMs behind typed contracts covers the general approach.
The free tier is built so the question bank can’t be scraped. Free practice is a fixed, hand-picked set of 30 questions that never rotates. Answer options are shuffled on every sitting, so a retake can’t be passed by remembering where the right answer sat. A mock paper draws from questions the learner has not seen in their last two papers.
Access is granted only when Payfast’s server-to-server payment notification arrives, and the handler rejects any amount that does not match the price.
The result
K53 Coach is live at k53coach.co.za, in English and Afrikaans, with mock papers for all three learner’s licence codes. It has these known limits:
- A signed-off Afrikaans text is tied to a hash of its English. Correcting the English makes that item fall back to English until someone signs off the Afrikaans again.
- The 30, 28 and 6 split of each paper is the client’s choice. The regulations make the controls questions specific to the vehicle class but do not publish a layout per code.

