AWS Builder Center
JEV on AWS: Adding a Decision Layer to AI Agents

JEV on AWS: Adding a Decision Layer to AI Agents

How to combine JEV's typed decisions with Amazon Bedrock and AgentCore to build agents that don't just act - they evaluate before they act.

AI agents are getting very good at planning.
They can interpret a request, call tools, retrieve information, generate a plan, and continue working through multiple steps.
But production systems eventually encounter a different problem:
Who decides whether the agent's proposed next action should actually happen?
Consider a simple agent workflow:
User
|
v
Agent
|
+----> LLM
|
+----> Tool
|
+----> Database
|
v
Action

This architecture works surprisingly well for prototypes.
But once the action becomes important — deleting records, issuing a refund, changing infrastructure, escalating a security incident, selecting an expensive model, or sending a customer communication — simply asking the same generative model to make the decision can become difficult to reason about and govern.
This is where JEV presents an interesting architectural idea.
Instead of asking one general-purpose model to generate text, plan actions, evaluate risk, and decide what happens next, JEV is designed around a narrower interface:
Give it state. Ask typed questions. Receive structured decisions.
The application then decides what to do with those results.
That creates an architectural separation that is particularly interesting when combined with AWS.



The mental model

A useful way to think about a modern agent system is:
Layer
Primary responsibility
Foundation model
Reasoning and generation
Agent
Planning and orchestration
RAG / Knowledge Base
Retrieving relevant information
JEV
Bounded decisions and decision signals
Policy layer
Deterministic business rules
AgentCore Runtime
Running the agent
AgentCore Gateway
Connecting agents to tools and services
AgentCore Memory
Maintaining agent context
AgentCore Identity
Managing agent identity and credentials
Tools / APIs
Performing actions
Human
Handling decisions requiring approval
The important distinction is that these layers solve different problems.
JEV does not replace the agent.
AgentCore does not replace the model.
RAG does not replace decision logic.
And a high-confidence model response does not automatically mean an action should be executed.



1.From "generate" to "decide"

Most generative AI applications are built around an input/output relationship:
Input
|
v
LLM
|
v
Generated output

The output is usually intended for a human.
But software often needs something different.
It needs an answer such as:
Which route?
→ billing

How severe?
→ high

Does this need human review?
→ yes

Those are not really conversations.
They are bounded software decisions.
JEV's current developer documentation describes its interface around three concepts:
STATE
+
TYPED QUESTIONS
|
v
STRUCTURED DECISIONS

The state can be text, a JSON object, or an array of text. Questions can be defined as different decision types, including Choice, Score, and Noul. Multiple questions can operate on the same state.
That distinction is the foundation of the architecture discussed in this article.



2. JEV is not another agent framework

This distinction is important.
An agent framework generally helps you build the workflow:
Reason
|
v
Choose tool
|
v
Call tool
|
v
Observe result
|
v
Reason again

JEV addresses a narrower question inside that workflow:
Given the current state:

Should I proceed?
Which route applies?
How risky is this?
Does this require review?
Which option should be selected?

That makes the two complementary rather than interchangeable.
Technology
Primary question
LLM
"What should I generate or reason about?"
Agent framework
"How do I orchestrate this workflow?"
RAG
"What information should I retrieve?"
JEV
"What bounded decision should be made from this state?"
Policy engine
"Is this action permitted?"
Tool
"How do I execute the action?"
A production architecture can therefore use all of them.



3. The three building blocks of a JEV decision

The simplest way to understand the developer experience is to think in three pieces.
+----------------+
| STATE |
| |
| User request |
| Context |
| Evidence |
| Proposed action|
+-------+--------+
|
v
+----------------+
| QUESTIONS |
| |
| Choice |
| Score |
| Noul |
+-------+--------+
|
v
+----------------+
| RESULTS |
| |
| Decision |
| Probability |
| Confidence |
+----------------+

The official JEV API documentation currently describes a request using  state ,  model , and a  questions  map, with the question keys reused in the returned answers.
This is useful because the application can define the decision contract before deciding how that result will be used.



