Files
orca/src/shared/structured-worker-handle.ts
T
Brennan Benson cf2280a013 test(orchestration): pin one caller precedence rule across every CLI verb that names its caller
Adds the per-verb table (flagless acts as the session; a conflicting --from or
--terminal is refused before any request; the session's own spellings are
accepted), the enumerated guess population with its positive control, the
structured worker's own handle, the identity-less refusal for an older child,
the unchanged terminal agent, and the envelope. dispatch-show's --from only fills
preview text, so it passes through unfenced and a session's flagless preview
names the address the real dispatch writes.
2026-09-25 18:41:16 -07:00

8 lines
443 B
TypeScript

// Deliberately not `term_`: `issueHandle` revalidates the renderer graph epoch against the
// renderer-driven leaves map, so a main-minted `term_` leaf evaporates on the next window reload.
export const STRUCTURED_WORKER_HANDLE_PREFIX = 'structworker_'
export function isStructuredWorkerHandle(handle: string | null | undefined): handle is string {
return typeof handle === 'string' && handle.startsWith(STRUCTURED_WORKER_HANDLE_PREFIX)
}