Repository navigation
Add native Decision commerce automation and shopping mode settings - #3230
Merged
Hillary Mutisya (hillary-mutisya) merged 2 commits intoOct 26, 2026
Merged
Conversation
Introduce grounded UI observation, native control and page-condition decisions, and one-use browser-bound execution. Run exhaustive control-selection batches concurrently and add verified product search/navigation WebFlows alongside the generative implementations. Expose Shopping Mode beside the independent Crossword Mode, preserve generative defaults and saved flow scope, repair main-document navigation waits, and cover the new behavior with deterministic tests and usage documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Add an opt-in native Decision path for commerce UI automation, alongside the existing generative path. This extends the decision-model approach used for crosswords to two shopping operations: searching for a product and opening its product page.
User-visible behavior
decision search for ...anddecision open product ...commands always use Decision.Implementation and review guide
uiDecisionService.mtsimplementsselectElement,evaluatePageCondition, andexecuteUiAction. Selection covers every eligible control in bounded batches (up to 32 controls / 24 KiB per request), runs those batches concurrently, waits for all to settle, and compares multiple winners globally.The commerce samples explicitly use main-document evidence; they do not make claims about iframe content. The underlying API retains a strict all-frames default. This is a Chrome/Edge pilot for native search forms and product links, not general checkout or visual/canvas automation.
Validation
mainthroughedf9e0e7e; the changes reapplied cleanly, with no unresolved conflicts. Updated dependencies usingpnpm install --frozen-lockfile.pnpm run build: passed.origin/main: repository-pinned formatting, lint, complexity, circular dependencies, and the debt/test-marker gate.Live qualification performed during development
The latest paired Home Depot run completed all four flows and independent UI checks:
The seven product-selection requests started within 16.7 ms; selection wall time was 1.467 s. Neither Decision flow made generative calls. These are observed single-run measurements on a dynamic live site, not benchmark guarantees. Recordings and detailed evidence remain outside Git; no videos, browser profiles, or local provider configuration are included in this PR.