---
title: "Add Test Correction Internal"
method: POST
path: "/v1/sessions/internal/{session_id}/test-corrections"
tags: ["sessions"]
---

# Add Test Correction Internal

`POST /v1/sessions/internal/{session_id}/test-corrections`

The agent captures a live correction during a test-mode call (the tester
telling it its CONFIGURED behavior is wrong). Persist-on-detect: one row per
correction; the batch is reconciled and applied to the template at session
end. Deliberately separate from session_notes so the agent's note-to-self
ledger is untouched. See
plans/pending/template-patch-agent-and-correction-sources.md.

## Path parameters

- `session_id` string, required

## Request body

- TestCorrectionPayload
  - `what_was_wrong` string, required
  - `how_it_actually_is` string, required
  - `target_hint` string, nullable
  - `visual_context` string, nullable
  - `created_turn` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/roxels/apis/interviewer.md) · [All operations](https://skmtc.dev/roxels/apis/interviewer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roxels/interviewer/revisions/4ef48ed226e1/schema)
