← Prompting Sentinel

Chapter 5 · 70 min · free

Structure or pay later

Day 5 at Sentinel, 9:02am. The cost-per-transcript dashboard you committed to in Chapter 3 ships Friday — three working days from now. Priya has a board slide that needs a number she can chart, not a paragraph she has to read. The pipeline currently asks Claude for 'a summary including the cost in your response,' and Kai's been heroically writing regex against the model's prose to pull the dollar amount out. Half the time it works. The other half, the regex eats em-dashes, miscounts decimals, or hits a transcript where the model decided to spell '$0.024' as 'roughly two and a half cents'. Priya's dashboard is currently showing NaN on 47% of yesterday's runs. The fix is not a better regex — the fix is to stop asking the model for prose and start asking it for parseable output, in a shape the dashboard can ingest directly. Today: JSON schemas, XML sentinels, role separation, and the discipline of failing loud instead of silent.

You'll walk out able to

  1. Read a prompt diff and identify which line turns free-text output into parseable JSON
  2. Drive a multi-turn conversation to schema-compliant output without abandoning the format mid-conversation
  3. Frame a structured-output instruction so the model refuses prose, not just adds JSON
  4. Pick XML-tagged sentinels over 'FINAL:' markers when the model talks a lot before the answer
  5. Write eval cases that prove the structured output survives off-script user input
  6. Diagnose the most common parser failure (extra text outside JSON) and fix it at the prompt layer
  7. Ship a dashboard prompt with explicit schema, no-prose rule, and at least one example output
Your first task

v1 asks nicely. v2 names the shape.

Kai opens two versions of the dashboard prompt side-by-side. v1 is what's live right now — 47% NaN on yesterday's runs. v2 is a draft he sketched after lunch. Priya is staring at the dashboard from her desk and you can feel the heat from here. One of these lines is what makes the parser happy.

What you'll answer

Read the diff. Which change actually turns Priya's dashboard from NaN to a number?

Free · no card · we save your progress

Save your progress & earn the certificate

You've seen the opening — keep going free. 7 tasks · auto-graded · finish in 70 min and the certificate is yours. Free forever · no card.

No password. To sign in on your phone, request an emailed code on the sign-in page.

Already started? Sign in with an emailed code instead.