Spaces:
Runtime error

aureon-os / scripts /boot_diagnostic.py
GaryLeckey's picture
Publish Aureon OS from source ca6be206f108a2474a8cb38faf9ad3ae836e1479 (files 1-250/16781) (#1)
56c0d82
Raw History Blame Contribute Delete
786 Bytes
#!/usr/bin/env python3
"""Read-only release diagnostic for the public Aureon ICS facade."""
from __future__ import annotations
import json
import os
import sys
from pathlib import Path
REPO_ROOT = Path(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)))
if str(REPO_ROOT) not in sys.path:
sys.path.insert(0, str(REPO_ROOT))
from aureon.core.integrated_cognitive_system import ( # noqa: E402
integrated_cognitive_system_security_preflight,
)
def main() -> int:
"""Print the authoritative non-secret ICS release state."""
status = integrated_cognitive_system_security_preflight()
print(json.dumps(status, sort_keys=True))
return 0 if status.get("production_ready") is True else 2
if __name__ == "__main__":
raise SystemExit(main())