Skip to content

fix(tier3): reject judge results returned after the deadline - #486

Merged
rng1995 merged 2 commits into
mainfrom
naren/review-judge-return-deadline
Nov 13, 2026
Merged

rng1995 merged 2 commits into
mainfrom
naren/review-judge-return-deadline

Conversation

@rng1995

@rng1995 rng1995 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

With a required judge, a dependency or logging handler can catch the interval timer’s TimeoutError and still return a score after the wall-time budget. Recheck the inherited minimum deadline immediately after the judge returns, so expired calls remain scoreless errors, including an allowed N/A result. Existing timer and context cleanup is preserved.

The RAGAS cancellation test now delivers its real alarm after scoring starts, with a matching virtual deadline, preventing setup and Rich-logging races. This addresses the inherited failure exposed by #471 without adding the fix to the apt-package change.

Validation: seven virtual-clock boundary cases reproduced five failures and two timely controls before the fix. The full failure-artifact module passed 129 tests; judge contracts passed 106 tests. Ruff and whitespace checks passed. Independent subagent review approved the production guard and deterministic timer regression. No live judge calls or paid workflow dispatches were made for this follow-up.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Independent subagent review approved the post-return deadline guard and timer/context cleanup. Verified 129 failure-artifact regressions and 106 judge contract cases; five deterministic late-result regressions failed before the fix while two timely controls passed. The RAGAS alarm test now targets active scoring and a matching virtual expiry instead of racing setup/logging. Ruff and whitespace checks passed. Ordinary exact-head CI remains pending; no live judge calls or paid dispatch were used for this follow-up.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Resolved the current-main merge conflict in 4a34f829 with a normal signed merge of captured main b8bbd52e. The only conflicted file was CHANGELOG.md; both the current-main Windows-encoding entry and the complete deadline entry are retained. The deadline guard and deterministic RAGAS alarm/context test files are byte-for-byte identical to reviewed 660e15fa. On the resolved tree, all 254 affected judge-artifact, contract and RAGAS-evidence tests pass (21.67s), full src/tests/ci Ruff and diff check pass, and independent review approved the resolution. Fresh pre-push API/branch/remote guards matched the open PR head; latest actual main eab725cb also merges cleanly. No force push or PR merge was performed.

@rng1995
rng1995 merged commit a0d8fd0 into main Nov 13, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/review-judge-return-deadline branch November 13, 2026 10:15
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.

1 participant