Thanks to visit codestin.com
Credit goes to lib.rs

#adapter #vela #relay #carina

bin+lib vela-relay

Vela Relay: the adapter layer that turns papers, agent runtime artifacts, hypothesis discourse, and review packets into Vela proposals. Library re-exports the four adapter-shape types from vela-protocol; the bundled vela-relay binary lists the four shapes and points at the canonical Vela CLI subcommands that implement each.

4 releases (breaking)

Uses new Rust 2024

0.230.0 May 12, 2026
0.153.0 May 11, 2026
0.123.0 May 10, 2026
0.0.0 May 9, 2026

#649 in Science

Apache-2.0 OR MIT

3.5MB
81K SLoC

vela-relay

Vela Relay: the adapter layer between external scientific activity and Vela proposals.

This crate is the library + binary packaging of the substrate's four-adapter contract documented in docs/RELAY.md:

Shape Input Output Backing module
paper-to-vela Crossref / PubMed / Semantic Scholar / ArXiv Carina artifact + finding proposal vela-protocol::source_adapters
artifact-to-vela ScienceClaw artifact export artifact + finding + gap proposals vela-protocol::artifact_to_state
hypothesis-to-vela Agent discourse export artifact + finding + review-note proposals vela-protocol::runtime_adapters::AGENT_DISCOURSE_V1
review-to-vela Agent4Science review packet attestation proposal vela-protocol::runtime_adapters::AGENT4SCIENCE_REVIEW_V1

Install

cargo install vela-relay

This installs the vela-relay binary. The substrate's actual adapter logic lives in vela-protocol; this crate is the discoverable published surface plus a library re-export of the four-shape contract for downstream Rust users.

Use

vela-relay list
vela-relay describe paper-to-vela --json
vela-relay version

For real adapter runs, use the canonical Vela CLI subcommands the binary points at:

vela bridge-kit verify-provenance packet.json
vela artifact-to-state packet.json
vela runtime-adapter run scienceclaw-artifact-v1 --input export.json
vela runtime-adapter run agent-discourse-v1 --input discourse.json

Library

use vela_relay::{AdapterShape, describe};

for shape in AdapterShape::ALL {
    let contract = describe(*shape);
    println!("{}: {}", contract.shape.slug(), contract.canonical_cli);
}

The crate also re-exports vela_protocol::artifact_to_state, source_adapters, and runtime_adapters so downstream Rust users can implement custom adapters against the same contract.

Doctrine

This crate does not implement adapters itself. It exposes the four-shape contract so the substrate's adapter ecosystem can grow without touching the kernel crate. Adapter implementations live in vela-protocol; doctrinal source of truth is docs/RELAY.md plus docs/BRIDGE_KIT.md.

License

Apache-2.0 OR MIT, same as the rest of the Vela workspace.

Dependencies

~53–77MB
~1M SLoC