aien-train
AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.
Brought by drakestapleton
aien-train / tests / omegese45 / eval / check_fixture.py
| 1 | #!/usr/bin/env python3 |
| 2 | """Test-only invocation: substitute public test keys before checking synthetic cases. |
| 3 | |
| 4 | Production check-demo has no override mechanism. This test shim loads its real |
| 5 | entry point (including mutated copies), replaces only the key constants with |
| 6 | public test keys, and runs main. Never use this shim for real demo receipts. |
| 7 | """ |
| 8 | import importlib.machinery |
| 9 | import importlib.util |
| 10 | import os |
| 11 | import sys |
| 12 | |
| 13 | sys.path.insert(0, os.path.dirname(sys.argv[1])) |
| 14 | loader = importlib.machinery.SourceFileLoader("fixture_checker", sys.argv[1]) |
| 15 | spec = importlib.util.spec_from_loader(loader.name, loader) |
| 16 | checker = importlib.util.module_from_spec(spec) |
| 17 | loader.exec_module(checker) |
| 18 | import mkcase |
| 19 | checker.EXPECTED_KEYS = {k: mkcase.pub(v) for k, v in mkcase.TEST_KEYS.items()} |
| 20 | sys.exit(checker.main([sys.argv[1], sys.argv[2]])) |