Skip to main content

nti-otel

Tamper-evident records for AI agent tool calls, produced from the OpenTelemetry spans you already emit.

What it answers

Has this record of what my agent did been altered since it was written?

It does not answer "was the agent authorized to do this?". That question needs a record bound to the engine's own verdict, which the reference engine does not implement yet — see NTI-1 RFC 0001. These are records of observed decisions, and calling them NTI authorization receipts would be a claim the code cannot support.

Why this shape

Most teams already emit spans for their tool calls. Asking them to add a new SDK, a new decorator and a new export path to get evidence is asking them to change their architecture to satisfy an auditor. Reading the spans they already produce costs one line.

Each recorded span becomes one entry in an append-only JSONL log. Every entry carries sha256 over its canonical form and the hash of the entry before it, so:

  • editing any field breaks that entry's hash;
  • deleting or reordering an entry breaks every link after it;
  • the file is self-contained evidence that can be shipped to a customer, with no server to trust and no network call.

Use it

from opentelemetry.sdk.trace import TracerProvider
from nti_otel import install

provider = TracerProvider()
install(provider, path="decisions.jsonl")

Verify it:

$ nti-otel decisions.jsonl
OK: 2 entries, chain intact
  head sha256:41ab…
  tail sha256:8d0e…

$ nti-otel decisions.jsonl   # after an edit
FAIL: 1 problem(s) in 2 entries
  - entry 0: record_hash mismatch (claimed sha256:41ab…, computed sha256:7f31…)

What gets recorded

Only spans that carry nti.decision or nti.capability, because tracing furniture outnumbers decisions by orders of magnitude. Per record: trace and span IDs, the parent span ID, span name, start and end time, status, and the decision attributes in records.DECISION_ATTRIBUTES.

Everything else on the span is dropped. A record has to stay small enough to retain for years, and evidence should not change when someone renames a telemetry attribute.

Signing

Optional, and honestly scoped. generate_signer() returns an ML-DSA-87 signer and its public key. Two limits of ube-foundation 0.2.1 apply:

  • a keypair cannot be persisted (PqcKeyPair() generates and nothing loads), so a key cannot survive a process restart;
  • verify() is an instance method and there is no constructor from a public key, so a third party cannot verify a signature from the public key alone.

Until the engine supports key persistence and verification from a public key, signing is in-process and does not establish non-repudiation to anyone else. The chain does not depend on it.

Scope

nti_otel treats the agent as the thing being observed. A deployment that needs the stronger claim has to wait for RFC 0001 work items, or produce its own evidence path.

Apache-2.0.

Install

Not on PyPI yet. From this directory:

python -m pip install -e ".[test,signing]"

To publish: add a pending trusted publisher on PyPI for nti-otel (workflow otel-publish.yml, Environment name left blank), then push a tag nti-otel-v0.1.0. No token is stored in the repository.

Metadata

Release files for nti-otel 0.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for nti-otel 0.1.0
File Interpreter ABI Platform Actions
nti_otel-0.1.0-py3-none-any.whl Python 3 none any Details for nti_otel-0.1.0-py3-none-any.whl

Release files / nti_otel-0.1.0-py3-none-any.whl

Download URL nti_otel-0.1.0-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f9f65d3d4200e3f30594ffe1321d19d9442d65b6d03f725846ac7a0940929a4
BLAKE2b-256 checksum
How to use checksums
299ebfa5199f506af4a28bf7c9e6d556e48d18aea804de9a58e9f71eb01ae3f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 26, 2026.

Transparency log

Security for nti-otel 0.1.0

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

1 file in this release has been uploaded with provenance metadata.

Attestation for nti_otel-0.1.0-py3-none-any.whl

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 Nov 26, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file Full provenance

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