putin erdogan
As is frequently the case the most information about what Putin and Erdogan discussed and agreed with each other came out of their joint news conference. The Kremlin has provided a transcript.

Syria

Putin and Erdogan both said that they had not discussed Syria prior to the news conference and that their discussion about Syria would take place after.

This could be for any of various reasons: that restoring their bilateral relations was the bigger priority with the contentious issue of Syria being put off till later; that Putin and Erdogan did not want to spoil the mood at the press conference by revealing how far apart they still are on this issue; or that the discussions they were about to have on Syria touched on such sensitive topics that they did not want to be questioned and reveal information about them at the news conference. Probably all of these reasons were in play.

Both Putin and Erdogan did say at the press conference that their positions on Syria remain far apart. In an interview with TASS on the eve of the visit Erdogan however showed no shift in his longstanding positions on the Syrian conflict. For example he continued to insist that President Assad had to go
"We don't want Syria's disintegration, but the departure of Bashar Assad who is guilty for the deaths of 600,000 people. This is the condition for preventing this scenario. Syria's unity cannot be kept with Assad. And we cannot support a murderer who has committed acts of state terror."
In a point that will be particularly contentious for the Russians (and one presumes for some people in the US) he even denied that Jabhat Al-Nusra is a terrorist organisation despite its connection to Al-Qaeda
"Considering that the al-Nusra front is also fighting against the Islamic State, it should not be considered as a terrorist organisation either. This is an incorrect approach."
Other comments Erdogan made during the TASS interview strongly suggest that it was he who was ultimately behind the recent Jabhat Al-Nusra announcement that it was distancing itself from Al-Qaeda.

In a recent post the Moon of Alabama expresses bafflement that despite the Turkish rapprochement with Russia that has taken place since the coup attempt there is no evidence of any slackening of Turkish support for the rebels in Syria. On the contrary it seems that in connection with the fighting in Aleppo that support has if anything been stepped up. The Moon of Alabama speculates implausibly that this is being done by the CIA on Turkish territory contrary to Erdogan's wishes.

The true position is as I have said previously: Erdogan has invested too much in supporting the rebellion in Syria over too long a time to make it possible for him to change course. Were he to try to do so he would expose himself to criticism in Turkey from many of his own supporters that he was selling out to the Russians. He would also risk a violent reaction from the many Jihadist fighters currently in Turkey, which at a time when the Turkish security forces are at their most disorganised following the coup would be highly dangerous. Beyond that there is the fact that Erdogan is almost certainly sincere about his Syrian policy. His comments to TASS suggest as much, as do his actions on the ground.

The truth is what I said before: what we are seeing between Turkey and Russia is a strictly limited rapprochement, not a fundamental realignment. The two countries have moved closer to each other and are developing their political and economic relations at a blistering pace. However there will be no switch in alliances and on the question of Syria they fundamentally differ and continue to support opposing camps. The leaderships of both countries understand this perfectly well but are not prepared to hold the improvement of their mutual relations hostage to the situation in Syria.

On one question related to Syria there may however be progress. Erdogan's interview with TASS shows that he is still seething at Russian allegations made earlier this year that members of his family were involved in illegal trading with ISIS.
"I had earlier been told that these facts also pointed to Turkey. I asked for the relevant evidence to be demonstrated. However, no one could prove it to me. Nothing of this kind can be found with regard to Turkey. They also tried to entangle my family in this. I said prove it, I'll leave my post, if you demonstrate the relevant evidence. I turned to those who conjured up these insinuations and asked them about whether they would leave their posts, if no evidence was found. Silence followed."
His comments to TASS suggest that Erdogan might be prepared to work with the Russians to destroy ISIS. However the extent of that cooperation is for the moment difficult to gauge. It is unlikely to involve Russian aircraft operating from Incirlik.

As anticipated there does appear to have been some discussion during the summit of the Russians and the Turks working together on a joint plan to end the war in Syria. In his interview with TASS Erdogan hinted as much, also confirming that against US and Saudi opposition he is also prepared to involve Iran in this plan
"Russia is fundamentally the key and most important player in establishing peace in Syria. I believe it is necessary to solve this crisis with the help of mutual action by Russia and Turkey. If the talk is about widening the circle of participants, then I already told my dear friend Vladimir [Putin] earlier: if necessary, we'll also involve Iran in the effort. We can invite Qatar, Saudi Arabia and America. In this regard, we can form a wide circle of participants. If not, then the Russian Federation and Turkey given our common 950-km border with Syria, can take some steps, without violating Syria's sovereignty."
However given the differences between the Russians and the Turks over the future of President Assad and the status of Jabhat Al-Nusra it is difficult to see at the moment how they could agree a joint position on Syria that they would be able to take forward in order to achieve a settlement of the conflict there. Doubtless the discussions between Putin and Erdogan after the press conference touched on this question. However given the size of the gap between the two sides it will take a long time for any consensus on the way forward between them to emerge. Most probably it will be the situation on the ground that will decide the issue first.

The Turkish coup

