Configure payload history retention policies
Examples
if (interactive()) {
# Keep more history items but for shorter time
payload_history_config(max_items = 500, max_age_hours = 12)
# Long-term storage with fewer items
payload_history_config(max_items = 50, max_age_hours = 168) # 1 week
}