JevBrowserPlanner recommends a next step from actions your driver already observed and checks whether the page version still matches. Use it when you own the browser driver and want only semantic selection.
Example: a refund policy page refreshes during judgment
A user needs the refund deadline. Your driver can see the policy section and JEV can recommend reading it, but a refresh can change a candidate’s location or meaning during judgment. AssignpageVersion to the observed snapshot and check it before and after selection. If it changes, the planner returns STALE_PAGE. Observe again rather than executing the old proposal.
1. Convert visible targets into candidates
2. Recheck the version after selection
selector as in Candidate classification. browser.currentPageVersion() stands for your driver’s API, not a framework method. The final false means the host has not verified completion; even a recommendation of DONE cannot establish success.
3. Decide whether to execute
validFor means only that an action exists and the page version matches. Observe only in SHADOW. When adopting a proposal, bind the version check and execution in the same driver operation to avoid a race.
Run and verify
SetJEV_CP using the example build instructions, then run:
policy on the current page, returns STALE_PAGE after a page change, and COMPLETION_NOT_VERIFIED without independent evidence. It starts no browser and executes no action, so it cannot measure browser task success. JevApplicationScenarios source