By NHI Mgmt Group Editorial TeamPublished 2026-06-19Domain: Agentic AI & NHIsSource: Kong

TL;DR: Agentic systems need a durable commit log rather than static state snapshots, according to Kong, and Kong lays out a Kafka-backed reference architecture that governs synchronous model calls, MCP tool use, and asynchronous event streams through Kong AI Gateway and Kong Event Gateway. The operational implication is that agentic control becomes a logging, schema, and policy problem, not just a runtime problem.


At a glance

What this is: This is Kong’s technical blueprint for a Kafka-backed agentic commit log that captures, governs, and replays AI agent activity across sync and async paths.

Why it matters: It matters because IAM, NHI, and AI governance teams need a durable way to authorize, audit, and replay agent actions without relying on fragile point-in-time state.

👉 Read Kong's technical blueprint for the agentic commit log architecture


Context

Agentic AI systems need more than a model and a tool layer. They need a governed record of what happened, in what order, and under which policy decisions, because static state snapshots cannot explain how an agent got to a result. In identity terms, that means the operational problem is not only access to tools, but the ability to prove and control every turn of an agent session.

Kong’s architecture frames that problem as a commit log backed by Kafka and enforced through gateway controls. For IAM and NHI practitioners, the relevant question is how to preserve ordering, schema integrity, and auditability across agent calls, tool invocations, and downstream projections without letting the runtime become the source of truth. The same pattern also affects autonomous agent governance where runtime decisions, not just credentials, must be observable.

This is a useful reference point for teams building agentic controls around MCP, A2A, and model calls. The article’s starting position is typical for teams moving from concept to deployment: they can describe the risk, but they still need an implementation path that preserves governance at wire speed.


Key questions

Q: How should security teams govern AI agent actions that must be replayed later?

A: Security teams should govern replayable agent actions as immutable events, not as mutable session state. The important controls are ordered capture, schema validation, and clear topic boundaries so the session can be reconstructed after the fact. Without that, audit evidence, debugging, and quality review all depend on incomplete runtime memory instead of a durable record.

Q: Why do agentic systems need both runtime controls and event governance?

A: Agentic systems make decisions at runtime, but those decisions also create a historical record that outlives the session. Runtime controls limit what the agent can do now, while event governance determines whether the organisation can prove, replay, and analyse what it did. If either layer is missing, the control model is incomplete.

Q: What breaks when agent events are not schema-governed?

A: When agent events are not schema-governed, consumers stop agreeing on what the data means. Replay fails, downstream projections drift, and compliance records become unreliable after framework updates or tool changes. The result is not just technical incompatibility but a broken audit trail that cannot support investigation or training.

Q: Who should own governance for an agent commit log?

A: Ownership should sit with the team responsible for identity, platform, and security governance together, because the commit log is both an operational substrate and an evidence system. If ownership sits only with application teams, policy drift is likely. If it sits only with infrastructure teams, the identity and audit requirements are easy to miss.


Technical breakdown

Why a commit log is the source of truth for agentic systems

A durable commit log records each agent turn as an ordered sequence of events rather than a mutable snapshot. That matters because agent behaviour is causal: a decision follows context retrieval, a tool call follows a model output, and downstream projections only make sense if the original sequence is preserved. Kafka gives the architecture partition ordering, replay, and retention, while the gateway layer captures the events before they disappear into framework-specific runtime state. This design treats the log as the authoritative record and every other store as a derived projection.

Practical implication: define the event stream first, then treat caches, vector stores, and analytics systems as rebuildable views.

How Kong separates synchronous and asynchronous governance

The blueprint splits governance into two planes. The sync plane covers live traffic between agents and models or tools, including authentication, prompt safety, PII handling, and tool-level authorization. The async plane covers event publication, schema validation, topic access control, retention, and replay. This separation matters because the security control that protects a live tool call is not the same control that protects a replayable audit event. The architecture only works if both planes share policy and lineage rather than drifting into separate control models.

Practical implication: apply different controls to runtime execution and event persistence, but keep both under one policy model and one audit chain.

Why schema governance determines whether replay actually works

Replay is only useful if the historical event can still be interpreted correctly. That is why the article emphasizes AsyncAPI schema registration, backward compatibility, and broker-side validation before events land in Kafka. If an agent framework changes event shape without governance, the log becomes unreliable for compliance, debugging, and training. In this architecture, schema validation is not a development convenience. It is the mechanism that keeps the action log, judge loop, and downstream consumers aligned as the system evolves.

Practical implication: gate schema changes through compatibility rules before production event streams are allowed to drift.


NHI Mgmt Group analysis

Commit-log governance is becoming the baseline for agentic identity control. Once agents can call models, invoke tools, and emit events across a session, point-in-time access checks stop being enough. The real control surface is the ordered record of decisions, not the model output alone. That is why commit-log design is emerging as an identity governance pattern, not just an infrastructure choice. Practitioners should treat durable session lineage as a control requirement for agentic systems.

Schema drift is the hidden failure mode in agent telemetry. A log without backward-compatible event contracts quickly turns into a broken audit trail, even when every event is technically captured. Kong’s blueprint shows that the governance risk is not missing data alone, but unreadable history after framework upgrades or tool changes. The implication is that agent programs need contract discipline across every event type, or replay becomes an illusion.

