← RampCONTENT HISTORY
WHAT CHANGED
Update to Ramp
Snapshot Nov 24, 2026 · 00:11 UTC · version 4.0.0
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save Ramp and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Books flights conversationally through the ramp CLI: resolves cities to airports, searches one-way and round-trip flights, presents and compares offers, previews the fare, and tickets the booking on the traveler's explicit approval. The user describes a trip in plain language ('book a flight from Toronto to SFO') and never needs to know a CLI command. Use when someone wants to book, find, search, or compare flights, or says 'fly from X to Y'. Not for cancellations, changes, refunds, seat selection, loyalty programs, hotels, cars, or multi-city trips.",
"included_files": [],
"name": "ramp-book-flight",
"skill_md_contents": "---\nname: ramp-book-flight\narea: Travel\nsupported_surfaces: [cli, mcp]\ndescription: \"Books flights conversationally through the ramp CLI: resolves cities to airports, searches one-way and round-trip flights, presents and compares offers, previews the fare, and tickets the booking on the traveler's explicit approval. The user describes a trip in plain language ('book a flight from Toronto to SFO') and never needs to know a CLI command. Use when someone wants to book, find, search, or compare flights, or says 'fly from X to Y'. Not for cancellations, changes, refunds, seat selection, loyalty programs, hotels, cars, or multi-city trips.\"\n---\n\n# Book a Flight (conversational flight search)\n\nThe user describes a trip in plain words. Turn that into `ramp travel` commands, run them,\nand show clean results. **Never show or ask the user to type a CLI command** — talk like a\ntravel helper (\"Searching Toronto → San Francisco, Jul 1…\"), not about flags.\n\nThe Steps, Phases, checklist, and flag names in this guide are **your** internal scaffolding —\nnever surface them to the user. Don't say \"Phase 1,\" \"Step 3,\" or name flags; just narrate in\nplain travel language (\"Let me pull up the fare and check it before booking…\").\n\n## Prerequisites\n\n- `ramp` CLI installed and logged in (`ramp auth login`). Run where `ramp` works (or\n `uv run ramp` inside the ramp-cli repo).\n\n## Scope\n\n- ✅ Resolve cities to airports; search one-way and round-trip; show offers.\n- ✅ Round-trip: fetch the matching **return** flights for the outbound the user picks (Step 5).\n- ✅ **Book the ticket** — preview, confirm only on an explicit yes, then verify (Step 6).\n Booking spends **real money**; it defaults to the logged-in user unless the user explicitly\n asks to book for another traveler.\n- ✅ Compare cabins/fares — **only when asked** (see \"Comparing cabins or fares\").\n- ✅ Read or update the traveler's profile, and read trips and bookings (see \"Supporting tools\").\n- ✅ Book for another traveler when explicitly asked and authorized (see \"Delegated booking\").\n- ❌ Cancellations, changes, refunds, seat selection, loyalty, hotels, cars, multi-city —\n those happen in the Ramp web app.\n\n## Rules for every command\n\n- **Always `--output json`** on every `travel search-flight` (including the Step 5 return search).\n Read the JSON and build a friendly table; don't show raw JSON unless asked, and don't pipe\n through `python`/`jq`. The text output can change — JSON is the stable format.\n- Every command needs a `--rationale`. Once the trip is known, **name it in every related\n command's rationale** (route + dates, e.g. \"Toronto→SFO, Jul 1-8\") and keep that reference\n consistent across the whole flow — search, returns, preview, book, fund/spend-allocation,\n and verify. Rationales are logged, so a consistent trip reference makes a trip's commands\n easy to group and its intent easy to read later.\n- `--departure`/`--arrival` each take **one** value: an airport code (`SFO`) or a Ramp city\n id (`search_code` from `travel locations`, Step 2). No lists.\n\n**Don't over-specify.** These default off — add each only when the user asks:\n\n- **`--cabin_class`** — off searches all cabins; **don't default to Economy**. It only filters\n the cabin — either way each offer comes back as a single cheapest fare (`price` +\n `fare_name`), **no `fare_options`**. Add it only when the user names a cabin.\n- **`--limit`** — off returns a default page; paginate with `next_cursor` (Step 3). Add only\n for \"just show me 3\".\n- **`--sort_key`** — off uses `WEIGHTED_SCORE` (a good blend). Other keys:\n `LOWEST_TOTAL_AMOUNT`, `SHORTEST_DURATION`, `LEAST_NUMBER_OF_STOPS`,\n `EARLIEST_DEPARTURE_TIME`, `LATEST_DEPARTURE_TIME`, `EARLIEST_ARRIVAL_TIME`,\n `LATEST_ARRIVAL_TIME`. Sorting applies to a new search only — re-sort by starting fresh,\n not on a `--resume_job_id` page.\n- **`--include_fare_options`** — off. It's the **only** thing that returns `fare_options`; any\n search without it (cabin or not) has none. Add it only to compare cabins/fares.\n\n- **Use `ramp travel search-flight`** for flight searches. Check `ramp travel --help` if the\n alias is unavailable before continuing.\n\n## Delegated booking\n\nOnly set `traveler_user_id` when the user explicitly asks to book for another person. Otherwise\nomit it everywhere and book for the logged-in user.\n\nWhen the user asks to book for someone else:\n\n1. Resolve that traveler before profile preflight or search:\n\n```bash\nramp users list --name_search \"Taylor Smith\" --page_size 5 \\\n --rationale \"resolve the traveler for the Toronto→SFO trip\" --output json\n```\n\nUse the returned traveler user UUID as `traveler_user_id`. If more than one user could match,\nask the requester to pick the exact traveler before continuing.\n\n2. Preserve the same `traveler_user_id` across the whole delegated flow: profile preflight,\n `profile-update` if needed, every `search-flight` call (initial search, resume pages, and\n round-trip return search), both `travel book` preview and confirm calls, and booking\n verification/retries. Do not switch traveler ids mid-flow.\n\n3. If traveler lookup fails or a target-aware call returns an authorization/empty-access result,\n respond in plain travel-helper language. Do not mention `traveler_user_id`, flags, command\n names, command counts, or CLI mechanics. Say you couldn't find/access that traveler and ask\n whether to continue for the requester or search again with a Ramp email/exact profile name.\n Example: *\"I couldn't find a traveler named Emmy Song in this Ramp directory. If you want to\n book for yourself, I can continue using your own traveler profile. Otherwise, send me the\n traveler's Ramp email or exact profile name and I'll search again.\"* Do not silently fall back\n to self-booking.\n\n## Step 1 — gather trip details\n\nUse what the user gave you; infer the rest. Only ask about things both missing and\nimportant, and ask them all at once (never one at a time).\n\nInfer silently, then say back (don't ask):\n\n| Slot | Assume |\n|---|---|\n| **Trip type** | round-trip if there's a return date, \"back on…\", or a stay length; else one-way. Ask only if truly unclear. |\n| **Relative dates** | resolve to `YYYY-MM-DD`. **Always say the date back** so mistakes surface before money moves. |\n| **Airport given** | `SFO`, `JFK`, etc. → use directly, skip Step 2. |\n| **Cabin** | none (leave `--cabin_class` off). |\n\nSay assumptions in one line as you go — *\"Searching JFK → SFO, Mon Jul 6, round-trip…\"*.\n\nIf something required is still missing, ask for all of it in a single `AskUserQuestion`\n(selectable options, one question per item). Required: **destination**, **origin** (if no\nhome airport to guess), **departure date**, **one-way vs round-trip** (if unclear), **return\ndate** (round-trip). Keep dates in the future — 14+ days out is safest (a common policy\ncutoff). Never re-ask what they told you.\n\n## Step 2 — resolve a place to a `--departure`/`--arrival` value\n\n- **Airport code** (`SFO`, `JFK`) → use directly, skip this step.\n- **City/vague place** (\"New York\", \"the Bay Area\") → look it up first:\n\n```bash\nramp travel locations --query \"New York\" --location_type city --limit 5 \\\n --rationale \"resolve New York to a metro id for the user's trip\" --output json\n```\n\nFor a **city**, the metro id is its **`search_code`** (a UUID; `iata_code` is empty). Pass\nthat one `search_code` to search the whole metro (New York covers JFK/LGA/EWR; Toronto covers\nYYZ/YTZ). For one specific airport, search `--location_type airport` and pass its `iata_code`.\n\n## Step 3 — search flights\n\nAdd `--return_date` only for round-trips. Add `--traveler_user_id` only for delegated bookings.\nNo `--cabin_class`/`--limit`/`--sort_key` unless the user named a cabin, count, or order.\n\n**When the traveler named a departure weekday** (\"leave Sunday\", \"out next Friday\"), also pass\n`--requested_weekday` with the lowercase day (`sunday`), if the flight-search command lists it\n(skip it on an older CLI). The server rejects the search when the departure date doesn't fall\non that weekday, and the error names the correct nearby dates — retry with the corrected date\nfrom the error; never clear the error by changing the weekday. It's departure-only: for an\n**arrival** day (\"be home by Sunday\"), leave it off — the right flight may depart the day\nbefore (a red-eye) — and let the Step 4 date strings show both days. If the rejection, or phrasing like \"Sunday night\", leaves it ambiguous whether the\ntraveler means late Sunday or a just-after-midnight Monday departure, ask them which they mean\ninstead of silently moving the date.\n\n```bash\nramp travel search-flight --output json \\\n --departure YYZ --arrival SFO \\\n --departure_date 2026-07-01 --return_date 2026-07-08 \\\n --rationale \"search flights for the Toronto→SFO trip, Jul 1-8\"\n```\n\n**Usually one call returns the full ranked set** — `offers` come back with `in_policy`\nalready worked out, no client-side polling.\n\n**Check `search_complete` first.** On a dense route the server can return\n`search_complete: false` with only the best offers so far and no cursor. When that happens,\nre-call `search-flight` with `--resume_job_id <job_id>` (this response's `job_id`, no `--cursor`);\nthe workflow keeps running, so the resume usually returns the final, ranked set. **Bound the\nretries**: wait before each resume, backing off (5s, then 10s, 20s, 40s), and stop after at\nmost 5 resume calls or ~2 minutes total. If the search still isn't complete at the limit,\ndon't keep hammering it — present the best-so-far offers to the user, clearly labeled as\npartial results from a still-running search, and offer to check again on request. When a\nresume does return `search_complete: true`, build the table. The resumed offers\n**supersede** the partial ones (same ids) — replace, don't append. Don't present partial\noffers as final or tell the user to change their trip mid-search.\n\nOnce complete, empty `offers` = no match — tell the user and offer to change dates/airports.\n(Output is also token-capped, so a long result may page: pass `job_id` as `--resume_job_id`\nand `next_cursor` as `--cursor` to fetch more, only if the user wants beyond the first page.)\n\n**For round-trips, save this response's `job_id`** — it's `--search_job_id` in Step 5.\n\n## Step 4 — show the offers\n\nTurn the JSON into **one table**. Keep each offer's `id` out of the table (you need it for\nreturns/booking). Each `offers[]` item has exactly these keys (don't invent others): `id`,\n`airline_name`, `flight_number`, `departure_airport`/`arrival_airport`,\n`departure_time`/`arrival_time`, `departure_date`/`arrival_date` (for the `⁺¹` next-day mark),\n`duration`, `stops`, `price`, `in_policy`/`policy_reason`, `fare_name` (free-text fare label),\nand `fare_options` (the per-fare grid — **present only when you passed `--include_fare_options`**).\n\n| # | Airline | Flight | Depart → Arrive | Duration | Stops | Price (round-trip total) | Policy |\n|---|---------|--------|-----------------|----------|-------|--------------------------|--------|\n| 1 | JetBlue | B6 0115 | 6:00 AM → 9:15 AM | 6h 15m | Nonstop | **$289** | ✓ |\n\n- **#** — the row's on-screen position (top = `1`, no gaps), not the JSON index. If you\n reorder (e.g. cheapest in-policy first), renumber top to bottom. Keep a private `#`→`id`\n map so \"book #3\" resolves correctly.\n- **Depart → Arrive** — local times; add `⁺¹` when arrival is next-day.\n- **Duration**, **Stops** — as returned (`Nonstop`, `1 stop`).\n- **Price** — always show. Round-trip header says **\"round-trip total\"** (covers both legs);\n one-way says **\"Price\"**. Say which in words.\n- **Policy** — `in_policy: true` → **✓**, `false` → **✗** + short `policy_reason` (e.g.\n *✗ (booked < 14 days out)*), `null` → **—** (not checked); never show **✗** for `null`.\n\nAbove the table, lead with the route and travel date, taking the weekday from the offers'\n`departure_date` strings (weekday included, e.g. \"Mon, Jul 13, 2026\" → **\"SFO → EWR — Mon,\nJul 13\"**). The day you show must come from the API's date strings — never pair the traveler's\nwords (\"Sunday\") with a date you computed. Judge a mismatch against the day the traveler\nactually named: a departure day against `departure_date`, an arrival day against\n`arrival_date` — a Saturday red-eye arriving Sunday **matches** \"be home by Sunday\". On a real\nmismatch, re-search with the corrected date instead of presenting these offers. For an\narrival-day request, show each offer's `departure_date` **and** `arrival_date` as returned so\nthe traveler sees both days. Below that, show up to 3 recommended options with a\ncouple-word reason, price, and policy status (*\"Recommended: JetBlue — cheapest in-policy,\n$289 round-trip.\"*). If `search_policy_summary` has text, show it once as a short banner.\n\n## Step 5 — round-trip: confirm the outbound, then fetch returns\n\nRound-trips only. **Wait for the user to name the outbound.** Don't guess or default to\ncheapest/first. Ask *\"Which outbound do you want? I'll pull the matching returns once you\npick.\"* If vague (\"the morning one\") and more than one fits, confirm the exact flight.\n\nThe return step is a **second flight-search call** — same command, with the chosen outbound's\n`id` as `--outbound_offer_id` plus the Step 3 `job_id` as `--search_job_id` (carries outbound\ncontext for return-policy). For delegated bookings, also pass the same `--traveler_user_id`.\nDon't pass `--departure`/`--arrival`/dates again — mixing them with `--outbound_offer_id` is\nrejected.\n\n```bash\nramp travel search-flight --output json \\\n --outbound_offer_id \"<chosen_outbound_offer_id>\" \\\n --search_job_id \"<job_id_from_step_3>\" \\\n --rationale \"return offers for the chosen outbound, Toronto→SFO trip Jul 1-8\"\n```\n\nThe response is `is_round_trip: true` with `offers` being the return legs. (Return mode is\nsynchronous, so its `job_id` is null; page more returns by reusing `--outbound_offer_id` +\n`--cursor`.) Show them like Step 4. **Each return offer's price is the full round-trip\ntotal** — say so (*\"the nonstop keeps your trip at $289; the 1-stop return makes it $396\ntotal\"*). Returns often come back `in_policy: null`; if every offer is null, drop the Policy\ncolumn (never show ✗ for null). The id you carry to booking is the chosen **return** offer's\n`id`.\n\n## Step 6 — book (preview → confirm → verify)\n\nAlways three steps; never book in one shot, never assume a yes, never book a flight the\ntraveler didn't name. Booking spends **real money**.\n\nBefore previewing or confirming a booking, check whether the traveler already has a Ramp\ntravel profile:\n\n```bash\nramp travel profile --output json \\\n --rationale \"check whether the Toronto→SFO Jul 1-8 trip traveler profile is ready for booking\"\n```\n\nIf `has_profile` is `false`, collect the required traveler details in one message, then update\nthe profile before continuing. Use the tool to save the details the traveler gives you; do not\nsend them to the Ramp web app for this.\n\nFor delegated bookings, pass the same `traveler_user_id` from the user lookup flow to\n`travel profile` and, if needed, `travel profile-update`. For self-booking, omit\n`traveler_user_id`.\n\n```bash\nramp travel profile-update --output json \\\n --first_name \"Taylor\" \\\n --last_name \"Smith\" \\\n --date_of_birth \"1990-01-15\" \\\n --email \"taylor@example.com\" \\\n --phone_number \"+14155550123\" \\\n --rationale \"create the traveler profile needed to book the Toronto→SFO Jul 1-8 trip\"\n```\n\nOnly continue when the update succeeds. Confirm the profile-update result reports success, or\nre-run `travel profile` to verify the traveler now has a profile before moving on. For delegated\nbookings, re-run it with the same `traveler_user_id`. If the update fails, correct the missing\ndetails and retry instead of continuing to booking.\n\nOnce the profile exists, continue to the normal preview, confirmation, and verification flow.\n\n**Which id:** one-way → the chosen offer's `id` from `search-flight`; round-trip → the chosen\n**return** offer's `id` from Step 5 (it represents the whole round-trip and its both-legs\ntotal — **not** the outbound id). Pass it as the first arg (`ramp travel book \"<id>\"`).\nBehind it is **`flight_offer_uuid`**, so a `--json` body uses key `flight_offer_uuid`, not\n`offer_id`.\n\n### Phase 1 — preview (always first)\n\nRun `book` **without `--confirm`** — that returns the preview and books nothing.\nFor delegated bookings, pass the same `--traveler_user_id` used for profile preflight/search.\n\n```bash\nramp travel book \"<flight_offer_uuid>\" --output json \\\n --rationale \"preview fare for the Toronto→SFO Jul 1 trip before the traveler confirms\"\n```\n\nShow plainly: route/dates, airline/flight, cabin/fare, **total**, policy result, and paying\nfund(s). The preview returns **`eligible_funds`** (each with `fund_uuid`, `fund_name`,\nsometimes `available_balance`/`spending_limit`).\n\n**Always ask: *\"Want to pay from a specific fund?\"*** (a yes/no). Then:\n\n- **Yes** → pass the chosen fund's `fund_uuid` as `--spend_allocation_id`. One eligible fund →\n name it and use it; several → list them by name and ask which.\n- **No** → leave `--spend_allocation_id` off. This is **not** an auto-pick — it **requests a\n new allocation** (a fresh spend request that goes through approval). That's a fine choice;\n just be clear that's what happens, don't call it \"auto-selected.\"\n- **Empty `eligible_funds`** → there's no fund to specify; omit `--spend_allocation_id` and a\n new allocation is requested.\n\nWhether the booking needs sign-off comes from the preview's **`requires_approval`** /\n**`approval_steps`** — surface those plainly rather than inferring it from the fund.\n\nThe preview returns the itinerary dates as weekday-qualified strings — **`outbound_date`**\n(e.g. \"Mon, Jul 13, 2026\") and, for round-trips, **`return_date`**. The read-back must quote\nthem **exactly as returned, weekday included** — never re-derive the weekday or repeat one\nfrom earlier conversation. These are departure dates — check them against a departure day the\ntraveler named; for an arrival day (\"be home by Sunday\"), check the chosen offer's\n`arrival_date` instead and read that day back too (a Saturday-departing red-eye arriving\nSunday is correct). On a real mismatch, **stop and re-search (Step 3) with the corrected\ndate** — don't ask for confirmation. If the preview doesn't include these fields, verify each\nISO travel date with Python's calendar instead (use `python` if only that executable is\navailable):\n\n```bash\npython3 -c 'from datetime import date; import sys; dates = map(date.fromisoformat, sys.argv[1:]); print(\"\\n\".join(\"{}: {} {}, {}\".format(d.isoformat(), d.strftime(\"%A, %B\"), d.day, d.year) for d in dates))' 2026-07-06 2026-07-10\n```\n\nThen state the total in plain words and **ask for a clear yes**. The confirmation prompt must\ninclude the preview's date string for every leg, along with the local departure time: *\"This\nbooks LHR → JFK on Delta, departing Mon, Jul 6, 2026 at 10:00 AM, for **$412 total**, paid\nfrom the Travel fund. Book it?\"* For a round-trip, include both outbound and return dates and\ntimes. Stop and wait.\n\n### Phase 2 — confirm (only after a clear \"yes\")\n\nAdd `--confirm` and pass the preview's total as `--expected_total_amount` (rejects the\nbooking if the fare moved instead of quietly charging more). Use the preview's `total_amount`\n**exactly as a string with the currency symbol**, **single-quoted** (`'$288.80'`) — double\nquotes let the shell eat `$2`, sending `88.80` and triggering a false price-change rejection.\nFor delegated bookings, pass the same `--traveler_user_id` used in the preview.\n\n```bash\nramp travel book \"<flight_offer_uuid>\" --confirm \\\n --expected_total_amount '<preview_total_amount>' --output json \\\n --rationale \"book the Toronto→SFO Jul 1 trip; traveler approved the previewed fare\"\n```\n\nExtra flags, only when they apply:\n\n- **`--spend_allocation_id <fund_uuid>`** — the chosen fund's `fund_uuid` when the traveler\n specified one. Omit it if they chose not to (or `eligible_funds` was empty) — that requests\n a new allocation.\n- **`--reason \"<note>\"`** — booking notes, if offered.\n- **`--trip_id <uuid>`** — attach to an existing trip; off to auto-pick/create.\n\nPrice-change error = fare moved: re-run Phase 1 and re-confirm only after the traveler\nre-approves. (`--dry_run` prints the request without sending.)\n\n### Phase 3 — verify it went through\n\n**The confirm response is optimistic, not final** — it can say `approved`/`pending_approval`\nand still fail in fulfillment. Don't say \"you're booked\" off the confirm alone:\n\n```bash\nramp travel bookings --include_flights --output json \\\n --rationale \"verify the Toronto→SFO Jul 1 booking reached a terminal status\"\n```\n\nFor delegated bookings, pass the same `--traveler_user_id` when verifying and on every retry;\notherwise `travel bookings` checks the requester's bookings.\n\nFind the flight you just booked by matching what `travel bookings` returns — departure/arrival\nairports, `flight_number`, and departure time. If several match (e.g. earlier pending/failed\nattempts on the same route/date), pick the most recent by **`booked_at`** — that's the one you\njust created. (`travel bookings` doesn't return the confirm's `booking_request_id`, so don't\nmatch on that.) Report its `status`. Most read for themselves (`CONFIRMED`, `PENDING_APPROVAL`,\n`CANCELLED`). Two need care:\n\n- **`PROCESSING`** is **not final** — wait and re-run `travel bookings` until it settles;\n don't report it as booked yet.\n- **`FAILED`** — show `error_message` exactly. If it points to missing traveler details, use\n `travel profile` and `travel profile-update` with the same traveler target to complete the\n profile before retrying.\n\n## Comparing cabins or fares (only when asked)\n\nOnly when the user asks to compare cabins, see upgrade prices, or asks about fare differences\n(\"show the class options\", \"how much to upgrade to business\"). A normal search returns **no**\nfare grid, and you **can't** get one by resuming a prior lean search — when the user wants to\ncompare, run a **fresh search with `include_fare_options=true`** (then fetch returns from that\njob).\n\n- **`cabin_class`** is optional — leave off to search all cabins; add only for one cabin.\n- **`include_fare_options: true`** adds each flight's bookable fare classes to `fare_options`\n (each with `fare_name`, `fare_category` — `Basic Economy`/`Economy`/`Economy Plus`/\n `Premium`/`Business`/`First` — `price`, `in_policy`/`policy_reason`, and a bookable fare\n `id`).\n\nThe offer's top-level `price` is the **cheapest** fare; `fare_options` lists the upgrades. To\nbook a specific fare, pass that fare option's `id`, **not** the offer's top-level `id`.\n\nSend it via `--include_fare_options` if the available flight-search command lists it; otherwise via\nthe `--json` body:\n\n```bash\nramp travel search-flight --output json --json '{\n \"departure\": \"JFK\", \"arrival\": \"SFO\",\n \"departure_date\": \"2026-07-06\", \"return_date\": \"2026-07-10\",\n \"include_fare_options\": true,\n \"rationale\": \"compare cabin/fare classes for the JFK→SFO trip, Jul 6-10\"\n}'\n```\n\nOnce you're in a comparison (the search that set `include_fare_options=true`), re-send\n`include_fare_options` on every follow-up call (pagination and the Step 5 return search) — it\ndoesn't persist on its own — so the fare grid stays on across pages.\n\nPresent a **single cabin-grid matrix** — one row per flight, one column per cabin category —\nordered by departure time (a comparison, not a ranked list):\n\n| # | Depart → Arrive | Airline / Flight | Basic Econ | Economy | Econ+ | Premium | Business |\n|---|-----------------|------------------|-----------|---------|-------|---------|----------|\n| 1 | 7:00 AM → 9:49 AM | DL 0742 | **$154** | **$209** | $354 | $759 | $3,849 |\n\n- **#** — display position (top = `1`); keep an internal `#`→per-cabin-fare-`id` map so\n \"book #2 in economy\" resolves to the right fare option `id`.\n- **Depart → Arrive** — local times, `⁺¹` for next-day.\n- One column per `fare_category`; cell = that fare's `price`, `—` if the flight doesn't sell it.\n- **Bold = in policy** (`in_policy: true`); plain otherwise; render `null` plain (don't claim\n out-of-policy). Add a one-line legend.\n\nAbove the table, give the lead line (cheapest fare anywhere + the highest in-policy cabin) and\nmake the upgrade math explicit (*\"Basic Economy $289, in policy; Economy $399; Business\n$1,101, out of policy\"*).\n\n## Supporting tools (profile, trips, bookings)\n\nFour supporting tools; use when relevant, not on every booking.\n\n- **`travel profile`** — the traveler's saved profile (name, email, phone, DOB, gender,\n KTN/TSA, redress, loyalty). Use for \"what's my known traveler number?\" and before booking to\n check whether `has_profile` is true.\n- **`travel profile-update`** — saves missing traveler details before booking when\n `travel profile` returns `has_profile: false`, or when a failed booking points to missing\n traveler details.\n- **`travel list`** — the traveler's trips (`--status completed|ongoing|upcoming`,\n `--cursor`). Each has `id`, `trip_name`, dates, locations. Use to find a trip `id` for\n `--trip_id` on `book`.\n- **`travel bookings`** — existing flight/hotel bookings (`--include_flights`/\n `--include_hotels`, `--limit`). Each has a `status` (`CONFIRMED`/`PENDING_APPROVAL`/`FAILED`\n + `error_message`), route/times, `trip_name`/`trip_id`. **Source of truth for whether a\n booking succeeded** (Phase 3) and for \"what flights do I have booked?\".\n\n## Gotchas\n\n- Offers expire from the cache. If a return or book call fails with a cache/offer error,\n re-run the search (Step 3) for fresh offers and continue.\n"
}SHA-256 of public snapshot: ee6b96d3092bfa802287e6065be72bfcd0423708a0b6afb8d637f22aed1dd22e