Skip to content

Open-source entity resolution tool

Do these five spellings point to the same company or security?

The same issuer appears as a CUSIP in one file, a legal name in another, and a typo in a third. Canon resolves columns by exact match against a versioned JSON registry with a full audit trail and never guesses at lookup time. Your files stay on your device.

Try the registry lookup ->InstallUse in a Claude Artifact
Step 1 of 4: All rows resolvedcanon.v0
4-step walkthrough (runs offline in your browser)Engine: js-fallback · v0.20.0
RESOLVED · EXIT 0 · sponsors v1.2.0

All 4 rows (4 unique spellings) resolved to canonical IDs in sponsors v1.2.0.

Three vendor spellings of Acme Capital map deterministically to ORG-0001 and Birch Street Partners maps to ORG-0002, each carrying its exact rule_id and registry version.

RowRaw InputCanonical IDRule / Status
#1Acme Capital, LLCORG-0001CIK_0001234567
#2ACME CAPITAL LLCORG-0001CIK_0001234567
#3Acme CapitalORG-0001SESSION_TIER_B_04
#4Birch Street Partners LPORG-0002CIK_0007654321
Next: see why an unseen lowercase spelling stays unresolved instead of being guessed.
Inspect exact CLI command, canon.v0 JSON, --emit csv output, and versioned registry
$ canon tape.csv --registry registries/sponsors/ --column sponsor --explicit
{
  "version": "canon.v0",
  "outcome": "RESOLVED",
  "registry": {
    "id": "sponsors",
    "version": "1.2.0",
    "source": "registries/sponsors/"
  },
  "summary": {
    "total": 4,
    "resolved": 4,
    "unresolved": 0
  },
  "redacted": false,
  "mappings": [
    {
      "input": "Acme Capital, LLC",
      "input_encoding": "utf8",
      "canonical_id": "ORG-0001",
      "canonical_id_encoding": "utf8",
      "canonical_type": "organisation",
      "rule_id": "CIK_0001234567",
      "confidence": "deterministic"
    },
    {
      "input": "ACME CAPITAL LLC",
      "input_encoding": "utf8",
      "canonical_id": "ORG-0001",
      "canonical_id_encoding": "utf8",
      "canonical_type": "organisation",
      "rule_id": "CIK_0001234567",
      "confidence": "deterministic"
    },
    {
      "input": "Acme Capital",
      "input_encoding": "utf8",
      "canonical_id": "ORG-0001",
      "canonical_id_encoding": "utf8",
      "canonical_type": "organisation",
      "rule_id": "SESSION_TIER_B_04",
      "confidence": "deterministic"
    },
    {
      "input": "Birch Street Partners LP",
      "input_encoding": "utf8",
      "canonical_id": "ORG-0002",
      "canonical_id_encoding": "utf8",
      "canonical_type": "organisation",
      "rule_id": "CIK_0007654321",
      "confidence": "deterministic"
    }
  ],
  "unresolved": [],
  "refusal": null
}

Claude Artifacts · @cmdrvl/web

Like this registry resolver? Put it in your own Claude Artifact.

Paste this prompt into Claude.ai to spin up an offline exact-match entity lookup and CSV canonicalizer modeled on canon.v0.

@cmdrvl/web on GitHub ->
Build an interactive React Claude Artifact called "CMD+RVL Versioned Entity Resolution (canon)" that resolves a CSV column against a versioned JSON registry completely in browser memory with zero server uploads.

Follow CMD+RVL's canon.v0 contract (https://github.com/cmdrvl/canon):
1. Include 3 presets (RESOLVED where 4 sponsor spellings resolve cleanly with rule_ids, PARTIAL where an unseen lowercase spelling stays explicitly unresolved because canon trims ASCII whitespace without silent case folding, and REFUSAL E_COLUMN_NOT_FOUND when --column is missing) plus an offline Step 4 custom CSV editor.
2. Support toggling default [REDACTED] JSON output vs --explicit raw values, and display both canon.v0 JSON and --emit csv (<column>__canon) inside a collapsed inspector drawer.
3. Deduplicate unique values in summary counts and lead with a concrete plain-English verdict headline and row-by-row resolution table.
4. Keep the resolver boundary clean for future @cmdrvl/web compiled Rust WASM drop-in.

