Charlie Roffe

Principal Architect & Engineering Director · Cloud & AI

Madrid, Spain · LinkedIn · GitHub

ADR-040: Job-Description Match on the Experience Page

Context

Recruiters read the Experience page with a role in mind and have to map its requirements onto a timeline themselves. The site already holds the facts in one place (the profile data the concierge reads, ADR-030) and a guarded path to Gemini (rate limit, App Check, daily budget, ADR-033). The risk with any "how well do I fit" tool is flattery: a model tends to stretch adjacent experience into a match, which on a candidate's own site would undermine everything else it claims.

Decision

Add a job-description match to the Experience page: the visitor pastes a role and gets its main requirements, each marked strong, partial or gap, with one sentence of evidence.
1. One structured call: POST /api/ai/job-match asks Gemini once, in JSON mode, for the role, an overall fit, a summary, up to 10 requirements and up to 3 questions to discuss.
2. The site's facts only: the instruction carries the same profile sections the concierge can look up and says they are the only source of facts; anything else is a gap, and an honest gap beats a stretched match.
3. The posting is data: it sits in the user turn inside <job_description> tags, never in the instruction.
4. Output is normalised: unknown match levels become gap (never upgraded) and every field is length-capped.
5. Nothing kept: the posting is not stored, cached or logged; the log records only the verdict and counts.
6. Same guards as the demos (per-IP limit, App Check, daily budget), postings of 80 to 8,000 characters, and a jobMatch flag, on by default (ADR-016).
7. The result offers to open the concierge to write to Charlie about the role.

Consequences

Benefits:
* A recruiter gets a requirement-by-requirement answer in seconds, with evidence to check.
* Gaps shown as gaps make the strong matches more credible.
* No new data, storage or processor.

Trade-offs:
* Verdicts are a model's judgement and can be wrong at the edges; the evidence line lets the reader check.
* It can only be as complete as the site: experience not on the site shows as a gap.
* Each comparison is a model call against the daily budget, uncached because postings are often confidential.

Alternatives considered

1. Keyword matching without a model: Rejected — requirements are phrased too many ways to map them to the profile honestly.
2. Doing it in the concierge chat: Rejected as the main path — a long posting makes a poor conversation and a table is easier to scan; the concierge stays the next step.
3. Caching results like the demos: Rejected — the demo cache keys results by the input in Firestore, and postings are often confidential.

Architecture Decision Records