Skip to main content

Crate pureflow_contract

Crate pureflow_contract 

Source
Expand description

Node contract data and validation for Pureflow.

§Fragment: contract-data-boundary

This crate keeps the contract layer thin: it owns typed contract metadata and validation against validated workflow topology plus existing capability descriptors. It does not add a second capability model, a parser, or a runtime.

§Fragment: contract-validation-boundary

Validation is intentionally staged. Workflow structure is still owned by pureflow-workflow, capability descriptors remain in pureflow-core, and this crate only verifies that the two line up with the contract metadata supplied for inspection or execution planning.

Structs§

NodeContract
Contract metadata for one node.
PortContract
Contract-side declaration for one node port.
SchemaRef
Opaque schema reference attached to a contract port.

Enums§

ContractValidationError
Validation error for contract metadata.
Determinism
Contract-level determinism declaration.
ExecutionMode
Declared execution mode for one node contract.

Functions§

validate_workflow_contracts
Validate workflow topology, capability descriptors, and node contracts together.