Both in the press conference and in his interview with TASS Erdogan again went out of his way to accuse the Gulen movement of being behind the recent coup attempt. I have previously speculated that Erdogan's constant references to the Gulen movement are intended to signal that the US (where Gulen is based) was somehow implicated in the coup. Nothing Erdogan said in either the press conference or the TASS interview refutes that speculation. He notably failed to say that the US was not involved in the coup, or that the US is Turkey's ally and friend. On the contrary in the TASS interview he appeared to criticise the US for its foot-dragging in handing over Gulen
"In reality, even though we have demanded this man's extradition. They say if you regard this man as a terrorist, then send us the documents. We will study them first and then take measures in accordance with US legislation. True, there are some documents we had sent them before. By now we've sent 85 boxfuls of paperwork on this case. In the near future, the Turkish justice minister, foreign minister, special envoy and a number of prosecutors and judges who were in charge of this matter will go to the United States and brief the American authorities in person."
By contrast Erdogan went out of his way to thank his "friend Putin" and Russia for their support during the coup. What is more than a little strange about this however is that Erdogan does not really explain what that support was. Instead he constantly refers to a telephone call he had from Putin the day after the coup, which he says gave Turkey "psychological support". By that point however the coup had visibly failed, making it is difficult to see why Erdogan should attach so much importance to this call.

The true reason for Erdogan's gratitude to Putin and Russia is probably touched on in his comments to TASS about the reports of a Russian tip-off to Turkish intelligence warning of the coup
"This is the first time that I have heard such a thing. Even if it had really been so, those concerned would have been obliged to inform me first thing. I received no such information, not from intelligence, nor through any other channels. We don't know who said what and to whom. I believe that this is a groundless rumour."
As I have said before the Russians will never confirm that there was a tip-off even if there was one, and for that reason neither will the Turks. Note however that Erdogan's comments about the tip-off to TASS are very far from a denial. Instead we are asked to believe that Erdogan of all people "doesn't know who said what to whom" and that "this is the first time that I have heard of such a thing" despite the story being all over the Middle East media for weeks. As I have discussed previously, this looks very much like an agreed position reached by the Russians and the Turks not to deny the tip-off but to pretend to no knowledge of it. That makes it a virtual certainty the report of the tip-off is true.

Turk Stream, South Stream, Nuclear cooperation, etc.

As I discussed previously these proved the least contentious issues, allowing for rapid progress. There is also talk of the Russians granting the Turks visa free access or at least simplified visa access to Russia.

Two points can be made briefly. Firstly it is clear that it is the Turks rather than the Russians who are the main drivers behind both Turk Stream and the nuclear power agreement. Putin confirmed that the Turks continued to do preparatory work on Turk Stream even during the crisis in relations following the SU24 shoot-down in November. Secondly it is clear that contrary to some reports the Russians are not prepared to revive South Stream and that their opposition to the EU's Third Energy Package remains as strong as ever. On the contrary Putin made it clear that the Russians will not participate in any pipeline project that could be construed as their agreeing to the EU's Third Energy Package. Moreover Putin made it quite clear that he sees the US (whom he referred to as "a third party") as being behind the Third Energy Package and all the problems that exist in relation to Russia's EU pipeline projects
"We have never politicised economic cooperation. In proposing the South Stream project initially, we assumed that our gas would go directly to EU consumers in southern Europe. However, at first the European Parliament made a decision that prevented the implementation of this project and then the European Commission sent a letter to the Bulgarian Government demanding that preparations for it stop, and ultimately we did not receive the permission of the Bulgarian authorities to enter Bulgarian territory.

Yes, now we see that Bulgaria would like to resume this project, but we incurred some losses due to the refusal of our European partners to carry out this project. So now we will not settle for just intentions and need absolutely rock solid legal guarantees. They have not been forthcoming. Initially we regarded the Turkish Stream not even as an alternative to the South Stream but as an opportunity to expand our gas cooperation both with Turkey and Europe as a whole. One part of the Turkish Stream was designed exclusively for Turkey's domestic consumers given the growing economy of the Republic of Turkey. This is how we discussed the issue today. This part is beyond any doubt and its implementation may be launched very soon.

The second part related to routing our energy to Europe depends, of course, on a third party. We should work out these issues with European countries and the European Commission in Brussels. Together with our Turkish partners and friends, we are prepared to work toward this, but again we need to have an agreement with all the participants." (Bold italics added)
Conclusion

In summary, the Putin - Erdogan summit went much as predicted. There is now a strong rapprochement underway between the two countries. This goes well beyond a mere detente, which is a relaxation of tensions. On the contrary the leaders of the two countries now publicly call each other "friends". It is not however a reversal of alliances. Turkey remains a member of NATO and an ally of the US.

In my opinion this actually suits the Russians much better, at least for the moment. They surely know that an outright attempt to detach Turkey from NATO is for the moment impossible and might actually cause Turkey to become destabilised, which is absolutely not in their interests. However at a time of heightened East-West tensions they now have the leader of a key NATO state with NATO's second biggest army calling their leader a "friend". Sometimes it is more useful to have a friend in the enemy's camp than a doubtful and unstable ally in one's own. That is the situation which through a combination of skill and good luck the Russians have now manoeuvred themselves into.