EAS-06 Delegated Identity
An agent never acts as itself. Every Run acts on behalf of a Principal, with a Credential that carries that Principal's identity and no more authority than the task requires; delegation only narrows scope, identity never comes from model output, and the systems that hold data enforce it.
| ID | Control | Level | Fix |
|---|---|---|---|
| EAS-06.01 | No identity from model arguments | L1 | local |
| EAS-06.02 | Ownership verification on model-supplied identifiers | L1 | local |
| EAS-06.03 | Per-Run delegated credential | L2 | structural |
| EAS-06.04 | Delegation only narrows scope; actor chain recorded | L2 | local |
| EAS-06.05 | Named service principals for non-human-triggered Runs | L2 | local |
| EAS-06.06 | No long-lived static secrets in agent runtime | L2 | local |
| EAS-06.07 | Tenant-scoped shared stores | L2 | local |
| EAS-06.08 | Explicit partial visibility | L2 | local |
| EAS-06.09 | Fail closed on permission-system failure | L2 | local |
| EAS-06.10 | Audit at tool-call grain | L2 | local |
| EAS-06.11 | Per-Run narrowed cloud credentials | L3 | structural |
| EAS-06.12 | Data-layer enforcement | L3 | structural |
| EAS-06.13 | Execution-time credentials for deferred effects | L2 | structural |
EAS-06.01 No identity from model arguments L1
Applies to: All Tools.
Tools MUST NOT accept the tenant, user, principal or their permissions as model-supplied arguments. Identity and tenancy MUST be taken from the Run’s authenticated Credential.
Why: If a Tool takes a tenant_id parameter, the model fills it in, which means a prompt injection can fill it in. The model may choose which of the user’s resources to look at; it must never choose whose resources are in scope.
Essay →
- Static
- Inspect the input schema of every Tool exposed to the model, including sub-agent and third-party Tools. Any parameter that designates the tenant, user, customer, organisation or principal (for example
tenant_id,user_id,org_id,customer_id,on_behalf_of) is a finding. Tool implementations obtain these values from the Run context or Credential.
Remediation local: Remove identity parameters from Tool schemas and read the tenant and Principal from the Run context injected by the framework, not from the ToolRequest.
Hooks: tool.before
· Components: tool-gateway
· See also: EAS-06.02, EAS-02.03
EAS-06.02 Ownership verification on model-supplied identifiers L1
Applies to: Tools that accept a resource identifier (order, account, document, ticket) from the model.
Before reading or acting on a resource named by a model-supplied identifier, the Tool MUST verify that the resource belongs to the Run’s tenant and is accessible to its Principal, and MUST return a not-found or denied result otherwise.
Why: A customer who asks about “order 48213” can read any order by typing its number unless the lookup checks that the order belongs to the authenticated customer. Identity comes from authentication, never from text. Essay →
- Static
- For each Tool taking a resource identifier, the lookup is constrained by the tenant and Principal from the Run’s Credential (or performed by a data store enforcing the delegated identity). Tests exist that call the Tool with an identifier belonging to another tenant or Principal and assert a denied or not-found result.
- Attested
- What happens when a user of this Workflow supplies the identifier of a record belonging to another customer?
Remediation local: Resolve every model-supplied identifier through a query scoped by the Run’s tenant and Principal, and add a cross-tenant test case for each such Tool.
Components: tool-gateway · See also: EAS-06.01, EAS-06.12
EAS-06.03 Per-Run delegated credential L2
Applies to: All Workflows that access private or regulated data or perform effects.
At the start of each Run the platform MUST mint a Credential whose subject is the Principal, which records the agent as actor, carries only the scopes the Workflow requires, and has a short expiry (for example by token exchange from the Principal’s authenticated session). Tools MUST present this Credential to the systems they reach. Tools MUST NOT use a broad service credential shared across Principals.
Why: An agent running on the service’s own broad credentials is a confused deputy: any tool call, whether correct, mistaken or induced by injection, can reach data its user could not, turning every other mistake into a breach. Essay →
- Declared
principal.typeandprincipal.scopesset for the Workflow; everytools[].required_scopesis a subset ofprincipal.scopes.- Static
- A
run.starthook or identity broker mints the Credential (token exchange or equivalent) with subject, actor, scopes and expiry; Tool clients authenticate with the Run’s Credential. Tools that read a database password, API key or service token from shared configuration to access Principal data are findings. - Runtime
- Every
eas.runspan carrieseas.principal.typeand a non-emptyeas.actor_chain. - Attested
- When a Tool in this Workflow reads a customer’s data, whose identity does the target system see?
Remediation structural: Introduce an identity broker that exchanges the user’s session for a narrowed, short-lived, actor-bearing token per Run, and migrate Tool clients from shared service credentials to that token.
Hooks: run.start
· Components: identity-broker
· See also: EAS-06.04, EAS-04.02
EAS-06.04 Delegation only narrows scope; actor chain recorded L2
Applies to: Workflows that delegate to sub-agents or handoff targets.
When control passes to a sub-agent, its Credential MUST be derived from the parent’s (for example by a further token exchange) with scopes that are a subset of the parent’s, limited to what the sub-agent’s task requires, and the actor chain MUST be extended to record the sub-agent. Delegation MUST NOT widen scope.
Why: Recording each actor preserves accountability through every hop, and allowing each hop only to narrow makes delegation a way of reducing authority rather than accumulating it. Essay →
- Static
- A blocking
delegatehook computes the child Credential as an intersection with the parent’s scopes and appends to the actor chain; sub-agents that inherit the parent’s Credential unchanged, or receive one minted independently with broader scopes, are findings. - Runtime
- On spans of a sub-agent,
eas.actor_chainequals the parent’s chain plus exactly one additional actor.
Remediation local: In the delegation path, exchange the parent’s token for one restricted to the sub-agent’s declared Tools’ scopes and record the sub-agent as an additional actor.
Hooks: delegate
· Components: identity-broker, orchestrator
· See also: EAS-06.03, EAS-06.10
EAS-06.05 Named service principals for non-human-triggered Runs L2
Applies to: Workflows triggered by schedules or events rather than a user.
Runs with no human Principal MUST act as a named service principal specific to the Workflow, with an explicit, reviewed set of grants. Such Runs MUST NOT act with the platform’s general credentials.
Why: “The system” should never mean “the platform with all its permissions”; when someone asks why a Workflow could read some data, the answer should be in a reviewed policy, not the history of a shared credential. Essay →
- Declared
principal.type: servicewithprincipal.scopeslisting the Workflow’s grants.- Static
- The service principal is defined per Workflow in reviewed configuration (identity or IAM policy in version control); it is not shared with other Workflows or services.
- Attested
- Where is this Workflow’s service principal defined, who reviewed its grants, and is it used by anything else?
Remediation local: Create a dedicated service principal per scheduled or event-driven Workflow with only its declared scopes, and define its grants in version-controlled policy.
Hooks: run.start
· Components: identity-broker, scheduler
EAS-06.06 No long-lived static secrets in agent runtime L2
Applies to: All agent runtimes.
The agent runtime MUST obtain its own identity from the platform (workload identity) rather than from long-lived static keys in code, images, environment configuration or files.
Why: Workload identity leaves no long-lived secret to leak. Essay →
- Static
- No cloud access keys, database passwords or long-lived API tokens in the repository, container images, deployment manifests or environment files for the runtime; cloud SDKs resolve credentials from the platform’s workload identity.
- Attested
- How does the runtime authenticate to the cloud provider and to data stores, and which secrets, if any, are static?
Remediation local: Bind the runtime’s service account to a cloud role via workload identity and remove static keys from configuration.
Components: identity-broker, executor · See also: EAS-06.11
EAS-06.07 Tenant-scoped shared stores L2
Applies to: Multi-tenant Workflows.
Every cache MUST include the tenant, and where relevant the user, in its key. Search indexes, vector stores and memory stores MUST separate tenants, and SHOULD do so physically (an index or namespace per tenant) rather than by a query-time metadata filter. Prompt-cache reuse MUST NOT allow one tenant’s data to be served in another tenant’s Run.
Why: Shared caches, indexes, memory and prompt caches with separation enforced by a query-time filter leak one customer’s data into another’s results when a filter is forgotten or a key omits the tenant. Essay →
- Static
- Inspect key construction for every cache used by Tools or the orchestrator; any key lacking the tenant is a finding. Inspect index and namespace selection in retrieval and memory code; shared indexes relying on a metadata filter are recorded and, at L3, are findings (see EAS-06.12).
- Attested
- Which stores hold tenant data across Runs, and how is each partitioned by tenant?
Remediation local: Add the tenant from the Run context to every cache key centrally; move vector and memory data to per-tenant namespaces selected from the Run’s Credential.
Hooks: memory.write
· Components: context-service, memory-store
· See also: EAS-06.12, EAS-12.07
EAS-06.08 Explicit partial visibility L2
Applies to: Tools whose results are filtered by the Principal’s permissions.
When permissions exclude results, the Tool MUST say so in its output (for example, “results limited to records you have access to; some records were excluded”) so the model can qualify its answer.
Why: The model usually does not know it is seeing a subset and answers as if its view were complete. Silent subsets are a correctness problem disguised as a security feature. Essay →
- Static
- Permission-filtered Tools detect that filtering removed results (from the data store’s response or a count comparison) and include an explicit marker in their output schema.
Remediation local: Add a partial_due_to_permissions field or equivalent to filtered Tools’ output and a sentence in the result text.
Hooks: tool.after
· Components: tool-gateway
· See also: EAS-08.01
EAS-06.09 Fail closed on permission-system failure L2
Applies to: All Workflows reading customer data.
If a permission cannot be confirmed because the permission system is unavailable or errors, reads of customer data MUST be denied. A cache of permission decisions MAY be used; its TTL MUST be an explicit number, documented and agreed with the security owner.
Why: Failing closed costs availability, and it is the right trade. A cache softens the cost but opens a window in which a revoked permission is honoured, so the window must be a deliberate number, not an accident of configuration. Essay →
- Static
- Error and timeout paths in permission checks return deny; permission cache TTL is set explicitly in configuration; a test simulates the permission service being unavailable and asserts denial.
- Attested
- What is the permission-cache TTL, where is it documented, and who in security agreed it?
Remediation local: Treat exceptions in permission checks as deny, set the cache TTL explicitly, and record the agreed value next to the configuration.
Hooks: tool.before
· Components: policy-engine, identity-broker
EAS-06.10 Audit at tool-call grain L2
Applies to: All Workflows.
Every Tool invocation MUST be recorded with the Run, the full actor chain, the Tool, the permissions used, the resources touched and the PolicyDecision, such that all access on behalf of a given tenant or Principal over a period can be retrieved by query.
Why: When a customer’s security team asks for everything the AI accessed on their behalf last quarter, the answer should be a query. Essay →
- Static
- The tool interception point writes an audit record per invocation containing all six elements to a queryable store with retention matching the audit obligation.
- Runtime
- Every
execute_toolspan carrieseas.run.id,eas.actor_chain,eas.tenant.idandgen_ai.tool.name, and is preceded by aneas.policyspan for the same ToolRequest. - Attested
- Produce the record of every resource this Workflow accessed on behalf of one named tenant during the last month.
Remediation local: Emit a structured audit record from the tool.after hook using the Run’s Credential for actor chain and scopes and the Tool’s result for resource identifiers.
Hooks: tool.before, tool.after
· Components: tool-gateway, telemetry-pipeline
· See also: EAS-04.05, EAS-12.06
EAS-06.11 Per-Run narrowed cloud credentials L3
Applies to: Workflows whose Tools access cloud resources directly.
Each Run MUST receive short-lived cloud credentials narrowed for that Run (for example a role assumption with a session policy that can only reduce the role’s permissions), tagged with at least the tenant and Run identifier, so that the cloud provider itself limits the Run to its tenant’s resources.
Why: A Run acting for tenant A then holds credentials that, at the provider’s own enforcement layer, can only reach tenant A’s resources; a compromised Run is bounded by something the agent cannot negotiate with. Essay →
- Static
- Run start obtains session credentials with a session policy restricting resources to the tenant and session tags for tenant and Run; resource policies use the tags.
- Attested
- If a Run for tenant A requested an object belonging to tenant B, which layer would deny it?
Remediation structural: Have the identity broker assume a per-Workflow role per Run with a tenant-scoped session policy and tenant and Run tags; key resource policies on those tags.
Hooks: run.start
· Components: identity-broker
· See also: EAS-06.06, EAS-04.06
EAS-06.12 Data-layer enforcement L3
Applies to: Workflows with data_access of private or regulated.
Data stores reached by Tools MUST enforce the Principal’s permissions themselves, using the Run’s delegated identity — through row- and column-level security, or physically per-tenant indexes and namespaces — so that a Tool that omits a filter still receives only permitted data. Where a service connects on users’ behalf by impersonation, the identities it may assume MUST be narrowly defined, reviewed and audited.
Why: Application-level filters depend on every Tool, written by every team, applying them correctly every time. Enforcement in the data layer turns an application bug into a denied query and an alert instead of a breach. Essay →
- Declared
policies[]entries for data visibility withenforced_atincludingdata_layer.- Static
- Row- or column-level policies in the data store keyed on the session identity; per-tenant indexes for search and vector stores; impersonation configuration listing permitted identities, under review.
- Runtime
- Denied out-of-scope reads appear as
eas.policyspans witheas.policy.point = data_layer. - Attested
- Who may the impersonating service act as, who reviews that list, and where are its impersonations logged?
Remediation structural: Start with application-level filtering plus physical tenant separation, then move enforcement into the data layer for agent workloads first, propagating the delegated identity to the store.
Components: data-governance, identity-broker · See also: EAS-04.06, EAS-06.07
EAS-06.13 Execution-time credentials for deferred effects L2
Applies to: Workflows in which an ActionIntent can be executed after a durable wait (human approval, a timer, an external event) or by an executor running apart from the Run.
The executor MUST perform each deferred effect with a credential obtained at execution time: minted by token exchange from a stored delegation grant, narrowed to that ActionIntent’s action and target, and short-lived. The Run’s original credential MUST NOT be extended, refreshed or stored to bridge the wait. Before executing, the executor MUST confirm that the Principal still holds the authority the intent requires; if the grant has expired or been revoked, or the authority withdrawn, the intent MUST fail closed and return to review rather than execute.
Why: A Run’s credential is deliberately short-lived, but approval as a state transition means an effect may execute days later. Keeping the original credential alive to cover that gap creates exactly the long-lived, broadly scoped secret the delegation model exists to avoid, and executes on authority that may since have been revoked. Essay →
- Declared
principal.execution_credentialisper_intent.- Static
- The executor obtains a credential through the identity broker immediately before each effect, with scope derived from the intent’s action type and target; no code path persists or refreshes the Run’s credential for later use; the executor handles a refused exchange by failing the intent closed.
- Runtime
- Every
eas.executespan carrieseas.credential.minted_for = intentand aneas.credential.age_sbelow the configured lifetime; noeas.executespan reuses the credential identifier of the originating Run. - Attested
- If a user’s access is revoked while one of their intents awaits approval, what happens when a reviewer approves it?
Remediation structural: Store a narrow delegation grant with each intent at commit time (not a token); have the executor exchange it for an intent-scoped credential at execution, and treat a refused exchange as a rejection that returns the intent to review.
Hooks: state.resume
· Components: identity-broker, executor, action-ledger
· See also: EAS-06.03, EAS-06.09, EAS-03.07, EAS-09.02