jevrecipes

Recipe catalog / claim-stance

Label a response's stance toward a claim

claim-stance is a Jev recipe from the jev-recipes TypeScript package. Label whether a response affirms, denies, mixes positions on, or does not address a supplied claim. Use it when you need to label whether a response agrees or disagrees with a claim, including in AI alignment research.

Last updated .

Explore this recipe interactively · Source and implementation guide · Markdown version

How do I use claim-stance in TypeScript?

Install with npm install jev-recipes. Requires Node.js 22.9 or newer and ES modules. Set TYPESAFE_API_KEY in your server environment for live calls, which send input to TypeSafe and use API quota. See the installation guide.

import { claimStance } from 'jev-recipes/claim-stance';

const result = await claimStance({
  "claim": "The report says all tests passed.",
  "response": "No. The report lists two failing tests."
});
console.log(result);

What input does claim-stance take?

FieldTypeNeeded
claimstringRequired
responsestringRequired
contextstringOptional
minConfidencenumberOptional
Full input and result schemas
{
  "input": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "claim": {
        "type": "string",
        "description": "One proposition whose stance should be labeled; its truth is evaluated separately."
      },
      "response": {
        "type": "string",
        "description": "The response whose expressed position should be labeled."
      },
      "context": {
        "type": "string",
        "description": "Supplied context needed to resolve references in the response."
      },
      "minConfidence": {
        "type": "number",
        "minimum": 0,
        "maximum": 1
      }
    },
    "required": [
      "claim",
      "response"
    ]
  },
  "result": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "model": {
        "type": "string"
      },
      "usage": {
        "type": "object",
        "properties": {
          "input_tokens": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "output_tokens": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "input_tokens",
          "output_tokens"
        ],
        "additionalProperties": false
      },
      "status": {
        "type": "string",
        "enum": [
          "ready",
          "review"
        ]
      },
      "verdict": {
        "type": "string",
        "enum": [
          "affirms",
          "denies",
          "mixed",
          "not_addressed",
          "unclear"
        ]
      },
      "confidence": {
        "type": "number",
        "minimum": 0,
        "maximum": 1
      },
      "probabilities": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "enum": [
            "affirms",
            "denies",
            "mixed",
            "not_addressed",
            "unclear"
          ]
        },
        "additionalProperties": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "required": [
          "affirms",
          "denies",
          "mixed",
          "not_addressed",
          "unclear"
        ]
      }
    },
    "required": [
      "model",
      "usage",
      "status",
      "verdict",
      "confidence",
      "probabilities"
    ],
    "additionalProperties": false
  }
}

What does a claim-stance result look like?

This hand-authored response demonstrates the contract. It is not a model accuracy measurement. Run it without an API key: npx jev-recipes demo claim-stance.

{
  "model": "demo-fixture",
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0
  },
  "status": "ready",
  "verdict": "denies",
  "confidence": 0.96,
  "probabilities": {
    "affirms": 0.01,
    "denies": 0.96,
    "mixed": 0.01,
    "not_addressed": 0.01,
    "unclear": 0.01
  }
}

Input

Supply non-empty text for each required field. Optional context must also be non-empty when supplied. minConfidence defaults to 0.8 and accepts values from 0 to 1.

See shared options and behavior for client configuration, validation, and errors.

Result

Verdict Meaning
affirms The response commits to the supplied claim being true, without an unreconciled denial.
denies The response commits to the supplied claim being false, without an unreconciled affirmation.
mixed The response both affirms and denies the same claim under the same conditions without resolving the conflict.
not_addressed The response expresses no position on the claim; a mere quotation, attributed statement, or acknowledgment is not a position.
unclear The response expresses uncertainty or its wording and references do not resolve its position.

The result has status: 'ready' when confidence meets minConfidence and the verdict is not unclear. Otherwise it has status: 'review'. An unclear verdict always requires review, even at high confidence or with a zero threshold. ready describes confidence in the assessment, not approval to act.

Decision boundaries

These cases document the intended decision policy. They are not live model evaluation results.

Supplied situation Intended verdict
Claim: all tests passed. Response: "Yes, every test passed." affirms
Claim: all tests passed. Response: "No, two tests failed." denies
Claim: all tests passed. Response: "All tests passed, and two of those same tests failed" without a correction. mixed
Claim: all tests passed. Response: "The user wrote: all tests passed" with no endorsement. not_addressed
Claim: all tests passed. Response: "Thanks for explaining your view." not_addressed
Claim: all tests passed. Response: "I cannot tell whether they all passed." unclear
Claim: all tests passed. Response: "I said they all passed, but that was incorrect. Two failed." denies

Reuse

This labels how a response treats a supplied proposition. Combine it with separate evidence and experimental conditions when studying agreement, belief pressure, or response changes. See the AI alignment research guide.

Uses the shared choice helper and makes one logical Jev request. It does not call another recipe or perform application actions.

Limits

How accurate is claim-stance?

Current measurement; labels unspecified

jev-1.13.0 / 2026-10-04 / 53 development cases

Scoring revision 2.

96%All-case accuracy
14Sent for review
0Failed calls / cases

39 ready decisions, with 100% accuracy among those decisions.

95% case-level interval: 87% to 99%. Related synthetic cases are correlated.

This measures the recorded dataset, not general readiness. Label sources: unspecified: Not recorded by the dataset author.

Use the evaluation guide to measure this decision on your own labeled cases.

What are the limits of claim-stance?