Repository navigation
In review
Labels
aiai-serviceAI work: @credalent/ai platform, prompts, evals, and the planned apps/ai-servicejourney: J2 Evidence and rankingUser journey J2 (docs/01-design/journeys.md)phase: P1priority: MUSTrecruiterstatus: in reviewtype: Story
Description
| Phase | P1 · Recruiter path: first job, evidence and ranking |
| Epic | AIV-P1-E07 · Candidate profile, comparison and all candidates |
| Journey | J2 Evidence and ranking |
| Type / priority | Story · MUST |
| Roles | Recruiter, Hiring owner |
| Estimate | 2 ideal dev-days |
| Screens | Compare |
| Depends on | AIV-P1-045, AIV-P1-036 |
Description
Build the comparison page (Compare artboard) at /jobs/[jobId]/compare?ids=… in features/compare: two or three candidates side by side on the same competencies, each judged against the job's need, with what it rests on and an AI-written "The trade-offs" section that cites evidence.
Deliverables:
- Header "Compare candidates · Senior AI Engineer · rubric v2", actions "Change selection", "Open decision pack".
- Grid rows per competency ("Weight 25% · job needs 4 of 5"), cells: strength, verdict ("Above the need · 5 against 4"), provenance, one-line summary; row "Round 1 outcome".
- Column headers: name, backed score, "up to N if claims hold".
- Trade-offs via the citation contract: one paragraph per candidate plus the closing line on score difference ("Seven points separate the three. A difference this small is within what Round 2 could change."), numbers filled from snapshots.
- Works with 2 or 3 candidates; invalid or cross-job ids → error state.
Acceptance criteria (Gherkin)
Feature: Compare candidates side by side
As a recruiter or hiring owner, I want the same competencies side by side against the job's need,
so that I can see trade-offs instead of a single number.
Scenario: Three candidates
When I compare Sara Al Qahtani, Arjun Menon and Huda Al Mansoori on Senior AI Engineer
Then the columns show 68 "up to 84 if claims hold", 64 "up to 76 if claims hold" and 61 "up to 82 if claims hold"
And the "Arabic and bilingual NLP" row shows Huda "Strong · Above the need · 5 against 2 · Independently corroborated"
Scenario: Trade-offs cite evidence
Then "The trade-offs" says Huda "is the only one with inspected Arabic work"
And each statement links to the evidence it rests on
And it ends "Seven points separate the three. A difference this small is within what Round 2 could change."
Scenario: Candidates from another job
When the ids include a candidate not on this job
Then I see "These candidates are not all on this job" and no comparison
Scenario: One candidate
When I open compare with one id
Then I see "Choose 2 or 3 candidates to compare" and "Change selection"
Scenario: Trade-offs unavailable
Given the model is unavailable
Then the grid shows and the trade-offs read "Trade-off summary unavailable. The grid above is complete."Tests
- Unit: cell verdict formatting.
- Eval golden set: trade-off faithfulness and 100% citation for the demo trio.
- Playwright J2 step: compare the three; axe.
Not in this ticket
- Selection: AIV-P1-036. Decision pack: AIV-P2-011.
Metadata
Metadata
Assignees
Labels
aiai-serviceAI work: @credalent/ai platform, prompts, evals, and the planned apps/ai-servicejourney: J2 Evidence and rankingUser journey J2 (docs/01-design/journeys.md)phase: P1priority: MUSTrecruiterstatus: in reviewtype: Story
Activity
AIV-P1-043, AIV-P1-119: candidate profile header and fit; hidden repo…
ALFRED-LUCIFER commentedon Nov 26, 2026
Started and delivered in PR #643 (AIV-P1-047).
/app/jobs/[jobId]/compare?ids=…(grid of competencies by candidate, states for one candidate, a candidate not on the job, not yet scored, 403/404), the ranking's Compare action without its flag, "The trade-offs" on demand through the new AI taskassessment.compareTradeoffs@1with its eval golden set, and "Open comparison" on the decision pack page.shortcut:); the "Round 1 outcome" row (AIV-P1-046, [AIV-P1-046] Show what needs live verification, score history and the candidate across roles #110).