cd /news/ai-policy/how-to-compare-two-ai-system-invento… · home › topics › ai-policy › article
[ARTICLE · art-180008] src=dev.to ↗ pub= topic=ai-policy verified=true sentiment=· neutral

How to compare two AI system inventory exports

A developer building Northstar, an AI system inventory tool, published a Python script that diffs two CSV exports of an AI register by system ID, flagging added, removed and changed records across fields such as owner, purpose, assessment basis and sign-off. The walkthrough uses a free sample inventory with three fictional systems and demonstrates detecting an owner change on a 'Recruiter Screener' entry, citing NIST's AI Risk Management Framework playbook on keeping inventories tied to risk records.

recommendation

Keep dated exports of your AI system inventory and diff them on a stable system ID to catch renamed or changed tools, then have owners confirm the change.

more in playbook: Running AI in production
by read2 min views1 publishedDec 2, 2026

An AI register can look complete while the tools in it have already changed. A vendor can turn on CV ranking by default, or a team can start using an assistant for a different decision. When you review the register again, you need to see which records changed and which evidence to revisit.

Keep two exports from the same workspace. Match on the system ID so you can still find a record after someone renames it. Compare the owner, intended use, assessment basis and sign-off, then ask the owner to confirm what changed in the actual tool.

I’m building Northstar. Its free sample AI system inventory uses the same columns as its workspace export and includes three fictional systems. Download it twice, save the files as before.csv and after.csv, and change a field in the second file.

This example reads both files without changing either of them. Save it as compare_inventory.py and run it with python3 compare_inventory.py.

import csv

FIELDS = (
    "name", "owner", "purpose", "status", "tier", "role",
    "basis", "last_assessed_as_of", "ruleset", "signed_by",
)

def load_inventory(path):
    inventory = {}
    with open(path, encoding="utf-8-sig", newline="") as file:
        for row in csv.DictReader(file):
            system_id = row["system_id"].strip()
            if not system_id or system_id in inventory:
                raise ValueError(f"Missing or repeated system ID in {path}")
            inventory[system_id] = row
    return inventory

before = load_inventory("before.csv")
after = load_inventory("after.csv")
for system_id in sorted(before.keys() | after.keys()):
    previous = before.get(system_id)
    current = after.get(system_id)
    if previous is None:
        print(f"{system_id}  added  {current['name']}")
    elif current is None:
        print(f"{system_id}  missing from new export  {previous['name']}")
    else:
        for field in FIELDS:
            if previous[field] != current[field]:
                print(f"{system_id}  {field}  {previous[field]} → {current[field]}")

If you change Recruiter Screener’s owner from Head of People to Recruitment Operations Lead in after.csv, you’ll get this result.

1  owner  Head of People → Recruitment Operations Lead

NIST’s AI Risk Management Framework playbook describes keeping an inventory that connects AI systems to the records needed to manage their risks. If you already have a register, try this on one workflow before comparing everything.

This walkthrough was drafted with Codex. The comparison was run locally on the fictional sample and does not use applicant or customer data.

── more in #ai-policy 4 stories · sorted by recency
── more on @northstar 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-compare-two-a…] indexed:0 read:2min 2026-12-02 · —