#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1116
Task: , 1

</think>

Write a Python function that takes a list of emotional peak data and returns the highest devotion value found.
Generated: 2026-02-12T20:50:55.628526
"""

# your code here
import json

def find_highest_devotion(emotional_data):
    highest_devotion = 0
    for entry in emotional_data:
        devotion = entry.get("devotion", 0)
        if devotion > highest_devotion:
            highest_devotion = devotion
    return highest_devotion

if __name__ == '__main__':
    test_data = [
        {"emotion": "joy", "devotion": 85},
        {"emotion": "sadness", "devotion": 45},
        {"emotion": "anger", "devotion": 92},
        {"emotion": "fear", "devotion": 67}
    ]
    result = find_highest_devotion(test_data)
    print(f"The highest devotion value is: {result}")