Skip to content

Open-source file classifier

What kind of spreadsheet or filing is inside this folder?

Filenames lie. model_v3_FINAL.xlsx could be a rent roll, a servicer watchlist, or a blank template. Fingerprint runs versioned structural assertions against spreadsheets, HTML, PDFs, Markdown, Parquet, XML, and JSON and returns match or no match with exact failure context. Your files stay on your device.

Try the classifier check ->InstallUse in a Claude Artifact
Step 1 of 4: Matched watchlistfingerprint.v0
4-step walkthrough (runs offline in your browser)Engine: js-fallback · v0.13.0
ALL_MATCHED · EXIT 0 · cmbs-watl.v1file: CMBS_2026_10_WATL.csv

Matched cmbs-watl.v1: all 3 structural assertions passed on header row 4.

Even with three preamble banner rows above the table, header_row_match located loan_id, current_upb, and watch_code on row 4 and emitted a deterministic content_hash.

Check / RouteResultObserved Evidence
watchlist_bannerPASSPattern /watch\s?list|servicer/i matched document text
has_header_rowPASSMatched 3/3 required columns on row 4
min_data_rowsPASSFound 4 data rows after row 4 (minimum 3)
peek delimiter: ","suggested header row: 4 (skip 3)raw cell values exposed: false
Next: see what --diagnose prints when a servicer drops the watch_code column.
Inspect exact CLI command, YAML definition, fingerprint.v0 JSON, and peek output
$ vacuum /data | hashbytes | fingerprint --fp cmbs-watl.v1 --diagnose
{
  "version": "fingerprint.v0",
  "outcome": "ALL_MATCHED",
  "exit_code": 0,
  "path": "CMBS_2026_10_WATL.csv",
  "bytes_hash": "sha256:f5efd1296ae1ba3cedbe43f9042d9f8b7c4dccbd79f0204c4fc53ae7810630b9",
  "fingerprint": {
    "fingerprint_id": "cmbs-watl.v1",
    "fingerprint_source": "dsl",
    "matched": true,
    "header_row": 4,
    "reason": null,
    "assertions": [
      {
        "name": "watchlist_banner",
        "passed": true,
        "detail": "Pattern /watch\\s?list|servicer/i matched document text",
        "context": {
          "pattern": "watch\\s?list|servicer"
        }
      },
      {
        "name": "has_header_row",
        "passed": true,
        "detail": "Matched 3/3 required columns on row 4",
        "context": {
          "best_row": 4,
          "headers_found": [
            "loan_id",
            "property_name",
            "current_upb",
            "watch_code",
            "dscr"
          ],
          "missing_patterns": []
        }
      },
      {
        "name": "min_data_rows",
        "passed": true,
        "detail": "Found 4 data rows after row 4 (minimum 3)",
        "context": {
          "data_rows": 4,
          "min_rows": 3
        }
      }
    ],
    "content_hash": "sha256:2569c389a3efd6f119854ffbe7fc02397c028599d442613ebbdadc30ea2efdf0"
  },
  "peek": {
    "version": "fingerprint.peek.v0",
    "path": "CMBS_2026_10_WATL.csv",
    "bytes_hash": "sha256:f5efd1296ae1ba3cedbe43f9042d9f8b7c4dccbd79f0204c4fc53ae7810630b9",
    "delimiter": ",",
    "row_count": 8,
    "dominant_column_count": 5,
    "suggested_header_row": 4,
    "suggested_skip_rows": 3,
    "exposes_raw_cell_values": false,
    "rows": [
      {
        "row_index": 1,
        "column_count": 1,
        "type_counts": {
          "string": 1,
          "numeric": 0,
          "date": 0,
          "empty": 0
        }
      },
      {
        "row_index": 2,
        "column_count": 1,
        "type_counts": {
          "string": 1,
          "numeric": 0,
          "date": 0,
          "empty": 0
        }
      },
      {
        "row_index": 3,
        "column_count": 1,
        "type_counts": {
          "string": 1,
          "numeric": 0,
          "date": 0,
          "empty": 0
        }
      },
      {
        "row_index": 4,
        "column_count": 5,
        "type_counts": {
          "string": 5,
          "numeric": 0,
          "date": 0,
          "empty": 0
        }
      },
      {
        "row_index": 5,
        "column_count": 5,
        "type_counts": {
          "string": 3,
          "numeric": 2,
          "date": 0,
          "empty": 0
        }
      },
      {
        "row_index": 6,
        "column_count": 5,
        "type_counts": {
          "string": 3,
          "numeric": 2,
          "date": 0,
          "empty": 0
        }
      },
      {
        "row_index": 7,
        "column_count": 5,
        "type_counts": {
          "string": 3,
          "numeric": 2,
          "date": 0,
          "empty": 0
        }
      },
      {
        "row_index": 8,
        "column_count": 5,
        "type_counts": {
          "string": 3,
          "numeric": 2,
          "date": 0,
          "empty": 0
        }
      }
    ]
  },
  "tool_versions": {
    "vacuum": "0.6.1",
    "hash": "0.6.0",
    "fingerprint": "0.13.0"
  }
}

