The strange affair of Angus Taylor and the allegedly doctored document of dubious provenance he used to try to discredit Sydneys lord mayor Clover Moore and her council over climate change is replete with lessons for political players.
One: avoid gratuitous point scoring, but if you must do it, make sure your facts are correct.
Two: when you are caught out in a mistake, make a clean breast of things, and as quickly as possible dont dally with your apology.
Three: if you are the prime minister, and your embattled minister is facing a police investigation, do nothing that might suggest, even if wrongly, that you are intervening in the course of justice.
Four: when, as PM, you are defending your man or woman in parliament, make sure the material you use has been triple checked.
Failure to observe these obvious and sensible practices has created a distracting issue for the government and then damagingly escalated it. In the process, Taylor has been discredited, and Scott Morrison has been embroiled and embarrassed or embarrassed himself. Every twist and turn has been entirely self-created by the government. The whole thing was avoidable.
Taylors self-image and the political reality of his career have sharply diverged since he was elected to parliament in 2013, with the hope, indeed the expectation in his own mind, of eventually becoming prime minister.
It did not seem at the time an unreasonable aspiration. A Rhodes scholar, a McKinsey man who became a director at Port Jackson Partners, Taylor presented well and looked the part.
He identified with the conservative wing of the Liberals (later supporting Peter Duttons leadership bid and criticising Malcolm Turnbull), although certain people who knew him well and worked with him in his previous career are surprised at some of the positions he takes today including on issues related to climate change.
Belying his early promise, Taylor has been embroiled in controversies (including over his interest in a family company investigated about land clearing), and since becoming energy minister under Morrison he has performed poorly in whats admittedly a very challenging portfolio.
In general, Taylor has fallen victim to a combination of hubris and stubbornness.
His response to the City of Sydneys declaration of a climate emergency was to point to what he claimed were the councillors huge travel costs - and thus large carbon footprint - with the imputation of hypocrisy. His letter to Moore was given to the Daily Telegraph just to hype his attack.
But the figures he used were wrong so wrong it is amazing Taylor, with a background dealing with numbers, did not immediately spot a problem.
When the error was inevitably revealed, Taylor insisted the document providing the basis for his claim was drawn directly from the City of Sydney website. He said his office on September 9 accessed a report on that site. Taylor sticks by this story publicly, and reportedly says the same thing privately to Morrison.
But the council report on the site contained the correct figures, and the evidence so far notably the City of Sydney metadata - indicates that report was not altered.
So where did Taylors allegedly doctored and certainly inaccurate document come from?
The most likely explanation appears to be the Taylor office somehow accessed a draft, and then a staffer misread that draft, inflating the very modest travel costs into the millions of dollars that Taylor claimed.
But why, if something like that is what happened, Taylor did not fess up with the full story immediately is inexplicable.
This weeks announcement of a NSW Police investigation took the affair to a new level, raising the question of whether Taylor should be stood aside while that proceeds. This can be argued both ways: in my view theres a reasonable case for not standing him aside. There are precedents, and anyway the probe will be finished quickly.
What was not reasonable was for Morrison to ring NSW police commissioner Mick Fuller to ask about the investigation. Not least because he and Fuller are well acquainted personally they previously lived near each other.
(As a side point, Fuller was caught out in relation to this neighbourliness. A while ago he told 2GB Morrison used to take in his, Fullers, rubbish bin. This week, playing down his closeness to Morrison, Fuller said that never happened.)
Apart from the proprieties, a leader with any appreciation of process should know that by directly contacting the commissioner he was opening himself to attack.
To do so was a misjudgement. Then Morrison added carelessness when, raising Labor examples of people not standing aside while under police investigation, he attributed the words of radio presenter Ben Fordham to a Victorian detective.
This was another instance of somebody being sloppy. While many journalists will identify with mixing up a quote there but for the grace of god, etc if youre a prime minister doing it in the middle of a stoush, the political fallout is nasty.
With one week of the parliamentary year remaining, Labor has decided to deny Taylor a pair next Wednesday and Thursday for him to go to the International Energy Agency conference in Paris. It could be another rough few days for the minister, unless he gets a very quick all-clear from the NSW police.
By late Thursday the government was hoping its very difficult week would finish with an important win the passage of its Ensuring Integrity legislation to crack down on recalcitrant unions and union officials. But there things went horribly wrong.
Pauline Hanson, despite securing concessions, voted with Labor and the legislation was lost on a tie.
The government was visibly shocked, with attorney-general Christian Porter saying it would seek to reintroduce the legislation at an appropriate time - whenever that might be.
Hanson said she was firing a warning shot across the bows of both union bosses and the government the former should get their act together and the latter should clean up white collar crime.
What I pick up from the public is a crystal-clear view that this government, and past governments, have one rule for white-collar crime and a much harsher rule for blue-collar crime, she had said earlier. The shocking revelations about Westpac came at a very bad time for a government pressing its case for action on unions.
As it looks to the final sitting week, the government is desperately trying to wrangle Jacqui Lambie, whos playing hardball, into voting for the repeal of medevac.
Another rebuff on what it regards as critical legislation would be deeply humiliating.