Decision 1
Grammar first, the model second
- Problem
- Bench commands arrive every few seconds, and sending each one to an LLM costs latency, tokens and the occasional wrong tool call.
- Options
- Send every utterance to Muse Spark
- Match exact bench commands with a grammar, and send only the rest to Spark
- Decision
- A grammar answers exact commands. Everything else goes to Muse Spark 1.3 with strict schemas, and the server validates every call before it changes the record ("the model picks, code checks").
- Result
- Grammar hits take about 0.1 s on the server, return the same result every time and use no tokens. Multi-action requests went from 10 / 30 to 30 / 33 executed, and silent drops from 20 / 30 to 0 / 33.
- Trade-off
- Phrasing outside the grammar always pays the full model round-trip.


