Add Hlido Agent Trust guardrail (closes #1689)#1714
Open
ankitkapur1992-hlido wants to merge 5 commits into
Open
Add Hlido Agent Trust guardrail (closes #1689)#1714ankitkapur1992-hlido wants to merge 5 commits into
ankitkapur1992-hlido wants to merge 5 commits into
Conversation
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.
Hlido Agent Trust guardrail
Implements the guardrail requested in #1689 — gate LLM/agent requests on Hlido's independent, evidence-backed trust scores for shipped AI agent products.
What it does
A
beforeRequestHookguardrail (hlido.agentTrust) that, before a request runs, checks the target agent/model's Hlido trust score (0–100) against a configurableminScore(default 70) and fails the guardrail when the agent scores below it — or, optionally, when it has no independent review at all.Why it's a little different
No credentials. Hlido's review data is public (CORS-open, no auth), so unlike the other guardrail providers this plugin needs zero API keys to configure — it just works.
Files
plugins/hlido/manifest.json— plugin +agentTrustfunction metadata (slug,minScore,failOnUnreviewed)plugins/hlido/globals.ts— public scorecard fetch (/data/scorecards/{slug}.json, 404 = unreviewed)plugins/hlido/agentTrust.ts— the handler (mirrors the existingpromptfoo/guardshape)plugins/hlido/hlido.test.ts— tests against the live public APIplugins/index.ts— registeredhlido: { agentTrust }Verified
Tested against the live API: a reviewed agent (
aider, score 92 / VITAL) passes atminScore ≤ 92and is blocked above it; an unknown slug returns 404 → passes by default, blocks underfailOnUnreviewed.Disclosure
Opened by the Hlido team (maintainers of hlido.eu) in response to our own feature request #1689. Happy to adjust naming, parameters, or the scan shape to match your conventions — just point me at the preference.