> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Checks

> The checks of one task, in the project directory's checks folder.

Schema: `urn:hex65:schema:checks:v1`. Every field below comes from the schema; the schema decides.

hex65.checks/v1 (plan section 5.6.3): the checks of one task. `discriminator` is OpenAPI's keyword; standard validators ignore it with the same result through oneOf, and Ajv needs `discriminator: true`.

## Fields

| Field | Type | Required | Meaning |
| - | - | - | - |
| `format` | `"hex65.checks/v1"` | yes | |
| `task` | string | yes | |
| `checks` | list of see Check | yes | |

## Selector

A JMESPath expression over the lap document (section 5.6.4).

A value of type string.

## Assertion

One assertion (section 5.6.3). `select` is evaluated on the lap document; `value` is a literal and `value_from` another expression.

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | string | yes | |

## A\_compare

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | one of `"equals"`, `"not_equals"`, `"equals_set"`, `"subset_of"`, `"contains"` | yes | |
| `select` | see Selector | yes | |
| `value` | any | no | A literal JSON value. |
| `value_from` | see Selector | no | |

## A\_matches

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | one of `"matches"` | yes | |
| `select` | see Selector | yes | |
| `value` | string | yes | A regular expression in RE2 syntax. |

## A\_presence

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | one of `"exists"`, `"absent"` | yes | |
| `select` | see Selector | yes | |

## A\_count

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | one of `"count"` | yes | |
| `select` | see Selector | yes | |
| `value` | object | yes | |
| `value.eq` | integer | no | |
| `value.gte` | integer | no | |
| `value.lte` | integer | no | |

## A\_approx

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | one of `"approx"` | yes | |
| `select` | see Selector | yes | |
| `value` | number | no | |
| `value_from` | see Selector | no | |
| `tolerance` | number | yes | |

## A\_before

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | one of `"before"` | yes | |
| `select` | see Selector | yes | |
| `value_from` | see Selector | yes | |

## A\_group

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | one of `"all"`, `"any"` | yes | |
| `assert` | list of see Assertion | yes | |

## DeterministicCheck

| Field | Type | Required | Meaning |
| - | - | - | - |
| `key` | string | yes | The check's id, unique within the task. |
| `category` | one of `"outcome"`, `"grounding"`, `"policy"`, `"send_safety"`, `"escalation"` | yes | |
| `station` | string | yes | |
| `detects` | string | yes | The error kind a failure of this check is attributed to. |
| `required` | boolean | yes | Required checks decide the verdict; others are advisory. |
| `description` | string | yes | What the check asserts, in plain language (F-GRD-01 AC-4). |
| `type` | `"deterministic"` | yes | |
| `assert` | list of see Assertion | yes | |

## RubricCheck

| Field | Type | Required | Meaning |
| - | - | - | - |
| `key` | string | yes | The check's id, unique within the task. |
| `category` | one of `"outcome"`, `"grounding"`, `"policy"`, `"send_safety"`, `"escalation"` | yes | |
| `station` | string | yes | |
| `detects` | string | yes | The error kind a failure of this check is attributed to. |
| `required` | boolean | yes | Required checks decide the verdict; others are advisory. |
| `description` | string | yes | What the check asserts, in plain language (F-GRD-01 AC-4). |
| `type` | `"rubric"` | yes | |
| `rubric` | string | yes | |
| `inputs` | list of see Selector | yes | |
| `examples` | array | no | |

## CustomCheck

| Field | Type | Required | Meaning |
| - | - | - | - |
| `key` | string | yes | The check's id, unique within the task. |
| `category` | one of `"outcome"`, `"grounding"`, `"policy"`, `"send_safety"`, `"escalation"` | yes | |
| `station` | string | yes | |
| `detects` | string | yes | The error kind a failure of this check is attributed to. |
| `required` | boolean | yes | Required checks decide the verdict; others are advisory. |
| `description` | string | yes | What the check asserts, in plain language (F-GRD-01 AC-4). |
| `type` | `"custom"` | yes | |
| `command` | list of string | yes | |

## Check

| Field | Type | Required | Meaning |
| - | - | - | - |
| `type` | string | yes | |

## A\_json\_schema

| Field | Type | Required | Meaning |
| - | - | - | - |
| `op` | one of `"json_schema"` | yes | |
| `select` | see Selector | yes | |
| `value` | object or boolean | yes | A literal JSON Schema (2020-12). It may not use pattern, patternProperties or format: regex (regular expressions in checks are RE2, through matches); the loader refuses them. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.