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 by | What happens | Uses the AI model |
|---|---|---|
| Pattern | The rule's regular expression is searched for in the script. A forbidden pattern fails when found; a required one fails when missing. | No |
| AI model | The 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 model | The 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
- Pass or fail: the check fails when any error rule fails. Failing warning and info rules are listed but do not fail it.
- Each rule checked, with its severity, what decided it (Pattern or AI model), the reason, the matching line and how to fix it; hover them for what each is. The result counts the rules checked and failed, for example Failed: 2 rules checked, 1 failed.
- Not applicable: how many rules are limited to other engines or environments; open it to see each with the reason. A rule limited to environments is not applicable when no environment is chosen.
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.