# Interface PolicyRule

A policy rule with priority-ordered evaluation.

interface PolicyRule {
id: string;
priority: number;
evaluate(context: PolicyContext): PolicyDecision;
}

- Defined in packages/nexus-agents/src/pipeline/policy-engine.ts:38

##### Index

### Properties

id
priority

### Methods

evaluate

## Properties

### `Readonly` id

id: string

- Defined in packages/nexus-agents/src/pipeline/policy-engine.ts:39

### `Readonly` priority

priority: number

- Defined in packages/nexus-agents/src/pipeline/policy-engine.ts:40

## Methods

### evaluate

- evaluate(context: PolicyContext): PolicyDecision

  #### Parameters

  - context: PolicyContext

  #### Returns PolicyDecision

  - Defined in packages/nexus-agents/src/pipeline/policy-engine.ts:41