Repository navigation
feat: log judge, target, and auditor model metadata in saved JSONs - #138
Merged
Merged
Conversation
) Adds a 'meta' field to AuditResults.to_dict() output containing: - target_model, target_provider - judge_model, judge_provider - auditor_model, auditor_provider - max_turns, language - judge_name (when a named judge is used) - scenario_pack (when a string pack name is used) The meta is populated by ModelAuditor._run_meta() and carried through: - SingleTurnAuditor (inherits _run_meta) - AuditExperiment retry-merge path - rejudge_async (preserves source meta) Round-trips correctly through save()/load(). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
avalyset
pushed a commit
to avalyset/simpleaudit
that referenced
this pull request
Nov 4, 2026
…imulaMet#136) (SimulaMet#138) Adds a 'meta' field to AuditResults.to_dict() output containing: - target_model, target_provider - judge_model, judge_provider - auditor_model, auditor_provider - max_turns, language - judge_name (when a named judge is used) - scenario_pack (when a string pack name is used) The meta is populated by ModelAuditor._run_meta() and carried through: - SingleTurnAuditor (inherits _run_meta) - AuditExperiment retry-merge path - rejudge_async (preserves source meta) Round-trips correctly through save()/load(). 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
Fixes #136 — saved JSONs now include a
metafield with judge, target, and auditor model metadata.Changes
AuditResultsaccepts an optionalmetadict, serializes it into_dict(), and restores it inload()._run_meta()method builds the metadata dict (target_model,target_provider,judge_model,judge_provider,auditor_model,auditor_provider,max_turns,language,judge_name,scenario_pack).SingleTurnAuditor.run_async()passes meta (inherits_run_meta).judge_infodicts now includejudge_name.rejudge_async()carries source meta into rejudged results.Example output
{ "meta": { "target_model": "gpt-4o", "target_provider": "openai", "judge_model": "gpt-4o", "judge_provider": "openai", "auditor_model": "gpt-4o", "auditor_provider": "openai", "max_turns": 3, "language": "en", "judge_name": "checklist" }, "results": [...] }Testing
All 1938 tests pass. Round-trip save/load verified.