Where I work we have a very documented procedure for release to service by a qualified captain.
You write up whatever happened with the aircraft, call the company and the engineer on duty guides you through paperwork for releasing the aircraft. If the engineer is available on site, then they take responsibility for releasing the aircraft.