BlogSecurity & Integrity
Zero Answer-Key Leakage and Monotonic Sequence Autosaves in Browser Exams
Keeping Answer Keys Out of the Browser DOM and Network Tab
In a scored exam, TeachAI sends the browser enough information to display the questions and record selections. The server keeps the answer key, explanations, and authoritative inputs it will use to grade the attempt.
Monotonic Sequence Numbers Against Out-of-Order Retries
On high-latency mobile networks, an older autosave request (seq = 11) can arrive at the server after a newer one (seq = 12). Enforcing monotonic sequence checks ensures stale retries never overwrite a candidate's latest selection.
What candidates see when a connection drops
For example, a candidate changes their answer from B to C as Wi-Fi drops.
- Connection interrupted. The player keeps C on this device and shows that the change is saved locally. The exam timer keeps running during a timed exam.
- Connection restored. Autosave retries the pending change automatically with a newer save number. The player shows that the save is being retried.
- Save confirmed. Once the server acknowledges the latest selection and no edits are pending, the player shows All changes saved with the last save time on wider screens.
What candidates receive
The server grades a scored attempt when it is submitted. The configured release policy controls when candidates can see result details. They can become available immediately, after the exam window and remaining attempts end, or when staff release them.
| Phase | What the candidate sees |
|---|---|
| During the attempt | Question text, option text, and the candidate’s selections. The answer key and authoritative grading inputs stay on the server. |
| After result release | The scorecard shows the score and question review with selected and correct answers, awarded marks, and any explanations. |
Next reading
Designing High-Reliability MCQ Question Banks with Psychometric Item Analysis
Assessment Design2 min read
Deterministic Exam Scheduling Across IANA Timezones and DST Transitions
Scheduling & Ops2 min read