Cortex reply ratings
Status: Ready
Truth label: Current
Audience: Fleet operator
Reader outcome: Use cortex reply ratings in Cortex, with every control, its verification, and its limits stated.
Last verified: 2026-09-13
Open Manage Cortex > Reply ratings. See Cortex management for search and keyboard access.
Each recorded chat reply has Good reply, Needs work and Rating details controls. Good reply records a positive rating immediately. Needs work opens reasons and a comment before saving. Reasons cover good voice, generic phrasing, wrong tone, excessive/insufficient length, factual errors and format errors.
Ratings attach to the exact retained turn. Brain supplies the voice, provider, model and conversation identity from its trace. The caller cannot substitute that context. A rating does not approve a voice example, change retrieval weights or alter the original response.
Saved ratings appear beside the reply and persist in the conversation cache and named snapshots. Rating details loads the current server record. Changing a rating retains earlier versions. A stale save preserves the editor and asks for reload; retrying an identical save does not append another version.
Open Reply ratings in Chat to filter by voice ID, rating and reason. Counts include all matching replies; the results page contains up to 50 records. Reason counts can overlap because one reply can have multiple reasons. Open a row to correct its rating, inspect its retained writing turn, read its newest 100 rating versions or delete the rating and its history. Export downloads the current filtered page as JSON, including comments. Deletion updates matching reply badges in the current browser and leaves the original reply intact.
Good reply replaces current reasons with good-voice and clears the current comment; earlier comments stay in history. This makes the quick action a new positive judgment. Use Rating details when a more specific correction is needed.
API and storage
GET /chat/turns/{id}/feedback: current feedback, revision and history. An unrecorded turn is unavailable; a recorded unrated turn has revision zero.PUT /chat/turns/{id}/feedback:{base_revision, rating, reasons, comment}. Rating is -1 or 1. Stale edits return 409.DELETE /chat/turns/{id}/feedback?base_revision=...: remove the current rating and history with a revision guard.GET /chat/turn-feedback?register_id=&rating=&reason=&limit=&offset=: filtered records, total and reason counts.
chat_turn_feedback and chat_turn_feedback_versions live in
DATA_DIR/writing.sqlite3. They store judgments and copied trace identity;
no Chroma projection or model call is involved. Task feedback remains a separate
task-wide workflow.
Checks exercise retained identity, unavailable turns, edit conflicts, duplicate retries, filtering/counts/paging, deletion and unchanged learning consent. The browser flow covers rating, reload, correction, export and badge updates against private fixtures. These records support future comparisons; they do not by themselves establish improved voice quality.