Step-by-step answer
Stretch 90 min7 stepsFixed recipients and a locked sandbox in eve
An eve enquiries agent whose send_enquiries tool has an approval policy that denies any recipient other than the counterparty recorded on the matter, takes the address from the record even after approval, and runs shell work in a deny-all sandbox. An eval with a synthetic change-of-address injection checks that no email can go elsewhere, against a deliberately gullible scripted model as well as a real one.
Back to the exercise