-
-
Skyline Air landing page: book a flight, then ask the hotel — with a visible consent boundary.
-
The consent card shows the exact hotel origin, purpose, and request before any cross-origin fetch.
-
After Allow: the hotel network runs in the browser and returns a room answer; only the request text crossed.
-
A manual booking: pick a flight, enter the passenger, and confirm; the demo takes no payment.
-
Harbor Hotel on its own origin at a phone width: separate manifest, rooms, and policies.
Inspiration
Agents are starting to use other websites on our behalf, but most demos hide the moment they cross an origin. A prompt-level "the assistant may contact partners" line is not consent: the user cannot see which origin, what request, or what leaves the page. Trip Relay makes that boundary the product instead of an implementation detail, using a flight-booking site and a hotel site that a traveler would actually use together.
What it does
Trip Relay is a working pair of agentic websites. The airline and hotel are fictional, the inventory is generated, and no payment or real reservation is made.
- Skyline Air lets a visitor find a flight from Ho Chi Minh City to Da Nang, hold a fare, and book it. Its front agent delegates flight writes to a
fare_agentspecialist, and every write needs a current version and a visitor confirmation. - Harbor Hotel is a separate origin with its own manifest, network, rooms, rates, policies, airport shuttle, and room-request intake.
- The airline's assistant can hand a hotel question to the second site. Before any request reaches the hotel origin (
localhost:8081locally;pham-canh.github.io.hosted), the visitor sees a consent card with the exact origin, purpose, and request text. Decline cancels the call; the hotel manifest is never fetched. Allow loads only the hotel's public network and runs it in the caller's browser with the caller's router. The runtime forwards only the request text, which the consent card shows. It does not forward the chat history, page state, airline passenger record, or API key. A hotel room request is a separate action confirmed on the hotel origin.
The public demo runs at https://pham-canh.github.io/trip-relay/ with the hotel at https://pham-canh.github.io./; the trailing dot is a deliberate second browser origin. Do not drop the dot — without it the hotel is on the airline's origin. The browser evidence is in docs/ORIGIN.md. The same pages run locally on 127.0.0.1:8080 and localhost:8081 and work without a model key for the manual flight-booking and room-request paths.
Trip Relay is a reference implementation of a consent-gated agent handoff, not a travel-booking product. Travel is the demonstration domain; the data is generated and the pages take no payment or real reservation. The reusable contribution is the boundary: a peer network is public data, the browser pauses before the first peer fetch, the exact network is resolved with no fallback, and the peer receives the declared request rather than the caller's private context. The pattern, threat model, failure modes, and limitations are documented in PROTOCOL.md.
The 1:46 demo is narrated in Vietnamese by the entrant, with English subtitles burned into the picture and a full English transcript in VIDEO-TRANSCRIPT.md.
How we built it
- Two static sites, each with an
agent-manifest.json, a resolved Neuro SAN HOCON network,links.json, a browser runtime, and a small action module. - The airline network has a front agent plus a
fare_agent; the hotel is a separate network reached through the exacthttp://localhost:8081/harbor_hotellink locally andhttps://pham-canh.github.io./harbor_hotelin the hosted pair. - Consent is enforced by the runtime before the first peer fetch, not by the prompt. The browser test asserts zero requests to the hotel origin before Allow.
- Mozilla Otari is the default router in both manifests; the settings panel adds global and EU Otari presets with
alibaba/qwen-3.5-35b-a3b. Keys stay in browser storage and go only to the selected router. - 14
node:testchecks run the real runtime with a scripted model; a 16-check Playwright pass covers both pages, the consent ordering, and the approved cross-site answer. GitHub Actions runs the suite on every push. The demo recording uses a scripted SSE router; the public pair defaults to Otari.
Verification status
- Protocol and consent: 14
node:testchecks and a 16-check Playwright pass, both with a scripted model. The browser pass asserts zero hotel requests before Allow, zero after Decline, and the hotel answer after Allow. - Hosted boundary: the same consent flow was run against the public pair.
location.originishttps://pham-canh.github.ioon the airline andhttps://pham-canh.github.io.on the hotel;localStorageis isolated; the hotel manifest is CORS-readable; 0 requests before Allow, 0 after Decline, 11 after Allow.npm run check:originsreproduces the deployment check. The full evidence is indocs/ORIGIN.md. - Live Otari call: not yet recorded. The tests and the demo video use a scripted OpenAI-compatible endpoint; the public manifests default to Otari. A judge can add a key in AI model settings and repeat the question. We do not claim a live provider call.
- Scope: demo data only. No real inventory, payment, or reservation. The contribution is the boundary, not the travel inventory.
Challenges
- Consent before contact. The runtime must not prefetch peer metadata to render a nice card. The card shows the origin first and upgrades to the published brand only after approval.
- Two origins without a second owner. Locally,
127.0.0.1andlocalhostare different origins; using two ports on one hostname would not exercise the boundary. On GitHub Pages, a project path shares the user origin, so the hosted pair uses the trailing-dot form of the same host (pham-canh.github.iovspham-canh.github.io.), which browsers treat as a distinct origin. - Otari onboarding. The local gateway needs Python 3.13 and uv 0.13+, and Docker was unavailable on the build machine, so the demo targets the hosted endpoint and documents the browser CORS requirement. The exact feedback is in
docs/OTARI.md. - Otari regions. An EU key sent to the global host returns HTTP 421 and names the correct host. The key prefix now selects the matching regional preset, so a judge does not have to discover the region by error. This was the most concrete integration bug we fixed.
- Writes without false success. Flight booking and room requests both require a current
expectedVersion; a stale call is refused, and an unknown outcome is never retried. - Honest travel data. Flights are generated for the next three days, rates are demo data, and the hotel takes requests only: the page says clearly that it has no live inventory and takes no payment.
Accomplishments
- A visible, testable cross-origin consent gate with zero peer requests before approval.
- A two-agent caller network and a separate hotel network, both running in a normal browser tab.
- Per-origin private-context rules: only the natural-language request crosses the boundary.
- 14 unit tests, 16 browser checks, and GitHub Actions on every push; the model is a scripted test double, not a live provider.
- The same consent ordering was verified against the hosted GitHub Pages pair, including the trailing-dot second origin; that run also used a scripted endpoint, not a live Otari call.
- A complete spec map, demo script, screenshots, and a reproducible local setup with no server dependencies.
What we learned
Consent has to live at the transport boundary. A sentence in the system prompt is not a control; the runtime must pause before the fetch and show the destination and payload. Treating peer networks as untrusted public data also keeps the key and the user's context on the caller's side.
What's next
- Record a take against a live Otari key over the same picture; the current entrant-voice cut uses a scripted, reproducible endpoint.
- Replace the trailing-dot peer host with a custom domain or a second static host when one is available; the public build already accepts
AIRLINE_URLandPEER_URL. - Extract the consent/policy layer into a small reusable library and add signed publisher identity.
- Add a second peer with a different trust level to show per-origin policies.
- Add an optional MCP facade and an A2A card.