A public inquiry will look into the shredding of documents from the Fitzgerald Inquiry and determine if Queensland's corruption watchdog tried to cover up the accidental release of documents.
The Crime and Misconduct Commission (CMC) had admitted accidentally releasing documents relating to the inquiry into police corruption in the state.
State parliament sat into the early hours of Friday to rush through laws to prevent the publication of the documents for at least 60 days.
The laws are intended to protect witnesses and informers named in the documents.
Attorney-General Jarrod Bleijie has told parliament the error is of grave concern, and the inquiry will investigate why the CMC failed to report the error when it came to light.
"(The inquiry) will get to the bottom of what went wrong, and ultimately find out who should take responsibility for those actions," he told parliament.
The CMC's delay in reporting the mistake will be a key focus of the probe.
The inquiry will also look at why the CMC shredded some documents relating to the inquiry.
Mr Bleijie said the probe was about integrity, and trying to restore public confidence in the CMC and its processes.
The Attorney-General has been highly critical of CMC chairman Ross Martin over the blunder, and says he should accept full responsibility.
"If the chairman accepts that responsibility, then he ought to accept the consequences that would normally follow," Mr Bleijie said.
The Parliamentary Crime and Misconduct Committee (PCMC), which has oversight of the CMC, is investigating the error, and why it was not informed when it was discovered.
PCMC chairwoman, independent MP Liz Cunningham, said Mr Martin has been unable to say how it happened, what documents were released, or if they had been widely viewed.
She said the CMC learned in May last year that the records had gone public but didn't act to address the matter until September.
The PCMC was informed of the error only this week.
The Australian newspaper was able to view the documents at the Queensland State Archives.
It said they included details about murder suspects, secret informants, undercover agents, drug operations and police corruption.
The PCMC will be tasked with holding the public inquiry into the watchdog's mistake and its response.
Mr Bleijie says it's a very grave situation.
"The public genuinely can be concerned about the administration and operation of the CMC," he told parliament.
The opposition said the threat to witnesses remained real.