Platform
One control plane for agent identity, authorization and evidence
TrustMesh sits beside your agents. Before an agent uses a protected tool it asks TrustMesh, which checks who the agent is, whether it may use that tool, what policy says and whether a person must approve — then records the answer.
Architecture
Control plane and decision path
This build runs as one FastAPI service backed by PostgreSQL: the control plane (registry, policies, approvals, evidence) and the runtime decision API live together. The architecture separates them into a control plane and a latency-sensitive data plane as load grows.
- Request received
- Agent identity
- Tool identity
- Schema fingerprint
- Permitted tools
- Input validation
- Rate limit
- Risk signals
- Policy evaluation
- Decision + evidence
If any stage cannot be established, the request is denied (or quarantined for a schema change). Risk signals are deterministic and can only raise a request to human approval.
What is protected
A tool call is protected when the agent asks TrustMesh first — through POST /v1/runtime/authorize or a function wrapped with the Python SDK's @protected decorator — and only proceeds on ALLOW.
What is not
An agent that holds its own credentials and calls a tool directly bypasses TrustMesh. TrustMesh does not claim universal interception. The planned MCP gateway and credential brokering close that gap for tools routed through it.
Module 1
Agent RegistryBeta
A central inventory of the autonomous agents that act in your environment — who owns each one, which framework and runtime it uses, which tools and actions it may touch, and what it has done.
- 01
Register
Name, owner, environment (production, staging, development), framework, runtime and a risk level set by a person.
- 02
Issue an identity
Each agent gets its own credential (tmag_…). TrustMesh stores only a keyed hash; the secret is shown once and can be revoked at any time.
- 03
Grant tools explicitly
Permitted tools are listed per agent with the exact actions allowed. A tool that is not granted is denied before any policy is evaluated.
- 04
Watch status
Disable an agent instantly, or let a quarantine rule isolate it. Quarantined agents are blocked until a security analyst releases them with a reason.
Capabilities
- Agent inventory with search and filters
- Per-agent credentials (issue, revoke)
- Permitted tools and actions
- Owner, environment, framework and runtime
- Active / disabled / quarantined status
- Associated trust policies and recent activity
- Open risk findings per agent
Module 2
Trust Policy EngineBeta
Version-controlled policies evaluated by trusted code. The same request and the same policy version always produce the same decision. Rules compile to Rego, and Open Policy Agent can evaluate them with identical results.
- 01
Write rules
Match agents, tools and actions, then add conditions on the request (for example amount_usd ≥ 500) or on context (business hours, external recipient, deterministic risk signals).
- 02
Combine deterministically
Quarantine overrides deny, deny overrides require-approval, approval overrides allow, and no match means deny.
- 03
Version and activate
Every edit creates an immutable version with a content hash. Activation and rollback are a pointer move, and both are audited.
- 04
Test before you activate
Run any hypothetical request against the active policies, a specific version or an unsaved draft and see which rules matched.
Capabilities
- Policy library
- Rule editor with validation
- Immutable versions with content hashes
- Activation, deactivation and rollback
- Policy testing against drafts or versions
- Generated Rego for every version
- Decision history per policy
- Built-in evaluator plus Open Policy Agent (OPA) adapter
Module 3
Runtime Security GatewayBeta
The gateway receives an agent's request, verifies the agent and tool identity, checks the tool-schema fingerprint and permissions, validates input, computes deterministic risk signals, evaluates policy and records the decision — failing closed at every step.
- 01
Integrate
Agents call POST /v1/runtime/authorize with their own credential before using a tool, or wrap tool functions with the Python SDK's @protected decorator.
- 02
Check in order
Identity → tool identity → schema fingerprint → permission → input schema → rate limit → risk signals → policy → decision.
- 03
Fail closed
If the agent, tool, schema, input or policy decision cannot be established, the call is denied. The SDK also denies if TrustMesh is unreachable.
- 04
Trace everything
Each decision stores a stage-by-stage trace, the matched rules, the policy versions used and the risk signals.
Capabilities
- Runtime authorization REST API
- Python SDK with @protected decorator (beta)
- Tool-schema fingerprints (SHA-256)
- JSON Schema input validation
- Per-agent rate limits
- Idempotent call_id replay
- Request timeline and detail trace
- Console request simulation
Module 4
AI Risk IntelligenceBeta
Deterministic detectors score every request — data sensitivity, amounts, bulk exports, external destinations, prompt-injection markers, unusual frequency and suspicious tool-call sequences — and raise findings with suggested mitigations.
- 01
Score deterministically
Rule-based signals add up to a 0–100 score. The same request and history always produce the same score.
- 02
Let policy decide
Policies may use the score or specific signals — for example, quarantine an agent when a read-then-export-then-send sequence is detected.
- 03
Escalate, never relax
A high score can turn ALLOW into REQUIRE APPROVAL only where a rule permits escalation. It can never turn a deny into an allow.
- 04
Optional AI advice
Adapters for Amazon Bedrock and NVIDIA NIM can add advisory recommendations to a finding. They are labelled as AI-generated and are not connected in this build.
Capabilities
- Risk overview by severity, category and agent
- Findings with mitigations and history
- Prompt-injection indicator detection
- Suspicious sequence detection
- Unusual frequency and bulk-data signals
- Finding triage (acknowledge, resolve, false positive)
- AI advisory adapters (not connected)
Module 5
Human Approval CenterBeta
When a policy requires approval, the request is held, not executed. An authenticated person with the required role approves or rejects it before it expires. Every decision is recorded.
- 01
Hold the request
The request is stored as pending approval and the tool is not executed. The agent can poll its status.
- 02
Route to the right role
Each rule names the approver role and expiry. Separation of duties can stop the requester approving their own request.
- 03
Decide with context
Reviewers see the agent, tool, action, parameters, business justification, risk signals and matched rules.
- 04
Re-check on approval
Approval re-evaluates current policy and status. If the agent was quarantined or policy now denies, the approval cannot override it.
Capabilities
- Pending approval queue
- Approval details with risk assessment
- Approve / reject with mandatory reasons
- Role-based approver requirements
- Separation of duties
- Expiry with automatic denial
- Approval history and audit events
Module 6
Security Audit & EvidenceBeta
Append-only audit events capture the actor, agent, tool, action, decision, outcome, request id and policy version. Each event is linked to the previous one by SHA-256, and the chain can be verified on demand.
- 01
Record
Decisions, approvals, quarantines, policy activations, schema reviews and admin changes are all written as audit events.
- 02
Link
record_hash = sha256(prev_hash + canonical event). The application database role cannot update or delete audit rows.
- 03
Verify
Recompute the chain at any time; the first altered record is reported by sequence number.
- 04
Export
Filter by date, severity, agent, decision or text and export CSV or JSON.
Capabilities
- Searchable audit history with filters
- Event detail with hashes
- Chain verification
- CSV and JSON export
- Append-only enforcement in PostgreSQL
- Signed checkpoints and WORM storage (planned)
Cross-framework governance
One policy language, any agent framework
Agents built with LangGraph, CrewAI, LangChain or custom code call the same REST decision API. Native framework adapters are planned; until then the Python SDK decorator wraps any tool function.
See every stage on a real request.
The sandbox runs this pipeline on synthetic agents and tools, with an audit stream you can inspect.