Skip to content
Unverified: This page has not yet been anchored to automated code tests.

vox-workflow-runtime API Reference (generated)

Crate: vox-workflow-runtime · Version: 0.6.0 · Target: Library (lib.rs)

Interpreted workflow execution MVP (local + mens activity hooks)

Minimal interpreted workflow runner: walks a [vox_compiler::hir::HirModule] workflow body for activity calls and executes no-op steps with optional mens hooks.

  • Activities whose name starts with mesh_ are treated as [PopuliActivity] steps when the mens feature is enabled: they register with [vox_populi::publish_local_registry_best_effort] and run on the iroh mesh (never a user-supplied URL in workflow source). Use with { mens: "noop" | "join" | "snapshot" | "heartbeat" | "dispatch" | "wait" } to select the operation; see mesh_noop, mesh_join, mesh_snapshot shorthands.
  • Other activities are recorded as local no-ops (journal only).

Codex journal: unless VOX_WORKFLOW_JOURNAL_CODEX_OFF=1 disables it (and provided DB config resolves), vox-cli persists the interpreted journal after a successful run via VoxDb::record_workflow_journal_entry (see docs/src/architecture/orchestration-unified-ssot.md). Journal rows include ActivityStarted / ActivityCompleted with activity_id for idempotency hints and carry journal_version = 1 in emitted event objects.

This crate is the MVP engine behind vox mens workflow run when vox-cli is built with workflow-runtime.

FeatureDefault / Enables
defaultmens, sql
mensdep:vox-populi, vox-populi/transport, dep:vox-mesh-transport, dep:iroh
sqldep:vox-db
test-support—
DependencyKind
vox-compilerNormal
vox-configNormal
vox-dbNormal
vox-journalNormal
vox-mesh-transportNormal
vox-populiNormal
vox-runtimeNormal
vox-compilerDevelopment
ModuleDescription
db_trackerSQL-backed [workflow::WorkflowTracker] (requires the sql cargo feature).
durable_promiseDurablePromise<T> — the single awaitable primitive for distributed durable work (P1-T1).
duration_literalShared parser for @scheduled / workflow_wait duration literals (ADR-041 M-3, M-7).
file_journalAppend-only file-backed [workflow::WorkflowTracker] suitable for mobile + lightweight desktop.
scheduledPersistent @scheduled runner (Phase 4.2; requires the sql cargo feature).
workflow—