Repository navigation
Conversation
🔎 Lint report:
|
| Rule | Count |
|---|---|
unresolved-attribute |
3 |
First entries
run_agent.py:3069: [unresolved-attribute] unresolved-attribute: Object of type `Self@get_credits_spent_micros` has no attribute `_credits_session_start_micros`
tests/run_agent/test_credits_notices_toggle.py:76: [unresolved-attribute] unresolved-attribute: Unresolved attribute `_credits_session_start_micros` on type `AIAgent`
tests/run_agent/test_tool_call_guardrail_runtime.py:197: [unresolved-attribute] unresolved-attribute: Unresolved attribute `tool_complete_callback` on type `AIAgent`
✅ Fixed issues (1):
| Rule | Count |
|---|---|
invalid-assignment |
1 |
First entries
tests/run_agent/test_credits_notices_toggle.py:76: [invalid-assignment] invalid-assignment: Object of type `None` is not assignable to attribute `_credits_session_start_micros` of type `int`
Unchanged: 6742 pre-existing issues carried over.
Diagnostics are surfaced as warnings — this check never fails the build.
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
make_tool_result_messagetreated external text beginning with<untrusted_tool_resultas if Hermes had already framed it. A fetched result could therefore bypass the provenance warning. An embedded closing tag could also end the frame early, and results shorter than 32 characters had no frame. The externalx_searchtool was absent from the high-risk classifier.Change
Verification
929dd9c0d776186d1e8bf268cccfdb31e0398365; patched readback had one opening and one closing delimiter plus the provenance warning.scripts/run_tests.sh tests/agent/test_tool_dispatch_helpers.py -q: 32 passed.pytest tests/run_agent/test_tool_call_guardrail_runtime.py tests/agent/test_tool_dispatch_helpers.py -q: 41 passed in an isolated Python 3.13 interpreter with read-only Python 3.12 site-packages for missing gateway dependencies. The prior test expected raw JSON in the model-facingweb_searchmessage; it now asserts the untrusted frame and verifies that progress and completion callbacks still receive raw JSON. Source inspection found no production parser requiring raw JSON in that model-facing message; trajectory export safely stores framed content as text.git diff --check: passed.No model compliance, real command execution, live provider response, or deployed installation was tested. Draft for security review; please do not merge until reviewed.