AI Agent Audit Logs Need 12 Fields. We Counted 6 Frameworks — the Median Records 5.
From the publisher’s feed, collected in the ZeroLabs newsroom.
No agent framework we checked records a trust level or a hash chain, so a trace can be edited and nothing shows it. Field counts, 4 September 2026.Mandatory audit fields satisfied by each agent framework’s tool-call record, scored against the 12 fields of the agent audit trail draft revision 02. Counted from pinned commits, 4 September 2026. Chart: Decoding AI.An agent calls a tool. Money moves, a row is deleted, an email goes out. Then somebody asks the only question that matters: can you prove what it did?You open the trace. There is a span, with a name, a start time, an input, an output. It looks like evidence. It is not — it is a debugging artifact shaped like one.So on 4 September 2026 we counted. We cloned six open-source agent frameworks and instrumentation specs at their current commits, extracted every field their tool-call record carries, and diffed those against the twelve mandatory AI agent audit log fields set out in the newest agent audit trail format.The median framework records five of the twelve fields an audit record needs, and not one of the six records a tamper-evidence field of any kind.What agent frameworks record is built for debugging. An audit record has a different job, and the distance between the two turns out to be countable.Key takeawaysThe median of the five frameworks covers 5 of 12 mandatory audit fields. Range: smolagents 1, LlamaIndex 3, OpenAI Agents SDK 5, CrewAI 5, LangChain 6. Measured 4 September 2026 at pinned commits.trust_level appears 0 times across all six codebases. A grep for the string across every Python and TypeScript file in all six repositories returns zero files.prev_hash, previous_hash and hash_chain also return 0 files. Nothing in any of these frameworks chains one record to the last, so a trace store can be edited after the fact without leaving a mark.OpenInference — the richest instrumentation spec in the ecosystem, with 119 namespaced span attributes — still covers only 8 of 12, and carries none of the tamper-evidence fields.Only timestamp is recorded by all five frameworks (5/5). agent_id is 1/5, session_id is 1/5, record_phase is 1/5, and agent_version, outcome and trust_level are 0/5.TL;DRAgent frameworks instrument themselves well for debugging and badly for evidence, and the two look alike enough that nobody notices the substitution until somebody asks them to prove something. The missing fields are not obscure: they establish who acted, under what authority, and whether the record has changed since — precisely what a debugging trace has never needed. We counted them framework by framework, so the gap is a number instead of an opinion.What did we actually measure?We cloned six repositories on 4 September 2026 and pinned each to its head: openai-agents-python at 89c02c8, langchain at 0d50cbd, crewAI at 92eb5f9, llama_index at d2ac544, smolagents at 30bb116, openinference at 479d168. For each we took the object that records a single tool call — the span envelope plus its tool-specific payload — and extracted every field name by parsing the class definitions rather than reading the docs. Then we mapped those fields onto the twelve mandatory fields of the current audit-trail draft.Where a field only partly satisfies a requirement we scored it partial and said why. LangChain’s error tells you something failed; it does not separate failure from timeout, denial or escalation.The actual run: six repositories cloned at head, every field on the tool-call record extracted and scored against the twelve mandatory audit fields. trust_level and prev_hash come back zero everywhere. Run 4 September 2026. Terminal capture: Decoding AI.What does an AI agent audit log need to contain?The reference we used is the agent audit trail Internet-Draft, revision 02, published 3 September 2026 by Raza Sharif of CyberSecAI. It is an individual submission, not an endorsed IETF standard, and we are treating it as one carefully-reasoned proposal rather than settled law. But it is the most concrete published answer to the question, and its twelve mandatory fields are hard to argue with:record_id — a unique identifier for this recordtimestamp — when the event happened, RFC 3339agent_id — which agent instance actedagent_version — which version of that agent's softwaresession_id — the session the action belongs toaction_type — a controlled vocabulary, not free textaction_detail — the type-specific payloadoutcome — success, failure, timeout, denied, or escalatedtrust_level — the authority the agent was operating under, L0 to L4parent_record_id — the previous record in the chainprev_hash — a SHA-256 hash of that previous recordrecord_phase — whether this was written before, during, or after executionRead that list next to a span object and the shape of the problem appears. The first eight are things a debugger would plausibly want. The last four are things only an auditor wants — and those are the four that are missing.How many fields does each framework actually record?Field counts on the tool-call record, and coverage against the twelve:CrewAI (ToolUsageFinishedEvent + BaseEvent) — 25 fields, 5 full, 3 partial, 4 absentLangChain / LangSmith RunTree 0.12.1 — 20 fields, 6 full, 1 partial, 5 absentOpenAI Agents SDK 0.22.0 (SpanImpl + FunctionSpanData) — 13 fields, 5 full, 2 partial, 5 absentLlamaIndex (SimpleSpan + BaseEvent) — 10 fields, 3 full, 1 partial, 8 absentsmolagents 1.26.0 (Timing + TokenUsage) — 6 fields, 1 full, 0 partial, 11 absentOpenInference semantic conventions — 119 namespaced span attributes (distinct dotted attribute-name constants in the Python semantic conventions at 479d168; a further 43 constants there are enum values, not attributes), 8 full, 1 partial, 3 absentNote what field count does not predict. CrewAI records the most fields and still covers fewer requirements than LangChain, because much of its twenty-five is crew context — agent_role, from_task, plan_step_number, delegations — genuinely useful, and answering none of the audit questions. Richness of instrumentation and fitness as evidence are close to uncorrelated.CrewAI does earn one thing nobody else has. Because it emits ToolUsageStartedEvent and ToolUsageFinishedEvent as separate classes, it is the only framework here with a real record_phase — a record that exists before the tool runs. That matters more than it sounds: a post-hoc-only log cannot prove an action was authorised before it happened, only that it happened.Field count does not predict auditability: CrewAI carries the most fields of any framework and satisfies fewer requirements than LangChain, because most of its extra fields are crew context rather than evidence. Counted 4 September 2026. Chart: Decoding AI.Which fields does nobody record?Four of the twelve are absent across all five frameworks, and two of those are absent across all six including the instrumentation spec:trust_level — 0 files across all six repositories. No framework records the authority the agent was acting under, so a trace cannot distinguish an action the agent was permitted to take from one it was not.prev_hash — 0 files, along with previous_hash and hash_chain. Nothing chains records. A trace store is an ordinary database, and rows in an ordinary database can be changed.agent_version — 0 of 5 frameworks. It exists in the set only as OpenInference's mirror of OpenTelemetry's gen_ai.agent.version: available to set, and in our reading essentially never set by the frameworks themselves.outcome as a classification — 0 of 5 full. Every framework has an error field. None separates denied from failed, which is the distinction an auditor cares about most.non_repudiation returns zero files too. So does pre_execution.Why do frameworks record so much and prove so little?Because they were built for a different question. A trace exists so an engineer can find out why something was slow or wrong, and for that input, output, duration and a parent pointer are close to sufficient. Evidence has to survive an adversary — including whoever holds the log — and none of these systems were designed against that threat model. The fields are not missing through oversight; they are missing because nobody asked the trace to be evidence until this year.Isn’t the OpenTelemetry GenAI convention already solving this?Partly, and it is the strongest counter-argument to this piece. OpenInference covers 8 of 12 — the best result in our set — and OpenTelemetry’s GenAI conventions do define gen_ai.agent.id and gen_ai.agent.version, which closes the identity gap on paper. Populated consistently, four of our twelve would be resolved by adoption rather than new work.But the two hardest stay open. Tamper-evidence is not an attribute you can add to a span, because it is a property of the store, not the record: a hash chain only means something if it is written where the writer cannot rewrite it. And record_phase requires emitting a record before the action runs — an architectural choice about when you write, not a field you append afterwards. Neither is a semantic-conventions problem.What this does not showWe want to be precise about the limits here, because the number is only useful if its edges are honest.This is static analysis, not runtime capture. We counted the fields the classes define. We did not run six agents and diff their emitted payloads, and a framework could populate a field through an extension mechanism we did not trace.metadata, tags and extra are escape hatches we scored as absent. Most of these frameworks let you attach arbitrary keys, so a determined team could put a hash chain in extra. Our count measures the default, not the ceiling.The closest thing to a signature in the set is not one. OpenInference defines message_content.signature, but its own docstring calls it an opaque vendor-issued value captured verbatim — Gemini's thoughtSignature, for example. It attests to the model's reasoning content, not the integrity of the record, and only the provider can verify it. We scored it absent for tamper-evidence deliberately.The twelve-field reference is one draft, by one author, at revision 02. Not a ratified standard, and reasonable people will argue about trust_level. If the requirement list changes, so do the coverage numbers.Six projects, not the ecosystem. Pydantic AI, Semantic Kernel, AutoGen and the commercial platforms are not counted.Field presence is not field quality. We scored timestamp satisfied in all five, but a datetime.now() with no timezone or external anchoring is far weaker than an RFC 3161 one.One thing this cannot settle: whether it matters for your system. If your agent reads documentation and drafts text, a debugging trace is the right artifact and this is over-engineering. The gap only bites when an agent’s actions have consequences somebody might later dispute.What would we actually do about it?Three things, in the order they pay off.Write a pre-execution record. Before the call, not after — record id, timestamp, agent id and version, the action about to be taken, the authority it is taken under. CrewAI’s started/finished split is the model; elsewhere you build it yourself.Chain the records into append-only storage. A SHA-256 of the previous record costs almost nothing. The value is in where you write it, not the hash.Give outcome a vocabulary. Five values — success, failure, timeout, denied, escalated — and "the tool errored" versus "the agent was not allowed to" becomes queryable instead of buried in a string.None of this needs a new framework. It needs about two hundred lines around the one you already use.This is the same shape as silent agent failures that no dashboard catches — an absence that reads as health because nothing was written down. It is why, when we reproduced the turf war between multiple agents on one codebase, the failures that hurt most were the ones nobody could attribute afterwards. If you are weighing the instrumentation cost, our measurement of what MCP tool definitions cost in context is the other half of that budget.The opposite case exists: Anthropic’s 13-million-line Fermat proof, where every step is kernel-checked and you can prove what happened.The next question this raises is what the evidence layer costs to carry. We are measuring that next: the context a bundled agent plugin spends against the same capability wired up as loose MCP servers.Frequently asked questionsWhat is the difference between an agent trace and an agent audit log? A trace is written for engineers, to explain behaviour after the fact; it assumes the writer is trustworthy. An audit log is written for a disputing party, and must establish identity, authority and integrity — who acted, under what permission, and whether the record has changed since. The five frameworks average 5 of 12 audit fields while carrying 6 to 25 trace fields each. That is the gap in one sentence.Can I make LangChain traces audit-ready? Partially, and by building around it rather than configuring it. LangSmith’s RunTree gives you 6 of the 12 directly, including session_id and parent_run_id. You would add agent identity and version, an outcome vocabulary, a trust level, a pre-execution record, and a hash chain in append-only storage. The extra field can carry them; nothing populates them for you.Does OpenTelemetry solve agent auditability? It closes the identity half. OpenTelemetry’s GenAI conventions define gen_ai.agent.id and gen_ai.agent.version, and OpenInference's mirror of them scored the best coverage in our set at 8 of 12. It does not close tamper-evidence or pre-execution recording, because those are properties of when and where you write, not of what attributes a span carries.Which agent framework is best for auditability today? LangChain via LangSmith covers the most at 6 of 12; CrewAI is the only one with a genuine pre-execution record and a first-class agent_id. Neither is audit-ready as shipped. If auditability is a hard requirement, you write the evidence layer yourself and treat the framework's trace as an input to it.Is a hash chain overkill for an internal tool? Usually, yes. The test is whether anyone outside the team might ever need to rely on the log — a customer, a counterparty, an insurer, an incident review with real consequences. If no, a good trace is enough. If maybe, the chain is far cheaper to add now than to reconstruct later.We counted fields because the argument about agent oversight has run for months on adjectives, and a field name is either in the class or it is not.Which single field would you add first to your own agent logs — the pre-execution record, or the hash chain? We would take the pre-execution record, and we would like to be argued out of it.Sources & ReferencesAgent Audit Trail draft specification, revision 02, 3 September 2026 — the twelve mandatory record fieldsOpenAI Agents SDK, tracing span data source — commit 89c02c8LangChain, core tracer schemas — commit 0d50cbd; LangSmith RunTree 0.12.1CrewAI, event type definitions — commit 92eb5f9LlamaIndex, instrumentation span and event base classes — commit d2ac544smolagents, monitoring module — commit 30bb116OpenInference, semantic conventions for span attributes — commit 479d168Written by Decoding AI. We measure things about AI systems that other people describe — token costs, agent traces, protocol diffs — and publish the numbers with the method attached.AI Agent Audit Logs Need 12 Fields. We Counted 6 Frameworks — the Median Records 5. was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.