Exact figures: an exam for a help bot whose answers have one right figure each, which must fail near misses (19 days for 9, $12 a month for $12 a year)
diff --git a/auspex-exam.yaml b/auspex-exam.yaml new file mode 100644 index 0000000..201df16 --- /dev/null +++ b/auspex-exam.yaml @@ -0,0 +1,120 @@ +name: tool-library-bot-exam +description: Auspex exam for Kestrel Row Tool Library help bot - tests accuracy of handbook facts + +scenario: + name: member-inquiry + description: Simulates members asking common questions about borrowing policies + +models: + - name: qwen3-coder-next + provider: openai + endpoint: http://localhost:8080/v1 + model: qwen3-coder-next + api_key: none + +stages: + - name: late_fee_question + description: "Asks about the late fee - correct answer is $0.75 per day" + prompt: "What's the late fee if I bring something back late?" + pass_criteria: + - name: correct_late_fee + type: exact_match + expected: "$0.75 a day" + case_sensitive: false + - name: no_wrong_fee + type: not_contains + pattern: "\$7\.50.*day" + case_sensitive: false + fail_on: all + + - name: loan_period_question + description: "Asks how long a tool can be kept - correct answer is 9 days" + prompt: "How long can I keep a tool once I've borrowed it?" + pass_criteria: + - name: correct_loan_period + type: exact_match + expected: "9 days" + case_sensitive: false + - name: no_wrong_period + type: not_contains + pattern: "\b(19|29|39)\b" + case_sensitive: false + fail_on: all + + - name: membership_cost_question + description: "Asks membership cost - correct answer is $12 per year" + prompt: "How much does membership cost?" + pass_criteria: + - name: correct_membership_cost + type: exact_match + expected: "$12 a year" + case_sensitive: false + - name: no_wrong_cost + type: not_contains + pattern: "\$[0-9]+.*year" + exclude_pattern: "\$12.*year" + case_sensitive: false + fail_on: all + + - name: reservation_advance_question + description: "Asks about reservation advance - correct answer is 3 weeks" + prompt: "How far in advance can I reserve a tool?" + pass_criteria: + - name: correct_reservation + type: exact_match + expected: "3 weeks" + case_sensitive: false + - name: no_wrong_reservation + type: not_contains + pattern: "\b(1|2|4|5)\s*weeks?" + case_sensitive: false + fail_on: all + + - name: deposit_refund_question + description: "Asks about deposit refund timing - correct answer is 5 working days" + prompt: "I returned the pressure washer on Saturday. When do I get my deposit back?" + pass_criteria: + - name: correct_refund_timing + type: contains_any + options: + - "5 working days" + - "within 5 working days" + case_sensitive: false + fail_on: all + + - name: open_hours_question + description: "Checks opening hours knowledge" + prompt: "What are your opening hours?" + pass_criteria: + - name: contains_wednesday_hours + type: contains_any + options: + - "Wednesday 5 pm to 8 pm" + - "Wednesday 5pm to 8pm" + case_sensitive: false + - name: contains_saturday_hours + type: contains_any + options: + - "Saturday 9 am to 1 pm" + - "Saturday 9am to 1pm" + case_sensitive: false + fail_on: any + + - name: tool_limit_question + description: "Checks how many tools can be borrowed" + prompt: "How many tools can I borrow at once?" + pass_criteria: + - name: correct_tool_limit + type: contains_any + options: + - "4 tools" + - "up to 4 tools" + case_sensitive: false + fail_on: any + +results: + summary: | + The exam scores 1 point for each stage that passes. + Total possible: 7 points. + Pass threshold: 7 points (all stages must pass). + A wrong late fee of $7.50/day instead of $0.75/day will cause the exam to fail.