Address concept-definition errors in interview feedback

Aperta
#818 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@8woodyc ci sta già lavorando.

Dal 22/11/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
32/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
ai

Direzione di ricerca

Read the recognition policy and report brief in src/agent/prompts/assessment.rs (~L17, L554, L788), then how src/gemini/report_calls.rs sends them. Before editing, run cargo test --lib report_eval on a supported host to reproduce the subarray/subset and binary-tree/BST cases through the production evaluator. Done means the bounded rule plus prompt-contract tests in tests/agent/ and tests/fixtures/report-eval/, with prompt/bundle constants in src/agent.rs and web/lib.js, the golden and docs/interview-contract-versions.md updated.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Candidate need

A candidate can implement the right algorithm for a problem while giving an incorrect general definition of the concept it uses. The post-interview report should identify that supported conceptual error and explain the relevant distinction, even when the submitted code is correct. Otherwise, the candidate may leave with useful implementation feedback but without noticing the misconception. The current workaround is to review the transcript and verify the definitions independently.

I propose a bounded improvement to existing report feedback, based on the synthetic baseline below. The current model already corrects some terminology errors. The remaining question is whether a focused report rule can improve its handling of explicit false definitions while preserving recognition safeguards and allowing reasonable shorthand.

Two concrete observations

The following excerpts are authored synthetic dialogue, not personal interview content. Both cases use correct Python code and correct reasoning for the particular task. The interviewer then uses the precise term, but the candidate never explicitly retracts the false general definition.

Subset versus contiguous subarray. The task asks for the maximum sum of a nonempty contiguous segment. The candidate correctly restates that requirement and implements Kadane's algorithm, but says during the approach discussion:

I will find the maximum-sum subset. A subset of an array must consist of adjacent positions; it cannot select elements at separated positions. That is why I extend only the segment ending at the previous position.

Neither of two raw reports addressed that definition. The improvements instead concerned input validation, code comments and tracing an example. Expected feedback would distinguish the task's contiguous-subarray requirement from a subset, which does not by definition require adjacent positions, while preserving credit for the correct implementation.

Binary tree versus binary search tree. The task explicitly guarantees a BST. The candidate implements correct iterative membership search and correctly explains its O(h) time bound, including skewed trees, but says:

I will use the binary tree property to eliminate one subtree. Every binary tree guarantees that all keys on the left are smaller and all keys on the right are larger; this ordering follows merely from each node having at most two children.

Neither of two raw reports addressed this overgeneralization. Both included this communication strength:

Accurately explained the binary search tree property and how it allows for subtree elimination.

There is correct task-specific reasoning elsewhere in the transcript, so that praise is not by itself evidence of fabricated credit. The omission is that the report never explains that at most two children defines a binary tree, whereas the search ordering is an additional BST guarantee.

These observations do not establish that correct code caused the omission. One hypothesis is that the reviewer focuses on the successful task-specific reasoning and leaves the false general definition unresolved. A matched experiment with and without a focused rule would test whether the proposed change helps.

Baseline and limits

The inspected source is 975075da4728b125d944866e6adefbd8aae2d4e6: bundle 48, live prompt 36, report prompt 26, rubric 1 and report schema 4. The November 23, 2026 (UTC+8) pilot used gemini-3.1-flash-lite, temperature 0.3, seed 71, thinking budget 0 and maximum output tokens 16384. The coding report system instruction and assessed-communication response schema were unchanged.

Five concept pairs each had three authored inputs: a less explicit naming variant, an explicit false definition, and a correct control. Each input was requested twice. Within a concept pair, code, subsequent dialogue and other supplied session material stayed fixed; only the candidate's concept-description turn changed.

Concept pair Naming variant: reports mentioning the distinction Explicit false definition: reports mentioning the distinction Correct control: invented terminology errors
Hash set / map 0/2 2/2 0/2
Stack / queue 2/2 2/2 0/2
Substring / subsequence 0/2 2/2 0/2
Subarray / subset 0/2 0/2 0/2
Binary tree / BST 0/2 0/2 0/2

Test Evidence : round3-and-combined-evidence.zip

“Mentioning the distinction” means the report explicitly identifies the mismatch; it does not imply a complete explanation. All classifications come from reading the narrative feedback and improvement plans. The naming variants are exploratory, not automatic failures: a contiguous selection can also be a subset, and “binary tree” can be reasonable shorthand when the input is already known to be a BST. The proposed acceptance criteria focus on explicit false definitions, not a mandatory penalty for broader terminology.

These are 30 raw Gemini responses to 15 different synthetic inputs, not 30 independent interviews. Each fixed-seed repeat pair produced identical parsed report JSON. This small corpus does not establish a population error rate, calibration or a required score deduction. Correct controls avoided terminology errors; that does not certify every other statement in their reports.

The pilot did not run the complete CodeTrial report pipeline. cargo test --lib report_eval --no-run failed while compiling webrtc-sys against the installed Windows SDK (FILE_INFO_BY_HANDLE_CLASS, C2061), before project tests ran. The fallback called Gemini directly: the first batch substituted synthetic data into a golden brief; later batches used authored problem briefs. All outputs parsed and passed a scratch structural check, but CodeTrial's production prompt builder, semantic validation, repairs, normalization, server stamping and UI were not exercised. The full-pipeline result remains unverified. No native audio, ASR behavior or modified prompt was tested, and cross-topic score differences cannot isolate an effect of terminology.

