according to the article to Riley gave candy to Tracy. Given the question "What does Riley need to do before this?", is "give candy to tracy" a valid answer?

-- Yes. -- No.
The answer is:
Yes