🔀Workflow Actions
Audience: Nexus SDK integrators (Rust).
Area: Workflow actions.
Generated from: Nexus SDK workflow API at annotated tag v2.2.0, peeled commit c996eda4f125989cbec4f1cdc5d5e5235a558167; the generated inventory and 2.2.0 state/recovery helpers are source-verified.
The inventory below is the public Workflow surface. Older ticket/cashier compatibility APIs are historical and are not part of the documented declarations. WorkflowActions::settle_committed_tool_result_for_walk uses a PTB that settles the exact Invocation and then invokes emit_payment_ready_walk_requests before optional Task settlement, so every active walk whose payment is ready can be requested in the same transaction.
Recovery and causal reads
Use RecoveryWindow to prove the retained checkpoint interval before scanning recent activity. WorkObjects and discover_work_objects identify Task and Execution objects from that interval; they do not reconstruct pruned history. Pair discovered IDs with TransactionUpdate, TransactionStateOutput, and context-bound object reads, and preserve the checkpoint, digest, object version, and error classification in the diagnostic record.
Bounded reads and occurrence recovery
RecoveryReader::new accepts only the RPC URL. Each RecoveryReader::read call invokes its callback once and applies a 30-second deadline; it returns the callback or timeout error so the caller controls continuation. Discovery rejects failed, invalid, or incomplete scans instead of returning a partial inventory as success. Keep application readiness disabled until the caller has completed recovery.
OccurrenceHandle::resolve_expired discovers eligible Invocations, preserves and settles available committed results, refunds expired locks by exact identity, and settles finished occurrences into their Tasks. It also considers committed Tool results left behind an earlier insufficient-settlement marker: a refill does not clear the marker, and the current simulation determines whether settlement is now affordable. It returns confirmed resolutions and the final observed occurrence; work still awaiting eligibility remains pending. Independent executions remain concurrent, and recovery of a settled occurrence performs no mutation. abort_expired(Some(id)) retains the specific-Invocation path.
execution_cost keeps its existing return shape. execution_cost_details returns the summary and outstanding Invocation IDs from one payment snapshot. Use those IDs for inspection rather than inferring a lock from the total cost alone.
Source-derived public API inventory
RecoveryReader
pub struct RecoveryReader<'a> {
rpc_url: &'a str,
}RecoveryReader::new
RecoveryReader::read
RecoveryReader::window
RecoveryReader::checkpoint_at
RecoveryReader::discover_work_objects
RecoveryWindow
RecoveryWindow::load
RecoveryWindow::checkpoint_at
WorkObjects
discover_work_objects
EXPIRED_WALK_NOT_DOUBLE_TIMEOUT_EXPIRED_REASON
EXPIRED_WALK_ALREADY_TERMINAL_REASON
EXPIRED_WALK_OTHER_PAYMENT_LOCKS_REASON
PublishResult
InvocationPolicy
AuthorizeInvocationResult
DagSnapshot
InvocationAbortCandidate
AbortExpiredExecutionResult
AbortExecutionResult
SettleCommittedToolResultParams
ResolveExpiredWalkParams
ExpiredWalkResolutionKind
ExpiredWalkResolutionKind::as_str
ExpiredWalkResolutionKind::selected_candidate
ExpiredWalkResolutionKind::skip_reason
ExpiredWalkResolutionPlan
ExpiredWalkResolutionResult
SettleCommittedToolResultByLeaderParams
RecordCommittedToolResultGasChargeParams
CommittedToolResultSettlementResult
BrokenOnchainToolResultCleanup
RecordCommittedToolResultGasChargeResult
CommittedToolResultView
CommittedToolResultView::leader_record
CommittedToolResultLeaderRecordView
InsufficientSettlementMarkerView
OnchainToolResultState
OnchainToolResultState::consume_ready_result
OnchainToolResultState::consume_object_input
InspectExecutionResult
InspectExecutionOptions
WorkflowExecutionTerminalState
ResolvedEndState
InspectExecutionCompletionResult
ExecutionCostResult
ExecutionCostDetails
WorkflowActions
dag_vertex_requires_tool_verification
fetch_dag_vertices_bcs
fetch_dag_vertices_from_links_bcs
fetch_dag_vertex_bcs
fetch_dag_vertices_by_keys_bcs
fetch_committed_tool_result_for_walk
committed_tool_result_from_finalized_output
inspect_expired_walk_resolution
inspect_expired_walk_resolution_at
inspect_expired_execution_resolution_at
onchain_tool_result_from_finalized_output
fetch_onchain_tool_result_state_for_walk
fetch_dag_default_values_bcs
fetch_dag_default_values_by_keys_bcs
fetch_dag_edges_bcs
fetch_dag_outputs_bcs
offchain_success_requires_tool_verification
fetch_vertex_input_port_names
execution_terminal_record_matches_retryable_vertex
should_settle_tool_err_eval_gas
WorkflowActions::publish
WorkflowActions::inspect_dag
WorkflowActions::authorize_invocation
WorkflowActions::inspect_execution
WorkflowActions::inspect_execution_until_completion
WorkflowActions::execution_cost
WorkflowActions::execution_cost_details
WorkflowActions::abort_expired_execution
WorkflowActions::settle_committed_tool_result_for_walk
WorkflowActions::settle_committed_tool_result_for_walk_by_leader
WorkflowActions::record_committed_tool_result_gas_charge_by_leader
WorkflowActions::inspect_expired_walk_resolution
WorkflowActions::resolve_expired_execution
WorkflowActions::resolve_expired_walk
WorkflowActions::abort_expired_execution_invocation_candidates
WorkflowActions::abort_expired_execution_with_invocation
payment_vertex_key
Last updated