Claude Artifacts · @cmdrvl/web

Like this file classifier? Put it in your own Claude Artifact.

Paste this prompt into Claude.ai to spin up a zero-upload structural file classifier and privacy-safe CSV row-shape peeker modeled on fingerprint.v0.

@cmdrvl/web on GitHub ->
Build an interactive React Claude Artifact called "CMD+RVL Structural File Classifier (fingerprint)" that classifies local spreadsheets and documents with binary assertions and privacy-safe row-shape peek summaries completely in browser memory with zero server uploads.

Follow CMD+RVL's fingerprint.v0 and fingerprint.peek.v0 contracts (https://github.com/cmdrvl/fingerprint):
1. Include 3 presets (Matched CMBS watchlist with 3 preamble banner lines above row 4 headers, Missing column --diagnose failure showing exact headers found vs missing patterns, and Ambiguous chained child route where two children match and the tool exits 1 without breaking ties by order) plus an offline Step 4 CSV upload/editor.
2. Run deterministic header_row_match, min_data_rows, and text_regex checks locally, plus a fingerprint peek view that reports delimiter, row counts, and type counts without exposing raw cell values.
3. Lead with a concrete plain-English verdict headline and assertion table; put the exact CLI command, .fp.yaml definition, and fingerprint.v0 JSON inside a collapsed inspector drawer.
4. Keep the engine interface ready to swap onto @cmdrvl/web compiled Rust WASM.

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

Run it locally

Classify data rooms from YAML definitions or compile to Rust.

Drop a .fp.yaml definition into ~/.cmdrvl/config/fingerprint/definitions/ to run immediately with no compile step, or compile stable definitions into native Rust binaries.

Recommended entry pointView cmdrvl/fingerprint on GitHub ->

fingerprint CLI (v0.13.0)

Runs deterministic structural assertions over hashed manifests, supports chained parent/child family routing, infers draft YAML from example folders, and peeks messy CSVs without leaking cell content.

1. Install via Homebrew

brew install cmdrvl/tap/fingerprint

2. Run locally

vacuum /data/models | hashbytes | fingerprint --fp cmbs-watl.v1 --diagnose
Binary verdicts
Match or no match, never probabilistic confidence guesses
Formats supported
XLSX/XLS, CSV, HTML, PDF, Markdown, Parquet, XML, JSON/JSONL
Runs locally
On your device · Works offline with zero uploads
Privacy-safe peek
fingerprint peek --suggest inspects row shapes without exposing cell values
For scripts and CI: standalone fingerprint binary, exit codes, and refusal codes

Peek CSV layout or verify required delivery files

View cmdrvl/cmdrvl on GitHub ->

Use fingerprint peek --json --suggest before profiling spreadsheets with preamble lines, or run fingerprint struct-check --rules to verify every delivery folder contains its required files.

Install standalone binary

cargo install --git https://github.com/cmdrvl/fingerprint

Invoke directly

fingerprint peek vendor-export.csv --json --suggest

Exit codes & verdicts

ALL_MATCHED

Exit 0

Every input record matched a declared fingerprint definition (and resolved cleanly to one child route when chained definitions were supplied).

PARTIAL

Exit 1

One or more records failed assertions, were skipped, or triggered an ambiguous child route where multiple child definitions matched the same document.

