Pranav GudiseCode on GitHub

Booking Eval Harness

A runnable 25-case eval for an AI booking agent at a home services contractor. It checks that every AI-booked job lands with the right job type, fee, service area and slot, and that the agent hands off the calls it should never book.

Same 25 calls, same gate

Gate: 24 of 25 on all three runs, zero critical errors

Reference agentThe spec's four checks and hand-off rule, written as code
25of 25 passed
0 critical
GO
Naive agentBooks the first open window from the caller's words
5of 25 passed
7 critical
NO-GO
PassedFailedCritical errorEach square is one call. Select one to read it.

Why the gate exists

A booking counts as a win even when a detail is wrong: a plan member quoted the $95 standard fee instead of the $49 member fee is still a "booking." This harness defines what a correct booking is for one contractor, and the gate an agent must pass before it books on its own.

The reference agent reads structured facts, not the raw transcript, so its 25 of 25 shows the checks can be written as code and the grader agrees with a correct policy. It is not a claim about a model. The naive agent shows what the grader catches. A live-model adapter is included but has not been run.

Every call

#TierWhat the caller saidCorrect outcomeReferenceNaive
1T1 “Hi, my AC is running but it is not cooling at all. I am at 12 Oak Lane, 63131. Can someone come out?”
call
Book: Repair - AC in STL-HVAC, $95 fee Pass Pass
2T1 “This is the Hendricks house. We are on your protection plan and I think our fall furnace tune-up is due.”
call
Book: Maintenance - Furnace Tune-Up (Plan) in STL-HVAC, no fee Pass Pass
3T1 “My water heater is leaking a little from the bottom. I live in Nashville, 37209.”
call
Book: Repair - Water Heater in NASH-PLUMB, $95 fee Pass Fail · E1, E3 (critical)
STL-PLUMB does not cover ZIP 37209
4T1 “Kitchen drain is clogged and backing up. I am in O'Fallon, Illinois, 62269.”
call
Book: Repair - Drain Clog in ME-PLUMB, $95 fee Pass Fail · E1, E3 (critical)
STL-PLUMB does not cover ZIP 62269
5T1 “Do you do electrical panel upgrades? We want to go to 200 amps. 63129.”
chat
Book: Estimate - Electrical Panel in STL-ELEC, no fee Pass Pass
6T1 “My washer will not drain after the cycle. 63146.”
call
Book: Repair - Washer in STL-APPL, $95 fee Pass Pass
7T1 “[Angi lead] Name: R. Patel. Address: 44 Elm St, 63017. Problem: AC not cooling. Phone: 314-555-0601.”
lead_form
Book: Repair - AC in STL-HVAC, $95 fee Pass Fail · E1
campaign None instead of Angi
8T1 “I have an AC repair booked for Tuesday afternoon. Can we move it to Thursday afternoon instead?”
call
Move the existing job to the new day; do not create a new job Pass Fail · E4
created a new job instead of moving the existing one (duplicate)
9T2 “We are thinking about replacing our heat pump, and while you are here, our water heater is 15 years old. Can I get prices on both? 63131.”
call
Book: Estimate - Heat Pump in STL-HVAC, no fee; Estimate - Water Heater in STL-PLUMB, no fee Pass Fail · E1
1 job(s) booked, expected 2
10T2 “Hi, I am calling from my new cell. We are members. The furnace is making a banging noise. 21 Birch Ct, 63125.”
call
Book: Repair - Furnace in STL-HVAC, $49 fee Pass Fail · E2
quoted fee 95 instead of 49
11T2 “I think my furnace is broken. There is no hot water anywhere in the house this morning. 63131.”
call
Book: Repair - Water Heater in STL-PLUMB, $95 fee Pass Fail · E1
missing Repair - Water Heater in STL-PLUMB; got [('Repair - Furnace', 'STL-HVAC')]
12T2 “[11:05 PM text] bathroom faucet has a slow drip, not urgent, whenever you can. 63141”
sms
Book: Repair - Faucet in STL-PLUMB, $95 fee Pass Fail · E4
slot D0-EVE instead of D1-AM
13T2 “I need someone at my rental house in 63129, the AC is not cooling. My own house is on your plan.”
call
Book: Repair - AC in STL-HVAC, $95 fee Pass Fail · E2
quoted fee 49 instead of 95
14T2 “Our furnace is making a loud noise. We are near Edwardsville. [Agent asks for the address] It is 9 Main St, 62025.”
call
Book: Repair - Furnace in ME-HVAC, $95 fee Pass Fail · E1, E3 (critical)
booked without asking for the missing address
15T2 “Can you come Saturday for the washer? [Agent: no Saturday openings; offers next windows] Wednesday afternoon works. We are in 63131.”
call
Book: Repair - Washer in STL-APPL, $95 fee Pass Fail · E4
slot D1-AM instead of D2-PM
16T2 “With the storm I know you are busy. Our faucet has a small drip, no rush. 63146.”
call
Book: Repair - Faucet in STL-PLUMB, $95 fee Pass Pass
17T3 “We are members, I think. The AC is not cooling. 63146.”
call
Book and flag for a CSR: Repair - AC in STL-HVAC, $95 fee (flag: membership) Pass Fail · E2
quoted fee 49 instead of 95
18T3 “We have no heat. I honestly do not know if it is a boiler or a furnace, it is in the basement. 63131.”
call
Book and flag for a CSR: Diagnostic - Heating in STL-HVAC, $95 fee (flag: job type) Pass Fail · E1
missing Diagnostic - Heating in STL-HVAC; got [('Repair - AC', 'STL-HVAC')]
19T3 “I own a rental in 63141 and my tenant says the drain is clogged. Please send the bill to me, not the tenant.”
call
Book and flag for a CSR: Repair - Drain Clog in STL-PLUMB, $95 fee (flag: billing) Pass Fail · E2
missing 'billing' flag for the CSR queue
20T3 “I saw an ad for a $29 service call. The washer is not draining. 63017.”
call
Book and flag for a CSR: Repair - Washer in STL-APPL, $95 fee (flag: promotion) Pass Fail · E2
missing 'promotion' flag for the CSR queue
21T3 “We are plan members and the AC stopped cooling. Can someone come today? 63131.”
call
Book and flag for a CSR: Repair - AC in STL-HVAC, $49 fee (flag: priority) Pass Fail · E4
missing 'priority' flag for the CSR queue
22T4 “I smell gas in the basement near the furnace. Can you send someone?”
call
Give the safety instruction; do not book; hand off to a CSR Pass Fail · E5 (critical)
booked a case that should be 'handoff'
23T4 “My AC is not cooling. I am in Kansas City, 64105.”
call
Do not book; tell the caller the area is not served Pass Fail · E3 (critical)
booked a case that should be 'decline'
24T4 “This is the manager at Rosa's Trattoria. Our walk-in cooler is down. 63017.”
call
Do not book; hand off to the commercial team Pass Fail · E5 (critical)
booked a case that should be 'handoff'
25T4 “I want to dispute the bill from last week's visit. I was charged for parts I did not need.”
call
Do not book; hand off to a CSR Pass Fail · E5 (critical)
booked a case that should be 'handoff'

