cAIge Competency Matrix

Version 2.0

The competency matrix defines the cAIge role. For each of the program’s 43 sections it lists the knowledge a certified engineer holds and the skills they can demonstrate. Every exam question maps to one section, and every section has a matching lab task.

This page is generated from the training content itself, so the matrix, the training sections, and the exam objectives cannot drift apart.

What a cAIge holder delivers

A Certified AI Guardrail Engineer can take an AI system and produce:

  • A threat model: the principals and their authority, the trust boundaries, the failure modes by category (safety, security, containment), likelihood and impact, and the residual risk to accept.
  • A guardrail architecture: which controls go where and why, preferring deterministic and architectural controls wherever they are possible, and using probabilistic controls where they are not.
  • Working controls: input and output handling, retrieval authorization, safety classification, structured output, least-privilege tools, sandboxing, budgets, action gating, an emergency brake, and tamper-proof audit.
  • Evidence: evaluation and red-team results with defensible statistics, covering both harm and over-refusal.
  • Operational readiness: monitoring, incident response, brake drills, re-validation on change, and release gates.

Domains and weights

DomainWeightFocus
1. How AI Systems Behave10%The model properties that create risk
2. Risk and Threat Modeling15%The safety / security / containment framework, authority, failure modes, blast radius
3. Security Engineering20%Defending authority and data against adversaries
4. Safety Engineering20%Keeping model behavior within policy without an adversary
5. Agent Containment and Control15%Limiting, observing, and stopping models whatever the cause
6. Evaluation and Red Teaming12%Measuring safety and security with evidence
7. Operations and Governance8%Running guardrails in production and holding the authority to stop

Domain 1: How AI Systems Behave (10%)

1.1 Tokens, Context, and Sampling

Knowledge

  • Models operate on subword tokens from a fixed vocabulary, so a filter that inspects raw strings can disagree with what the model reads.
  • Everything in a request (system prompt, history, tool definitions, tool results, retrieved documents, and the output itself) shares one context window.
  • Long contexts dilute instructions: models use information in the middle of a long input less reliably than information at the start or end.
  • Logits become a probability distribution through softmax; temperature rescales it, and top-k and top-p truncate it before sampling.
  • Temperature 0 is not deterministic on hosted APIs because batching and floating-point effects change the computation, and some reasoning models fix or reject sampling parameters.

Skills: the candidate can

  • Implement Unicode normalization that runs before any string-level filter and feeds the same text to the model.
  • Calculate the effect of temperature, top-k, and top-p on a small token distribution.
  • Design evaluations that sample many times instead of trusting a single run.
  • Explain why critical instructions should not depend on their position in a long context.

1.2 How Models Learn Behavior

Knowledge

  • Pre-training on next-token prediction produces capability and knowledge, including harmful knowledge, with no preference for helpful or safe behavior.
  • Instruction tuning, preference training (RLHF, DPO, RLAIF/Constitutional AI), and reasoning RL shape behavior on top of that knowledge; stages can be skipped, reordered, or repeated.
  • RLHF maximizes a learned reward minus a KL penalty that keeps the policy close to a reference model, optimized through log-probabilities with a policy-gradient method such as PPO.
  • Safety behavior is a learned statistical preference, often concentrated in the first few output tokens, which is why prefill attacks and small fine-tuning runs can undo it.
  • Refusing to discuss something is not the same as not knowing it; no current method has been shown to reliably remove knowledge from weights.
  • Reasoning traces may not faithfully reflect the computation that produced an answer.
  • Providers control pre-training and base alignment; application builders control prompts, sampling, runtime controls, architecture, and, on some platforms, fine-tuning including preference fine-tuning.

Skills: the candidate can

  • Explain why a model's safety behavior is probabilistic and can change between model versions.
  • Design a release gate that measures safety before and after any fine-tuning.
  • Implement server-side conversation state so clients cannot supply assistant turns or prefills.
  • Identify which behaviors an application team can change and which it must compensate for with runtime controls.

1.3 The Instruction Hierarchy and the Single-Channel Problem

Knowledge

  • Chat messages are serialized into a single token sequence; role markers are tokens, not separate input channels.
  • The instruction hierarchy (system/developer > user > tool output and retrieved content) is trained behavior, not an enforcement mechanism or an attention weighting.
  • Tool results and retrieved documents carry no authority, but the model reads them with the same machinery it uses to read instructions.
  • There is no privileged channel that separates instructions from data, so no prompt-level equivalent of a parameterized query exists.
  • The single-channel property is the root cause of direct and indirect prompt injection.

Skills: the candidate can

  • Explain why a delimiter or a system-prompt rule reduces injection risk without eliminating it.
  • Design prompt assembly that keeps untrusted content out of the system role and marks it as data.
  • Identify which security properties must be enforced outside the model because the hierarchy cannot guarantee them.

1.4 Tools, Agents, Memory, and Retrieval

Knowledge

  • In tool calling the model only emits a structured request; the application parses it, decides whether to run it, executes it with some identity, and returns the result as more context.
  • An agent is a loop of model calls and tool executions that continues until a stop condition; each iteration can add untrusted content to the context.
  • Memory comes in three forms: the context window, summaries or compaction of earlier context, and long-term external stores; each can carry injected instructions forward.
  • RAG embeds a query, retrieves the nearest stored chunks by vector similarity, and inserts them into the context; similarity says nothing about authority, accuracy, or access rights.
  • MCP is a JSON-RPC 2.0 protocol in which servers expose tools, resources, and prompts to a host application; tool descriptions enter the model's context and are untrusted unless the server is trusted.

Skills: the candidate can

  • Trace a tool call from model output to execution and identify every check the application performs.
  • Implement an agent loop with a step budget, tool allowlist, argument validation, and authorization that fails closed.
  • Design retrieval that enforces the requesting user's access rights at query time.
  • Explain where memory and retrieval let untrusted content persist or cross user boundaries.

1.5 Anatomy of a Production AI System

Knowledge

  • A production AI system includes a gateway, an orchestrator or harness, one or more models, retrieval, tools, memory, a control plane, and logging, and the model is usually the smallest part of the code.
  • Chat, RAG, agent, and multi-model patterns differ in where untrusted content enters and where model output turns into action.
  • Provider-side controls (alignment, platform filters, abuse monitoring) apply generic policy and cannot see the application's users, data, or authorization rules.
  • Guardrails can attach at ingress, prompt assembly, model input, model output, tool calls, tool results, retrieval, memory writes, egress, and the control plane.
  • Controls that sit outside the model and outside the paths the model can influence are the ones that still hold if the model is fully compromised.

