How AI's Actually Work — HAAW

Monitoring, Audit and Observability

How Do We Know What an AI System Actually Did?

We have built an AI system with tools, permissions, autonomy, persistence and safety boundaries. Now suppose something important happens. The system reports success. A file changed. A service restarted. A tool failed. A human approved an action. An agent says another agent completed a task. How do we establish what actually happened?

If an event matters, “the AI said it happened” is not enough.

Three Related Ideas

Monitoring, audit and observability overlap, but they are not identical.

Monitoring

Watching selected signals so the system or operator can detect current conditions, changes and failures.

Audit

Preserving records that allow important actions, decisions and authority chains to be examined later.

Observability

Having enough useful evidence from the running system to investigate and reconstruct what occurred.

Monitoring asks: What is happening?
Audit asks: What was recorded?
Observability asks: Can we reconstruct and investigate what happened?

Return to the HAAW Web Server

Suppose an agent reports:

“I restarted the HAAW web service and it recovered successfully.”

That sentence contains several claims:

Those are not the same event.

REQUESTED → AUTHORIZED → EXECUTED → Δ STATE → VERIFIED
One sentence from the agent may summarize an entire chain of evidence.

The Model's Output Is One Observation

The model's generated text is valuable evidence of what the model produced. But it is not automatically proof that an external action occurred.

If the model says:

“The file was written successfully.”

we can distinguish:

Recorded Observation

The model generated the statement “The file was written successfully.”

External Claim

A particular file exists with particular content at a particular location.

Verification

The filesystem or another independent observation confirms the file and its expected content.

A report about the world and evidence from the world are different things.

What Can We Observe?

An AI system is a stack. Different layers expose different evidence.

LayerPossible Observations
User / InterfaceRequests, visible responses, approvals, cancellations.
Serving / OrchestrationRequest IDs, routing, tool requests, state transitions, retries.
ModelInput tokens, output tokens, logits or selected internal data where instrumentation permits.
ToolsArguments, return values, errors, execution timestamps.
Operating SystemProcesses, files, permissions, resource usage, system calls or logs where captured.
NetworkConnections, destinations, timing, request/response metadata where available.
HardwareCPU/GPU utilization, memory use, device events, power and performance telemetry.
External WorldDatabase state, service status, delivered message, physical sensor state or other effects.

No single layer necessarily tells the whole story.

Logs Are Evidence — But Not Reality Itself

Sysadmins know this one well.

A log entry might say:

12:04:17 restart request accepted

That establishes something useful: the logging system recorded that event.

It does not by itself prove that:

A log is an observation produced by instrumentation. It should not automatically be treated as the entire physical truth of the system.

Instrumentation

Instrumentation is the mechanism deliberately added to expose useful information about a running system.

Examples include:

SYSTEM EVENT → INSTRUMENTATION → RECORDED OBSERVATION → ANALYSIS

Metrics, Logs and Traces

Traditional observability often uses three useful categories.

Metrics

Numerical measurements over time: latency, GPU utilization, error rate, queue depth, token rate, memory use.

Logs

Discrete records describing events: request received, tool failed, permission denied, service restarted.

Traces

Linked records showing how one request or operation moved through multiple components.

AI agent systems add more events to trace:

USER GOAL → MODEL INFERENCE → TOOL REQUEST → AUTHORIZATION → TOOL EXECUTION → RESULT → NEW INFERENCE

Correlation IDs and Event IDs

Once many events overlap, timestamps alone may not be enough.

A useful system can assign identifiers such as:

MISSION: M-1842
INFERENCE: I-031
TOOL CALL: T-088
APPROVAL: A-014
STATE CHANGE: S-205

These are conceptual examples. The exact format does not matter.

The important idea is that later investigators can determine which events belong together.

Time Is Necessary — But Not Sufficient

Suppose:

12:00:01 — Agent A requests diagnostic
12:00:02 — Agent B reads log
12:00:02 — Agent C tests endpoint
12:00:03 — Agent A receives result
12:00:03 — Agent B sends finding

Which result caused which later decision?

A timestamp helps, but causal structure needs more.

TIMESTAMP tells WHEN.
LINEAGE tells FROM WHAT.
DEPENDENCY tells WHAT HAD TO HAPPEN FIRST.

This is why our earlier multi-agent pages moved from a simple timeline toward an event/dependency graph.

The Event Field

A real AI system may have many things happening at once:

There may be no single neat line of events.

The system produces an event field, not merely a transcript.

Audit: Who Was Allowed to Do What?

Audit becomes especially important when an AI system can affect external state.

For an important action, an audit record might preserve:

WHO + WHAT + UNDER WHOSE AUTHORITY + WHEN + RESULT

Audit Records Need Integrity

An audit trail is much less useful if the same process being investigated can silently rewrite or delete it.

Important evidence systems may therefore use controls such as:

No mechanism automatically makes evidence perfect. The goal is to make alteration detectable or difficult and provenance reconstructable.

Provenance

Provenance answers where information came from.

