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
ActiveAgent::Evals::Calibration scores answers people rated good or bad with a Judge and reports how often the two agree, the lenient and strict disagreements, each criterion's own agreement, and a reworded criterion for each one that sided with the judge (Judge#revise_criterion, a `kind: :revise` call). The dashboard runs it over an agent's traces that a reviewer or an end user rated and whose prompt and answer were captured: - GET/POST <mount>/api/evaluations/:id/calibration reads and queues a check; POST .../calibration/apply writes a suggestion into the evaluation's criteria, which keep what they replaced under `revised`. - The result is kept under the evaluation's config without the people's comments, which are read from the feedback when the check is shown. - An evaluation's page carries a Judge vs. people panel. - The same check is the evaluations_calibration and evaluations_calibrate MCP tools and `activeagent evals calibration`. Co-Authored-By: Claude <noreply@anthropic.com>
…r config The dummy app's provider configuration carries tokens wherever its Rails credentials can be read, as in CI, so the check was not refused there and the assertion saw no error. JudgeCalibrationTest stubs the configuration the same way. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
TonsOfFun
force-pushed
the
feat/judge-human-agreement
branch
from
December 4, 2026 23:44
88da0c9 to
808bfc8
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.
The second of two steps. #748 made feedback a review signal: dashboard users mark traces good or bad, and end-user votes and implicit signals rank the traces that need a look. This uses those human labels to measure whether an evaluation's judge scores answers the way people do, and to propose rewording its criteria where it does not.
This branch is based on #748 and carries its commit. Review the second commit here; merge #748 first. The base is
mainrather than #748's branch so that merging #748 cannot strand this one on a branch that is notmain.What changes
ActiveAgent::Evals::Calibration(framework). Takes answers a person ratedpositiveornegativeand aJudge, and reports the agreement rate, the disagreements (lenient: the judge passed what a person rated bad;strict: the reverse), eachllm_judgecriterion's own agreement, and a suggested rewording for each criterion that sided with the judge in a disagreement. It loads withrequire "active_agent/evals", so an application that keeps prompts and answers out of its telemetry can run the check where the content lives.Judge#revise_criterion. Asks the judge to reword one criterion from the cases it scored against a person, with their comments. It returnsprompt,rationaleand, when the people relied on something the judge is never shown,missing_evidence. A block that acceptskind:is told:revise.revised.GET/POST <mount>/api/evaluations/:id/calibration,POST <mount>/api/evaluations/:id/calibration/apply, theevaluations_calibrationandevaluations_calibrateMCP tools, andactiveagent evals calibration EVALUATION [--run] [--wait].Decisions worth a look
config["calibration"], and the evaluation serializer leaves that key out of evaluation payloads.JudgeCalibrationJob), is refused while one is under way, and is refused up front when the owner has no credentials for the judge.Not in this PR
missing_evidencereports that gap; nothing closes it.ActiveAgent::Evals::Calibrationwith its own judge.Validation
bin/test: 4760 runs, 0 failures, 5 errors. The 5 areRubyLLMIntegrationTest, which calls OpenAI live and was refused the placeholder key.bin/lint: no offenses.npm testinactionagent/frontend: 794 pass. The committed dashboard bundle is rebuilt.Guide:
docs/framework/feedback.md.🤖 Generated with Claude Code