AAI Agentic Handbook
Glossary · 189 terms

Every word, explained.

Each term has a plain-English explanation, an analogy, how it actually works, a worked example, a diagram, what to say in an interview, and a three-question quiz. Levels show who usually needs it first.

Foundations17

Large Language Model (LLM)Budding

A transformer trained to predict the next token over trillions of tokens, then tuned to follow instructions: the engine under chat, agents and RAG.

TokenBudding

The unit an LLM reads and writes: a word or word fragment. Context limits, latency and price are all metered in tokens, not characters.

Context windowBudding

The maximum number of tokens, prompt plus output, a model can handle in one call. Anything outside it does not exist for the model.

Prompt & system promptBudding

The full input sent to an LLM: instructions, examples, retrieved context and the user's message. The main lever for controlling behaviour.

Parametric knowledgeMid

Facts an LLM absorbed into its weights during training: broad but frozen at the cutoff, unattributable, and impossible to update or delete one at a time.

HallucinationBudding

When an LLM states something fluent and confident that is false or not supported by its sources.

Fine-tuningMid

Continuing to train a pretrained model on your own examples to change its behaviour, format or style. Not a reliable way to add facts.

Retrieval-Augmented Generation (RAG)Budding

Retrieval-augmented generation: fetch relevant documents for a question, put them in the prompt, and have the LLM answer from them with citations.

CorpusBudding

The full collection of documents a retrieval system can search: the source of truth that RAG answers are built from.

AttentionMid

The transformer mechanism that lets each token weigh every earlier token in the context when building its representation.

Prompt cachingMid

Reusing the model's computed state for an identical prompt prefix across requests: cheaper, faster input for repeated context, minus a cache-write premium.

Structured output / decodingSenior

Constraining generation so output always matches a schema or grammar (e.g. valid JSON) by masking tokens that would break it.

Model distillationSenior

Training a smaller, cheaper student model to imitate a larger teacher model's outputs on your task.

Multimodal & vision modelsMid

Models or pipelines that handle more than text, such as images, scanned PDFs, audio or video, in the same input or index.

Text-to-SQLSenior

Having an LLM translate a natural-language question into a SQL query, run it under a restricted role, and answer from the result.

Agentic RAGSenior

RAG where the LLM decides what to retrieve, from which source, and when to search again, in a bounded loop instead of one fixed retrieval step.

LLM-as-judgeSenior

Using an LLM with a rubric to grade outputs (faithfulness, relevance, correctness) so evaluation scales beyond human review.

LLM Foundations27

Neural networkBudding

A function built from layers of weighted sums and non-linearities whose weights are learned from examples by gradient descent; the machinery under every LLM.

Parameters & weightsBudding

The learned numbers (weights and biases) inside a model. '70B' means 70 billion of them; they set memory and compute cost, not quality on their own.

TransformerBudding

The architecture behind nearly all modern LLMs: stacked attention and feed-forward blocks that process every token of a sequence in parallel.

PretrainingBudding

The first and most expensive training phase: a model learns language and world knowledge by predicting the next token across trillions of tokens.

Next-token predictionBudding

The single task an LLM is trained on and runs at inference: given the text so far, assign a probability to every possible next token.

Training dataBudding

The text, code and examples a model learns from; mix, quality, recency and licensing decide what it knows and how it behaves.

Scaling lawsMid

Empirical power laws: loss falls predictably as parameters, data and compute grow, with diminishing returns per extra 10× of compute.

Instruction tuningMid

Supervised fine-tuning on (instruction, good response) pairs that turns a base model that continues text into an assistant that follows requests.

RLHF (reinforcement learning from human feedback)Mid

Reinforcement learning from human feedback: train a reward model on human preference comparisons, then optimise the LLM to score highly on it.

Preference optimization (DPO)Senior

Methods like DPO that train directly on chosen-vs-rejected answer pairs, getting RLHF-like alignment without a reward model or RL loop.

LoRA & parameter-efficient fine-tuningMid

Low-Rank Adaptation: fine-tune by training small add-on matrices while the original weights stay frozen; cheap, fast, swappable per task or tenant.

In-context learningBudding

A model adapting to a task purely from instructions and examples in its prompt, with no change to its weights.

Few-shot promptingBudding

Including a handful of worked input-output examples in the prompt so the model copies the format, labels and style you want.

Chain-of-thoughtMid

