---
title: Ward
order: 9
description: "A coded diagnostic that inspects a resolved op and nudges or blocks an anti-pattern before it runs."
tags: [glossary, core-model]
---

# Ward

A coded diagnostic that inspects a resolved op and nudges or blocks an
anti-pattern before it runs.

## Example

`magus describe rule` lists the rules enforced here, wards included, each with its code.

```sh
magus describe rule
```

## Used in

<!-- BEGIN GLOSSARY USAGE (generated by glossary-usage-generate from the knowledge graph; edit the generator, not this list) -->

The knowledge graph holds no docs section or code type by this name outside the glossary.

<!-- END GLOSSARY USAGE -->

## See also

- [Wards](../concepts/wards.md)
- [Diagnostic code](diagnostic-code.md)
