Append a corrective edit as a new immutable version, without deciding.
Append a corrective edit version to a review overlay. This records a new version of the gated block’s output without submitting a verdict. The overlay’s full version history is preserved — the model’s original stays at sequenceDocumentation Index
Fetch the complete documentation index at: https://docs.retab.com/llms.txt
Use this file to discover all available pages before exploring further.
0, and your edit is appended as the next sequence. The newly appended version becomes the effective output that a subsequent approved decision will flow downstream.
The request body carries:
| Field | Notes |
|---|---|
snapshot | The corrected output payload. Required. |
version_stamp | The overlay rev you last read. Required — see the conflict note below. |
origin | Provenance label for the version, e.g. "human_edit" (default). |
note | Optional free-text note explaining the correction. Recorded in the audit trail. |
command_id | Optional idempotency key — a retried call with the same command_id is deduplicated. |
edited_output instead — the server appends the version and then approves it atomically.
Append an edit (a new OutputVersion) without deciding.
The FULL corrected output JSON — a complete replacement object, not a partial diff.
CAS token: the overlay rev the client last read. The server returns 409 on mismatch so the client can re-read and rebase.
x >= 0Who-shaped origin of this edit. seq=0 / 'model_output' / 'revert' are not valid here.
agent_edit, human_edit Free-text rationale from the author.
Optional idempotency key — a retried append with the same command_id is deduplicated.
Successful Response
The HIL review sidecar for one gated block run. Replaces v1 HilRunState.
Stored 1:1 in hil_overlays with _id == block_run_id.
Equals block_run_id — 1:1 with the gated run.
Pinned at gate-fire; resume runs THIS version.
extract, classifier, split, conditional Gate every run.
Ascending seq. versions[0] is always the model's seq=0 output.
1seq of the newest version (== versions[-1].seq).
x >= 0awaiting_review, approved, rejected Higher sorts first in the queue.
Whole-document CAS token. +1 on every mutating write.
x >= 0A soft lease so the UI can show 'Dana is reviewing this'. NOT a lock —
correctness rests entirely on the rev CAS. Claims expire.
Append-only. Empty while awaiting. len>1 means reopened.
seq of the version downstream consumes. Set ONLY by an 'approved' decision. None while awaiting / rejected.