Skip to main content

Crate licoup_workflow

Crate licoup_workflow 

Source
Expand description

Pure LicoUp workflow compiler and transition machine.

The generic compilation and transition machinery is owned by acativa; this crate owns the LicoUp-bound vocabulary layered over it: the licoup.adaptive-flywheel.workflow.v1 schema identity this build compiles under, the persisted run snapshot and reducer event spellings (conversationId, assistant memberships, assistant failure events, the three-way callback decision), and the strategy error vocabulary the host surfaces.

Workflow definitions are parsed and analyzed once into immutable indexes. Runtime state changes are pure: callers persist the returned snapshot and commands, then execute effects through their owning adapters.

Re-exports§

pub use analysis::AnalyzedWorkflow;
pub use analysis::WorkflowValidation;
pub use analysis::WorkflowValidationFailure;
pub use analysis::analyze;
pub use analysis::compile_workflow_source;
pub use analysis::compile_workflow_value;
pub use analysis::validate_workflow_value;
pub use diagnostic::PreflightDiagnostic;
pub use diagnostic::WorkflowDiagnosticActualKind;
pub use diagnostic::WorkflowDiagnosticCode;
pub use diagnostic::WorkflowDiagnosticExpected;
pub use diagnostic::WorkflowDiagnosticRecovery;
pub use diagnostic::WorkflowDiagnosticStage;
pub use machine::ReducerEvent;
pub use machine::ReducerOutput;
pub use machine::RunSnapshot;
pub use machine::reduce;
pub use strategy::ASSISTANT_TEMPORARY_DEFINITION_PREFIX;
pub use strategy::StrategyError;
pub use strategy::StrategyErrorCode;
pub use syntax::ParsedWorkflow;
pub use syntax::parse;
pub use ir::*;

Modules§

analysis
Privacy-safe, deterministic workflow validation.
compile
Plan identity: what a lowered plan is bound to.
diagnostic
dispatch
Pure durable-dispatch decisions for the strategy engine.
ir
The workflow definition and run vocabulary.
machine
The persisted run snapshot and reducer event vocabulary, reduced by the generic engine’s machine.
strategy
Strategy definition, binding, projection and error vocabulary.
syntax
Workflow source parsing.

Structs§

BindingCandidate
BindingValue
ClaimLease
One exact effect claim.
CompiledWorkflow
DispatchGate
The durable facts a dispatch gate reads. All of them are persisted before the decision is taken.
DispatchIntent
The durable record committed before an effect leaves the host.
EffectCompletion
A completion reported by an owner of one exact effect attempt.
RunCommand
SchemaId
A schema identity the host binds to the engine.
StrategyAuthorization
StrategyDefinition
StrategyDefinitionSummary
StrategyDiagnostic
StrategyProjection
SuccessorEdge
One successor edge whose target may be released by a settled effect.
SuccessorGate
The durable facts fencing one successor release.

Enums§

ClaimVerdict
The outcome of trying to take one effect claim.
CommandKind
CommandStatus
CompletionVerdict
The verdict on one reported completion.
DispatchDecision
The verdict of the dispatch gate.
DispatchRecipient
Who performs one dispatched effect. The recipient is frozen into the dispatch intent so routing cannot drift between admission and execution.
DispatchRefusal
Why a dispatch was refused before any effect was attempted.
EffectProgress
How far the effect behind a claim actually got. This is persisted by the adapter at its own safe boundary; it is the only progress authority.
RecoveryVerdict
What a recovering host may conclude about one persisted claim.
SuccessorAdmission
The verdict on releasing the successors of one settled effect.
SuccessorRefusal
Why a successor release was refused.

Constants§

MAX_ACTIVE_EFFECTS
MAX_BINDING_SLOTS
MAX_GRAPH_STATES
MAX_GRAPH_TRANSITIONS
MAX_RETRY_ATTEMPTS
MAX_RUNTIME_REQUIREMENTS
MAX_WORKSET_ITEMS
WORKFLOW_SCHEMA_VERSION
The workflow schema identity this build compiles and validates under. It is bound once here so the store, the runtime and every caller share the same vocabulary; the engine underneath stays schema-free.

Functions§

claim_effect
Take the claim for one dispatch intent, or report why it cannot be taken.
compile_workflow
Compile a canonical in-memory definition through the same analysis path as source and value entry points.
recover_claim
Recover one persisted claim from its lease clock and effect progress.
settle_effect
Decide one reported completion against the exact claim that owns it.