VYPR
researchPublished Aug 31, 2026· 1 source

Halo-record Offers Open-Source Audit Trails for AI Agents

A new open-source Python package, halo-record, provides immutable, cryptographically hashed audit trails for AI agents to enhance transparency and accountability.

Brian Kuan has developed halo-record, a novel open-source Python package designed to create tamper-evident audit trails for AI agents. This tool addresses a growing need for transparency and accountability in the operation of artificial intelligence systems by meticulously logging their actions. Each step taken by an AI agent, including tool calls, model interactions, data access, and approvals, is recorded in a log file.

The core innovation of halo-record lies in its use of cryptographic hashing. Each log entry is appended to the file and includes a hash of the preceding entry. This creates a chain where any alteration or reordering of a log record would invalidate all subsequent hashes, making tampering immediately detectable. Crucially, these logs can be independently verified by anyone without requiring special permissions or vendor accounts, fostering trust between AI service providers and their clients.

Halo-record aims to simplify the integration process for developers. Wrapping an AI agent with halo-record requires just a single line of Python code. Furthermore, it supports adapters for popular observability tools like OpenTelemetry spans, LangChain, and gateway logs, allowing evidence to be collected from existing infrastructure. This flexibility ensures that the audit trail can be comprehensive and easily integrated into current workflows.

To protect sensitive information, halo-record does not store raw arguments directly in its logs. Instead, it hashes values and maintains a redacted summary, employing pattern matching to identify and obscure common secret formats and personal data. The package itself is lightweight, with no runtime dependencies and approximately 5,300 lines of Python code, making it suitable for deployment within sensitive environments or as part of a vendor's own product.

While halo-record ensures that existing records cannot be altered, it acknowledges that this does not guarantee that all necessary records were created. To address this, Kuan plans to introduce a 'witness' service. This external party would periodically store key metrics like the total number of records and the hash of the latest entry, providing an additional layer of assurance against missing logs.

Vendors are motivated to adopt halo-record because it can help close deals by providing a verifiable, independent audit trail. Kuan notes that current security reviews often rely on certifications designed for deterministic software or self-provided logs, which lack credibility. Halo-record offers a more robust and trustworthy alternative, akin to how SOC 2 requires independent auditors.

The adoption of such tools is being driven by emerging standards and regulatory pressures. Frameworks like AIUC-1 are beginning to mandate tamper-evident runtime logging for AI agents. Insurers are also starting to inquire about these capabilities. The incident at Hugging Face, where an autonomous agent performed thousands of actions over several days, highlighted the impracticality of manually reconstructing agent activities from incomplete logs, underscoring the need for reliable, automated audit trails.

Kuan has intentionally made the halo-record format open, versioned, and easily implementable. This openness is designed to encourage widespread adoption and prevent vendor lock-in. The primary goal is not to control the format, but to ensure that the evidence generated by AI agents is verifiable by parties outside the agent's operator. This open approach aligns with the requirements of regulations like the EU AI Act and models like the Cloud Security Alliance's AARM.

Synthesized by Vypr AI