Having a model write intermediate reasoning steps before its final answer, which improves accuracy on multi-step problems at a token cost.

Reasoning models & extended thinkingMid

Models trained with RL to think at length before answering, trading latency and output tokens for accuracy on maths, code and multi-step work.

Temperature & samplingBudding

A sampling setting that sharpens (low) or flattens (high) next-token probabilities, trading consistency for variety; it does not change what the model knows.

Top-p (nucleus) samplingMid

Nucleus sampling: sample only from the smallest set of tokens whose probabilities add up to p (e.g. 0.9), cutting off the unlikely tail.

Logits & probabilitiesMid

The raw scores a model outputs for every token in its vocabulary; softmax turns them into next-token probabilities.

InferenceBudding

Running a trained model to produce output. For LLMs: a compute-bound prefill over the prompt, then a memory-bound decode loop, one token per step.

KV cacheMid

Stored attention keys and values for past tokens, so each new token skips recomputing the sequence; at long context it fills GPU memory.

Model quantizationMid

Storing weights (and sometimes activations or KV) in 8 or 4 bits instead of 16 to cut memory and speed up inference, at a quality cost you must measure.

Time to first token (TTFT)Mid

Latency from sending a request until the first output token arrives; the main driver of how responsive a streaming LLM app feels.

Batching & throughputSenior

Running many requests through the GPU together so one weight read serves many tokens: throughput and cost per token improve, per-stream speed falls.

Speculative decodingSenior

A cheap draft proposes several tokens and the big model verifies them in one pass: same output distribution, fewer sequential big-model steps.

Mixture of experts (MoE)Senior

An architecture where each token is routed to a few of many expert sub-networks, so a huge model computes like a much smaller one per token.

Open-weights vs closed modelsMid

Open-weights models publish their parameters for self-hosting; closed models are API-only. The choice trades control and residency for convenience.

Knowledge cutoffBudding

The date after which a model's training data ends; it knows nothing newer unless you supply it in the prompt or through tools.

Embeddings & Encoders13

EmbeddingBudding

A list of numbers (a vector) that represents the meaning of a text, so that similar meanings end up close together.

Vector spaceBudding

The high-dimensional space embeddings live in, where the angle or distance between vectors stands for difference in meaning.

EncoderMid

A model that reads input text and outputs vector representations of it, rather than generating new text.

Bi-encoderMid

Encodes query and documents separately into vectors and compares them: fast and indexable, the backbone of dense retrieval.

Cross-encoderMid

Reads the query and one document together and outputs a relevance score: far more precise than vector similarity, too slow to run over a whole corpus.

Cosine similarityBudding

A score from −1 to 1 measuring the angle between two vectors, ignoring their length: the standard way to compare embeddings.

Dot productBudding

Multiply two vectors position by position and sum. The cheapest similarity score; identical in ranking to cosine once vectors are unit length.

Embedding dimensionalityMid

How many numbers are in each embedding (384, 768, 1024, 1536, 3072). Memory, latency and cost scale linearly with it; quality does not.

Symmetric vs asymmetric embeddingsMid

Symmetric search matches like with like (ticket to ticket). Asymmetric search matches a short query to a long answer-bearing passage.

Instruction prefix (query: / passage:)Mid

A fixed string such as 'query: ' or a task instruction prepended before embedding, telling the model what role the text plays.

Matryoshka embeddingsSenior

Embeddings trained so the first N dimensions work alone: cut 3072 to 256 and keep ~96% of quality. Re-normalize after cutting.

MTEB leaderboardMid

Massive Text Embedding Benchmark: the public leaderboard for embedding models. Good for a shortlist; your own golden set decides.

Fine-tuning an embedding modelSenior

Training an embedding model further on your own query-passage pairs so domain jargon lands near its meaning. Typically +5–15 points recall in-domain.

Chunking & Ingestion14

ChunkingBudding

Splitting documents into passages small enough to embed and retrieve. Default: ~200–400 tokens on structural boundaries, no overlap.

Chunk overlapBudding

Repeating the last N tokens of one chunk at the start of the next so ideas cut at a boundary survive. Often unnecessary with structural splits.

Structural & semantic chunkingMid

Cutting where the topic changes, detected by a drop in embedding similarity between neighbouring sentences, instead of at fixed lengths.

Parent-document retrievalMid

