Agent ArchitectureAuthority and approvalPrincipal
How should a delegated research agent stay within its parent’s case-level read authority?
By Amit Kumar2 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A parent may read case 418 but its child receives a tenant-wide service credential and retrieves a plausible forbidden account incident. Trace credential issuance and object checks, design bounded subject/actor/audience scope through nested delegation and provide a path for a legitimate broader-access request without privileged fallback.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
The delegation boundary did. A parent cannot confer authority it does not hold. The child may need fewer capabilities than the parent, perhaps only read access to documents attached to case 418, with a short expiry and no write tools. OAuth token exchange distinguishes delegation and impersonation and describes actor and subject claims. It provides a vocabulary and protocol mechanism, not an automatic policy that all child tokens are attenuated. The authorization service must decide the effective subject, actor, audience, scope and resource constraints.
I would trace the caller's identity, case-level grant, task handoff, child credential minting, tool catalog and the exact search request. Did the child receive an unscoped service token because the agent runtime starts all subagents with the same environment? Or did the search API ignore the scoped claim? Fix both the issuance and enforcement boundaries. A delegated token should be no broader than the parent's grant and the child task, bound to an audience and expiry. The tool still checks object-level access, including account and case relationship, on each read. Tool output cannot authorize a follow-up search outside scope.
Nested delegation makes this easy to miss. A child that spawns another child must pass along an equal or narrower capability, not regain the platform default. Keep the actor chain in audit, and make the parent see when a child was denied rather than quietly falling back to a privileged credential. Test a case with a plausible related incident in a forbidden account, plus a permitted incident, and verify the child only returns the permitted one. If the answer truly needs broader scope, ask the authorized human to grant it through an explicit path.
What if the platform credential is needed for operational access? It can exist behind the tool service, but the service must enforce the delegated user and resource scope. Do not put broad credentials into the model's runtime and trust the prompt to behave. An investigation subagent wants to issue a credit asks whether an investigation subagent may issue a credit. The agent used a valid tool. Why did a retrieved tenant ID expose another customer's data? asks whether a retrieved tenant ID can control a tool read. This question starts at delegation: a child received a stronger read capability than its parent before it made any decision.
Related questions
Keep practising agent architecture
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux