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

# Function: isValidEdgeId()

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

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

Whether a string is a valid edge id.

## Parameters

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

## Returns

`boolean`

True when `id` is a valid edge id.

## Remarks

An edge id must match `/^[A-Za-z0-9_-]{1,64}$/` — no delimiter, no colon, no parenthesis — so
`branchKey` cannot be forged. This is the same charset rule the freeze validator enforces; this
guard is the pure predicate it calls. The length cap (1–64) bounds the length-prefixed route
rendering.