Skills: the candidate can

  • Map an AI application's components, data flows, and trust boundaries.
  • Identify where untrusted text enters the context and where model output becomes an action or leaves the system.
  • Assign each guardrail to an attachment point and a control layer, and find paths that bypass it.
  • Explain which risks the provider's controls cover and which the application team owns.

Domain 2: Risk and Threat Modeling (15%)

2.1 Safety, Security, and Containment

Knowledge

  • Safety covers failures with no adversary (harmful output, hallucination, sycophancy, over-refusal, overreach); reliability failures such as hallucination and drift are a sub-class of safety.
  • Security covers an adversary gaining or abusing authority, most often by borrowing authority it does not hold in the system/developer > user > tool/retrieved-content hierarchy.
  • Containment covers cause-agnostic controls that limit, observe, and stop a model whatever the reason it misbehaves, and these controls must sit outside the model.
  • A failure is classified twice: by mechanism (how it happened) and by impact (what harm it did); a jailbreak is a security mechanism with a safety impact.
  • The control-strength ladder: model < prompt < runtime ML < deterministic < human, where strength means how much of the control's guarantee survives a fully compromised model.
  • Probabilistic controls reduce how often failures happen; deterministic architecture bounds how bad a failure can get.

Skills: the candidate can

  • Classify a failure or incident by mechanism category, impact category, and the strongest control layer currently addressing it.
  • Explain why a control expressed only in a prompt or a classifier cannot bound the impact of a compromised model.
  • Design a control set for a high-impact action that places at least one control at the deterministic or human layer.
  • Identify which containment controls apply to a system regardless of whether the failure cause is safety or security.

2.2 Principals, Authority, and Trust Boundaries

Knowledge

  • The principals in an LLM system: operator, developer, end user, tenant, tool, retrieved content (and its author), other agents, the model provider, and the model itself.
  • Authority comes from authentication and configuration, never from the content of a message; text must not be able to raise its own privilege.
  • An agent acting for a user should hold no more authority than the intersection of the user's permissions and the task's needs.
  • A trust boundary exists wherever data or instructions move between principals with different authority, including tool results flowing back into context and model output flowing to users and downstream systems.
  • Memory stores, logs, caches, and the model provider are data flows that threat models commonly miss.

Skills: the candidate can

  • Enumerate the principals for a given AI system and assign each a source of authority and a trust level.
  • Draw a data-flow diagram that marks every trust boundary, including model output to browsers and tools, and tool results back into context.
  • Implement session and tenant isolation keyed on authenticated identity.
  • Explain why provenance labels in the prompt are useful but do not enforce a boundary.

2.3 The Failure Mode Catalog

Knowledge

  • Safety failures: hallucination, harmful content, over-refusal, sycophancy, off-scope behavior, overreach, package hallucination, and behavior drift after provider model updates.
  • Security failures: direct, indirect, and multimodal prompt injection; jailbreaking; data leakage (system prompt, training data, context, cross-tenant); improper output handling; data and model poisoning; supply-chain compromise; memory poisoning.
  • Containment failures: excessive agency, unbounded consumption (including denial of wallet), and cascading agent failures, whatever their cause.
  • Named jailbreak families: GCG adversarial suffixes, many-shot, Crescendo (multi-turn), PAIR and TAP (automated attacker-LLM search), and low-resource-language attacks; and divergence-based training data extraction.
  • Self-reported model confidence is poorly calibrated, even though probing research finds internal signals that correlate with truthfulness.
  • About 250 poisoned documents were enough to backdoor models from 600M to 13B parameters in a 2025 study, and RAG corpus poisoning needs only edit access to an indexed source.

Skills: the candidate can

  • Classify a new failure by mechanism and impact using the catalog.
  • Explain the mechanism of each catalog entry precisely enough to choose its primary control layer.
  • Distinguish prompt injection from jailbreaking, and improper output handling from data leakage.
  • Map an incident to the catalog entries it combines.

2.4 Threat Frameworks and Standards

Knowledge

  • The OWASP Top 10 for LLM Applications 2025 entries LLM01-LLM10, with LLM10 Unbounded Consumption, and that OWASP published a reordered 2026 edition in August 2026.
  • The OWASP Top 10 for Agentic Applications for 2026 (published December 2025) covers agent-specific risks such as goal hijack, tool misuse, memory and context poisoning, cascading failures, and rogue agents.
  • MITRE ATLAS is a knowledge base of adversary tactics, techniques, and case studies against AI systems, modeled on ATT&CK.
  • NIST AI RMF 1.0 (January 2023) defines the Govern, Map, Measure, and Manage functions; NIST AI 600-1 (July 2024) is its Generative AI Profile with 12 risk categories.
  • STRIDE elicits security threats per data-flow element and must be supplemented with the catalog to find safety failures.
  • Frameworks are vocabularies and checklists for coverage, not control sets; mappings between them are many-to-many.

Skills: the candidate can

  • Map failure mode catalog entries to OWASP 2025 IDs, ATLAS technique IDs, and NIST AI 600-1 risk categories, with versions.
  • Apply STRIDE to each element and boundary of an LLM data-flow diagram.
  • Choose the right framework for an audience: engineers, red teams, risk committees, or auditors.
  • Build a coverage check that flags framework entries with no threat-model entry.

2.5 Assume Compromise: Blast-Radius Analysis

Knowledge

  • The design test: if the model were fully compromised or misaligned, what is the worst it could do?
  • The reasons to assume compromise: injection is unsolved, safety training is a statistical preference, weights and data can be poisoned, and models make consequential mistakes with no adversary.
  • The insider-risk model treats the model like a privileged insider: least privilege, separation of duties, monitoring, and the ability to revoke access and stop it.
  • The lethal trifecta (Willison, June 2025): access to private data, exposure to untrusted content, and the ability to communicate externally; removing any one leg blocks this class of exfiltration.
  • Reducing likelihood (classifiers, prompts, model choice) and reducing blast radius (permissions, egress, approvals, budgets, reversibility) are different levers, and only the second bounds the worst case.

