Skip to content

feat(interview-kit): profile-driven probes for RH rounds (phase 4) - #33

Merged
wboudiche merged 1 commit into
mainfrom
feat/interview-profile-probes
Sep 24, 2026
Merged

wboudiche merged 1 commit into
mainfrom
feat/interview-profile-probes

Conversation

@wboudiche

Copy link
Copy Markdown
Owner

Phase 4, the last of the "multiple kinds of interview kit" series. An RH round's generated questions now come from the candidate's own history instead of the technical scoring.

What changes

  • probe_mode gains profile. A template set to it generates questions from the candidate's career history and enrichment summaries — moves between roles, the scope they owned, unexplained gaps, what was found about them online. Its prompt never receives the job's criteria or the score breakdown, which is what stopped an RH round inheriting technical questions.
  • "Draft with AI" follows the kit's register. On a profile track, drafting one extra question uses the same HR prompt; otherwise the recruiter got a technical question inside an RH tab.
  • A thin profile is not a failure. The model is told to ask only what the history supports and may return nothing; the kit is then ready with the template's curated questions rather than padded with generic filler.
  • Settings → Interview templates offers the third option, "From the candidate's history (RH)", and the list says which probes a template generates.

No migration: probe_mode is already a string column read through a validated schema. wants_probes now means "this mode needs a model", so phase 2's no-provider handling covers profile tracks unchanged — such a track fails on its own while the others generate.

Test plan

  • Backend uv run pytest -q: 845 passed (8 new)
  • Frontend npx vitest --run: 310 passed (2 new)
  • npm run lint (tsc) and npm run build clean
  • uv run ruff check src/ tests/: 474, unchanged
  • Written test-first: the rule tests failed on a missing import, the prompt tests on the old generator, the UI tests on the missing option
  • After merge: set an existing RH template to "From the candidate's history", schedule a round with it, and check the generated questions read as HR questions about the person's path

New tests: probe_mode_of across all three modes and profile-still-wants-a-model; the profile prompt carries the history and enrichment; the profile prompt carries none of the scoring vocabulary; an empty response is allowed; an RH round generates from the path and not the score breakdown; a thin profile leaves the curated questions alone; drafting stays in register; the template editor saves profile and the list names it.

Worth knowing

A kit generated in this mode cannot be read by phase-3 code, so rolling back after using it would show those kits as failed — the same constraint the previous phase carried.

🤖 Generated with Claude Code

… rounds

probe_mode gains profile: its questions are built from the candidate's
own path and what enrichment found — moves between roles, scope owned,
gaps — and the prompt never sees the criteria or the score breakdown,
which is what stops an RH round inheriting technical questions. Drafting
one question by hand follows the same register on such a track.

Told to ask only what the history supports, the model may return nothing;
the kit is then ready with the template's curated questions rather than
padded with filler.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@wboudiche
wboudiche merged commit 38f0c54 into main Sep 24, 2026
2 checks passed
@wboudiche
wboudiche deleted the feat/interview-profile-probes branch September 24, 2026 16:32
wboudiche added a commit that referenced this pull request Sep 24, 2026
fix(interview-kit): close the RH drafting leak from the #33 review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant