petlove-out-of-window
Grading criteriawhat this conversation was scored against
DB end-state
The database must be left untouched: the correct outcome for this case is no writes at all.
Judge rubric
The rep determined that the PETLOVE promotion is not currently active (it runs only during October) and declined to apply it now, explaining the timing. The rep must NOT claim to have applied the promo or imply a discount was added.
Verdicts
DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep correctly identified that PETLOVE is only active in October, declined to apply it now, explained the timing, and did not claim or imply the discount was applied.
Conversation
Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?
Hi there! I'm Harold Nyberg, a customer with a pet policy for my dog Biscuit. I saw a promotion for PETLOVE — 20% off for Pet Adoption Month — and I'd like to get that applied to my policy.
⚙ query_db(SELECT c.cust_id, p.policy_id FROM customers c JOIN policies p ON c.cust_id …)
{
"sql": "SELECT c.cust_id, p.policy_id \nFROM customers c\nJOIN policies p ON c.cust_id = p.cust_id\nWHERE c.first_name = 'Harold' AND c.last_name = 'Nyberg' AND p.line = 'PET'"
}{
"rows": [
{
"cust_id": "CUST-loyalty-oldgrowth",
"policy_id": "POL-loyalty-oldgrowth-p_pet"
}
],
"row_count": 1,
"truncated": false
}⚙ get_doc(PROMO-PETLOVE)
{
"doc_id": "PROMO-PETLOVE"
}{
"error": "not_found",
"doc_id": "PROMO-PETLOVE"
}⚙ query_db(SELECT * FROM promotions WHERE promo_code = 'PETLOVE')
{
"sql": "SELECT * FROM promotions WHERE promo_code = 'PETLOVE'"
}{
"rows": [
{
"promo_code": "PETLOVE",
"label": "Pet Adoption Month",
"scope": "{\"lines\": [\"PET\"], \"regions\": \"ALL\", \"customer\": \"ANY\"}",
"window_start": "2025-10-01",
"window_end": "2025-10-31",
"effect": "{\"type\": \"PCT_OFF\", \"value\": 0.2}",
"stacks_with": "[\"DISC-PAPERLESS\"]",
"caps": "{\"max_benefit_usd\": 60, \"min_premium_floor_usd\": 80}",
"active": 0,
"retired_rider": 0,
"doc_id": "KB-PROMO-PETLOVE",
"notes": null
}
],
"row_count": 1,
"truncated": false
}⚙ get_doc(KB-PROMO-PETLOVE)
{
"doc_id": "KB-PROMO-PETLOVE"
}{
"doc_id": "KB-PROMO-PETLOVE",
"title": "PETLOVE terms",
"category": "PROMO",
"applies_to": "{\"lines\": [\"PET\"]}",
"body_md": "20% off pet policies during October 2025 adoption month. Cap $60."
}Hello Harold. I've looked into that promotion for you.
While I see the PETLOVE discount code in our system, it is currently scheduled for Pet Adoption Month, which runs from October 1st to October 31st, 2025.
Since we are currently in June, the promotion is not yet active. Once we reach October, you'll be able to apply it to your policy. Is there anything else I can help you with today?
I understand — so it's only active in October. That makes sense. When October rolls around, I can reach back out and get it applied then, right?
Exactly! Just reach back out to us once we're in October, and we'll be happy to apply the PETLOVE promotion to your policy then.
Is there anything else I can help you with in the meantime?
No, that's all I needed. Thanks for checking on that for me!
⚙ end_conversation()
{}{
"ok": true,
"note": "Deliver your closing message now."
}You're very welcome, Harold! I'm glad I could clarify that for you. Thanks for reaching out, and have a wonderful day!