guard
Check a monadic condition on a reference to enforce constraints before passing to downstream combinators. Returns the reference on success, error on failure.
Instructions
Check a monadic condition on a ref. Returns the ref if the guard passes, error if not.
Use to enforce constraints before passing refs to downstream combinators.
Args: ref: A ref string or JSON object. check: The guard to check — one of: "validated", "budget", "classification", "encrypted", "exists". value: Required for some checks — e.g. the type name for "validated", the classification level for "classification".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| check | Yes | ||
| value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |