Repository navigation
Description
The problem
Our evals can't check how models use J5's own tools. evals/mcp-tool-use/run.ts is upstream's harness, and it only gives the model upstream's toolkits: upstream's delegate_task with no persona, and no j5_send_message, j5_list_personas, j5_spawn_agent, j5_propose_crew or j5_request_crew_member. J5's standing instructions do reach the model through the system prompt, so the existing cases catch regressions in that text. But no case can check that an agent actually uses a J5 tool the way the guidance says.
This came up on #785. I wanted a guard case for "a blocked persona is never recreated as a custom worker; the agent escalates with escalation_id", and it can't be written, because the model can't pick a persona or send an ask in the harness.
Proposal
A J5-owned eval suite next to upstream's, reusing its runner where that's cheap, that offers J5's tools the way the real server does: J5's delegate_task in place of upstream's, plus the J5 toolkit. No edit to upstream's run.ts or its cases, so upstream's baselines stay comparable across syncs.
Cases worth having first:
- A blocked persona escalates through
j5_send_messagewithescalation_id, and isn't recreated as a custom worker (Personas: a blocked persona escalates, and I can allow it once #785). - An agent passes
personawhen one fits the task (Personas: agents pick personas, and who picked sets the limits #781). - A reviewer launch leaves the model out, so the server can pick one that didn't write the work (Personas: reviewers prefer a different model from the author #782).
- A Captain replaces a seat with
replaces, not by adding a second member (Personas: a Captain can replace a seat #784). - An agent suggests saving a recurring custom worker as a persona without blocking (Personas: edit personas in conversation #786).
Out of scope
- Changing upstream's harness or its cases.
- Running the suite in CI. The evals call paid models.
Activity
bryantderosier commentedon Dec 1, 2026
Closing this, the suite exists now.
evals/j5-cli(#1125) is J5-owned and offers J5's tools the way the real server does: J5'sdelegate_taskand the J5 toolkit, on the real Claude Code and Codex CLIs. It leaves upstream'sevals/mcp-tool-useharness and cases alone, so upstream's baselines stay comparable.The first case this issue wanted, from #785, is in
evals/j5-cli/cases/persona-and-fork.ndjson:j5-refused-persona-asks-the-person: a blocked persona escalates to the person, not to a custom worker.j5-declined-persona-stays-blocked: it stays blocked after the person declines.The other four ideas (passing
personawhen one fits, a reviewer leaving the model out,replaces, suggesting a saved persona) aren't written. I'm not keeping a backlog of them here: per AGENTS.md, when we fix a model behavior bug we add a case that fails before the fix, so those get added when one of them actually goes wrong.