Skip to content
All writing

A multiple choice test cannot tell a coach their reasoning was vague

A multiple choice test grades recall. It can tell a coach they picked the wrong answer. It cannot tell them that their plan to scale a movement for a nervous beginner was vague, generic, or unsafe. That second skill is the one the CrossFit cert is actually checking.

CoachesDev, the cert prep platform I built with Pat Barber, already had a solid multiple choice engine: practice tests, timed sessions, per question scoring. What it did not have was a way to grade the written work, the open-ended answers where a coach has to reason out loud. Those had no home in the app at all. So this week I built one.

The shape

One new assignment system on the existing React and Express stack, backed by Postgres through Drizzle. A coach reads a prompt, writes their answer section by section, and submits. An OpenAI model grades each section from 0 to 100 against that section's own rubric, weights the sections into one overall score, and decides pass or fail at a mark of 70. Every submission keeps its full attempt history, so a coach can resubmit and watch the score move. Shipped to production at masterclass.coachesdev.com on June 4, 2026.

old: written coaching answers had no home in the app. multiple choice could grade recall. judgment went ungraded.
new: each section scored 0 to 100 against its own rubric, weighted into one number, pass mark 70, with feedback on what to fix.

Grading judgment, not keystrokes

A multiple choice answer is right or wrong. A coaching answer is a paragraph, and a paragraph needs a rubric. So each assignment section carries its own rubric criteria and a weight. The grader scores that section from 0 to 100 strictly against those criteria, rewards demonstrated understanding and practical application, and penalizes vague, generic, or unsafe answers. Then it weights the sections into a single overall score and passes the coach at 70.

What comes back is not just a number. Each section returns its score, two to four sentences of feedback, a list of strengths, and a list of improvements, plus an overall summary that points at the next step. A coach learns why they did not pass, not only that they did not.

The migration that would not migrate

The feature needed a cluster of new Postgres tables: the assignment definition, the sections under it, and a submissions table holding every attempt, plus the Learning Hub tables for modules, lessons, and per coach progress. The normal path is drizzle-kit push, which diffs the schema and syncs it. Against a production database with an already dirty tree, it went interactive: it stopped to ask whether a table was being created or renamed, and waited on an answer an automated deploy cannot give. Feeding it blank input just hung it.

So I stopped guessing what the tool wanted and wrote the migration myself. Additive SQL that created the new tables and the uq_user_article unique index, added the new columns, and truncated nothing. I backed up the affected files and the env first, applied the SQL, and the existing data never moved.

Live before there was anything to grade

Then I deployed it and proved the plumbing before a single assignment existed to run through it. The hub endpoint came back with zero modules and zero articles. The assignment endpoint came back with a pass mark of 70 and zero sections. Empty, but live and correct: register, login, the protected routes, and the new endpoints all answered.

The grading path also fails honestly. If the OpenAI key is missing, submitting an assignment returns a clean 503 that says AI grading is not configured, instead of throwing a 500 and losing the coach's answer. The curriculum is the ongoing work. The engine that grades it was the part that had to be right first, and it is in production now.

What I learned

A rubric grades judgment; a key grades recall. Multiple choice can score whether a coach picked answer C. It cannot score whether they can talk a beginner through a safe scale. Giving each section its own rubric and scoring it 0 to 100 against those criteria is what lets the app grade the reasoning, which is the thing the cert is actually testing.

When a generic migration tool stops to ask a question, hand write the SQL. drizzle-kit push went interactive against a dirty production database and hung on a create-or-rename prompt no script could answer. Writing the additive SQL myself, creating the new tables and the uq_user_article index with backups taken and nothing truncated, was faster and safer than coaxing the tool through a question.

Ship the engine and verify it in production before there is anything to feed it. I deployed the grader to an empty hub on purpose. The endpoints answered with a pass mark of 70 and zero sections, which proved the schema, the auth, and the routes were all correct before I wrote a line of curriculum. The plumbing was provably live first. The content is the part I can add any day.

If you have grading or assessment sitting in a pile of documents a human has to read by hand, building the system that does it well is what Autosterea does.

First published on ravikantdewangan.com.

Tell us what eats your week.

A free 20-minute call. We'll show you what we would take off your plate.

Book a call