#!/usr/bin/env python3 """Render the 3amBench tasks from templates + seed data, deterministically by master seed. python generator/generate.py # the released 30 tasks (master seed 20260928) python generator/generate.py --master-seed 4242 # a private held-out build with the same layout python generator/generate.py --only latency-slo # a subset Needs promtool and amtool (PATH, or AF_PROMTOOL / AF_AMTOOL): the builder grades the pristine repo to compute q_pristine and runs the local acceptance gate (oracle 1.0, null 0.0, partial band, adversaries). The generator code itself lives in src/alertforge (world.py → checks.py → render.py → gate.py). """ import os import sys ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, os.path.join(ROOT, "src")) from alertforge.cli import main # noqa: E402 if __name__ == "__main__": args = sys.argv[1:] if "--out" not in args: args = ["--out", ROOT, *args] sys.exit(main(["build", *args]))