If an agent reports:

“The configuration error is on line 83.”

useful provenance might identify:

SOURCE FILE
FILE VERSION / HASH
READ TIME
TOOL USED
TOOL RESULT
AGENT / INFERENCE THAT RECEIVED IT

That allows the statement to be traced back toward its evidence.

Observation, Derived Fact, Interpretation

This is one of the most important WITNESS disciplines and belongs directly in HAAW.

CategoryExample
Recorded ObservationThe tool returned Syntax error on line 83.
Derived FactTwo independent recorded checks identify line 83 of the same configuration file.
Investigator InterpretationThe configuration error likely caused the service startup failure.
HypothesisThe error may have been introduced during the previous deployment.
SpeculationAn unknown automated process might have modified the file.
Known GapNo evidence currently identifies who or what changed the file.
Good observability does not eliminate interpretation. It gives interpretation something solid to stand on.

Monitoring Can Trigger Action

Monitoring is not always passive.

A monitoring system may detect:

ERROR RATE > THRESHOLD

and trigger:

MONITOR → ALERT / EVENT → WAKE AGENT → INVESTIGATE

This connects directly to our persistent-agent page. The mission can sleep while ordinary monitoring watches the environment.

Monitoring the AI Itself

We can monitor not only the external system but the AI service.

Useful operational measurements may include:

Those signals can reveal performance or control problems without telling us everything about why a particular model output occurred.

Observability Is Not Interpretability

We opened this distinction earlier.

Observability

What internal and external events can we record or measure?

Interpretability

What justified explanation can we give for the model's internal computation or behavior?

Recording an activation tensor gives us an observation. Explaining what causal role that tensor played is an interpretability problem.

Seeing the numbers is not automatically understanding the mechanism.

Self-Report Is Not Instrumentation

We should also preserve another earlier distinction.

If we ask a model:

“Why did you choose that tool?”

the resulting explanation is another generated model output.

It may be useful. It may accurately summarize relevant factors. But it is not equivalent to an independently recorded hidden execution trace.

Generated explanation ≠ direct measurement of hidden model computation.

Instrumentation Can Change the System

Measurement itself has cost.

Heavy instrumentation can:

This is why WITNESS has repeatedly returned to the idea of sterile capture: record what is needed while minimizing disturbance to the system under examination.

You Cannot Record Everything Forever

An AI system can generate an extraordinary amount of telemetry.

Imagine trying to preserve every:

for every inference across a large production system.

The storage and performance cost can become enormous.

Observability design is also a selection problem: what evidence must be preserved to answer the questions we may later need to ask?

Known Gaps Are Part of the Record

If an event was not captured, a careful forensic system should not manufacture certainty afterward.

KNOWN GAP:
No instrumentation recorded the process that modified this file between 11:58 and 12:03.

That statement is useful. It tells future investigators exactly where the evidence stops.

“We do not know” can be a high-quality forensic result.

The WITNESS Connection

This entire page is very close to the reason WITNESS exists.

WITNESS is not merely a bigger application log. Its purpose is to help preserve enough trustworthy, structured evidence to reconstruct an AI mission after the fact.

A useful WITNESS event record might conceptually include:

EVENT ID
MISSION ID
PARENT / DEPENDENCY IDs
EVENT TYPE
AGENT / PROCESS / MODEL ID
MODEL / TOOL / RUNTIME VERSION
START / END TIME
INPUT OR REQUEST REFERENCE
AUTHORITY / APPROVAL STATE
OBSERVED RESULT
ΔSTATE IF ANY
PROVENANCE
INTEGRITY INFORMATION
KNOWN GAPS

WITNESS Records Before It Explains

The discipline can be stated simply:

OBSERVE → RECORD → PRESERVE PROVENANCE → RECONSTRUCT → INTERPRET

Not:

ASSUME WHAT HAPPENED → LOOK FOR RECORDS THAT FIT
Observation before interpretation.
Evidence before narrative.

The Boundary

Monitoring, audit and observability do not guarantee that an AI system will behave correctly.

They provide something different: the ability to detect conditions, preserve evidence, reconstruct events, verify claims and identify where the evidence runs out.

MONITOR — notice
AUDIT — preserve accountable records
OBSERVE — expose useful evidence
VERIFY — compare claims with state
RECONSTRUCT — connect events and dependencies
INTERPRET — explain only as far as the evidence supports
Before we ask why the AI did something, we should be able to establish what it actually did.

HAAW Checkpoint

Monitoring

Watching selected signals to detect current conditions and changes.

Audit

Preserving accountable records of important actions, authority and results.

Observability

Having enough useful evidence to investigate and reconstruct system behavior.

Instrumentation

Mechanisms deliberately added to expose information about a running system.

Provenance

The recorded origin and lineage of information or evidence.

Event Field

The overlapping collection of model, tool, human, network and system events occurring during a mission.

Known Gap

An explicitly identified point where available evidence does not support a stronger conclusion.

Central Lesson

Before asking why the AI did something, establish what it actually did.