4. Choice, Score and Noul

JEV provides different types of bounded questions.

Choice

Use  Choice  when the application needs one option from a known set.
For example:
Which team should handle this ticket?

billing
technical
sales
review


Score

Use  Score  when the application needs an ordered assessment.
For example:
How severe is this incident?

1 → informational
2 → minor
3 → moderate
4 → major
5 → critical


Noul

Use  Noul  when the application needs a focused yes/no probability.
For example:
Does this action require human approval?

This gives us a useful design pattern:
Decision
Question type
Example
Classification
Choice
Which team owns this?
Routing
Choice
Which workflow should execute?
Severity
Score
How severe is this incident?
Risk
Score
How risky is this action?
Review gate
Noul
Does this require human approval?
Policy signal
Noul / Choice
Does this match the approved condition?
The key is to keep questions atomic.
Instead of:
"Classify this request, determine its severity, decide whether to refund the customer, and select the correct tool."
create separate decisions:
department
severity
needs_review

That makes the output easier to inspect, test, monitor, and change.



5. The architecture changes

Now place JEV inside an agent.
Without a decision layer:
USER
|
v
+---------+
| AGENT |
+----+----+
|
v
LLM
|
v
TOOL
|
v
ACTION

With a bounded decision layer:
USER
|
v
+---------+
| AGENT |
+----+----+
|
Proposed action
|
v
+---------+
| JEV |
+----+----+
|
+-----------+-----------+
| | |
v v v
APPROVE REVIEW REJECT
|
v
POLICY
|
v
TOOL
|
v
ACTION

This is an important architectural distinction:
JEV does not have to own the final action.
The application still owns the final control flow.



6. Why AWS is interesting here

This becomes more useful when mapped onto Amazon Bedrock AgentCore.
AWS currently describes AgentCore as a modular platform for building, deploying, and operating agents. Its services include Runtime, Memory, Gateway, Identity and Evaluations, and the services can be used together or independently.
That means we can construct an architecture like this:
USER
|
v
APPLICATION
|
v
AGENTCORE RUNTIME
|
v
AGENT
|
+-------------+-------------+
| |
v v
FOUNDATION KNOWLEDGE
MODEL / RAG
| |
+-------------+-------------+
|
v
JEV DECISION
|
+------+------+
| |
APPROVE REVIEW
|
v
POLICY
|
v
AGENTCORE GATEWAY
|
+---------+---------+
| | |
v v v
API Lambda MCP Tool

The architecture separates reasoning, decision-making, policy and execution.



7. Mapping JEV into the AWS ecosystem

A practical reference architecture could map the responsibilities like this:
Responsibility
AWS / external building block
Agent execution
Amazon Bedrock AgentCore Runtime
Foundation-model inference
Amazon Bedrock or another supported model provider
Agent memory
Amazon Bedrock AgentCore Memory
Tool access
Amazon Bedrock AgentCore Gateway
Agent identity
Amazon Bedrock AgentCore Identity
Decision layer
JEV
Deterministic business policy
Application code / Lambda / policy service
Data retrieval
Amazon Bedrock Knowledge Bases / databases / search systems
Observability
AgentCore Observability / Amazon CloudWatch
Evaluation
Amazon Bedrock AgentCore Evaluations
Human approval
Application UI / workflow / Step Functions
Action execution
APIs / Lambda / internal services
This is not an AWS-prescribed JEV architecture.
It is a composable reference architecture: use AWS for the infrastructure and agent lifecycle, and use JEV where a bounded decision is useful.
AgentCore's modular design makes this kind of composition possible because its services can operate independently rather than requiring every workload to adopt the complete platform.



8. A concrete example: an AI support agent

Let's make this practical.
Suppose a customer says:
"I was charged twice for my subscription. Please refund one of the payments."
The agent might retrieve:
{
"customer_tier": "business",
"invoice_status": "paid",
"duplicate_charge_detected": true,
"refund_policy": "Refund duplicate charges after verification",
"proposed_action": "issue_refund"
}

