Three judges test empty inputs that the interviewer says cannot occur

Offen
#732 3 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Patriciaath999 arbeitet bereits daran.

Seit 19.11.2026.

  • #829 von @Patriciaath999 — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust
Bereich
testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Rust
Sterne
236
Forks
153
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
187

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus sysprog21/codetrial

Alle Issues in sysprog21/codetrial

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.