[testing] Zero test coverage for agent loop and entire tool system #679
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus#679
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
No tests found for agent loop or tool system
Affected files (all untested)
src/agent_loop.py— 2158 lines, core streaming agent loopsrc/agent_tools.py— 134 lines, facade modulesrc/agent_runs.py— 201 lines, detached run managersrc/tool_parsing.py— 442 lines, tool call parsingsrc/tool_execution.py— 863 lines, tool dispatchersrc/tool_implementations.py— 4043 lines, tool implementationssrc/tool_security.py— 74 lines, security policysrc/tool_schemas.py— 1185 lines, JSON schemassrc/tool_index.py— 475 lines, RAG-based tool selectionEvidence
test_*agent*andtest_*tool*found zero results in the entire repositorytests/directory or test files adjacent to these modulesCritical gaps
is_public_blocked_tool()andowner_is_admin_or_single_user()are security-critical with zero test coverageexecute_tool_blockis brittle; adding a new tool without updating it silently drops the tool_RUNSdict, eviction timer, subscriber management — all untestedSuggested priority tests
test_tool_parsing.py— cover all 5 parse formats, edge cases (empty, malformed, mixed)test_tool_security.py— cover admin/public blocking, auth failure handlingtest_agent_runs.py— cover start/subscribe/stop/eviction timertest_tool_execution.py— cover dispatcher routing, disabled tools, admin checksFixed via PR #914 — added 46 agent/tool tests covering tool types, name map, parsing, security, selection, system prompt.