The agent now has enough context to propose an action.
But instead of immediately executing the refund, we introduce a decision step.
Customer Request
|
v
Agent
|
+----> Retrieve billing information
|
+----> Understand refund policy
|
v
Proposed action:
"issue_refund"
|
v
JEV
|
+----> Is refund appropriate?
|
+----> Does this require review?
|
+----> How risky is the action?
|
v
Policy Gate
|
+---+---+
| |
APPROVE REVIEW
| |
v v
Refund Human
Review

The generative model handles the open-ended interpretation.
JEV handles bounded judgments.
Application code handles the authorization and final action.



9. Calling JEV from an AWS application

The current JEV API documentation exposes a REST endpoint and uses a bearer API key. The documented request contains a model, state and typed questions.
A simplified Python service can therefore look like this:
import os
import requests

JEV_API_KEY = os.environ["JEV_API_KEY"]
JEV_ENDPOINT = "https://thejevai.com/v1/systemone"

def evaluate_action(state: dict) -> dict:
payload = {
"model": "jev-latest",
"state": state,
"questions": {
"route": {
"type": "choice",
"instructions": "Which execution path is appropriate?",
"criteria": {
"proceed": "The action is allowed and can run automatically.",
"confirm": "The user or an operator should confirm the action.",
"reject": "The action should not be executed."
}
},
"needs_human": {
"type": "noul",
"instructions": "Does this proposed action require human approval?"
}
}
}

response = requests.post(
JEV_ENDPOINT,
headers={
"Authorization": f"Bearer {JEV_API_KEY}",
"Content-Type": "application/json"
},
json=payload,
timeout=10
)

response.raise_for_status()
return response.json()

The important part is not the HTTP request itself.
It is the boundary it creates:
Agent state
|
v
Decision API
|
v
Structured result
|
v
Application policy




10. Never let the model become the authorization system

This is one of the most important production principles in this architecture.
Suppose JEV returns:
{
"route": "proceed",
"confidence": 0.94
}

That does not mean:
if confidence > 0.9:
delete_database()

A model decision should not replace deterministic authorization.
Instead:
JEV
|
v
Decision signal
|
v
Application policy
|
+----------+----------+
| |
Allowed Denied
| |
v v
Execute Reject

For example:
def authorize_action(
decision: dict,
user_is_authorized: bool,
action_is_allowed: bool
) -> str:

if not user_is_authorized:
return "REJECT"

if not action_is_allowed:
return "REJECT"

if decision.get("route") != "proceed":
return "REVIEW"

return "APPROVE"

The model provides a signal.
The application owns the authority.
That distinction becomes increasingly important as agents gain access to real tools.



11. Connecting the decision layer to AgentCore Gateway

AgentCore Gateway provides a standardized entry point for agents to interact with tools, other agents and models. AWS documentation currently describes MCP, HTTP and inference targets, including Runtime agents as HTTP targets.
This allows a clean architecture:
AGENT
|
v
JEV DECISION
|
v
POLICY CHECK
|
v
AGENTCORE GATEWAY
|
+-------------+-------------+
| | |
v v v
Lambda REST API MCP
| | |
+-------------+-------------+
|
v
RESULT

The advantage is separation.
JEV determines whether a particular bounded condition is satisfied.
Gateway controls how the agent reaches tools.
The application still determines what the agent is actually authorized to do.
AgentCore Gateway also supports authorization and observability features, making it useful as a governed access point for agent traffic.



12. Where AgentCore Identity fits

Once an agent can call external systems, identity becomes part of the architecture.
AgentCore Identity is designed for authentication, authorization and credential management for agent applications and automated workloads. AWS documents workload identities that can provide a stable identity for agents across deployment environments and authentication schemes.
The resulting flow can look like:
USER
|
v
AGENT
|
v
JEV
|
v
POLICY CHECK
|
v
AGENT IDENTITY
|
v
AGENTCORE GATEWAY
|
v
AUTHORIZED TOOL

