Benchmarks & research

typesafe-ai-firewall

@AnshChoudhary1Pythonupdated 2026-09-17runnable

Shadow-mode validation harness for a pre-execution firewall on AI agent tool calls (TypeSafe/Jev). Real run, findings in report.md.

AnshChoudhary/typesafe-ai-firewall

Where it calls Jev

"""Same battery as a raw HTTP payload, for POST /v1/systemone without the SDK."""

firewall/battery.py:85

The link points at the commit we read, so the line number still holds.

What it asks Jev

These question sets are lifted from this project's source exactly as written.

from firewall/judge.py:158

  1. is_urgenttrue/false

    The message conveys urgency

  2. severityscore

    How severe the problem is for the customer

    • 0Minor annoyance
    • 1Real problem
    • 2Losing money now

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    is_urgent: { type: 'boolean', instructions: 'The message conveys urgency' },
    severity: { type: 'score', instructions: 'How severe the problem is for the customer',
      criteria: ['Minor annoyance', 'Real problem', 'Losing money now'] },
  },
});

Other projects in this category