---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/orchestration/plan/functions/isValidNodeId.md
---

# Function: isValidNodeId()

```ts
function isValidNodeId(id: string): boolean;
```

Defined in: [src/batteries/orchestration/plan.ts:514](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/plan.ts#L514)

Whether a string is a valid node id.

## Parameters

| Parameter | Type     | Description         |
| --------- | -------- | ------------------- |
| `id`      | `string` | The string to test. |

## Returns

`boolean`

True when `id` is a valid node id.

## Remarks

A valid node id is snake\_case: lowercase ASCII letters, digits and underscores, with no `/` and
no leading `.`. The `/` and leading-`.` rules are load-bearing: a path-shaped id gets copied by
small models as a citation, which cost a real 35–57 dispatch re-cite loop in this repo. Keeping
node ids out of path shape means a model cannot mistake one for a file path and re-cite it.
