verdix
v0.1.0
Published
Eligibility-as-code: a domain-agnostic engine that turns messy qualification rules into explainable, auditable verdicts with evidence.
Downloads
154
Maintainers
Readme
verdix
Eligibility-as-code: a domain-agnostic engine that turns messy qualification rules into explainable, auditable verdicts with evidence.
- Domain-agnostic — the engine contains zero domain vocabulary
- Four-valued verdicts —
pass,fail,unknown,review - Confidence propagation — every verdict carries confidence scores
- Provenance tracking — every decision is traceable to its source
Install
npm install verdixUsage
import { evaluate, governmentJobPack } from "verdix";
const result = evaluate(governmentJobPack, {
age: 24,
education: "bachelor",
// ...subject attributes
});
console.log(result.status); // "pass" | "fail" | "unknown" | "review"
console.log(result.confidence); // overall confidence
console.log(result.evidence); // per-rule trace with provenanceAPI
evaluate(pack, subject)— run a pack's rules against a subject, returning an aggregated verdict with evidenceevaluateRule(rule, ctx)— evaluate a single rulefoldStatus/overallConfidence/summarize— aggregation helperslogic— Kleene three-valued logic primitivesgovernmentJobPack,scholarshipPack— example domain packs
License
MIT
