# Artifact API — Rust 0.18.0
Backend-neutral immutable references, portable selections, verified readers and consumer ownership.
## Basic API
open_run(StorageLocation,run_id) returns RunArchive. ArtifactRef declares logical key, SHA-256, bytes, role and executable bit; ArtifactLocator binds storage/run/prefix.
## Advanced API
ArtifactSet selects a subtree. reader/verify and bounded materialize preserve integrity and protect raw content from maintenance. Keep MaterializationLease alive while any file/mmap uses its path. Raw reads recheck availability against current inventory.
## Example
```rust,ignore
let run = scientific_workflow::open_run(&location, "20261128T174205.123456789Z")?;
let view = run.materialize("inputs", std::path::Path::new("/cache"), 1_000_000)?;
```
## Not API
Scientific decoding, task scheduling and direct provider URLs in models. Implementation children are private. Public and crate-private peer
contracts are exposed only through the owning root. See the repository's
[API map](https://github.com/dingyisun0101/Scientific-Workflow/blob/main/docs/reference/rust-api.md)
and breaking migration for complete integration requirements.