[MEDIUM:90] Issue Found by Staging CI Review
Severity: MEDIUM
Confidence: 90/100
PR comment: #1359 (comment)
Description
Excessive .clone() calls in data transformation — build_routine_trigger() and related functions clone entire Trigger/Action/NotifyConfig structs with nested String and HashMap clones. Happens on routine creation and event_emit calls. Should use references where possible.
Auto-created by staging-ci Claude Code review