I built VeriTok to explore whether a small, explicitly typed language could make LLM-generated programs easier to validate before execution. It uses an SSA-style format with type and effect checks. Programs can call…
It uses an SSA-style format with type and effect checks. Programs can call host-registered tools under explicit permissions, argument constraints and call budgets. Compiled plans capture their dependencies so changes to tool contracts can invalidate cached code.
I also built three benchmark projects covering data transformations, API workflows and contract migrations, comparing VeriTok with typed Python and Python with additional contract controls.
The results challenged my initial hypothesis. On nine held-out tasks using a local Qwen3.5 model, VeriTok solved 3/9 within two generations; both Python variants solved 7/9. VeriTok passed all three migration tasks, but so did typed Python. Most other failures involved invented syntax or unsuccessful repairs. Static validation caught those failures, but that did not translate into better task completion.
My current takeaway: the contract and execution-policy mechanisms may be more useful than introducing another language. I’m interested in whether grammar-constrained generation would change that tradeoff—and what evidence would justify a separate execution language over a restricted Python environment.
Code, benchmark harness and results: https://github.com/hawat/veritok
0 comments
No comments yet.
Related stories
- Hacker News · 2 points · 2 months ago
- Hacker News · 1 points · 2 months ago
- Hacker News · 1 points · 1 day ago
- Hacker News · 421 points · 2 months ago
- Hacker News · 3 points · 2 months ago
- Hacker News · 4 points · 2 days ago