Skip to main content

Module workgraph

Module workgraph 

Source
Expand description

Mutable, revisioned work graph (PSP-8 System 4).

Each graph revision is acyclic, but the session as a whole may add, retire, split, merge, update, or requeue nodes as verifier evidence changes. Updating a node creates a new WorkNode generation rather than mutating it in place; retired generations remain in the ledger but are no longer executable.

Structs§

GraphValidationReport
Result of validating a revision before activation.
WorkEdge
A directed edge in a graph revision.
WorkGraphRevision
A durable version of the work graph (PSP-8 WorkGraphRevision).
WorkNode
An immutable incarnation of a node (PSP-8 WorkNode).

Enums§

EdgeKind
Typed edge semantics (PSP-8 System 4).
GraphRevisionReason
Why a graph revision was produced.
NodeClass
The kind of work a node performs.
WorkNodeState
Execution state of a node generation.

Functions§

validate
Validate a node/edge set: check that all edge endpoints exist and that the dependency subgraph is acyclic (Kahn’s algorithm).