Repository navigation
fix(skill): tell agents a fare total comes before any payment fee (PET-503) - #117
ahsan-amin-wego wants to merge 4 commits into
Conversation
…T-503) Co-Authored-By: ahsan.amin@wego.com <ahsan.amin@wego.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
Original prompt from Ahsan.amin
|
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Payment-fee disclosure guidance skills/wego/SKILL.md, skills/wego/references/cli.md |
Quote guidance says fares with paymentBasis set to no_method_selected exclude checkout payment fees. Trip inspection guidance states that totals exclude fees and provides the related price fields. Both sections say not to estimate or add fees; trip inspection guidance also says to name the lowest-fee method when per-method fees are listed. |
Estimated code review effort: 1 (Trivial) | ~3 minutes
Possibly related PRs
- wego/cli#112: Reorganizes the skill guidance and moves CLI-specific content into
references/cli.md, where this PR adds payment-fee guidance. - wego/cli#111: Splits the skill into separate CLI and MCP references; this PR updates the root skill and CLI reference.
Suggested labels: devin
Merge Risk: 
Low · previous review fc22d
-
This adds guidance that fares are priced before any payment fee. Until the matching API change is live, agents could describe current totals inaccurately. Condition the disclosure on the returned
paymentBasisfield, or merge after the API promotion.
Pre-merge checks: 
4
-
Full details: Title check
-
Explanation
The title uses the Conventional Commits form with type fix, scope skill, and an imperative lowercase subject. It names the change accurately: agents are told that a fare total is priced before any payment fee. The PET-503 key is included. Its scope matches the 'skill' scope in the repo's list, and the changed files are under skills/wego. The title is specific and matches the main change.
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
…asis (PET-503) Co-Authored-By: ahsan.amin@wego.com <ahsan.amin@wego.com>
…PET-503) Co-Authored-By: ahsan.amin@wego.com <ahsan.amin@wego.com>
Summary
PET-503. Skill half of the change; the API half is wego/wego-ai#2136.
A flight fare's
totalfrom the API is priced with no payment method selected, so checkout can add a payment fee depending on how the traveller pays. wego.com preselects popular methods and can show a higher figure for the same fare. The skill never said this, so agents quoted the total as the final price.skills/wego/SKILL.md→ "Quote live results": one rule for both paths. A fare whoseprice.paymentBasisreadsno_method_selectedis before any payment fee; say so, and never add or estimate the fee.skills/wego/references/cli.md→flights trip: whatpaymentBasis,includesFees: false,paymentFeeUsd: 0andpaymentFeesmean, and to name the lowest-fee method rather than average.Measured on production upstream (wego/wego-ai#2136 has the full table): in SA, MasterCard carries no fee while Visa, MADA and Tabby add about 5% (up to 10%) of the total.
Notes:
0.20.0.contract/openapi.jsonhere is not refreshed in this PR; that follows the API promote perCONTRIBUTING.md"When the API changes". Until then the CLI passes the API JSON through, so the fields reach agents once production serves them.🤖 Generated with Devin
Open in Devin Desktop: https://app.devin.ai/desktop/session/a4abd26961f547779157df0fc4facd10?variant=devin
Requested by: @ahsan-amin-wego
🟢 Devin Review found nothing to fix · View findings
Summary by CodeRabbit