interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-train / tests / omegese45 / eval / check_fixture.py

20 lines · 826 bytes Raw Blame History
1#!/usr/bin/env python3
2"""Test-only invocation: substitute public test keys before checking synthetic cases.
3
4Production check-demo has no override mechanism. This test shim loads its real
5entry point (including mutated copies), replaces only the key constants with
6public test keys, and runs main. Never use this shim for real demo receipts.
7"""
8import importlib.machinery
9import importlib.util
10import os
11import sys
12
13sys.path.insert(0, os.path.dirname(sys.argv[1]))
14loader = importlib.machinery.SourceFileLoader("fixture_checker", sys.argv[1])
15spec = importlib.util.spec_from_loader(loader.name, loader)
16checker = importlib.util.module_from_spec(spec)
17loader.exec_module(checker)
18import mkcase
19checker.EXPECTED_KEYS = {k: mkcase.pub(v) for k, v in mkcase.TEST_KEYS.items()}
20sys.exit(checker.main([sys.argv[1], sys.argv[2]]))