Session-order preservation is the agentic equivalent of entitlement traceability. When every event in a session hashes to the same partition, the architecture preserves causal order before any consumer sees the data. That matters because downstream compliance, quality scoring, and incident analysis all depend on reconstructing what happened in sequence. For identity teams, this reframes telemetry from observability to evidence. Practitioners should demand ordered, reconstructable session logs for every agent that can act independently.

Agentic governance now spans sync execution and async memory as one control plane. The article’s most useful lesson is that authorization, schema enforcement, and replay policy cannot be split between runtime tools and event infrastructure. If the live path is governed but the commit log is not, the system still has an uncontrolled memory layer. That is the governance gap teams need to close when they move from pilots to production.

Identity blast radius in agentic systems is defined by replayability, not just privilege scope. If an agent action can be replayed, reprocessed, or materialized into multiple downstream views, one bad turn can propagate far beyond the original request. That makes the log itself part of the blast-radius problem. Practitioners should judge agent architectures by how tightly they constrain event propagation and rollback, not just by how narrowly they scope tool access.

From our research:

  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems (39%), inappropriately sharing sensitive data (31%), and revealing access credentials (23%), according to AI Agents: The New Attack Surface report.
  • Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
  • That is why teams should pair agent governance with OWASP Agentic Applications Top 10 and a replayable control plane, rather than relying on runtime visibility alone.

What this signals

Commit-log thinking should now be part of agent governance roadmaps. The architecture in this post points to a broader shift: teams will need evidence-grade session records, not just tool authorization, if they want to govern agentic behaviour at scale. The practical next step is to align platform engineering and identity governance around replay, lineage, and consumer policy before production adoption accelerates.

Event governance is becoming the new control point for agent memory. If downstream systems can materialize, cache, and retrain from agent events, then the event stream itself becomes the policy boundary. Teams should prepare to govern not only what agents can access, but how their actions are retained, projected, and reused across the enterprise.

Session-level ordering will matter more as agent programmes spread across multiple tools and domains. Once a single turn can touch models, MCP tools, and asynchronous workflows, the organisation needs a reconstructable causal chain. That is the operational difference between a pilot and a governable programme, and it is where many current IAM models will need to evolve.


For practitioners

  • Define the event model before the agent runtime Design session_id, causation_id, and topic boundaries first so every turn can be reconstructed as an ordered chain of actions. Treat agent actions, judgments, and audit envelopes as separate streams with explicit semantics.
  • Separate live authorization from replay governance Use one policy model for model calls and tool invocations, and a different control layer for schema validation, retention, and consumer access to the commit log. Keep both layers under the same audit lineage.
  • Make schema compatibility a release gate Block production event changes unless new versions remain backward compatible with existing consumers and can still be replayed correctly from the broker.
  • Classify every downstream projection as derived data Document that vector stores, caches, analytics stores, and compliance archives are projections, not sources of truth, so teams know they can be rebuilt from the stream.
  • Govern tool-level access at the gateway layer Enforce authentication, RBAC, prompt safety, and PII handling before requests reach the agent or the model, so the runtime never becomes the first control boundary.

Key takeaways

  • Agentic systems need a durable commit log because static state snapshots cannot explain how an agent reached a decision.
  • Schema compatibility and ordered event capture determine whether replay, audit, and downstream projections remain trustworthy.
  • Security teams should treat the event stream as a governed identity asset, not just an engineering log.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10NHI-03Agent tool use and replayable action logs need governed privilege and auditability.
NIST AI RMFThe commit log supports governance, traceability, and accountability for agentic systems.
NIST Zero Trust (SP 800-207)PR.AC-4Gateway-enforced policy and least privilege apply to agent calls and event consumers.

Apply least-privilege access controls at the gateway and broker so only approved identities can act or subscribe.


Key terms

  • Agentic Commit Log: A durable, ordered record of agent actions, decisions, and downstream events. It turns agent behaviour into replayable evidence rather than transient runtime state. In practice, it is the control surface that lets teams audit, reconstruct, and govern sessions after execution completes.
  • Derived Projection: A read-side store built from an authoritative event stream rather than serving as the source of truth. Vector databases, caches, analytics warehouses, and archives all fit this pattern. The distinction matters because governance must protect the stream first and treat projections as rebuildable outputs.
  • Schema Governance: The discipline of controlling event structure so producers and consumers can exchange data safely over time. In agentic systems, it prevents tool, model, or framework changes from breaking replay, audit, or downstream processing. It is an operational control, not a documentation exercise.
  • Session Lineage: The ability to trace every event in an agent turn back through its causal chain. It depends on identifiers such as session_id and causation_id, plus ordered storage that preserves event sequence. For governance teams, lineage is what turns activity logs into defensible evidence.

Deepen your knowledge

NHI governance, agentic AI identity, machine identity security, IAM, human identity, and identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or governance in your organisation, it is worth exploring.

This post draws on content published by Kong: Building the Agentic Commit Log: A Technical Blueprint with Apache Kafka and Kong. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-06-19.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org