Open-source policy decision tool
Should this data delivery proceed, escalate, or block?
Upstream tools tell you if files line up, what changed, and whether rules held, but something still has to decide what happens next. Assess evaluates a complete evidence bundle against a versioned YAML policy using ordered first-match rules and returns PROCEED, PROCEED_WITH_RISK, ESCALATE, or BLOCK. Your files stay on your device.
Rule clean_reconciliation matched: PROCEED (exit 0) across all 3 required reports.
shape is COMPATIBLE, rvl returned REAL_CHANGE, and verify returned PASS. First-match evaluation stops at rule #1 and logs every upstream artifact in epistemic_basis.
| Rule (ordered) | Target Band | Status | Reason |
|---|---|---|---|
| clean_reconciliation | PROCEED | MATCHED | All exact conditions matched (shape, rvl, verify). |
| partial_overlap_acceptable | PROCEED_WITH_RISK | SKIPPED | Short-circuited after "clean_reconciliation" matched. |
| diffuse_requires_review | ESCALATE | SKIPPED | Short-circuited after "clean_reconciliation" matched. |
| tolerable_missingness | PROCEED_WITH_RISK | SKIPPED | Short-circuited after "clean_reconciliation" matched. |
| verify_fail_requires_review | ESCALATE | SKIPPED | Short-circuited after "clean_reconciliation" matched. |
| default_block | BLOCK | SKIPPED | Short-circuited after "clean_reconciliation" matched. |
Inspect exact CLI command, policy.v0 YAML, assess.v0 JSON, and --render summary
{
"tool": "assess",
"version": "assess.v0",
"outcome": "PROCEED",
"decision_band": "PROCEED",
"policy_id": "loan_tape.monthly.v1",
"policy_version": 1,
"policy_hash": "sha256:a317d7ed61356cc2c1a56144fd349db2dc8a54cfde83adbef51245f4e9b88e12",
"matched_rule": "clean_reconciliation",
"risk_code": null,
"epistemic_basis": [
{
"tool": "shape",
"version": "shape.v0",
"outcome": "COMPATIBLE",
"refusal": null,
"policy_signals": {
"compatibility_band": "FULL"
}
},
{
"tool": "rvl",
"version": "rvl.v0",
"outcome": "REAL_CHANGE",
"refusal": null,
"policy_signals": {}
},
{
"tool": "verify",
"version": "verify.v0",
"outcome": "PASS",
"refusal": null,
"policy_signals": {}
}
],
"refusal": null
}Claude Artifacts · @cmdrvl/web
Like this policy router? Put it in your own Claude Artifact.
Paste this prompt into Claude.ai to spin up an offline deterministic policy classifier modeled on assess.v0 and policy.v0.
Build an interactive React Claude Artifact called "CMD+RVL Policy Decision Classifier (assess)" that evaluates upstream shape, rvl, and verify evidence reports against a versioned YAML policy completely in browser memory with zero server uploads.
Follow CMD+RVL's assess.v0 and policy.v0 contracts (https://github.com/cmdrvl/assess):
1. Implement ordered exact-equality first-match-wins rules with a mandatory default fallback rule and complete epistemic_basis validation (refusing with E_INCOMPLETE_BASIS exit 2 when any required tool is missing).
2. Enforce exact exit codes: 0 for PROCEED or PROCEED_WITH_RISK, 1 for ESCALATE, 2 for REFUSAL/CLI error, and 3 for BLOCK (distinct from refusal).
3. Include 3 presets (PROCEED via clean_reconciliation, ESCALATE via diffuse_requires_review on rvl E_DIFFUSE, and BLOCK exit 3 via default_block on incompatible shape) plus an interactive Step 4 dropdown builder that lets users test all 4 bands plus E_INCOMPLETE_BASIS offline.
4. Display a 4-band strip (PROCEED / PROCEED_WITH_RISK / ESCALATE / BLOCK) with the active band lit, an ordered rule evaluation trace table, and a collapsed inspector drawer showing policy.v0 YAML, assess.v0 JSON, and --render summary.Runs 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
Route spine evidence bundles through versioned YAML policies.
Pass upstream JSON artifacts and either --policy <file> or --policy-id <id>. Every policy is content-hashed with SHA-256 and recorded alongside the full epistemic_basis.
assess CLI (v0.4.1)
Evaluates complete spine bundles (shape, rvl, verify, coverage, benchmark, decoding) against declared policy.v0 YAML rules and emits deterministic assess.v0 JSON or one-line summaries.
1. Install via Homebrew
brew install cmdrvl/tap/assess2. Run locally
assess shape.json rvl.json verify.json --policy-id loan_tape.monthly.v1 --json- Four action bands
- PROCEED (0), PROCEED_WITH_RISK (0), ESCALATE (1), BLOCK (3)
- Ordered exact rules
- First match wins; default rule last; no opaque expression engine
- Runs locally
- On your device · Works offline with zero uploads
- Complete basis gate
- Refuses with E_INCOMPLETE_BASIS (exit 2) if required reports are missing
For scripts and CI: standalone assess binary, exit codes, and refusal codes
Branch cleanly on exit codes 0, 1, 2, and 3
View cmdrvl/cmdrvl on GitHub ->Separate a clean policy BLOCK (exit 3) from a missing-file refusal or bad invocation (exit 2), render summary/summary-tsv lines for pipelines, or query the local witness log.
Install standalone binary
cargo install --git https://github.com/cmdrvl/assessInvoke directly
assess shape.json rvl.json verify.json --policy-id loan_tape.monthly.v1 --render summaryExit codes & verdicts
PROCEED / PROCEED_WITH_RISK
Exit 0
A policy rule authorized proceeding (either cleanly or annotated with an explicit risk_code in the JSON decision artifact).
ESCALATE
Exit 1
Evidence matched an escalation rule (for example diffuse numeric changes or a verify rule failure) and requires human review.
REFUSAL
Exit 2
Invocation, policy, or evidence basis was invalid (E_INCOMPLETE_BASIS, E_DUPLICATE_TOOL, E_BAD_POLICY, E_BAD_ARTIFACT). Never a policy verdict.
BLOCK
Exit 3
A valid, deterministic policy verdict blocking the delivery, kept strictly distinct from exit 2 refusals.
Common refusal & finding codes
| Code | When it fires | Remediation |
|---|---|---|
| E_INCOMPLETE_BASIS | One or more upstream tools required by policy.requires are missing | Run the missing upstream tool and include its JSON artifact |
| E_DUPLICATE_TOOL | Multiple supplied artifacts claim the same upstream tool identity | Pass exactly one report per upstream tool |
| E_BAD_POLICY | YAML policy is malformed, duplicates keys, or fails policy.v0 schema | Check policy syntax against assess --input-schema |
| E_UNKNOWN_POLICY | Policy ID could not be resolved from search paths | Pass --policy <PATH> or set ASSESS_POLICY_PATH |
| E_BAD_ARTIFACT | Upstream artifact JSON could not be parsed or has out-of-bounds exact numbers | Regenerate the upstream tool artifact with --json |
Learning progression
Decision band assigned? Seal the full evidence bundle with pack.
assess sits directly between evidence-producing tools (shape, rvl, verify, coverage, benchmark, decoding) and pack. Once assess emits an assess.v0 decision artifact, seal all inputs and verdicts together.
- 01rvlSee what moved
- 02shapeCheck compatibility
- 03profileScope columns
- 04verifyEnforce rules
- 05packSeal proof
- 06veilGuard privacy
Upstream · benchmark
Score candidate extractions against gold truth first.
benchmark emits a coarse quality_band (HIGH, ACCEPTABLE, LOW) that assess policies can match without needing numeric threshold logic.
Next step · 05 pack
Seal upstream reports and the assess decision into one pack.
Bundle shape, rvl, verify, assess, and delivery.lock.json into a closed-set SHA-256 pack verifiable offline.
What assess handles
- Classifies complete upstream bundles (shape, rvl, verify, coverage, benchmark, decoding, or custom spine-compatible tools) into four deterministic bands
- Evaluates versioned policy.v0 YAML rules in strict declaration order (first match wins, mandatory default fallback rule last)
- Uses exact-equality matching and bounded exact-decimal signal comparison with zero floating-point rounding drift
- Separates policy BLOCK (exit 3) from malformed input or missing-basis refusals (exit 2) for unambiguous CI scripts
- Accounts for every supplied upstream artifact in epistemic_basis and pins policy bytes via SHA-256 policy_hash
- Supports --render summary, --render summary-tsv, witness queries, capabilities --json, and read-only doctor triage
Explicit boundaries & limits
- assess does not inspect raw source files, validate business rules, or score extractions; it classifies already-produced upstream evidence under declared policy.
- A PROCEED verdict is bounded by the declared policy and supplied evidence; it is not general approval outside that scope.
- v0 intentionally uses exact equality only (no CEL or numeric-threshold expression engine); upstream tools emit discrete bands such as quality_band or compatibility_band.
- Cairn roles
- Software factory
- Evidence roles
- Checks and support, What is missing
- Semantic context
- Source meaning
- Contribution
- Classify supported evidence under a declared policy, including escalation and blocking decisions.
- Limit
- A policy verdict is bounded by its evidence and rules; it is not general approval.
Questions this tool can support
- How do we check the software behind this analysis?
Apply a declared policy to supported evidence and route unresolved cases for review. A policy result does not approve a loan or an investment.
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
- decodingConverge claims
- assesscurrent
- packSeal evidence
Workstation guardrails (CLI-only)
Common questions
- Why does BLOCK exit 3 while refusals exit 2?
- So automation never confuses a broken CLI call or missing report (exit 2) with a deliberate, deterministic policy block (exit 3). Similarly, PROCEED_WITH_RISK exits 0 and records the risk_code cleanly inside assess.v0 JSON.
- What happens if an agent forgets to run verify before calling assess?
- Because verify is listed in policy.requires, assess refuses immediately with E_INCOMPLETE_BASIS (exit 2) instead of silently making a decision on partial evidence.
- Why does policy.v0 disallow arbitrary expression languages?
- Keeping policy rules to ordered exact-equality matches over upstream outcomes and discrete policy_signals keeps policies reviewable, auditable, and byte-deterministic across releases.
- Does the browser demo upload any files?
- No. Policy hashing and ordered rule matching run locally in browser memory. Turn off your Wi-Fi before Step 4 and every rule check still works.