Skip to main content

WebStackProfile

Struct WebStackProfile 

Source
pub struct WebStackProfile {
    pub stack: WebStack,
    pub streaming: f64,
    pub tool_discoverability: f64,
    pub encoding_efficiency: f64,
    pub interop: f64,
    pub security_primitives: f64,
    pub evidence: Vec<&'static str>,
}
Expand description

A curated agentic profile of a web stack / wire protocol across the five agent-native axes, with evidence.

Fields§

§stack: WebStack

Which stack this profiles.

§streaming: f64

LLM-shaped streaming as a first-class frame family (1.0 = native token / latent / mid-stream tool-call frames).

§tool_discoverability: f64

Tool / capability introspection at the protocol layer (1.0 = the protocol itself exposes a tools/list contract).

§encoding_efficiency: f64

Wire compactness for the LLM/tool-call workload (1.0 = binary framing + content-typed payloads).

§interop: f64

Existing agent-ecosystem adoption (1.0 = every major SDK already speaks it).

§security_primitives: f64

Auth / tracing / integrity primitives carried by the protocol itself (1.0 = bearer/mTLS + W3C tracing + content integrity + identity inline).

§evidence: Vec<&'static str>

Why: one evidence string per notable factor.

Implementations§

Source§

impl WebStackProfile

Source

pub fn fitness(&self) -> f64

Composite agentic fitness: unweighted mean of all five axes.

Examples found in repository?
examples/web_benchmark.rs (line 26)
13fn main() {
14    println!("agentic-eval — web stacks / wire protocols for agentic AI use");
15    println!("axes: streaming, tool-discoverability, encoding, interop, security\n");
16
17    // ── Ranked benchmark (best-first by composite agentic fitness) ───────────
18    println!(
19        "{:<15} {:>7}   {:>9} {:>5} {:>8} {:>7} {:>8}",
20        "stack", "fitness", "streaming", "tools", "encoding", "interop", "security"
21    );
22    for p in rank_web_stacks() {
23        println!(
24            "{:<15} {:>7.2}   {:>9.2} {:>5.2} {:>8.2} {:>7.2} {:>8.2}",
25            p.stack.name(),
26            p.fitness(),
27            p.streaming,
28            p.tool_discoverability,
29            p.encoding_efficiency,
30            p.interop,
31            p.security_primitives,
32        );
33    }
34
35    // ── Head-to-head: SPINE vs the OpenAI API (the dominant baseline) ───────
36    println!("\nhead-to-head (positive = SPINE fits agentic use better):");
37    print!("{}", compare_web_stacks(WebStack::Spine, WebStack::OpenAiApi));
38
39    // ── Evidence behind SPINE's profile ─────────────────────────────────────
40    println!("\nwhy SPINE scores where it does:");
41    for e in &profile(WebStack::Spine).evidence {
42        println!("  - {e}");
43    }
44
45    println!(
46        "\nReading: SPINE now leads the composite (0.90), edging gRPC (0.83).\n\
47         It was always strong on the agent-native axes it was designed for\n\
48         (LLM StreamStart/Token/End frames with multiplex-aware StreamCancel +\n\
49         mid-stream usage, a CapabilityQuery handshake, inline W3C TraceContext).\n\
50         v1.4.0's CBOR wire format plus v1.5.0's byte-string tensor payloads\n\
51         bring encoding to parity with protobuf (0.95; 89% smaller embedding\n\
52         frames), and per-message Ed25519 signed frames give message-level\n\
53         non-repudiation beyond channel mTLS (security 0.95). The inflection is\n\
54         three deployable bridges: a runnable MCP stdio server (v1.6.0), the\n\
55         OpenAI-compatible gateway, and a production-grade gRPC AgentService\n\
56         (v1.8.0, reflection-enabled + real-model-backed in v1.9.0) — reachable\n\
57         from the three dominant agent ecosystems with standard client stubs,\n\
58         lifting interop 0.15 -> 0.67. Honest\n\
59         caveat: interop is still SPINE's weakest axis — the bridges map the\n\
60         agentic surface (not SPINE's native binary frames) and SPINE's own\n\
61         protocol has ~zero native install base."
62    );
63}

Trait Implementations§

Source§

impl Clone for WebStackProfile

Source§

fn clone(&self) -> WebStackProfile

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WebStackProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for WebStackProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for WebStackProfile

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.