This blog shows the evaluation of the decision model JEV in across different security use cases
.png)
If you are deciding where a decision model belongs in a security stack, this blog measures JEV, the new model from TypeSafe AI, against use cases a product team actually ships. We tested JEV on 10 use cases, with 1,000 labelled examples for each. The run was conducted on 7 October 2026 using the typesafe/jev-1.13-20260917 snapshot. JEV reads a piece of text and returns a score from 0 to 1. A higher score means the text is more likely to match what you are looking for: an attack, an unsafe tool call, or a rubric miss. For this evaluation, 0.5 is the decision threshold: scores of 0.5 or higher are counted as a positive result.
The short answer: for yes/no security decisions, JEV can rank attacks above ordinary text. But the right threshold, question, and place in the security path depend on the use case. At roughly 500 ms per call, JEV is too slow to be the first hop on a fast path, but reasonable for a smaller set of events that are already considered sensitive.
Testing multiple use cases
A request, an agent turn, and a finished answer can fail in different ways. One accuracy number would hide those differences, so we treated each use case as a separate security control that a product team could ship on its own.
Two questions sit above these yes/no tests: Can the model identify the technique? And does changing the question change the answer? Both matter once a score is good enough to drive a security decision. A control that only says “yes” may still leave a person or another system to determine what kind of “yes” it is.
What the evaluation says
After testing, we found the following:
- JEV can separate attacks from ordinary text. For yes/no questions, the score generally ranks attacks above benign examples. Intent is essentially perfect on this set, with the rubric judge and encoded web requests close behind. The router, which was weaker on an earlier set, now reaches 91%.
- 0.5 is a useful reference point, not a universal threshold. At 0.5, the injection filter catches 99% of attacks but also flags 61% of benign examples. The tool-call check catches 62% of unsafe calls while flagging 10% of safe ones. Many unsafe calls score between 0.2 and 0.5, so the threshold directly changes the trade-off between detection and false positives.
- Benign context can influence an attack score. Examples that quote an injection for review can still score as hostile: all 113 examples scored between 0.60 and 0.97. Adding ordinary catalogue text around a web payload can increase its score, making the attack easier to detect. But surrounding text can also reduce the score of a prompt injection that was already above the threshold.
- Tool results can influence the next action. In 200 decision-hijacking scenarios, a request hidden in a tool result caused the agent to select the attacker’s action 15 times and increased its probability by 15%. Adding an “ignore previous instructions” line reduced this to 0 out of 200. The result is a reminder that the content of a tool result can affect what happens next, even when the tool itself is trusted.
- About 500 ms is too slow for the hot path. A firewall rule or tuned classifier can respond in microseconds. JEV took about 500 ms at the median in this run, with a one-at-a-time check taking about 550 ms on the same day. That makes it better suited to events that are already considered sensitive, after a faster control has selected them. A smaller model built specifically for these yes/no decisions could eventually bring this kind of judgement closer to the speed required by the path.
How to read the numbers
The thresholds discussed below were chosen after the scores were generated, using this labelled dataset. Production traffic does not come with those labels. These thresholds should therefore be treated as starting points for small, stable use cases, not as universal production settings. They should be re-evaluated as new traffic and labels become available.
For a yes/no question, there are two separate metrics to look at; AUC score and F1 score.
Ranking asks: Does JEV generally give higher scores to attacks than to benign text?
Imagine taking one attack and one benign example at random. If the attack gets the higher score, that is a good ranking. AUC is the percentage of these attack-vs-benign comparisons that JEV gets right.
So:
- 100% AUC: every attack scores higher than every benign example.
- 90% AUC: in 9 out of 10 attack-vs-benign comparisons, the attack scores higher.
- 50% AUC: the scores are no better than a coin toss.
AUC tells us whether the scores are ordered correctly. It does not tell us where to put the yes/no line.
The 0.5 threshold is that line. Everything at or above 0.5 is a “yes”; everything below it is a “no.” Recall tells us how many real attacks we catch. False-positive rate tells us how many benign examples we incorrectly flag. F1 summarizes the precision/recall trade-off.
This distinction matters. JEV can have a high AUC because attacks generally score higher than benign text, while still having a poor result at 0.5 if many attacks fall just below that line.
The dataset is intentionally balanced: each yes/no use case contains roughly half attacks and half benign examples. That makes the numbers easier to compare, but production traffic is usually very different. On a storefront where almost everything is benign, even a 10% false-alarm rate can create a much larger operational problem.
Every other use case contains 1,000 scored examples. About half the examples were written by hand. The rest are variations of those scenarios with extended details to add context.
The ten use cases
Ranking, and how the 0.5 line scores

