Topic 4 of 5 · 5 min read
Model specs, constitutions and safety training
Goal: Use a provider's published behaviour spec to predict how its assistant will handle a borderline request.
A model spec or constitution is a written statement of how a provider wants its assistant to behave. Reading one helps you predict what it will do with a borderline request.
Check yourself · 1 of 3
What is the best description of a published model spec or constitution?
Why it matters
Assistants do not refuse, comply or hedge at random. Labs write down goals and rules, then train the model toward them. OpenAI publishes a Model Spec. Anthropic publishes a constitution for Claude. Other labs publish policies of their own. These are statements of intent. A model may miss them, and they do not guarantee behaviour. But they explain a lot, and they tell you what to put in your own prompt.
How it works
- The document sets priorities. Both texts describe a chain of authority. Platform rules sit above developer instructions, and developer instructions sit above user requests, with a few protections for users that cannot be overridden.
- It sets defaults, then lets you change them. For example, a model may add a safety note by default, and a developer running a medical tool may be allowed to switch that off.
- It lists lines that never move. Help with weapons capable of mass harm is one example. Requests near those lines are refused whatever the context.
- Training applies it. Labs use examples, preference data and, in Constitutional AI, model feedback against written principles, so the model learns the document's judgments.
Before and after
Weak: "What paracetamol dose is too much?" With no purpose or context, an assistant may give a vague answer wrapped in warnings.
Fixed: "I check medication charts at a care home. What is the maximum daily dose of paracetamol for healthy adults, and when is a lower limit used?" A spec that values useful health information predicts a direct answer with a short safety note. The fix adds purpose and a precise question; it does not claim authority to unlock anything. A request aimed at harming someone gets refused however it is worded.
What goes wrong
- Treating the spec as a guarantee. Behaviour differs from the text, and it changes between versions.
- Assuming all providers agree. Defaults for medical, legal, adult and security topics differ by lab and by product.
- Using fake authority. Claiming a role in a chat does not change the rules. A system prompt from a developer carries more weight than a claim in a user message.
When a request is borderline, state the purpose, the context and what you need. Do not argue with the assistant's limits.
Examples
Same topic, two framings
A user asks an assistant to explain how phishing emails fool people. Framed as "I train staff at a clinic and need examples to show them", a spec that values education supports a helpful answer. Framed as "write a convincing email that steals a bank login", the same spec points to a refusal. The subject is the same. The purpose is not.
Reading a spec before you build
You are writing a system prompt for a legal-intake bot. Read the provider's spec to see which defaults you can change, which cannot be overridden and how conflicts between your prompt and a user message are settled. Then write your prompt with that in mind.
Key points
- A model spec or constitution is a written statement of intended behaviour, not a guarantee of it.
- Both major published examples describe a priority order: platform rules, then developers, then users.
- Defaults can often be adjusted by an operator, while a small set of hard limits never moves.
- Clear context and a legitimate purpose change how a borderline request is read.
- Defaults differ by provider and by version, so check the current document for the tool you use.
Common mistakes
- Treating the published document as an exact description of what the model will do.
- Assuming one provider's rules apply to every assistant.
- Trying to pass a claimed identity as proof, instead of giving real context.
- Expecting a system prompt to unlock the hard limits.
Check yourself · 2 of 3
A developer's system prompt and a user message conflict. Under the chain of authority in the major published specs, what usually wins?
Check yourself · 3 of 3
You want an assistant to answer a sensitive health question usefully. Which change to your request is most likely to help?
Practice items, not counted towards your mastery.
Start here
- Training language models to follow instructions with human feedback (InstructGPT) (opens in a new tab)PaperFree
The 2022 OpenAI paper that describes the supervised, ranking and RL steps, and reports a 1.3B tuned model preferred over the 175B base model.
- RLHF Book (Nathan Lambert) (opens in a new tab)BookFree
A free book that walks through instruction tuning, reward models, DPO and RL on verifiable rewards in order.
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model (opens in a new tab)PaperFree
Shows how preference pairs can train a model directly, without a separate reward model or RL loop.
More for this topic
- OpenAI Model Spec (opens in a new tab)DocsFree
A published behaviour spec: the chain of command between platform, developer and user, and worked borderline cases.
- Claude's constitution (Anthropic) (opens in a new tab)DocsFree
Anthropic's own text on how Claude should weigh helpfulness, honesty and harm.
- Constitutional AI: Harmlessness from AI Feedback (opens in a new tab)PaperFree
Explains how written principles let a model critique itself and produce preference labels instead of people.