Three judges test empty inputs that the interviewer says cannot occur
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Read problem-bank/variants.json and problem-bank/problems.json to compare the three judge cases with their stated clarifications and constraints. Then inspect web/judges/ and the interviewer instructions in src/agent/prompts/instructions.rs. The issue asks maintainers to decide whether to remove the cases or widen the bounds; done means the judge inputs and the answers given in interviews agree.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Observed behavior
Three judges each include one case whose input falls outside the range the problem's own constraints and clarifications give. The interviewer is told those clarifications and repeats them when asked, so a candidate who asks and then relies on the answer can fail a case they were told would not happen.
| Page | Case | Input | Expected | What the bank says |
|---|---|---|---|---|
nesting-fuzzer-corpus |
zero pairs |
n = 0 |
[""] |
constraint 1 <= n <= 8; clarification "n is between 1 and 8." |
ordered-index-cursor |
empty tree |
root = [] |
[null] |
constraint 1 <= number of nodes <= 10^5; clarification "The index always holds at least one id" |
package-impact-score |
no papers |
dependents = [] |
0 |
constraint 1 <= citations.length <= 5000; clarification "Between 1 and 5000 packages" |
The expected values themselves are the natural answers, so a solution that handles the empty input passes. The case that fails is a candidate who asks "How large can n be?", hears "n is between 1 and 8", and writes code that assumes it, for example an Ordered Index Cursor constructor that reads root.left without a null check.
None of the three briefs shown on screen states a lower bound, so a candidate who never asks has no reason to exclude the empty input.
Expected behavior
A judge case should stay inside the range the interviewer gives, or the clarification should not rule out an input the judge tests.
How this was found
I wrote an independent solution for every page in web/judges/ against its variant contract and ran all cases. Every expected value matched; these three cases were the only inputs outside the stated constraints. Checked at upstream main bb8fc92e.
Initial analysis
The clarifications come from problem-bank/variants.json, and the constraints from problem-bank/problems.json. src/agent/prompts/instructions.rs:377 writes every clarification into the interviewer's instructions as an "Asked / Answer" pair, and src/agent/prompts/instructions.rs:497 tells the interviewer the candidate's screen does not show constraints or edge-case policies, which come out of the conversation.
Decision needed
Which side should change?
- Remove the three cases, keeping the clarifications and constraints as they are.
- Keep the cases and widen the constraint and clarification to allow the empty input, for example "n is between 0 and 8".
The first keeps the problems as published; the second keeps the boundary coverage the cases were presumably added for.
- Langage dominant
- Rust
- Étoiles
- 236
- Forks
- 153
- Merge moyen
- 1 j 9 h
- PR mergées (30 j)
- 187
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de sysprog21/codetrial
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
Unify Java harness validation error messagesPeut-être pris @weichieh0204 l’a pris aujourd’hui. Ouverte
sysprog21/codetrial#872 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Inferred void class operations are never checked against the starter's return typePeut-être pris @papaya0112 l’a pris aujourd’hui. Ouverte
sysprog21/codetrial#871 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwritePeut-être pris @BOBOGUAGUA428 l’a pris aujourd’hui. Ouverte
sysprog21/codetrial#869 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de sysprog21/codetrial
Issues similaires
-
BUG: WebGPU finds no adapter on Linux when a DRM card has no vendor file (ONNX Runtime 1.24.4)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
CyberTimon/RapidRAW#2303 ·
Les mainteneurs répondent en général sous 1 jour
-
[bug] NSIS installer reads its flags from $CMDLINE, so an unquoted forward-slash path (e.g. C:/Projects/...) triggers passive mode and skips the licence pagePeut-être pris @YusufMntm l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
tauri-apps/tauri#16660 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
manaflow-ai/cmux#59692 ·
Les mainteneurs répondent en général sous 1 jour
-
Retire stale Python-parity labels in Rust ingress and auth testsPeut-être pris @github-actions l’a pris aujourd’hui. Ouvertefactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
JoshCLWren/comic-pile#5874 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
status:ready unit
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
nonagenticai/conveyor#787 ·
Les mainteneurs répondent en général sous 1 jour