This document defines the practical language of TTP as implemented in this repository: claims, fields, API contracts, and policy semantics.
Clarification: TTP in this repo is a protocol + runtime verification model, not a standalone programming language/compiler.
TTP expresses trust through three core artifacts:
- Behavioral Receipts (signed evidence from issuers)
- Trust Tokens (short-lived JWTs from Trust Authority)
- Verification Policies (service-side checks at execution time)
A behavioral receipt communicates: who observed what behavior, in which domain, at what time, with what score.
Canonical fields:
ttp_versionreceipt_idagent_idissuer_idevent_typeevent_datadomaintimestampscore(0.0–1.0)signature
Normative schema: protocol/schemas/receipt.schema.json.
A trust token is a short-lived JWT representing current behavioral trust for an agent in a domain.
Core claims:
sub(agent identity)ttp_domainttp_scorettp_issuer_countiat/expjti
Normative schema: protocol/schemas/trust-token.schema.json.
TTP policy evaluation is deterministic and typically checks:
- Signature validity
- Token freshness (
iat,exp, skew) - Domain match
- Minimum trust threshold (
minScore) - Optional issuer diversity constraints
- Optional replay checks (
jti)
In AGT/OPA ecosystems, verified token claims can be mapped into policy input (e.g. input.ttp).
Domains are explicit trust boundaries (e.g. retention, prod-change, financial).
Rules of use:
- Trust is domain-scoped.
- Domain trust should not be reused across unrelated action classes by default.
- Score thresholds should be documented by domain risk level.
The Trust Authority reference implementation includes admin semantics for lifecycle control:
- agent registration
- issuer registration
- status inspection
- quarantine / lift quarantine
- block
- trust provisioning
- agent registry listing (
GET /v1/admin/agentswith optional metrics)
These semantics support operational trust governance without changing core protocol fields.
This document is considered aligned when the following remain true:
- receipt field names/types match
protocol/schemas/receipt.schema.json - trust token claims match
protocol/schemas/trust-token.schema.json - trust authority admin semantics reflect implemented routes in
reference-implementations/trust-authority/src/routes.ts - verifier guidance aligns with current SDK verification behavior and integration docs
- security assumptions here do not conflict with
docs/security.md
Not currently part of the implemented protocol surface:
- custom DSL compiler/runtime
- on-chain smart-contract execution model
- built-in zero-knowledge proof VM
Those can be explored as future ecosystem extensions, but are not v1 protocol requirements.
ttp_versiongates protocol interpretation.- Field semantics are backward-compatible within major version unless otherwise documented.
- New optional claims/fields must not break existing verifiers.
- Protocol spec:
protocol/spec.md - Aggregation algorithm:
protocol/aggregation-spec.md - Integration details:
docs/integration-guide.md - Security model:
docs/security.md