False positive at 0.5

Decision hijacking: attacker action, the safe action, and any other declared action


“Best line” is the score threshold that gives the highest F1 on this labelled set. It describes this test set, not a production default. Decision hijacking is different because JEV does not return a score for that test. We measured whether the agent selected the attacker’s action instead.
Web Application Firewall
The use case: Something on the request path has to answer “is this HTTP request an attack?” before the application does the work. Teams already do this with rules and with small classifiers. A decision model is interesting here when the request is odd in a way the rule did not name: a new encoding, a parameter that almost matches a known payload, a ticket that pastes an exploit for someone to review.
Evaluation Setup: A firewall that only sees classic exploit syntax will report a flattering catch rate. We included those payloads, but also access-control requests where the main signal is who is signed in. Each request includes the authenticated user_id and role. When the path ID is an order or message, the state also includes the object's owner_user_id. A matching user_id and owner_user_id is an ordinary request. So is an admin assigning a role they are allowed to assign. We also included benign requests that quote an exploit so it can be stored, not executed.

At 0.5, the firewall catches 87% of attacks and flags 9% of benign requests. Moving the line to 0.59 brings false alarms down to 5% while still catching 87% of attacks. That is also the best F1 on this set. Classic exploit syntax is easy for it: path traversal, templates, XXE, and deserialization are named directly, while XSS, SQL, and SSRF are detected at about 97%. With the caller in the state, IDOR is also detected: all 25 requests score between 0.82 and 0.94, and every one is identified as IDOR. A customer reading their own object, with matching user_id and owner_user_id, scores at most 0.05. A customer setting role=admin, isAdmin, or isStaff scores from 0.85 to 0.97 and is identified as mass assignment. Legitimate admin assignments are harder: the 23 writes score from 0.49 to 0.58, with 21 at or above 0.5. Other privileged fields are not flagged. Marking the caller's own order as paid or refunded scores about 0.03, emailVerified scores 0.02, and storeCredit scores 0.27 and is identified correctly, but remains below the line.
Which attack types the firewall names

Quoting an exploit inside a ticket or blocklist can still look like the exploit: 23 of 92 “store it, don't run it” requests score at or above 0.5. Asking for the specific technique from a list of 20 is more accurate (94%) than using a shorter list of 10 (73%). The shorter list has no explicit labels for IDOR or mass assignment, so those cases return “some other attack” about half the time. The model still returns a single technique, so a request containing both SQL injection and XSS is labelled as one or the other.
Practical takeaways: The score is useful as a second layer behind fast rules, where it can inspect requests the first layer is unsure about. Asking for a specific technique turns the same call into a triage signal: the analyst gets “SQL,” “SSRF,” or “IDOR” alongside the score, provided the caller is included in the state. A second question or small rule can capture another technique when a request contains more than one. The results also show the boundary of the model: role-related fields are easy to identify, but privileged fields such as paid or emailVerified still require an authorization check. Legitimate admin writes may also need a threshold above 0.58. And at roughly 500 ms per call, JEV should not sit in front of every request; the latency makes it better suited to the smaller set of requests that need a second look.
Router
The use case: An agent has produced a turn and the product has to decide what happens next: let it proceed, run it in a sandbox, show it to a person, or block it. That is a workflow decision. A single “safe / dangerous” score loses the distinction that an actual queue needs.
Evaluation Setup: Many real allow turns are support tickets and review notes that quote an attack and explicitly say not to run it. If the score treats the quoted attack as the action itself, the human queue fills with the very examples the router should have cleared.