Works inside Claude.ai Artifacts today with zero uploads (test it with Wi-Fi off). Compiled Rust WASM modules live at github.com/cmdrvl/web.

Run it locally

Resolve CSV, TSV, JSONL, Parquet, or XLSX against a versioned registry.

Lookup is exact and byte-deterministic. When matching requires judgment across messy sightings, run a canon session so fixed rules decide what evidence proves before anything commits to the registry.

Recommended entry pointView cmdrvl/canon on GitHub ->

canon CLI (v0.20.0)

Performs exact deduplicated lookups against versioned registries, emits canon.v0 JSON (redacted by default) or canonicalized CSV, and runs auditable multi-source evidence sessions.

1. Install via Homebrew

brew install cmdrvl/tap/canon

2. Run locally

canon tape.csv --registry registries/cusip-isin/ --column cusip --emit csv
Zero guesswork
Exact match after ASCII whitespace trim only; no silent case folding
Versioned registries
Plain JSON files reviewed in Git with registry id, version, and rule_id
Runs locally
On your device · Works offline with zero uploads
Evidence sessions
Multi-agent ingest, typed evidence, rules-based solve, and auditable commit
For scripts and CI: standalone canon binary, exit codes, and refusal codes

Build registries from auditable evidence sessions

View cmdrvl/cmdrvl on GitHub ->

Ingest observations from multiple files or agents, attach typed evidence (authoritative keys, name equivalence, same slot, vetoes), solve with versioned YAML rules, and commit proved clusters to the registry.

Install standalone binary

cargo install --git https://github.com/cmdrvl/canon --all-features

Invoke directly

canon session solve work/sponsors --rules rules.yaml && canon session commit work/sponsors --bump patch

Exit codes & verdicts

RESOLVED

Exit 0

Every unique value in the target column matched an exact entry in the declared registry version.

PARTIAL / UNRESOLVED

Exit 1

Some (PARTIAL) or no (UNRESOLVED) unique values matched. Unresolved values stay explicitly blank in --emit csv and are listed in unresolved[] so zero matches is a finding, not a silent bug.

REFUSAL

Exit 2

Lookup could not run safely (for example E_COLUMN_NOT_FOUND, E_BAD_REGISTRY, E_SCOPE_REQUIRED, E_EMPTY_INPUT, or E_COLUMN_EXISTS).

Common refusal & finding codes

CodeWhen it firesRemediation
E_COLUMN_NOT_FOUNDThe requested --column does not exist in the input headerInspect headers with profile and pass an existing column name
E_BAD_REGISTRYRegistry directory or mapping JSON failed validationRun canon registry lint to inspect malformed entries
E_SCOPE_REQUIREDRegistry contains scoped entries and lookup omitted --scopePass --scope DIMENSION=VALUE or configure scope-policy
E_COLUMN_EXISTSOutput column <column>__canon already exists in CSVChoose a distinct name with --canon-column
E_EMPTY_INPUTInput file has no processable rowsVerify the upstream extract before running canon

Learning progression

Identifiers canonicalized? Check comparability and diff next.

In a pipeline, canon runs right before shape and rvl so two vendor exports share one deterministic key column (<column>__canon) before you compare numbers.

  1. 01rvlSee what moved
  2. 02shapeCheck compatibility
  3. 03profileScope columns
  4. 04verifyEnforce rules
  5. 05packSeal proof
  6. 06veilGuard privacy

Upstream · profile

Inspect messy spreadsheets before picking a join key.

Use profile to verify candidate key columns and coverage before mapping vendor names through a canon registry.