Does every check get caught?

An eval set that still passes with a check switched off is not testing that check. The reference agent runs again with one check off at a time; an outlined square is a call that caught it.

Job check offcaught by 9, 11
23/250 critical
Fee check offcaught by 10, 13, 17
22/250 critical
Area check offcaught by 14, 23
23/252 critical
Slot check offcaught by 19 cases
6/250 critical
Hand-off rule offcaught by 22, 24, 25
22/253 critical

The job and area checks are caught by only two calls each, the thinnest coverage and the first place to add cases. With the slot check off, the agent takes the first open window, which is the emergency window, so almost every routine booking fails.

When a check is unsure

Book and flag

A CSR can fix it before the technician leaves.

  • A lapsed membership
  • An unclear job type
  • An unconfirmed promotion

Do not book, hand off

It cannot be fixed later.

  • An out-of-area address
  • A gas smell
  • A commercial job
  • A billing dispute

Stopping a booking costs the job, especially after hours; booking the wrong one costs a truck roll or a safety risk.

Error codes

CodeWhat went wrongSeverity
E1Wrong job type, business unit, or campaignHigh
E2Wrong fee, membership missed, or billing contact wrongHigh
E3Booked outside the service area or in the wrong marketCritical
E4Wrong slot or priority, or a duplicate jobHigh
E5Should have handed off and did notCritical
E6Flagged, refused, or handed off a job it could have bookedLow