Catalog PyPI
PACKAGE EXPLORERView in registry

agent-trust-telemetry

PyPI

Trust telemetry middleware for inter-agent communication — makes instruction contamination observable across traces

agentmcpopentelemetrysecuritytelemetrytrust
Versions collected1
Direct dependencies11From release 0.1.0
Last observed20 Oct, 23:36 UTC

README

Version 0.1.0 documentation

agent-trust-telemetry

Trust telemetry middleware for inter-agent communication — makes instruction contamination observable across traces.

Why

In agent orchestration, a trusted sender does not imply trusted content.

Tool descriptions from MCP servers, messages relayed via sampling, forwarded content from upstream agents — all of these can carry contaminated instructions even when the sender is legitimate. Single-message input filtering cannot capture this chain contamination.

Human → Agent A (contaminated) → Agent B → Agent C
              ↑
    Passes through because sender is trusted
    But the content is contaminated

agent-trust-telemetry makes this visible by adding security semantics over traces to your existing observability stack.

What It Does

  • Normalized message envelope with provenance, execution phase, and content hash
  • Policy violation taxonomy — 5 violation classes + 2 anomaly indicators
  • One-hop risk inheritance — upstream contamination score propagation
  • OTel-compatible evidence export — integrates with your existing tracing infrastructure

What It Does NOT Do

  • Guarantee complete prompt injection defense
  • Provide model-internal interpretability
  • Prove agent capability authenticity
  • Automate legal liability boundaries

3-Minute Repro (LangGraph)

git clone https://github.com/wharfe/agent-trust-telemetry.git
cd agent-trust-telemetry
pip install -e ".[dev,langgraph]"
python examples/langgraph/multi_agent_contamination.py

Expected behavior:

  • agent_a is flagged with action=quarantine (poisoned instruction detected)
  • downstream nodes inherit contamination context and remain quarantined
  • ancestor chain is preserved for traceability across hops

LangGraph Minimal Integration

from att.integrations.langgraph import TrustTelemetryCallback

callback = TrustTelemetryCallback()
result = graph.invoke(
    {"messages": messages},
    config={"callbacks": [callback]},
)

CLI Quick Start

pip install agent-trust-telemetry

# Evaluate a single message
att evaluate --message message.json

# Evaluate a JSONL stream
att evaluate --stream messages.jsonl

# View evaluation report
att report --input evaluations.jsonl --format table

Output Example

{
  "risk_score": 82,
  "severity": "high",
  "policy_classes": [
    {"name": "instruction_override", "confidence": 0.91, "severity": "high"}
  ],
  "anomaly_indicators": [
    {"name": "provenance_or_metadata_drift", "subclass": "parent_flagged_propagation", "confidence": 0.70, "severity": "high"}
  ],
  "evidence": [
    "override phrase detected near end of long context",
    "parent message msg:xxx was flagged (risk_score: 65, action: warn)"
  ],
  "recommended_action": "quarantine"
}

quarantine does not simply block a single message — it pauses propagation to downstream agents.

How It Relates to Existing Tools

ToolFocus
Lakera GuardPoint-in-time content screening
LangSmithObservability / debugging / tracing
This toolSecurity semantics over traces + inter-agent trust propagation

Not a competitor — a complement. Designed to layer on top of existing OTel stacks without requiring a proprietary monitoring platform.

Architecture

Layer 1  Cheap Deterministic    Known markers, pattern matching
Layer 2  Contextual Classifier  Maps to policy violation classes (LLM used only for refinement)
Layer 3  Risk Aggregation       Upstream inheritance, session accumulation, role-transition drift

MVP implements Layer 1 only. The core evaluation engine has zero external LLM API dependencies.

Status

Alpha — MVP complete

  • Message Envelope Schema (JSON Schema Draft 2020-12)
  • Policy Violation Taxonomy v0.1
  • Architectural decisions documented (execution phases, propagation, tool metadata)
  • JSON Schema validation (envelope + output contract)
  • Layer 1 evaluation engine (regex pattern matching)
  • One-hop risk inheritance
  • Tool metadata drift detection
  • CLI (att evaluate / att report / att quarantine)
  • OTel span/event export
  • End-to-end demo (Docker Compose + Jaeger)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

Security

To report a vulnerability privately, use GitHub Security Advisories:

For non-sensitive security discussion, open an issue:

License

Apache License 2.0

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.09 Mar 202611

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
wharfe/agent-trust-telemetry

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1ba3697b2b4e3bc75fd39619f09118f8855f6e52edfbc1cbe7fd1de792cd9e67