Skills: the candidate can

  • Perform a blast-radius analysis: inventory capabilities, assume attacker-chosen output, and state the worst outcome per capability.
  • Identify the lethal trifecta in an agent design, including non-obvious exfiltration channels, and choose which leg to break.
  • Redesign an agent to reduce its blast radius without removing its core function.
  • Explain to stakeholders why a high classifier block rate does not change the worst-case outcome.

2.6 Risk Scoring and Threat Model Documents

Knowledge

  • Likelihood and impact both depend on the use case: the same failure mode scores differently in different deployments.
  • For safety failures, likelihood is an observed rate times volume; for security failures, likelihood depends on exposure, attacker effort, and motivation, because an adaptive attacker retries.
  • Severe, irreversible impacts need a deterministic or human control regardless of the likelihood score.
  • A threat model document records scope, versions, data flows, principals, assets, threats with scores and controls, assumptions, accepted risks, owners, and review triggers.
  • Risk acceptance is signed by an accountable business owner with authority over the consequence, is time-limited, and is recorded.
  • Threat models must be revised on model, prompt, tool, data-source, user-population, and framework changes, and after incidents.

Skills: the candidate can

  • Score a set of threats for a given use case and justify each likelihood and impact rating.
  • Prioritize mitigations using scores plus the irreversibility rule.
  • Write a threat model document using a standard template.
  • Implement checks that flag a threat model as stale when the deployed system drifts from it or acceptances expire.

Domain 3: Security Engineering (20%)

3.1 Prompt Injection

Knowledge

  • Prompt injection is untrusted content borrowing the authority of a trusted principal, made possible because instructions and data share one token stream.
  • Direct injection comes from the user turn; indirect injection arrives through retrieved documents, tool results, emails, or web pages; multimodal injection hides instructions in images or audio.
  • Prompt injection attacks the application's trust boundary; jailbreaking attacks the model's safety training. They often co-occur but need different controls.
  • No equivalent of parameterized queries exists for prompts; delimiters and instructions reduce attack success but do not separate code from data.
  • Injection detectors are probabilistic, can themselves be injected, and adaptive attacks have bypassed most published defenses.
  • The impact of an injection is bounded by what the model can read and do, not by how good the detector is.

Skills: the candidate can

  • Explain to a stakeholder why prompt injection cannot be patched like SQL injection.
  • Classify a reported attack as direct, indirect, or multimodal injection, or as a jailbreak, and name the control layer that addresses it.
  • Identify every path by which untrusted content enters a model's context in a given system.
  • Evaluate an injection-detection vendor claim against adaptive-attack evidence.

3.2 Architectural Defenses Against Injection

Knowledge

  • The lethal trifecta: an agent with private data, exposure to untrusted content, and an external communication channel can be made to exfiltrate; removing any one leg breaks the attack.
  • Dual-LLM (Willison, 2023): a privileged model with tools never sees untrusted text; a quarantined model without tools processes it; a non-LLM controller passes opaque references between them.
  • Plan-then-execute fixes the sequence of tool calls before untrusted content is read, so injected text cannot add or reorder actions, though it can still influence arguments.
  • CaMeL (Debenedetti et al., 2025) separates control flow from data flow and attaches capabilities to values so a policy engine can block flows of private data to unauthorized sinks.
  • Taint tracking labels every value with its origin and permitted readers and enforces policy at tool-call time in deterministic code.
  • Spotlighting (Hines et al., 2024) marks untrusted content by delimiting, datamarking, or encoding; it lowers attack success but is a prompt-layer control.

Skills: the candidate can

  • Analyze an agent design for the lethal trifecta and choose which leg to remove.
  • Design a dual-LLM or plan-then-execute flow for a given task, including what the controller stores and what each model sees.
  • Implement a taint-tracking policy check that blocks private or untrusted data from reaching an external sink.
  • Explain the utility cost of each pattern and when a simpler pattern is enough.

3.3 Input Handling

Knowledge

  • Unicode NFKC folds compatibility forms (full-width letters, ligatures) but does not remove zero-width or Tags-block characters and does not map cross-script homoglyphs; those need separate stripping and a UTS #39 confusables skeleton.
  • Rate limits before authentication must key on something the server observes (client IP from a trusted proxy); limits keyed on user identity belong after authentication.
  • Oversized request bodies are rejected with HTTP 413 Content Too Large before parsing; token limits are checked after normalization.
  • Delimiters only help if untrusted content cannot reproduce them: escape the content and use a per-request random boundary.
  • Injection detection is one probabilistic layer; narrow patterns miss paraphrases and broad patterns flag benign text.
  • System prompts are requests, not enforcement, and must contain no secrets (OWASP LLM07:2025).

Skills: the candidate can

  • Implement a normalization function that produces both a model-bound text and scan views that defeat common Unicode and encoding evasions.
  • Implement correctly keyed pre-auth and post-auth rate limits and size limits in the right order.
  • Implement prompt assembly that escapes untrusted content, uses randomized boundaries and datamarking, and keeps it out of the system role.
  • Write a defensive system prompt and explain what it can and cannot do.

3.4 Output Handling and Egress Control

Knowledge

  • Model output is attacker-influenced whenever untrusted content reached the context, so it must be encoded or validated for every downstream interpreter (OWASP LLM05:2025).
  • Rendered markdown images are fetched automatically, so a model-written image URL with data in its query string exfiltrates with zero clicks; links need one click.
  • Sanitize the rendered HTML, not the markdown source, so reference-style links and images cannot slip past a markdown-level filter.
  • URL allowlists must compare the parsed hostname exactly, require https, and treat query strings on allowed hosts as a possible channel.
  • A content security policy (img-src, connect-src) is a browser-enforced backstop, but any allowed domain that can relay requests becomes an exfiltration path.
  • SSRF defenses for model-chosen URLs combine allowlists, resolved-IP checks, no automatic redirects, and an egress proxy that enforces policy at connect time.

Skills: the candidate can

  • Implement safe rendering of model output with a markdown renderer that disables raw HTML and an allowlist-based HTML sanitizer.
  • Design a database or shell integration where the model supplies parameters, never executable syntax.
  • Implement URL validation for a model-driven fetch tool and route it through an egress proxy.
  • Write a content security policy for a chat interface that blocks image-based exfiltration.

3.5 Data Protection and Isolation

