Skip to content

Eval and prompt: check a device can do a role before recommending it - #59

Merged
arirusso merged 5 commits into
mainfrom
eval-master-clock
Dec 6, 2026
Merged

arirusso merged 5 commits into
mainfrom
eval-master-clock

Conversation

@arirusso

@arirusso arirusso commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

Adds master-clock to the test studio's questions: "Should the Ambika or the Shruthi be the master clock?"

Why: reading answers about real gear, the agent picked the SR-16 over the XR10 as master with no reason, implying the XR10 can't send clock. The XR10's manual says it can, on pages it never retrieved.

The question: neither synth can be master. Their manuals list no MIDI out mode that sends clock, while the Ambika's "bpm is the master tempo" invites picking it. Good answers name a real clock source (the MIDIpal's clock app) or say neither sends clock. never fails an answer that picks one, but not "I wouldn't choose the Shruthi as master".

Result, 20 agent runs, before the prompt change: 18 good, 2 picked the Ambika anyway: a never failure, so the gate failed.

The fix, also here: one line in both prompts (ask_agentic.py, mcp_server.py): before recommending a device for a role such as master clock, check each candidate's manual for what it sends, not only its settings, and give the reason.

Gate after, 20 fresh runs each: answers 99% on both sets, recall 100%, no never failures. master-clock 19/20 fully passing. Others in their usual range (keyboard-shruthi 17 with one turn cap; held out: clock-shruthi 20, ambika-voice-eq 18, midipal-arp-ambika 18, the rest 20). Caveat: 2/20 → 0/20 is a small difference, and the line's example (a tempo setting isn't proof of sending clock) is close to this question.

Weaknesses:

  • "Neither" rests on absence: the manuals list output modes, and never say "no clock". The says check takes several phrasings.
  • It tests checking a device's sending side, not "gives a reason": keyword checks can't see reasoning.
  • The Anushri, which does send clock, is left out: the held-out clock-shruthi turns on it.

check-examples.json gains four answers: three good, one that picks the Ambika.

Also in this PR: every HISTORY.md entry now links the PRs that did the work, on a PR: line under its heading (headings stay short in an editor's outline). Matched from git history and PR titles. Entries from before CI have none, and the "deferred" mapping-file entry and the connection list (written in the studio folder) have none either. CLAUDE.md asks for the line on new entries.

arirusso and others added 4 commits December 6, 2026 13:11
Reading answers about real gear found the agent picking a master clock
without checking that the device can send clock. master-clock asks the
same of the Ambika and the Shruthi, neither of which sends clock. Over
20 runs, 18 were good and two picked the Ambika: the gate fails on
`never` until the agent is tuned for it.

Co-Authored-By: Claude <noreply@anthropic.com>
A "PR:" line under each heading, not in it, so headings stay short in an
editor's outline. Work from before CI has no PR. CLAUDE.md asks for the
line on new entries.

Co-Authored-By: Claude <noreply@anthropic.com>
The backlog's Schematic item.

Co-Authored-By: Claude <noreply@anthropic.com>
Before picking a device for a role (master clock), search each
candidate's manual for what it sends, not only its settings, and give
the reason. Gate, 20 runs each: no never failures; master-clock passes
fully 19 of 20 (2 of 20 picked the Ambika before).

Co-Authored-By: Claude <noreply@anthropic.com>
@arirusso arirusso changed the title Eval: a question about choosing a master clock Eval and prompt: check a device can do a role before recommending it Dec 6, 2026
Co-Authored-By: Claude <noreply@anthropic.com>
@arirusso
arirusso merged commit ab040fd into main Dec 6, 2026
1 check passed
@arirusso
arirusso deleted the eval-master-clock branch December 6, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant