J.

Jev Flaky test triage Code Example

Separate intermittent infrastructure failures from regressions.

timeout once in 40 runs

Failures timeout once in 40 runs
Retry passed
Code Changed No

Which investigation path fits?

0% Flaky test review.
Flaky test review 78%
Regression review 15%
Environment outage 7%

Send it to flaky test review.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "failures": "timeout once in 40 runs",
  "retry": "passed",
  "code_changed": false
};

const decision = await evaluateDecision({
  state,
  question: "Which investigation path fits?",
  options: ["Flaky test review","Regression review","Environment outage"],
});

// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Flaky test review"
    && decision.probability >= 0.85) {
  labelTestFailure(decision);
} else {
  queueForReview(decision);
}

This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.