From 8c3988a0cc5d107382e97ae3062f083c462f6fc1 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 29 Nov 2026 15:24:21 +0000 Subject: [PATCH 1/3] fix(skill): tell agents a fare total comes before any payment fee (PET-503) Co-Authored-By: ahsan.amin@wego.com --- skills/wego/SKILL.md | 2 ++ skills/wego/references/cli.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/skills/wego/SKILL.md b/skills/wego/SKILL.md index 53f45d9..e0af9b0 100644 --- a/skills/wego/SKILL.md +++ b/skills/wego/SKILL.md @@ -29,6 +29,8 @@ Then open only the reference for your path, and keep to that path for the whole Both the CLI and the MCP tools read live inventory and prices. Quote what they return rather than estimating, and never invent a figure they did not give you. +A flight fare whose `price.paymentBasis` reads `no_method_selected` is priced before any payment fee, and checkout can add one depending on how the traveller pays. Say so when you quote it, and never add or estimate that fee yourself. + ### Keep inputs and IDs Retain the user's original search inputs and the IDs returned by each command or tool. Map follow-ups such as "option 2" back to the corresponding object in the most recent result. diff --git a/skills/wego/references/cli.md b/skills/wego/references/cli.md index 993d091..7af1571 100644 --- a/skills/wego/references/cli.md +++ b/skills/wego/references/cli.md @@ -258,6 +258,8 @@ wego flights trip --search [--currency USD] [--locale en] [- Summarize the complete itinerary and available fares. Preserve every fare's `kind`, `fareId`, price, `refundable`, and `handoffUrl`. Refundability varies **between fares on the same trip**, so a "refundable" or "free cancellation" requirement is settled here, per fare, and never by the trip. This read is also where per-flight identity lives – flight numbers, and the marketing-vs-operating carrier on a codeshare. The leg's `operatingAirlines` names every carrier that only sells under someone else's code here, and `segments[].operatingCarrier` says which flight each one operates. +**A fare's total comes before any payment fee.** Every fare `price` on `flights trip` carries `paymentBasis`, and today it always reads `no_method_selected`: the search named no payment method, so `total` holds no fee for one. Checkout can add a payment fee depending on how the traveller pays (some cards and pay-later options carry one, others do not), and wego.com preselects its popular methods, so the site can show a higher figure for the same fare. `includesFees: false` and `paymentFeeUsd: 0` say the same thing. When you quote a fare, say the total is before any payment fee, and never add, estimate or subtract one yourself. A fare that carries `paymentFees` lists the per-method fees upstream quoted: name the method with the lowest fee rather than averaging them. + **`--view detail` is a different shape, not a richer one.** It answers per segment – resolved airport names, airline and provider logos, seat and amenity metadata – and carries `legs[]` where the default carries `outbound`/`return`, with a `provider` object where the default has a flat `providerCode`. So the funnel runs on the **default** read: take a `fareId` from there, not from a detail read. Ask for `detail` when the user wants the texture of the flight itself (which airport terminal, what seat, what is on board), and stay on the default for everything else. It is **not** where you learn a segment is a bus or a train: the default read carries `transportType` on every segment and `transportTypes` on every leg, so the disclosure never depends on a view you were told you could skip. **Comparing every booking site's price across many options costs one trip read each.** For "show me all the sites selling these ten", say what it will take, or narrow to the two or three trips the user cares about first. From 5697b9aea847ac5dd9eb2eaf6cb070f0e4e84563 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 29 Nov 2026 15:29:59 +0000 Subject: [PATCH 2/3] fix(skill): condition the payment-fee caveat on the returned paymentBasis (PET-503) Co-Authored-By: ahsan.amin@wego.com --- skills/wego/references/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/wego/references/cli.md b/skills/wego/references/cli.md index 7af1571..9cd1c22 100644 --- a/skills/wego/references/cli.md +++ b/skills/wego/references/cli.md @@ -258,7 +258,7 @@ wego flights trip --search [--currency USD] [--locale en] [- Summarize the complete itinerary and available fares. Preserve every fare's `kind`, `fareId`, price, `refundable`, and `handoffUrl`. Refundability varies **between fares on the same trip**, so a "refundable" or "free cancellation" requirement is settled here, per fare, and never by the trip. This read is also where per-flight identity lives – flight numbers, and the marketing-vs-operating carrier on a codeshare. The leg's `operatingAirlines` names every carrier that only sells under someone else's code here, and `segments[].operatingCarrier` says which flight each one operates. -**A fare's total comes before any payment fee.** Every fare `price` on `flights trip` carries `paymentBasis`, and today it always reads `no_method_selected`: the search named no payment method, so `total` holds no fee for one. Checkout can add a payment fee depending on how the traveller pays (some cards and pay-later options carry one, others do not), and wego.com preselects its popular methods, so the site can show a higher figure for the same fare. `includesFees: false` and `paymentFeeUsd: 0` say the same thing. When you quote a fare, say the total is before any payment fee, and never add, estimate or subtract one yourself. A fare that carries `paymentFees` lists the per-method fees upstream quoted: name the method with the lowest fee rather than averaging them. +**A fare's total can come before a payment fee.** On `flights trip`, read each fare's `price.paymentBasis`. When it reads `no_method_selected`, the search named no payment method, so `total` holds no fee for one (`includesFees: false`, `paymentFeeUsd: 0`). Checkout can then add a payment fee depending on how the traveller pays (some cards and pay-later options carry one, others do not), and wego.com preselects its popular methods, so the site can show a higher figure for the same fare. Say the total is before any payment fee when you quote it. When a price carries no `paymentBasis`, or `includesFees: true`, quote `total` as returned without that caveat. Never add, estimate or subtract a fee yourself. A fare that carries `paymentFees` lists per-method fees by numeric `paymentMethodId` only: the lowest one is the least checkout adds, so do not average them, and do not name a method from its id. **`--view detail` is a different shape, not a richer one.** It answers per segment – resolved airport names, airline and provider logos, seat and amenity metadata – and carries `legs[]` where the default carries `outbound`/`return`, with a `provider` object where the default has a flat `providerCode`. So the funnel runs on the **default** read: take a `fareId` from there, not from a detail read. Ask for `detail` when the user wants the texture of the flight itself (which airport terminal, what seat, what is on board), and stay on the default for everything else. It is **not** where you learn a segment is a bus or a train: the default read carries `transportType` on every segment and `transportTypes` on every leg, so the disclosure never depends on a view you were told you could skip. From 7bb6f3f02ce15f59991af5ef557e3710b3979a32 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 29 Nov 2026 15:51:48 +0000 Subject: [PATCH 3/3] fix(skill): read paymentBasis and paymentFeeUsd, never includesFees (PET-503) Co-Authored-By: ahsan.amin@wego.com --- skills/wego/references/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/wego/references/cli.md b/skills/wego/references/cli.md index 9cd1c22..d467d27 100644 --- a/skills/wego/references/cli.md +++ b/skills/wego/references/cli.md @@ -258,7 +258,7 @@ wego flights trip --search [--currency USD] [--locale en] [- Summarize the complete itinerary and available fares. Preserve every fare's `kind`, `fareId`, price, `refundable`, and `handoffUrl`. Refundability varies **between fares on the same trip**, so a "refundable" or "free cancellation" requirement is settled here, per fare, and never by the trip. This read is also where per-flight identity lives – flight numbers, and the marketing-vs-operating carrier on a codeshare. The leg's `operatingAirlines` names every carrier that only sells under someone else's code here, and `segments[].operatingCarrier` says which flight each one operates. -**A fare's total can come before a payment fee.** On `flights trip`, read each fare's `price.paymentBasis`. When it reads `no_method_selected`, the search named no payment method, so `total` holds no fee for one (`includesFees: false`, `paymentFeeUsd: 0`). Checkout can then add a payment fee depending on how the traveller pays (some cards and pay-later options carry one, others do not), and wego.com preselects its popular methods, so the site can show a higher figure for the same fare. Say the total is before any payment fee when you quote it. When a price carries no `paymentBasis`, or `includesFees: true`, quote `total` as returned without that caveat. Never add, estimate or subtract a fee yourself. A fare that carries `paymentFees` lists per-method fees by numeric `paymentMethodId` only: the lowest one is the least checkout adds, so do not average them, and do not name a method from its id. +**A fare's total can come before a payment fee.** On `flights trip`, read each fare's `price.paymentBasis`. When it reads `no_method_selected`, the search named no payment method, so `total` holds no fee for one (`paymentFeeUsd: 0`). Checkout can then add a payment fee depending on how the traveller pays (some cards and pay-later options carry one, others do not), and wego.com preselects its popular methods, so the site can show a higher figure for the same fare. Say the total is before any payment fee when you quote it. When a price carries no `paymentBasis`, quote `total` as returned without that caveat. Read `paymentBasis` and `paymentFeeUsd`, never `includesFees`: it is deprecated and always `true`. Never add, estimate or subtract a fee yourself. A fare that carries `paymentFees` lists per-method fees by numeric `paymentMethodId` only: the lowest one is the least checkout adds, so do not average them, and do not name a method from its id. **`--view detail` is a different shape, not a richer one.** It answers per segment – resolved airport names, airline and provider logos, seat and amenity metadata – and carries `legs[]` where the default carries `outbound`/`return`, with a `provider` object where the default has a flat `providerCode`. So the funnel runs on the **default** read: take a `fareId` from there, not from a detail read. Ask for `detail` when the user wants the texture of the flight itself (which airport terminal, what seat, what is on board), and stay on the default for everything else. It is **not** where you learn a segment is a bus or a train: the default read carries `transportType` on every segment and `transportTypes` on every leg, so the disclosure never depends on a view you were told you could skip.