pub fn derive_slug(name: &str) -> StringExpand description
Derive a filesystem-safe slug from a display name. Lowercase,
ASCII alphanumeric + dash/underscore, consecutive dashes collapsed,
trimmed to 64 chars. Returns "agent" if the input has no valid
characters (defensive fallback).