# How to compare two AI system inventory exports

> Source: <https://dev.to/angeloforz/how-to-compare-two-ai-system-inventory-exports-215e>
> Published: 2026-12-02 07:11:49+00:00

**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 the playbook "Running AI in production": <https://wpnews.pro/playbooks/production-ops>

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](https://northstar.builtbyangelo.co/ai-system-inventory-template.html?utm_source=devto&utm_medium=article&utm_campaign=inventory_changes) 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`.

``` python
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](https://airc.nist.gov/airmf-resources/playbook/govern/) 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.