Back to profile & key finder ->

Next step · 02 shape

Confirm your canonicalized files actually line up.

Pass the <column>__canon output directly to shape --key and rvl --key so cross-vendor diffs align on one deterministic ID.

Continue to shape & comparability ->

What canon handles

  • Resolves CSV, TSV, JSONL, Parquet, and XLSX columns by exact match against versioned JSON registries
  • Deduplicates unique inputs before lookup so 500,000 rows with 500 distinct entities produce 500 deterministic mapping entries
  • Masks input values and canonical IDs as [REDACTED] in default JSON output unless --explicit is passed
  • Supports scoped lookups, per-grain registries, registry diff/lint/audit, and exports (dbt-seed, search-index, key-crosswalk)
  • Runs concurrent multi-agent evidence sessions (ingest, derive, assert, frontier claim, solve, commit) with tier A/B rules and veto memory
  • Builds a local SQLite index beside plain Git-reviewable JSON registry files for fast repeated lookups

Explicit boundaries & limits

  • Resolution is strictly bounded by the configured registry; canon does not perform universal fuzzy entity matching at lookup time.
  • --emit csv requires CSV input; JSONL, Parquet, and XLSX emit canonical JSON mapping artifacts.
  • Matching judgment belongs in an auditable canon session before committing to the registry, never as hidden lookup heuristics.
Cairn roles
Software factory
Evidence roles
Source, Checks and support
Semantic context
Entity identity, Relationships
Contribution
Resolve identifiers through versioned registries with a reviewable source trail.
Limit
Resolution is bounded by the configured registry; it is not universal entity matching.
Questions this tool can support
  • Do we own any bonds backed by those loans?

    Resolve identifiers against an agreed registry before joining holdings to deals. The required security-to-deal mapping is not demonstrated here and cannot be assumed from generic identifier resolution.

    Potential use, not demonstrated here

Open-source starter -> Paid lineage stack

Start free on local files. License the paid stack for warehouse-wide lineage.

Open-source Rust CLIs and @cmdrvl/web browser engines cut document token spend 10x to 100x locally and work alongside any AI assistant or hosted workspace (Rogo, Hebbia, Harvey, Claude, ChatGPT, or Codex). When your firm needs end-to-end lineage across Snowflake or your cloud warehouse (Reveal catalog, paid MCP servers, Evidence MCP receipts, x402 APIs, and offline twinning and evals), license the paid stack or start with a $500 half-day founder workshop.

Complete open-source CLI suite (17 interactive offline demos)

Explore every deterministic tool in the spine.

Full /tools/ directory ->github.com/cmdrvl ->

Intake & identity

  • vacuumInventory folders
  • hashSHA-256 / BLAKE3
  • fingerprintClassify files
  • lockPin snapshots
  • canoncurrent

Common questions

Why does canon refuse to case-fold or fuzzy-match at lookup time?
Silent heuristics hide identity drift and break reproducibility. Lookup checks exact bytes after trimming ASCII whitespace; if a new variant should map to an entity, it is proved in an evidence session and committed as an explicit alias in a new registry version.
Why is exit 1 returned for PARTIAL or UNRESOLVED?
Zero or partial matches are an explicit finding, not a crash. Pipelines can distinguish complete resolution (exit 0) from unresolved sightings that need review (exit 1) and invalid invocations (exit 2).
Why does canon JSON print [REDACTED] by default?
So logs and CI outputs do not leak sensitive entity names or identifiers by accident. Pass --explicit when a trusted operator wants raw input strings and canonical IDs in JSON.
Does the browser demo upload my CSV?
No. Exact registry lookup and CSV emission run locally in browser memory. Turn off your Wi-Fi before Step 4 and it still works.

Related tools & reading

profile: Find candidate key columns in messy CSVsshape: Check key alignment before comparing filesrvl: Explain material numeric changes by keydecoding: Reconcile conflicting multi-source claimsAll open-source CLIs & paid stack