Repository navigation
fix(tier3): reject judge results returned after the deadline - #486
Conversation
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
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.
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
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.
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.