Risk Runners Presents · AI

Log4AI: Research Agenda Model

An interactive implementation of the six research steps in The Municipal Information New Deal (MIND), a signal from Paul Richards. Everything runs in your browser. Nothing is uploaded.

The paper behind this model: The Municipal Information New Deal (MIND)The paper behind this modelRead the paper (PDF)HTML

The idea in 30 seconds

AI does something harmful→Was it in a bad state?→What corrected it, if anything?→Who held which duty?

Today those questions usually cannot be answered, because every AI vendor logs differently. Log4AI is a proposed common log format, like Log4j was for Java. With one, a bad outcome can be traced to a model state, a policy and a human decision. It also makes a measurement that no single party controls, which is the condition for trading a responsibility index.

R(t) = ∫ I dτ ÷ ( ∫ N dτ + λ )   ·   I = intention (duties held without damages)  ·  N = negligence (breaches that caused damages)

What this does

Each tab implements one step of the research agenda (§12 of the paper). Each opens with a plain-English line and ends with a "Reading this" note.

StepPaperWhat you can do here
1 · Draft the schema§5Build a Log4AI record, see it validated live, and test whether a proposed schema change is safe for old records.
2 · Map to standards§3, §5See which Log4AI fields OpenTelemetry GenAI and W3C PROV already cover, and which gaps are new work.
3 · Estimate P from logs§2, §6Estimate the S1/S2/S3 transition matrix from logged events, then see how much a correction policy lowers time in the degraded state.
4 · Compute R(t)Eq. 1Simulate deployments and check whether the responsibility index separates well-governed from poorly governed ones.
5 · Test managerial influence§4.5, §7Run the three tests on a proposed index. Then edit a hash-chained log and watch tampering get caught.
6 · Verify vendor practices§3Record what a vendor documents about log storage. An answer counts only with a source.
LimitsStep 3 treats the state labels as given. Defining S1 to S3 for a real system is an open problem. Step 4 targets are placeholders. The step 2 mapping is the author's reading of public specifications, which are still changing. Nothing here is legal, actuarial, insurance or investment advice.

Files: js/core.js holds all of the math and runs in Node (node test.js). js/ui.js draws the charts. There are no external libraries.

1 · Draft the Log4AI schema

Pick values below and a record is built, hashed and validated as you type. The schema may only grow: columns are added, never dropped, retyped or redefined.

In plain EnglishOne record shape for every AI vendor. Rules catch records that would leave an investigator guessing, such as a jump from a bad state back to a healthy one with no explanation of what fixed it.

  

Can the schema change this way?

All fields
Reading thisOld records are never rewritten, so every reader must be able to interpret a record from any past date. Adding an optional column keeps that true. Dropping, retyping or redefining a column makes old records silently wrong. Switch the version to 1.1 to see an added column (region).

2 · Map Log4AI to existing standards

For each Log4AI field group, this lists the nearest OpenTelemetry GenAI convention and W3C PROV term, and marks whether it is covered, partly covered, or a gap.

In plain EnglishWe should reuse what exists. Red rows are the new work: AI states, corrections, harm links and tamper-evidence. Nothing in the existing standards covers them.
Verify before relying on thisThe mapping is the author's reading of public specifications from general knowledge, not a checked citation. OpenTelemetry's GenAI conventions are still evolving, and attribute names have changed between versions.

3 · Estimate the transition matrix P from logs

An AI system moves between S1 (healthy), S2 (untested or drifting) and S3 (degraded). From logged states, count the moves and estimate each row of P. Then ask what a correction policy buys.

In plain EnglishWithout logs you cannot say how often a system goes bad or how quickly it recovers. With logs you can, and you can test whether "correct it when detected" really shortens the time spent bad.
Use your own log instead

One event per line: trace,step,state,corrected where state is S1, S2 or S3 and corrected is 1 or 0 (optional). With at least 30 valid lines, this replaces the simulation.

4 · Compute the responsibility index R(t)

Equation 1 turns logged duty events (I) and damage-linked breaches (N) into an index over time. Simulate deployments and check whether the index separates governance quality.

In plain EnglishA deployment earns a high score by holding many duties without causing damage. A new one with no history scores zero, not infinity. How high is high enough depends on the stakes.

5 · Test for managerial influence

A responsibility index can be traded only if nobody who can steer it also profits from its price. Answer the questions for a proposed index. Any "yes" means managerial influence.

In plain EnglishAn earthquake sensor works because no one can change the earthquake or the reading. An AI index works only if no one can change the AI's behavior, the log, or the payout after the contract starts.

Why logs must be tamper-evident

Test 2 fails if the operator can quietly edit the log. Each entry below carries a SHA-256 hash of itself plus the previous hash. Publish the chain to an independent party, then change any line.

Reading thisThe three tests describe structure, not intent: a well-meaning operator still fails test 2 if it holds the only copy of the log. Whether these three tests are sufficient, and where partial influence falls, is an open question for actuaries and securities lawyers.

6 · Verify vendor storage practices

Section 3 of the paper is general practice, not documented fact. Use this to replace each assumption with an answer and a source for one vendor.

In plain EnglishA blank form. An answer with no source does not count, so a confident guess cannot pass as a fact.