Log/Compliance/

Scoring an AI backend across 10 compliance pillars

I audited a financial-education AI assistant against 10 governance pillars. The strongest scored 95 out of 100, the weakest 20. Here is what each number cost or saved.

The backend behind a financial-education AI assistant handles PII and sits next to regulated advice boundaries, so the usual “we tested it, it works” is not enough. A real auditor can walk in, ask for the governance posture, and expect a sheet. I built that sheet.

I ran the backend against 10 IBM watsonx.governance-style pillars, scored each one out of 100, and wrote the finding behind every number. Every pillar is a different kind of question. Can you prove which model generated this response. Can you reproduce the same response tomorrow. Who is allowed to see which prompt. What happens when the model’s behavior quietly drifts next week. The scores force me to answer each one with evidence, not a feeling.

The 10 pillars and what they measured

  • Model Identity and Lineage: can you name the model, version and system prompt behind any logged response.
  • Inference Reproducibility: do the same inputs produce the same output, or close enough that drift is detectable.
  • Prompt Governance: who can edit the system prompt, and is every edit logged.
  • Input Safety: is user input filtered for prompt injection, HAP and policy violations before it reaches the model.
  • Output Safety: is the model’s output filtered for the same categories plus regulatory hallucinations.
  • Audit Trail Integrity: can an auditor replay what the system did, in order, without a gap, without a forged entry.
  • Explainability and Observability: can you see why a specific response was blocked or allowed.
  • Fairness and Bias: is there a mechanism for noticing when outputs skew.
  • Drift Detection: do you notice when the model’s behavior changes over time, before a user does.
  • Incident Response and Alerting: does the right person get paged when something crosses a line.

The scores

Audit Trail Integrity came out strongest at 95. The backend writes AES-256-GCM encrypted logs, SHA-256 hash-chained so a single edit breaks the chain, with fail-open graceful degradation if the audit store is slow. That is as close to tamper-evident as a startup backend usually gets.

Prompt Governance scored 90, Model Identity and Lineage 85, Input Safety 80, Output Safety 78, Inference Reproducibility 75, Explainability and Observability 70, Incident Response 60.

Fairness and Bias scored 45. There is no automated mechanism to notice when outputs skew by cohort. Flagged as the second biggest gap.

Drift Detection scored 20. The weakest pillar by far. On day one of the audit there was no behavioral drift monitoring at all. If the underlying model got quietly updated by the provider, or if a prompt change nudged behavior sideways, nobody would know until a user complained.

What the lowest score bought

The 20 on drift detection is the number I actually care about, because it drove the next build. Two days after the audit I added a weekly job that replays 20 golden probes against the live model and alerts on classification flips through Sentry. That one job moves the pillar from 20 toward passing, and more importantly it means a silent model swap by the provider now has a chance of being caught before a customer hits it.

Scoring a system this way is uncomfortable in a useful way. A 70 looks fine until you read the pillar beside it and realize the 70 means “I can see some of what the system did, not all of it”. The pillar is the whole point. Without the pillars, “we have logging” is a vibe. With them, logging either carries lineage and integrity or it does not.

What I would do differently

Score before you build the hardening, not after. I ran this audit on a backend that was already late in development, and the 20 on drift detection told me there was a shape of work I had not planned for. If I had scored the empty repo on day one, the drift monitor would have been in the first sprint instead of a retroactive patch. The pillars are useful as a backlog, not just a report card.

The second thing worth stealing is the mapping file. Alongside the scores I keep a document that walks the compliance framework against the codebase concept by concept, so every one of them has a named file behind it. When an auditor asks where a control lives, the answer is a path, not a story.

All entries · Book a call · Discuss on X