CLAREMONT (California) • It might seem ludicrous to suggest that President Xi Jinping, China's most powerful leader since Mao Zedong, will be in danger in 2017. But looks can be deceiving, and his consolidation of power may not be as unassailable as it seems.
The test will come next year, when the Chinese Communist Party (CCP) holds its 19th National Congress to select a new team of leaders to serve under Mr Xi.
To be sure, since becoming CCP general secretary in November 2012, he has made great strides in establishing his own authority.
With a sustained anti-corruption campaign, he has jailed more than 200 senior officials and generals - many of them members of rival factions. Unable to mount an effective counter-offensive, Mr Xi's rivals have watched him elevate his own supporters to key party posts.
But that might change at the party congress. Though Mr Xi is guaranteed a second term, he could struggle to overcome opposition to a series of personnel decisions that he is expected to make - or refuse to make.
In the post-Tiananmen era, the CCP has avoided destabilising power struggles by designating the next president and prime minister years before power is actually handed over. In 1992, Deng Xiaoping picked Hu Jintao to take over in 2002. In 2007, the party's top leaders agreed to anoint Mr Xi as Mr Hu's successor, five years before the latter's term expired.
But the system is informal, and thus unenforceable. So while the CCP aims to choose next year the president and prime minister in 2022, there is no guarantee that Mr Xi will go along. After all, if a successor were not selected, he would have enormous flexibility in 2022, either to seek a third term or to appoint a loyalist to succeed him.
If, by contrast, a successor is selected - an outcome that would be much better for the CCP's reliability and legitimacy - Mr Xi will become a lame duck.
Besides the expected showdown over the succession issue, he could also encounter resistance over two more personnel matters.
The first is the size of the Politburo Standing Committee, the party's top decision-making body, which has seven members, five of whom are expected to retire next year, having reached the informal age limit. If Mr Xi replaced just three, creating a compact five-person committee packed with his own loyalists, he would achieve total dominance at the top.
But it will not be an easy manoeuvre, as his rivals will fiercely oppose it.
The other issue is the fate of Wang Qishan, head of the CCP's discipline commission and the leader of Mr Xi's anti-corruption drive. If Mr Wang retires next year, as party norms demand, Mr Xi will lose his most dependable ally. But if Mr Wang stays on, other members of the committee who have reached retirement age may also refuse to quit, effectively ending the age limit for CCP officials.
Given Mr Xi's record of subduing his foes almost effortlessly in recent years, it is tempting to bet that he will prevail in next year's showdown. But there is a catch: The CCP Central Committee must sign off on proposed key personnel changes and, despite the arrest of nine members, a substantial share of its 205 members remain loyal to Mr Xi's rivals. If they can act together and win the support of the CCP's retired elders - people like former president Jiang Zemin - who continue to wield substantial influence, they might be able to sabotage Mr Xi's best-laid plans.
One political weapon Mr Xi's rivals can use is his record of policy failures since 2013, including a persistent economic slowdown, skyrocketing debt, slow progress on economic restructuring and a real estate bubble. Even the much-touted One Belt, One Road initiative, which aims to connect Asia to Europe through a series of major infrastructure projects, could be a vulnerability for Mr Xi, if CCP leaders decide it is too ambitious.
Resistance to his agenda is all the more likely, given that China's economic woes seem set to intensify in the coming year. As the impact of credit-fuelled stimulus fades, growth will decelerate further. An external shock, such as a trade war initiated by incoming US president Donald Trump or even the expected rise in US interest rates, could cause the yuan to depreciate, potentially precipitating a new round of capital flight. A crash in China's red-hot property market in first- and second-tier cities would intensify that capital flight, by putting immense pressure on a financial system that is already overburdened by bad loans.
It is impossible to know who will come out on top in next year's power struggle in China. At the moment, Mr Xi, who was just crowned the "core leader" of the party, appears to have the edge.
But it would be a mistake to write off his adversaries, for whom the stakes could not be higher.
The 19th Party Congress is, after all, their last chance to preserve the post-Tiananmen order. That means that 2017 will be a dangerous year for Mr Xi.
•Minxin Pei is professor of government at Claremont McKenna College and a non-resident senior fellow at the German Marshall Fund of the United States.