Skip to main content

Audit Accountability Export

This integration is a small example adapter for mapping real AgentMesh AuditEntry / AuditService output into a smallest-stable external accountability export shape.

It follows the interoperability discussion in issue #1314 and the docs-only note merged in PR #1319.

Purpose

The adapter treats AGT audit output as upstream runtime-governance evidence and emits a compact downstream accountability shape with:

  • actor reference
  • subject reference
  • operation
  • policy digest
  • decision
  • occurrence timestamp
  • input and output references
  • evidence references

The EEOAP mapping function is an external mapping example. It does not import an external validator and does not imply official AGT runtime support for EEOAP.

Non-goals

  • no AGT runtime changes
  • no AuditEntry / AuditService contract changes
  • no replacement of agt verify --evidence
  • no new AGT-native evidence format
  • no required dependency on EEOAP or external validators
  • no production compliance claim

Pipeline

AuditService output
-> AuditEntry
-> external accountability export shape
-> EEOAP mapping example

Example

from agentmesh.services.audit import AuditService
from audit_accountability_export import (
    accountability_export_to_eeoap_statement,
    audit_entry_to_accountability_export,
)

audit = AuditService()
entry = audit.log_policy_decision(
    "did:mesh:research-agent",
    "metadata.enrich",
    decision="allow",
    policy_name="approved-metadata-policy",
    data={
        "subject_ref": "urn:demo:client-note-001",
        "input_refs": ["urn:demo:client-note-001"],
        "output_refs": ["urn:demo:client-note-001-derived"],
    },
)

export = audit_entry_to_accountability_export(entry)
statement = accountability_export_to_eeoap_statement(export)

Export shape

{
  "export_type": "agt.audit_entry.external_accountability_export",
  "export_version": "0.1",
  "actor_ref": "...",
  "subject_ref": "...",
  "operation": "...",
  "policy_digest": "...",
  "decision": "...",
  "occurred_at": "...",
  "input_refs": [],
  "output_refs": [],
  "evidence_refs": []
}

Sensitivity note

Exported data may include values derived from AuditEntry.data. Review and redact sensitive fields before sharing externally. This example is intended to demonstrate a smallest-stable external accountability export shape, not to define a blanket-safe export for all audit records.

Running locally

From the repository root:

pip install .[dev]

PYTHONPATH=agent-governance-python/agent-mesh/src:agent-governance-python/agentmesh-integrations/audit-accountability-export \
  python -m pytest agent-governance-python/agentmesh-integrations/audit-accountability-export/tests -q

PYTHONPATH=agent-governance-python/agent-mesh/src:agent-governance-python/agentmesh-integrations/audit-accountability-export \
  python agent-governance-python/agentmesh-integrations/audit-accountability-export/examples/basic_auditservice_export.py

The tests create real AuditService entries and use the returned AuditEntry objects as the source. They do not rely on static synthetic fixtures.

Metadata

Release files for agentmesh_audit_export 3.7.0

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

Source distribution (sdist)

Source distribution for agentmesh_audit_export 3.7.0
File Size Uploaded Provenance
agentmesh_audit_export-3.7.0.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agentmesh_audit_export 3.7.0
File Interpreter ABI Platform
agentmesh_audit_export-3.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / agentmesh_audit_export-3.7.0.tar.gz

Download URL agentmesh_audit_export-3.7.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8889c4344783d75ce19ed46cc83ffb0305e33ec1c9b7836fac27bc94d0879299
BLAKE2b-256 checksum
How to use checksums
1832ae22d38f3cecae3dba87eb470c298268615fa757260116d4c65193844179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / agentmesh_audit_export-3.7.0-py3-none-any.whl

Download URL agentmesh_audit_export-3.7.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ad3e375836caed71aa4d344a49de892a524beef252d1b6f360a9e571673f02a
BLAKE2b-256 checksum
How to use checksums
5beb357bfc134931ab8184165f366b8fff04342a8685f3848abff32446e01621
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Security for agentmesh_audit_export 3.7.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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