There are two tasks for a defeated political party seeking to return to power. the first is to become a credible opposition; the second to become a credible alternative. under keir starmer, britains labour party has taken some impressive strides towards the first goal. the second is going to take longer.

The early months of a new party leader is always spent scraping away the barnacles of the previous regime. it is the easier part of the job but sir keir has done it ruthlessly. in his speech on tuesday to a virtual labour conference he buried the hard left legacy of corbynism with gusto. it was striking that while tony blair, leader of the new labour project of the 1990s, was mentioned twice, the name of jeremy corbyn was not uttered.

Sir keir showed revulsion at the anti-semitism that tainted the party in recent years. he pledged labour would never again go into an election not being trusted on national security, with voters jobs, communities and money, and said labour had to accept and adapt to the harsh judgment voters delivered in last decembers election. in so doing, he consigned the corbyn era to its rightful place as a shameful footnote in labour history.

It is not only mr corbyns legacy he has buried. on brexit, he has of necessity ditched his pro-remain stance for the more effective position of challenging prime minister boris johnson to deliver on his pledge to get brexit done and deliver a good trade deal.

Sir keir has also built up a coherent assault on the government, homing in on incompetence on the pandemic and on brexit. coronavirus is a difficult issue for labour. the line between constructive opposition and opportunism is fine. the new leader has not always got it spot on. but he has scored some parliamentary wins and as the governments mistakes increase few doubt he will be effective in holding it to account. on restoring labour as a party of opposition, then, sir keir scores highly.

On the second task, the picture remains fairly murky. it is too early to expect detailed policies but while the labour leaders rhetoric hits the right notes it is hard to discern the true strategic goals that underpin it and will ultimately inform those policies. we know what labour is not, but not what it is.

Sir keirs economic principles are vague. has he or has he not disowned the corbyn manifesto of multiple nationalisations, and substantial rises in taxes and spending? the current crisis lets labour off the hook for now; all parties back big government and high spending. but labour must not be gulled into viewing a crisis economy as a permanent position.

Equally, the former lawyer must find a path between his progressive middle-class membership and the social conservatism of labours lost voters. in his leadership election he essentially promised the best of blair and the best of corbyn. he knows there is little overlap. his speech showed many blairite flourishes. repetition of the phrase new leadership evoked memories of blairs new labour. his core positions will differ from mr blairs but he needs the same clarity of values.

Restoring labours credibility and highlighting the governments failures will get sir keir a long way. there are good reasons to believe the tories will disappoint their voters. but he cannot count on mr johnson being his opponent at the next election and voters will focus not only on where the government has failed but on why labour would do better. sir keir has made a strong start and it is good for the country to have a viable opposition. but the hardest yards are still ahead of him.