Appendix A. Glossary

Term Definition
Prompt The entirety of instructions, context, examples, and inputs provided to a model
Context All tokens viewed by a model when generating a single response. Includes instructions, tool definitions, documents, history, and tool results
Context window The maximum number of tokens a model can reference at one time. Whether output and reasoning tokens are counted within the same window varies by model
Token The unit by which a model processes text. It does not correspond one-to-one with character count
Context rot The phenomenon where the ability to accurately recall information within the context degrades as tokens increase
Context engineering The practice of selecting and arranging the entirety of tokens viewed by a model for each run
System (developer) message The designated space containing roles and rules common to all conversations. Designed to take precedence over user messages, but does not completely prevent injection
Mid-conversation system message System-privileged instructions appended mid-conversation. Used to update rules while preserving cache
Role assignment A technique of inserting sentences into the system prompt that define perspective and tone. Does not confer knowledge or permissions
Success criteria Observable conditions used to evaluate whether the result is successful
Task type The nature of a task—such as extraction, transformation, generation, or evaluation—that determines the permissible degree of creation and required evidence
Right altitude A level between hardcoded rules and vague principles that provides a framework for judgment using principles, rationale, and representative examples
Prompt injection An attack that attempts to alter a model's instructions using sentences hidden in input. Classified into direct (user) and indirect (third-party content)
Least privilege The principle of granting a model and tools only the minimum access necessary for the task to reduce damage if compromised
Few-shot examples A method of demonstrating a few pairs of desired inputs and outputs. When there are no examples, it is zero-shot
Exemplar bias The phenomenon where skews in a set of examples—such as label frequency, order, or phrasing—bias a model's judgment
Edge cases Inputs that span two categories or cause disagreement even among human evaluators
XML tags Markers denoting boundaries between instructions, context, examples, and inputs. Names can be chosen freely, but must be used consistently
Data dictionary A table detailing the business meaning, types and units, allowed values, and default/missing values for fields
Structured outputs A feature that enforces output to adhere to a specified JSON schema
JSON mode An output mode that guarantees only valid JSON, without guaranteeing schema compliance
Enum A list of allowed values. Used to fix classification labels
Prefill A technique of guiding output by pre-populating the initial portion of the assistant message. Models from Claude 4.6 onward do not support last-turn prefill
Stop reason The reason a response concluded. Anthropic reports this via stop_reason, and the OpenAI Responses API reports it via status and incomplete_details.reason
Citations Anthropic's citation feature that returns responses with source text locations attached to cited segments
Search grounding A feature that causes a model to answer based on web search results and attach sources
Retrieval-Augmented Generation (RAG) A method of retrieving relevant materials at the time of an inquiry and placing them into the context
BM25 A retrieval method based on word matching. Strong with exact strings such as numbers or codes
Contextual retrieval An indexing method that attaches a short explanation referencing the entire document to each chunk
Reranking A step that re-ranks retrieval candidates by relevance to the query, retaining only the top results
Compaction A technique of continuing a long conversation by replacing older sections with a summary
Context editing A feature that removes older tool results or thinking blocks according to rules
Just-in-time loading A method of maintaining only lightweight identifiers and loading content via tools when needed
Subagent A secondary agent that performs focused tasks within a clean context and returns only a summary
Prompt caching A feature that saves and reuses identical prefixes across requests. Requires an exact prefix match to hit
Reasoning model A model that thinks by internally generating reasoning tokens before answering
Reasoning tokens Tokens generated by a reasoning model before answering. They are shown only as summaries or not shown at all, and are billed as output
Adaptive thinking A method where a model determines whether to think and how much to think based on request complexity and effort settings
Reasoning effort A setting that adjusts the amount of effort a model expends on thinking and responding
Output limit The maximum number of tokens a single request can generate. Includes reasoning tokens
Prompt chaining A method of dividing a task across multiple calls, using the output of a preceding step as the input for the next step
Routing A pattern of classifying inputs and directing them to dedicated paths by type
Workflow patterns Established ways of orchestrating multiple calls, such as chaining, routing, parallelization, orchestrator-workers, and evaluator-optimizer
Self-review A pattern that incorporates a step to review and revise a draft against criteria
Rubric A scoring guide organizing passing conditions by item
Critical item An evaluation item judged separately from the average because failing even one renders the output unusable
Test set A collection of inputs and expected results fixed to compare changes
Holdout set A set kept unopened during iterations and used solely for final evaluation (holdout)
Regression The phenomenon where something that previously worked no longer works after a change
BLEU·ROUGE Metrics that score based on word overlap with reference answers. They cannot measure semantic or factual accuracy
LLM evaluator An evaluation method that uses a model as a grader
Position bias and verbosity bias The tendency of LLM evaluators to prefer answers presented first or longer answers
pass@k·pass^k The probability of succeeding at least once across k attempts, and the probability of succeeding on all k attempts
Capability evaluation and regression evaluation Evaluation measuring what a model does well, and evaluation measuring whether it still does what it previously could
Transcript The complete record of an agent run, including outputs, tool calls, and reasoning