Open-source spreadsheet scoping tool
Which columns and keys actually matter in this file?
Got a 40-column export where only 5 columns matter? Or a file with three title rows above the header? Profile freezes your key, chosen columns, and preamble skip into one hashed YAML file so every diff and check uses the exact same scope. Your files stay on your device.
Isolated 5 of 10 columns, confirmed loan_id is unique across all 6 rows, and froze the profile with SHA-256.
Synthetic 10-column servicer export. Five noisy tracking columns (export_timestamp, batch_run_id, analyst_notes, internal_memo, row_checksum) are excluded so monthly rvl and shape runs compare only the 5 core loan fields.
sha256:007f52da14cb2258b395cb6e6997d353378b9b5f9ffd81ca1cb3a8aaa5881969| Column | Role | Type | Uniqueness |
|---|---|---|---|
| loan_id | KEY + INCLUDED | text | 100% (unique) |
| property_name | INCLUDED | text | 100% (unique) |
| ending_balance_usd | INCLUDED | number | 100% (unique) |
| appraised_value_usd | INCLUDED | number | 100% (unique) |
| dscr | INCLUDED | number | 100% (unique) |
| export_timestamp | IGNORED | text | 17% |
| batch_run_id | IGNORED | text | 17% |
| analyst_notes | IGNORED | text | 50% |
| internal_memo | IGNORED | text | 33% |
| row_checksum | IGNORED | text | 100% (unique) |
Click any column to toggle scope · Zero uploads (works with Wi-Fi off)
Adjust skip_rows, key, redaction & inspect frozen YAML / JSON
profile_id: "csv.loan_tape.core.v0"
profile_version: 0
profile_sha256: "sha256:007f52da14cb2258b395cb6e6997d353378b9b5f9ffd81ca1cb3a8aaa5881969"
frozen: true
format: csv
include_columns:
- loan_id
- property_name
- ending_balance_usd
- appraised_value_usd
- dscr
key:
- loan_id
equivalence:
order: "order-invariant"
float_decimals: 6
trim_strings: trueDraft and freeze locally
profile draft init servicer_tape_oct.csv --out loan_tape.draft.yaml
profile freeze loan_tape.draft.yaml --family csv.loan_tape.core --version 0 --out profile.v0.yamlUse frozen profile with rvl
rvl sep.csv oct.csv --profile profile.v0.yaml --jsonRunning locally in browser memory (profile.v0 mirror): Mirrors cmdrvl/profile v0.14.0 (preamble slicing, key uniqueness ranking, column scoping, lint drift checks, and real SHA-256 profile freezing) in memory with zero uploads. Ready to swap onto @cmdrvl/web Rust WASM via registerProfileWasmKernel().
Claude Artifacts · @cmdrvl/web
Like this column scoper? Put it in your own Claude Artifact.
Paste this prompt into Claude.ai to spin up a zero-upload CSV column scoper, preamble slicer, and frozen YAML profile builder for recurring monthly files.
Build an interactive React Claude Artifact called "CMD+RVL Column Scoper & Profile Builder (profile)" that lets analysts pick which columns matter, strip banner preamble rows, rank unique key candidates, and freeze a SHA-256 hashed YAML profile 100% locally in browser memory with zero server uploads.
Follow CMD+RVL's profile.v0 contract (https://github.com/cmdrvl/web):
1. Include a file drop zone plus 3 presets: scoping 5 core columns out of a 10-column loan tape, skipping 3 banner rows above row 4 (pre_parse.slice.skip_rows: 3), and catching schema drift when a required column disappears or a key duplicates.
2. Rank key candidates by uniqueness and null rate, let users click columns to include or ignore them, and compute a real client-side SHA-256 profile_sha256 over the canonical frozen YAML.
3. Lead with a concrete plain-English verdict headline (exact columns isolated, rows checked, preamble rows skipped) and a column table; tuck skip_rows, Redacted (redacted:ref:cN) vs. --explicit toggle, and frozen YAML / profile.v0 JSON inside an expandable drawer.
4. Structure the engine behind a clean runProfileAnalysis() boundary ready to swap onto @cmdrvl/web (cmdrvl/profile already compiles to wasm32-unknown-unknown with inspect_bytes, slice_bytes, draft_bytes, and suggest_key_bytes).Works inside Claude.ai Artifacts today with zero uploads (test it with Wi-Fi off). cmdrvl/profile already compiles in CI to wasm32-unknown-unknown (--no-default-features) for future @cmdrvl/web packaging.
Run it locally
Install profile, draft from a real file, then freeze it.
Draft a profile from any spreadsheet header, lint it against next month's export, and freeze it into an immutable SHA-256 YAML file consumed directly by rvl and shape. For quick redacted file inspection inside agent workflows, cmdrvl inspect also ships in the unified CLI.
profile CLI (v0.14.0)
Handles the full draft -> lint -> slice -> evolve -> freeze lifecycle, suggests unique single or composite keys, strips banner preambles, and emits frozen SHA-256 YAML profiles plus starter verify rules and SQL DDL.
1. Install via Homebrew
brew install cmdrvl/tap/profile2. Run locally
profile draft init loan_tape.csv --out tape.draft.yaml && profile freeze tape.draft.yaml --family csv.loan_tape.core --version 0 --out tape.v0.yaml- Supported files
- CSV, TSV, JSONL, Parquet, and Excel (XLSX/XLS)
- Runs locally
- On your device · Works offline with zero uploads
- Privacy default
- Headers print as redacted:ref:cN refs (--explicit shows names)
- Live consumers
- rvl --profile, shape --profile, and verify starter rules
For scripts and CI: standalone profile binary, exit codes, and refusal codes
Use with rvl, shape, and cmdrvl inspect
View cmdrvl/cmdrvl on GitHub ->Pass frozen profiles directly to rvl --profile and shape --profile, run profile lint --against in CI before pipelines execute, or use cmdrvl inspect (v0.2.0) for quick redacted schema inspection.
Install standalone binary
brew install cmdrvl/tap/cmdrvlInvoke directly
profile lint tape.v0.yaml --against oct_tape.csv && rvl sep_tape.csv oct_tape.csv --profile tape.v0.yaml --jsonExit codes & verdicts
SUCCESS
Exit 0
Profile drafted, validated, linted, sliced, or frozen cleanly with zero schema or key errors.
ISSUES_FOUND
Exit 1
Lint or diff detected drift: a required column disappeared, a key is no longer unique, or column types shifted against the declared profile.
REFUSAL
Exit 2
Input could not be processed safely (empty file, malformed CSV, ambiguous Excel worksheet, invalid redaction key, or attempt to mutate an already-frozen profile).
Common refusal & finding codes
| Code | When it fires | Remediation |
|---|---|---|
| E_EMPTY | Input dataset has no data rows after header/preamble skip | Check skip_rows or supply a non-empty file |
| E_COLUMN_NOT_FOUND | A column named in include_columns or key is absent | Run profile evolve --against to review drift into a new draft |
| E_ALREADY_FROZEN | Attempted to overwrite or re-freeze an immutable profile version | Increment --version to freeze a new version |
| E_OUTPUT_REQUIRED | profile slice refused to dump raw CSV rows to stdout | Pass --out clean.csv or opt in with --explicit |
| E_INPUT_FORMAT | Multi-sheet Excel workbook without --sheet or unreadable Parquet/JSONL | Pass --sheet <name|index> or re-export cleanly |
| E_REDACTION_KEY_INVALID | PROFILE_REDACTION_KEY is empty or shorter than 16 bytes | Supply a >=16-byte key or unset it for ordinal refs |
Learning progression
Scoped your columns? Enforce rules next or step back to shape.
Once profile freezes which columns and keys matter across monthly exports, pass it straight to shape and rvl, or move forward to verify to check credit and compliance rules on every row.
- 01rvlSee what moved
- 02shapeCheck compatibility
- 03 · HEREprofileScope columns
- 04verifyEnforce rules
- 05packSeal proof
- 06veilGuard privacy
Previous · 02 shape
Check whether two scoped files still line up.
Pass your frozen profile to shape --profile to check column overlap, key uniqueness, and numeric column stability before diffing.
Next step · 04 verify
Enforce credit and compliance rules on your scoped columns.
Bootstrap verify rules straight from a frozen profile (profile emit-verify-starter) and pinpoint every loan row that breaks DSCR, LTV, or required-field checks.
What profile handles
- Drafts starting profiles directly from CSV, TSV, JSONL, Parquet, or XLSX headers with conservative type and nullability metadata
- Suggests unique single-column and composite 2- or 3-column keys ranked by uniqueness and null rate (profile suggest-key)
- Strips export banner preambles and merges multi-row headers deterministically with lineage manifests (profile slice)
- Freezes immutable YAML profiles with SHA-256 content hashes and optional column_registry_hash pinning
- Redacts dataset headers as ordinal redacted:ref:cN markers or keyed HMAC-SHA256 tokens by default (--explicit reveals names)
- Projects frozen profiles into starter verify rules (emit-verify-starter) and Postgres/Snowflake DDL (emit-ddl)
Explicit boundaries & limits
- Suggested keys and inferred types reflect the observed sample and still require human review before freezing.
- profile slice handles narrow pre-parse header cleanup and canonicalization; it is not a general ETL transform engine.
- Frozen profiles are immutable by design; changing columns or key order requires bumping profile_version.
- rvl and shape consume --profile today; verify consumes starter rules via emit-verify-starter rather than reading profiles directly.
- Cairn roles
- Software factory
- Evidence roles
- Checks and support
- Semantic context
- Source meaning
- Contribution
- Declare columns and keys for report interpretation and check the configuration's schema.
- Limit
- Suggested keys and configured fields still need review against the source.
Questions this tool can support
- Did it pay down in October?
Declare and check comparison columns and keys. A suggested key still needs review against the deal and loan grain.
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 freeze a profile instead of passing column flags on the command line?
- Ad-hoc --exclude flags live in shell history and drift from month to month. Freezing a profile puts your key, included columns, preamble skip, and rounding rules in one versioned, SHA-256 hashed YAML file committed beside your workflow.
- What happens when a servicer adds or renames a column next month?
- profile lint catches missing columns immediately with exit 1, and profile evolve generates a new draft showing added columns, dropped columns, and candidate renames without altering the frozen version.
- Does the browser demo upload my CSV file?
- No. Preamble detection, column scoping, key uniqueness scoring, and SHA-256 profile hashing run entirely in browser memory. Turn off your Wi-Fi before Step 4 and every check still works.
- How does profile protect sensitive column names around AI agents?
- Without --explicit, profile inspect, stats, suggest-key, slice, and evolve print ordinal markers like redacted:ref:c1 instead of raw header text or example values, so messy title banners or private field names never leak into stdout or agent context.