Lesson deck
Guides, sensors and enforcement flashcards
Reviewing needs JavaScript. You can read every card in the list below.
Loading your cards...
Back to the lesson13 cards in this deck
Read all 13 cards as a list
- Front
- What is a guide, and what is a sensor?
- Back
- A guide steers the agent before it acts (instructions, skills, templates). A sensor observes after it acts so the agent can correct itself (linters, tests, reviews). Use both (Böckeler, Apr 2026).
- Front
- Computational versus inferential controls?
- Back
- Computational: deterministic, fast, cheap checks (tests, linters, type checkers, structural tests). Inferential: a model's judgment (AI review, LLM judge): slower, costlier, less predictable.
- Front
- Which sensors run on every change?
- Back
- Computational ones. Spend inferential checks where meaning matters and no deterministic test exists, and treat their verdicts as less certain.
- Front
- What does keep quality left mean?
- Back
- Run checks as early as possible: fast ones (format, lint, types, quick tests) right after an edit or before commit; expensive ones (slower tests, deep review) later; drift scans continuously.
- Front
- What is the rule for sensor output?
- Back
- Success silent, failure verbose: print nothing when a check passes, and a short, specific message the agent can act on, with the fix, when it fails.
- Front
- Why is a hook a guarantee and a prompt rule a suggestion?
- Back
- A hook is code the harness runs at a defined point whatever the model decides. A prompt rule depends on the model following it every time.
- Front
- Which hook points can block, and which cannot?
- Back
- Before a tool call can block it. After a tool call cannot undo it (it can feed a message back). A stop hook can prevent the agent from finishing, for example while tests fail. Other points, such as prompt submission, can block too, so check the current docs (Claude Code).
- Front
- How should permissions be tiered?
- Back
- Read-only: allow. Reversible write in a sandbox: allow. Costly or external: allow-list or approve each use. Destructive or irreversible: explicit human approval. Fail closed when scope is unknown.
- Front
- Why does approval fatigue matter?
- Back
- If people click approve constantly they stop looking. Sandboxing sets boundaries so the agent works freely inside them; Anthropic reports 84 percent fewer permission prompts in internal use (Oct 2025).
- Front
- Why do sandboxes need both file and network limits?
- Back
- Without network limits a compromised agent could send out files; without file limits it could escape the sandbox and reach the network. Each covers the other's gap.
- Front
- What is the lethal trifecta and the response?
- Back
- Private data, exposure to untrusted content and external communication in one agent allow data theft (Willison, Jun 2025). Avoid the combination: remove a leg, separate by trust, least privilege.
- Front
- How do you stop an agent from editing the tests?
- Back
- Make them unwritable for the agent (permissions or a hook on protected paths), keep success criteria where it cannot rewrite them, and grade with an independent run in CI.
- Front
- Which part of verification is weakest?
- Back
- Behaviour (does it do the right thing). Böckeler says reliance on AI-generated tests is not good enough yet; add coverage and mutation checks and manual testing for critical paths.