factor_agent.gate.graph#

A candidate’s KunQuant graph as plain data: what the Gate records and the Evaluator compiles.

The sandbox subprocess builds the graph and sends it back as a node list, so the parent process never runs candidate code or unpickles anything; it rebuilds the operators from registered classes only. A node records its operator under the vocabulary’s name for it; a graph keeps the classes of the vocabulary it was read or recorded with (classes, not part of its identity), which build makes the operators from.

Classes

Graph

A factor graph in topological order; the last node is the factor.

Node

One operator: its class name, attributes, input nodes and enclosing loop node.