# isExcluded

Canonical: https://docs.shumoku.dev/en/library/api/isExcluded
Language: en

@shumoku/core · 0.4.0 · function

# isExcluded

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/discovery-policy.ts#L161)

True when the node should NOT be auto-touched by the scheduler or by any source's discovery pass — convenience predicate that hides the mode comparison from callers that just need a yes/no answer.

```
isExcluded(policy: EffectiveDiscoveryPolicy): boolean
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `policy` | `EffectiveDiscoveryPolicy` | No additional description. | `—` |

## Returns

```
boolean
```

[`libs/@shumoku/core/src/observation/discovery-policy.ts:161`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/observation/discovery-policy.ts#L161)
