Habitat for the critically endangered swift parrot is being “knowingly destroyed” by logging because of government failures to manage the species’ survival, according to research.