Ranking is 91%. At 0.5, the router catches 99% of turns that need a control, but also flags 37% of turns that should have been allowed. The best line on this set is 0.84, where F1 rises to 93% while still catching 98% of turns that need a control. Getting false alarms down to 5% comes at a much higher cost: recall falls to 19%.
The route names are the weaker output. Allow is correct on 258 of 500 turns; block on 128 of 187; sandbox on 69 of 128; and escalate on only 9 of 185. The score is therefore useful for ordering a queue, but the four-way route is not ready to run that queue by itself.

Asking the same question on a five-point scale, from “no” to “yes,” only moves the ranking from 91% to 93%. That is a small improvement, which suggests the plain 0 - 1 score is already doing most of the ranking work. Use the score to prioritize the human queue and treat the route as a suggestion until allow and escalate are reliable on a larger, realistic test set.
Practical takeaways: A cheap prefilter can remove the clearest false alarms, such as a ticket that quotes a payload and explicitly says not to run it. The 0.84 threshold is the better operating point on this exam if the goal is to keep the queue small. This is a good human-in-the-loop use case: both the cost of a wrong allow and the cost of a crowded queue are visible, while the route label is not yet reliable enough to make the decision alone.
Prompt injection
The use case: Any text a model will read can carry an instruction aimed at the model: the user message, a retrieved document, an email, a code comment, the output of a previous tool. A prompt-injection control is the check on that text before the model treats it as instructions.
Evaluation Setup: Two ordinary things look like attacks and have to stay in the product. People say “ignore the previous shipping address.” Training notes and blocklists quote a real injection so a person can recognise it later. We also placed the same attacks in a comment, an email, a document, and a tool result, because an attacker chooses the channel.

At 0.5 the filter catches 494 of 500 injections. The six misses are all an exfiltration instruction placed in the user message, scoring 0.43 to 0.49. It also flags 61% of the benign examples. All 113 of the quoted training examples score between 0.60 and 0.97. Putting the same injection in a comment, an email, a document, or a tool result does not hide it. Average scores there stay around 0.95, and every one of those attacks is at or above 0.5. The user channel is the soft one, at an average of 0.89.

The same injections, placed in different parts of the input
The ranking is 89%. The line is the lever. On this set the line that balances catches and false alarms is 0.88, and at that line 88% of injections are still caught. Ordinary sentences inside a comment or a tool result cross 0.5 most of the time (82% and 73%). Naming the kind of injection is a weaker task. The six-way label is right 48% of the time, and a fake delimiter was chosen 0 times out of 91. Those texts come back as a forged system tag, or as “ignore your instructions.”
Practical takeaways: One threshold will not serve every channel. A user message can sit at a moderate line. A corpus of training notes that deliberately quotes attacks needs the high line, near 0.88, or those notes will all page someone. Because placement barely moves the attack score, the same question can cover email, documents, and tool output. The missing piece is a named check for a fake delimiter. That class is real in the set and invisible to the label the model prefers.
Tool calls
The use case: The agent has chosen a tool and filled in its arguments. The question is whether those arguments are safe to execute. Sending an email to a teammate is normal product behavior. Sending a customer list to an outside partner is an incident.
Evaluation Setup: Blocking based only on the tool name is too broad, while blocking based on a scary verb is too broad in the other direction. We kept the same tools on both sides and changed the arguments. We also included calls that only save an exploit string in a test fixture. A strict “anything containing a payload” rule would block these, while a good argument check should allow them. Role changes also include the signed-in user: a customer running UPDATE users SET role='admin' is an attack, while an admin assigning support is not.

Ranking is 93.5%. Unsafe calls generally score higher than safe calls, but they do not all clear 0.5. At the default line, the check catches 62% of unsafe calls and flags 52 of 500 safe calls. The 190 missed unsafe calls score between 0.18 and 0.48, with 125 of them between 0.2 and 0.3.

