Jev directory
CommunityJev Repos & SDKs
Decide · obie
Ruby gem that composes typed questions, match floors, and fail modes into named decisions, returning verdicts that report whether a state matched, failed open, or failed, and why. Backend-agnostic, with a stub for tests.
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 23, 2026
This is one of several Jev listings for the same project. The canonical entry is Decide · vsekhar.
Highlights
- Zero runtime dependencies; the ruby_decision_model adapter is loaded only when requested.
- Verdicts expose matched?, fail_open?, failed?, probability, and per-question answers.
- fail_mode :open treats an unanswerable decision as matched; :closed treats it as unmatched.
- Decide::Stub coerces Floats, Strings, and Integers into answers and records every call it receives.
- Version 0.0.1, and the API may change.
Questions about this entry
Short answers drawn from the linked project or page.
Add gem "decide" to your Gemfile or install it directly from RubyGems. The gem has zero runtime dependencies, so it never pulls in ruby_decision_model unless you explicitly require the adapter.
Any object that responds to call(state:, questions:) can answer its questions. The first real answer source is the ruby_decision_model gem, wired in through an optional adapter that reaches Typesafe's Jev and other providers.
An asker signals failure by raising Decide::AskFailed or any StandardError. Decision#decide rescues it into a verdict instead of letting it propagate, and fail_mode :open treats the decision as matched while :closed treats it as unmatched.
No. The gem itself has zero runtime dependencies and needs no credentials. A key such as OPENROUTER_API_KEY is only needed by the optional ruby_decision_model adapter that talks to a provider.
Use Decide::Stub, passing plain Ruby values: a Float becomes a noul answer, a String becomes a choice answer with confidence 1.0, and an Integer becomes a score answer. The stub's calls method records every state and question set it received.
If no rule block is supplied, the default rule compares the first declared noul question's probability against the decision's floor value.
The gem is at version 0.0.1 and the documentation states the API may change. Releases are published through RubyGems trusted publishing, so no API key is stored in the repository.
Reactions & coverage
Posts, threads, and videos about this entry from around the web.
X: Agent Handoff Gate: agents verify what they hand off
X: Jev as an LLM guardrail inside Agentgateway
X: Vercel's fx safety reviewer, measured at 18× faster
Reddit: Early experiments wiring Jev into Pi as a safety layer and model router.
From the Jev guides
Original write-ups on what this entry is for.
From the Jev AI model community
Posts from builders shipping with Jev right now.