Repository navigation
Conversation
Interaction feedback gains a source: an end user's vote, an implicit signal the reporting application observed (named by `signal`), or a dashboard user's own good/bad review of a trace. - PUT/DELETE <mount>/api/traces/:id/review stores one review per dashboard user per trace. The ingest key cannot write or overwrite one. - GET <mount>/api/feedback/attention ranks the traces in a window by negative feedback and failures, drops the ones a reviewer marked good, and groups them by end user and session (the root span's `user.id` and `session.id`). The same report is the `traces_attention` MCP tool and `activeagent traces attention`. - The Traces page carries a Needs attention panel, and a trace's detail lists its feedback with the reviewer's controls. - Trace listings carry each trace's feedback counts. Migration 036 adds source, signal and reviewer_id to interaction feedback. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PCEJHpjdek9evJw7V8o55G
TonsOfFun
force-pushed
the
feat/feedback-review-signals
branch
from
December 4, 2026 23:40
9a81877 to
3ed6153
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feedback shipped in 1.9.1 as end-user votes listed on an agent's Feedback tab. Nothing else read it: a trace did not show its own feedback, a dashboard user could not record their own judgement of a trace, and there was no way to find the interactions that went badly without reading traces one at a time.
This makes feedback a review signal. It is the first of two steps; the second uses these human labels to check an evaluation's judge against people and propose changes to its criteria, and is #757.
What changes
end_user(the default, and every existing row),implicitfor something the reporting application observed (a regenerated answer, an abandoned reply, named by a free-formsignal), andreviewerfor a dashboard user's own mark.POST <mount>/api/feedbackacceptssourceandsignal; it refusesreviewerand cannot overwrite a review by reusing itsfeedback_id.PUT/DELETE <mount>/api/traces/:id/reviewwith the dashboard session. One review per user per trace. A trace's detail lists all its feedback and carries the Good / Bad controls with a note.GET <mount>/api/feedback/attentionranks the traces in a window: 3 points per end-user thumbs down, 3 for a reviewer's bad mark, 2 per negative implicit signal, 2 for a failed trace. A trace a reviewer marked good is dropped. The listed traces are grouped by end user and session, read from the root span'suser.idandsession.idattributes (feedback'suser_referencewins for the user). A collapsed panel at the top of the Traces page shows it, scoped to the agent on an agent's Traces tab.traces_attentionMCP tool andactiveagent traces attention.GET /api/traces/:idcarryfeedback: { positive, negative }. The agent Feedback tab filters by source.Upgrading
Migration 036,
add_interaction_feedback_sources, addssource,signalandreviewer_id. Deploy it before the updated dashboard: feedback ingest and the Needs attention panel need the columns.Not in this PR
session_idoruser_referencecolumns on traces. Grouping reads the root span of at most 200 ranked traces per report, and each report considers the 1,000 most recent negative feedback rows and the 1,000 most recent failed traces in its window.Validation
bin/test: 4741 runs, 0 failures, 5 errors. The 5 errors areRubyLLMIntegrationTest, which made live OpenAI calls with the local key and was refused for lack of credits; they do not touch this change.bin/lint: no offenses.npm testinactionagent/frontend: 792 pass.traceControlsViews.test.mjsnow ignores the panel's request when it reads the view's trace queries.Trying it
Then open Traces, expand Needs attention, follow a trace and mark it under Your review. Guide:
docs/framework/feedback.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01PCEJHpjdek9evJw7V8o55G