# Check yourself (/building-ai-workers/guardrails-and-agent-security/check-yourself)

---
type: Document
title: "Check yourself"
description: "Questions with outlines for the whole chapter, the flashcards, and a final quiz round."
status: stable
order: 328.95
ksor:
  owner: team:panaversity
  audience:
    - public
  approval:
    by: process:panaversity
    at: 2026-11-30T10:59:25Z
chapter: '28'
part: III
expert_status: builder-only
concepts: []
chapter_quiz: true
last_verified: '2026-11-30'
generated:
  at: 2026-11-30T10:59:25Z
  by: esl-rewrite/1.2.0+ksor.1
trust_tier: unverified
build_id: sha256:d6ce3f28a2cf8e492a60bae1b426b7cc6466e35e83d70c3b9763db2c55009f4b
dirty: true
ksor_version: 0.0.60
---

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

1. *[28.1](an-agent-that-reads-and-acts.md).* 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](prompt-injection-and-jailbreaks.md).* 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](layers-of-defense.md).* 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](least-privilege.md).* 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](hooks-as-deterministic-enforcement.md).* 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](fail-closed.md).* 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](guardrails-in-each-place.md).* 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](how-todays-tools-realize-it.md).* 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.

<!-- OPEN: this section follows Chapter 27's Check yourself: one open question with an outline for each concept, and the flashcards attached to the page. Each outline is now three key phrases, re-read against its section after the round 1 review. -->
