Example standard 02 Draft 0.1
Delegated API access
The service that owns the resource must be able to tell who is acting, for whom, and within which grant.
Scope
Applies when an agent calls an API directly or through a gateway or MCP connector. This standard covers delegation and resource authorization, not all aspects of API security.
Requirements
- API-01
Keep the identities distinct. Record the calling workload or agent, the owner of the grant, and any user or tenant on whose behalf the action runs. Resolve these from trusted session or service state, not from names asserted in model output.
- API-02
Constrain the call to the intersection of grants. Effective authority cannot exceed the caller's job scope, the delegation and the receiving service's own policy. Bind it to the operation, resource and destination. A gateway pass does not replace the service's decision over its own data.
- API-03
Separate discovery from execution. Filter advertised capabilities where their names reveal sensitive access. Recheck permission at invocation, including follow-up calls and calls inside an existing session. Discovery once did not grant the right to act indefinitely.
- API-04
Give revocation a defined effect. State what a grant's expiry or revocation does to new calls, queued operations and work already in progress. A child process or connector must not extend the parent grant when it carries the work forward.
How to verify
- Allowed
- On a test tenant, the named agent reads the approved resource, and gateway and service records agree on who acted and under which grant.
- Denied
- The same grant cannot write or address a second test tenant. Confirm that no unauthorized effect was recorded by the resource owner.
- Revoked
- Revoke the grant during an open test session. Observe a denied next call and confirm that queued and in-flight work behave as documented.
Evidence to keep
Join the request and resource-owner outcome by an identifier. Keep caller, delegation, target and decision metadata; do not copy bearer credentials into the trail.