Repository navigation
feat(judge): agentic-aware judging via evidence resolver extension - #115
Merged
Merged
Conversation
When an evidence_resolver returns a dict with {selected_spans,
agentic_evaluation, agentic_guidance}, the ModelAuditor renders the
agentic evaluation into the judge prompt alongside raw span traces.
This enables a single judge call to weigh both conversation quality
and execution behavior (tool use, retrieval provenance, guardrails).
Changes:
- tracing/selection.py: render_agentic_for_judge() formats deterministic
checks + semantic dimensions into a compact text block
- model_auditor.py: _judge_conversation_async accepts agentic_evaluation
and agentic_guidance; run_scenario unpacks dict resolver returns
- experiment.py: run_scenario_reps and _run_single_rep plumb
evidence_resolver through for multi-rep agentic runs
Backward compatible: resolvers returning plain lists behave as before.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
When an
evidence_resolverreturns a dict with{selected_spans, agentic_evaluation, agentic_guidance}, the ModelAuditor renders the agentic evaluation into the judge prompt alongside raw span traces. This enables a single judge call to weigh both conversation quality and execution behavior (tool use, retrieval provenance, guardrails).Changes
tracing/selection.pyrender_agentic_for_judge()— formats deterministic checks + semantic dimensions into a compact text block for the judge promptmodel_auditor.py_judge_conversation_asyncacceptsagentic_evaluation+agentic_guidance;run_scenariounpacks dict resolver returnsexperiment.pyrun_scenario_reps+_run_single_repplumbevidence_resolverthrough for multi-rep runsBackward Compatibility
Usage
The judge prompt now includes:
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com