Assessment as an episode of learning