Skip to content

feat(judge): support JSON file result delivery - #379

Merged
JHWang-1997 merged 1 commit into
mainfrom
feat/judge-file-output
Nov 5, 2026
Merged

JHWang-1997 merged 1 commit into
mainfrom
feat/judge-file-output

Conversation

@zpzjzj

@zpzjzj zpzjzj commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Agent judges can return prose or Markdown despite JSON-only instructions. Add an opt-in judge.output.mode: file contract so an agent can edit a framework-created JSON template while its final chat reply remains diagnostic text. The default remains final_message.

Each attempt gets a fresh runtime path with stable criterion IDs, passed: null, and empty arrays. The existing strict result validator rejects unchanged or incomplete templates; one correction retry uses a new template and the original timeout budget. File mode never falls back to chat JSON. Valid file verdicts remain recoverable after non-cancellation engine errors without requiring chat text; explicit cancellation stays an error and reports disclose recovered calls. Downloaded result files and raw chat replies are retained separately. Configuration validation, per-case inheritance, bilingual documentation, and a runnable Qoder Performance example are included.

Validation:

  • make fmt, make verify, make build, make test.
  • Regression coverage for prose replies, valid FAIL, unchanged/missing/malformed/fenced files, source exclusivity, independent and resumed correction, fresh retry paths, and output-mode validation/inheritance, valid-file recovery without chat on first/correction errors, explicit cancellation, and bounded recovery transfer after deadline.
  • Actual global Qoder CLI 0.2.0 + performance, using AgentJudge/NoneRuntime directly: correct, incorrect, and partially correct calculator implementations tested in both delivery modes (6 evaluations, each with one correction allowed). File mode produced 0/3 valid verdicts because templates remained unfilled; final-message mode produced 0/3 valid verdicts because replies were empty. All remained ERROR rather than receiving a fabricated score. These runs do not establish an accuracy or reliability improvement and were not full Skill-generation runs. Docker/OpenSandbox were not exercised live.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T10:05:46.948003Z 44181a5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 44181a5724

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/judge/agent_judge.go Resolved
@zpzjzj
zpzjzj force-pushed the feat/judge-file-output branch from 44181a5 to c993b30 Compare November 4, 2026 10:14

@JHWang-1997 JHWang-1997 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JHWang-1997
JHWang-1997 added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 7e1cf69 Nov 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants