An root in a Hydro graph, which is an pipeline that doesn’t emit
any downstream values. Traversals over the dataflow graph and
generating DFIR IR start from roots.
The sending end of a network channel, as handed to the generated DFIR by a
Deploy backend, and how the generated code drives
it. See Deploy::network_sink.
Runs f with a fresh shared-node deduplication scope for serialization.
Any SharedNode serialized inside f will be tracked; the first occurrence
emits the full subtree while later occurrences emit a {"$shared_ref": id}
back-reference. The tracking state is restored when f returns or panics.
Traverse the IR to build a union-find that unifies tick IDs connected
through Batch, Snapshot, and YieldConcat nodes at atomic boundaries, then
rewrite all LocationIds to use the representative tick ID.