#!/usr/bin/env python3 """Validate release identity and installer artifact policy.""" from __future__ import annotations import argparse import hashlib import json import re import subprocess import sys import tarfile import zipfile from collections.abc import Callable from pathlib import Path VERSION_RE = re.compile(r"^(?P\d+\.\d+\.\d+)(?:-(?P