[_ADMIN_TOOLS] Same-named constant with different values in agent_loop.py and tool_execution.py #681
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#681
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?
_ADMIN_TOOLS set defined in two places, likely to drift
Duplicated constant
src/agent_loop.py:951-956:src/tool_execution.py:170-180:These are different sets — not just duplicated but semantically different:
agent_loop.py's version includes session/skills/tasks/pipeline/list_models but no cookbook toolstool_execution.py's version includes cookbook tools but excludes session/skills/tasksThis looks intentional (prompt-level vs execution-level admin checks), but the same name
_ADMIN_TOOLSin both files is confusing and risky. A future developer adding a tool to one and not the other creates a privilege inconsistency.Fix
_PROMPT_ADMIN_TOOLSvs_EXECUTION_ADMIN_TOOLS)tool_security.pywith clear documentation of the difference