yeti labs

field note 005 · 2026-10-07 · agents, debugging

multi-city flights cost 10× more, if you ask for business class

in april we added multi-city search to our assistant's flight tools and pulled it out about five hours later, because google seemed to price a linked ticket at ~10× the separate legs. in october we found the problem was our own url.

april's verdict
~10×
multi-city asked for
business
one-way asked for
premium
until we noticed
~6 mo

the setup

bravo, our in-house assistant, searches google flights by building the results url itself. that page takes a tfs parameter, which is url-safe base64 wrapped around a protobuf (google's binary message format) describing the trip: legs, passengers, cabin, and trip type. there's no public schema, so we hand-rolled a small encoder from a reverse-engineered one. the comment above it called the layout "stable for years across multiple open-source projects", and it put cabin in field 1 and trip type in field 9.

the first live runs looked fine. a domestic one-way came back with 10 flights and real layover airports. a multi-city search through two european cities came back with 10 itineraries too, the cheapest at $8,322. so we checked that against the same legs priced on their own.

the april call

by that evening we had the comparison. the linked ticket was $15,483 and the pair of one-ways was $1,654, about 9.4×. the commit that followed is titled "google flights bundles open-jaw fares at ~10x true cost" and calls it "how airlines price linked multi-city tickets".

so we deleted it: the search function, its data model, the tool the agent called, and the test path, 208 lines in all. the test script kept a note telling anyone who came later to search each leg as a separate one-way instead.

what was really going on

in october we built group search (several people from different cities meeting in one place), which leans hard on multi-city and open-jaw searches. wiring it up, we found the real layout: cabin is field 9, and trip type is field 19. our encoder had been writing the trip type into the cabin field since day one.

google reads field 9 as 1 = economy, 2 = premium economy, 3 = business, and 4 = first. our trip type codes were 1 = round trip, 2 = one-way, and 3 = multi-city. so a round trip sent a 1 and came back economy, by luck. a one-way sent a 2 and quietly asked for premium economy. a multi-city sent a 3 and asked for business.

every search type got a different cabin, and only one was right

the cabin code google received for each trip type before the 2026-10-07 fix (field 9: 1 = economy, 2 = premium economy, 3 = business)

1 economy2 premium3 businessround tripeconomy · right by luckone-waypremium economymulti-citybusinessapril: we deleted multi-cityfor fares at "~10× truecost" on google's side.we'd asked for business.
source: bravo tfs encoder, before and after the 2026-10-07 fixyeti labs · field note 005
trip typecode sentfield 9 read aswhat we noticed
round trip1economynothing, it was right
one-way2premium economynothing, for six months
multi-city3business"~10×", and we deleted it

which means the april comparison was a business ticket against two premium-economy one-ways. neither side was an economy fare. and every one-way search bravo ran between april and october was a premium-economy search, with nothing on the page to say so.

the april comparison had no economy fare in it

the same two legs, priced two ways on 2026-04-10, in us dollars

$0$5k$10k$15kmulti-city ticket$15,483 · businesstwo one-ways$1,654 · premium economy
source: bravo commit removing multi-city search, 2026-04-10

after the fix

with the fields in the right place, multi-city came back as a normal product. on a four-person, two-city trip through group search, the four ways to ticket it landed within about 1.45× of each other: two round trips at $4,989, one-ways at $5,502, an open-jaw plus a hop at $6,600, and one multi-city ticket at $7,251. one ticket is still the priciest. the cheapest, two round trips, flies the last two legs the same day on separate tickets, so a missed connection there is yours to sort out.

multi-city does have one real quirk, which is speed. at a 30-second wait, a quarter of the open-jaw searches came back empty. it now waits 90 seconds and retries up to twice, because under parallel load google briefly shows "no results" for routes that do have flights (7 of 60 in one run).

that's a different trip from april's, so read it as "multi-city is sane" and skip the before/after math. we don't have the identical april search re-run in economy.

what we'd do instead

  1. when a vendor's number looks absurd, decode your own request before you write the vendor off. a wrong protobuf field number is a one-byte mistake that reads like a pricing scandal downstream.
  2. test every mode of an encoder against a url the real site built for the same search. round trips passing was the worst thing that could've happened here, because it made the encoder look verified.
  3. write a removal reason as a hypothesis with its evidence attached. our "this is how airlines price it" sat in the test script as settled fact for six months.
got a vendor whose numbers make no sense?

we'll check your side of the wire first.

talk to the agent →