
How to Choose the Best AI Company in Iran: 2026 Buyer Guide
An evidence-first checklist for selecting an AI company in Iran: define the workflow, test Persian performance, examine security, measure a pilot, and negotiate an exit.
Read MoreZharfAI Team

Giving an AI agent a user’s long-lived API key is not delegation. It is credential sharing with an unpredictable caller. Once the key reaches a tool, the resource server may know the user account but not which agent acted, which task justified the action, who approved it, or whether the authority should still be valid.
A production system needs an agent passport: a verifiable identity for the running workload, a delegation chain from a responsible principal, a narrowly described permission, and evidence that the permission was valid at the moment of action. The passport is not one token or a new universal standard. It is an architectural pattern built from established identity, authorization, policy, and audit controls.
An agent transaction can involve several distinct principals:
These identities must not collapse into one “service account.” Authentication answers who or what is presenting a credential. Authorization answers whether that principal may perform this action on this resource under current conditions. Delegation explains why the agent may exercise some authority belonging to another principal.
The model’s self-description is not identity. Text such as “I am the finance assistant” can be generated or injected. Identity must be bound cryptographically or through a trusted execution and issuance path to the workload making the request.
Assign a stable logical identity to each agent class and a traceable instance identity to each run. The executing workload should obtain short-lived credentials at runtime, not read a shared secret embedded in source code, an environment image, or a prompt.
SPIFFE is one open standard that can support this layer. A SPIFFE ID uniquely identifies a workload within a trust domain, while SVIDs provide cryptographically verifiable identity documents. SPIFFE does not decide business authorization and assumes adequate workload isolation; it is therefore a useful identity primitive, not a complete agent-security solution.
Cloud-native service identities, hardware-backed device identities, or a carefully operated internal certificate authority can serve similar roles. Whichever mechanism is chosen, require:
Do not let all agent replicas share one untraceable bearer token. An incident responder must be able to answer which workload received which credential and which calls it made.
Roles such as admin or finance-agent are too broad for autonomous execution. Define an authorization envelope with at least:
| Field | Example |
|---|---|
| Subject | agent instance refund-review/7f2a |
| Delegator | support supervisor u-184 |
| Action | propose refund; issue refund only after approval |
| Resource | order ORD-8421, tenant north |
| Limits | maximum 1,500,000 IRR; one execution |
| Purpose | resolve case CASE-934 |
| Time | valid for 15 minutes |
| Conditions | order not previously refunded; payment method unchanged |
| Evidence | policy version, approval ID, authentication level |
The envelope should be machine-readable and enforced at the resource boundary. OAuth 2.0 Rich Authorization Requests, RFC 9396, provides a standard authorization_details structure for carrying fine-grained authorization data. It does not define your domain’s action vocabulary or automatically make a request safe; the authorization server and resource server must agree on semantics and enforce them.
At every handoff, authority must stay equal or shrink. A research sub-agent may receive permission to read selected files, not the parent agent’s permission to send mail. A scheduler may receive a request to hold a slot, not a transferable user credential.
RFC 8693 defines OAuth token exchange, including delegation and impersonation semantics. In delegation, the actor can remain visible as acting on behalf of another subject. In impersonation, the downstream system may treat the intermediary as the subject. Agent systems should prefer explicit delegation when the downstream architecture supports it because the audit trail retains both the user and the actor.
A useful delegated token or equivalent capability should carry:
Token exchange is not a complete trust model. RFC 8693 leaves local policy, revocation behavior, and many trust decisions to the deployment. Do not assume that exchanging a token automatically prevents authority amplification.
Use sender-constrained access tokens for high-value paths. RFC 9449 DPoP binds a token to a public key and requires proof of possession on requests, reducing the usefulness of a stolen bearer token. Mutual TLS is another established option. Sender constraint does not stop an authorized but compromised agent from misusing its valid authority, so action policy remains necessary.
Prompt instructions are not an enforcement point. The model can propose an action, but a deterministic gateway and the resource server must decide whether to execute it.
A robust path has:
This follows the zero-trust principle in NIST SP 800-207: do not grant implicit trust based on network location; protect resources and make authorization decisions for access. For multi-cloud application identities, NIST SP 800-207A adds guidance around identity-tier policies. Neither publication is an AI-agent-specific authorization standard, but both provide applicable architecture.
Reauthorize at commit time. A plan approved five minutes ago may be stale because the user revoked permission, the amount changed, another process edited the record, or the credential expired. The final write should bind the approved preview to a content hash or expected version. See Designing Tool Permissions for AI Agents for the broader tool boundary.
Suppose a support agent proposes a 1,200,000 IRR refund:
CASE-934.refund-review/7f2a with its own workload identity.refund.execute only for that approved tuple.If the employee changes the amount after approval, the order version moves, the capability expires, or revocation arrives, the payment service denies execution. The agent cannot “explain” its way around the check.
Common failure modes include:
Validate token audience at every resource server and never use an upstream token as a generic downstream credential. Bind approvals to exact parameters, enforce tenant context independently of model output, and make delegation graphs queryable. The IETF’s RFC 9700, OAuth 2.0 Security Best Current Practice, recommends restricting token privileges and audience and using sender constraints to reduce replay of stolen tokens.
Short lifetimes reduce exposure but do not replace revocation. Design several kill switches:
Measure the time from revocation decision to denial at every enforcement point. Cached decisions, offline workers, queued actions, and long-running workflows must receive the change. On restart, a workflow should reacquire authority rather than reuse an expired credential from persisted state.
Keep secrets out of prompts, transcripts, traces, and durable histories. Store references to a credential broker, not raw refresh tokens. Rotate keys after suspected leakage and retain enough evidence to identify affected actions without retaining unnecessary personal data.
An effective audit record captures:
Do not require or store private chain-of-thought. It is neither a reliable authorization control nor necessary audit evidence. Record externalized plans, typed proposals, policy decisions, and system effects. Audit-Ready AI covers evidence design in more depth.
Before permitting production writes, require:
Track denial rate, policy-decision latency, expired-token attempts, revocation propagation, orphan identity count, scope-escalation test coverage, and actions without a complete delegation chain. A successful call rate alone can reward over-permissioning.
NIST launched its AI Agent Standards Initiative in February 2026 and identified agent authentication and identity as active research areas. Its related NCCoE identity and authorization document was published as a draft concept paper, not a final agent-identity standard. This is useful evidence that the problem is receiving formal attention, but it should not be marketed as certification or settled consensus.
OAuth, DPoP, SPIFFE, and zero-trust standards supply mature building blocks. Agent-specific delegation vocabularies, cross-vendor policy exchange, identity for ephemeral sub-agents, and portable revocation are still evolving. Architect for explicit versions and interoperability tests rather than claiming one protocol has solved the entire stack.
The workload class can have a stable identity, but each run should have a unique traceable identifier and task-scoped authority. Higher-risk or cross-tenant runs may warrant distinct credentials.
Usually not for consequential agent actions. Roles are useful coarse gates; add resource, action, purpose, value, time, task, tenant, and approval conditions.
Avoid persisting it in the agent state. Use a credential broker or token service to issue short-lived, audience-restricted capabilities, and store only references needed to reacquire authority.
The organization must assign a responsible owner and preserve the delegator, actor, approver, policy, and outcome. Technical identity makes accountability inspectable; it does not transfer legal or managerial responsibility to the model.
Sources reviewed and current as of July 30, 2026:

An evidence-first checklist for selecting an AI company in Iran: define the workflow, test Persian performance, examine security, measure a pilot, and negotiate an exit.
Read More
Privacy-enhancing technologies help teams use AI on sensitive data through minimization, isolation, encryption, and carefully governed computation.
Read More
AI governance is becoming operational work: inventories, model documentation, risk classification, monitoring, and evidence for auditors.
Read MoreSee the daily briefing and the operational guides. This page is an archive note, not an invitation to start a project.