Skip to content

agent: add adapter for Lazada - #2673

Merged
esokullu merged 1 commit into
webbrain-one:mainfrom
alectimison-maker:agent/lazada-adapter
Aug 4, 2026
Merged

agent: add adapter for Lazada#2673
esokullu merged 1 commit into
webbrain-one:mainfrom
alectimison-maker:agent/lazada-adapter

Conversation

@alectimison-maker

Copy link
Copy Markdown
Contributor

Summary

  • add a Lazada site adapter for the six current Southeast Asian storefront families
  • stop the agent from retrying Lazada's observed _____tmd_____/punish traffic gate or treating its empty page as an empty catalog
  • keep Chrome and Firefox routing and guidance aligned with positive and negative host coverage

Motivation

Lazada was one of the regional marketplaces listed in the contribution guide but had no adapter. A live anonymous browser check reached all six storefront homepages, while catalog and product navigation repeatedly redirected to a traffic-check path that exposed only Click to feedback >. Without site guidance, that shape invites repeated reads/retries and can be misreported as no products.

Design

The matcher covers the Indonesia, Philippines, Malaysia, Singapore, Thailand, and Vietnam storefront domains plus the observed consumer-facing m, my, member, and pages subdomains. Seller, help, careers, lookalike suffixes, and domains embedded in another URL remain excluded.

The eight guidance bullets focus on Lazada-specific market separation and traffic-gate behavior, then preserve marketplace safety around variations, LazMall/seller attribution, conditional promotions, cart versus direct checkout, verification, and final order confirmation. A global marketplace preamble was rejected because it would add prompt cost to unrelated sites and could not identify Lazada's exact gate.

Testing

  • node --check src/chrome/src/agent/adapters.js - passed
  • node --check src/firefox/src/agent/adapters.js - passed
  • targeted inline Node routing/parity assertions - passed
  • node test/run.js - 1437 passed, 2 inherited failures: the changelog still ends at 26.0.0 while package.json is 26.0.10, and the randomized promotion test selected the Chinese variant while expecting English (the baseline had the same two failures at 1436 passed)
  • npm run test:security - 60/60 checks passed
  • anonymous headless Chromium inspection - all six storefront homepages returned HTTP 200; catalog and product routes reproduced the documented traffic gate

Compatibility and risks

This is additive and does not change tool schemas, permissions, public APIs, or existing adapter matches. The main residual risk is normal marketplace UI drift; the volatile traffic-gate observation is dated, the matcher is an explicit host allowlist, and the notes avoid CSS selectors.

No signed-in checkout or manual challenge completion was performed.

Scope

Tokopedia, Gojek, Grab, and other regional adapters are intentionally deferred to separate PRs.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Lazada marketplace guidance across six Southeast Asian storefronts, including traffic-gate handling and checkout safeguards.

Changes:

  • Adds matching for approved Lazada domains and consumer subdomains.
  • Adds eight Lazada-specific browsing and purchasing guidance rules.
  • Tests positive/negative routing and 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 Lazada adapter.
src/firefox/src/agent/adapters.js Mirrors the Lazada adapter for Firefox.
test/run.js Tests routing, guidance, exclusions, and parity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@esokullu
esokullu merged commit 719ef9e into webbrain-one:main Aug 4, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants