Same answers, same result: why a quiz should score on the server
A quiz result is only worth rereading if it is stable. Same answers. Same method. Same page on a phone and a laptop.
A surprising number of tests fail that bar. The questions live in the browser. The “type” is computed in JavaScript. Refresh, switch devices, or open the share
link later, and the story can drift. At that point you did not get a reading. You got a performance of a reading.
What “same answers, same result” actually means
It is a short contract:
1. The answers you submitted are the only input that matters.
2. One published method turns those answers into scores.
3. The stored result is what the share link shows, not a new calculation that might have changed.
If two people give the same answers, they should land on the same leader, the same neighbors, and the same chart. If you open your own link tomorrow, it should
still be that page.
That sounds obvious. It is also the first thing to drop when a quiz is built as a landing page.
Why the browser is a bad place to be the authority
Client-side scoring is convenient. No round trip. Instant badge. It also means:
• A cached old script can disagree with a new one
• A share image can advertise a type the live page no longer computes
• Anyone can edit the page and “win” a rarer label
None of that matters if the quiz is a joke widget. It matters the moment you ask someone to take the result seriously enough to send it to a friend.
The fix is boring. The browser collects answers. The server validates the length and range, runs the method, and stores the payload. The client gets an id. The
result URL is that id, not a new roll of the dice.
What that looks like in practice
On Loretypes (https://loretypes.com), each quiz posts an answers array. The server checks that you sent the right number of integers in range, applies one
method for that quiz, and saves the payload. You get a 12-character id. The page is /aura/r/{id}/, or the same shape for Archetype and Alignment.
Aura uses one method. Archetype uses another. Alignment uses a third (two axes and a nine-part chart). The important part is not the names. It is that each quiz
has one published method, and the result page reads from what was stored.
Share images are generated from that payload. The preview should match the page, not a generic card. Results are kept so a link still resolves later.
You can see the contract without an account: take the Aura Color Test (https://loretypes.com/aura/) or the Moral Alignment Test
(https://loretypes.com/alignment/) and open the result on a second device. The bars and the chart should not have moved.
What this does not claim
Server-side scoring does not make a quiz scientific. It does not make an aura spectrum a diagnosis. It only makes the page honest about its own rules.
If the method is published and the payload is stored, you can disagree with the frame and still trust that the site applied the same frame twice. That is a low
bar. It is also the difference between a result you can reread and a result that evaporates when the JavaScript bundle updates.
The last post in this series is the optional extra after the score: a short AI reflection that must not replace the math.
A full result, no signup: loretypes.com (https://loretypes.com).
评论
发表评论