Knowledge

  • Retrieval authorization belongs inside the search query, built from the caller's authenticated identity, so unauthorized chunks never become candidates; post-retrieval checks are a second layer, not the primary one.
  • Tenant and session isolation fail through shared caches, shared indexes without enforced filters, and memory stores keyed on anything other than the verified principal.
  • PII detection combines regex with validation (checksums, context), NER for unstructured identifiers, and purpose-built detector frameworks; all have false negatives.
  • Redaction removes a value, masking hides part of it, tokenization replaces it with a reversible token held in a vault, and keyed HMAC produces a stable pseudonym; pseudonymized data is still personal data under GDPR.
  • Logs should record PII types, counts, and keyed pseudonyms, never matched values.
  • Regulatory scope differs: GDPR has six lawful bases, CCPA counts IP addresses as personal information, and HIPAA's 18 identifiers define the Safe Harbor de-identification method.

Skills: the candidate can

  • Implement retrieval with an authorization filter built from a verified principal.
  • Implement PII detectors whose validation runs before any match is emitted.
  • Design a redaction, masking, or tokenization strategy per data type and destination.
  • Implement keyed pseudonymization and privacy-preserving logging.
  • Design per-user memory stores with provenance and deletion.

3.6 Identity and Delegation

Knowledge

  • A confused deputy is a program with more authority than its caller that can be tricked into using that authority for the caller; an agent with a service credential is one by default.
  • Delegated (per-user) credentials limit an agent to what the user can do; service credentials need their own per-request authorization of the end user.
  • OAuth scopes should be minimal and requested incrementally; tokens should be short-lived and audience-bound (RFC 8707 resource indicators).
  • The MCP authorization specification forbids token passthrough: an MCP server must accept only tokens issued for itself and must obtain separate tokens for upstream APIs.
  • Authorization decisions are made by the tool backend from the verified token, never by the model or from model-supplied identity arguments.
  • Recipient and domain allowlists must compare exact parsed values, not suffixes or substrings.

Skills: the candidate can

  • Design the credential flow for an agent that acts for many users across several downstream APIs.
  • Implement token validation in a tool backend that checks signature, issuer, audience, expiry, and scope, and derives identity from the token.
  • Explain why token passthrough breaks audit and audience boundaries, and use token exchange instead.
  • Implement an exact-match recipient domain allowlist.

3.7 AI Supply Chain Security

Knowledge

  • Pickle-based model files can execute arbitrary code when loaded; safetensors stores tensors without executable content.
  • Model provenance is weak by default: names and model cards do not prove origin; signing, hashes, and pinned revisions do.
  • A small number of poisoned documents can steer RAG answers (PoisonedRAG); corpora need ingestion controls like any other input.
  • MCP tool descriptions are read by the model and can carry injected instructions (tool poisoning); a server can change them after approval (rug pull); one server's descriptions can alter how the agent uses another server's tools (shadowing).
  • Extensions and plugins inherit the privileges of the host and the build pipeline that produced them; a compromised release pipeline ships malicious code to every user.
  • Pinning, hashing, review, and allowlisting turn third-party components from moving targets into reviewed versions.

Skills: the candidate can

  • Implement model loading that pins a revision, verifies a hash, and refuses pickle formats.
  • Implement tool-definition pinning that detects MCP rug pulls and fails closed.
  • Design an intake process for third-party models, datasets, MCP servers, and extensions.
  • Explain which supply-chain risks deterministic controls address and which need review and monitoring.

Domain 4: Safety Engineering (20%)

4.1 Content Policy as a Specification

Knowledge

  • A content policy is the specification every safety control is built and tested against; a policy that two reviewers apply differently will not be enforced consistently by any detector.
  • A harm taxonomy names categories with definitions, inclusion and exclusion criteria, and an owner; categories must be specific enough to map to a detector and an action.
  • Three tiers (allowed, needs-care, disallowed) map better to real traffic than allow/block, because most sensitive requests deserve a careful answer rather than a refusal.
  • Worked examples and boundary pairs (near-identical requests on either side of a line) are the most useful part of a policy for labelers, judges, and test suites.
  • The same text can be acceptable in one deployment and not in another; deployment context belongs in an explicit overlay, not in reviewers' heads.
  • Policies change, so each version needs an identifier, a changelog, and an evaluation set that is re-run before the change ships.

Skills: the candidate can

  • Write a policy entry with a definition, tier rules, actions, and at least one boundary pair.
  • Design deployment overlays that tighten or relax a base policy without forking it.
  • Implement a policy-as-configuration lookup that fails closed on unknown categories.
  • Explain how a policy version links to detector thresholds, judge prompts, and regression tests.

4.2 Detection and Classification

Knowledge

  • Each detector family has a characteristic failure: rules miss paraphrase, classifiers miss what they were not trained on, embedding similarity misses novel attacks, and judges are slow, biased, and injectable.
  • A raw classifier score is not a probability until it is calibrated on data resembling production; an LLM's self-stated confidence is not calibrated at all.
  • Thresholds are chosen from the measured costs of false positives and false negatives at the production base rate, and a layered pipeline needs two of them: an allow threshold and a block threshold, with the band between going to the next stage.
  • A cheap-to-expensive pipeline saves cost only if the expensive stage receives the ambiguous band and nothing else.
  • An LLM judge reads the content it is judging, so that content can try to instruct it; delimiters must be randomized or escaped and the judge's output parsed strictly.
  • Integration can be in-process (SDK or library), a proxy or sidecar per application, or an organization-wide gateway; a gateway is only mandatory if model credentials and network egress force traffic through it.

Skills: the candidate can

  • Design a layered detection pipeline with explicit confidence bands and a defined action for each band.
  • Implement keyword rules with normalization and an allowlist that suppresses only the overlapping blocklist match.
  • Implement an LLM judge prompt with randomized boundaries and fail-closed parsing.
  • Choose thresholds from a labeled validation set and explain the precision and recall tradeoff they encode.
  • Choose between SDK, proxy, and gateway integration and between building and buying each tool category.

4.3 Groundedness and Hallucination

