pub struct AgentMetadata {
pub role: String,
pub host: String,
pub capabilities: Vec<String>,
pub issued_at: String,
pub expires_at: Option<String>,
pub caveats: Caveats,
}Expand description
Metadata claimed by an agent at certificate-issue time. These fields are signed by the user; they cannot be tampered with without invalidating the cert.
Fields§
§role: StringRole label — e.g. "inference-worker", "orchestrator".
host: StringHost hint — e.g. "host-a", "host-b".
capabilities: Vec<String>Capabilities advertised to the mesh — e.g. ["ollama", "vllm"].
issued_at: StringIssue time, RFC 3339 string. Wall-clock is allowed here because it’s a claim in a signed cert, not a coordination primitive.
expires_at: Option<String>Optional expiry, RFC 3339. None means the cert has no
declared expiry; consumers may still impose their own.
caveats: CaveatsThe agent’s attenuated authority — the capability set it was minted
with. Part of the signed payload, so it cannot be tampered with
without invalidating the cert: a verifier can read these caveats and
trust them. Defaults to Caveats::top (unrestricted), which is the
back-compatible “no caveats declared” authority.
AgentKey::delegate enforces child ⊑ parent at mint time, and
CertChain::verify re-checks attenuation at every link — so a chain
that amplifies authority is rejected even if each signature is valid
(see crate::caveats and issue #35).
Trait Implementations§
Source§impl Clone for AgentMetadata
impl Clone for AgentMetadata
Source§fn clone(&self) -> AgentMetadata
fn clone(&self) -> AgentMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentMetadata
impl Debug for AgentMetadata
Source§impl<'de> Deserialize<'de> for AgentMetadata
impl<'de> Deserialize<'de> for AgentMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AgentMetadata
Source§impl PartialEq for AgentMetadata
impl PartialEq for AgentMetadata
Source§fn eq(&self, other: &AgentMetadata) -> bool
fn eq(&self, other: &AgentMetadata) -> bool
self and other values to be equal, and is used by ==.