Skip to main content

key_refusal

Function key_refusal 

Source
fn key_refusal(
    state: &AppState,
    actor: &Actor,
    target: &AgentDefinition,
    current: &str,
    new: &str,
) -> Option<Refusal>
Expand description

Why the keys the new environment holds may not go to its server. When the call moves the address, every key in the environment goes with it, so every one is checked, the ones already there as well as the ones the call writes: a vault: reference must be usable by the acting agent and by the target, and a key written in the clear (the operator’s, from My Agents) is never handed to an address an agent chose. When only a key changes, that key is checked. A key is only written for a server of its own: with no address, or Anthropic’s, the launch passes it through next to the person’s login and the CLI would send that string to Anthropic as its key; so a call that takes the address away takes those keys with it.