J.

Jev Access request purpose Code Example

Match a requested permission to its stated business task.

Read all customer records

Request Read all customer records
Purpose Update one marketing landing page
Role contractor

Is the requested scope justified?

0% Request narrower scope.
Request narrower scope 86%
Justified 10%
Need context 4%

Ask for what is needed before choosing request narrower scope.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "request": "Read all customer records",
  "purpose": "Update one marketing landing page",
  "role": "contractor"
};

const decision = await evaluateDecision({
  state,
  question: "Is the requested scope justified?",
  options: ["Request narrower scope","Justified","Need context"],
});

// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Request narrower scope"
    && decision.probability >= 0.85) {
  requestScopeReduction(decision);
} else {
  queueForReview(decision);
}

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