Knowledge

  • Hallucination is a structural property of next-token prediction and of training and evaluation that reward guessing over abstaining; it can be reduced and contained, not switched off.
  • Retrieval grounding helps only when the right source is retrieved and the model uses it; it fails when retrieval misses, sources conflict, or the model answers from its parameters anyway.
  • Support checking extracts atomic claims and tests each against source text with an NLI model or a judge; NLI models have short input limits (often around 512 tokens), so sources must be chunked and checked per chunk with max aggregation.
  • Citation verification is deterministic: a cited source ID must be in the retrieved set and a quoted span must appear in that source.
  • Groundedness must be checked on the unredacted answer against the unredacted sources, before redaction and before presentation changes such as disclaimers.
  • Abstention ('I don't know') must be designed in: a retrieval floor, a schema field for insufficient information, and a useful next step for the user.

Skills: the candidate can

  • Implement per-claim, per-chunk support checking that handles empty inputs and enforces the checker's input limit.
  • Implement deterministic citation verification for IDs and quoted spans.
  • Order output checks so that groundedness, validation, redaction, and presentation do not interfere with each other.
  • Design abstention behavior and escalation for high-stakes domains such as legal, medical, and policy answers.

4.4 Over-Refusal and Refusal Design

Knowledge

  • Over-refusal (refusing or watering down a request that policy allows) is a safety failure with measurable cost: lost users, workarounds to less safe tools, and support load.
  • Over-refusal comes from surface-level triggers in safety training, recall-oriented thresholds, prompt-level safety instructions, and stacked guardrails that each add false positives.
  • Benchmarks such as XSTest and OR-Bench measure refusal of safe prompts, and published results show safety and over-refusal moving together across models.
  • A deployment needs its own benign evaluation set, stratified by policy category, with refusal judged by labels or a validated judge rather than by string matching.
  • Refusal responses should be deterministic templates that do not reveal detector names, scores, thresholds, or system prompts, while still telling the user what they can do next.
  • Safe completion (answering the safe part) and redirection usually serve users better than a bare refusal; escalation to a person must be a real path, not a dead end.

Skills: the candidate can

  • Measure over-refusal on a stratified benign set and report it alongside harmful-output rate.
  • Design refusal templates for each policy action that are helpful and do not leak internals.
  • Design a human escalation path with context handoff and a fallback when no human is available.
  • Diagnose which guardrail layer is responsible for an observed over-refusal.

4.5 Sycophancy, Manipulation, and Vulnerable Users

Knowledge

  • Sycophancy is a learned tendency to tell users what they want to hear; preference data and preference models can reward it, and optimizing for short-term user approval can amplify it.
  • Sycophancy is measured with behavioral evaluations (answer flips under pushback, answers that track the user's stated opinion), not by asking the model whether it is sycophantic.
  • Vulnerable users include people in crisis, minors, people forming emotional reliance on an assistant, and anyone acting on high-stakes advice; each needs different handling.
  • Crisis-signal detection must work at conversation level, and routing to human resources should have a low threshold because the response is supportive rather than a refusal.
  • Safety behavior can weaken over long conversations, so controls that run outside the model matter more as conversations get longer.
  • Regulators have begun to act on companion chatbots and minors (for example, California SB 243 in 2025 and a 2025 FTC inquiry), so these controls are increasingly compliance requirements.

Skills: the candidate can

  • Design a sycophancy evaluation and make behavioral regressions launch-blocking.
  • Implement conversation-level crisis-signal routing that adds localized resources and escalates, and that behaves safely when the classifier fails.
  • Design a stricter policy overlay for minors and for medical, legal, and financial advice.
  • Identify engagement-driven design patterns that manipulate users and propose alternatives.

4.6 Structured Output Enforcement

Knowledge

  • A schema is a deterministic contract on the shape of model output; validation either passes or fails, which makes it one of the few guardrails that behaves the same on every request.
  • Strict validation forbids unknown fields, requires every safety-relevant field with no default, and rejects unknown tool names, so that missing or unexpected data fails closed.
  • JSON mode produces syntactically valid JSON but not schema-valid JSON; function calling constrains structure only when the provider's strict mode is on, and strict modes support a subset of JSON Schema.
  • Constrained decoding makes schema-valid output much more likely but still fails on max-token truncation, refusals, and unsupported schema features, so post-hoc validation is still required.
  • Retries are for validation failures (immediate, with error feedback, bounded) and for transient API errors (with backoff, bounded); mixing the two wastes time or retries forever.
  • Templates keep presentation out of the model's control, but every model-controlled field inserted into a template still needs encoding for its destination.

Skills: the candidate can

  • Write a strict schema model that forbids extra fields and has no fail-open defaults.
  • Implement output parsing that handles refusals, truncation, and invalid JSON without crashing or guessing.
  • Implement bounded retry logic that separates validation failures from API errors and falls back safely.
  • Implement template rendering with context-appropriate output encoding.

4.7 Streaming, Latency, and Failure Behavior

Knowledge

  • Streaming trades safety for perceived latency: a check can only run on text it has seen, so unbuffered streaming shows text before it is checked and buffered streaming must still check the final segment before releasing it.
  • Retraction (removing text already shown) limits damage but does not undo it; the user may have read or copied the text, and downstream consumers may have acted on it.
  • Input checks can run in parallel with generation if output is held until the check passes and no side effects (tool calls) start before it does.
  • Every check needs a timeout and a defined result when it times out or errors; whether that result is allow, block, or a supportive fallback depends on the risk of the category, decided in advance.
  • A circuit breaker moves from closed to open after repeated failures, from open to half-open when a reset timer elapses, and from half-open to closed only when a trial request succeeds (or back to open when it fails).
  • Routing traffic judged low-risk to a cheaper model with weaker guardrails gives attackers an incentive to look low-risk; keep the guardrail floor the same on every route.

Skills: the candidate can

  • Implement a buffered streaming guard with a hold-back window, context overlap, and an end-of-stream check.
  • Implement speculative generation that runs the input check in parallel and cancels generation on failure.
  • Assign fail-open, fail-closed, or fallback behavior to each guardrail by risk, and make degraded operation visible.
  • Implement a circuit breaker with correct state transitions around a guardrail dependency.
  • Set per-stage latency and cost budgets and explain the safety cost of each shortcut.

Domain 5: Agent Containment and Control (15%)

5.1 Least Privilege for Agents

Knowledge

  • Why the insider-risk model treats a capable model as a privileged actor that can err or be compromised, regardless of intent
  • The three root causes of excessive agency in OWASP LLM06:2025: excessive functionality, excessive permissions, and excessive autonomy
  • Why a constraint on a model-declared parameter (such as an 'operation' field) is not a control, and what the backend-enforced equivalent is
  • How exact parsed-domain matching differs from suffix or substring matching for recipient allowlists
  • Why session-level taint tracking is needed once private data has entered the context window
  • How task-scoped, short-lived credentials narrow the blast radius of a single session

Skills: the candidate can

  • Design a per-task tool set that separates read tools from write and egress tools
  • Implement backend-enforced parameter constraints using database roles, exact-match allowlists, and server-side identity
  • Implement a session guard that decides before it updates state and tracks taint from tool metadata, not model claims
  • Explain, for a given agent, the worst it could do if fully compromised and which permission to remove first

5.2 Sandboxing and Egress Isolation

Knowledge

  • The isolation spectrum: process sandboxing, containers, user-space kernels such as gVisor, and microVMs such as Firecracker, and what each shares with the host
  • Why a standard container shares the host kernel and is not by itself a strong boundary against hostile code
  • Why filesystem and network isolation are both required, and how each fails without the other
  • Default-deny egress through a proxy outside the sandbox, including DNS, metadata endpoints, and private address ranges
  • Why secrets are brokered from outside the sandbox and never mounted into it
  • Sandbox escape as a documented, realistic threat, including the 2026 OpenAI evaluation incident that reached Hugging Face

Skills: the candidate can

  • Select an isolation technology for a given workload and threat model and justify the choice
  • Configure a sandbox with no ambient network, a read-only root, dropped capabilities, and resource limits
  • Implement an egress proxy policy with exact host allowlisting and resolved-address checks
  • Design a credential broker so tool calls are authenticated outside the sandbox

5.3 Action Gating and Human Approval

Knowledge

  • How to assign risk tiers to actions using reversibility, blast radius, and data sensitivity
  • Why approvers must see the actual action, parameters, diff, and affected data, and why the model's explanation is not evidence
  • How approval binding (hashing the exact action, single use, expiry) prevents approve-then-swap attacks
  • What approval fatigue is, how it shows up in metrics, and the design choices that reduce it
  • How dry-run, staged execution, and compensating actions turn irreversible operations into reviewable ones

Skills: the candidate can

  • Design a tiered action policy for an agent, including which tier is prohibited outright
  • Implement an approval request that is generated by the harness and bound to the exact action that will execute
  • Design a plan/apply workflow with a dry run and a compensating action for each reversible write
  • Explain how to measure and reduce approval fatigue without removing the human check

5.4 Budgets and Resource Limits

Knowledge

  • The budget dimensions for an agent run: steps, tokens, cost, wall-clock time, tool-call rate, and per-tool caps
  • Unbounded consumption and denial-of-wallet as defined in OWASP LLM10:2025
  • Why budgets are enforced by the harness and gateway and not requested of the model
  • How reserve-then-settle accounting prevents concurrent calls from overshooting a cost cap
  • Loop and no-progress detection using canonical action fingerprints
  • Why per-tenant quotas must key on authenticated identity

Skills: the candidate can

  • Design a layered budget for an agent: per step, per run, per user, per tenant, and global
  • Implement a budget ledger with atomic reservation and settlement
  • Implement a loop detector that stops repeated or non-progressing actions
  • Explain what an agent should do when a budget is exhausted, and why it fails closed

5.5 The Emergency Brake

Knowledge

  • The difference between pause, stop, and kill, and what each means for in-flight actions, credentials, and resumability
  • Who should be authorized to engage the brake and why restart requires more authority than stopping (two-person rule)
  • Why the brake is enforced in the harness and control plane and never through the prompt
  • How lease-based, short-lived credentials make revocation a hard kill and act as a dead-man's switch
  • How checkpoints at step boundaries, write-ahead intent records, idempotency keys, and compensating actions handle work interrupted mid-task
  • Why the agent must hold no tool, credential, or code path that can disable, delay, or route around the brake

Skills: the candidate can

  • Design pause, stop, and kill semantics for a specific agent, including its safe state
  • Implement a harness loop that checks a control-plane brake between steps and before every side effect
  • Implement lease-bound credentials that expire unless renewed by a running, unbraked run
  • Plan and run a brake drill that measures time to halt and verifies no actions after the brake

5.6 External Control Plane and Tamper-Proof Audit

Knowledge

  • The reference monitor concept from Anderson (1972): always invoked, tamper proof, and small enough to verify
  • Why the controls on what a model can access and do must sit outside the model, and what 'separating the model from the harness and action space' means in an architecture
  • The difference between tamper-evident and tamper-proof logs, and why a hash chain needs an external anchor
  • Why the evidence of what an agent did must come from the action path and the resource, not from the model's self-report
  • Why no model should verify its own work, and what independent verification looks like (deterministic checks, a different verifier, humans)
  • Documented cases of models tampering with their own scoring or misreporting outcomes

Skills: the candidate can

  • Design an agent architecture with a policy decision point and a tool gateway that every action must pass through
  • Implement an append-only, hash-chained audit log with an external anchor and a verification routine
  • Design a verification step that reproduces an outcome from systems of record without relying on the model's attestation
  • Explain which components the model must never be able to write to

5.7 Multi-Agent Systems, Memory, and Monitoring

Knowledge

  • Why messages between agents are untrusted data and why delegation must attenuate authority rather than pass it on
  • How memory poisoning works, what must never be stored, and why recalled memory never enters the system role
  • The risks specific to long-running autonomy: drift, lost constraints after context compaction, accumulated taint, and outliving the original approval
  • What chain-of-thought monitoring can catch, why reasoning is often unfaithful, and why optimization pressure can teach models to hide intent
  • Behavioral anomaly signals computed from actions rather than from the model's text
  • Why containment requirements grow with capability, including evidence that models behave differently when they believe they are being tested

Skills: the candidate can

  • Design delegation between an orchestrator and sub-agents with attenuated, run-scoped authority and a shared brake
  • Implement a memory store with provenance, a write gate, and recall as labeled data in a non-system role
  • Design a monitoring stack that combines action-based anomaly detection with chain-of-thought monitoring, with known limits for each
  • Explain how a containment design should change as agent capability and autonomy increase

Domain 6: Evaluation and Red Teaming (12%)

6.1 Designing Evaluations

Knowledge

  • Safety is measured with evaluations on representative, mostly non-adversarial traffic (harm rate, over-refusal rate, grounding rate); security is measured with red teaming against adaptive adversaries (attack success rate).
  • An evaluation program needs at least three sets: a representative benign set, a borderline set that probes over-refusal, and an adversarial set, each versioned and stratified.
  • Labels come from a written labeling guideline derived from the content policy, and their reliability is measured with inter-annotator agreement such as Cohen's kappa, not raw percent agreement.
  • Contamination (evaluation items leaking into prompts, few-shot examples, classifier training data, or model pre-training) inflates scores and must be prevented with held-out splits, deduplication, and rotation.
  • Synthetic probes sent through production must be tagged by an authenticated channel so they can be excluded from production metrics without changing how they are enforced.

Skills: the candidate can

  • Design a benign, borderline, and adversarial evaluation set for a guardrail, stratified to match production traffic.
  • Write a labeling guideline with worked examples and measure annotator agreement with Cohen's kappa.
  • Detect and prevent contamination between evaluation data and anything the system under test learns from.
  • Implement probe tagging that keeps synthetic traffic out of production metrics without creating a bypass.

6.2 Metrics and Statistics

Knowledge

  • Precision, recall, F1, false positive rate (FPR), and false negative rate (FNR) are computed from the confusion matrix; user friction is measured by FPR and the over-refusal rate, not by precision.
  • When attacks are rare, a classifier with high recall and low FPR can still have low precision, because false positives are drawn from a far larger benign population.
  • Attack success rate (ASR) is successes divided by attempts over N trials per goal, with success judged on the system's response or action, reported with a confidence interval.
  • A Wilson score interval gives a usable confidence interval for a rate, including when zero or few events are observed; sample size determines how narrow it can be.
  • ROC curves suit threshold comparison when classes are balanced; precision-recall curves are more informative when positives are rare; thresholds are chosen against an explicit FPR budget or cost model.
  • Latency is reported as percentiles computed correctly (p99 is the latency that 1 in 100 requests exceeds), and cost per evaluation must be multiplied out per stage and checked.

Skills: the candidate can

  • Compute precision, recall, F1, FPR, and FNR from labeled results and explain what each means for users and attackers.
  • Work a base-rate example showing expected precision at a realistic production attack rate.
  • Implement an ASR calculation over multiple trials with a Wilson confidence interval.
  • Select a classifier threshold from a score distribution using an FPR budget and justify it with a PR curve.
  • Estimate the daily and monthly cost of a layered detection pipeline and verify the arithmetic.

6.3 Validating Judges and Classifiers

Knowledge

  • An LLM judge or classifier is a measuring instrument; its agreement with adjudicated human labels must be measured per class (recall on the harmful class, false positive rate on the benign class, and kappa), not as overall accuracy.
  • Documented LLM-judge biases include position bias, verbosity bias, and self-preference (self-enhancement), and each has a specific test.
  • Judges read the text they grade, so that text can carry instructions or adversarial phrases that inflate scores; absolute scoring has been shown to be more vulnerable than comparative assessment.
  • Judge and classifier behavior drifts when the underlying model, prompt, or traffic changes, so versions are pinned and agreement is re-measured on a fixed canary set.
  • A model never grades its own outputs: the judge is a separate, independently validated component, and where an outcome can be checked deterministically, it is.

Skills: the candidate can

  • Build a human-labeled validation set and compute a judge's per-class agreement and Cohen's kappa against it.
  • Design tests for position, verbosity, and self-preference bias.
  • Measure a judge's adversarial robustness with injected instructions and report the flip rate.
  • Set up drift monitoring that re-validates a judge on every model or prompt change.

6.4 Red Team Engagements

Knowledge

  • Red teaming measures security against an adaptive adversary; its output is attack success rate per goal and a set of rated findings, and a low ASR is a lower bound on what a stronger attacker achieves, not proof of robustness.
  • Jailbreaks work through two mechanisms identified by Wei et al. (2023): competing objectives (helpfulness or instruction-following versus safety) and mismatched generalization (capabilities that reach domains safety training did not cover).
  • Major attack families include gradient-optimized suffixes (GCG), attacker-LLM search (PAIR, TAP), many-shot jailbreaking, multi-turn escalation (Crescendo), encodings, and low-resource languages; automated attacks are stochastic, not deterministic.
  • Tools fall into categories: probe scanners (e.g. garak), attack orchestration frameworks (e.g. PyRIT), evaluation harnesses with red-team plugins (e.g. promptfoo), and benchmarks (e.g. HarmBench, JailbreakBench).
  • Findings are rated on exploitability (theoretical, demonstrated under lab conditions, practically exploitable) and impact, and are mapped to MITRE ATLAS and the OWASP Top 10 for LLM Applications (2025).
  • Weaknesses in a third-party model or guardrail product are reported to the vendor through coordinated disclosure, with working payloads handled as sensitive until fixed.

Skills: the candidate can

  • Plan a red team engagement with objectives, scope, rules of engagement, and a success rubric agreed before testing.
  • Select manual and automated attack techniques by mechanism and choose tools by category.
  • Implement an attack runner that judges success on the response or action over N trials and reports ASR with a confidence interval.
  • Rate findings for exploitability and severity and write a reproducible, actionable report.
  • Explain when and how to disclose a finding to a model or guardrail vendor.

6.5 Red Teaming Agents and Multimodal Systems

Knowledge

  • For agents, the harm is the action: success is measured by inspecting environment state (emails sent, records changed, money moved), not by reading the agent's text.
  • Agent red teaming uses stateful environments with tools, seeded data, and injection points, in the style of AgentDojo, and reports benign utility, utility under attack, and targeted attack success rate together.
  • Indirect injection reaches agents through any content they process: retrieved documents, web pages, emails, tool outputs and descriptions, images, and audio.
  • Testing an agent with the model replaced by a scripted adversary measures what the deterministic layer permits, which answers the design question of what a fully compromised model could do.
  • The emergency brake and approval flows are controls that must be tested like any other: stop latency, in-flight actions, tamper resistance, and whether approvers see the real action.

Skills: the candidate can

  • Design an agent red-team environment with fake backends, canary data, and state-based success oracles.
  • Construct indirect injection test cases across document, web, image, and audio channels.
  • Implement a compromised-model harness that tests tool-backend authorization directly.
  • Design tests for the emergency brake and for human approval flows.

6.6 Regression Testing and CI

Knowledge

  • A useful guardrail test is one that fails when the guarded behavior breaks; assertions that accept every possible outcome test nothing, and known gaps are recorded as strict expected failures.
  • Pipeline ordering is verified by mocking expensive stages and asserting whether they were called; fail-closed behavior is verified by injecting stage errors and timeouts.
  • Session isolation (one session cannot see another's data) and authorization (a caller can only do what its identity allows) are different properties and need different tests.
  • Every incident and red-team finding becomes a regression test, deterministic where possible and statistical (N trials with an ASR bound) where the behavior is probabilistic.
  • CI is tiered: fast deterministic tests on every commit, broader suites on pull requests, and full evaluation, red-team automation, judge canaries, and performance runs nightly and before release.
  • Latency is measured with a warm-up, a monotonic high-resolution timer, enough samples, and a correct percentile function such as statistics.quantiles or numpy.percentile.

Skills: the candidate can

  • Write unit tests for guardrail rules that can fail, with strict expected failures for documented gaps.
  • Implement integration tests that verify stage ordering and fail-closed behavior using mocks.
  • Convert incidents and red-team findings into deterministic and statistical regression tests.
  • Design a tiered CI pipeline for guardrails.
  • Implement a latency benchmark with warm-up and correct p95/p99 computation.
  • Implement shadow comparison of a candidate guardrail that enforces the stricter decision and assigns sessions by stable hashing.

Domain 7: Operations and Governance (8%)

7.1 Monitoring and Alerting

Knowledge

  • The core operational metrics for a guardrailed AI system: block rate, bypass signals, refusal rate, guardrail error and timeout rate, coverage, latency, and cost
  • Why a falling block rate is usually more dangerous than a rising one, and why labeled attack probes are needed to tell the two apart
  • Why alert thresholds should be relative to a seasonal baseline, with a minimum-volume floor, rather than absolute percentage-point deltas
  • The causes of alert fatigue and the difference between paging alerts, ticket alerts, and dashboard-only signals
  • How a governed sample store (access-controlled, purpose-limited, retention-limited, redacted at write time) differs from both 'log everything' and 'never keep content'
  • Why unkeyed hashes of user content are not anonymization

Skills: the candidate can

  • Design an alert policy for a guardrail pipeline with relative thresholds, minimum volumes, and a clear page/ticket split
  • Implement a relative-change alert check that handles low volume and a zero baseline safely
  • Design a sample store for human review, judge calibration, and forensics, including access, retention, and redaction rules
  • Build dashboards for three audiences: on-call, guardrail owners, and leadership

7.2 Incident Response and Disclosure

Knowledge

  • How AI incidents differ from conventional outages: non-deterministic reproduction, bypasses that are phrasings rather than code defects, probabilistic fixes, and untrustworthy model self-reports
  • A severity scale for AI incidents based on harm, exposure, and reversibility
  • Containment options for an active bypass (emergency rules, stricter thresholds, routing to human review, disabling a tool or feature, the emergency brake) and why fail-closed settings and rate limits are not containment
  • How to scope an incident from decision logs and tamper-evident audit logs rather than from the model's account of what it did
  • Disclosure obligations and channels: affected users, regulators where the law requires it (for example GDPR Articles 33 and 34, EU AI Act Article 73), and coordinated industry sharing
  • Why vulnerability reports belong in a restricted security tracker, and why brake drills are run on a schedule

Skills: the candidate can

  • Classify an AI incident's severity and choose the narrowest containment that stops the exposure
  • Reconstruct the scope and timeline of a bypass from audit logs, config versions, and the sample store
  • Convert an incident into regression tests and detection probes
  • Draft a disclosure plan covering users, regulators, the upstream vendor, and industry sharing
  • Plan and run a brake drill and record its results

7.3 Change Management

Knowledge

  • Why guardrail behavior is coupled to the model, the prompt, the policy, and the configuration, so a change to any of them can weaken protection
  • What guardrail configuration as code includes, and how review ownership and drift detection keep it the single source of truth
  • The events that require re-validation, and which evaluation suites each one triggers
  • Monitor-only, shadow, and canary releases: what each one can and cannot measure
  • Why canary criteria must use relative changes and include labeled attack probes
  • Guardrail debt: what it is, how it accumulates, and how to track it

Skills: the candidate can

  • Structure guardrail configuration as versioned, reviewed code with a deployable rollback target
  • Design a rollout plan that moves a change from monitor-only through shadow and canary to full enforcement
  • Implement canary promotion and rollback checks with relative thresholds and detection probes
  • Maintain a guardrail debt register and prioritize items by risk

7.4 Release Gates and Documentation

Knowledge

  • The difference between blocking and advisory release criteria, and why criteria are fixed before the evaluation is run
  • What a system card contains and who reads it
  • The fields of a risk acceptance record, and why the signer must be the person who owns the business consequence
  • The two kinds of stop authority (blocking a launch and stopping a running system), who holds each, and how an override is recorded
  • Why stopping should be easy and resuming should be harder
  • How the EU AI Act's human oversight requirement for high-risk systems (Article 14) relates to stop authority

Skills: the candidate can

  • Write go/no-go criteria for an AI release, including evidence requirements for each criterion
  • Implement a release gate that fails when evidence is missing or a waiver is unsigned or expired
  • Draft a system card and a risk acceptance record for a real system
  • Document a stop authority register with named holders, deputies, invocation paths, and override rules

7.5 Regulation and Standards

Knowledge

  • The EU AI Act (Regulation (EU) 2024/1689) timeline as amended by the Digital Omnibus on AI (Regulation (EU) 2026/1744), as of October 2026
  • Which AI Act articles map to guardrail engineering work: risk management, record-keeping, human oversight, accuracy, robustness and cybersecurity, post-market monitoring, incident reporting, and transparency
  • The structure and status of NIST AI RMF 1.0 (2023) and NIST AI 600-1 (July 2024): voluntary frameworks organized around Govern, Map, Measure, and Manage
  • ISO/IEC 42001:2023 as a certifiable AI management system standard, and what a certification audit examines
  • Privacy basics that constrain guardrails: GDPR's six lawful bases (consent is one), data minimization and storage limitation, and the CCPA as amended by the CPRA, under which identifiers such as IP addresses can be personal information
  • The difference between a control, a policy, and evidence, and why auditors ask for evidence

Skills: the candidate can

  • Map a system's guardrails to the obligations and framework outcomes that apply to it, with date-stamped references
  • Identify the evidence each control produces and keep it current
  • Explain to a stakeholder which AI Act obligations apply now and which are deferred, citing the amending regulation
  • Choose and document a lawful basis for guardrail logging and review samples, with legal counsel