# ------------------------------------------------------------
# PSUT IoT Engineering Studio · E09
# Defensive analysis of synthetic records only; no network I/O.
# ------------------------------------------------------------
"""Prepared response classes for known and unknown synthetic accounts differ without a uniform response policy. Six failed records include two known-account records."""
import json

# Editable defensive setting (only the documented choices are permitted).
CHOICES = [0, 1]
DEFAULT = 1

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 {
        'Distinct public response classes': 2-x,
        'Account-dependent response difference': 1-x,
        'Recorded failures': 6
    }

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