Skip to main content

Crate a3s_flow

Crate a3s_flow 

Source
Expand description

Durable workflow engine core for A3S.

a3s-flow models the Workflow SDK style of durable execution as a Rust core: workflow runs are event-sourced, step results are persisted, waits and hooks suspend without burning compute, and the actual workflow interpreter is a pluggable runtime. The native TypeScript runtime boundary compiles source once, then invokes the compiled executable through a small JSON protocol.

Structs§

A3sFlowEvent
A3S-style event record derived from a committed FlowEventEnvelope.
A3sFlowEventBridge
Observer adapter that maps Flow envelopes to A3S-style event records.
A3sFlowEventSubject
Subject touched by a workflow event.
ActiveHookSnapshot
Active external callback hook with the run that owns it.
FanoutFlowEventObserver
Observer that forwards every committed event to multiple observers.
FlowEngine
Event-sourced workflow engine.
FlowEngineBuilder
Builder for a FlowEngine.
FlowEventEnvelope
Stored event with per-run sequence and timestamp.
FlowScheduler
Scheduler that scans durable state and enqueues due workflow work.
FlowSchedulerTick
Result of one scheduler scan.
FlowTaskLease
Leased task returned by a queue worker before acknowledgement.
FlowTaskOutcome
Result of handling one queued FlowTask.
FlowWorker
Worker that handles queued workflow tasks against a FlowEngine.
FlowWorkflowIdentity
Low-cardinality workflow identity copied from the run-created event.
HookCallbackRoute
HTTP route metadata for external hook callbacks.
HookMetadata
Typed helper for common hook metadata fields.
HookSnapshot
InMemoryA3sFlowEventSink
In-memory A3S event sink for examples and tests.
InMemoryEventStore
In-memory event store for tests, local development, and embedded hosts.
InMemoryFlowEventObserver
In-memory observer for tests, local debugging, and embedded hosts.
InMemoryFlowTaskQueue
In-process FIFO queue for tests, embedded hosts, and local workers.
LocalFileA3sFlowEventSink
JSONL-backed A3S Flow event sink for local audit logs.
LocalFileDeadLetteredTask
Task moved out of inflight dispatch after exceeding a local lease policy.
LocalFileEventStore
JSONL-backed event store for local durable runs.
LocalFileFlowTaskQueue
JSON-backed local durable task queue.
NativeRuntimeRequest
NativeRuntimeResponse
NativeTsRuntime
Runtime that compiles TypeScript to a native executable and speaks JSON over stdin/stdout with that executable.
NativeTsRuntimeConfig
Configuration for the native TypeScript runtime adapter.
NativeTsRuntimePreflight
Result of validating and compiling a native TypeScript workflow source.
NoopFlowEventObserver
Observer that intentionally drops all events.
RetryPolicy
Retry behavior for a step command.
RuntimeSpec
Runtime metadata stored with a run so replay can happen on another process.
StepCommand
Step definition returned by workflow replay.
StepInvocation
Step execution request passed to a runtime implementation.
StepSnapshot
WaitSnapshot
WorkflowContext
Replay helper for Rust workflow runtimes.
WorkflowInvocation
Workflow replay request passed to a runtime implementation.
WorkflowRunSnapshot
Materialized state of a workflow run.
WorkflowRunSummary
Aggregated run counts for host dashboards and health probes.
WorkflowSpec
Durable workflow definition.

Enums§

FlowError
Errors surfaced by the workflow engine and runtime adapters.
FlowEvent
Event persisted as the single source of truth for a workflow run.
FlowTask
Queueable unit of workflow engine work.
HookStatus
NativeRuntimeKind
RuntimeCommand
Command emitted by the workflow runtime after replay.
RuntimeKind
Runtime family used to execute workflow code.
StepFailureAction
What the engine should do after a step exhausts its retry attempts.
StepStatus
WaitStatus
WorkflowRunStatus
WorkflowRunSuspension
Open suspension projected for host dashboards and operator consoles.

Constants§

NATIVE_RUNTIME_PROTOCOL

Traits§

A3sFlowEventSink
Sink for A3S-style Flow events.
FlowEventObserver
Observer for committed workflow events.
FlowEventStore
Append-only event store for durable workflow runs.
FlowRuntime
Runtime boundary for workflow code and side-effecting steps.
FlowTaskQueue
Queue abstraction for workflow dispatch.

Type Aliases§

JsonValue
JSON payload exchanged between the engine and runtimes.
Result
Crate-local result type.