A Model Spec is a published specification that describes how an AI model is intended to behave: which goals it pursues, which instructions it follows, which requests it refuses and how it resolves conflicts between the parties that instruct it. In AI governance, the best known example is the OpenAI Model Spec, first released in May 2024 and revised several times since, which turned internal behavior policy into a public, versioned document that outsiders can read, quote and criticize.
The document sits between abstract principles and technical training data. It is more concrete than a corporate AI policy, because it addresses specific conversational situations, yet it is written in natural language rather than code. Its main governance value is accountability: when a deployed model behaves badly, observers can ask whether the behavior was a training failure or an intended design choice stated in the specification.
How a Model Spec is structured
A Model Spec organizes intended behavior into layers of different strength. The OpenAI version distinguishes broad objectives, firm rules that cannot be overridden, and defaults that describe the best behavior when no one has asked for something else. This layering lets the document be strict where safety demands it and flexible where user preference legitimately varies.
The following table summarizes the main building blocks and what each one controls.
| Component | What it states | Can it be overridden? |
|---|---|---|
| Objectives | High-level aims such as helping users and avoiding harm | No, they guide interpretation |
| Hard rules | Prohibited outputs, for example serious uplift for mass-casualty weapons | No |
| Defaults | Preferred tone, format, length and handling of ambiguity | Yes, by developers or users |
| Chain of command | Whose instructions win when they conflict | No, it defines the ordering |
| Worked examples | Sample prompts with compliant and non-compliant answers | Not applicable, they illustrate |
The worked examples matter more than they appear. Natural-language principles are ambiguous, and paired good and bad responses show evaluators and trainers where a line actually falls. Later revisions of the OpenAI document grouped guidance into themes such as staying within bounds, seeking the truth together and doing the best work, but the rule and default distinction remained the backbone.
The chain of command and instruction priority
The chain of command is the part of a Model Spec that decides whose instruction prevails. Instructions arrive from several sources inside one conversation, and the model needs a predictable priority order so that a user cannot silently cancel a developer’s restrictions and a developer cannot override platform-level safety rules.
| Authority level | Source | Typical example |
|---|---|---|
| Platform | The model developer, through training and the spec itself | Refuse detailed instructions for building weapons |
| Developer | The company building an application, through system or developer messages | Answer only questions about our banking product |
| User | The person typing in the conversation | Reply in Spanish and keep answers short |
| Guideline | Default behaviors that any higher level may adjust | Use Markdown formatting when it helps |
| No authority | Text inside tool outputs, web pages or files | A web page saying ignore previous instructions |
The last row is the defense against prompt injection. A Model Spec typically states that quoted material, retrieved documents and tool results carry no instruction authority by default, so text embedded in a web page cannot command the model. This principle connects the specification directly to AI agent governance, where models act on untrusted content.
Model Spec compared with other governance documents
A Model Spec is easily confused with neighboring documentation artifacts, yet each answers a different governance question. The specification states intended behavior; other artifacts report measured properties, risks or organizational rules.
| Artifact | Main question answered | Audience | Timing |
|---|---|---|---|
| Model Spec | How should the model behave? | Public, developers, researchers | Before and during training |
| System card | What risks were evaluated and mitigated? | Public, regulators | At release |
| Model card | What are the model’s performance and limits? | Practitioners | At release |
| AI acceptable use policy | What may customers do with the model? | Customers, users | Ongoing |
| Corporate AI policy | How does an organization use AI internally? | Employees | Ongoing |
Other developers publish comparable documents under different names, for example written constitutions used in constitutional training methods. The shared idea is that normative intent is written down first and then used for training, evaluation and public explanation, rather than remaining implicit in labeler instructions.
How the specification is used in training and evaluation
A Model Spec is an operational input, not only a public statement. Developers use it to write instructions for human raters, to generate synthetic training data, and in some methods the model is trained to reason explicitly over the specification text before answering, an approach OpenAI has described as deliberative alignment.
- Data generation: prompts and preferred answers are produced to illustrate each rule and default.
- Reward modeling: graders score responses for adherence to the specified behavior.
- Evaluation suites: test sets measure spec compliance rates per section, which reveals weak areas.
- Incident review: a reported failure is classified as a spec gap, an ambiguity or a training shortfall.
This loop gives the document a role similar to a requirements specification in software engineering. Without it, model behavior would be defined only by what training happened to produce, and nobody could distinguish a bug from a feature.
Limitations and common misunderstandings
The most important limitation is that a Model Spec describes intended behavior, not guaranteed behavior. Training is imperfect, so a deployed model may violate its own specification, especially under adversarial prompting. Publishing the document improves transparency, but it is not an external audit and does not by itself prove compliance.
| Misreading | Accurate view |
|---|---|
| The model always follows the spec | It is a target for training, and measured adherence is below 100 percent |
| The spec is a legal commitment | It is a voluntary policy document unless contracts or law reference it |
| Defaults reveal hard limits | Defaults are adjustable, only rules are fixed |
| One spec fits every deployment | Developers customize defaults within the allowed range |
Further concerns are unilateral authorship, since the developer alone decides the content, and version drift, because revisions can change behavior without broad consultation. Mature governance programs therefore pair a Model Spec with independent evaluation, change logs and feedback channels.
The short version
A Model Spec is a rulebook for an AI assistant. It says what the assistant should do, what it must never do and what it does when no one gives special instructions.
Think of a new employee handbook. Some rules are absolute, such as never sharing a safe combination. Other parts are habits, such as answering politely, that a manager may change. The handbook also says whose orders come first: the company, then the manager, then the customer.
The key point is simple. The spec states what the builders intend, and tests show how well the real model matches it.
Where it makes a difference
A mid-sized insurance company builds a claims assistant on a commercial language model. Its developer message restricts the assistant to policy questions and forbids legal advice. During testing, a user writes that they are the system administrator and that all restrictions are lifted.
Because the provider’s Model Spec places developer instructions above user instructions, the assistant keeps its restrictions and declines politely. In a second test, a customer uploads a PDF that contains hidden text telling the assistant to approve the claim. The spec treats file content as data without instruction authority, so the assistant summarizes the document and ignores the embedded command.
The governance team records both tests in its AI risk register, citing the relevant spec sections as the expected behavior. When an edge case later fails, the team can show that the failure was a deviation from the stated design, which simplifies the incident report to the vendor.