Recording Corrections
Corrections keep a Compliance Work Run aligned with the evidence a reviewer actually inspected. Record a correction when the proposed answer, policy summary, or buyer-facing claim is too broad, imprecise, missing a caveat, or unsupported by the cited material.
Current status: this page pins the public docs paths for Work Run correction
creation, correction ledger reads, and correction audit reads:
/admin/work-runs/{work_run_id}/corrections and
/admin/work-runs/{work_run_id}/corrections/audit. The site-rendered correction OpenAPI snapshot at docs/api/openapi.json is committed for the
reviewed correction slice, while the platform owner repo remains the source of
truth for runtime behavior and customer automation proof before automation
targets a deployment.
How The Proof Pieces Fit Together
The correction ledger is an append-only correction model. A correction create
appends a pending correction row for a governed Work Run; applying, rejecting,
or requesting retry for that correction appends follow-on history instead of
editing the original row.
The ledger must not edit, overwrite, or delete an existing correction row. Each
row carries stable metadata such as correction id, correction_sequence,
correction_status, receipt type, and timestamp. If a retry reuses the same
Idempotency-Key with the same request body, the platform should return the same
correction metadata; if the key is reused with a different body, clients must
treat the idempotency_conflict response as a failed operator retry rather than
a second ledger row.
The correction audit read adds proof metadata around those ledger rows. Public
examples may show prev_hash, row_hash, receipt ids, receipt digests, event
types, actor roles, visibility scopes, and sequence numbers. They must not show
raw original assertions, corrected assertions, observed consequences, request
bodies, idempotency keys, customer text, generated answers, citation bodies, or
private evidence refs.
Source-package SDK and CLI reads may wrap the same correction ledger and
correction audit endpoints for operator scripts, but package-registry evidence,
customer automation proof, and OpenAPI-generated SDK/CLI surfaces remain pending
until retvest-sdk publishes package evidence and owner repos promote customer
automation proof. RIL packet manifests consume the
metadata boundary: correction ids, correction sequences,
pending/applied/rejected/superseded correction statuses, hash metadata, and
receipt digests. retvest-ril owns
packet runtime semantics; public docs here only describe how the metadata fits
together.
When To Correct
- Correct language that overstates what the evidence supports.
- Correct scope when a claim applies only to a tenant, collection, policy, or time period.
- Correct missing caveats, especially legal-review caveats on compliance artifacts.
- Apply a pending correction only when the reviewer can tie it back to the inspected evidence.
- Reject a pending correction when the proposed replacement is unsupported; keep the rejected status visible as metadata-only history.
- Request retry when the pending correction needs operator follow-up before a reviewer can apply or reject it; keep approval and export blocked until the follow-up correction is resolved.
- Block the run instead of applying a correction when the reviewer cannot find supporting evidence for either the original or revised claim.
- Start a new Work Run when the requested change is a new decision rather than a correction to the reviewed record.
Before Recording
- Open the Work Run from the admin Work Control UI or from the pinned correction API path.
- Confirm the tenant, collection, reviewer role, proposed claim, and citation set match the review task.
- Write the corrected language as a concise claim summary. Do not paste raw customer documents, prompts, generated answers, citation text, bearer tokens, private evidence refs, or full UUID-heavy payloads into public notes or support channels.
- Include a reason that explains what changed and which gate drove the change.
- Decide whether the pending correction should be applied, rejected, sent back for a follow-up correction, or whether the whole Work Run should remain blocked.
- Generate one
Idempotency-Keyper user action and reuse that key only when retrying the same correction request.
Human Correction Reasons
Each correction needs a human correction reason written by the reviewer who inspected the evidence. The reason should name the reviewed gate, explain why the original claim was too broad or unsupported, and say whether the correction is pending, applied, rejected, or superseded. Keep it short and evidence-scoped; do not use the reason field as a place to paste raw customer text, generated answers, private evidence refs, citation bodies, idempotency keys, or audit payloads.
Endpoint Setup
Use API keys with the narrowest scope published by the operation metadata. Keep tokens in environment variables or a local secret manager, not in scripts, screenshots, tickets, or docs.
export RETVEST_API_BASE="https://retvest.example.internal"
export RETVEST_API_KEY="<scoped-api-key>"
export WORK_RUN_ID="wr_example"
export CORRECTION_CREATE_URL="$RETVEST_API_BASE/admin/work-runs/$WORK_RUN_ID/corrections"
export CORRECTION_LEDGER_URL="$RETVEST_API_BASE/admin/work-runs/$WORK_RUN_ID/corrections"
export CORRECTION_AUDIT_URL="$RETVEST_API_BASE/admin/work-runs/$WORK_RUN_ID/corrections/audit"
URL-encode WORK_RUN_ID before building the URL when it comes from user input
or an external system.
Submit A Pending Correction
POST /admin/work-runs/{work_run_id}/corrections records a synthetic correction
request as pending without publishing the underlying customer evidence. The
Work Run identifier is in the path so the request body can stay focused on the
correction content and reviewer reason.
curl -i -sS -X POST "$CORRECTION_CREATE_URL" \
-H "Authorization: Bearer $RETVEST_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: correction-wr-example-20260617-001" \
-d '{
"correction_type": "claim_language",
"original_summary": "The evidence pack is legally approved for filing.",
"corrected_summary": "The evidence pack is a starter export marked TEMPLATE - legal review required.",
"reason": "The reviewed evidence supports export readiness, not legal approval.",
"evidence_refs": [
{ "type": "citation", "label": "reviewed-citation-2" },
{ "type": "gate", "label": "legal-review-caveat" }
]
}'
A metadata-only response should be safe to copy into an internal ticket:
HTTP/1.1 201 Created
Content-Type: application/json
{
"correction_id": "wrc_example_001",
"work_run_id": "wr_example",
"correction_sequence": 1,
"correction_status": "pending",
"receipt_type": "correction_recorded",
"audit_packet_ready": false
}
Do not copy raw source text, generated answer text, citation bodies, bearer tokens, or private evidence refs into the request reason or response notes.
Retry With Idempotency-Key
When a network timeout or client crash leaves the write result unknown, retry
the same request body with the same Idempotency-Key. A successful replay must
refer to the same correction id and correction_sequence; it must not append a
second correction to the Work Run.
curl -i -sS -X POST "$CORRECTION_CREATE_URL" \
-H "Authorization: Bearer $RETVEST_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: correction-wr-example-20260617-001" \
-d '{
"correction_type": "claim_language",
"original_summary": "The evidence pack is legally approved for filing.",
"corrected_summary": "The evidence pack is a starter export marked TEMPLATE - legal review required.",
"reason": "The reviewed evidence supports export readiness, not legal approval.",
"evidence_refs": [
{ "type": "citation", "label": "reviewed-citation-2" },
{ "type": "gate", "label": "legal-review-caveat" }
]
}'
{
"correction_id": "wrc_example_001",
"work_run_id": "wr_example",
"correction_sequence": 1,
"correction_status": "pending",
"replayed": true
}
If the same Idempotency-Key is reused with a different body, treat the Problem
result as an operator error and investigate before retrying with a new key.
HTTP/1.1 409 Conflict
Content-Type: application/problem+json
{
"type": "<platform-problem-type-uri>",
"title": "Idempotency conflict",
"status": 409,
"detail": "The idempotency key was already used for a different correction request.",
"category": "idempotency_conflict",
"instance": "<opaque-problem-instance>"
}
The example above shows the public-safe envelope shape only. Replace the type URI,
extension-member names, and instance format with the generated platform-owned
OpenAPI schema once docs/api/openapi.json is committed.
Source-Only SDK Write Example
retvest-sdk source packages now expose correction helpers for the pinned
surface. Lower-level operator scripts may still call the pinned correction paths
directly and keep retry handling explicit. This TypeScript example uses fetch
so it does not claim an OpenAPI-generated client surface or package-registry
availability.
type CorrectionCreateResult = {
correction_id: string;
work_run_id: string;
correction_sequence: number;
correction_status: "pending";
replayed?: boolean;
};
type CorrectionProblem = {
type?: string;
title?: string;
status?: number;
detail?: string;
category?: string;
};
function correctionProblemCategory(problem: CorrectionProblem) {
return problem.category ?? problem.type?.split(/[/:#]/).at(-1);
}
async function correctionRequest<T>(
path: string,
options: RequestInit = {}
): Promise<T> {
const response = await fetch(`${process.env.RETVEST_API_BASE}${path}`, {
...options,
headers: {
Authorization: `Bearer ${process.env.RETVEST_API_KEY}`,
Accept: "application/json, application/problem+json",
...options.headers
}
});
if (!response.ok) {
const problem = (await response.json().catch(() => ({}))) as CorrectionProblem;
if (
response.status === 409 &&
correctionProblemCategory(problem) === "idempotency_conflict"
) {
throw new Error("idempotency_conflict: stop retrying and ask the reviewer");
}
throw new Error(`correction request failed with status ${response.status}`);
}
return (await response.json()) as T;
}
export async function createCorrection(workRunId: string) {
const path = `/admin/work-runs/${encodeURIComponent(workRunId)}/corrections`;
return correctionRequest<CorrectionCreateResult>(path, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Idempotency-Key": "correction-wr-example-20260618-001"
},
body: JSON.stringify({
correction_type: "claim_language",
original_summary: "The evidence pack is legally approved for filing.",
corrected_summary:
"The evidence pack is a starter export marked TEMPLATE - legal review required.",
reason: "The reviewed evidence supports export readiness, not legal approval.",
evidence_refs: [
{ type: "citation", label: "reviewed-citation-2" },
{ type: "gate", label: "legal-review-caveat" }
]
})
});
}
Do not log the request body, Idempotency-Key, bearer token, citation body, or
customer evidence when this helper catches a Problem response.
Handle Problem Responses
Exact Problem JSON field names, type URIs, auth scopes, retry headers, and
validation members come from the platform-owned OpenAPI snapshot once it is
committed. Until then, operator copy and source-only scripts should branch on
status plus the stable problem category, preserve the idempotency key and body
for safe replays, refresh state before retrying conflict cases, and avoid
printing raw request bodies or customer evidence. Public examples should use a
Problem envelope shape with type, title, status, detail, and a bounded
category/code member; do not publish bare { "error": "...", "message": "..." }
responses as correction API examples. Revoked access, unauthorized actors, and
tenant mismatch cases should collapse to safe Problem messaging and must not
reveal raw correction text or whether another tenant's Work Run exists.
For every Problem response shown to an operator or copied into a support case:
- Capture the
X-Request-Idresponse header,request_idresponse member, or the client-generatedX-Request-Idwhen the platform has not returned one; store only the opaque request id, not headers, tokens, payloads, or customer evidence. - Branch on the HTTP status and bounded problem category/code first; use the
free-text
detailonly for local troubleshooting and never paste it into public docs, tickets, screenshots, or analytics. - Treat
Retry-Afteras a wait hint for429and503; when a504includes it, wait before the exact idempotent replay. Auth, tenant, validation, and conflict responses are not retry signals just because a request id exists. - For
version_conflict,invalid_transition, andidempotency_conflict, keep the request id with the local audit trail, refresh the correction ledger, and ask the reviewer to choose again instead of replaying the review decision.
| Condition | Status | Operator action |
|---|---|---|
| Missing or malformed authorization | 401 |
Sign in again or reload the scoped token; do not blind-retry the write. |
| Actor lacks correction permission or tenant scope | 403 |
Escalate access and confirm the Work Run tenant before retrying. |
Correction history cursor is invalid (invalid_cursor) |
400 |
Drop the cursor, reload the first history page, and keep rendered rows keyed by correction id plus correction_sequence. |
| Work Run is deleted or unavailable | 404 |
Show the safe unavailable state, reload the source task if access should exist, and do not reveal whether a cross-tenant Work Run exists. |
Reused Idempotency-Key with a different body (idempotency_conflict) |
409 |
Stop the retry path; generate a new key only after the reviewer confirms this is a new correction action. |
| Expected correction sequence is stale | 409 |
Refresh GET /admin/work-runs/{work_run_id}/corrections, compare the latest correction_sequence, and resubmit only if the pending correction still applies. |
| Invalid lifecycle transition | 409 |
Refresh the correction ledger, show the latest pending/applied/rejected/superseded state, and do not retry apply, reject, or request retry until the reviewer chooses a valid next action. |
Correction already finalized (already_finalized) |
409 |
Show the latest terminal review decision, keep the row metadata-only, and do not send another apply, reject, or retry request for that correction. |
| Rate limit or burst guard | 429 |
Respect Retry-After for safe reads or exact idempotent replays only; keep the same body and Idempotency-Key. |
| Platform temporarily unavailable | 503 |
Retry safe reads or the exact idempotent replay after Retry-After; do not create a new correction key while the write result is unknown. |
| Gateway or upstream timeout | 504 |
Retry the same idempotency key and request body before changing reviewer state, then refresh the ledger to confirm whether the correction was recorded. |
Missing Idempotency-Key |
422 |
Create one key for this user action and retry the same body once. |
| Invalid payload | 422 |
Fix the validation errors, remove raw customer text, and use a new key if the request body changes. |
Do not paste raw Problem detail values, request bodies, idempotency keys,
customer text, generated answers, citation bodies, or private evidence refs into
public docs, support tickets, or screenshots.
Read The Correction Ledger
GET /admin/work-runs/{work_run_id}/corrections returns the correction ledger
for a Work Run. Use it to confirm the current sequence, empty states, retry
results, pending corrections, applied corrections, rejected corrections, and
whether the correction history explains the final approval or blocked decision.
Correction history is sequence-sorted correction history: render rows by
correction_sequence, key them by correction id plus sequence, and treat
pending, applied, rejected, and superseded statuses as immutable
history rows. Applying, rejecting, or requesting retry for a correction does not
overwrite the earlier pending row or expose raw correction text.
curl -sS "$CORRECTION_LEDGER_URL?limit=25" \
-H "Authorization: Bearer $RETVEST_API_KEY"
{
"items": [
{
"correction_id": "wrc_example_001",
"work_run_id": "wr_example",
"correction_sequence": 1,
"correction_type": "claim_language",
"correction_status": "pending",
"receipt_type": "correction_recorded",
"recorded_at": "2026-06-17T10:15:00Z"
},
{
"correction_id": "wrc_example_001",
"work_run_id": "wr_example",
"correction_sequence": 2,
"correction_type": "claim_language",
"correction_status": "applied",
"receipt_type": "correction_applied",
"recorded_at": "2026-06-17T10:18:00Z"
},
{
"correction_id": "wrc_example_002",
"work_run_id": "wr_example",
"correction_sequence": 3,
"correction_type": "claim_language",
"correction_status": "rejected",
"receipt_type": "correction_rejected",
"rejection_reason_code": "unsupported_evidence",
"recorded_at": "2026-06-17T10:20:00Z"
},
{
"correction_id": "wrc_example_003",
"work_run_id": "wr_example",
"correction_sequence": 4,
"correction_type": "claim_language",
"correction_status": "superseded",
"receipt_type": "correction_superseded",
"approval_export_blocked": true,
"recorded_at": "2026-06-17T10:22:00Z"
}
],
"pagination": {
"limit": 25,
"next_cursor": null
}
}
When next_cursor is present, pass it back on the same endpoint instead of
guessing sequence offsets:
curl -sS "$CORRECTION_LEDGER_URL?limit=25&cursor=cursor_example" \
-H "Authorization: Bearer $RETVEST_API_KEY"
If the cursor returns an invalid_cursor Problem, discard only that cursor and
reload the first page. Do not clear already visible pending, applied, or rejected
statuses until the replacement page arrives, and do not log the cursor value.
Rejected Corrections Stay Append-Only
A rejected correction is useful evidence: it proves a reviewer inspected a
pending change, found that the evidence did not support applying it, and
preserved that decision without publishing raw correction text. Operator copy
should say rejected and a bounded reason code such as unsupported_evidence;
it should not show rejected correction bodies in audit diagnostics, packet
manifests, or support tickets.
When a reviewer requests retry, append a new pending row and keep
approval/export blocked until the follow-up correction is resolved. When a later
correction replaces an earlier effect, preserve the superseded row with its own
correction_sequence. Do not rewrite the rejected or superseded row to look
applied, and do not rewrite a pending row to hide that it waited for review.
Read The Correction Audit Ledger
GET /admin/work-runs/{work_run_id}/corrections/audit returns audit-oriented
events for correction activity. The audit read is for governance and proof
review; keep public examples metadata-only and omit corrected text when it would
expose customer content.
curl -sS "$CORRECTION_AUDIT_URL?limit=25" \
-H "Authorization: Bearer $RETVEST_API_KEY"
{
"items": [
{
"audit_id": "aud_example_001",
"work_run_id": "wr_example",
"correction_id": "wrc_example_001",
"correction_sequence": 1,
"event_type": "correction.created",
"correction_status": "pending",
"actor_role": "reviewer",
"visibility_scope": "reviewer_audit",
"receipt_id": "rct_example_001",
"recorded_at": "2026-06-17T10:15:00Z",
"prev_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
"row_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
"receipt_digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
},
{
"audit_id": "aud_example_002",
"work_run_id": "wr_example",
"correction_id": "wrc_example_001",
"correction_sequence": 2,
"event_type": "correction.applied",
"correction_status": "applied",
"actor_role": "reviewer",
"visibility_scope": "reviewer_audit",
"receipt_id": "rct_example_002",
"recorded_at": "2026-06-17T10:18:00Z",
"prev_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
"row_hash": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
"receipt_digest": "sha256:4444444444444444444444444444444444444444444444444444444444444444"
},
{
"audit_id": "aud_example_003",
"work_run_id": "wr_example",
"correction_id": "wrc_example_002",
"correction_sequence": 3,
"event_type": "correction.rejected",
"correction_status": "rejected",
"actor_role": "reviewer",
"visibility_scope": "reviewer_audit",
"receipt_id": "rct_example_003",
"rejection_reason_code": "unsupported_evidence",
"recorded_at": "2026-06-17T10:20:00Z",
"prev_hash": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
"row_hash": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
"receipt_digest": "sha256:6666666666666666666666666666666666666666666666666666666666666666"
},
{
"audit_id": "aud_example_004",
"work_run_id": "wr_example",
"correction_id": "wrc_example_003",
"correction_sequence": 4,
"event_type": "correction_superseded",
"correction_status": "superseded",
"actor_role": "reviewer",
"visibility_scope": "reviewer_audit",
"receipt_id": "rct_example_004",
"approval_export_blocked": true,
"recorded_at": "2026-06-17T10:22:00Z",
"prev_hash": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
"row_hash": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
"receipt_digest": "sha256:8888888888888888888888888888888888888888888888888888888888888888"
}
],
"pagination": {
"limit": 25,
"next_cursor": null
}
}
Role-Aware Audit Visibility
Correction audit views should be role-aware and metadata-only:
| Viewer | Public-safe audit visibility |
|---|---|
| Operator | Correction id, correction_sequence, correction_status, receipt type, bounded reason codes, and timestamps. |
| Reviewer or admin | Operator metadata plus actor role, audit event type, hash-chain metadata, receipt digest, approval/export blocked reason, and visibility scope. |
| Unauthorized, revoked, or tenant-mismatched actor | Safe Problem response or unavailable state only; do not reveal whether a cross-tenant Work Run or correction exists. |
No role should receive raw original assertions, corrected assertions, observed consequences, request bodies, idempotency keys, customer text, generated answers, citation bodies, private evidence refs, or rejected correction text through audit metadata.
SDK, CLI, And RIL Packet Reads
The committed correction OpenAPI slice covers the correction read paths, but SDK and CLI correction reads should still use source-package helpers or lower-level JSON requests until generated SDK distribution evidence exists. Operator scripts should print metadata needed for review and avoid printing original or corrected customer text.
type CorrectionHistory = {
items: Array<{
correction_id: string;
correction_sequence: number;
correction_status: "pending" | "applied" | "rejected" | "superseded";
receipt_type: string;
rejection_reason_code?: string;
approval_export_blocked?: boolean;
recorded_at: string;
}>;
pagination: { limit: number; next_cursor: string | null };
};
type CorrectionAudit = {
items: Array<{
audit_id: string;
correction_id: string;
correction_sequence: number;
correction_status: "pending" | "applied" | "rejected" | "superseded";
event_type: string;
visibility_scope: string;
receipt_id: string;
rejection_reason_code?: string;
approval_export_blocked?: boolean;
prev_hash: string;
row_hash: string;
receipt_digest: string;
}>;
pagination: { limit: number; next_cursor: string | null };
};
export async function readCorrectionHistory(workRunId: string, cursor?: string) {
const search = new URLSearchParams({ limit: "25" });
if (cursor) search.set("cursor", cursor);
const history = await correctionRequest<CorrectionHistory>(
`/admin/work-runs/${encodeURIComponent(workRunId)}/corrections?${search}`
);
return history.items
.toSorted((left, right) => left.correction_sequence - right.correction_sequence)
.map((item) => ({
correctionId: item.correction_id,
sequence: item.correction_sequence,
status: item.correction_status,
receiptType: item.receipt_type,
rejectionReasonCode: item.rejection_reason_code,
approvalExportBlocked: item.approval_export_blocked,
recordedAt: item.recorded_at
}));
}
export async function readCorrectionAudit(workRunId: string) {
const audit = await correctionRequest<CorrectionAudit>(
`/admin/work-runs/${encodeURIComponent(workRunId)}/corrections/audit?limit=25`
);
return audit.items.map(auditMetadata);
}
function auditMetadata(event: CorrectionAudit["items"][number]) {
return {
auditId: event.audit_id,
correctionId: event.correction_id,
correctionSequence: event.correction_sequence,
correctionStatus: event.correction_status,
eventType: event.event_type,
visibilityScope: event.visibility_scope,
receiptId: event.receipt_id,
rejectionReasonCode: event.rejection_reason_code,
approvalExportBlocked: event.approval_export_blocked,
hashChain: {
prevHash: event.prev_hash,
rowHash: event.row_hash
},
receiptDigest: event.receipt_digest
};
}
A RIL packet manifest should carry only the correction metadata needed to prove continuity with the governed Work Run state:
{
"packet_manifest": {
"work_run_id": "wr_example",
"corrections": [
{
"correction_id": "wrc_example_001",
"correction_sequence": 1,
"correction_status": "pending",
"prev_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
"row_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
"receipt_digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
},
{
"correction_id": "wrc_example_001",
"correction_sequence": 2,
"correction_status": "applied",
"prev_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
"row_hash": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
"receipt_digest": "sha256:4444444444444444444444444444444444444444444444444444444444444444"
},
{
"correction_id": "wrc_example_002",
"correction_sequence": 3,
"correction_status": "rejected",
"rejection_reason_code": "unsupported_evidence",
"prev_hash": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
"row_hash": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
"receipt_digest": "sha256:6666666666666666666666666666666666666666666666666666666666666666"
},
{
"correction_id": "wrc_example_003",
"correction_sequence": 4,
"correction_status": "superseded",
"approval_export_blocked": true,
"prev_hash": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
"row_hash": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
"receipt_digest": "sha256:8888888888888888888888888888888888888888888888888888888888888888"
}
]
}
}
This docs repo does not claim customer packet verification proof. Treat packet
manifest shape, exact digest source, and runtime validation behavior as
retvest-ril owner-repo semantics until the reviewed artifacts are published.
Block Or Approve After Correction
Use a blocked decision when the evidence does not support either the original claim or a narrow applied correction. Approve only after every pending or retry follow-up correction gate is resolved and the applied correction, reviewer identity, role, timestamp, approval receipt, and vault commit receipt can be recorded by the platform.
The block and approval decision APIs are Work Run state-transition operations
owned by retvest-platform; this page intentionally pins only the correction
create, correction ledger, and correction audit-read paths. Confirm the exact
decision endpoint, scope, and response schema in the generated OpenAPI snapshot
before automating approval or block actions.
Operator Checklist
- The correction explains what changed and why.
- Pending corrections are applied only when the replacement claim is narrower than or equal to the reviewed evidence.
- Rejected corrections remain visible as metadata-only rows with bounded reason codes.
- Retry follow-up corrections remain visible as metadata-only pending rows and keep approval/export blocked until resolved.
- Legal-review caveats remain visible where required.
- The
Idempotency-Keyis unique to the correction action and reused only for exact retries. - The correction ledger shows the expected
correction_sequence,correction_status, and unresolved follow-up state. - 401, 403, 409, and 422 Problem responses have been handled according to the status runbook before another write is attempted.
- The audit ledger has the role-appropriate correction event and receipt metadata needed for proof review.
- The run is blocked when evidence is missing or contradictory.
- The approval path records reviewer identity, role, timestamp, receipt, and vault commit metadata before anyone treats the run as committed.
- The exported audit packet comes from the same governed Work Run state.
Related Docs
- Compliance Work Runs for the governed review loop.
- Create Work Run corrections for developer create examples, idempotency keys, request ids, retry-after handling, and typed Problem codes.
- List Work Run corrections for developer pagination, cursor, request-id, retry-after, and role visibility examples.
- Apply Work Run corrections and Reject Work Run corrections for expected-version handling and unsafe review retry boundaries.
- Request retry for Work Run corrections for
retry-created pending rows,
expected_work_run_version, and approval/export gate examples. - Correction SDK examples for source-only create, list, apply, reject, idempotency, expected-version, typed Problem, and retry examples.
- API reference for OpenAPI publication status and auth conventions.
- Admin guide for audit, compliance, and evidence operations.