Spaces:
Running
Running
Deploy Aureon OS (deploy/selfhost stack: nginx edge + fusion API x2 + console + HNC organ + redis + postgres; paper mode) (part 19)
da0ce7b verified Download scripts/boot_diagnostic.py from GaryLeckey/aureon-os: direct link, hf CLI and curl.
- Browser
- Download file 816 Bytes
-
https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/scripts/boot_diagnostic.py
- Command line
-
hf download hf://spaces/GaryLeckey/aureon-os/scripts/boot_diagnostic.py
-
curl -L -o boot_diagnostic.py https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/scripts/boot_diagnostic.py
816 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()) | |