Address concept-definition errors in interview feedback
Les mainteneurs répondent en général sous 1 jour
@8woodyc y travaille déjà.
Depuis le 22/11/2026.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 32/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- 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.
- 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.
- If the omission survives the production path, add the bounded rule in
src/agent/prompts/assessment.rsand 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. - Add prompt-contract regression coverage in
tests/agent/and appropriate fixtures/checks throughtests/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. - For a prompt behavior change, update the report prompt and bundle constants in
src/agent.rsandweb/lib.js, refresh the prompt golden, and document the change indocs/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.
- 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