Softech Blog
AI Systems & Automation Engineering

AI Agents: Tools, Permissions and Human-in-the-loop Control

Production AI agents should be bounded decision loops: narrow tools, server-side permissions, durable approvals, retry-safe side effects, budgets, scoped memory and trajectory-level evaluation.

Updated:August 20, 20267 min readReviewed:Softech.app
AI systems execution architecture by Softech
Executive summary

The most important points from this article

A production AI agent is a model-driven planner inside deterministic product controls. Server-side authorization, narrow tools, approval state, idempotency, execution budgets and authoritative business data limit what an agent can do. Evaluate the whole tool trajectory and final domain state rather than only the generated answer.

Key takeaways
  • Use the smallest autonomy level that delivers real product value.
  • Enforce authorization, tenant scope and business invariants outside the model.
  • Persist approvals and make side-effecting tools idempotent and budgeted.
  • Evaluate tool trajectories, forbidden actions, recovery and final domain state—not only final text.
How this article was prepared

Methodology and review

Recommendations are derived from production agent-boundary patterns, server-side authorization principles and primary AI risk documentation. Examples distinguish model reasoning from application-owned permissions and execution state.

Update scope: Expanded with agent capability boundaries, approval policy, tool failure semantics and auditable execution.
Accuracy review
Softech.app
August 20, 2026
  • Agent boundaries
  • Authorization model
  • Human-in-the-loop controls
Key insights

Key observations and insights

The key observations summarizing the experience, decisions and outcomes described in the article.

An agent is safest when the model plans but deterministic product controls decide what can actually execute.
Human-in-the-loop is a persisted workflow state, not a confirmation sentence in the prompt.
Agent memory may improve continuity, but authoritative permissions and business state must be re-read from trusted systems.

An AI agent is a controlled decision loop

Production agents are useful when software has to interpret an objective, inspect current state, choose among approved operations and continue until a bounded outcome is reached. The key word is bounded. An agent should not inherit unrestricted application access simply because the model can call tools.

We treat the model as a planner inside an execution system. Identity, tenant context, authorization, business invariants, budgets, approval requirements and audit remain deterministic product controls outside the prompt.

Choose the smallest autonomy level that solves the problem

PatternModel freedomGood fitRequired control
Model stepGenerate/classify onceSummaries, extraction, draftingSchema and content validation
AI-assisted workflowModel selects within a fixed sequenceTriage, routing, recommendationsDeterministic workflow state
Bounded agentIterative tool choiceResearch, multi-step operationsTool allow-list, budgets and stop conditions
Approval-gated agentPlans consequential actionPublishing, payments, account changesDurable human approval before side effect

Many products labelled “agentic” are safer and easier to operate as AI-assisted workflows. Use iteration only where the benefit of dynamic planning is real.

Tool scope matters more than prompt wording

A tool is an API contract, not a natural-language permission. Prefer narrow domain commands such as createDraftProposal, requestRefundReview or scheduleFollowUp over generic database, shell or admin access. Each command must validate actor, tenant, resource ownership, arguments and current state on the server.

The model can suggest an action. It should not be able to redefine whether that action is permitted. This keeps authorization testable even when prompts, models or reasoning strategies change.

Put policy outside the model

Critical rules belong in code and data: which roles may invoke a tool, which objects may be accessed, transaction limits, maximum iterations, required approval classes, allowed destinations and stop conditions. Prompt instructions are useful context, but they are not an enforcement boundary.

This separation also improves portability. A model upgrade should not require re-proving the entire permission model because the same server-side policy still constrains every call.

Human-in-the-loop needs durable workflow state

A production approval step cannot be a transient modal that disappears when a request times out. Store the proposed action, supporting evidence, actor, policy reason, current resource version and approval decision. When the human responds, revalidate current state before executing because the underlying object may have changed.

Human review should be reserved for consequential or ambiguous steps. If every low-risk tool requires approval, the agent adds latency without reducing meaningful work. Risk tiers let the system automate reversible reads and drafts while gating irreversible writes.

Retries require idempotency and execution budgets

Agent loops naturally retry. Networks fail, model calls time out and a tool result can arrive after the orchestrator has lost its connection. Write operations therefore need idempotency keys or equivalent domain guards. The run itself should have limits for time, tool calls, tokens/cost and repeated identical actions.

A useful stop policy detects loops such as the same failing tool invoked with unchanged arguments. Instead of continuing to “reason”, the orchestrator should move to a repair, escalation or terminal state with a clear reason.

