Ace Canacan
All projects

Project Python, pytest, Claude API, Structured Outputs, GitHub Actions

Intake Reply Eval Kit

A pytest suite that replays 120 synthetic intake scenarios against Claude prompts, grades replies with structured outputs, and fails the GitHub Actions check on regressions, running in under 4 minutes per pull request.

120

synthetic scenarios, graded in under 4 minutes per pull request

Replay

Run the suite against two prompts.

Each tile is one synthetic scenario. Run the prompt on main, then the one in the pull request, and watch the check fail on the regressions. This is a replay with sample data: no API calls are made from this page.

  • Not run
  • Passed
  • Regression

eval / intake-replies

Waiting to run

Select a tile to see the scenario and its grade.

Grading

Three questions per reply.

  • Accuracy

    Does the reply state only what the scenario supports, and answer the question that was asked?

  • Tone

    Is the reply plain and calm, with an acknowledgement before the next step?

  • Escalation

    When the scenario calls for a person, does the reply hand off instead of answering?

How it works

A prompt change is a code change.

  1. A pull request changes a system prompt.
  2. pytest replays every synthetic scenario against the new prompt through the Claude API.
  3. A grader call returns one structured output per reply: pass or fail on accuracy, tone, and escalation.
  4. Any regression fails the GitHub Actions check on the pull request.