#!/usr/bin/env python3 import json import sys path = '/root/troupe-standup/wizard-work/spark/verification_result_20261025.json' try: with open(path) as f: data = json.load(f) if data.get('status') == 'verified' and len(data.get('packages', {})) >= 4: print("VALID") sys.exit(0) else: print("INVALID") sys.exit(1) except Exception as e: print(f"ERROR: {e}") sys.exit(1)