scientific-workflow 0.18.0

Configuration-driven scientific tasks, typed state, and durable recordings
Documentation
# Error API — Rust 0.18.0

The crate-root WorkflowError composes failures without taking ownership of each
subsystem's vocabulary. It is non-exhaustive, owns its sources, and is Send + Sync.

## Basic API

run/check/start return WorkflowError. Variants are StudyPlan(StudyError) for
loading/binding/preflight, Runtime(RuntimeError) for active execution, Io for
storage/process/socket/workspace operations, and Json for record serialization.
Transparent conversions preserve source chains. Applications normally propagate
with ? and inspect durable engine records when a detached execution fails.

## Advanced API

StudyPlan::load provides a precise effect-free planning error. Active runtime
construction is private; use RunHandle.wait() or RunClient to obtain the actual
recorded outcome. Start success alone establishes readiness. Dashboard errors
belong to the independent client and cannot change an engine's scientific outcome.
A failed capture keeps a discoverable failed record with capture_complete false.

## Example

```rust,no_run
use scientific_workflow::WorkflowError;
match scientific_workflow::start(std::path::Path::new("/study")) {
    Ok(handle) => println!("{}", handle.run_id),
    Err(WorkflowError::StudyPlan(error)) => eprintln!("preflight failed: {error}"),
    Err(error) => eprintln!("launch failed: {error}"),
}
```

## Not API

Private error storage, derive expansion, runtime sequencing and diagnostic rendering.
Errors do not themselves perform IO, cancellation, retry, cleanup or recovery.