Add ALD Transition Console preview and Astra lab build workflow

This commit is contained in:
scandalist-trash committed 2026-10-27 10:50:43 -04:00
1 parent f330a3c00a
commit e5c6a2fc0e
199 files changed
+9866

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
"""Require actual supported-target evidence before package generation."""
import argparse, json, sys
from pathlib import Path
root = Path(__file__).resolve().parents[1]
parser = argparse.ArgumentParser()
parser.add_argument('--lock', type=Path, default=root/'docs/compatibility-lock.json')
args = parser.parse_args()
required = ('os_release', 'os_update', 'kernel', 'architecture', 'compiler', 'cmake',
'qt_packages', 'sqlite_driver', 'transports', 'ald_packages')
try:
lock = json.loads(args.lock.read_text())
observed = lock.get('validated_target', {})
missing = [key for key in required if not observed.get(key)]
if lock.get('schema_version') != 1 or lock.get('release_validated') is not True or missing:
raise ValueError('supported Astra validation incomplete; missing: ' + ', '.join(missing))
target = lock.get('target', {})
if target.get('release') != '1.7.7' or target.get('update') != 'UU2' or target.get('ald_version') != '3.1.0':
raise ValueError('target differs from the accepted first laboratory baseline')
except (OSError, ValueError, TypeError, AttributeError) as error:
print('RELEASE BLOCKED: ' + str(error), file=sys.stderr)
sys.exit(1)
print('Required lock fields present. Authenticity and laboratory approval still require review; this is not migration authorization.')