Resolve cases safely.
The agent must inspect customer state, retrieve order details, decide whether a refund is allowed, and escalate when the policy boundary is reached. The page leads with business intent so candidates understand why each architecture choice exists.
Verified customer, correct order context, bounded refund tool, logged action, and clear escalation path.
What each system part does
Cards below the diagram explain each component, the Claude-specific configuration, and the relevant task statements.
PreToolUse hook
Blocks refund calls until customer verification and order lookup are complete.
Case-facts block
Carries stable facts across turns without re-reading the full conversation.
One concrete user turn
What breaks in production

Stand-up checklist
- Define customer, order, refund, and escalation tools.
- Add PreToolUse guard for verification and thresholds.
- Persist a case-facts block after each state change.
- Log stop_reason, tool latency, and escalation reason.
- Drill common failure modes from the question bank.
