Skip to main content

escalation_reason

Function escalation_reason 

Source
pub fn escalation_reason(tool_name: &str, missing: CapabilitySet) -> String
Expand description

The plain-language reason for a missing-capability escalation, rendered verbatim on the approval card on every edge (one shared helper so the wording never differs by surface).

User-facing copy: no internal terms, active sentences, honest about risk without overclaiming. In the current model a capability is only ever missing because untrusted content entered the conversation (the base policy grants everything), so the copy names that cause; a future narrowed base policy reuses the same wording — the access is missing either way, and the approver’s decision is the same.