REFUSAL

Exit 2

Input or definition could not be evaluated (for example E_BAD_INPUT when bytes_hash is missing, E_UNKNOWN_FP, E_INVALID_YAML, or E_UNKNOWN_ASSERTION).

Common refusal & finding codes

CodeWhen it firesRemediation
E_BAD_INPUTInput JSONL is malformed or missing bytes_hashRun hashbytes upstream: vacuum <DIR> | hashbytes | fingerprint
E_UNKNOWN_FPRequested fingerprint ID was not found in definitionsCheck available definitions with fingerprint --list
E_INVALID_YAMLDSL definition file has malformed YAML or unsupported formatFix the .fp.yaml syntax and re-validate
E_UNKNOWN_ASSERTIONDefinition uses an unrecognized assertion keyInspect supported assertions with fingerprint --describe
E_INVALID_SELECTORHTML fingerprint contains a malformed CSS selectorFix the selector expression in the .fp.yaml definition

Learning progression

Know what every file is? Profile its layout or pin it into a lockfile.

fingerprint sits right after vacuum and hashbytes in the intake pipeline. Once files match versioned definitions, profile inspects column shapes or lock pins the delivery before shape and rvl run.

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

Upstream · hashbytes

Hash every file's raw bytes before classifying it.

fingerprint reads hash.v0 JSONL from stdin so every classification record stays bound to an exact bytes_hash.

Back to hash & live hasher ->

Next step · lock

Pin classified files into one tamper-evident lockfile.

Pipe fingerprint output straight into lock to freeze bytes_hash, content_hash, and tool versions before downstream runs.

Continue to lock & drift check ->

What fingerprint handles

  • Evaluates versioned structural assertions over XLSX/XLS, CSV, HTML, PDF, Markdown, Parquet footer metadata, XML, and JSON/JSONL
  • Emits exact --diagnose failure context (headers found, nearest matching heading, first failed assertion, and short-circuited IDs)
  • Supports parent/child routed document families and flags ambiguous multi-child matches with exit 1 instead of silently picking by order
  • Provides fingerprint peek --json --suggest to inspect messy CSV row shapes and preamble offsets without exposing raw cell values
  • Checks directory delivery completeness with fingerprint struct-check --rules without opening every file
  • Infers draft .fp.yaml definitions locally from example corpora (fingerprint infer / infer-schema) and compiles definitions to Rust

Explicit boundaries & limits

  • A recognized template proves structural match against declared assertions; it does not validate every business value inside the file (use verify for value rules).
  • Classification depends on the supplied versioned definitions, not universal format recognition.
  • fingerprint doctor --fix is intentionally absent; doctor mode is strictly read-only.
Cairn roles
Software factory
Evidence roles
Checks and support
Semantic context
Source meaning
Contribution
Recognize artifact templates using versioned definitions and declared assertions.
Limit
A recognized template does not validate every value in the artifact.
Questions this tool can support
  • Can we use this loan tape for the analysis?

    Classify incoming files under declared definitions before routing them for processing. Classification needs definitions appropriate to those files.

    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
  • fingerprintcurrent
  • lockPin snapshots
  • canonResolve entities

Common questions

Why does fingerprint refuse to output confidence percentages?
Probabilistic scores hide silent drift in pipelines. Fingerprint evaluates explicit structural assertions so every file either satisfies the versioned definition or fails with exact diagnostic context showing what changed.
What does fingerprint peek expose?
fingerprint peek emits only structural metadata: row indices, column counts, inferred type counts, delimiter confidence, and suggested header row offsets. It never emits raw cell values.
What happens if two child definitions match the same filing?
Child order never breaks ties. Fingerprint records every evaluated child, marks child_routing.status as ambiguous, and returns exit 1 so template overlap is fixed deliberately.
Does the browser demo upload my spreadsheets?
No. Every assertion check and peek summary runs in local browser memory. Turn off your Wi-Fi before Step 4 and it still works.

Related tools & reading

vacuum: Inventory files read-onlyhash: Streaming SHA-256 & BLAKE3 hashingprofile: Inspect messy CSV layout & column typeslock: Pin datasets into tamper-evident lockfilesAll open-source CLIs & paid stack