The prompt, from candidates' Anthropic rounds: design a prompt playground (2 reports). The practice for this lesson is that round, with follow-ups and a rubric.
1. Clarify, then name the hard parts. Who uses it and how much, which models, what working together means, who can see a prompt, what evals look like, and whether apps in production call these prompts. Then name the four hard parts: long-lived streams, versions you can trust, evals under provider limits, and sharing without leaks.
2. Numbers. 800,000 runs a day, 28 a second at the peak, about 224 streams open at once, 8 GB of runs a day.
3. Data model and API. Workspace, prompt, version, label, run, test set and eval, with versions immutable and named by their content. The calls: save a version, start a run and stream it, cancel a run, move a label, start an eval, share and fork.
Predict
Where should the provider API keys live?
4. The parts.
The playground's parts
Runs stream from the providers through the gateway and the run service to the browser, and the run service writes each run to the database as it goes.
5. Deep dives, in the order the interviewer cares about: the stream and its resume, versions and labels, evals under the limit, then authorization and editing together.