All articles

Guardrails and Constitutions: What Each Gives You

Current guardrail frameworks check dialogue, retrieved documents, tool calls and outputs. A constitution-based approach differs in who writes the policy, where it travels, who may change it, and what record a decision leaves.

Share this article

"Guardrails" no longer means a list of banned words. A buyer comparing products should start from what current guardrail frameworks actually do, and then ask where a constitution-based approach differs.

What a current guardrail framework covers

NVIDIA's NeMo Guardrails is an open-source example. Its documentation describes five kinds of rail:

Input rails apply guardrails before the LLM is called by validating and sanitizing user inputs. Retrieval rails filter and validate retrieved knowledge (documents and chunks) to ensure only trusted context is provided to the LLM. Dialog rails steer and constrain the multi‑turn conversation, enforcing flow logic and policies across turns. Execution rails control and validate tool/function calls, their arguments, and results to safely interact with external systems. Output rails evaluate and post‑process model responses, filtering, editing, or blocking unsafe or off‑policy content before it reaches users.

Its README adds that the library "includes guardrails for LLM self-checking (input/output moderation, fact-checking, hallucination detection), NVIDIA safety models (content safety, topic safety), jailbreak and injection detection, and integrations with community models and third-party APIs." A configuration is written by the developer: a config.yml that names the models and the active rails, Colang files that define dialogue flows, and optional Python actions.

So a well-built guardrail stack checks conversation flow, retrieved context, tool calls and outputs, and many of its checks are made by models, not word lists. Any comparison that treats guardrails as keyword filters is comparing against the wrong thing.

What a fixed pattern list cannot do

Two weaknesses belong to fixed patterns on their own, whatever product wraps them. A list of banned phrases catches "how to build a bomb" and misses the same request put as a chemistry question; model-based checks narrow that gap without closing it. And a rule that sees only the text cannot tell a pharmacist asking about drug interactions from an anonymous stranger asking the same thing; the decision needs context about who is asking and why.

Where a constitution-based approach differs

Creed Space starts from a written policy, a creed, and builds the checks around it. The differences we can show are in four places.

Who writes the policy. A creed is a document of principles in plain language, written so the people it governs can read it. Before the Gateway can decide against a creed, a platform administrator compiles it on the server into an artifact, which must be signed in production. A guardrail configuration is readable too; the difference is who it is written for.

Where it travels. A creed is not tied to one model or one product. The Gateway uses it to decide on tool calls from OpenAI, Anthropic and Google models, and the Value Context Protocol is a format for carrying a creed and its context between systems. VCP carries the policy; it does not make different models behave the same.

Who may change it. The Gateway states its authority rules. The caller names which creed applies. Only platform administrators compile creeds into the registry. Account-level tool controls and fleet approval rules can only make a decision stricter. A fixed set of harm and manipulation checks runs before any creed, so choosing a different creed does not remove them. The limits of those rules, including the cases the Gateway does not cover, are set out under enforcement.

What a decision leaves behind. Each response from the Gateway's decision endpoint carries a record naming the hash of the constitution evaluated, the policy configuration, the hash of the arguments, and the reasons. For an action it allows on its OpenAI-compatible API, the Gateway can sign a receipt that anyone can check offline against published keys; the receipts page verifies a sample in your browser and lists which outcomes get a record. A receipt shows what was authorized and under which policy. It does not show that the policy was right.

The questions to ask

Ask the same four questions of any product, ours included. Who wrote the policy, and can the people it governs read it? Where else can the same policy be used? Who may change or override it, and what can no one override? What record does a decision leave that someone outside the vendor can check?

Revised 12 November 2026. An earlier version described guardrails as filters on inputs and outputs. NVIDIA's documentation, quoted above, shows they cover much more, and the comparison now starts from that.