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.4. 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.0a4.tar.gz (82.8 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.0a4-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentrust_telemetry-0.1.0a4.tar.gz
  • Upload date:
  • Size: 82.8 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.0a4.tar.gz
Algorithm Hash digest
SHA256 9c2400550eb238db0a8322ce8ad180e70bb32bf24feee0531b823814bb011941
MD5 8e743a5e715fa20324824c35e8713f0a
BLAKE2b-256 83e057d4e15d606e7f6e410066a446c92805e19d1f7ed3708d169f20196a9c00

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentrust_telemetry-0.1.0a4.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.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for agentrust_telemetry-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 3584e4d0cd78589b25b8f1cb1f072e68a22c0cfc866333b588d7aa50858c6e4b
MD5 b48f0b1e4be31be3e5e207b1a3930d88
BLAKE2b-256 00ba736548873d736fceefc5799504075e3cc3ea2a87c50583a2e84efbc1a8cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentrust_telemetry-0.1.0a4-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.0a4 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