Use Cases

Can I use Traverse for eligibility checking?

Eligibility rules are a natural fit for Traverse. You write the rule once as a WASM capability, define a contract that specifies the required inputs and constrains the output, and run it wherever you need it. The same rule that powers instant UI feedback also governs your API authorization and your batch reporting jobs.

The consistency problem

Eligibility logic tends to live in multiple places. A frontend check tells the user whether they qualify before they apply. An API check enforces the rule when they submit. A data pipeline checks eligibility for reporting. When these three implementations drift — a new rule added to the API but not the frontend, a condition inverted in the batch job — users get inconsistent experiences and compliance becomes harder to prove.

With Traverse, one binary defines the rule. All three callers get the same answer from the same logic.

Contract structure for eligibility

A typical eligibility capability takes an applicant profile as input and returns an eligibility result: a boolean, a reason code, and optionally a list of failing conditions. The contract's preconditions validate that required profile fields are present and have valid types. Postconditions confirm the result structure is complete. If the capability returns an eligibility decision without a reason code, the postcondition rejects it.

Compliance and auditability

For regulated industries, every eligibility decision may need to be auditable. Traverse produces a trace artifact on every call. The artifact records the exact input, the contract version that governed the decision, and the output. You have a complete audit trail without building one separately.

  • Insurance underwriting rules
  • Loan qualification checks
  • Feature access controls based on subscription tier
  • Promotional eligibility (first-time buyer, region-based offers)
  • Compliance-gated actions in regulated workflows

See how Traverse helps with compliance for more on the audit trail.