Open-source spreadsheet rule checker
Do these numbers obey your rules?
Did a loan breach its DSCR floor? Is an LTV over 75%? Verify checks every row against your rules, names the exact rows that failed, and stops if a required column disappears. Your files stay on your device.
Two loans broke your rules: LN-2208 failed DSCR (1.08) and LN-3091 failed LTV (82%).
Synthetic 6-loan tape checked against four credit rules (non-blank ID, unique ID, DSCR >= 1.20, LTV <= 75%). Four loans pass cleanly; LN-2208 breaches the DSCR floor and LN-3091 breaches the LTV cap.
| Rule | Status | Violations |
|---|---|---|
| loan_id is not blank | PASS | 0 rows |
| loan_id is unique | PASS | 0 rows |
| DSCR >= 1.20 | FAIL | 1 row |
| LTV <= 75% | FAIL | 1 row |
Rows that broke a rule
| Loan / Row | Rule | Detail |
|---|---|---|
| LN-2208 | DSCR >= 1.20 | 1.08 is below floor 1.20 |
| LN-3091 | LTV <= 75% | 82.0% exceeds cap 75% |
Runs on your device · Zero uploads (works with Wi-Fi off)
Adjust rules, redaction & inspect CLI / JSON output
VERIFY FAIL
constraint_set: cmbs.loan_covenants.v1
binding: cmbs_tape_oct.csv (6 rows)
rules: 2 passed, 2 failed
PASS LOAN_ID_PRESENT (loan_id is not blank) violations=0
PASS LOAN_ID_UNIQUE (loan_id is unique) violations=0
FAIL DSCR_COVENANT_MIN (DSCR >= 1.20) violations=1
-> key=LN-2208 field=dscr value=1.08 (1.08 is below floor 1.20)
FAIL LTV_COVENANT_MAX (LTV <= 75%) violations=1
-> key=LN-3091 field=ltv value=0.82 (82.0% exceeds cap 75%)Run locally with cmdrvl
cmdrvl check cmbs_tape_oct.csv --rules rules.yaml --explicit --view full --jsonDirect verify binary (for scripts & CI)
verify cmbs_tape_oct.csv --rules rules.yaml --key loan_id --explicitClient-side verify.report.v1 engine (loading @cmdrvl/web WASM): Runs locally in browser memory with zero uploads (try it with Wi-Fi off). Quote grounding upgrades automatically onto compiled @cmdrvl/web Rust WASM.
Live quote & lock.v0 grounding (`verify ground`) · Loading Rust WASM
PASSChecks two claims (`$41.2 million` numeric scale + verbatim default quote) and the pinned `lock.v0` SHA-256 hash directly inside compiled `@cmdrvl/web` Rust WebAssembly.
3/3 grounding rules passed · lock.v0 status: VERIFIED · engine: js-reference
Claude Artifacts · @cmdrvl/web
Like this rule check? Build it in a Claude Artifact.
Paste this prompt into Claude.ai to create a custom, zero-upload covenant and data-quality verifier Artifact for your team's spreadsheets, or check quoted filing claims using @cmdrvl/web's live Rust WASM engine.
Build an interactive React Claude Artifact called "CMD+RVL Rule & Covenant Verifier (verify)" that validates CSV or Excel loan tapes and datasets locally in the browser with zero server uploads.
Follow CMD+RVL's verify.report.v1 contract (https://github.com/cmdrvl/web):
1. Drop zone for a CSV/Excel file plus 3 built-in presets: covenant breaches (FAIL), a missing required column (REFUSAL / E_FIELD_NOT_FOUND), and a clean file (PASS).
2. Evaluate explicit rules: required non-null key, unique key, and configurable numeric bounds (e.g., DSCR >= 1.20, LTV <= 75%).
3. Never skip a rule if a referenced column is missing or contains non-numeric text: halt and return REFUSAL with E_FIELD_NOT_FOUND or E_UNRELIABLE_COLUMN.
4. Lead with the plain-English summary, PASS/FAIL rule table, and exact violating rows; tuck rule thresholds, Redacted vs. --explicit toggle, and verify.report.v1 JSON inside an expandable "Adjust rules" drawer.
5. Keep the verifier behind a clean engine interface ready to pair with @cmdrvl/web (whose compiled Rust WASM already ships verify_ground_json, redline_compare, sha256_hex, and blake3_hex).Works inside Claude.ai Artifacts today. Quote and numeric grounding (verify_ground_json) already ships in compiled Rust WASM in github.com/cmdrvl/web.
Run it locally
Install once, then run cmdrvl check.
For daily workflows and AI coding agents, install the unified cmdrvl CLI. Run cmdrvl check to evaluate dataset rules (and optional coverage rules) or cmdrvl ground to check quoted claims against bound filings in redacted control.v0 JSON.
cmdrvl CLI (v0.2.0)
Delegates dataset constraint checks to verify (and optional coverage checks) under one consistent command, keeps raw values redacted by default, and supports local checkpoints.
1. Install via Homebrew
brew install cmdrvl/tap/cmdrvl2. Run locally
cmdrvl check loans.csv --rules rules.yaml --json- Supported files
- CSV, Parquet, Excel (XLSX#Sheet), plus quote grounding (verify ground)
- Runs locally
- On your device · Works offline with zero uploads
- Output contract
- Deterministic verify.report.v1 JSON · Exit 0 / 1 / 2
- License & access
- MIT open source · No account or API key
For scripts and CI: standalone verify binary, exit codes, and refusal codes
Standalone verify binary (v0.9.2)
View cmdrvl/verify on GitHub ->Single Rust binary for batch constraint evaluation (verify run), one-step YAML rule checks (verify loans.csv --rules rules.yaml), cross-table foreign keys, lockfile verification (--lock), and quote grounding (verify ground).
Install standalone binary
brew install cmdrvl/tap/verifyInvoke directly
verify loans.csv --rules rules.yaml --sample-affected 5 --jsonExit codes & verdicts
PASS
Exit 0
Every declared rule evaluated cleanly with failed_rules = 0 across all bound inputs.
FAIL
Exit 1
One or more declared rules failed. Reports each failing rule with localized row keys, fields, and offending values (or redacted markers).
REFUSAL
Exit 2
The tool could not evaluate safely (missing column, unreliable text column, ambiguous Excel sheet, or lockfile drift). No partial report masquerades as a pass.
Common refusal & finding codes
| Code | When it fires | Remediation |
|---|---|---|
| E_FIELD_NOT_FOUND | A rule references a key or operand column missing from the input | Add the missing column or update the rule set |
| E_UNRELIABLE_COLUMN | A numeric or date column fell back to text because of malformed values | Clean non-numeric values before re-running numeric rules |
| E_KEY_AMBIGUOUS | Duplicate participant keys on a multi-input or binding-qualified rule | Deduplicate key rows before binding |
| E_KEY_INVALID | Null, non-scalar, or type-incompatible key value | Populate and normalize key values |
| E_INPUT_DRIFT | Bound file bytes do not match pinned --lock hash | Verify lockfile integrity before trusting results |
| E_FORMAT_DETECT | Multi-sheet Excel workbook bound without #Sheet selector | Bind worksheet explicitly (e.g. --bind tape=report.xlsx#loans) |
Learning progression
Checked your rules? Move forward to seal or back to gate structure.
If rules keep refusing because upstream exports changed shape, step back to shape and profile. Once rules pass, seal the inputs and report with pack, or add veil to protect private files.
- 01rvlSee what moved
- 02shapeCheck compatibility
- 03profileScope columns
- 04 · HEREverifyEnforce rules
- 05packSeal proof
- 06veilGuard privacy
Previous · 03 profile
Scope columns and strip banner rows before rules run.
Freeze which columns and keys matter with profile, then run profile emit-verify-starter to bootstrap unique and not-null rules without duplicating YAML.
Next step · 05 pack
Seal inputs and reports into a tamper-evident pack.
Freeze your source lockfile, diff, and verify.report.v1 into one content-addressed SHA-256 bundle anyone can verify offline.
What verify handles
- Evaluates single-table and cross-table rules (not_null, unique, in_range, foreign_key, SQL query rules, and exact decimal aggregates) from YAML, JSON, or SQL
- Pinpoints every failing row by binding, key, and field in deterministic verify.report.v1 JSON
- Refuses honestly instead of silently skipping rules when a column is missing or degraded to text
- Checks quoted claims against pinned SEC filings and documents via verify ground (also live in compiled Rust WASM via @cmdrvl/web)
- Supports lock.v0 input hash pins (--lock), local witness ledgers, --describe, --schema, and doctor triage --json
Explicit boundaries & limits
- Passing declared rules proves only the rules you wrote; it does not certify unstated business or legal properties.
- verify checks constraints and reports failures; it does not make proceed/escalate/block policy decisions (use assess downstream).
- Multi-sheet Excel workbooks require an explicit #Sheet selector via --bind.
- Values already rounded before export remain rounded; exact decimal arithmetic applies to the loaded numbers.
- Cairn roles
- Software factory
- Evidence roles
- Citation, Checks and support, What is missing
- Semantic context
- Source meaning
- Contribution
- Apply declared dataset constraints and report supporting rows, failures and refusals.
- Limit
- Passing the declared constraints does not prove properties that were not tested.
Questions this tool can support
- Which other loans in this deal are behind?
Apply declared checks to an exported screen, including key uniqueness and required fields. Checks need to be written for the screen; no official delinquency classification follows from passing them.
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.
Intake & identity
Compare & validate
Reconcile, decide & seal
Workstation guardrails (CLI-only)
Common questions
- Why use verify instead of ad-hoc Python or Excel checks?
- Ad-hoc scripts silently skip missing columns, compare formatted dates as strings, and produce inconsistent output formats. verify compiles rules into a versioned contract, emits deterministic verify.report.v1 JSON with exact failing rows, and refuses loudly with exit code 2 when inputs are unreliable.
- Should I run cmdrvl check or verify directly?
- Use cmdrvl check (brew install cmdrvl/tap/cmdrvl) for day-to-day workflows and AI coding agents so rules, coverage checks, redaction, and checkpoints share one command grammar. Install verify standalone (brew install cmdrvl/tap/verify) for minimal CI gates or compiled constraint batches.
- Does the browser demo upload my spreadsheets?
- No. Every rule check runs in memory inside your browser tab with zero uploads and zero network calls. Turn off your Wi-Fi before Step 4 and every rule check continues working identically.
- Can verify also check text quotes and numbers inside filings?
- Yes. verify ground checks quoted claims and numbers against pinned HTML, text, or filing documents (and ships today in compiled Rust WebAssembly inside @cmdrvl/web).