jevbooks

← All projects

mastra-jev-moderation

CodeAlive-AI/mastra-jev-moderation

Mastra input moderation on Jev: one file, one typed request.

Automated README summary

Automatically summarized from the README on 20 Sept 2026; not a run by jevbooks. Run instructions and author-reported outcomes still need verification.

What it is

A Mastra input processor that moderates agent messages with TypeSafe Jev instead of an LLM, for teams that want a fast, cheap, fail-open block gate with no text to parse.

How it uses Jev

Jev answers two typed questions in one request over the last message's text: a `noul` probability for `blocking` (the gate) and a `choice` for `category` (logs only). The turn aborts when P(block) ≥ 0.7.

Primitives:noulchoice

Technique worth stealing

Ask a typed evaluation model for a probability instead of parsing a verdict out of generated text, so hostile input cannot produce an unparsable answer.

Try it

Copy `jev-moderation.ts` into the project, install `zod`, set `TYPESAFE_API_KEY`, and wire it as an `inputProcessor`.

View on GitHub

Start using Jev: API key and your first request →

Model judgments from README excerpts

Project signals use repository metadata, an existing summary and the first 700 README characters, not the full project. “Not found” means not detected in that material; it does not establish absence. These are the original judgments with recorded models and dates, not source audits or run results.

Models & evaluation dates

Inclusion gate
jev-1.13.0
Project signals
jev-1.13.0
Category
jev-1.13.0
Pattern tags
jev-1.13.0

Evidence

These signals use repository metadata, an existing summary and at most 700 cleaned README characters. ≥ 0.60 means reported in that excerpt; ≤ 0.40 means not found there. The middle band is inconclusive. None is a source-code audit or a test result. The runnable-tool question excludes research experiments; the recommendation question asks for a learning shortlist, not a quality verdict.

  • Jev is core to the projectFound in material0.95
  • Shows a System One patternFound in material0.78
  • Describes handling uncertaintyFound in material0.95
  • Reports measured numbersFound in material0.97
  • Is a runnable toolFound in material0.92
  • Top-10 learning shortlist signalunclear0.59
  • Is a replica of the modelnot found in the excerpt0.03
  • Solves a common problem (0–2)score on a 0–2 scale1.33 / 2
  • About JevFound in material0.99
Signals
Jev is core to the project0.95Shows a System One pattern0.78Describes handling uncertainty0.95Reports measured numbers0.97Is a runnable tool0.92Top-10 learning shortlist signal0.59Is a replica of the model0.0300.51Solves a common problem (0–2)1.33 / 2012

no-judgment band (0.40–0.60)

Design patterns
Fail open, fail closed0.99Viewfinder0.98Questionnaire0.92Check-up0.81Ghostwriter0.2100.51

no-judgment band (0.40–0.60)

The Jev model and date for each judgment stage are listed above. Card written by DeepSeek V4.1 Flash from the README on 20 Sept 2026.