Search over small chunks for precise matching, then hand the LLM the larger parent section that contains them. Retrieve small, return big.

Contextual enrichment (breadcrumbs)Senior

Prepending a short LLM-written note situating each chunk in its document before embedding and indexing. Anthropic measured 35–67% fewer retrieval failures.

Layout-aware parsingMid

Extracting text from PDFs and scans with reading order, headings, tables and figures preserved, so chunking and citations have structure to use.

OCR (optical character recognition)Budding

Optical character recognition: turning images of text (scans, photos, faxes) into machine-readable text. Errors here propagate into every search.

Ingestion pipelineMid

The system that pulls source documents, parses, chunks, embeds and writes them to the index, and keeps it in sync as sources change and delete.

Document registrySenior

The system of record for ingestion: one row per source document with hash, versions, status, ACL and chunk ids, so the index can be audited and rebuilt.

Content hashingMid

A fingerprint (e.g. SHA-256) of a document's normalised text, used to skip unchanged content, dedupe copies and make re-processing idempotent.

Change data capture (CDC)Senior

Change data capture: streaming inserts, updates and deletes from a database's transaction log, so the search index tracks the source within seconds.

TombstoneSenior

A marker recording that a record was deleted, so the deletion propagates through queues, replicas and indexes instead of the record silently reappearing.

BackfillSenior

Re-processing the whole corpus into a new index (new model, chunker or schema) alongside the live one, then switching traffic once it is verified.

Chunk metadataBudding

Structured fields stored with each chunk (tenant, ACL, source, date, type, page) used for filtering, permissions, citations and freshness.

Retrieval & Search22

Sparse retrievalBudding

Keyword search over an inverted index: match the exact words in the query. Fast, explainable, and the best tool for IDs, codes, names and citations.

BM25Budding

The default keyword ranking formula in Lucene, Elasticsearch, OpenSearch and Vespa: rewards rare terms, saturates repeats, normalises length.

SPLADESenior

Learned sparse retrieval: a BERT-style model outputs weighted vocabulary terms, including expansions, served from an ordinary inverted index.

Dense retrievalBudding

Search by meaning: embed the query and every chunk as vectors, then return the chunks whose vectors are nearest to the query's.

Hybrid searchMid

Run keyword (BM25) and vector search in parallel and merge the lists, usually with RRF, so each covers the other's misses.

Semantic search vs similarity searchBudding

Search that matches what the query means rather than the exact words, usually built from embeddings plus a reranker.

Approximate nearest neighbour (ANN)Mid

Approximate nearest neighbour search: find vectors close to a query without comparing against all of them, trading a little recall for 100–1000× speed.

HNSWSenior

Hierarchical Navigable Small World: a layered proximity graph searched greedily. The default in-RAM ANN index in pgvector, Qdrant, Lucene, Vespa.

IVF (inverted file index)Senior

Inverted File index: k-means clusters the vectors into cells; a query scans only the nprobe nearest cells. Cheap to build, easy to shard, pairs with PQ.

Product quantization (PQ)Staff

Compress a vector by splitting it into m sub-vectors and storing each as a 1-byte codebook index: 3,072 bytes become 64, with fast approximate distances.

Scalar & binary quantizationMid

Storing embedding values in fewer bits — float16, int8, or 1-bit binary — to cut vector memory 2–32× with a rescoring pass to recover recall.

ANN recall (efSearch, nprobe)Senior

The share of the true nearest neighbours an ANN index actually returns. Measured against exact search, not human relevance labels.

Metadata filtering (pre, post, filtered ANN)Mid

Restricting search to items whose fields match conditions (tenant, date, ACL, language) — and doing it without wrecking ANN recall.

Candidate generation & the retrieval funnelMid

The cheap, high-recall first stage that narrows millions of items to a few hundred for an expensive reranker to order.

Top-k (retrieval k vs context k)Budding

How many results each stage returns. Recall-heavy stages want large k (100+); the context sent to the model wants small k (5–10).

Query rewritingMid

Turning the user's raw message into one or more better search queries: resolving pronouns, expanding jargon, stripping chit-chat.

Query decompositionSenior

Splitting a multi-part or multi-hop question into sub-questions, retrieving for each, then combining the evidence.

HyDE (hypothetical document embeddings)Senior

Hypothetical Document Embeddings: an LLM writes a fake answer, you embed it and search with it — document-to-document matching instead of question-to-document.

