> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Case

> One concrete instance of a task, in the project directory's cases folder.

Schema: `urn:hex65:schema:case:v1`. Every field below comes from the schema; the schema decides.

hex65.case/v1 (plan section 5.6.2). The content hash is SHA-256 of the canonical JSON of the document without `review` and `tags`.

## Fields

| Field | Type | Required | Meaning |
| - | - | - | - |
| `format` | `"hex65.case/v1"` | yes | |
| `id` | string | yes | |
| `task` | string | yes | |
| `stratum` | string or null | yes | Null for an adversarial case, which belongs to no deployment stratum. |
| `origin` | one of `"recorded"`, `"authored"`, `"generated"`, `"takeover"`, `"cluster"`, `"imported"` | yes | |
| `source` | object | yes | |
| `source.session` | string or null | yes | |
| `source.parent` | string or null | yes | |
| `source.transform` | string or null | yes | |
| `attributes` | object | yes | |
| `initial_state` | object | yes | |
| `initial_state.remove` | array | yes | |
| `initial_state.upsert` | array | yes | |
| `input` | string or null | yes | The fixed input, or null when the simulated user starts the conversation. |
| `user` | see SimulatedUser | no | |
| `conditions` | list of object | yes | |
| `conditions[].type` | string | yes | |
| `expected` | see CaseExpected | yes | |
| `review` | one of `"accepted"`, `"needs_review"` | yes | |
| `adversarial` | boolean | yes | |
| `tags` | list of string | yes | |

## SimulatedUser

| Field | Type | Required | Meaning |
| - | - | - | - |
| `goal` | string | yes | |
| `facts` | object | yes | |
| `persona` | object | yes | |
| `persona.patience` | number | yes | |
| `persona.clarity` | number | yes | |
| `persona.accuracy` | number | yes | |
| `persona.verbosity` | number | yes | |
| `events` | array | yes | |
| `stop` | object | yes | |
| `stop.max_turns` | integer | yes | |

## CaseExpected

| Field | Type | Required | Meaning |
| - | - | - | - |
| `effects` | list of object | yes | |
| `effects[].tool` | string | yes | |
| `effects[].key` | object | yes | |
| `no_other_effects` | boolean | yes | |
| `entities` | array | yes | |
| `answer` | null or object | yes | |
| `escalation` | one of `"expected"`, `"not_expected"`, `"allowed"` | yes | |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.