the short answer
Jev can choose the next browser action from a bounded set derived from the current page and goal. The harness must ground candidates to real elements, validate that they still exist, enforce origin and permission rules, and require confirmation for consequential actions. Low confidence, changed state or unavailable service should stop or escalate rather than trigger a guessed click.
- Semantic decision
- Choose one valid browser operation and target from the current grounded candidates.
- Likely primitive
- Choice for operation/element, with Nouls for goal completion or stuck state.
- Relevant state
- the goal and a compact, current representation of visible actionable elements.
- Keep deterministic
- Code extracts the DOM/accessibility tree, filters actions, validates freshness, dispatches events and enforces confirmation.
The Useful Jev Decision
Choose one valid browser operation and target from the current grounded candidates. Jev should receive only the state needed for that judgment: the goal and a compact, current representation of visible actionable elements. The application defines the possible answers before inference and consumes the typed result; Jev does not own the surrounding workflow.
A browser loop can select a form field or button while the harness refuses payment, deletion or submission without explicit authorization. This is a design pattern, not evidence that every implementation will perform well. Test the exact state, question, model version and action against representative outcomes.
Architecture: Evidence in, Judgment Out, Action in Code
The source record and projected state are not interchangeable. If decisive evidence never enters state, the model cannot recover it; if irrelevant or adversarial text is copied wholesale, it can move the result. Give the projection its own version and test it with the question. The state-design guide shows how to separate trusted fields, untrusted content and derived values.
What Remains in Code
Code extracts the DOM/accessibility tree, filters actions, validates freshness, dispatches events and enforces confirmation. Exact checks should run before the model when they can narrow or reject candidates. After Jev returns, code applies thresholds, permissions, fallbacks and the final action. Store the raw distribution rather than only the selected label so later evaluation can distinguish a close decision from a concentrated one.
Version the Complete Decision Instrument
A final label alone is not enough to investigate a regression. The same label can come from a clear distribution or a near-tie, and it may have been produced by a different candidate set or projection. Keep the record append-only so a later threshold change can be replayed without rewriting history. The evaluator scorecard defines validity, robustness, calibration and utility checks for this complete instrument.
| Component | What to record |
|---|---|
| Evidence unit | The source record and projection used for: the goal and a compact, current representation of visible actionable elements. |
| Question contract | Choose one valid browser operation and target from the current grounded candidates. |
| Primitive and criteria | Choice for operation/element, with Nouls for goal completion or stuck state. |
| Inference identity | Requested model, resolved model, provider, timestamp and request ID |
| Raw result | Selected answer, complete distribution, confidence where defined, latency and failure state |
| Application outcome | Threshold branch, review or fallback, final action and later ground truth |
How to Evaluate This Use Case
- Collect representative examples and define the observable outcome before tuning the question.
- Split broad quality into independently useful Choice, Score or Noul judgments.
- Pin the Jev model, question, criteria and state projection.
- Measure class-level errors, calibration, coverage, latency and cost against the simplest baseline.
- Add review or fallback behavior, then monitor drift and real downstream outcomes.
Run a Decision-Level Baseline Experiment
Compare the Jev design with the simplest credible existing method: deterministic rules, a keyword or embedding classifier, the current LLM prompt, or human-only handling. Hold the evidence unit and outcome definition constant, but allow each method to use its native interface. Include invalid responses, timeouts, retries and review work in the result instead of scoring only successful model calls.
The primary metric should reflect the cost of getting “Choose one valid browser operation and target from the current grounded candidates.” wrong. Report class or rubric errors by important slice, calibration where the output supports it, automation coverage at the proposed threshold, p50/p95 latency and total workflow cost. Use grouped or time-based splits when related records could leak across train and test. The benchmark methodology gives a reproducible protocol.
Main Failure Mode
Page content is adversarial and changes between observation and action, creating prompt-injection and stale-target hazards. Jev 1.13 can also read instructions literally, lose accuracy in irrelevant long state and be steered by adversarial content. Keep state narrow, define boundary cases and never treat model confidence as authorization.
FAQ
Is Jev a good fit for browser automation?
Jev can choose the next browser action from a bounded set derived from the current page and goal. The harness must ground candidates to real elements, validate that they still exist, enforce origin and permission rules, and require confirmation for consequential actions. Low confidence, changed state or unavailable service should stop or escalate rather than trigger a guessed click.
Which Jev primitive should I start with?
Choice for operation/element, with Nouls for goal completion or stuck state. Start from what the answer means: Choice for one option, Score for ordered levels and Noul for one independent yes/no condition.
What should not be sent to Jev?
Do not send fields irrelevant to the decision. Code extracts the DOM/accessibility tree, filters actions, validates freshness, dispatches events and enforces confirmation. Keep secrets and regulated data within the deployment's approved data-handling design.
How do I know whether the integration works?
Compare it with a deterministic or existing baseline on held-out outcomes. Report errors and coverage at the operating threshold, not only average accuracy or a demo result.
Sources
Checked against the sources below on September 22, 2026. Model versions, prices and limits change.
- TypeSafe AI docs: Example use cases
- TypeSafe AI docs: How to build with System One
- TypeSafe AI docs: Primitives
- TypeSafe AI docs: Confidence
- TypeSafe AI docs: Jev 1.13 jaggedness
- Community index: awesome-jev