> For the complete documentation index, see [llms.txt](https://krynix.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krynix.gitbook.io/docs/using-the-dashboard/controls.md). Agents can also search and read this documentation through its [MCP server](https://krynix.gitbook.io/docs/~gitbook/mcp).

# Controls

A **control** is a standing assertion about every run: "no run may exceed 200k tokens", "Bash must fail less than 10 % of the time", "no run may stall for more than 30 seconds". Krynix evaluates every enabled control against every session, keeps the verdict, and shows the board.

A control is not a policy. A policy decides a tool call **before** it runs and answers pass, redact, deny or require-approval. A control reads the recorded session **after** (and during) the run and answers pass, fail or unknown. See [Policies](https://krynix.gitbook.io/docs/using-the-dashboard/policies.md).

## The board

![The four cards at the top of the Controls screen](https://3117100259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwf1LKKia6wIa5IW8R9Sp%2Fuploads%2Fgit-blob-24d00f266c3d2346310b1f345220749ebe96eeec%2Fdashboard-controls-glance.png?alt=media)

**Controls** in the sidebar opens the board. Four cards count your controls by where they stand:

| Card               | Meaning                                                                                                                                                    |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Failing**        | The most recent run failed.                                                                                                                                |
| **Failed earlier** | The most recent run passed or could not be decided, but an earlier run in the window failed. Not passing: a recent pass does not clear an earlier failure. |
| **No verdict**     | Never evaluated, or the evidence to decide it was missing. The card shows which.                                                                           |
| **Passing**        | Every evaluated run in the window passed.                                                                                                                  |

The chips under the cards (**All**, **Failing**, **Failed earlier**, **No verdict**, **Passing**) filter the list. Each control in the list shows its name and description, its severity, when it was last evaluated, how many of its last 50 runs were evaluated, and how many failed or could not be decided. Click a control to open it.

A control that has never been evaluated is shown as no verdict, never as passing. With no controls defined at all, the board says so: nothing is being checked, which is not the same as everything passing.

## Define a control

![Defining a control](https://3117100259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwf1LKKia6wIa5IW8R9Sp%2Fuploads%2Fgit-blob-468a03468c4b9e29f6b7975c1939ae8fb06561fd%2Fdashboard-control-define.png?alt=media)

Owners and admins:

1. Press **Define a control**.
2. Give it a **Name** (such as "no run may stall for more than 30 seconds") and, optionally, a **Description**: what it is for and who asked for it.
3. Under **What it asserts**, choose the **Assertion**:

   | Assertion                                           | Then choose                                                                  | Example                                   |
   | --------------------------------------------------- | ---------------------------------------------------------------------------- | ----------------------------------------- |
   | **A session-level number stays within a threshold** | a **Measure**, a **Comparison** and a **Threshold**                          | context volume (tokens) is at most 200000 |
   | **A per-tool number stays within a threshold**      | a **Measure**, a **Comparison**, a **Threshold** and, optionally, a **Tool** | `Bash` failure rate is at most 0.1        |
   | **An event never occurs**                           | an **Event type**                                                            | no run records an error                   |
   | **An event always occurs**                          | an **Event type**                                                            | every run records a decision              |
   | **The run actually finished**                       | nothing more                                                                 | the run ended properly, not orphaned      |

   Session-level measures: events recorded, run duration (ms), tool calls, model requests, errors recorded, context volume (tokens), model spend (USD), longest gap between events (ms), longest run of identical back-to-back tool calls, distinct tools reached for, tool results reporting a non-zero exit code, and tool calls that never produced a result.

   Per-tool measures: calls, failures, failure rate, calls with no result, median duration (ms), p95 duration (ms) and slowest call (ms). Leave **Tool** empty to assert the worst tool in each run ("no tool may exceed this"), or name one tool to assert that tool only.

   Comparisons: is less than, is at most, is greater than, is at least, equals, does not equal.
4. Check the sentence under **Will assert**: it is the assertion written out in the words the control will carry.
5. Choose a **Severity** (low, medium, high or critical). Severity ranks a failure; it does not block anything.
6. Leave **Evaluate this control on every run that closes** ticked, and press **Create control**.

The new control is evaluated on every session that closes from then on.

## A control's page

![A control's page](https://3117100259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwf1LKKia6wIa5IW8R9Sp%2Fuploads%2Fgit-blob-6e7edcfbba89346d09215a279a4d9446da15de35%2Fdashboard-control-detail.png?alt=media)

* **Current posture**: where it stands, in a sentence, with its severity, how many recent runs were evaluated, and how many could not be decided.
* **What it asserts**: the assertion in words, its description and its id (with a copy button).
* **Manage this control**: **Edit control** and **Archive…** (owners and admins).
* **Failing runs**: the runs that failed it in this window, with the value observed, each linked to its session.
* **Evaluation trail**: every verdict, newest run first: **Verdict** (pass, fail or unknown), **Run**, **Observed** value and **Run started**. Unknown verdicts are listed like any other, so you can see the runs where the control could not decide.

### Edit or switch off a control

Press **Edit control**, change the fields, and press **Save changes**. Untick **Evaluate this control on every run that closes** to switch it off: it keeps its history and stops being evaluated.

## How verdicts are reached

* **At the end of a session**, every enabled control is evaluated over the whole record. Every verdict is definitive, unknown included: there, "could not compute" is itself the finding.
* **During a session**, every thirty seconds, only verdicts that no later record could overturn are reported: a breached ceiling, a met floor, a forbidden record that already happened. Everything else waits. A mid-run verdict and the final one therefore never contradict each other.
* **A metric that could not be measured** gives unknown, never pass. A cost ceiling over a session whose responses carried no cost is unknown. A token ceiling over a partially measured session resolves to a floor: if the floor already breaches the threshold the control fails; if it merely satisfies it, unknown.
* **A record Krynix could not interpret** makes the session's typed evidence incomplete. A control that saw a forbidden event still fails; a control that saw no forbidden event answers unknown rather than pass, because the forbidden thing may be in the records it could not read.

## Archiving

Press **Archive…** on the control's page, then confirm, or **Keep it active**. Archiving stops future evaluation and keeps its definition and every verdict it produced, readable with "include archived". Its name is freed. There is no hard delete: destroying the record of a failing control on an API call would contradict the product.

## Where verdicts go

A control's change into or out of failure can be pushed to a webhook or an OpenTelemetry logs receiver. This is not set up from the dashboard yet; ask us to configure it for you. The push carries transitions, never every evaluation, and never unknown: it is a failure stream, not the status surface. The Controls board is the record; a missing notification is not evidence that nothing failed.
