Repository navigation
Plugin idea: signed, independently checkable records of tool calls (tool_pre_invoke / tool_post_invoke) #7650
stafordtituss
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi ContextForge maintainers! I'm Staford Titus Selvaraj, co-founder and AI security lead at Charlemagne Labs. Independently, I develop AMEP, an open specification for checking after the fact, from signed evidence, whether an AI agent's actions stayed within the authority it was delegated. It's an IETF Internet-Draft (draft-stafordtituss-agentic-mandate-evidence) with Python and JavaScript reference verifiers. Its MCP binding is under review as an evidence-extension proposal in the MCP Agents Interest Group (modelcontextprotocol/agents-ig#31), and I'm presenting it to the W3C Agent Identity Community Group on December 1.
ContextForge's plugin hooks look like a natural place to produce evidence of tool calls that a third party can check later without trusting the gateway's logs. Before building anything, I'd like to check the approach with you.
The idea is a monitoring-only plugin, off by default:
tool_pre_invokesigns a short record of the call as the gateway saw it: tool, target resource, effect class, and a digest of the arguments. It passes an id and the record's digest in the request_meta.tool_post_invokecollects the server's signed receipt from the result_meta, if the server provides one, and checks that it is bound to that exact record and to the arguments the server received. It then logs whether the executed effect stayed within the user's delegated authority:preserved,violated, orunresolvedwhen evidence is missing.It wouldn't change authorization or block anything by default; existing guardrails and policy plugins stay as they are. Because the server signs a digest of the arguments it received, the record also shows when anything between the gateway and the server changed a call.
Two questions first:
_metaunchanged, or would the plugin need it surfaced?What I'd bring: the plugin, tests (preserved, violated, unresolved, tampered receipt, missing receipt), and docs. The evaluation uses
amep-protocolfrom PyPI (0.3.0a1). Its verdicts can be checked independently with a conformance tool, or by hand with jq and OpenSSL.Thanks!
All reactions