Repository navigation
feat(interview-kit): parallel interview tracks (phase 3) - #32
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…planning Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…losing rule A track's key is derived from its template (t<id>, or default without one); the migration re-keys phase-2 templated kits and their panels to match, and an interviewer now sits on at most one track per round. A round can close on its own only when every track is staffed and every sheet is in, so an unstaffed RH track cannot be silently skipped. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The kit read lists every track the caller may see — all of them for a recruiter, only their own for an interviewer — and keeps the one-track kit field for existing clients. The blind rule is scoped to the track, and closing a round, by hand or automatically, stamps every track. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Recruiters name a track with ?track= (optional when the round has one); an interviewer's own assignment names theirs. Freezing and answered- question protection are per track, and a generation whose track was removed while the model ran abandons instead of recreating it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…und had a kit An interviewer assigned before a round had any kit sits on the model default track. generate_kit's first kit now lands on the job's default template's track key, not "default", so those rows were left stranded with no matching kit. adopt_orphan_rows moves any round row on a track with no kit onto the round's first track when the first kit is created. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The panel endpoint reports each interviewer's track and edits one track's panel at a time; someone already on another track of the round is refused. A panel picked before the round has any kit still goes on the default track, as before. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Scheduling takes interview_template_ids and makes one track per choice, each generated on its own; a track that needs a model fails alone when none is configured. Scheduling the same round again reconciles its tracks, and another round copies the chosen tracks forward with their panels. Interviewers picked before scheduling join the first track. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…eduled A recruiter can add a parallel track to the live round, generated on its own, and remove one nobody has written in. The last track stays, and removing a track re-checks whether the round is now complete. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The kit section's body becomes TrackKitView, driven by one track's kit, sheets and mutations; the hooks expose the round's tracks and name a track on requests when there is more than one. Nothing visible changes: the section's existing tests pass untouched. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… one A round with several tracks shows one tab each, with its submitted count, and every tab stays mounted so unsaved edits survive switching. Recruiters add a track from the templates the round lacks, and remove one nobody has written in. A one-track round looks as before. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ach one The round-start picker becomes a checklist; another round preselects the tracks the last one ran. With several tracks the panel is shown and assigned per track, and someone already on one track cannot be ticked for another. One-track rounds keep the single picker and panel. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Backend fixes from the phase-3 whole-branch review: add_track now adopts orphan panel rows the way generate_kit's no-kit branch does; generate_kit takes the application row lock, since it can create a track and rewrite panel rows and this also closes a two-concurrent-first-Generate race; and run_generate_kit's post-lock guard now abandons whenever its track's kit is gone, not only when one existed at dispatch — no test depended on the create_kit fallback that guard made unreachable, so it and the now-unused had_kit variable are removed. Also wraps an E501 line and fixes an I001 import order this branch introduced in the test suite. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ab, refresh the board on track removal Frontend fixes from the phase-3 whole-branch review: the schedule/reopen picker now preselects the live round's tracks whenever it already has kits, in both picker modes — re-scheduling the SAME round (reject -> re-invite -> schedule) no longer silently offers the job default and drops every other track on confirm. A track's tab badge now shows "failed" for an errored kit instead of looking like a healthy one. Removing a track now also invalidates the jobs query, since removing the last unstaffed track can close the round and change the board. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 3 of multiple kinds of interview kit. A round can now hold several tracks running in parallel — a technical conversation and an RH screen on the same day — each with its own questions, interviewers and feedback sheets. The round closes when every track is done.
Spec:
docs/superpowers/specs/2026-09-22-interview-tracks-design.md· Plan:docs/superpowers/plans/2026-09-22-interview-tracks.mdWhat changes
interview_kitsrow plus theinterview_assignmentsrows sharing its(application, round, track). The key is derived from the template (t<id>, ordefaultwithout one) and never changes.trackson the kit read (plus the one-trackkitfield, unchanged, for existing clients);?track=on the kit write endpoints, optional when a round has one track;interview_template_idswhen scheduling;POST/DELETE /api/applications/{id}/interview-tracks;trackon interviewer rows, sheets and live events.f3b7d2e8a915: re-keys phase-2 templated kits (and their panel rows) fromdefaulttot<template_id>, and tightens the interviewer uniqueness rule to one track per person per round. Its downgrade refuses once any round has two tracks, rather than silently dropping one. Round-tripped against real Postgres.One-track rounds behave and look exactly as today — the point every pre-existing test pins down.
Decisions made during implementation
defaulttrack and join the round's first track once tracks exist. Missing this stranded them: the assigned interviewer got a 404 when saving (found in review, fixed with a test).Known limitations (deferred)
Test plan
uv run pytest -q: 837 passednpx vitest --run: 308 passed (49 files)npm run lint(tsc) andnpm run buildcleanuv run ruff check src/ tests/: 474 (466 baseline + 10 B008 from the new router'sDepends(...)defaults, − 2 lint regressions this branch cleared)🤖 Generated with Claude Code