Intent classification & routingMid

Labelling each incoming query by what kind of request it is, so it can be routed to the right pipeline: RAG, SQL, tool call, chit-chat or refusal.

Vector databaseMid

A store that indexes embeddings for ANN search plus metadata filters, upserts, deletes and replication. Often Postgres + pgvector is enough.

Sharding & partitioningSenior

Splitting an index across machines so each holds a slice; queries fan out to all shards and merge. Scales size and write throughput, not per-query speed.

ReplicationSenior

Keeping copies of each shard on several nodes for availability and read throughput. Replicas scale QPS; they don't fix an index that's too big.

Ranking & Generation9

Agents22

AI agentBudding

A system where the LLM directs its own steps and tool calls in a loop until the goal is met or a stop condition fires (Anthropic, Dec 2024).

Workflow vs agentMid

Workflows run LLMs through code paths you wrote; agents let the model pick the path. Anthropic's 2024 split; trade predictability for flexibility.

Tool use & function callingBudding

The model emits a structured call (tool name + JSON arguments); your application validates and runs it, then returns the result to the model.

The agent loop (ReAct)Budding

The core cycle of every agent: model decides, host runs a tool, result is appended, repeat until a final answer or a stop condition.

PlanningMid

Having the agent write out the steps for a goal before acting, then executing and re-planning when a tool result contradicts the plan.

Reflection & self-critiqueMid

The model critiques its output or trajectory and revises it; it helps when the critique uses an external signal (tests, validators), not self-review alone.

Prompt chainingBudding

A fixed sequence of LLM calls, each feeding the next, with programmatic gates between steps — the first workflow pattern in Anthropic's 2024 list.

Multi-agent systemsSenior

Several LLM agents with separate contexts, instructions and tools cooperating on one task: strong for parallel breadth, ~15× chat tokens.

Orchestrator–worker patternSenior

A lead model splits a task into sub-tasks at run time, dispatches them to workers (calls or agents), then merges results — Anthropic's 4th pattern.

Handoffs between agentsMid

One agent transfers control of a conversation or task to another agent or a human, passing a structured briefing and swapping tools and permissions.

MCP (Model Context Protocol)Mid

Model Context Protocol: an open JSON-RPC standard connecting AI apps (hosts) to servers exposing tools, resources and prompts. Linux Foundation since Dec 2025.

Agent memoryMid

How an agent keeps information beyond one context window: working memory in context, plus long-term stores it writes to and retrieves from.

Context engineeringSenior

Deciding exactly what enters the model's context at each step — instructions, tools, retrieved data, history — to maximise signal per token.

Computer use & browser agentsMid

An agent operating a graphical interface from screenshots via mouse and keyboard actions — the fallback for software with no API.

Code execution sandboxMid

An isolated environment where an agent's code and actions run with scoped files, network and credentials, so mistakes can't reach real systems.

GuardrailsMid

Checks around an LLM or agent that block, modify or escalate unsafe inputs, outputs and actions — layered, with the critical ones in code.

Human in the loopBudding

A person reviews, approves or corrects an AI's work at chosen points — usually before irreversible or high-stakes actions.

Stop conditions & step budgetsMid

Rules that end an agent loop: task done, or a cap on turns, tokens, time, spend, repeated actions or errors — each with a logged reason.

Durable execution & checkpointingSenior

Running agent workflows so progress is checkpointed and they resume after crashes, deploys or long waits without redoing completed side effects.

Trajectory evaluationSenior

Evaluating an agent's whole path — tool choices, arguments, order, safety, efficiency — and its end state, over repeated trials (pass^k).

Tool design (agent–computer interface)Mid

Designing an agent's tools — names, descriptions, parameters, outputs, errors — so the model picks and uses them correctly and cheaply.

Agent cost & token budgetsSenior

What an agent run costs in tokens, money and time. It grows quadratically with turns unless cached, so manage it as a distribution per success.

Evaluation & Metrics14

Golden setBudding

A fixed, versioned set of realistic inputs with known-good answers or relevant documents, used to score every change the same way.

Eval harnessMid

The code that runs a system against a golden set, scores outputs with metrics and judges, and reports diffs, ideally on every pull request.

Recall@kBudding

Of all the relevant documents for a query, the fraction that appear in the top k results. The ceiling on what a RAG system can answer.

PrecisionBudding

