
Content Policy as Code: Turning an Acceptable-Use Policy into Enforcement
Most organizations have an AI acceptable-use policy. Almost none can show that it's enforced, because the policy lives in a document and the AI traffic lives on the wire, and the two never meet. Content policy as code closes that gap: the rules become runtime checks applied to every call, with a record that they ran.
- Anton MaciusField CTO
In this article
The policy-reality gap
A written policy describes what should happen: don't send this category of data to a model, don't let the assistant produce that kind of output, restrict this capability to that role. But a description isn't an enforcement. Between the policy and the traffic sits a gap that, in most companies, nothing bridges — which is why 'we have a policy' and 'the policy is followed' are entirely different claims, and only the second one survives an audit.
What "as code" means here
Content policy as code means each rule is expressed as a check the runtime applies deterministically to prompts and completions. 'Don't allow account numbers to leave the boundary' becomes an outbound redaction rule. 'This assistant may not give financial advice' becomes an output check. 'Only this role may use this capability' becomes an access rule. The policy stops being prose someone might follow and becomes behavior the system enforces.
A policy you can't enforce is a wish. A policy expressed as runtime checks is a control — and a control can be tested and shown.
Enforcement you can demonstrate
The reason to encode policy this way isn't tidiness — it's provability. When a policy is a set of deterministic checks, you can enumerate what it enforces, test each rule, and point to the record of it firing. 'Show us your acceptable-use policy is enforced' stops being an awkward conversation and becomes a demonstration: here are the rules, here's each one running, here's the log.
Policy that spans the platform
Content policy touches more than one control. Some rules are security (redaction, blocking), some are compliance (disclosure, retention), some are access. Encoding policy once, in a platform where those controls share a boundary and a record, means a single rule is enforced consistently rather than reimplemented — and drifting — across separate tools.
Changing policy without a redeploy scramble
Policies change: a new regulation, a new data category, a new prohibited use. When policy is code in a governed runtime, updating a rule updates enforcement directly, and the change itself is on the record. You're not chasing a PDF update through training decks and hoping behavior follows; you're changing the thing that actually decides.
Frequently asked questions
Make the policy the system actually runs. See how content policy becomes deterministic runtime checks applied to every call — enforced, recorded, and provable. Book a walkthrough.
Part of