Repository navigation
fix(evo): classify host-brokered run tool #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,9 @@ | |
| LOCAL_EVO_TOOL_NAMES = frozenset( | ||
| {"terminal", "read_file", "write_file", "patch", "search_files"} | ||
| ) | ||
| HOST_BROKERED_EVO_TOOL_NAMES = frozenset({"scaffolde_evo_agent_dispatch"}) | ||
| HOST_BROKERED_EVO_TOOL_NAMES = frozenset( | ||
| {"scaffolde_evo_agent_dispatch", "scaffolde_evo_run"} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
A repo-wide search finds no schema or handler registration for AGENTS.md reference: AGENTS.md:L122-L125 Useful? React with 👍 / 👎. |
||
| ) | ||
| SUPPORTED_EVO_TOOL_NAMES = LOCAL_EVO_TOOL_NAMES | HOST_BROKERED_EVO_TOOL_NAMES | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| from __future__ import annotations | ||
|
|
||
| import pytest | ||
|
|
||
| from agent.subagent_tool_boundary import ( | ||
| EvoToolBoundaryError, | ||
| classify_evo_tools, | ||
| ) | ||
|
|
||
|
|
||
| def test_classifies_evo_run_as_host_brokered_authority() -> None: | ||
| local, host_brokered = classify_evo_tools( | ||
| ["terminal", "read_file", "scaffolde_evo_agent_dispatch", "scaffolde_evo_run"] | ||
| ) | ||
|
Comment on lines
+12
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This test only proves membership in the classifier sets; it does not exercise AGENTS.md reference: AGENTS.md:L84-L87 Useful? React with 👍 / 👎. |
||
|
|
||
| assert local == {"terminal", "read_file"} | ||
| assert host_brokered == {"scaffolde_evo_agent_dispatch", "scaffolde_evo_run"} | ||
|
|
||
|
|
||
| def test_rejects_unknown_evo_tool_authority() -> None: | ||
| with pytest.raises(EvoToolBoundaryError, match="undefined"): | ||
| classify_evo_tools(["scaffolde_unknown_tool"]) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When operators assess strict process-profile isolation,
docs/security/execution-profiles.md:183-186still states that onlyscaffolde_evo_agent_dispatchis host brokered and that other plugin tools fail before spawn. Addingscaffolde_evo_runhere makes that security guarantee false, so update the execution-profile documentation to describe the expanded host-side authority.Useful? React with 👍 / 👎.