Skip to content

fix(agent): reject unfinished Qoder results and model fallbacks - #382

Merged
zpzjzj merged 2 commits into
mainfrom
fix/judge-engine-empty-results
Nov 6, 2026
Merged

zpzjzj merged 2 commits into
mainfrom
fix/judge-engine-empty-results

Conversation

@zpzjzj

@zpzjzj zpzjzj commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Qoder can exit zero while returning an unfinished tool_use result or an explicit error envelope. The adapter previously marked these calls successful, leaving AgentJudge to diagnose an empty/non-JSON response. Check terminal status in both initial and resumed calls while preserving raw output and session diagnostics. Completed file delivery may still have empty chat.

Also classify Qoder's explicit diagnostic that an unavailable requested model was replaced with a fallback. AgentJudge must not accept or recover that unintended model's verdict, including when a valid JSON file exists or a transport/nonzero-exit error follows. Preserve the original execution/cancellation cause alongside the model error. Update the file-judge example and docs to Fast, Qoder's current replacement for Performance; model IDs remain forwarded without an allowlist or automatic remapping.

Validation:

  • make fmt, make verify, make build, make test GOFLAGS='-buildvcs=false -p=1' (race detector retained), example configuration validation, and the retry-policy E2E regression.
  • Complete local E2E suite: go test -tags e2e -parallel 1 -v ./e2e.
  • Regression coverage for zero-exit error/incomplete envelopes, legacy text/numeric/array/domain-object output, completed empty chat, raw artifact preservation, explicit/unrelated fallback diagnostics, both Run/RunTurn, nonzero exits/cancellation, and nonrecoverable wrong-model verdicts in file/chat judging.
  • Real NoneRuntime integration: Qoder CLI 1.1.83/Fast, Codex 0.147.0/gpt-5.6-sol, OpenCode 1.14.24/DashScope qwen3.8-max. Each evaluated correct, incorrect, and partially correct code in file and final-message modes: all 18 produced valid verdicts matching the fixtures.
  • A real retired-Performance request generated a valid Auto file but correctly remained ERROR after model classification. Exploratory Auto fallback successes were excluded from the primary matrix; one exploratory backend retry-exhaustion error was retained rather than counted as a model judgment.
  • Native controls: Qoder 0.2.0 reproduced premature completion on the legacy Performance path; both old/new clients completed the identical Auto tool task. This narrows the issue to the legacy client/tier/service path without assigning an unobserved backend-internal cause or claiming a model-accuracy improvement. Live model tests used direct AgentJudge integrations, not complete Skill-generation or Docker/OpenSandbox model runs.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 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-06T02:17:31.708364Z c6d5ae2 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.

@zpzjzj
zpzjzj force-pushed the fix/judge-engine-empty-results branch from c6d5ae2 to 5ad4dc7 Compare November 6, 2026 02:30

@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. Reviewed the latest adapter and AgentJudge changes. Initial and resumed Qoder calls now reject explicit error and unfinished tool-use results while preserving raw diagnostics and legacy output compatibility. The requested-model fallback classification survives execution failures/cancellation and prevents both file and chat verdict recovery from an unintended model.

Validated with focused race tests for TestQoder and TestAgentJudge; the current CI and extended checks are passing. No blocking findings. This review did not rerun the live provider integration matrix.

@JHWang-1997
JHWang-1997 added this pull request to the merge queue Nov 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 6, 2026
@zpzjzj
zpzjzj added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 6f5ec5b Nov 6, 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