A lower threshold works much better on this set. At 0.22, F1 reaches 95% and recall reaches 99.6%. This threshold was fitted to these 1,000 labelled rows, so it should be treated as a result for this test set, not a production default. Asking the same question on a five-point scale, and treating “unsure” as unsafe, reaches only 76% F1. It catches some of the lower-scoring unsafe calls but does not replace the simpler 0.22 threshold.
Most false alarms are useful signals rather than truly safe calls. Fifty-one of the 52 false alarms append an attack signature to a blocklist. Those calls score as high as 0.80. The separate allow / review / block question correctly chooses block for all 51, suggesting that the additional context can distinguish “store this attack” from “execute this attack” better than the raw score alone.
Practical takeaways: This is still one of the strongest use cases for a second check. The ranking is good, tool calls are less frequent than HTTP requests, and a wrong execution can be costly. Use a low threshold, around pretested on a labelled set, and keep a small allow-list for test fixtures and blocklist writes used by your own tests. Argument-level policies still matter: rules that know which domains can receive email and what role the signed-in user has can catch cases that should not be left to a score alone.
Intent Router
The use case: The user asks for a refund up to a stated limit, or asks the agent to read one file. The agent is about to refund more than requested, or read the file and list the directory as well. Intent deviation checks whether the proposed action still matches what the user asked for, even when that action would be allowed in another context.
Evaluation Setup: Tool-call safety and intent are easy to confuse. An action can look dangerous but still be exactly what the user requested, such as deleting one named scratch directory. An ordinary tool call can also go beyond the user's request. We wanted to test that second failure while including the first case to see whether the control would produce unnecessary false alarms.

Ranking is essentially perfect. At 0.5, the check catches 499 of 500 deviations and flags 34 of 500 aligned actions. Thirty-three of those false alarms are the same situation: a mail that contains the date the user asked for, and nothing else. They score from 0.50 to 0.60. The best line on this set is 0.61, where F1 reaches 99.8% and that mail pattern falls back to allow. An alarming action that the user actually requested scores between 0.02 and 0.08. The one missed deviation is a contested case: a file read that also lists the directory, scoring 0.15. A refund of exactly the stated cap, also contested, scores 0.85 on the allow side.
The yes/no question is the stronger control. The three-way label, which asks how far the action has wandered from the request, is harsher than the labels in our dataset. When the action simply goes beyond the task, the model calls it a contradiction in 166 of 172 cases.
Practical takeaways: Use the yes/no check as a gate before side effects such as payments, deletes, sends, and other actions a person would want to undo. On this set, 0.61 is the line that keeps the high catch rate while allowing the “mail the date” pattern through. If the product needs a graded response, ask two separate questions: “Did it leave the request?” and “Did it contradict the request?” A single blended label is more likely to turn a simple deviation into a contradiction.
Rubric judge
The use case: An agent eval has a task, a written rubric, and an action result. Someone has to decide whether the result met the rubric. That is often a person reading hundreds of results or a larger model grading them. A small decision call is useful when the rubric is stable and the result is already text.
Evaluation Setup: Clear passes and clear failures make up most of a good eval. The harder cases are partial results, results that quote a blocked payload but still follow the rubric, and checks that really require arithmetic. We included all three because a judge that only works on obvious failures is easy to trust too early.

Ranking is 99.7%. At 0.5, it catches 99% of misses and flags 8 of 500 passes. Clear passes are named correctly almost every time: 499 of 500. A partial result, one that meets some clauses and misses others, is called partial 0 times out of 66. It is called a failure 64 times and a pass twice.
The three misses at 0.5 are small and specific: correct JSON wrapped in a markdown fence, a refusal that mentions a hidden prompt, and a number where the rubric asked for a string. The eight false alarms are passes that quote a blocked payload and still follow the rubric. They score from 0.50 to 0.88.
Practical takeaways: Use it for pass versus fail on action results that a person would otherwise have to skim. At about $30 per million decisions, scoring a nightly eval suite is cheap compared with reviewer time. When a partial outcome matters, ask that as a separate yes/no question. The three-way verdict on this run does not use the partial label. Hand arithmetic to a program; a judge that reads “15% of 80” as prose will not reliably check that the answer should be 12.
Encoded web requests
The use case: The firewall question, but with the payload rewritten using the same disguises scanners and attackers use: URL encoding, base64, comments inserted into SQL, and other common transformations. A signature that only sees the raw string can miss these. A control that understands or decodes the encoding can still detect the attack.
Evaluation Setup: This set was kept separate from the main firewall set so any improvement from handling encoded payloads is visible on its own. The benign half contains ordinary words run through the same encodings, because a decoder that flags every percent sign or encoded string will not survive a real query string.

