feedback
Wire-format contract for the Mastra plugin’s user-feedback surface:
the response header that carries a turn’s MLflow trace id back to the
browser, plus the request / response schemas for the feedback route
(MASTRA_ROUTES.feedback).
Feedback is logged to MLflow as a trace assessment (thumbs up/down
as a boolean, or a freeform comment as text), so it must be tied to a
trace. The plugin stamps the active OTel trace id of each turn on the
response as MLFLOW_TRACE_ID_HEADER (tr-<hex>); the client
captures it per assistant message and sends it back here when the
user reacts. Kept dependency-free so both the browser client and the
server plugin share one definition.