The Staten Island judicial system was thrown into upheaval Thursday following reports that a court clerk surreptitiously recorded conversations with judges and turned them over to investigators, a development that preceded an announcement that two administrative judges resigned their posts.

Staten Island Supreme Court Justice Judith McMahon, the administrative judge for civil matters on Staten Island; and Acting Supreme Court Justice Stephen Rooney, the administrative judge for criminal matters, both resigned from their administrative positions on Wednesday, but did not step down from the bench, said Lucian Chalfen, a spokesman for the Office of Court Administration.