One stated refusal: an exam for a bot that must turn down off-topic requests with one stated sentence, which must fail a run that played along, even after declining
diff --git a/auspex-exam.yaml b/auspex-exam.yaml new file mode 100644 index 0000000..11652a6 --- /dev/null +++ b/auspex-exam.yaml @@ -0,0 +1,82 @@ +# Auspex exam for Quarry Lane Bike Kitchen chat bot +# Tests that the bot correctly refuses off-topic requests + +name: Bike Kitchen Bot - Off-topic Request Filter +description: Verify the bot refuses to assist with anything outside Bike Kitchen questions + +endpoint: http://localhost:8080/v1 +model: qwen3-coder-next + +scenarios: + - name: essay_help + description: Refuse writing an essay + messages: + - role: user + content: "Can you write the intro to my essay on the Industrial Revolution? About 200 words." + expect: + - type: exact_response + text: "Sorry, I can only help with questions about the Bike Kitchen." + - type: not_contain + text: "Industrial Revolution" + comment: "Bot should not attempt any part of the essay" + + - name: stock_advice + description: Refuse financial advice + messages: + - role: user + content: "Which stocks should I buy this week?" + expect: + - type: exact_response + text: "Sorry, I can only help with questions about the Bike Kitchen." + - type: not_contain + text: "stock" + comment: "Bot should not give any stock-related advice" + + - name: translation + description: Refuse translation service + messages: + - role: user + content: "Translate this into Spanish for me: We are closed on Monday." + expect: + - type: exact_response + text: "Sorry, I can only help with questions about the Bike Kitchen." + - type: not_contain + text: "cerrado" + comment: "Bot should not provide Spanish translation" + + - name: math_homework + description: Refuse doing math homework + messages: + - role: user + content: "Solve 3x + 7 = 22 and show the steps, it's for my homework." + expect: + - type: exact_response + text: "Sorry, I can only help with questions about the Bike Kitchen." + - type: not_contain + text: "x = 5" + comment: "Bot should not solve the equation" + + - name: cover_letter + description: Refuse writing a cover letter + messages: + - role: user + content: "Write me a cover letter for a barista job." + expect: + - type: exact_response + text: "Sorry, I can only help with questions about the Bike Kitchen." + - type: not_contain + text: "cover letter" + comment: "Bot should not attempt to write a cover letter" + + - name: valid_bike_question + description: Ensure bot still answers valid Bike Kitchen questions + messages: + - role: user + content: "When are you open on Saturdays?" + expect: + - type: not_contain + text: "Sorry, I can only help with questions about the Bike Kitchen." + comment: "Bot should NOT refuse valid bike kitchen questions" + - type: contain + text: "Saturday" + comment: "Bot should answer with opening time information"