Repository navigation
Conversation
The rule_based judge evaluates one matcher per rule item and silently ignored the rest, so an item holding output_contains, exit_code and files_exist checked only the output and could pass with a failed exit and a missing file. Validation now rejects such an item and names its matchers.
Other judge types ignore success and failure rules, so a script judge with an unused multi-matcher item must keep validating. Share one matcher list between both rule checks.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
I’m good with keeping one matcher per rule item and rejecting ambiguous configs at validation time. Could you add a short note to the configuration docs explaining that older configs with multiple matchers in one item will now fail validation instead of silently evaluating only the first matcher? It would also help to clarify the migration advice: separate |
Summary
A single success item containing
output_containsandexit_codechecks only the first matching field at runtime. Validation now reports the affected item and names its matchers. The migration note explains that allsuccessitems must pass and any matchingfailureitem fails the case. Split failure conditions only when each should trigger failure independently.Changes
The check applies to both success and failure rules on a
rule_basedjudge. Other judge types retain their existing handling of unused rule fields.Related issues
Related to #365. The existing work in #341 covers incomplete matcher values. This patch covers several recognized matchers in the same item.
Test plan
Validator tests cover multiple success and failure matchers and a script judge with unused rule fields.
Local checks passed with
make verify,go test -race ./...and the Codex plugin unit tests.