Closed-loop action
Perception, planning, action and observation form a feedback cycle. This aligns with the ReAct family of interleaved reasoning-and-action methods.
A production-grade agent is not merely an LLM with tools. It is a governed decision system that repeatedly converts goals and observations into bounded actions, while preserving state, measuring outcomes, managing uncertainty and yielding control when risk exceeds authority.
Its seven blocks communicate the central intuition: an agent receives a goal, reasons, uses tools, consults memory and iterates. Yet production systems require sharper boundaries, explicit governance and measurable termination conditions.
Perception, planning, action and observation form a feedback cycle. This aligns with the ReAct family of interleaved reasoning-and-action methods.
Planning, task decomposition, uncertainty estimation, verification and policy checks can be separate procedures—or absent entirely—depending on the design.
Budgets, permissions, observability, rollback, human approval, test suites and stop rules are not optional accessories; they define safe autonomy.
This representation keeps the simplicity of the source image while replacing anthropomorphic labels with inspectable engineering functions.
Goal, constraints, success criteria, authority, budget and deadline.
Read user input, system state, tool results and relevant context.
Generate candidates, estimate uncertainty and detect ambiguity.
Decompose work, establish dependencies and select checkpoints.
Apply policy, permissions, risk thresholds and approval gates.
Invoke a tool or communicate a result using typed interfaces.
Compare evidence with success criteria; continue, revise or stop.
A mature architecture separates concerns so that each layer can be tested, replaced and governed independently.
Defines intended outcome and the operational boundaries of autonomy.
Provides language understanding, generation and probabilistic decision support.
Owns the loop, state transitions, retries, scheduling and termination.
Supplies task-relevant information—not an unlimited transcript dump.
Converts model intent into validated, typed, observable operations.
Determines which actions may occur, under what conditions and with whose approval.
Measures both outcome quality and trajectory quality before and after deployment.
Makes agent behavior inspectable without exposing private hidden reasoning.
“More autonomous” and “more agents” are not synonyms for “better.” Additional coordination can increase cost, latency and failure surface.
| Pattern | Best suited to | Main advantage | Primary risk | Operational complexity |
|---|---|---|---|---|
| Deterministic workflow | Stable, repeatable processes | Predictability and auditability | Brittleness under novelty | Low |
| Router + specialist tools | Mixed request categories | Efficient capability selection | Misrouting and fragmented context | Low–medium |
| Single ReAct-style agent | Open-ended tool use with moderate scope | Adaptive planning from observations | Loops, tool misuse, error propagation | Medium |
| Planner–executor | Longer tasks with dependencies | Separates global plan from local action | Plan staleness and handoff loss | Medium–high |
| Multi-agent team | Parallelizable or genuinely specialized work | Division of labor and independent critique | Coordination overhead, correlated errors | High |
| Human-supervised agent | High-impact or irreversible actions | Accountability at critical boundaries | Approval fatigue and slow throughput | Context-dependent |
The key engineering move is to put authority, budgets and verification in the runtime rather than trusting the model to self-regulate.
def run_agent(task, policy, budget): state = initialize(task, policy, budget) while state.steps < budget.max_steps: observation = observe(state) context = retrieve_relevant_context(observation, state) proposal = model.propose_action(task, context, state.summary) validation = policy.validate( action=proposal.action, authority=state.authority, risk=estimate_risk(proposal), evidence=proposal.evidence ) if validation.requires_human: return request_approval(state, proposal) if not validation.allowed: state.record_refusal(validation.reason) return safe_stop(state) result = tools.execute(proposal.action, idempotency_key=state.run_id) state.record(proposal, result) verdict = evaluator.check(task.success_criteria, state, result) if verdict.success: return finalize_with_evidence(state) if verdict.irrecoverable or budget.exhausted(state): return escalate_or_stop(state) return safe_stop(state) # explicit bounded failure
Most failures arise not from one dramatic model error, but from interactions between uncertain generation, permissive tools, stale state and weak stopping logic.
An agent can reach the right outcome through unsafe, expensive or irreproducible behavior. Evaluation therefore spans task quality, process quality, risk and operations.
Offline: golden tasks, adversarial prompts, tool-failure simulations, permission tests, long-horizon tasks and regression suites.
Online: success rate, human override rate, average steps, cost per successful run, latency, repeated-action rate, unsafe-action blocks and incident severity.
Human review: calibrated sampling of consequential runs, with explicit rubrics and reviewer disagreement tracking.
These principles translate research insights into practical architecture decisions.
Specify what the agent must achieve—and what it must never decide alone.
Use narrow schemas rather than unrestricted text-to-command execution.
Grant only the credentials required for the current step and context.
Every consequential claim and action should be traceable to evidence.
Detect repetition, stagnation and divergence from the success criteria.
Stage, preview or simulate irreversible actions before committing them.
Ambiguity in high-impact contexts should trigger clarification or human review.
Production traces should feed regression tests, red-team cases and policy updates.
An agentic AI system is a computational system that pursues an explicit objective through a bounded, stateful feedback loop in which a generative model helps select or construct actions, external tools change or inspect an environment, and independent controls govern permissions, evaluate progress and determine termination.
The page synthesizes foundational research on reasoning-and-action loops, memory architectures, multi-agent orchestration and risk management.