Skip to main content
Pre-release

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

AgentTrust Telemetry

Community updates and contributor highlights: AgenTrust on LinkedIn.

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.6. 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.

Metadata

Release files for agentrust-telemetry 0.1.0a6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentrust-telemetry 0.1.0a6
File Size Uploaded Provenance Actions
agentrust_telemetry-0.1.0a6.tar.gz 91.6 kB With provenance Details for agentrust_telemetry-0.1.0a6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentrust-telemetry 0.1.0a6
File Interpreter ABI Platform Actions
agentrust_telemetry-0.1.0a6-py3-none-any.whl Python 3 none any Details for agentrust_telemetry-0.1.0a6-py3-none-any.whl

Total release size: 135.7 kB

Release files / agentrust_telemetry-0.1.0a6.tar.gz

Download URL agentrust_telemetry-0.1.0a6.tar.gz
Size 91.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bb75ee9416b02827a54817a07cf0310c6d787529516dcc16198aa2d7aa5fc052
BLAKE2b-256 checksum
How to use checksums
6c4ee99f5f8e744c983b5b8dfcf4d59253ae6c52ebe26149737915895c9ca6b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / agentrust_telemetry-0.1.0a6-py3-none-any.whl

Download URL agentrust_telemetry-0.1.0a6-py3-none-any.whl
Size 44.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
328708b04e4e52b4442b26a0141751cb75605de4505590eda083f7c66f17a87f
BLAKE2b-256 checksum
How to use checksums
b31d0b8e0f0160500fd5b20a295f1d50895be8170fd88b875cbfd5ce6a0a3c8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Security for agentrust-telemetry 0.1.0a6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentrust_telemetry-0.1.0a6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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