Skip to content

[AIV-P1-047] Compare three candidates side by side with the trade-offs #111

In review

Description

@ALFRED-LUCIFER
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.

Activity

  1. added
    journey: J2 Evidence and ranking
    ai-service
    on Nov 22, 2026
  2. ALFRED-LUCIFER commented on Nov 26, 2026

    @ALFRED-LUCIFER
    OwnerAuthor

    Started and delivered in PR #643 (AIV-P1-047).

    • Delivered: the comparison page at /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 task assessment.compareTradeoffs@1 with its eval golden set, and "Open comparison" on the decision pack page.
    • Owner decision, 26 Nov 2026: a comparison is not limited to three candidates; it holds the 2 to 10 the recruiter ticks.
    • Deviation to know about: the model picks what is shown and writes no sentence of its own, so the wording differs from the scenarios' examples (the PR body lists each one and why).
    • Pending: CI on AIV-P1-047: compare the candidates ticked on the ranking side by side, with cited trade-offs #643; storing the trade-offs (recorded 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    aiai-servicejourney: J2 Evidence and rankingphase: P1priority: MUSTrecruiterstatus: in reviewtype: Story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions