The first generation of AI applications was relatively easy to observe.
A user entered a prompt. A model returned a response. Teams could inspect the input, output, latency, and token usage.
Modern agents work differently.
An agent may interpret a request, select several tools, search external systems, delegate work to another agent, update files, retry a failed action, and continue working for an extended period before producing the final result.
That changes the engineering requirements behind AI Software Application Development. Production teams increasingly need traces, evaluations, permission controls, and human approval points alongside the model itself.
OpenAI’s Agents API, introduced in September, is designed for agents that can work for extended periods, preserve intermediate results, use tools, coordinate subagents, and operate inside managed execution environments. OpenAI
The important question is no longer simply whether an agent completed the task.
Teams also need to know how the agent completed the task.
Traditional Monitoring Cannot Explain Agent Behavior
Conventional application monitoring usually focuses on metrics such as:
- Availability
- Error rate
- Latency
- CPU usage
- Memory
- Database health
- API failures
These metrics remain useful.
They cannot always tell a team whether an AI agent made a poor decision.
AWS recently described an example where a supervisor agent began routing around 20 percent of requests to the wrong specialist. Infrastructure metrics remained healthy because the software had not technically failed. The agent behavior was wrong while the surrounding systems continued operating normally. Amazon Web Services, Inc.
This is one of the defining challenges of production AI.
An agent can return a successful HTTP response and still choose the wrong tool, use the wrong information, or complete the wrong action.
Traces Are Becoming the Debugging Record
Agent traces provide a more useful view.
A trace can show:
User request → Model call → Tool selection → Tool result → Handoff → Validation → Final action
OpenAI’s current agent tooling records model calls, tool calls, handoffs, guardrails, and other execution details so developers can inspect how a workflow behaved. OpenAI Developers
This gives engineering teams much better answers when something goes wrong.
Instead of seeing:
Customer update failed.
the trace might show:
- The agent retrieved the correct customer.
- The agent selected an outdated account tool.
- The tool returned incomplete data.
- The agent continued without requesting clarification.
- The wrong account field was updated.
That information makes debugging practical.
Evaluations Need to Test Behavior
Agent testing is also becoming more sophisticated.
Traditional software tests often ask:
Did the function return the expected value?
Agent evaluations may need to ask:
- Did the agent select the correct tool?
- Was the appropriate specialist called?
- Did the agent follow permission rules?
- Was approval requested before a sensitive action?
- Was the final answer supported by the retrieved data?
- Did the workflow complete the user’s actual goal?
OpenAI recommends using trace grading to evaluate workflow behavior and then moving to repeatable datasets and evaluation runs once the expected behavior becomes clear. OpenAI Developers
AWS is taking a similar approach. AgentCore Evaluations can score production interactions for correctness, helpfulness, goal completion, tool selection, and other dimensions. Amazon Web Services, Inc.
This means evaluation is becoming part of software quality engineering.
One Successful Test Is Not Enough
AI systems introduce another complication.
The same request can produce different execution paths.
One run may:
Request → Tool A → Tool B → Result
Another may:
Request → Tool A → Specialist agent → Tool C → Result
Both paths may be acceptable.
A third path may quietly introduce a problem.
AWS notes that agents can fail differently across repeated runs because model behavior is not completely deterministic. One successful test shows what can happen. Repeated evaluations help teams understand what usually happens. Amazon Web Services, Inc.
This changes release testing.
Teams need representative evaluation datasets covering:
- common requests
- edge cases
- ambiguous instructions
- invalid data
- unavailable tools
- permission restrictions
- sensitive actions
- incomplete information
Agent quality should be measured across these scenarios rather than judged from a small demo.
Multi Step Agents Can Accumulate Errors
Longer workflows create another risk.
A small mistake early in the process can affect every later step.
AWS introduced an Agent Evaluation Metric in September specifically for multi turn workflows. The approach examines individual turns so teams can identify where the original error occurred instead of only judging the final outcome. Amazon Web Services, Inc.
Consider an agent preparing a financial analysis.
If the agent selects the wrong customer account during step two, every calculation afterward may be internally consistent and still be wrong.
Looking only at the final report makes that difficult to diagnose.
Turn level evaluation can help identify the original mistake.
Approval Gates Should Protect Sensitive Actions
Some agent actions should never depend only on model judgment.
Examples include:
- Sending payments
- Changing account permissions
- Deleting important records
- Publishing customer communications
- Modifying production infrastructure
- Changing financial information
The surrounding application should enforce approval requirements.
OpenAI’s current agent guidance recommends approval and validation boundaries around sensitive capabilities and provides tracing around those decisions. OpenAI Developers
This creates a safer workflow:
Agent recommends → Policy checks → Human approves → System executes
The model can still perform research and prepare the action.
The final control belongs to the application.
Tool Permissions Need to Be Narrow
Agents become much more useful when connected to external tools through APIs or MCP servers.
They also become more capable of causing unintended changes.
OpenAI’s current MCP architecture supports remote and private tools while allowing the application runtime to control connectivity, approvals, and network boundaries. OpenAI Developers
A production application should therefore define exactly which actions each agent can perform.
A customer support agent may:
- Read support tickets
- Search customer records
- Draft a response
The same agent may not need permission to:
- Delete customers
- Change subscription pricing
- Modify payment information
Tool access should follow the business responsibility.
Observability Is Becoming Product Infrastructure
AWS introduced CloudWatch Omni in September as an observability and evaluation environment specifically for generative AI and agent workloads. The product reflects a broader industry shift toward treating agent quality monitoring as a production requirement rather than an optional debugging feature. Amazon Web Services, Inc.
A useful AI application dashboard may eventually track:
- Goal completion
- Tool selection accuracy
- Failed approvals
- Agent handoffs
- Cost per completed task
- Repeated retries
- Evaluation scores
- Latency
- Production errors
These metrics provide a much clearer picture of whether the application is performing useful work.
AI Software Quality Is Becoming Measurable
The strongest AI applications in 2026 are moving toward a simple operating model:
Build → Trace → Evaluate → Approve → Monitor → Improve
This gives development teams evidence rather than assumptions.
A model demo can show capability.
A production system needs to show reliability.
That requires knowing what the agent did, which data was used, which tools were called, whether the workflow followed policy, and whether the business objective was actually completed.
AI application development is therefore becoming a broader software engineering discipline.
Model intelligence matters.
Traceability, evaluation, security, and controlled execution determine whether that intelligence can be trusted in production.
Sign in to leave a comment.