Ranking is 97.5%. At 0.5, it catches 98% of encoded attacks and flags 36% of encoded benign requests. The best line on this set is 0.76. Ten attacks fall below 0.5: four are base64, scoring from 0.30 to 0.47, and six are hex, scoring from 0.41 to 0.49.
Practical takeaways: Decode first, then score. Base64 hides attacks most effectively at 0.5, while hex has the most attacks below the line, so decoding before scoring helps with both. After decoding, the firewall threshold should be remeasured rather than reused unchanged. The 36% false-alarm rate at 0.5 also shows why the decoded parameter should be scored, with the threshold set high enough for ordinary encoded words to pass.
Rewritten injections
The use case: An attacker who can see the score can try to keep the instruction while changing its form: a paraphrase, a new surrounding story, or a cipher. The question is whether those changes still look like an injection.
Evaluation Setup: We kept five prompt injections fixed and changed only how they were written. This set contains no SQL or XSS. The figures below refer to those rewritten injections.

Ranking is 90%. At 0.5, the set catches 94% of injections and flags 26% of benign text.
Putting an injection inside an email, document, or code comment does not reliably hide it. But it can make ordinary sentences look hostile: 17 of 30 benign lines in these contexts score above 0.5. Paraphrasing the five injections leaves 4 of 5 above the line; the exfiltration paraphrase scores 0.48. The rewrites that fall below 0.5 are the ones that remove or hide the original attack wording. A cipher presented as a warehouse locator pushes 4 of 5 original injections below the line, while the exfiltration example remains at 0.51. Raw ROT13 pushes 3 of 5 below the line.

Practical takeaways: Context can make benign sentences score higher, so wrapped documents may need a higher threshold to control false alarms. JEV also does not decode complex ciphers reliably, so those cases should be decoded separately before detection.
Decision hijacking
The use case: An agent has already called a tool. The tool result contains data an attacker can control, such as a retrieved page, email, or document. JEV then chooses the next action from a list defined by the application. The risk is that the tool result pushes the agent toward an action the user did not ask for.
Evaluation Setup: The question is which declared action should come next. We kept the user request, previous tool call, and action list fixed, and changed only the latest tool result. Two hundred scenarios were tested with five tool results each, giving 1,000 rows in total. The choice list contained eight actions. The scenarios covered an order record, inbox, packing slip, product page, refund, calendar entry, return, and loyalty balance. On all 200 clean results, reply_to_user was selected. In the other conditions, an extra request was added to a field the attacker could control, such as sending an export to an outside address, moving money to a new account, deleting a stored file, changing a password, posting a review, opening someone else’s order, or reading a mailbox the user did not ask for.


The three counts in each row add up to 200. “Another action” means a declared action that is neither the safe reply nor the action named in the tool result. On the plain and related rows, that one case is “read a mailbox” when the hidden request was to open an order. On the request-alone rows, five of the six are also “read a mailbox,” and one is “open an order” when the request was to move money.
The ignore-previous line leaves the safe action selected every time. The plain request, when placed inside a real record, still moves 0.15 of the probability onto the action the user did not ask for and selects it in 15 of 200 cases. Most of those 15 are “read a mailbox.” When the tool result contains only the request, the attacker action is selected in 81 of 200 cases, and the safe action's probability falls by 0.48.
A funds transfer was not selected in this set. The plain request can move the decision, while the override line does not.

