We halved the model's commands. Accuracy did not change.
Auspex ran almost twice as many commands as it needed. A simple budget fixed it.
“You have used 20 tools. What is your most likely root cause? If the evidence is enough, submit now. If not, make one call to test that idea, then finish.”
- commands per fault, on average
- 38.2
- faults diagnosed correctly
- 58/89 unchanged
- runs that ran out of turns
- 30
When Auspex diagnoses a fault, the model runs read-only commands on the network: it reads the topology, checks the VLANs, pings a host. Each one takes time. In testing it ran close to twice as many as in the examples it learned from, far more than the faults needed.
What was wrong
Our first guess was missing information: maybe the model kept looking because it didn't understand the network. So we handed it a map of the topology at the start. Nothing changed. The real problem was simpler. The model reached the answer and kept digging, because nothing told it when to stop.
The fix
We added a budget to the loop that runs the model, a small counter that watches every command and speaks up exactly twice.
- At 20 commands, close to the 20.2 average in the training data, the model gets a reminder: name the most likely cause. If the evidence is enough, finish now, and if it isn't, make one call to test that idea and then finish.
- At 35 commands the budget is spent. No new tools: send the most likely diagnosis now, and if you're not sure, say which evidence is missing instead of guessing.
Each message goes out once. In early tests we repeated the reminder every turn, and the model lost the thread.
The result
It worked. We measured on 89 exam questions: half the commands, exactly the same number of faults solved, and not one run left without a diagnosis. The change shipped in auspex-cli v0.3.3, where AUSPEX_TOOL_BUDGET=0 brings the old behaviour back and AUSPEX_TOOL_BUDGET_HARD moves the second threshold.
Why it matters
Two reasons. Every command is a real request to a real device, so on a production network fewer of them means less load on the switches and an answer sooner. The second message also asks for something we care about: when the budget runs out, the model should say what it doesn't know rather than invent a cause.
The lesson
Not every problem with a model needs more training. This one didn't. The fix sat in the program around the model, two messages and a counter, and accuracy didn't move.