compass.utilities.workflow#
Map of a jurisdiction’s run, linking event logs to its steps
The map (compass/data/workflow.json5) lists every step, decision,
LLM call, and decision tree of a jurisdiction’s run as a graph. Events
name the node they happened in with a step tag, and decisions record
which way they went as branch events, so a replay of the log can
show the path taken against every path that was possible.
Module attributes
Path to the workflow map |
|
Kinds of node the workflow map may contain |
Functions
dict: The workflow map, as parsed from its JSON5 file |
|
|
list: |
|
list of str: The outcomes a decision at node can record |
|
str or None: ID of the group holding the node node_id |
|
dict: Workflow nodes by ID, in the order they are listed |
|
Check that the workflow map is consistent |