JAMES B. COMEY, the straight-as-an-arrow former No. 2 official at the Justice Department, yesterday offered the Senate Judiciary Committee an account of Bush administration lawlessness so shocking it would have been unbelievable coming from a less reputable source. The episode involved a 2004 nighttime visit to the hospital room of then-Attorney General John D. Ashcroft by Alberto Gonzales, then the White House counsel, and Andrew H. Card Jr., then the White House chief of staff. Only the broadest outlines of this visit were previously known: that Mr. Comey, who was acting as attorney general during Mr. Ashcroft's illness, had refused to recertify the legality of the administration's warrantless wiretapping program; that Mr. Gonzales and Mr. Card had tried to do an end-run around Mr. Comey; that Mr. Ashcroft had rebuffed them.

Mr. Comey's vivid depiction, worthy of a Hollywood script, showed the lengths to which the administration and the man who is now attorney general were willing to go to pursue the surveillance program. First, they tried to coerce a man in intensive care -- a man so sick he had transferred the reins of power to Mr. Comey -- to grant them legal approval. Having failed, they were willing to defy the conclusions of the nation's chief law enforcement officer and pursue the surveillance without Justice's authorization. Only in the face of the prospect of mass resignations -- Mr. Comey, FBI Director Robert S. Mueller III and most likely Mr. Ashcroft himself -- did the president back down.

As Mr. Comey testified, "I couldn't stay, if the administration was going to engage in conduct that the Department of Justice had said had no legal basis." The crisis was averted only when, the morning after the program was reauthorized without Justice's approval, President Bush agreed to fix whatever problem Justice had with it (the details remain classified). "We had the president's direction to do . . . what the Justice Department believed was necessary to put this matter on a footing where we could certify to its legality," Mr. Comey said.

The dramatic details should not obscure the bottom line: the administration's alarming willingness, championed by, among others, Vice President Cheney and his counsel, David Addington, to ignore its own lawyers. Remember, this was a Justice Department that had embraced an expansive view of the president's inherent constitutional powers, allowing the administration to dispense with following the Foreign Intelligence Surveillance Act. Justice's conclusions are supposed to be the final word in the executive branch about what is lawful or not, and the administration has emphasized since the warrantless wiretapping story broke that it was being done under the department's supervision.

Now, it emerges, they were willing to override Justice if need be. That Mr. Gonzales is now in charge of the department he tried to steamroll may be most disturbing of all.