# ------------------------------------------------------------
# PSUT IoT Engineering Studio · E02
# Defensive analysis of synthetic records only; no network I/O.
# ------------------------------------------------------------
"""Fixed ICMP observation: 1800 incident bytes, 1300 confirmed removed bytes, 600 legitimate bytes retained."""
import json

# Editable defensive setting (only the documented choices are permitted).
CHOICES = [25, 50, 75, 100]
DEFAULT = 75

def analyze(x):
    """Return independently interpretable defensive metrics."""
    if isinstance(x, bool) or x not in CHOICES:
        raise ValueError("Choose a documented defensive setting")
    return {
        'Remaining incident bytes': 500,
        'Remaining total bytes': 1100,
        'Removed incident (%)': 130000/1800,
        'Filter review': int(130000/1800<x)
    }

if __name__ == "__main__":
    for setting in CHOICES:
        print(json.dumps({"setting": setting, "metrics": analyze(setting)}))