Memory is context, not the source of truth

Long-lived agent memory can improve continuity, but permissions, orders, invoices, bookings and customer records must still be read from authoritative systems. Store memory with provenance and scope. A remembered preference is different from a current entitlement or a verified account balance.

For multi-tenant software, memory retrieval also needs the same tenant and resource boundaries as ordinary application queries. A semantically relevant chunk is not automatically authorized context.

Evaluate trajectories, not only final text

Agent quality should be tested across the execution trace: Was the right tool selected? Were forbidden tools avoided? Did the run request approval at the correct boundary? Did it recover from a dependency failure? Did it stop within the budget? Was the final business state correct?

This is how we approach production AI automation and AI assistants at Softech: the useful product is the controlled path from intent to outcome, with evidence that the system stayed inside its operating envelope.

Production checklist

  • Classify the minimum autonomy level needed for the task.
  • Expose narrow domain tools, never broad administrative capability by default.
  • Resolve authorization and tenant context outside the model.
  • Persist approvals and revalidate state before execution.
  • Make side-effecting tools retry-safe.
  • Set run budgets and loop detection.
  • Scope memory by tenant, resource and provenance.
  • Evaluate tool trajectories, policy compliance and final domain state.
Architecture

Reference execution flow

The sequence shows where probabilistic AI connects to deterministic product state, policy and operations.

  1. 01
    bounded objective
  2. 02
    authorized tenant/resource context
  3. 03
    model planning
  4. 04
    tool + risk policy
  5. 05
    validated domain command
  6. 06
    result verification
  7. 07
    human approval / repair
  8. 08
    audit + stop condition
Decision asset

A reusable decision framework

Instead of one universal pattern: a question, options and criteria that can be applied to a specific system.

Tool permission ladder

How much authority should an agent receive for a given tool?

01
Read
02
Draft
03
Execute reversible
04
Execute with approval
Criteria
Blast radiusIdentity contextReversibilityFinancial impactExternal side effects
Decision rule: Grant the narrowest capability that can complete the task and require approval before high-impact or hard-to-reverse execution.
Solution framework

Key elements and relationships

Bounded agent execution loop

A production loop that separates probabilistic planning from deterministic policy and execution.

Layer 1
Objective

Normalize user or system intent into a bounded run goal.

Layer 2
Authorized context

Resolve tenant, actor, resources and provenance before planning.

Layer 3
Model planning

Choose the next step among available capabilities.

Layer 4
Policy gate

Check permissions, risk tier, budgets and approval requirements.

Layer 5
Domain tool

Execute a narrow validated command against current state.

Layer 6
Result verification

Confirm tool outcome and update run state.

Layer 7
Approval / repair

Persist review or recover when execution cannot continue safely.

Layer 8
Audit & stop

Record trajectory, final outcome and explicit termination reason.

First-party evidence

Evidence from Softech delivery

These examples are separated from external sources: they show which recommendations are grounded in real systems delivered or developed by Softech.

Evidence and context

External sources and verifiable claims

External factual claims are tied to primary sources or technical documentation and are kept separate from Softech first-party evidence.

OpenAI provides agent tooling that includes tools, handoffs, approvals and tracing for building production agent workflows.

NIST AI RMF is designed to help organizations manage AI risks and incorporate trustworthiness considerations across the AI lifecycle.

OWASP recommends validating permissions on every request and enforcing authorization server-side rather than relying on client-side controls.

FAQ

Does every AI workflow need an autonomous agent?
No. A fixed or AI-assisted workflow is often simpler and safer. Use an iterative agent only when dynamic tool planning materially improves the task.
Should permissions be implemented in the prompt?
No. Prompts can describe policy, but server-side authorization and domain validation must enforce it independently of model behaviour.
How should human approval work for an AI agent?
Persist the proposed action, evidence and resource version, then revalidate current state after approval before executing the side effect.
What should an AI agent evaluation measure?
Measure tool choice, forbidden actions, approval boundaries, retries, recovery, budget compliance and final business state across the full trajectory.
Continue reading

Related articles

Articles that expand the topic and add further practical context.

Author

Softech.app

Softech.app builds AI-native web apps, mobile apps, SaaS platforms, automation systems and modern digital products for companies.

Reviewed by
Softech.app
August 20, 2026
Next step
Automating a workflow with AI and need controlled execution?
We map trigger, data context, permissions, tools, human review, idempotency, retries and audit for one measurable workflow.