← Back

← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team

Agent Log Integrity Audit: What the Gap Checks Mean

The short answer

Every BoundaryVault scan includes an integrity and gap audit of the log itself — missing or duplicate sequence values, timestamp order breaks, clock jumps of more than a day, silent gaps far longer than the log's median gap, a truncated final entry, duplicate entries and agent name form changes. The audit's own assessment, printed in the packet's integrity annex, is that these are indicators only: they show where a log looks incomplete, never proof that anyone tampered with it. Check your own log with the free log scan.

Scan my log — free

What is a log integrity audit?

The integrity audit is the part of a BoundaryVault scan that examines the record rather than the actions: whether the log you handed over is whole, ordered and consistently attributed. Its output feeds the disclosure packet's integrity annex alongside the pattern findings.

Why audit the container as well as the contents

Pattern findings answer 'did the agent cross a boundary?' The integrity audit answers the prior question: 'is this the whole log?' A scan of a partial log can be perfectly accurate and deeply misleading — the missing hour is exactly where a reviewer will ask questions. Surfacing completeness signals with the findings keeps both questions in the same room: a clean pattern report on a gappy log is reported as exactly that, and an incident timeline built on a holed record is labelled with its holes before someone else finds them.

The signals, one by one

Missing sequence values say entries that should exist do not; duplicates say the pipeline wrote some twice, which inflates counts and can replay actions in analysis that happened once. Timestamp order breaks and clock jumps over a day usually mean multiple clock sources or an import stitched from two systems. A silent gap — a stretch with no actions far longer than the log's median gap — can be a quiet weekend or a stopped logger, and the audit cannot tell you which; that is your local knowledge to supply. A truncated final entry is the classic unclean shutdown. Agent name form changes (the same agent under two spellings) fragment attribution, which matters because per-agent scope is judged by agent id.

Signals are not accusations

The annex language is deliberate: indicators only, never proof of tampering. Most real-world signals trace to plumbing — restarts, retries, clock drift, a framework upgrade renaming an agent — and the audit's job is to make you look, not to convict. The failure mode to avoid is the opposite complacency: waving a signal away because plumbing usually explains it. The discipline is to explain each signal on the record, in the operator notes: what caused it, what window it affects, and what it does or does not change about the findings around it. An explained gap strengthens a packet; an unexplained one weakens everything near it.

Building a log that audits clean

The fixes are boring and compounding: one sequence counter per agent, one clock source, agent ids treated as stable identifiers rather than display names, shutdown that flushes the final entry, and imports that preserve original order and timestamps. Test your pipeline the way you test the agent: generate a known week, scan it, and confirm the integrity section is silent. When you change frameworks or merge logs from two systems, re-run that test before the next real incident depends on the record — pipeline changes are when yesterday's clean audit quietly becomes today's gap.

A worked example: Pinecrest Tutoring

Example — fictional operator, illustrative numbers. Pinecrest Tutoring, a fictional homework-help operator, saw 4 integrity signals in its first complete scan of 371,000 actions: a silent gap of 2,300 missing sequence values during a framework restart, 118 duplicate entries from a retrying exporter, one agent appearing under 2 name forms, and clock jumps traced to a second server 37 minutes off the primary clock. None indicated tampering; all four were explained in the operator notes, fixed at the pipeline, and absent from the next month's scan of 402,000 actions — which is what let the team present that month's clean pattern report without an asterisk.

MeasureFigureWhat it showed
Actions scanned371,0004 integrity signals
Missing sequence values2,300A framework restart window
Duplicate entries118A retrying exporter
Clock offset found37 minutesSecond server; all signals explained and fixed

See how the plans differ on log size and batch work on the pricing page, and how the detector reads a log in the detector docs.

The checklist: five actions

  1. Read the integrity section every time. Treat it as part of the result, not an appendix — it caps what the pattern findings can claim.
  2. Explain each signal on the record. Cause, affected window and effect on findings, written into the operator notes for the period.
  3. Fix the boring causes. One counter per agent, one clock source, stable agent ids, flushing shutdowns, order-preserving imports.
  4. Re-test after pipeline changes. Framework swaps and log merges get a known-week integrity test before real incidents rely on them.
  5. Never call a signal proof. Indicators only — the packet says so, and your notes should keep that discipline.

Run the free log scan · More agent-security tools from Ingenious AI

Related guides

Missing Sequence Numbers in Agent Logs: What They Mean

Timestamp Problems in Agent Logs: Order Breaks and Clock Jumps

Silent Gaps in Agent Activity Records: Quiet Period or Missing Record?

How Long Should You Keep AI Agent Logs? An Audit-Trail Retention Guide

Agent Log Forensics: Finding Credential Grabs After the Fact

What Is Scope Escape in an AI Agent?

Building a Disclosure Packet After an Agent Incident

Grading a log before you lean on it

Before findings from any scan are used — in a packet, a customer answer, a dispute — spend five minutes grading the container. Count the integrity signals and place them: a truncated final entry at the export boundary is expected and harmless; missing sequence values in the middle of the incident window are neither. A name-form change that coincides with a framework upgrade is a footnote. The same change with no upgrade behind it deserves a paragraph.

Write that grade into the operator notes as plainly as the findings themselves: what the audit flagged, where, and what you established about each one. Reviewers forgive an imperfect log. They do not forgive discovering the imperfections themselves, later, after you presented the period as clean. The audit hands you the list early precisely so the discovery is yours.

Signals compound — read them in clusters

Single signals have innocent explanations; clusters tell stories. A silent gap beside a name-form change beside a truncated stretch is not three coincidences — it is one event, usually a migration or a writer replacement, seen from three sides. When signals cluster, investigate the cluster as one item and write one explanation that covers all of them. Scattered one-line explanations for what was plainly a single afternoon's work read, to a reviewer, like someone avoiding the obvious sentence: the logging pipeline changed that week, and here is the change record.

Frequently asked questions

What does the integrity audit check?

Missing or duplicate sequence values, timestamp order breaks, clock jumps of more than a day, silent gaps far longer than the median gap, a truncated final entry, duplicate entries and agent name form changes.

Does a gap signal mean someone tampered with the log?

No. The audit's assessment, printed in the packet's integrity annex, is that signals are indicators only, never proof of tampering. Most trace to restarts, retries, clock drift or renames.

Why do duplicate entries matter?

They inflate counts and can make an action appear twice in analysis that happened once. They usually indicate a retrying exporter or a stitched import.

What is a silent gap?

A stretch with no actions far longer than the log's median gap. It may be a genuinely quiet period or a stopped logger — the audit flags it; your local knowledge explains it.

How do I get a clean integrity audit?

One sequence counter per agent, a single clock source, stable agent ids, clean shutdowns and order-preserving imports — then prove it with a known-week scan after any pipeline change.