Four days. That is the gap Iran now says it needs between the lifting of economic sanctions and the reopening of the strait of Hormuz, down from the seven days it demanded earlier. The concession came from Dr Ali Bagheri, deputy secretary of Iran's national security council, and it is the clearest number yet in an Iran peace deal that Gulf governments are assembling piece by piece while oil trades above $117 a barrel.

That price says a good deal about the market's nerves. According to the Guardian's account of the talks, crude has climbed on fears that Washington will resume strikes on Iran. Nobody has said in public when, or whether, that would happen. Midterm elections are on November 3, and Gulf capitals could be forgiven for wondering how American domestic politics shapes the calendar, but no timetable for renewed fighting has been announced, and the diplomacy proceeds as though there is still room to prevent it.

What the Gulf is trying to assemble

The plan has several moving parts, each tied to the others. Iran would reopen the strait within four days of sanctions coming off. The Houthis, whom Tehran backs, would pull substantial forces back inside Yemen. A wider arrangement on regional security would sit on top of both. Gulf officials regard a return to war between Iran and the United States as a disaster for everyone in the region, and the package is built to make that outcome less likely.

Iran's priorities are plain: guarantees of sanctions relief in exchange for opening the waterway, and little else. Its negotiators have so far refused to treat the nuclear file as part of that bargain beyond discussing it in principle. That refusal is where the trouble sits.

Washington's price

The American side knows how far the Gulf talks have come, according to the Guardian, but it is holding out for something more. European diplomats suggest that something could be a return of UN weapons inspectors to Iran, including to the nuclear sites that were bombed. Britain's foreign secretary, Ed Miliband, pressed Iranian foreign minister Abbas Araghchi on exactly this in New York. Araghchi didn't budge.

European officials, the report says, see inspector access as the minimum needed to bring President Donald Trump to a deal. That reading may be right. It may also be a European wish projected onto a White House that has not spelled out its terms, and Trump has a history of changing his demands mid-negotiation: a concession that satisfies his advisers on Monday could look thin by Friday. Whether inspectors would be enough is, as far as anyone outside the administration can tell, an open question.

A bigger bargain behind the small one

The more interesting move is happening away from Hormuz. Early this week Tehran received senior envoys from three countries, Saudi Arabia, Turkey and Pakistan, who came with Riyadh's conditions for settling the Yemen war and with ideas for a lasting regional security framework. The following day Mohsen Rezaei, who heads Iran's supreme national security council, sat down with the Houthi ambassador in Tehran, Ibrahim al-Dulaimi.

Taken in order, the meetings suggest that Iran, which has influence over the Houthis, is starting to accept a mediating role in Yemen, something it has not typically conceded in public. Tehran can help draft proposals that fall short of a Houthi military victory, an outcome many analysts consider out of reach in any case. The Houthis want Saudi Arabia to lift what they describe as a naval and air blockade of the territory they hold, and Riyadh will need to decide what that is worth.

Iran also kept its nuclear programme off the table at the Tehran meeting. It steered the conversation toward a regional order in which the Gulf states and Iran would sit together, and which would shrink or end the American military presence in the Middle East. For Tehran, that is the real prize. A non-aggression pact that ends its isolation from the other Gulf states, an isolation that has lasted since the 1979 revolution, would hand it something sanctions relief cannot. There is a practical logic, too. A firm regional commitment from six Gulf states could make it easier for Iranian leaders to sell painful nuclear concessions at home, as the cost of a settlement that finally brings Iran in from the cold rather than as capitulation to Washington.

Oman's argument

Oman's foreign minister, Badr Albusaidi, has been among the loudest advocates of this inclusive approach. He told the Guardian he believed the American administration understood this was where the region was heading. If Iran is fully re-engaged, he argued, "the economic potential is going to be enormous for all of us". He added that there was general acceptance of that direction once a deal exists.

It is an optimistic reading, and it comes from a diplomat whose country has built its reputation on mediation, so some optimism comes with the post. Still, Araghchi's own words at a televised event this week point the same way. Talk of a new war is circulating, he said, but he is already thinking about the postwar period: "Whether there is war or not, our policies remain the same."

That sentence can be read two ways. It could signal a government confident enough to plan beyond a fresh round of strikes. It could just as easily be a government telling its public that nothing Washington does will change its course. Either reading leaves little space for the inspectors Europe says are needed.

What decides it

The pieces fit on paper: sanctions relief for Iran, a four-day reopening of Hormuz, a Houthi pullback, a Saudi easing of the blockade, and a regional pact that gives Tehran standing. What doesn't fit yet is the American condition. If Trump wants inspectors and Iran won't discuss them beyond principle, the Gulf's careful sequencing stalls at the first step.

Two things are worth watching. One is whether Tehran offers any form of inspector access, even a limited one, as a way to unlock the sanctions step. The other is oil. At $117, the market is pricing in a good chance that diplomacy fails, and every week without a framework adds to the cost for importers far from the Gulf. If the strait stays shut and strikes resume, the economic damage will not be confined to the region that tried hardest to stop them, a prospect importers elsewhere are unlikely to find restful.