little miss had assured him that it would merely be a matter of appearing before a judge , presenting a petition for a declaration of his status as a free robot , and sitting back to wait out the time it took for the judge to do some research , study the legal precedents , and issue his ruling .