Repository navigation
Conversation
🔎 Lint report:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
read_file,search_files,terminal, andexecute_codecan surface text from an attacker-authored repository, web page, package, or process, yet the model-facing tool message was unframed. A synthetic directive canary passed straight throughmake_tool_result_messageon the #2 branch.This is a stacked draft based on #2 (
fix/untrusted-tool-result-framing,dc03571e228c1a0205b262b2b406e40578ba9834). Review and merge #2 first, then rebase this branch onto the resultingmainrevision before considering this PR.Change
skill_view(loads the skill's instructions) andclarify(returns the user's direct answer).sourceattribute.Verification
read_file,search_files,terminal, andexecute_codeoutputs remained raw. On this branch, all four carried the provenance warning and one frame;skill_viewstayed unwrapped. No command or tool handler ran in that canary.read_filedispatch test verified the progress and completion callbacks received the original payload, while the model-facing message was framed. The blockedwrite_fileresult test was updated to parse JSON within its new frame. After first CI, the corrupted-arguments repair test was updated to assert its factual marker remains visible inside the frame forread_file.pytest tests/agent/test_tool_dispatch_helpers.py tests/run_agent/test_tool_call_guardrail_runtime.py tests/run_agent/test_tool_call_args_sanitizer.py tests/run_agent/test_run_agent.py::TestConcurrentToolExecution::test_sequential_blocked_tool_skips_checkpoints_and_callbacks -q: 59 passed using the isolated Python 3.13 test interpreter with read-only Python 3.12 site-packages for missing dependencies. Neither environment was modified.git diff --checkpassed.Review limits
No model compliance, live command, external fetch, deploy, or installed Hermes behavior was tested. This central builder covers Hermes' primary sequential and concurrent tool executor. Other synthetic/projected tool messages created outside
make_tool_result_messageare separate paths and were not changed here. The two allowlisted tools intentionally pass their content through as instructions; review that trust decision before merge. The fork's existing contributor-attribution and model-name CI failures are tracked in the local assessment; required checks must be green before merge.