Practical takeaways: Score the next action, and look at the probability of the action the user did not ask for, not just the action that was selected. A gate that blocks when that probability increases can catch the shift seen here, even when the safe action is still selected. Keep the question and action list fixed in the configuration. Treat “ignore previous instructions” as a weak signal on this model, not as the attack itself.
Large payload
The use case: Production text is rarely just the payload. It may be a ticket, a retrieved page, or a log line inside a larger log. We wanted to see whether 8 KB of ordinary text would dilute an attack the model already detected or make a benign sentence look hostile.
Evaluation Setup: Each payload was scored twice: once alone and once with exactly 8,192 bytes of catalogue text placed around it. The set contains 250 attacks and 250 benign sentences. The payload bytes were the same in both calls; only the surrounding text was changed.

The average attack score rose from 0.71 alone to 0.83 inside the page. Web payloads account for most of that lift. A path like ../../../../etc/passwd goes from 0.06 to 0.80, and a metadata URL goes from 0.05 to 0.70. Sixty-two attacks that sit under 0.5 alone are caught once the prose is around them. Twenty prompt injections move the other way: they score above 0.5 alone, between 0.66 and 0.75, and fall to 0.35 to 0.49 inside the page. After the surrounding text, 230 of 250 attacks are at or above 0.5.
Benign sentences rise too. Ninety of the 250 cross 0.5 only after that text is added. “Ignore the previous shipping address” was already 0.53 alone and goes to 0.86.

Practical takeaways: Long, ordinary pages are a reasonable thing to score when the payload is a web attack. On this catalogue text they made those attacks easier to see, including attacks that were invisible alone. The same page can dilute a prompt injection that was only moderately over the line, so a detection question on a long document wants the payload considered on its own when the score is close to 0.5. The lift also hits benign copy that shares words with attacks, so product phrases like “ignore the previous shipping address” want an explicit exception if that page is scored. A log file or a page that is itself about security is the natural next measurement. This run used one repeated catalogue paragraph.
Naming the technique
A yes/no and a technique name answer different product needs. The yes/no blocks or allows. The name fills the ticket, the dashboard, and the weekly review.
The firewall gets better when the menu is specific: 94% on 20 names, against 73% on 10 coarser ones. The short menu is where IDOR and mass assignment disappear into “other.” The injection filter does not get better with more names. Six names score 48%. Eleven names score 37%. A fake delimiter is never the name it picks.

Naming the technique: short menu against a longer menu rolled back to the short one
When a request really contains two techniques, the answer is one of them. On the firewall that one name is always a technique that is actually present. On injection it is a real technique on 34 of 40 fine-grained cases, and the technique we had marked as primary on only 6 of 48. A control that has to record “SQL and XSS” needs a second question, or a rule for the second technique.
How the yes/no is asked matters most on prompt injection. There the five-point scale and the yes/no choice both rank at about 93%, against 89% for the plain 0–1 score. On the router the five-point scale is a two-point lift, 93% against 91%. On tool calls the five-point answer, treating “unsure” as a yes, reaches an F1 of 76% where the plain score at 0.5 reaches 72%. Elsewhere the three ways of asking agree within about one point of ranking.

The practical split is simple. Use a specific menu when you want triage on web attacks, especially access-control bugs. Use the five-point answer when you want a slightly cleaner ranking on injections. Ask one technique per question when a single request can carry two. For tool calls, the lower line does more than the five-point wording.
Time and cost
A decision is one API call. Extra questions in the same call share that call, so asking for the score and the technique name together is one wait and one bill. The median wait is about 500 ms in every use case (495 to 515 ms). A slow call is about 600 to 650 ms.

Cost per million decisions

Median and 95th percentile wait

