e5ec4abe043cb790c684516c2716da6364d23c1b
Migration #24 adds routing_labels, and CorrectTurn writes it. Nothing calls it yet; the wire and the surface are the next commits. Separate table, and that is the whole retention argument. A trace is a transcript and expires in 14 days. A correction is a label the owner wrote by hand, and it is the only supervised signal this box will ever get, so it is promoted out at the moment he writes it and kept. should_be may be empty. "That was wrong" with no target is a usable negative and must not cost more to give than the full answer. UNIQUE(utterance) so a second correction replaces the first, because his second answer is the one he meant. The label and the trace stamp go in one transaction: a stamp with no label loses the signal when the trace expires. ErrNoSuchTrace is held apart from a write failure. Correcting a turn older than the bound is the expected case, and the surface should say so rather than report a broken database. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117tgnmbgZpHVV3XSNw8Qua
Description
No description provided
Languages
Go
97.1%
HTML
0.9%
Shell
0.6%
CSS
0.5%
Makefile
0.3%
Other
0.6%