Of the results you returned, the fraction that are relevant. Precision@k measures how much of the top k is useful versus noise.

nDCGSenior

Normalised Discounted Cumulative Gain: graded-relevance ranking score that rewards the best results near the top. 1.0 = ideal order.

MRR (mean reciprocal rank)Mid

Mean Reciprocal Rank: average of 1/rank of the first relevant result per query. Answers 'how far down is the first good hit?'

FaithfulnessMid

Share of an answer's claims that the provided context supports. Measures grounding, not truth: a faithful answer from a wrong doc is still wrong.

Context precisionSenior

RAG metric: are the relevant chunks ranked at the top of the context? Rank-weighted precision, so noise above the evidence costs more.

p50 / p95 / p99 latencyBudding

Latency at a percentile: p50 is the typical request, p95/p99 the slow tail. SLOs use the tail because averages hide the users who wait.

QPS (queries per second)Budding

Queries per second: request rate a system handles. For LLMs, convert QPS to concurrency and tokens/s; that is what sizes GPUs and bills.

SLO & SLAMid

Service Level Objective: a target for a measured indicator over a window, e.g. 99.5% of answers under 5 s over 30 days. Its gap is the error budget.

Oracle experimentStaff

Replace one pipeline stage with perfect input (e.g. gold passages) and measure the ceiling. The gap shows which stage to fix first.

Error analysisSenior

Reading real failures, labelling why each happened, and counting the categories, so you fix the biggest cause instead of guessing.

DriftSenior

Production behaviour shifting from what you evaluated: user inputs, corpus, provider model, or what 'correct' means changes under you.

Evals & LLMOps23

Eval-driven developmentMid

Decide which number a change should move, build the cases that measure it, then change the prompt, model or retriever and read the delta with error bars.

Offline vs online evaluationMid

Offline eval scores a fixed test set before release; online eval measures real users after it. Offline is the gate, online is the verdict.

RubricBudding

A written scoring guide: one observable criterion per line, a small scale (usually pass/fail), and an anchored example for each score.

Pairwise comparisonMid

Grading by asking which of two answers is better, not scoring each alone; more reliable for subjective quality, but needs order swaps to cancel position bias.

Human annotationMid

People labelling model outputs against a rubric; the ground truth that LLM judges are calibrated against, and the most expensive data in the eval stack.

Inter-annotator agreementSenior

How often independent graders agree beyond chance, usually Cohen's kappa; below ~0.6 your labels, and any judge validated against them, are unreliable.

BenchmarkBudding

A public, fixed test set and scoring rule (MMLU, GPQA, SWE-bench) for comparing models; a coarse filter for model choice, never a substitute for your own eval.

Benchmark contaminationSenior

When test items (or close paraphrases) leaked into a model's training data, so its score measures memory instead of skill.

Eval gate (CI)Mid

A CI check that runs the eval suite on every prompt, model or config change and blocks the merge or rollout if quality drops beyond the measured noise.

A/B testMid

Randomly split live users between the current and new version, then compare a pre-chosen outcome metric with a significance test to decide what ships.

Statistical significanceSenior

Whether an eval or A/B delta is bigger than the noise; report confidence intervals, use paired tests on shared items, and size n before you run.

Synthetic dataMid

Model-generated inputs, labels or conversations that fill eval or training gaps; fast to make, trustworthy only after filtering, dedupe and human spot checks.

Data flywheelSenior

The loop that turns production traces and feedback into labelled failures, new eval cases and fixes, so each week of traffic makes the system measurably better.

Red teamingMid

Deliberately attacking your own AI system (jailbreaks, prompt injection, data extraction, unsafe tool use) to find failures before attackers or users do.

JailbreakBudding

An input crafted to make a model ignore its safety training or system instructions: role-play framing, encoded text, many-shot examples, adversarial suffixes.

PII redactionMid

Detecting and masking personal data (names, emails, IDs, health details) before it reaches a model, a log or a vendor; recall matters more than precision.

LLM gatewayMid

A proxy between your apps and model providers that centralises auth, routing, fallback, rate limits, budgets, caching, redaction and logging.

Rate limitingMid

Capping requests and tokens per key, tenant or user per time window, usually with token buckets, so one caller cannot exhaust shared provider quota or budget.

Model fallback & routingMid

Routing a request to a backup model or provider when the primary errors, times out or is overloaded; only safe if the backup has passed the same evals.

