Skip to content
echogeco
Workflows, state and the harness · State and memory

State for a three-day recruiting screen

Design what each applicant's thread persists, where and for how long, so a rubric change mid-role and a restart mid-send cost nothing.

designhardExercise · 4 min · 24 of 75
On this page

A screen that runs for three days per applicant is only as good as what it writes down between runs. The last hire lost two things the state should have held; memory and state for long-running automations is the lesson this practises. The graph sends declines from code, as the lessons draw it to compare skins; the version to ship has a named person decide every decline, and the recruiting screen designs it.

The situation

The agency is hiring a developer and expects about 150 applicants in the first week; each must hear within three days of applying. The graph is the screen from the lessons. Code checks three rules; the model scores the CV on a five-criterion rubric, about 3,700 tokens in and 250 out a call; code routes 18 or more to an invite, 12 to 17 to the founder and under 12 to a decline. The founder clears her queue at 09:00 and 16:00. An invite carries a booking link, a reminder at 24 hours and a close at 48.

On the last hire, two things went wrong. On day two the founder added a sixth criterion, agency experience, after 60 applicants had been scored, and nobody could say who was scored under which rubric. A worker restart during an invite batch sent 11 candidates two invites. The privacy notice promises deletion six months after the role closes. Assume the large model at $2 per million input tokens and $8 per million output, and a 200k-token window.

The question

Design each applicant's state: the fields its thread persists, which are durable and which are recall, where each lives and for how long, and where the run stops. Then show how your design absorbs a rubric change mid-role and a restart mid-send.

A strong answer · Rubric · Where answers go wrong

Write your answer first, then open