EveryDocumentation Index
Fetch the complete documentation index at: https://code4source.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
/v1/evaluate response carries two top-level enums on
purpose:
| Field | Values | Meaning |
|---|---|---|
status | ok, degraded | Did the evaluation finish cleanly? |
outcome | compliant, warning, non_compliant, degraded | Did the policy pass? |
status: ok + outcome: non_compliant is a clean
evaluation that found a policy violation — block. status: degraded
is an incomplete evaluation regardless of outcome — treat with caution
and consider retrying.
Outcome semantics
| Outcome | Meaning |
|---|---|
compliant | All checks passed. Safe to proceed. |
warning | At least one warning-severity check triggered. Review before proceeding. |
non_compliant | At least one error-severity check triggered. Block. |
degraded | Result is incomplete; some checks could not be evaluated. |
Severity
Each check declares one of five severities —critical, high,
medium, low, info. The default policy maps them to outcomes
roughly like this:
critical/high→ triggering pushes the outcome tonon_compliant.medium/low→ triggering pushes the outcome towarning(if not alreadynon_compliant).info→ never affects outcome; surfaces as a triggered check for reporting.
verdict_policy to override the
default mapping. See the authoring guide.
Evidence
Each triggered check carries up to 20 matching features inevidence[] — the actual items that caused the check to fire. Use
them to render explanations to your users (“polygon overlaps the
Yanomami Indigenous Territory by 0.42 km²”) instead of opaque
pass/fail flags.
Each check also reports total_matched — when this exceeds
evidence.length, the UI should indicate truncation.