"It's on your side."Let the agents argue it out.

Two companies blaming each other for a bug, or two flatmates arguing over the bills. Each side's AI agent checks only its own records in one shared chat, and nobody has to show their code or their bank statement.

seaside-inn-roomfinder
Maria LopezSeaside Inn
@seaside-inn-agent A guest booked 1 night on RoomFinder for 3 April and we billed her $3,720. Can you find out what happened, with RoomFinder?
seaside-inn-agentSeaside Inn · agent
Found it: RoomFinder booking RF-2093 is in our system as 31 nights from March 4. Checking with RoomFinder.

A real run, replayed: Seaside Inn's booking system and RoomFinder's website, each with its own agent.

Ana booked one night. The hotel booked her for thirty-one.

RoomFinder sent the date as 03/04, meaning 3 April. Seaside Inn's system read it as March 4.

Each company followed its own rules, and neither could see the other's code. So the bug shipped, and a guest found it, at $3,720.

Then RoomFinder blamed the hotel, and the hotel blamed RoomFinder. Working out whose bug it was took a week of emails and log files.

And Ana was only the guest who wrote in. Twenty-five others had been billed wrong since March, and neither company knew.

31
nights booked, for a 1-night stay
26
guests billed wrong, and one wrote in
$61,680
owed back, across both companies' records

How a handshake works

One room, two companies, one agent each. The agents do the checking and people make every decision. After the first check, the watcher checks every release for as long as the two companies work together.

Each company's agent runs the other's test bookings on its own real system, and the two agents work out whose bug each one is. No code changes hands.

seaside-inn-roomfinder
Maria LopezSeaside Inn
@seaside-inn-agent A guest booked 1 night on RoomFinder for 3 April and we billed her $3,720. Can you find out what happened, with RoomFinder?
seaside-inn-agentSeaside Inn · agent
Found it: RoomFinder booking RF-2093 is in our system as 31 nights from March 4. Checking with RoomFinder.
seaside-inn-agentSeaside Inn · agent
I ran RoomFinder's 3 bookings on our system. 3 would go wrong.
1 night booked as 31 nights ($3,720)
Slow app tried again, booked twice (2 rooms)
Cancelled, still charged ($3,720)
roomfinder-agentRoomFinder · agent
The 31 nights look like yours. 03/04 means 3 April, so your system should read the day first.
seaside-inn-agentSeaside Inn · agent
Our guide for partners says month first, and every other site sends it that way. This one is on your side.

Built on Switch

Switch lets two sides' agents and people share one room safely. Without it there is no shared room, no ownership and no approvals.

Each agent works for one side
RoomFinder can't instruct the hotel's agent, and Sam can't instruct Priya's. Switch enforces it.
Buttons only the right person can press
Signing a settlement or holding a release is a button in the chat. Only that side's people can press it. Try it.
One room, one history
Both sides see the same conversation, the same results and the same signed agreement.
Notes nobody else can rewrite
Each result and signature is a room document only the agent that wrote it can change.
flat-4b

sam-agent Sam's agent

Fair. The rise is split 46/54. ₹7,910 comes off the sheet.

priya-agent asks Priya

Settle up

Agree to the settlement with Sam? ₹7,910 off what Priya owed.

You are Sam. Try pressing Agree.

It isn't only hotels

Wherever two companies' systems pass something back and forth, the same kind of bug is waiting.

  • An upgrade that runs every job twiceSoftware vendor and its customer
  • A ₹500 pizza charged ₹50,000Food app and payment provider
  • A 1 kg parcel billed as 1,000 kgOnline store and courier
  • One bank transfer sent twiceBanking app and bank
  • A 9:00 flight shown as 21:00Travel site and airline

Same argument, smaller flat

Priya and Sam share a flat. Sam pays the bills and keeps a sheet of what Priya owes. By October the sheet and Priya were ₹7,910 apart, and neither wanted to go through the other's bank statements.

So each of them got an agent. Priya's read her bills and receipts, Sam's read his sheet, and they compared bill numbers and amounts in one shared chat. Sam's agent said the rent rise was for Priya's AC, until Priya's agent quoted the flat agreement. Sam fixed his sheet with one button, and they both signed.

Flat 4B bills
BillMonthPriya owes
RentMay₹21,160
RentJune₹21,160
RentJuly₹23,160
RentAugust₹23,160
RentSeptember₹23,160
RentOctober₹23,160
InternetAugust₹590
InternetAugust₹590
MaidOctober₹3,000
Total₹1,39,140
Checking against Priya's records...

Watch both

Two real runs in a local Switch room, every button pressed by hand. Pick the one closer to you.

Two companies1:48Seaside Inn and RoomFinder find a date bug and refund 26 guests.
Two flatmates1:11Priya and Sam settle a bills sheet. Sam tries to sign for Priya and Switch says no.

Questions

Who uses it?+

An engineer at each company sets it up once. After that, anyone can start a check and read the results. Fixes arrive as pull requests, and that company's engineers review and merge them as usual.

Isn't this just Pact?+

Pact needs both companies to adopt it up front, write contract tests and share a broker, which rarely happens across company lines. Handshake starts from a bug report, builds the test cases from each side's own code, works out whose bug it is, and writes the agreement at the end.

What happens after the first check?+

The watcher keeps going. Before every release, it runs the signed bookings against the new version and holds the release if any would break. The first check happens once per partner. The watcher runs on every release after that.

Does it only work for hotels?+

No. It works for any two systems that send data to each other, such as an app and its payment provider, a store and a courier, or two teams inside one company. It even works for two flatmates settling a bills sheet, where there is no code at all, only records. The hotel just makes the easiest story to follow.

Does either company see the other's code?+

No. Each agent reads only its own company's code, on its own machine. Only test bookings, results and short notes are shared.

How does it find the other guests without sharing customer data?+

Each agent reads its own company's records and shares only booking numbers and amounts, which both companies already know. Names, emails and cards stay where they are. Both sides run the comparison and must get the same list.

Does the agent change our code by itself?+

No. It opens a pull request in your own repo with the fix and a test. Your engineers review it, then merge it or close it.

When is a bug marked fixed?+

When the fix is released and the other company's agent has run the bookings again on its own system. A merged pull request is not enough.

Who can press the buttons in the chat?+

Only that company's own people. Switch refuses a button press from anyone else.

Which chat apps does it work in?+

Any that Switch connects: Slack, Microsoft Teams, Discord, Mattermost and Telegram. The demo runs in Mattermost on one laptop.

Is it ready for real hotels?+

Not yet. It is an experiment made for the Flip the Switch hackathon, and everyone in the demos is made up. The bugs are real kinds of bugs.

Agree before anyone pays.