Spaces:
Running
Running
File size: 816 Bytes
da0ce7b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/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())
|