This commit is contained in:
2026-07-19 23:52:25 +04:00
commit 99b06b0468
155 changed files with 3808611 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Fail if the route labelling prompt differs from Maven's deployed prompt."""
import argparse
import re
from pathlib import Path
from gen_route_data import ROUTE_SYSTEM
def main() -> None:
ap = argparse.ArgumentParser()
ap.add_argument("--maven", default="/mnt/server/home/kami/apps/Maven")
args = ap.parse_args()
go = Path(args.maven, "internal/router/llmrouter.go").read_text(encoding="utf-8")
match = re.search(r"const routeSystem = `([\s\S]*?)`\n", go)
if not match:
raise SystemExit("routeSystem not found in Go source")
if match.group(1) != ROUTE_SYSTEM:
raise SystemExit("route prompt drift: update Go and gen_route_data.py together")
print("route prompt parity OK")
if __name__ == "__main__":
main()