Most agent permission systems ask whether a tool may read a source or call an action. TrustGraph, a new open-source policy project, focuses on what happens between those steps: if an agent reads restricted information, may a later summary be sent to a broader audience? Its policy engine attaches the sources used to an output and compares their permitted readers with the proposed destination.
The project is an early implementation, not a security certification. The repository describes a Rust policy CLI and local service, a gateway for MCP tools, and Python wrappers. Its stated use is to make data-flow rules explicit and testable; whether that protects a real system depends on how completely every read and write is routed through the controls.
The policy follows inputs into later outputs
A policy names groups, agents, sources and actions. In the project’s example, salary data is readable only by HR, while a roadmap can also be read by engineering and leadership. If an agent combines salary data with a roadmap and tries to post the result to an engineering channel, the policy denies it. A roadmap-only summary can pass, while a leadership brief can require approval.
That is a useful distinction from ordinary tool allowlists. The question is not simply whether an agent can call Slack or email; the rule considers the provenance the project has recorded for the content being sent. The policy CLI can test cases, explain a policy in plain language, show access widening in a diff and simulate runs. The project says unnamed cases are denied and the decision path is deterministic rather than model-generated.
A gateway helps only when it is actually in the path
TrustGraph’s gateway is designed to hold upstream MCP credentials, record source reads, evaluate each action and forward only allowed calls. That can make bypass harder if agents have no other credential or network path to the same tools. If credentials are also available directly, or an integration is not wrapped, an agent may act outside the recorded lineage. The README itself says a wrapper checks only the tools it wraps.
The project also describes a local HTTP/MCP service with per-agent tokens and human approval, plus Python decorators that label source and action functions. Those integrations carry responsibility: developers must correctly label what each tool reads, what output it sends, and which fields contain content. A policy cannot enforce a boundary that the application does not represent.
The maintainers flag unfinished security work
TrustGraph’s README draws a clear maturity line. It says the policy CLI and `trustgraph serve` have been through security review, but the gateway and Python integrations are new; two review rounds found and fixed real issues, and a third review was still in progress when the repository was checked. The maintainers explicitly say not to put those newer components in front of real data yet.
The repository also reports ten Kani model-checking harnesses for the policy kernel, approval windows and reader-set rules, along with simulator tests for crashes, journal writes and policy changes. These are useful evidence about specific code paths, not proof that a complete deployment cannot leak data. Treat the project’s own test and review descriptions as maintainer claims, and inspect the threat model, credential topology and latest security status before trying it.
What to evaluate before adopting it
For a prototype, start with synthetic data: define source labels and destinations, test expected allow/deny/approval outcomes, then deliberately try an unwrapped tool and a direct credential path. Check how lineage behaves across agent handoffs, retries and transformations, and whether logs retain sensitive content. For production, require an independent review of the exact version and deployment, and ensure credentials and network access make the gateway a real enforcement point.
The motivation is not new: Invariant Labs documented a 2025 MCP scenario in which private repository information could be carried into a public pull request through individually permitted actions. TrustGraph cites that as historical context. Its contribution is a concrete policy model for carrying restrictions from inputs to outputs; the present README’s warning means the gateway should still be treated as experimental.
How AI agents make actions reversible before asking for approval
