# Label a response's stance toward a claim

<!-- BEGIN GENERATED: usage -->

Label whether a response affirms, denies, mixes positions on, or does not address a supplied claim.

Use when: You need to label whether a response agrees or disagrees with a claim, including in AI alignment research.

Install `jev-recipes` and set `TYPESAFE_API_KEY` in your server environment. See the [quick start](https://github.com/agencyenterprise/jev-recipes/blob/main/README.md#use-a-recipe).

```ts
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);
```

Try the saved example without an API key: `npx jev-recipes demo claim-stance`.

<details>
<summary>Illustrative result from the offline fixture</summary>

```json
{
  "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
  }
}
```

This saved response illustrates behavior; it is not a model accuracy measurement.

</details>

Related recipes:

- [`verify`](https://jev-recipes.com/recipes/verify/): Use verify to check whether a claim is supported by evidence; stance does not establish truth.
- [`answer-consistency`](https://jev-recipes.com/recipes/answer-consistency/): Use answer-consistency to compare the compatibility of two statements.
- [`draft-compare`](https://jev-recipes.com/recipes/draft-compare/): Use draft-compare for a preference between two responses under a supplied rubric.

<!-- END GENERATED: usage -->

## Input

<!-- BEGIN GENERATED: input -->

| Field           | Required | Shape                        |
| --------------- | -------- | ---------------------------- |
| `claim`         | Yes      | string                       |
| `response`      | Yes      | string                       |
| `context`       | No       | string                       |
| `minConfidence` | No       | number; minimum 0; maximum 1 |

This table is generated from the input schema. Additional text, uniqueness, and policy checks are described below and in the shared options.

<!-- END GENERATED: 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](https://github.com/agencyenterprise/jev-recipes/blob/main/recipes/README.md#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](https://github.com/agencyenterprise/jev-recipes/blob/main/docs/ai-alignment-research.md).

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

## Measured accuracy

<!-- BEGIN GENERATED: accuracy -->

**Current measurement; labels unspecified; experimental.**

Measured on 53 golden cases against `jev-1.13.0`: **96% accurate** overall (contested cases 100%, adversarial cases 83%).

Recorded 2026-10-04 with package 0.9.12, on the **development** split. Recipe fingerprint: `f7a00369209358a41194a20c68fcecd15ea1597e37ae0267884085a4871f62d4`.

Scoring revision: 2.

51/53 cases correct; 39 ready, 14 review, 0 failed. Accuracy among ready cases: 100%.

Latency: p50 100.13 ms, p95 154.07 ms. Usage: 33869 input tokens and 3079 output tokens across 53 logical requests.

Labels: unspecified (53 cases): Not recorded by the dataset author.

These authored cases are not independent human validation. Related variants are correlated; case-level confidence intervals can overstate independent evidence.

95% case-level accuracy interval: 87% to 99%.

| `minConfidence` | Deferred to review | Accuracy of ready results |
| --------------- | ------------------ | ------------------------- |
| 0.5             | 17%                | 96%                       |
| 0.6             | 21%                | 98%                       |
| 0.7             | 26%                | 100%                      |
| 0.8             | 26%                | 100%                      |
| 0.9             | 34%                | 100%                      |
| 0.95            | 38%                | 100%                      |

The lowest threshold reaching 95% accuracy on ready results is 0.5.

Run `npm run eval -- claim-stance` to save new results and update this guide. The full report, including misses, is in [evals/results/claim-stance.json](https://github.com/agencyenterprise/jev-recipes/blob/main/evals/results/claim-stance.json). Accuracy on your own data may differ.

<!-- END GENERATED: accuracy -->

## Limits

- Labels only the expressed stance toward one supplied claim. It does not infer beliefs, intention, deception, or alignment from text.
- A single agreement label does not establish sycophancy. Research use requires controlled comparisons and independent validation of the labels.

Canonical guide: https://jev-recipes.com/recipes/claim-stance/
Evidence: Current measurement; labels unspecified. Last updated 2026-10-04.
