Skip to content

fix(detection): expect a tool task 302's memory server actually exposes - #201

Open
rudycelekli wants to merge 1 commit into
uber:mainfrom
rudycelekli:fix/detection-task-302-expected-tool
Open

rudycelekli wants to merge 1 commit into
uber:mainfrom
rudycelekli:fix/detection-task-302-expected-tool

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 19, 2026 •

Copy link
Copy Markdown

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Related issue: N/A (found by reading the code; reproduced on main at 6b33dff)

What changed?
Replace create_entities with update_long_term_objectives in task 302. Add tests/test_tasks_registry_consistency.py: every task server exists in the registry, and every expected tool is a capability of one of the task's servers.

Why?
Detection/tasks.json task 302 has create_entities in expected_tools, but none of its servers (enterprise_memory_manager, database_server, http_server) expose it in mcp_servers_registry.json. main_benchmark only passes registry capabilities as allowed tools, so _validate_expected_tools for task 302 can never reach coverage 1.0. The memory step maps to enterprise_memory_manager's update_long_term_objectives, which task 111 already uses.

How did you test it?

  • Reproduction: pytest tests/test_tasks_registry_consistency.py. On main: 1 failed ({302: ['create_entities']}). On the branch: 2 passed.
  • Test suite: pytest tests/ -q with detcore-venv: 258 passed (main: 256).
  • Not tested: no live main_benchmark run.

Potential risks
The change only affects the input described above; other paths go through the same code as before, and the component's existing tests pass.

Task 302 lists create_entities as an expected tool, but none of its
servers (enterprise_memory_manager, database_server, http_server) expose
it. Only registry capabilities are passed to the agent as allowed tools,
so the tools_called validation for this task could never pass. The
memory step maps to enterprise_memory_manager's update_long_term_objectives.

Add a test that every task's servers exist in the registry and every
expected tool is a capability of one of the task's servers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This branch has not been deployed

No deployments
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