This is a much stronger production boundary than:
LLM
|
+----> random API key
|
+----> execute everything

The decision layer, identity layer and tool layer should remain separate.



13. What about RAG?

JEV does not replace RAG.
In fact, they can work together naturally.
RAG answers:
What information do I need?
JEV answers:
Given the relevant state, what bounded decision should the application make?
Consider:
USER
|
v
AGENT
/ \
/ \
v v
RAG TOOLS
|
v
Evidence
|
+------+
|
v
JEV
|
+------+------+
| |
APPROVE REVIEW
|
v
TOOL
|
v
ACTION

For example, a policy document can be retrieved through a knowledge system, incorporated into the state, and then evaluated through a bounded decision.
The architecture therefore becomes:
Retrieval
↓
Evidence
↓
Decision
↓
Policy
↓
Action

This is much easier to reason about than asking a single LLM to retrieve evidence, interpret policy, decide risk, authorize the action and execute the tool.



14. Multiple decisions from one state

One of the more interesting aspects of JEV's interface is that multiple typed questions can operate over the same state.
For our support agent:
SAME STATE
|
+-------------+-------------+
| | |
v v v
ROUTE SEVERITY HUMAN REVIEW
Choice Score Noul
| | |
+-------------+-------------+
|
v
APPLICATION POLICY

Conceptually:
{
"questions": {
"route": "...",
"severity": "...",
"needs_human": "..."
}
}

This is preferable to creating a long chain:
LLM → classify
↓
LLM → score
↓
LLM → decide review
↓
LLM → select tool

Every additional model call adds latency, cost and another place where behavior can drift.
When several decisions share exactly the same state, evaluating them together can make the decision surface easier to inspect.



15. JEV + AgentCore + RAG: the complete architecture

Putting the pieces together:
USER
|
v
+-------------+
| APPLICATION |
+------+------+
|
v
+-----------------------+
| AGENTCORE RUNTIME |
| |
| AI AGENT |
+----------+------------+
|
+--------------+--------------+
| |
v v
FOUNDATION MODEL RAG
| |
| Evidence
| |
+--------------+--------------+
|
v
+-------------+
| JEV |
| |
| Choice |
| Score |
| Noul |
+------+------+
|
v
APPLICATION POLICY
|
+-------+-------+
| |
APPROVE REVIEW
| |
v v
AGENTCORE GATEWAY HUMAN
|
+--------+--------+
| | |
v v v
Lambda REST API MCP
|
v
ACTION

Around this architecture, other AgentCore capabilities can provide persistent memory, identity and evaluation/observability capabilities.



16. JEV is not the same thing as AgentCore Evaluations

This distinction is especially important for AWS developers.
At first glance, both sound like "evaluation."
They are not necessarily solving the same problem.
AgentCore Evaluations is designed to measure agent behavior and performance. AWS currently supports built-in, third-party and custom evaluators, including code-based evaluators and LLM-as-a-judge approaches.
Think about the difference this way:
Problem
Suitable layer
Did the agent complete the task?
AgentCore Evaluations
Was the response correct?
AgentCore Evaluations
Did the agent use the correct tool?
AgentCore Evaluations
Which workflow should execute?
JEV
Does this action require review?
JEV
Which category does this request belong to?
JEV
Is this business action authorized?
Application policy
Actually execute the action
Tool / API
AgentCore Evaluations can also perform online, on-demand and batch evaluations of agent behavior.
So the architecture can contain both:
AGENT
|
+--------+--------+
| |
v v
JEV AgentCore
Decision Evaluation
| |
v v
"What should "How well did
happen?" it perform?"

That is a useful separation.



17. Where JEV should not be used

