lardon3d/tests/test_driver_policy_startup.py
fy59 599be97fbe feat(governor): freeze adaptive GPU-first orchestration
Freeze Compute Governor v2 and asynchronous Vulkan Matcher execution.

Governor now owns production task admission and live resource adaptation,
with GPU-first AUTO selection for validated backends, CPU12 host capacity,
desktop CPU/RAM reserves, UMA accounting, pressure throttling, hysteresis,
and recovery.

Validate and freeze the rolling Vulkan ORB Matcher path, host topology
policy, task capability envelopes, runtime telemetry, restart/durability
contracts, portable CPU fallback, and scientific equivalence.

COMPUTE_GOVERNOR_V2=PASS/FROZEN
ORB_VULKAN_ASYNC_EXECUTION=PASS/FROZEN
MATCHER_GPU=EXISTING_BACKEND_VALIDATED_AND_PREFERRED
2026-08-30 22:17:51 +02:00

37 lines
1 KiB
Python

import os
import subprocess
import sys
def main() -> int:
if len(sys.argv) != 2:
return 2
environment = os.environ.copy()
environment["MESA_SHADER_CACHE_DISABLE"] = "false"
try:
result = subprocess.run(
[sys.argv[1]],
check=False,
env=environment,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
timeout=4,
)
except (OSError, subprocess.TimeoutExpired) as error:
print(f"unable to execute production boundary: {error}", file=sys.stderr)
return 1
expected = b"MESA_SHADER_CACHE_DISABLE must be true for safe CPU affinity\n"
if result.returncode != 1 or result.stdout or result.stderr != expected:
print(
"unexpected production boundary result: "
f"status={result.returncode} stdout={result.stdout!r} "
f"stderr={result.stderr!r}",
file=sys.stderr,
)
return 1
return 0
if __name__ == "__main__":
raise SystemExit(main())