Compliance Check

Checks a script against your organization's active compliance rules (see Compliance Rules in the DB DevOps guide). Open AI Agents → Compliance Check, paste the script, choose its engine and, if rules are limited to environments, the environment it is for.

How each rule is decided

Checked byWhat happensUses the AI model
PatternThe rule's regular expression is searched for in the script. A forbidden pattern fails when found; a required one fails when missing.No
AI modelThe rule's name and description are given to the model, which says whether the script follows it and quotes the line it objects to.Yes
Pattern, confirmed by the AI modelThe pattern runs first. If it passes, the rule passes. If it finds a problem, the model decides whether it is a real one in context.Only when the pattern finds a problem

When every rule that applies is decided by its pattern, the check finishes without calling the AI model, so it works even when no AI provider is set up. A rule the model gives no verdict for, or an answer that cannot be read, counts as failed and says why.

The result

Approval

Rules checked by a pattern are also checked on every script when approval is requested, given or signed: a failing error rule blocks it. Rules that need the AI model are not part of that gate; run this check to see them.