agent: add adapter for Rakuten Ichiba - #2619
Merged
webbrain-one merged 1 commit intoJul 29, 2026
Merged
Conversation
|
@alectimison-maker is attempting to deploy a commit to the esokullu's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a mirrored Rakuten Ichiba marketplace adapter with site-specific shopping guidance and routing tests.
Changes:
- Matches researched Rakuten shopping and cart hosts while rejecting unrelated or spoofed domains.
- Guides price, variant, subscription, shipping, cart, and points handling.
- Verifies Chrome/Firefox parity.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/chrome/src/agent/adapters.js |
Adds the Chrome Rakuten adapter. |
src/firefox/src/agent/adapters.js |
Mirrors the adapter for Firefox. |
test/run.js |
Tests matching, exclusions, guidance, and parity. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Motivation
CONTRIBUTING.mdlistsrakuten.co.jpas a high-priority East Asia adapter, but WebBrain currently uses only generic commerce behavior there. Current official search results and Rakuten help for multi-shop shipping, shop-grouped carts, and 39 Shop shipping exceptions expose several non-obvious traps:[PR]results are sponsored, while〜prices and variants make the first displayed price non-comparable定期購入is a recurring purchase with a different price from the normal option特定送料or destination/delivery exceptionsWithout site guidance, these behaviors can lead to incorrect cheapest-price claims, unintended subscriptions, combined-shipping promises, or overstated savings.
Design
The adapter explicitly matches only the researched Rakuten Ichiba surfaces:
www.rakuten.co.jpsearch.rakuten.co.jpitem.rakuten.co.jpbasket.step.rakuten.co.jpIt deliberately excludes Rakuten Travel, Books, unresearched order/checkout hosts, other group services, and suffix/path lookalikes.
Six dated, imperative notes tell the agent to:
This follows the existing regional-adapter shape without adding APIs, permissions, dependencies, or network calls.
Testing
node --check src/chrome/src/agent/adapters.js— passednode --check src/firefox/src/agent/adapters.js— passednpm run test:security— passed, 60/60 checksnpm run test:webmcp— passed with real Chromenode test/run.js— 1,354 passed; one unchanged baseline failure remains becausepackage.jsonis26.0.1while the newestCHANGELOG.mdentry is26.0.0Compatibility and risks
This is additive prompt metadata with no public API or configuration changes. The main residual risk is UI drift; the notes are dated
2026-07, use stable marketplace labels and documented policies rather than selectors, and keep host matching conservative.Scope
Rakuten Travel, Books, other group services, unresearched checkout hosts, and mobile-app-only flows are intentionally deferred.