Your orchestrator should never pick or dictate your worker's tools.
It has to manage the end user conversation, route signals, manage a fleet 20 worker agents at once, hold memory, and much more. It will never have enough context to choose correct sets of tools for a worker, and it commits the plan before anyone has read the data and passes the plan to worker.
I measured it. Every point of the gap came from the orchestrator forgetting exactly one required tool. Without it, all workers failed to achieve the goal.
Let the worker choose it's own tools.
i ran a 720-run ablation exp on exactly this. same worker, same world, only thing i changed was how much the orchestrator specified in the handoff. three arms: autonomous (worker gets every tool), prefilter (orchestrator names the allowed tools), dictate (orchestrator writes an ordered plan).
tighter specs didn't help. on tasks where the orchestrator handed over every tool the worker actually needed, all three scored the same, 91.7 / 90.5 / 90.5. the whole gap sat in the 36 tasks where it forgot one. and dictate pruned strictly more than prefilter, 10-0, because every extra commitment is another chance to be wrong.
The orchestrator does not know everything before planning to delegate it to a worker, it is better to handoff to the worker with all tools (and let it plan).
read more about it here: https://t.co/1EtfZT2vme
dropping the oldest message isn't compaction, it's truncation. compaction keeps a pointer to what got cut and re injects the anchor turns, so the request shape stays the same no matter how many turns you burn. yours silently changed shape and the gateway was the only thing that caught it.
the leak is a separate bug: that error was thrown instead of returned. in my loop, provider and tool failures come back as ok:false and throws are reserved for actual programmer bugs, because a throw at that layer has no redaction boundary and goes straight into the stream.
also worth checking: when my subagent returned nothing usable, the orchestrator just made up an outcome instead of surfacing it. degenerate subagent returns are the least tested path in the whole system. https://t.co/1EtfZT33bM
mine did the opposite of 3. no infinite loops, they just gave up.
the task i gave was "archive the BrightPath newsletter". the search misses because the subject doesn't contain the word newsletter. on a clean context all my runs drop the word, search again, find it, done. add 13k tokens of junk and the same agent stops and asks me for the sender address it had already searched on.
retries after a failed search went from 67% to 57%. roughly a fifth of runs ended by asking a question to a user who doesn't exist in that harness.
wrote the whole thing up here: https://t.co/1EtfZT33bM
The tunnel case is the one I'd measure first. I ran an ablation on exactly that shape: under about 39k tokens of context clutter, a rule in the system prompt went from 100% obeyed to 60-75%. The model still did the main task correctly, it just stopped honoring the instruction, and it looked like it was working the whole time. Secondary asks are the first thing to go. Structurally enforced behavior held in the same runs. If the tunnel matters, it shouldn't be prose.
Everything the agent touched needed a snapshot layer: a checkpoint service writing at every boundary, an agent run ledger that knows which step actually committed (for retry), idempotent ids (on retry, agent sees "already done", not an error. ambiguity is an actual bug for the agent), and a heartbeat so a run that stopped executing stops looking alive.
@delali The other half is the result returned. The duplicate call must return "already sent" as a success to the model, not an error. Ambiguity for the LLM is the real bug here.
Your orchestrator should never pick or dictate your worker's tools.
It has to manage the end user conversation, route signals, manage a fleet 20 worker agents at once, hold memory, and much more. It will never have enough context to choose correct sets of tools for a worker, and it commits the plan before anyone has read the data and passes the plan to worker.
I measured it. Every point of the gap came from the orchestrator forgetting exactly one required tool. Without it, all workers failed to achieve the goal.
Let the worker choose it's own tools.
Nobody tests these claims, so i did. I'm building https://t.co/RqpVE7rdKM, wherein i benchmark these harness design choices for agent systems. Instead of following unverified principles, ablate provides emperical evidence on why 1 design choice is better than the other.
1/
i've been building ai agents for 18 months. one thing i did every time: give your agent lots of small tools instead of one big one. never saw anyone actually test it, so i did. 1,200 runs. same task wrapped 3 ways: 5 small tools vs 2 vs 1 big one.