feat(matching): rank with semantic embeddings and explain matches by evidence

This commit is contained in:
shira committed 2026-10-11 10:39:46 +03:00
1 parent facc1789b1
commit 24b64d698a
215 files changed
+16951 -327

No files matched your search

@@ -515,6 +515,138 @@ schemas:
$ref: "#/schemas/ProfileItemStatus"
source:
$ref: "#/schemas/ProfileClaimSource"
ProfileProjectTitle:
type: string
minLength: 1
maxLength: 100
pattern: '^\S(?:.*\S)?$'
description: >-
Name of a project as the candidate wants an organization to read it. It
has no leading or trailing whitespace and no line breaks. When the
candidate publishes the `projects` card field, the title reaches the
anonymous card and match explanations, so it must not contain a name,
a contact, or a repository address. Plain text; clients show it as
text, never as HTML.
ProfileProjectDescription:
type: string
minLength: 1
maxLength: 500
description: >-
What the project does and what the candidate did in it. It may contain
line breaks. When the `projects` card field is published it reaches the
anonymous card. Plain text; clients show it as text, never as HTML.
ProfileRepositoryUrl:
type: string
minLength: 22
maxLength: 160
pattern: '^https://github\.com/[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})/[A-Za-z0-9._-]{1,100}/?$'
description: >-
Address of a public GitHub repository of the project in the form
https://github.com/<owner>/<repository>. The server accepts only this
host and form, removes a trailing slash and a `.git` suffix, and stores
the canonical address. Organizations never receive the address before
an accepted invitation, because the owner name can identify the
candidate.
examples:
- https://github.com/example-org/payments-ledger
ProfileRepositoryCheckState:
type: string
description: |-
Result of the latest server check of a project repository on the public GitHub API. The server only reads public metadata; a check never proves that the candidate wrote the code.
- pending: the check is scheduled and has not finished yet.
- verified: the repository exists and is public. Match explanations may then say that the project is backed by a public repository.
- not_found: GitHub reports no such public repository; it may be private, renamed to another owner, or deleted.
- unavailable: GitHub could not be asked, for example because of its rate limit; the server retries later.
enum:
- pending
- verified
- not_found
- unavailable
ProfileRepositoryCheck:
type: object
description: >-
State of the server check of a project repository. Read-only; no
request writes it. The fetched metadata itself (description, topics,
languages, and a plain-text README excerpt) is used only for ranking
and is never returned or shown.
additionalProperties: false
required:
- state
- checked_at
properties:
state:
$ref: "#/schemas/ProfileRepositoryCheckState"
checked_at:
description: Time of the last finished check, or null before the first one.
oneOf:
- $ref: "./common_schemas.yml#/schemas/Timestamp"
- type: "null"
ProfileProjectStack:
type: array
maxItems: 10
description: >-
Technology tags of the project, each tag at most once without regard to
letter case.
items:
$ref: "./questionnaire_schemas.yml#/schemas/StackTag"
ProfileRepositoryCheckRequest:
type: object
description: Result of a request to check the linked repositories again.
additionalProperties: false
required:
- scheduled
properties:
scheduled:
type: integer
format: int32
minimum: 0
maximum: 10
description: Number of repository checks that the request scheduled.
ProfileProjectItem:
type: object
description: >-
One project of the candidate with its confirmation state and provenance.
A project is a claim of trust level 0 that the candidate types; a
linked repository adds a separate server check (`repository_check`),
never a higher trust level. The project reaches organizations only when
the candidate publishes the `projects` card field, and then without the
repository address.
additionalProperties: false
required:
- title
- description
- stack
- repository_url
- repository_check
- status
- source
properties:
title:
$ref: "#/schemas/ProfileProjectTitle"
description:
description: What the project is about, or null when the candidate gives nothing.
oneOf:
- $ref: "#/schemas/ProfileProjectDescription"
- type: "null"
stack:
$ref: "#/schemas/ProfileProjectStack"
repository_url:
description: Canonical repository address, or null when the project links none.
oneOf:
- $ref: "#/schemas/ProfileRepositoryUrl"
- type: "null"
repository_check:
description: >-
The server check of the linked repository, or null when the project
links none.
oneOf:
- $ref: "#/schemas/ProfileRepositoryCheck"
- type: "null"
status:
$ref: "#/schemas/ProfileItemStatus"
source:
$ref: "#/schemas/ProfileClaimSource"
ProfileExperienceOverlapStatus:
type: string
description: Whether the candidate confirmed that two overlapping periods are genuine parallel work.
@@ -622,8 +754,8 @@ schemas:
type: object
description: >-
The private profile of the current candidate: full name and contacts,
stack, roles, work experience, soft skills, and desired terms, each
value with its confirmation state and provenance. It is personal data
stack, roles, work experience, soft skills, projects, and desired
terms, each value with its confirmation state and provenance. It is personal data
that only the candidate reads. It is never an organization-visible
schema: an organization sees a candidate only through the anonymous
card and, after an accepted invitation, through the contact grant, and
@@ -650,6 +782,7 @@ schemas:
- experience
- experience_overlaps
- soft_skills
- projects
- terms
- confirmed_categories
- updated_at
@@ -698,6 +831,14 @@ schemas:
most once without regard to letter case.
items:
$ref: "#/schemas/ProfileSoftSkillItem"
projects:
type: array
maxItems: 10
description: >-
Projects in the order the candidate gave them, each repository
address at most once.
items:
$ref: "#/schemas/ProfileProjectItem"
terms:
$ref: "#/schemas/ProfileTerms"
confirmed_categories:
@@ -945,12 +1086,42 @@ schemas:
- type: "null"
status:
$ref: "#/schemas/ProfileItemStatus"
ProfileProjectItemInput:
type: object
description: >-
Decision about one project in a request; see CandidateProfileUpdate for
the rules of `status`. The server answers 400 with the pointer of the
field for a repository address that is not a GitHub repository address,
a repeated repository, or a repeated stack tag.
additionalProperties: false
required:
- title
- description
- stack
- repository_url
- status
properties:
title:
$ref: "#/schemas/ProfileProjectTitle"
description:
oneOf:
- $ref: "#/schemas/ProfileProjectDescription"
- type: "null"
stack:
$ref: "#/schemas/ProfileProjectStack"
repository_url:
oneOf:
- $ref: "#/schemas/ProfileRepositoryUrl"
- type: "null"
status:
$ref: "#/schemas/ProfileItemStatus"
CandidateProfileUpdate:
type: object
description: >-
Complete new state of the candidate profile. It replaces every stored
value as a whole: a single field sent as null is unknown and is removed,
and a list replaces the stored list. The body is personal data.
and a list replaces the stored list; only `projects` may be omitted,
which keeps the stored projects. The body is personal data.
Each value carries a decision `status`. `confirmed` sets a manual value
or confirms a stored suggestion; confirming a suggestion with exactly
@@ -1025,5 +1196,17 @@ schemas:
that repeats an earlier one without regard to letter case.
items:
$ref: "#/schemas/ProfileSoftSkillItemInput"
projects:
type: array
maxItems: 10
description: >-
Projects. Unlike the other lists this one is optional: a body
without `projects` keeps the stored projects unchanged, so a client
that does not know the section never deletes it, and an array,
including an empty one, replaces the stored list. A new or changed
repository address schedules a server check on the public GitHub
API after the save commits; the save itself never waits for GitHub.
items:
$ref: "#/schemas/ProfileProjectItemInput"
terms:
$ref: "#/schemas/ProfileTermsInput"