feat(introspection): scan SessionDB and gate timeouts on failure status (Closes #399, Closes #400)#402
Merged
Lexus2016 merged 2 commits intoJun 20, 2026
Conversation
… failure status - Add SQLite SessionDB messages table scan path to scripts/introspection_extract.py (#399) - Gate _TIMEOUT_RE counting on _tool_result_failed() so only genuine failure-level timeouts are counted (#400) - Add regression tests for both fixes Closes #399 Closes #400 Co-Authored-By: Hermes Evolution <evolution@hermes.ai>
Contributor
🔎 Lint report:
|
…397) - Promote _scan_mcp_description warning-only scan into a severity-aware structured risk report across tool name and description. - Detect hidden instructions, role tags, concealment, credential exfil, code execution, dangerous imports, zero-width chars, HTML comments, and excessive whitespace. - Block registration of high-severity tools unless mcp_servers.<name>.security.warn_only is true. - Track server-level risk flag and expose _is_high_risk_mcp_server(). - Add tests for block and warn-only paths. Closes #397 Co-Authored-By: Hermes Evolution <evolution@hermes.ai>
Owner
Author
|
Updated this branch to also include #397: MCP supply-chain scanner gate for malicious tool descriptions.\n\nAll three issues are now in a single PR. Local validation includes tests/scripts/test_introspection_extract.py and tests/tools/test_mcp_tool.py (both green). |
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.
Automated evolution PR for issues #399 and #400.\n\n- Adds SQLite SessionDB (state.db messages table) scan path to scripts/introspection_extract.py (#399).\n- Gates timeout counting on structural failure status (#400).\n- Adds regression tests for both fixes.\n\nLocal validation: ruff + pytest tests/scripts/test_introspection_extract.py all green.