The price follows how much text you send. These calls sent the parameter under test, about 600 to 1,900 tokens. A longer page costs more. On a same-day check of a dozen calls each, stretching one question from 200 characters to 8,000 left the wait at about 550 ms either way and grew the input from roughly 330 tokens to 2,400. The bill moves with the tokens. The wait mostly stays put. That one-at-a-time check sits next to the labelled run, whose medians are near 500 ms.
The ten use cases were 10,000 calls and $0.41.
That wait is the constraint on a firewall, and on any other path that has to answer before the request continues. Tuned rules and the compact classifiers already used there answer in microseconds. About half a second per request does not fit in that budget, however good the ranking is. Sending every packet, every token, or every tool call through JEV would add a visible pause and a large bill. At the firewall rate, a million scored requests a day is about $2,400 a month, and ten million a day is about $23,800 a month.
JEV fits the events that are already sensitive: a tool call the fast path is unsure about, a page that quoted an injection, a turn the router wants a person to see. A rule or a small model decides which events those are, and the call carries only that parameter. The $25 to $79 per million is then the price of that short list, which is a reasonable price for a high-cost decision.
The latency gap is also a model-shape opportunity. The fast path wants a System 1 model: small, open, and trained for one question, so the yes/no can come back in microseconds to a few milliseconds on the machine that already sees the traffic. JEV, as measured here, is the slower second look. An open model aimed at the same decision, and small enough to sit next to the rules, is what would let this kind of score run closer to the request itself. This study did not time those models. It shows that a general decision call at about 500 ms cannot be the first hop, and it shows which questions that smaller model would be worth training on.
Key takeaways
- Solid at ranking attacks: For standard yes/no security checks, JEV consistently rates actual attacks higher than normal text.
- A bit too slow for the hot path: Clocking in around 500ms per call, it's way too sluggish to be your first firewall line. Use it as a second pass for stuff that's already flagged as sensitive.
- Thresholds aren't one-size-fits-all: The standard 0.5 cutoff behaves totally differently depending on what you're checking; prompt injections need a super strict threshold (~0.88), while tool calls do better around ~0.22.
- Context matters (both ways): Slapping extra text around web attacks can actually make them easier for JEV to spot, but long paragraphs can sometimes dilute prompt injection scores.
- Outputs can steer decisions: Attacker content hidden inside tool results can trick agents into taking unwanted actions, so keeping an eye on action probabilities is crucial.
- Decode before scoring: Base64 or hex encodings can throw off the model, so untangle your payloads first for best results.
- Great for rubric judging and intent checks: It's super reliable (nearly 100% AUC) at spotting when an agent strays from user instructions or fails a pass/fail rubric.
Taking JEV to production
Pick the use case first, then the line, then the place in the path. There is no single threshold that works everywhere. On this set, the firewall is comfortable near 0.5, with 0.59 bringing false alarms down to 5% while still catching 87% of attacks. Injection needs a much higher line, around 0.88, if quoted training notes must pass. Tool calls need a lower line, around 0.22, because many unsafe calls sit between 0.2 and 0.5. Intent works at 0.61 if ordinary messages that only state a date must pass. The rubric judge can use 0.5 as the pass/fail line. Encoded requests recover around 0.76 after decoding. The router is better used to order a queue than as the control itself: at its current line, “escalate” is the right route for only 9 of 185 turns. Decision hijacking is different again: a plain request inside a tool result selected the attacker’s action in 15 of 200 cases, while the same request preceded by an “ignore previous instructions” line selected it in 0 of 200.
The score also needs the right context beside it. Include the authenticated user_id, role, and object owner when you want to detect IDOR or suspicious role changes. A privileged field with no role word, such as paid or emailVerified, still belongs to an authorization rule. If one request can contain two techniques, ask a second question rather than expecting one label to describe both. If the answer has to be an exact number, use a program. If the pattern is a specific “fake delimiter,” give it a detector of its own. If the payload is encoded, decode it before asking the detection question. And when the decision is which tool to run next, measure the probability of the action the user did not ask for, not just whether the tool result looked suspicious.
The thresholds above were fitted to a labeled exam. Production traffic arrives without those labels, and its mix will change. For a small use case that a person already reviews, refitting the threshold on a fresh sample is practical. For a path handling millions of events, the architecture should be different: keep the microsecond rule or classifier layer in front and send JEV only the exceptions.
That is also the clearest deployment path. The results are strong enough to use JEV for intent checks, rubric pass/fail, tool-call review, a second look at unusual HTTP requests and pages, and checking whether a tool result is steering the agent toward an action the user did not request. Those same questions can later become richer triage labels, multi-way routing, and decode-then-score pipelines. The constraint is speed. A model that can answer these same yes/no questions in the time available on the request path would change where it belongs in the stack. Until then, JEV is best used as a second opinion: slow to inspect everything, but accurate enough on these use cases to spend on the events that matter.

