Skip to content
1 min read · 99 words

Function: isValidEdgeId()

ts
function isValidEdgeId(id: string): boolean;

Defined in: src/batteries/orchestration/plan.ts:529

Whether a string is a valid edge id.

Parameters

ParameterTypeDescription
idstringThe 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.