Skip to content
The AI Agent Factory

Check yourself

Approved by
Panaversity ·
5 min read

Answer each question in a few lines, then compare with the outline below it.

  1. 28.1. What changes once the worker can pay, and what are the three tiers of guard? Outline: that old last guard is gone. Guards that lower the odds work through the model. Guards that decide on one route are code or a person outside it, set on one route. Only the connector's own checks decide on every route. The two harms are unintended actions and data leakage.
  2. 28.2. Name the three ways someone else's words reach the model, and who writes them in each. Outline: planted text, written by someone outside, in a tool result. A typed jailbreak, written by the person using the worker. A poisoned memory note, written by an earlier fooled run. A memory note can never be an approval.
  3. 28.3. Take one layer that lowers the odds and one that decides on one route. What does each stop, and what does each cost Ana? Outline: a screen can stop a planted line, and can hide a note Ana needs. An "ask" costs her one more thing to read, and its answerer may be the attacker. The suite measures each cost.
  4. 28.4. Who holds ap:pay, and why is approving no scope at all? Outline: owner and admin may propose. A scope is carried in the run's token, so a fooled model could use it. An approval is a row the portal writes for a person signed in as themselves, and the run key makes it pay once.
  5. 28.5. The orchestrator's hook denies a payment with no approval. Why is it not the last guard? Outline: it runs on one route, the orchestrator's tool call. A script, the workflow's code or a hosted session reaches the connector without it. The connector's check is the guarantee.
  6. 28.6. After a refactor, the hook's callback throws because get_approval's address is wrong. What happens, and what makes the hook fail closed? Outline: the call goes ahead to the other checks. onFailure: "block" makes a failure deny, if the callback lets its error propagate. The connector still refuses with no matching row.
  7. 28.7. Which tiers does each place keep: Claude Code, the Agent SDK, Managed Agents and your own loop? And what reaches a subagent? Outline: you set the first two tiers in each place, and only the connector's checks are kept everywhere. Hooks and permission rules reach subagents in Claude Code and the Agent SDK. A mod can overrule a hook unless managed settings, a managed-mcp.json file or a Team or Enterprise sign-in are in place.
  8. 28.8. You port the guard to the OpenAI Agents SDK. Which of its checks decide, and where does the guard that decides on every route live? Outline: a guardrail whose check is a model's answer lowers the odds. A tool guardrail in code, or needsApproval, decides on that route only. The guard that decides on every route is your connector's own code.

Chapter 28: Guardrails and Agent Security

Recall cards for the three tiers of guard, the payment's own checks, and which guards still hold when the model is fooled.

1 / 16

Chapter quiz

Practice

Question 1 / 10 · drawn from 60

0 answered

In this chapter, what is a route?

Owner
Panaversity

On this page