The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: kanban_attach_url keeps accepting the title alias past the unknown-argument gate (review follow-up)
teknium1c4bb492c510a
diff --git a/tests/tools/test_kanban_unknown_arguments.py b/tests/tools/test_kanban_unknown_arguments.pyindex f7e5b33ad3a..9d721f1e1c8 100644--- a/tests/tools/test_kanban_unknown_arguments.py+++ b/tests/tools/test_kanban_unknown_arguments.py@@ -64,3 +64,7 @@ def test_undeclared_internal_keys_survive_the_strict_check():'kanban_create', {'title': 'x', 'project_id': '', 'session_id': 's'}))assert 'unknown parameter' not in result.get('error', ''), resultassert 'project_id' in kanban_tools._UNDECLARED_ARGS['kanban_create']+ # ``title`` is the filename alias ``_handle_attach_url`` still reads (review follow-up).+ result = json.loads(registry.dispatch(+ 'kanban_attach_url', {'task_id': 'x', 'url': 'https://example.invalid/y.pdf', 'title': 'spec'}))+ assert 'unknown parameter' not in result.get('error', ''), resultdiff --git a/tools/kanban_tools.py b/tools/kanban_tools.pyindex 5c009afba66..1727182775b 100644--- a/tools/kanban_tools.py+++ b/tools/kanban_tools.py@@ -131,6 +131,8 @@ def _check(cond: Any, message: str) -> None:# the pre-``project`` alias still honoured by ``_handle_create`` (e7811345c17)._UNDECLARED_ARGS: dict[str, frozenset[str]] = {"kanban_create": frozenset({"session_id", "project_id"}),+ # ``title`` is the pre-schema alias of ``filename`` that ``_handle_attach_url`` still honours.+ "kanban_attach_url": frozenset({"title"}),}