The retained evidence includes fixtures, complete requests/responses, attempt journals, model settings and per-report usage. combined-results-30.json preserves batch and case identifiers; round3-report.md contains the aggregate table and complete output for the two examples above. Successful generations used 134,644 observed tokens across the three batches; two earlier HTTP 503 responses supplied no usage, so that is not a complete billing total.

Initial analysis and proposed change

The report brief supplies the problem specification and candidate material. The report system instruction controls assessment and grounded feedback; src/gemini/report_calls.rs sends it with the brief and response schema. A JSON schema can constrain report structure without guaranteeing that a particular false definition is discussed.

The existing recognition policy already says that a clearly understood wrong answer counts as wrong, that wrong technical terms can result from uncertain recognition, and that interviewer agreement cannot establish candidate correctness. I propose making the feedback obligation more specific for a reliably established false definition: identify the candidate's claim, explain the correct distinction relevant to the task, and keep implementation credit separate from the unresolved conceptual gap.

Use the existing coding/communication feedback and improvement-plan fields. Preserve the existing rubric, JSON shape and report-call budget. A correct implementation is evidence of implementation behavior, not proof that a false general definition was corrected. The interviewer's precise rewording is not a candidate self-correction. Explicit candidate clarification must count; uncertain recognition, reasonable shorthand and insufficient communication evidence must retain their existing protections. In insufficient-speech sessions, any independently established technical gap belongs only in coding feedback under the current policy.

A focused report rule is the smallest approach to measure first. Live correction would also change interview timing and hinting. A separate classifier or terminology dictionary would add cost or brittle matching, and neither is necessary to investigate this feedback omission. No live-interviewer change, extra model call, fixed point deduction, new report field, persistence change or timestamped coaching section is proposed.

Follow-up work and acceptance criteria

  1. Reproduce the two explicit-definition cases through the existing production report evaluator on a supported host, including validation and repairs, before treating the raw-output omission as a displayed-report regression. Adapt the fixtures to normal project problem metadata rather than silently treating the scratch briefs as production inputs.
  2. Define expected outcomes before comparing prompts. Include explicit false definitions, correct controls, reasonable broader labels, interviewer-only rewording, explicit candidate self-correction, uncertain recognition and insufficient speech. Preserve the already successful set/map, stack/queue and substring/subsequence cases as positive controls.
  3. If the omission survives the production path, add the bounded rule in src/agent/prompts/assessment.rs and compare current/proposed prompts with matched inputs, model and sampling settings. Retain raw outputs, failed generations and counterexamples. A supported false definition should receive a concrete correction; correct usage and reasonable shorthand should not acquire invented weaknesses. Do not require a particular score change.
  4. Add prompt-contract regression coverage in tests/agent/ and appropriate fixtures/checks through tests/fixtures/report-eval/ and its existing runner. Contract tests show that the rule reaches the reviewer; model-output evaluation separately tests whether it is followed. Do not add a second permanent evaluation framework or claim that keyword matching proves semantic correctness.
  5. For a prompt behavior change, update the report prompt and bundle constants in src/agent.rs and web/lib.js, refresh the prompt golden, and document the change in docs/interview-contract-versions.md. Choose version numbers after rebasing, run relevant agent/report tests and the required repository gate, and document remaining limitations.

If the production baseline already meets these criteria, narrow the contribution to useful regression/evaluation coverage or reconsider the prompt change. The pilot has not demonstrated a successful fix.

Related work and scope

The duplicate/ownership check on November 22–23, 2026 covered open and closed issues/PRs, all results from six terminology/report searches, the 24 open PRs returned by the API, and the closest threads and changes, including the review discussion on PR #700. No exact same-scope proposal was found in that bounded search. This is a dated snapshot and must be refreshed before implementation.

  • #613, assigned to KentChen1112, and open PR #700 concern inaccurate problem restatement and the Repeat evidence boundary. Here the restatement is correct; the false general definition occurs during approach discussion. Both affect assessment prompts, so coordinate and rebase rather than take over #613.
  • #258, assigned to alanhc, concerns timestamped “Key moments” through a separate call. This proposal uses existing report feedback without a timeline.
  • #482, fixed by merged PR #506, separates reference complexity from reasoning the candidate stated. Its bounded grounding change is precedent, not unfinished work to claim again.
  • Closed #168/merged PR #187 and closed #553 establish recognition and insufficient-evidence protections to preserve. #476 concerns a different concept-interview mode.

This work fits “依面試檢討改進 Jim 與報告” in the contribution directions. The intended substantive contribution is a demonstrated feedback improvement with positive and negative regression/evaluation cases, not a wording-only edit. I intend to implement this bounded scope, beginning with production-path reproduction and settling the reliable-evidence boundary in this issue.

Lingua principale
Rust
Stelle
236
Fork
153
Merge medio
1g 9h
PR unite (30g)
187

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/codetrial

Tutte le issue di sysprog21/codetrial

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.