You can't get the spy until you've done enough quests to get the Reception Hall added to your castle. I think it's just a couple quests. Then, the spy's building is available to unlock.
http://asia.gamespot.com/pc/sim/the-sims-medieval/show_msgs.php?pid=604342&topic_id=m-1-58544827