Prompt versioningMid

Treating prompts as immutable, versioned bundles pinned to a model snapshot and logged on every trace, so any output traces back to exactly what produced it.

Cost per queryMid

Total spend to answer one request: input, cache writes and reads, output and reasoning tokens, retrieval, reranking, tool calls and retries.

Model deprecation & upgradesSenior

A provider retiring a model snapshot on a set date; every dependent prompt, eval and fallback must be migrated and re-validated before requests start failing.

CalibrationSenior

Whether stated confidence matches actual accuracy: of answers given 80% confidence, about 80% should be right. Needed for abstention and routing thresholds.

Production & Ops16

IdempotencyMid

Running an operation twice leaves the same state as running it once. It is the property that makes retries and at-least-once queues safe.

BackpressureMid

Pushing back on producers when a consumer is saturated: bounded queues, 429s and load shedding instead of unbounded buffering until latency or memory collapses.

Dead-letter queue (DLQ)Mid

A side queue where messages land after N failed attempts, so one poison message stops blocking the pipeline and can be inspected and replayed later.

Exponential backoffBudding

Wait longer after each failed retry (1 s, 2 s, 4 s…) plus random jitter, so clients don't hammer a struggling service in sync.

Blue-green deploymentSenior

Run the new version (green) beside the old (blue), verify it on real infra, then switch all traffic at once, keeping blue warm for instant rollback.

Dual-writeSenior

Writing the same change to two stores, e.g. Postgres and a vector index. Done naively it drifts; the outbox pattern plus CDC makes it reliable.

Shadow trafficSenior

Copy real production requests to a new version whose responses users never see, then compare outputs, latency and cost before risking live traffic.

Canary & ramped rolloutMid

Release to a small slice of real traffic first (1%, then 5%, 25%…), compare against the old version, and roll back automatically if metrics degrade.

Feature flagBudding

A runtime switch that turns code paths, models or prompts on or off per user, tenant or percentage without a redeploy.

Index aliasSenior

A stable name (e.g. products-read) that points to a physical index, so you can rebuild a new index and repoint readers atomically with no client change.

Compaction & soft deleteSenior

Background rewriting of an index's segments to drop deleted and overwritten entries, reclaiming space and restoring search speed and recall.

Observability & tracesMid

Being able to answer new questions about production from its telemetry. For LLM systems: traces per request with prompts, tool calls, tokens, cost and quality.

TTL & cache invalidationBudding

Time to live: how long a cached or stored item is valid before it expires. Too long serves stale data; too short throws away savings.

Reconciliation jobSenior

A scheduled job that compares the source of truth with derived stores (index, cache, ACLs) and repairs drift that events and retries missed.

Graceful degradation & load sheddingMid

When a dependency fails, serve a reduced but useful response (smaller model, cached answer, sources only) instead of an error page.

PostmortemMid

A blameless written review after an incident: timeline, impact, root causes, what went well, and owned action items with due dates.

Security & Tenancy9

Multi-tenancySenior

Serving many customers from shared infrastructure while keeping their data, quotas and performance isolated. Isolation tier is a cost vs risk choice.

Noisy neighbourSenior

One tenant's heavy load (a bulk import, a runaway agent) degrading latency or quota for everyone sharing the same infrastructure.

ACL (access control list)Mid

Access control list: who may see a document. In RAG, ACLs must be enforced at retrieval time or the model will quote what the user can't open.

Fail closedSenior

When a security check can't run (auth service down, classifier timeout), deny by default. The opposite, fail-open, keeps serving and skips the check.

Prompt injection (indirect)Senior

Text that the model reads as instructions: typed by a user (direct) or hidden in a page, email or doc the agent reads (indirect). No filter fully fixes it.

Data exfiltrationSenior

Getting data out of a system without authorisation. For agents: via a tool call, a fetched URL, or a rendered markdown image carrying data in its query string.

Least privilegeMid

Give each user, service and agent only the permissions its current task needs, for only as long as it needs them. Limits damage when it's tricked or buggy.

Blast radiusSenior

How much breaks when one thing fails or is compromised: how many users, tenants, records or actions. Design to keep it small and known.

Defence in depthSenior

Stacking independent controls so one failing (and each will sometimes) doesn't mean compromise. For LLM agents, no single layer is reliable alone.

Interview Craft3