> ## 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.

# Exam attempt

> An exam attempt as the service registered it, with the service's signature.

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

hex65.exam-attempt/v1: an attempt as the service registered it, signed by the service's `seal` key (payload type application/vnd.hex65.exam-attempt+json, payload `JCS(document)`). `nonce_b64` is 32 bytes from the service's random source; `draw` is the function of 5.9.5 over `eligible` (ascending leaf indexes): `score_i = HMAC-SHA256(nonce, utf8(seal_hash) \|\| uint32be(i))`, the `draw_size` smallest (ties by index), in ascending order. `alpha_adjusted` is alpha / budget (fresh) or alpha / (2^budget - 1) (reuse). `laps_granted` = draw\_size x laps\_per\_case, reserved all-or-nothing in the exam grant `grant_id`. `expires_at` is 24 hours after `registered_at`. `prior` lists every earlier attempt on any version of the task, `versions_sealed` every version sealed for it. `tuning_tracked` false (the service's grant path does not yet track tuning) makes `sealed_during_tuning`, `criteria_changed_after_tuning` and both tuning start times null.

## Fields

| Field | Type | Required | Meaning |
| - | - | - | - |
| `format` | `"hex65.exam-attempt/v1"` | yes | |
| `attempt_id` | string | yes | |
| `workspace_ref` | string | yes | |
| `seal_hash` | string | yes | |
| `attempt_no` | integer | yes | |
| `budget` | integer | yes | |
| `mode` | one of `"fresh"`, `"reuse"` | yes | |
| `alpha` | number | yes | |
| `alpha_adjusted` | number | yes | |
| `draw_size` | integer | yes | |
| `laps_per_case` | integer | yes | |
| `agent_version` | string | yes | |
| `containment` | `"enforced"` | yes | |
| `eligible` | list of integer | yes | |
| `nonce_b64` | string | yes | |
| `draw` | list of integer | yes | |
| `grant_id` | string | yes | |
| `laps_granted` | integer | yes | |
| `registered_at` | string | yes | |
| `expires_at` | string | yes | |
| `sealed_during_tuning` | boolean or null | yes | |
| `criteria_changed_after_tuning` | boolean or null | yes | |
| `task_tuning_started_at` | string or null | yes | |
| `course_tuning_started_at` | string or null | yes | |
| `prior` | list of object | yes | |
| `prior[].seal_hash` | string | yes | |
| `prior[].attempt_no` | integer | yes | |
| `prior[].state` | one of `"registered"`, `"running"`, `"passed"`, `"failed"`, `"void"` | yes | |
| `prior[].consumes_budget` | boolean | yes | |
| `versions_sealed` | list of string | yes | |
| `tuning_tracked` | boolean | yes | Whether the service tracks the task's tuning start (RULE-1). While false the labels and both start times are null: the service claims nothing about the order of seal and tuning. |


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