Quality and feedback
Status: Ready
Truth label: Limited
Audience: Fleet operator, System designer
Reader outcome: Record a judgment against the exact thing it is about, and read the resulting evidence without overstating what it proves.
Last verified: 2026-09-12
Full guides: Task feedback, Reply ratings, Polish meaning review, Meaning verifier trials, Compare writing, Usage and savings measurement
Which judgment goes where
Five feedback surfaces exist because five different things can be wrong. Each binds to a different identity.
| Surface | Target | Effect on retrieval |
|---|---|---|
| Reply ratings | One chat turn | None |
| Task feedback | A whole task or one attempt | Weights linked learnings |
| Output feedback | An exact artifact version, or exact lesson text | Overrides broader weighting for that exact text |
| Polish review | One polish candidate | Chooses conversation wording, creates regression cases |
| Writing comparison | A writing case across three setups | None automatic |
Reply ratings
Each recorded chat reply has Good reply, Needs work, and Rating details. 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 or 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, so 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. Changing a rating retains earlier versions. A stale save preserves the editor and asks for a reload. Retrying an identical save does not append another version.
Open Reply ratings to filter by voice id, rating, and reason. Counts include all matching replies, and 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.
Good reply replaces current reasons with good-voice and clears the current comment. Earlier comments stay in history. Use Rating details when a more specific correction is needed.
Storage is chat_turn_feedback and chat_turn_feedback_versions in
writing.sqlite3. No index projection or model call is involved.
Task feedback
Use the thumbs buttons or Feedback history on a completed or failed task in Work. The editor shows the exact task id, the current rating and comment, and prior feedback.
Choose Whole task or One attempt, then load that target. The attempt field uses its exact run id, and the current run is suggested when available.
| Target | Applies to |
|---|---|
| Task rating | Linked learning without a more specific attempt rating |
| Attempt rating | Only learning carrying that exact task and run pair |
Legacy learning with no run id is not guessed into an attempt. New worker learning saves its run id.
Positive, neutral, and negative ratings are available, and legacy values 2 through 5 remain readable and selectable. Choose Neutral to remove that target's positive or negative weighting. A task-level correction preserves more specific attempt ratings, and rating metadata changes do not re-embed lesson text.
Cortex reports how many learning records received the current rating, when none matched, and when a derived update failed. Retry learning/index updates applies current ratings and retries failed event indexing without creating more feedback.
New feedback is canonical in feedback.sqlite3. The feedback index and lesson
rating metadata are derived copies, and a derived update can fail after the
canonical rating was saved. The interface reports that condition rather than
claiming the rating affected recall.
Positive and negative task-learning factors run through shared source filtering. Their current values are fixed at 1.2 and 0.5, and a neutral rating uses 1.
Output feedback
Choose Rate this version in retained deliverables, or Rate lesson in Memory. Output feedback in Manage Cortex browses all saved targets with paging, including withdrawn judgments and historical versions.
| Target | Identity |
|---|---|
| Artifact | Run id, path, version, and SHA-256 |
| Lesson | Its id and a hash of the entire text |
Brain asks Central for the retained file and its actual task lineage before accepting an active artifact rating. Unretained bytes and mismatching hashes cannot receive one. Text evidence is copied into feedback history up to 128,000 characters with an explicit completeness flag. Binary ratings retain identity, not another binary copy.
For lessons, shared retrieval applies the current active exact-text judgment after scope filtering and before ranking. It takes precedence over an attempt or whole-task rating. Neutral overrides that broader weighting with a factor of 1, and withdrawing the judgment restores the broader rating.
Edited text needs its own review. No old lesson judgment is projected onto edited bytes, and no lesson text is re-embedded to apply this override. Memory browse shows the effective rating, and retrieval traces identify the judgment used.
Artifact ratings are annotations. They do not silently rate a whole attempt or infer which lesson came from that artifact.
Successful request retries remain readable after source deletion or Central downtime. New active saves recheck the source, while withdrawal uses retained history and works after deletion. If the rating database cannot be read, retrieval reports that event and uses existing task and attempt weights.
Polish meaning review
Polish can change wording without locking entire sentences. Exact code, URLs, citations, quoted phrases, and numbers stay locked. A second set of checks compares clauses for detected negation, opposite outcomes, swapped relationships, entities, added or dropped claims, modality, predicates, and sequence.
| Outcome | Result |
|---|---|
| Detected contradiction or lost claim | Rejects the candidate |
| Uncertain predicate, modality, or sequence change | Needs review |
| New explicit request-coverage or format failure | Rejects the candidate |
| Reduced mechanical style score | Rejects the candidate |
Both rejection and needs review keep the draft before polish.
Choose the wording
A reply with an attempted polish has Voice polish: before and after beneath it. The panel opens automatically for needs review and shows both texts, a word diff, flagged clauses, explicit request gaps, and any model judgment.
| Action | Effect |
|---|---|
| Keep draft | Saves a judgment and uses the pre-polish draft in this conversation |
| Use candidate | Saves a judgment and replaces this conversation's reply text. The original trace is unchanged |
| Edit and teach this wording | Opens the voice editor with both texts. Acceptance and learning approval remain separate |
| Ask to fill request gaps | Prepares a follow-up in the composer for you to review and send |
Record a reason and note before choosing. Stale judgments require reloading the review, and retries of the same judgment do not create duplicate versions. A missing or changed retained artifact cannot be silently substituted with today's generated wording.
Reasons meaning changed, dropped fact, and added claim create a private regression case containing the original request and both texts. The case initially expects rejection. Automatic capture requires each side to be at most 100,000 characters and the brief at most 20,000. A larger turn still saves its judgment and reports that a shorter case must be authored separately.
The local meaning verifier
Chat defaults includes Meaning verifier and an optional Ollama model override. A blank model uses the polish model.
| Mode | Behavior |
|---|---|
| Off | Run only deterministic checks |
| Advisory | An eligible candidate receives a local model check. A valid negative judgment rejects it. Unknown or unavailable judgments leave the deterministic decision in place |
| Required | Unknown or unavailable judgments keep the draft for review |
The verifier never upgrades a deterministic rejection or review requirement. It runs after exact, claim, and brief rejection checks, and uses only an Ollama endpoint classified as local by the turn's captured host declarations. Malformed JSON, inconsistent judgments, and invalid clause indices become unknown. Its call, model, and token usage are reported separately from the polish call.
The model judgment is advisory evidence even in required mode.
Manage private cases
Open Polish review cases to page through, create, edit, version, restore,
export, import, or delete a case and its history. The editable JSON has
class, draft, candidate, brief, expected with values accept, review,
or reject, and note.
Import creates an unsaved new case. Restore creates a new version when saved. Deleting a case leaves earlier turn judgments and original traces intact. The list pages 50 cases, and each case and judgment shows its newest 100 versions.
Coverage limits
Clause alignment has a 256-clause limit, and larger candidates require review. Entity and predicate recognition uses finite English lexical rules, so scope changes, pronoun references, idioms, unknown predicates, compound relations, and subtle qualifications can escape them. Repeated clauses and legitimate extensive paraphrases can produce false flags. The optional model can also be wrong.
Request checks recognize explicit word limits, paragraph counts, bullets, a subject line, and exact values, quotes, URLs, and citations. Formatting limits are not treated as numbers the answer must print. Missing request entities are advisory, existing draft gaps are displayed, and polish is not asked to invent missing content.
Meaning verifier trials
Open Manage Cortex > Meaning verifier trials to compare local model judgments with public synthetic cases and private cases created in polish review. This evaluates the checker, not personal voice fidelity or detector performance.
- Select case checkboxes. Expand case wording to inspect each original, candidate, and request. Private cases carry their current saved revision.
- Enter a title and an optional Ollama model. A blank model uses the saved verifier model, then the polish model.
- Preview. Cortex shows the resolved model, the local-host declaration, the context budget, the selected versions, the case hash, and the implementation hash. No model call occurs during preview.
- Start the previewed trial. Changed cases or settings require another preview. One trial can be queued or running at a time.
Each run freezes complete case inputs, model selection, endpoint and context settings, and a summary of the checker implementation. Later case edits do not change those retained copies. A model name does not pin model weights, and temperature zero does not prove repeatability.
Reading results
Results separate valid judgments, unknown outputs, false accepts, and false rejects by case class. An accept or reject label supplies an expected answer. A review label supplies no accuracy truth: its judgment is retained but contributes no correct, false-accept, or false-reject count. Unknowns remain visible rather than being counted as equivalent.
Cancel remaining cases fences the run's later writes and prevents subsequent cases from being sent. It cannot recall an already submitted request, and late output is discarded. A 180-second case timeout fails the trial and stops its remaining cases. A lost progress lease becomes interrupted: use Load request as a new trial and preview to retry.
The local-host declaration is checked again before every case. Revocation stops further cases. No private case text is sent to a hosted provider by this runner.
| Bound | Value |
|---|---|
| Cases per trial | 1 to 40 distinct cases |
| Serialized case inputs | 2 MB |
| Results list page | 50 trials |
Runs live in revision_trials inside writing.sqlite3. Public synthetic
fixtures ship with Brain and contain no operator writing.
From a repository checkout, python -m evals.revision provides a local command
line trial over the public labeled set, with optional --include-operator-cases
and --model. It writes the same managed trial history, so the run opens in
Cortex for inspection, export, or deletion.
Compare writing
Open Manage Cortex > Compare writing.
Build a case
- Create a case with a writing request and your reference writing. Put all facts and output constraints in the request. The reference, review notes, required-term checks, citations, and review word limit are reserved for evaluation and are never appended to generation prompts.
- Label the audience, format, authorship, and split. Held out for evaluation reserves writing for checking results. Development case suits refining a profile. These labels are operator declarations, not evidence that a model has never seen similar writing.
- Choose local-only processing or allow local and cloud. Local-only cases require both a local generation endpoint and local example-search embeddings. Reference text itself is never sent to the generation or embedding provider by this workflow.
- Save the case. A saved revision is required before generation. Cortex warns about lexical overlap with other cases. Cases and their reference text are not ingested into knowledge, conversation history, or the learning bank.
- Choose an operator voice, provider, and model. Optional temperature, top-p, seed, and reasoning effort are checked against the existing provider controls. Blank controls use provider defaults: this form does not inherit hidden sampling values from chat.
Generate and review
Generate three candidates makes three generation requests. Results and progress are saved on Brain, so closing the dialog or reloading does not discard the run.
| Setup | Delivery guidance | Examples |
|---|---|---|
| Baseline | Brain default register | None |
| Profile only | Selected operator register | None |
| Approved examples | Selected operator register | Eligible static pack examples and retrieved approved examples |
All three use the same system-prompt builder, configured user profile, request, model, sampling controls, and captured style rules. Baseline means Brain's default writing behavior including its shared communication instructions. It does not mean a bare model prompt. Comparison generation does not bind tools, search knowledge, retrieve conversations, execute tasks, or run polish. All setups use explicit draft perspective.
Review candidates A, B, and C against the frozen request and reference. Rate resemblance to your voice, factual meaning, and instruction compliance. Choose a preferred candidate, a tie, or none acceptable. Optional edited wording and self-reported editing seconds record the effort needed to make the result usable.
Save the review to reveal the writing setups, example evidence, mechanical checks, and timing. Only the first review is recorded as blind. Later corrections append a new review version, retain prior judgments, and are labeled non-blind.
The server randomizes candidate labels and generation order separately, and withholds setup identities, prompt snapshots, per-candidate timing, and mechanical checks until the first saved review. The writing itself can still suggest how a candidate was produced, so this is an aid to review rather than proof of perfect blinding.
What the evidence means
After review, each candidate shows word count, missing required terms and citations, banned terms, output-lint changes, latency, and reported token usage. A term appearing in an answer does not prove the claim is correct: both "ship Friday" and "do not ship Friday" contain Friday.
edit_fraction is one minus the character-sequence similarity between the
generated and edited wording. It is a bounded comparison aid, not a measured
percentage of keystrokes or time saved. Editing seconds are entered by the
reviewer, and absence means unmeasured rather than zero. Monetary cost is
unmeasured. Model identifiers and fingerprints are retained when the provider
reports them: a requested model name alone does not prove a fixed model
version.
The exported reviewed comparison includes the frozen case revision, prompt texts and hashes, profile definition, pack content hashes, exact eligible example records, style rules and hash, requested and effective controls, and provider response metadata. It contains private writing and should be handled like a voice pack export.
One run produces one sample per setup. Repeat cases with representative formats and authentic reference writing before inferring a trend.
Suites and batches
Open Evaluation suites and batch comparisons. Save a named collection of 1 to 20 cases, choose the normal voice and model controls, and choose 1 to 3 repeats. Generation is capped at 20 comparisons, or 60 candidate requests, per batch. Each repeat is another sample of the same case, not another independent case.
A batch freezes the selected suite revision, every case revision, and the comparison settings before scheduling generation. A preparation conflict or an invalid case leaves no partial batch. Editing a suite or case later does not rewrite recorded batches.
Open a saved batch to follow progress, review its comparisons, cancel later requests, export it, or delete it. Completed results survive cancellation. Export before review preserves each comparison's blind state. Repeating the identical batch id and settings does not schedule duplicate generation.
Writing review results defaults to held-out cases and each comparison's first blind judgment. Choose development or all cases, latest judgments, or only the opened batch when useful. The display separates groups by captured profile, pack and style hashes, model, controls, and provider-reported model versions and fingerprints. It counts complete reviewed runs, distinct case versions, setup wins, ties, unacceptable results, voice ratings, factual and instruction judgments, and reported editing effort.
Unreviewed and incomplete runs count as skipped and do not improve the displayed scores. At most the newest 5,000 comparisons are inspected per report, with a visible truncation flag.
Learning isolation
Comparison example selection excludes lexical matches to the current request and reference and to all retained held-out case versions, checking both static and retrieved examples. The check normalizes word sequences and flags exact equality, containment when both samples have at least eight words, or sequence similarity of at least 0.85. This catches common leakage, not every paraphrase or contamination already present in profile instructions, model training, or configured user context.
Draft learning approval also rejects overlap with retained held-out case versions. The wording can still be saved without learning approval. Deleting a case and its versions removes that case's protection.
Prepared comparisons freeze example text. Before the examples candidate starts, Brain rechecks that the selected examples still exist and remain eligible. Changed or withdrawn examples make that candidate fail visibly.
Run recovery
Runs claim a single execution owner. Repeated submission of the same run id and request returns the same record without another generation pass. Cancellation immediately stops accepting results.
| Timer | Value |
|---|---|
| Candidate timeout | 180 seconds |
| Queued record expiry without a claim | 60 seconds |
| Claimed run recovery window | 11 minutes |
Reading an expired active run marks it interrupted, and Cortex can repeat it with a new id. Recovery never silently repeats paid calls after a server restart. Batch queues reserve 60 seconds plus 11 minutes per member.
Analytics
Open the Analytics tab. A KPI row carries the headline figures for the selected window, and two inline charts sit under it: one over egress and one over checkpoint decisions. Every chart segment is labelled with its own count, because status colours are not separable for every reader and are never the only carrier of meaning.
Egress
Egress analytics summarize task and chat provider usage, token counts, prompt shape, duration, and reported cost. Cost is authoritative only when the engine reports it.
Outcomes
Outcome analytics join checkpoint grades with run lineage. Retrieval outcome lift is observational. It is not an experiment and does not establish causality. The current implementation also treats a QA-gate metadata field as evidence of retrieval, so use that metric directionally until the classification is corrected.
Scope audit
Scoped HTTP search writes counts of returned and denied records to a scope audit log. This measures denials seen by that filter. It cannot detect retrieval paths that bypass the filter.
Usage and savings measurement
Open Analytics > Usage and savings measurement. This report exists to compare a lighter method, a lower model or effort, fewer helpers, or fresh versus resumed context on measured requests, acceptance, and review minutes, rather than on CLI estimates. It separates native request usage, Forge task attempts, operator acceptance, and actual account observations, and it does not establish savings by itself.
Collection. Workers on current code scan their own Claude transcript root
(~/.claude/projects by default) every 300 seconds and send metadata only:
request identity, timestamps, parent session and agent identity, actual
model, project and branch, uncached input, cache reads, cache writes, and
output. No prompts, tool arguments, or response prose are stored. Streamed
blocks and copied transcripts merge to the largest cumulative count per
request rather than summing duplicates. Collection sources and refresh
edits Central's host-specific roots and interval; Collect now scans them.
Everything lands in usage.sqlite3 under the data root. Missing, partial,
and stale sources stay visible, and worker coverage lists instances that have
never reported.
Comparison. Pause the project, create matched tasks with the same acceptance checks, then in Task comparison settings load each pending task and give it a category, account label, comparison name, variant, helper policy, and context strategy. These labels describe the experiment and change nothing about execution. An optional advisory estimate budget displays consumption after terminal reports; it does not stop a run or add a turn limit. Every claim freezes the labels, and a concurrent edit returns a conflict. Unpause, run, review at the normal final checkpoint with a grade, and record operator editing and review minutes. Plan approval and model completion do not count as acceptance.
Reading it. The accepted-task estimate covers every recorded attempt, including attempts older than the window. Only fully priced tasks enter cost averages, and the denominator is shown. Tasks whose labels changed between attempts form a separate mixed-history group. Helpers are reported at request level and a CLI run estimate can already include them, so never add those two totals. Claude input excludes cached reads and writes while Codex and LangChain chat input include them; the normalizer accounts for that before pricing.
Account observations. In Subscription charges and allowance, record allowance snapshots (period, window label, percentage used) and subscription, extra-usage, and API charges as separate dated observations. Two snapshots in the same account, provider, window, and period show consumed percentage points; a decrease is flagged rather than becoming negative. Fees are summed by observation date, not prorated. Erroneous rows can be corrected or withdrawn and earlier versions stay in history.
Prices. Model prices for usage estimates takes operator-supplied USD rates per million tokens for fresh input, output, cache reads, and cache writes, with a source note. Exact model matches win, then the longest prefix. No price table ships with the application. New runs freeze the rates in force at completion; older runs and native request estimates use the current table. None of these estimates is a subscription charge.
Export measurements downloads the loaded report as JSON. Cohorts are observational: review difficulty, verification scope, and editing effort before attributing a difference to a variant.
What none of this proves
These records support future comparisons. By themselves they do not establish improved voice quality, a causal method or model improvement, or a reliable detector outcome. Authentic reference writing and repeated operator review remain necessary.