A decision layer should not automatically be inserted into every AI request.
For example:
Task
Additional decision layer
Summarizing a document
Usually unnecessary
Generating a draft email
Usually unnecessary
Translating text
Usually unnecessary
Extracting structured fields
Depends on requirements
Routing support tickets
Useful
Selecting a workflow
Useful
Risk classification
Useful
Human-review gating
Useful
High-impact automated actions
Potentially useful, with deterministic controls
Authorization
Do not delegate authority to the model
The goal is not to create another AI layer everywhere.
The goal is to introduce a small, explicit decision boundary where the architecture actually needs one.



18. A practical AWS developer workflow

The most useful way to adopt this pattern is incrementally.

Step 1 — Build the agent first

Start with:
User
↓
Agent
↓
Tool
↓
Response

Do not introduce unnecessary architecture before you have a real workflow.

Step 2 — Identify one decision

Find a recurring question such as:
Should this be escalated?

or:
Which workflow should handle this?


Step 3 — Define the state

Create the smallest useful representation:
{
"request": "...",
"user_tier": "...",
"current_state": "...",
"proposed_action": "...",
"relevant_policy": "..."
}


Step 4 — Define the question

For example:
Does this action require human approval?


Step 5 — Add JEV

Agent
|
v
JEV
|
v
Structured decision


Step 6 — Add deterministic policy

JEV result
|
v
Application policy
|
+--+--+
| |
ALLOW REVIEW


Step 7 — Connect tools through Gateway

Once the policy boundary is stable, connect your approved actions through AgentCore Gateway.

Step 8 — Add identity

Give the agent the minimum permissions required for its tools.

Step 9 — Add evaluation

Measure whether the overall agent actually behaves correctly.
This creates a much more manageable path from prototype to production.



19. Production considerations

The interesting part of this architecture begins after the first successful API call.
A production implementation should treat the decision layer as a real software dependency.

Keep API credentials server-side

Do not put the JEV API key in browser JavaScript.
Use a server-side secret mechanism such as environment variables during development and an appropriate secrets-management solution in production.



Validate every response

A structured response is still an external model response.
Your application should validate:
HTTP status
↓
JSON structure
↓
Expected question IDs
↓
Allowed choices / score range
↓
Probability values
↓
Business policy
↓
Action

Never assume:
response["route"] == "proceed"

is sufficient authorization.



Treat uncertainty as a state

Do not reduce everything to:
TRUE
FALSE

A better workflow is:
Decision
|
+--------+--------+
| | |
CLEAR UNCERTAIN FAILED
| | |
v v v
ACTION REVIEW FALLBACK

An unavailable model is not the same as a negative decision.
A low-confidence decision is not necessarily the same as a rejection.
Those distinctions should appear in your application logic and monitoring.



20. Observability should cover the whole decision chain

A useful production trace should make it possible to answer:
What did the user ask?
↓
What did the agent infer?
↓
What evidence was retrieved?
↓
What decision did JEV make?
↓
What probability / confidence was returned?
↓
What deterministic policy was applied?
↓
Which tool was called?
↓
What happened afterward?

This is much more valuable than logging only:
Agent completed successfully.

For an AI agent, the path to the action is part of the result.



21. Version the decision contract

One of the easiest mistakes is changing the question without realizing that you changed the application behavior.
Suppose version 1 asks:
Does this require review?

and version 2 changes it to:
Does this require mandatory human approval before execution?

Those are not necessarily equivalent.
Treat questions like API contracts.
For example:
decision/
├── v1/
│ ├── route
│ └── needs_review
│
└── v2/
├── route
├── risk
└── needs_human

This makes evaluation and rollback much easier.



22. A useful reference architecture for a production project

