resolve_effective_endpoint_agent_id (runtime_registry.rs)

clawdstrike · infra

Runtime-agent registration and identity normalization. ! ! Maintains a local persistent catalog of runtime agents (Claude Code/OpenClaw/MCP/etc) ! so policy events can reference stable runtime IDs.

// Source: https://github.com/backbay-labs/clawdstrike | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Runtime-agent registration and identity normalization.
//!
//! Maintains a local persistent catalog of runtime agents (Claude Code/OpenClaw/MCP/etc)
//! so policy events can reference stable runtime IDs.

use crate::settings::{RuntimeAgentRegistration, Settings};

#[derive(Debug, Clone)]
pub struct RuntimeRegistrationResult {
    pub endpoint_agent_id: String,
    pub runtime_agent_id: String,
    pub runtime_agent_kind: String,
    pub external_runtime_id: Option<String>,
    pub first_seen_at: String,
    pub last_seen_at: String,
}

#[derive(Debug, Clone)]
pub struct Runti

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key