Skip to content

fix(provisioning): send messages to bare registry connector id, not wrapper agent - #5

Open
ssk-corti wants to merge 2 commits into
mainfrom
fix/provisioning-registry-connector-id
Open

fix(provisioning): send messages to bare registry connector id, not wrapper agent#5
ssk-corti wants to merge 2 commits into
mainfrom
fix/provisioning-registry-connector-id

Conversation

@ssk-corti

Copy link
Copy Markdown

What

Split off from corticph/agent-eval-cases#47, which used a use_connector_name targeting flow against a registry connector wrapped in a minimal agent — but sent messages to the wrapper agent's id, not the connector itself. The wrapper's system prompt makes it an orchestrator that re-delegates, defeating the point of targeting the connector in isolation.

Fix

  • _create_targeted_agent: for a registry connector, read the connector's own id back out of the create_agent response's connectors list, and return that (stripped of its con. type prefix, since the send endpoint takes the bare uuid) instead of the wrapper agent id.
  • Test double's create_agent now echoes back connector ids in its response, matching the real API shape, and a regression test asserts messages go to the connector id.

Testing

pytest tests/test_agent_provisioning.py — 10 passed.

ssk-corti and others added 2 commits August 11, 2026 19:38
…ctor

_create_targeted_agent set payload for the inline-agent branch but never
returned — the function fell off the end, returning None, so any eval
using use_connector_name on an inline agent connector would fail with a
confusing type error downstream.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 11, 2026 17:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts targeted provisioning for registry connectors so evaluation messages are sent to the registry connector’s own id (rather than the wrapper agent id), improving isolation when using use_connector_name.

Changes:

  • Update _create_targeted_agent to extract the registry connector id from the create_agent response and return its bare id for message sending.
  • Update the provisioning test client double to echo connector ids back in create_agent responses.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/agent_evals/provisioning.py Extracts registry connector id from create_agent response and targets message sending at the connector (bare id) instead of the wrapper agent id.
tests/test_agent_provisioning.py Extends the recording client to include connector ids in create_agent responses to better emulate the real API shape.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/agent_evals/provisioning.py
Comment thread src/agent_evals/provisioning.py
Comment thread tests/test_agent_provisioning.py
@ssk-corti

Copy link
Copy Markdown
Author
image

the use of use_connector_name and the function _create_targeted_agent was not working.

Better fix would be to not use the orchestrator wrapping but rather being about to call the reference expert directly https://linear.app/corti/issue/AGENT-1197/initialize-registry-experts-directly-without-orchestrator-wrapping

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.

2 participants