Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

AgentTrust Telemetry

Portable governance telemetry and verifiable evidence for AI-agent runtimes.

This repository defines a backend-neutral contract for policy decisions, approval lifecycles, usage, classified data flows, and evidence lifecycle events. It composes with OpenTelemetry; it is not a tracing backend, policy engine, agent framework, or dashboard.

Status: alpha contract 0.1.0-alpha.3. No stable SDK API or compatibility guarantee exists yet.

Why

Agent applications can already emit model and tool traces, but governance facts are often trapped in policy-engine logs, approval databases, cost modules, and proprietary dashboards. AgentTrust Telemetry gives those facts one privacy-conscious contract and correlates them with the OpenTelemetry trace already produced by the application.

The application keeps its collector, backend, policy engine, workflow framework, and UI.

Event families

Family Purpose
Policy decision Allow, deny, challenge, error, enforcement mode, policy identity and timing
Approval lifecycle Requested through terminal decision and execution outcome, bound to an action digest
Usage Per-call/run token and cost facts with explicit cost provenance
Data flow Classified source-to-destination metadata without payload capture
Action execution Resolved tool, MCP, A2A, file, HTTP, and database attempts
Evidence lifecycle Run checkpoints, completeness, and optional TRACE finalization status

Current contents

  • JSON Schema 2020-12 event contracts in spec/schema/.
  • Valid and invalid conformance fixtures in conformance/fixtures/.
  • An independent Python conformance runner in conformance/runner/.
  • Contract tests in tests/.

Validate fixtures

python -m pip install -r conformance/requirements.txt
python conformance/runner/validate.py
python -m unittest discover -s tests -v

The validator checks schema conformance and the metadata-only privacy invariant. It does not yet validate OTLP projection or TRACE mapping.

Python reference SDK

Install from a checkout while the project is pre-release:

python -m pip install -e ".[otel]"
from agentrust_telemetry import SchemaValidator, TelemetryClient

client = TelemetryClient(SchemaValidator.bundled())
result = client.emit(normalized_event)

The SDK uses the caller's current OpenTelemetry span when opentelemetry-api is installed. It never installs a provider or exporter. A caller may additionally supply a structured-log emitter.

For synchronous cross-process agent calls, propagate the caller's W3C context and durable AgenTrust identifiers, then use the extracted context as the receiving span's remote parent:

from agentrust_telemetry import extract_context, inject_context

carrier = {}
inject_context(carrier, run_id="run-123", agent_id="planner")

remote = extract_context(carrier)
with tracer.start_as_current_span("worker", context=remote.otel_context):
    event.update(remote.event_fields(agent_id="worker"))

For asynchronous queue handoffs, start a new trace with links=[remote.link()]. This preserves causality without representing queued work as a synchronous child span. Propagated metadata is untrusted input and does not establish agent identity or authorization.

Run the synthetic example:

python examples/manual_governance.py

TypeScript reference SDK

The pre-alpha Node package lives in packages/typescript:

cd packages/typescript
npm ci
npm run check

It validates the same fixtures and privacy profile as Python and preserves nanosecond wire timestamps as decimal strings. It does not install an OTel provider, exporter, or global propagator.

Run the complete AGT-compatible governance, OTel, durable-evidence, and TRACE reference workflow (Python 3.11+ with test extras installed):

python -m pip install -e ".[test]"
python examples/governed_workflow.py

Contract principles

  • run_id is durable execution correlation; trace_id is an optional W3C operational trace context.
  • Standard OpenTelemetry fields take precedence over AgentTrust extensions.
  • Raw prompts, output, source code, tool arguments/results, credentials, and authorization tokens are prohibited in the metadata-only profile.
  • Operational telemetry can be lossy; evidence completeness must never be overstated.
  • An event reports a fact observed elsewhere. This project does not make authorization decisions.

Architecture and project policy

What this project does not provide

  • A telemetry collector, storage service, dashboard, or SaaS backend.
  • Agent/model auto-instrumentation that duplicates OpenTelemetry GenAI or OpenInference.
  • Policy evaluation or human-approval workflow execution.
  • A model pricing catalog.
  • A claim that sampled operational telemetry is durable audit evidence.

License

MIT. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentrust_telemetry-0.1.0a3.tar.gz (82.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentrust_telemetry-0.1.0a3-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file agentrust_telemetry-0.1.0a3.tar.gz.

File metadata

  • Download URL: agentrust_telemetry-0.1.0a3.tar.gz
  • Upload date:
  • Size: 82.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentrust_telemetry-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 8a2f6225a24870b1dc5722f1a9e97f599b99c594ce8b34bafe67bbd62b1d3595
MD5 880510818f140c1dda73e87975b02219
BLAKE2b-256 361cd42ea97058d41fc519f0bc43a74597d95b82a3f97c78843434a9d31a5c61

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentrust_telemetry-0.1.0a3.tar.gz:

Publisher: release.yml on agentrust-io/agentrust-telemetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentrust_telemetry-0.1.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for agentrust_telemetry-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 163f8d19bce5f91eb13bb0a77b647f54e7277bc41be8f26ee1b14ab54b8e6757
MD5 e6ca69e1c9ca76c288189b2f88603b6a
BLAKE2b-256 a9faee2bb7244c115570077d957c0ef7b78ff12f735408897bd5975107b0a85c

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentrust_telemetry-0.1.0a3-py3-none-any.whl:

Publisher: release.yml on agentrust-io/agentrust-telemetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0a3 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page