Guides
Agent registration
Agent identity, permitted tools, credentials and status.
Fields
| Field | Notes |
|---|---|
name | Unique per environment. Letters, digits, - and _, starting with a letter. |
owner | The accountable person or team. |
environment | production, staging or development. Available to policies as agent.environment. |
framework, runtime | Descriptive, e.g. LangGraph on an ECS service. |
risk_level | low…critical, set by a person. Available as agent.risk_level. |
tools | List of {tool, actions} grants. |
bash
POST /v1/agents
{ "name": "BillingAgent", "owner": "Billing team", "environment": "production", "framework": "LangGraph",
"risk_level": "high", "tools": [{ "tool": "refunds", "actions": ["process"] }] }Permitted tools
Grants are the registry layer of least privilege. A request for a tool that is not granted is denied with TOOL_NOT_PERMITTED (or ACTION_NOT_PERMITTED) before any policy runs. Change grants with PUT /v1/agents/{id}/tools; every change is audited.
Credentials
POST /v1/agents/{id}/credentials returns a secret of the form tmag_<12 hex>_<random> once. TrustMesh stores only an HMAC. Revoke with DELETE /v1/agents/{id}/credentials/{prefix}. Agent credentials are accepted only by /v1/runtime/*.
Status
- active — requests are evaluated.
- disabled — every request is denied with
AGENT_DISABLED. - quarantined — set automatically by a quarantine rule; every request is denied with
AGENT_QUARANTINEDuntil a Security Analyst, Administrator or Owner releases it with a reason (POST /v1/agents/{id}/status).