If I were designing a new AWS agent around this pattern, I would keep the responsibilities explicit:
+-------------------+
| USER |
+---------+---------+
|
v
+-------------------+
| APPLICATION |
+---------+---------+
|
v
+----------------------------+
| AGENTCORE RUNTIME |
| |
| AGENT |
+-------------+--------------+
|
+-------------+-------------+
| |
v v
+-------------+ +-------------+
| BEDROCK | | RAG |
| MODEL | | / DATA |
+------+------+ +------+------+
| |
+-------------+-------------+
|
v
+-------------------+
| JEV |
| |
| * Choice |
| * Score |
| * Noul |
+---------+---------+
|
v
+-------------------+
| APPLICATION |
| POLICY |
+---------+---------+
|
+---------+---------+
| |
v v
+---------+ +----------+
| APPROVE | | REVIEW |
+----+----+ +----------+
|
v
+-----------------+
| AGENTCORE |
| GATEWAY |
+--------+--------+
|
+-----------+-----------+
| | |
v v v
+--------+ +--------+ +--------+
| Lambda | | REST | | MCP |
+----+---+ +----+---+ +----+---+
| | |
+-----------+-----------+
|
v
+---------+
| ACTION |
+---------+
Around this core path:
AgentCore Memory
|
+----> Context

AgentCore Identity
|
+----> Credentials / Access

AgentCore Evaluations
|
+----> Quality / Behavior

CloudWatch / Observability
|
+----> Telemetry / Debugging

The result is not a single "AI system."
It is a collection of specialized boundaries.



23. The bigger architectural idea

There is a broader engineering lesson here.
Early AI applications often looked like:
PROMPT
↓
LLM
↓
ANSWER

Agentic systems evolved that into:
PROMPT
↓
AGENT
↓
MODEL
↓
TOOLS
↓
RESULT

Production systems are moving toward something more structured:
CONTEXT
|
v
REASON
|
v
DECIDE
|
v
AUTHORIZE
|
v
EXECUTE
|
v
OBSERVE
|
v
EVALUATE

Each stage has a different responsibility.
That separation is important because generation, decision, authorization and execution are not the same problem.
JEV is interesting in this architecture because it focuses specifically on the decision boundary.
AWS, meanwhile, provides infrastructure for the surrounding agent lifecycle — execution through AgentCore Runtime, tools through Gateway, identity through AgentCore Identity, memory through AgentCore Memory, and agent evaluation through AgentCore Evaluations.



24. Seven projects you could build with this architecture

The architecture becomes much easier to understand when applied to real projects.
Project
Agent
JEV decision
AWS components
1. Support Triage Agent
Understands customer issue
Team + urgency + review
Bedrock + AgentCore + JEV
2. Finance Approval Agent
Analyzes transaction
Risk + approval requirement
Bedrock + JEV + Lambda
3. Security Remediation Agent
Investigates alert
Severity + remediation permission
AgentCore + JEV + Gateway
4. Research Agent
Retrieves papers
Evidence quality + relevance
Bedrock + Knowledge Base + JEV
5. Customer Escalation Agent
Handles support
Escalation decision
AgentCore + JEV
6. Model Router
Receives AI task
Which model should handle it?
Bedrock + JEV
7. Tool-Call Safety Gate
Proposes tool action
Risk + human approval
AgentCore Gateway + JEV
The common architecture is:
Agent
↓
Decision
↓
Policy
↓
Action

Only the state, questions and tools change.



25. The developer experience I would aim for

A good developer experience should make the decision boundary obvious in code.
Ideally, the application should read almost like this:
state = build_agent_state(
user_request=request,
evidence=evidence,
proposed_action=action
)

decision = evaluate_with_jev(state)

if decision.needs_human:
return send_to_review(decision)

if not policy.allows(
user=user,
action=action,
decision=decision
):
return reject_action()

return execute_tool(action)

Notice what is missing.
There is no:
if llm_says_yes:
do_everything()

Instead:
AI judgment
+
deterministic policy
+
authorized tool
=
controlled execution

That is the architecture worth aiming for.



Final takeaway

AI agents are becoming better at reasoning, planning and using tools.
That makes the next architectural question increasingly important:
How do we separate reasoning from decisions and decisions from execution?
JEV provides one way to introduce that separation by treating bounded decisions as explicit, structured outputs rather than burying every decision inside a general-purpose generation call. Its current API is built around state and typed questions, with structured results that application code can use for routing, scoring and review workflows.
AWS provides the surrounding infrastructure needed to turn that concept into an actual agent system.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article