Build notes · Seed kits

Our first seed kit: a linter for the metrics AI audits shouldn't lean on

Our first seed kit: an MIT linter that flags the four-fifths rule, SHAP and LIME in AI audit text, with cited reasons each can mislead.

The UK's roadmap for third-party AI assurance contains a line that stopped me: "as much as 38% of AI governance tools may utilise metrics that could result in harm".

That figure traces back to a 2023 World Privacy Forum review of AI governance tools. It names three measures the research literature criticises: the US four-fifths (80%) rule, borrowed from employment law and used as a fairness score, and two popular explainability methods, SHAP and LIME.

The tools that compute these measures are good at computing them. What I couldn't find, in a light search, was anything that checks whether an audit is leaning on one of them at all.

So that's our first seed kit, released today under MIT:

https://github.com/stephen487/governance-metric-linter

What it does today. Point it at an audit report, a model card or Python code. It finds every mention of the three measures, under their many names: "80% rule", "4/5ths rule", "disparate impact ratio", "Shapley values", "TreeSHAP", import lime, and phrases split across a line break. Each finding comes with its line number and the reasons the research gives for caution, each cited to a paper with a link. The core is plain Python (standard library only, no AI model calls; the tests need pytest), and it ignores look-alikes like "lime juice", "shapely" and "Shap Street".

What a seed kit is. It isn't a finished product, and we won't build one. It's a working core, a brief explaining the problem and the sources, and a test suite that defines "done". Right now 107 tests pass and 5 fail on purpose. Those 5 are the spec for what's left:

Its limits, stated plainly. Detection is by name, so "80% rule" fires even when someone means test coverage. The cited reasons are short excerpts from each paper's abstract: read the papers before relying on them.

What we'd love from you. If you build something from it, tell us. Open an issue, or email [email protected]. If it ends up in your product, a line saying it started from an Enki Labs seed kit means a lot to a small company. And if you'd like the next kits before anyone else, email the same address and we'll put you on the early-access list.

More seeds are coming.

← Previous
Back to the diary