Repository navigation
Conversation
|
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Merging this PR will not alter performance
|
|
Reused the native HTTP pool with isolated transports and added native lifecycle/configuration tests. Local checks pass; authenticated live-provider proof remains pending |
…-scan (BerriAI#44347) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> (cherry picked from commit 4ece6c9)
|
Imported upstream’s braces exception (expires 2026-11-03). @greptileai please review; maintainers, does authenticated /mcp-rest proof suffice without billable LLM calls under “if applicable” and AGENTS:42? |
|
|
Both P1 findings are fixed in 40cbd2f with reproduced regressions and 155 passing tests. @greptileai please re-review the updated head |
| await client.get( | ||
| f"{_API_BASE}/gate/url", | ||
| params={"u": url}, |
There was a problem hiding this comment.
Provider logic in proxy The proxy guardrail constructs IsMalicious API requests and handles provider responses. This violates the repository requirement to keep provider-specific code under
llms/ and must be addressed before merging.
Rule Used: What: Avoid writing provider-specific code outside of the llms/ directory. Why: This practice ensures better maintainability and reduces complexity over time. Good: ```python # Handle provider-specific logic within llms/vertex_ai/transformation.py ... (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Those precedents are relevant, and they make this a reasonable architectural question rather than an obvious defect. I agree that guardrail hooks commonly own their provider API calls today, and the MCP-specific orchestration here is naturally tied to the proxy hook lifecycle; moving only the HTTP client code into llms/ could add indirection without improving the design.
My original comment was driven by the repository-wide instruction to avoid provider-specific code outside llms/, not by a claim that IsMalicious is uniquely misplaced. The existing Lakera, Pangea, and EnkryptAI implementations show that this convention is not consistently applied. I’ll treat this finding as requiring maintainer confirmation: if those guardrail implementations are the accepted pattern, IsMalicious can remain alongside them; otherwise the rule should be clarified and applied consistently to the existing hooks as well.
Tip: You can customize Greptile's behavior for this repo with .greptile/rules.md and .greptile/config.json.
|
Merged upstream and froze validation models. 170 tests and full lint pass. @greptileai please review, live proof and maintainer placement confirmation remain pending |
|
Merged upstream 08a24d3 and preserved new provider registrations. 174 tests and full lint pass. @greptileai please review this head |
TLDR
Problem this solves:
How it solves it:
User Flow
Before: an operator cannot configure IsMalicious inspection for MCP tools
After: the operator can configure IsMalicious for that exchange
Pre-Submission checklist
This remains draft, with no maintainer review requested
Screenshots / Proof of Fix
Authenticated live proxy, real IsMalicious API and real-provider proof remain unavailable. Fixture tests establish integration behavior and are not presented as live proof. The earlier question about the MCP-only route's proof requirement remains unanswered
Before (08a24d3)
After (020672a)
Type
New Feature
Caveats
Medium
Low
Full lint compares rule counts with current upstream and does not claim zero whole-repository type errors. The current-tip CI and fresh automated reviews will supersede results on the earlier head
The open placement thread awaits maintainer confirmation. Greptile accepted the existing guardrail precedents as relevant
Final Attestation