feat(evidence): project skill evidence from confirmed assessments

This commit is contained in:
shira committed 2026-10-09 11:25:19 +03:00
1 parent 4761508f13
commit c2a8d17195
94 files changed
+10077 -151

No files matched your search

+22 -1
View File
@@ -262,7 +262,7 @@ The signal notice (`assessment-signal-notice`) lists the signals collected durin
Access:
- The candidate comes only from the session; no operation takes a candidate identifier. An employer account answers 403 `forbidden`. An attempt of another candidate answers 404 `not_found`, the same as an unknown identifier, so attempt identifiers cannot be probed.
- No operation offers an employer answers, qualification evidence, attempt history, or anti-cheat signals. Employers will see only the current category through a separate projection.
- No operation offers an employer answers, attempt history, or anti-cheat signals. Employers see the current category on the anonymous card and the permitted skill evidence of that card ([Skill evidence](#skill-evidence)), never a result.
Modes and versions:
@@ -697,6 +697,27 @@ Open questions for the product owner and the lawyer:
No new problem code is added. `TestPrivacyOperationsFollowTheConventions`, `TestPublicationAndSearchStatusAreNotConsents`, `TestAnonymousCardReachesNoProfileOrContactSchema`, `TestGeneratedPrivacyDTOsCarryNoServerOwnedFields`, `TestPrivacySchemaValidationPrecedesImplementation`, and `TestPrivacyAccessBeforeImplementation` pin the generated server and the bundle, and `frontend/src/shared/api/privacy-contract.test.ts` pins the generated Zod rules, the absence of a consent, a time, a contact, or a salary in the request and card types, and the absence of settings in the organization, invitation, need, profile, and consent files.
### Skill evidence
The tag `evidence` describes the facts that confirmed assessments leave about a candidate's skills (FR06 in the PRD). It has two read operations; the logic behind them is implemented (see [architecture](../docs/en/ARCHITECTURE.md#skill-evidence)).
| Method and path | operationId | Protection | Success | Specific errors |
| --- | --- | --- | --- | --- |
| `GET /api/v1/me/evidence` | `ListMyEvidence` | session | 200 `EvidenceFactList`, `Cache-Control: no-store` | 400, 401, 403 `forbidden` |
| `GET /api/v1/organizations/{org_id}/candidate-cards/{candidate_handle}/evidence` | `GetOrganizationCandidateEvidence` | session | 200 `OrganizationEvidence`, `Cache-Control: no-store` | 400, 401, 403, 404 `not_found`, 429 |
Each operation also declares the problem response `default`. No new problem code is added.
- One event is one fact. `EvidenceFact` is a source event; `skills` are the tags of that event (a non-empty set), so a second tag never makes a second fact. `source` names the event and the immutable result (`event_id` and `result_id`, equal for an assessment because a result is keyed by its attempt; the candidate opens it at `GetMyAssessmentResult`).
- A claim is not a measurement. `kind` is `claim` (trust 0) or `measurement` (trust 1 to 3). `EvidenceTrustLevel` is an integer from 0 to 3; an online assessment without a reliable confirmation of the identity is trust 1, and repetition never raises it. Only measurements from assessments are produced today.
- What a fact says is `result`: the grade that was passed, the `basis` (`synthetic_demo`), and the `calibration_status` (`uncalibrated`), so the candidate never reads a demonstration category as a validated measurement. The organization projection and the preview carry both labels as well. A fact has no score, answer, item, failed attempt, or anti-cheat datum, and a failed attempt, a result without a reviewed category source, and a `demo_express` run produce no fact.
- `ListMyEvidence` lists only the caller's facts, newest event first, hidden facts included (`visibility` `hidden`), with the shared `limit` (1 to 100, default 20) and an opaque `cursor` bound to the candidate. A malformed or foreign cursor and a limit out of range answer 400; an employer account answers 403.
- `GetOrganizationCandidateEvidence` is a section of the anonymous card. It answers only while `GetOrganizationCandidateCard` would answer for the same handle and the card shows at least one category; every other case (unknown handle, handle of another organization, closed or revoked publication, hidden organization, minimum cohort, card without categories) is the same 404, so the answer reveals nothing the card does not. For each category of the card it returns one `OrganizationEvidenceFact`: the earliest visible assessment that passed exactly the confirmed grade, with only `skill`, `grade`, `trust`, `observed_year` (the year, UTC), and `basis` and `calibration_status` (`synthetic_demo`, `uncalibrated`; the same for every candidate, so they add no fingerprint and say the fact is a demonstration). A lower grade, a retake, the other tags, the source, the basis, the month, and every identifier stay with the candidate; at most nine facts, ordered by skill, and a hidden fact is absent. No key joins the answer to a person, but it is not unlinkable: with the other values of the card, the skill, grade, trust, and year can narrow a small pool, and the minimum cohort does not cover the year. The read consumes the card-view quota and appears in the access history with the field `categories`.
- The preview. `CardPreview.evidence` is the same section computed for the candidate (`OrganizationEvidence`, or null exactly when `card` is null), so the candidate sees what an organization would read with the `categories` field. It applies no organization or cohort, so an organization can receive less.
- Closed schemas and the privacy walk. Every evidence object has `additionalProperties: false` and requires all its properties. `TestNoOrganizationOperationReachesRawAssessmentData` (Go) and `test_evidence_is_closed_and_no_organization_operation_reaches_raw_assessment_data` (Python) walk every organization operation and `ListMyEvidence` through all references and fail on an assessment, signal, or review schema or on a raw answer, score, or failure property.
Open questions: whether the C2 consent text needs a new version now that publishing `categories` also sends one supporting assessment fact (skill, grade, trust level, year) to an organization - a decision for the owner and the lawyer, and the consent texts are not changed here; whether the evidence needs its own card field instead of the `categories` field; whether the year is the right precision for an employer; an operation for the candidate to hide or show a fact (the stored visibility exists, no operation changes it); and when claims of the profile and facts from other sources join the list.
### Generator checks
`testdata/openapi-3.2.0.yml` contains test operations that use the components above: pagination, Idempotency-Key, If-Match, ETag, and problem responses. ogen does not resolve external references, so the fixture keeps copies of the api/core components; `scripts/test_contract_copies.py` (part of `make -C api check`) checks that they, the fixture responses, and the ML `Problem` copy match api/core.
+22 -1
View File
@@ -262,7 +262,7 @@ ML-сервис отвечает на ошибки той же схемой `Pro
Доступ:
- Кандидат берется только из сессии; ни одна операция не принимает идентификатор кандидата. Аккаунт работодателя получает 403 `forbidden`. Попытка другого кандидата дает 404 `not_found`, как и неизвестный идентификатор, поэтому идентификаторы попыток нельзя перебирать.
- Ни одна операция не дает работодателю ответы, квалификационные данные, историю попыток или античит-сигналы. Работодатель будет видеть только текущую категорию через отдельную проекцию.
- Ни одна операция не дает работодателю ответы, историю попыток или античит-сигналы. Работодатель видит текущую категорию в анонимной карточке и разрешенные доказательства навыков этой карточки ([Доказательства навыков](#доказательства-навыков)), но не результат.
Режимы и версии:
@@ -697,6 +697,27 @@ ML-сервис отвечает на ошибки той же схемой `Pro
Новый код problem не добавляется. `TestPrivacyOperationsFollowTheConventions`, `TestPublicationAndSearchStatusAreNotConsents`, `TestAnonymousCardReachesNoProfileOrContactSchema`, `TestGeneratedPrivacyDTOsCarryNoServerOwnedFields`, `TestPrivacySchemaValidationPrecedesImplementation` и `TestPrivacyAccessBeforeImplementation` закрепляют сгенерированный сервер и бандл, а `frontend/src/shared/api/privacy-contract.test.ts` - сгенерированные правила Zod, отсутствие согласия, времени, контакта и зарплаты в типах запросов и карточки и отсутствие настроек в файлах организации, приглашения, потребности, профиля и согласий.
### Доказательства навыков
Тег `evidence` описывает факты, которые подтвержденные оценки оставляют о навыках кандидата (FR06 в PRD). В нем две операции чтения; логика за ними реализована (см. [архитектуру](../docs/ru/ARCHITECTURE.md#доказательства-навыков)).
| Метод и путь | operationId | Защита | Успех | Специфичные ошибки |
| --- | --- | --- | --- | --- |
| `GET /api/v1/me/evidence` | `ListMyEvidence` | сессия | 200 `EvidenceFactList`, `Cache-Control: no-store` | 400, 401, 403 `forbidden` |
| `GET /api/v1/organizations/{org_id}/candidate-cards/{candidate_handle}/evidence` | `GetOrganizationCandidateEvidence` | сессия | 200 `OrganizationEvidence`, `Cache-Control: no-store` | 400, 401, 403, 404 `not_found`, 429 |
Каждая операция также объявляет проблемный ответ `default`. Новых кодов проблем нет.
- Одно событие - один факт. `EvidenceFact` - это событие-источник; `skills` - теги этого события (непустое множество), поэтому второй тег не создает второй факт. `source` называет событие и неизменяемый результат (`event_id` и `result_id`, для оценки они равны, так как результат ключуется попыткой; кандидат открывает его через `GetMyAssessmentResult`).
- Заявление не равно измерению. `kind` равен `claim` (доверие 0) или `measurement` (доверие 1-3). `EvidenceTrustLevel` - целое от 0 до 3; онлайн-оценка без надежного подтверждения личности имеет доверие 1 и повторами не растет. Сейчас создаются только измерения из оценок.
- Что говорит факт, лежит в `result`: пройденный грейд, `basis` (`synthetic_demo`) и `calibration_status` (`uncalibrated`), поэтому кандидат не принимает демонстрационную категорию за проверенное измерение. Проекция для организации и предпросмотр тоже несут обе метки. В факте нет балла, ответа, задания, проваленной попытки и античит-данных; проваленная попытка, результат без проверенного источника категории и прогон `demo_express` фактов не создают.
- `ListMyEvidence` возвращает только факты вызывающего, новые события первыми, включая скрытые (`visibility` `hidden`), с общим `limit` (1-100, по умолчанию 20) и непрозрачным `cursor`, привязанным к кандидату. Неверный или чужой курсор и `limit` вне диапазона дают 400; аккаунт работодателя получает 403.
- `GetOrganizationCandidateEvidence` - раздел анонимной карточки. Он отвечает, только пока на тот же handle ответил бы `GetOrganizationCandidateCard` и карточка показывает хотя бы одну категорию; любой другой случай (неизвестный handle, handle другой организации, закрытая или отозванная публикация, скрытая организация, минимальная когорта, карточка без категорий) дает один и тот же 404, поэтому ответ не раскрывает то, чего не раскрывает карточка. На каждую категорию карточки возвращается один `OrganizationEvidenceFact`: самая ранняя видимая оценка, прошедшая ровно подтвержденный грейд, и только `skill`, `grade`, `trust`, `observed_year` (год, UTC), а также `basis` и `calibration_status` (`synthetic_demo`, `uncalibrated`; одинаковы для всех кандидатов, поэтому отпечатка не добавляют и сообщают, что факт - демонстрация). Более низкий грейд, пересдача, остальные теги, источник, основание, месяц и все идентификаторы остаются у кандидата; не более девяти фактов, по порядку навыков; скрытого факта нет. Ключа, который привязывает ответ к человеку, нет, но он не является несвязываемым: вместе с другими значениями карточки навык, грейд, доверие и год могут сузить малый пул, а минимальная когорта год не покрывает. Чтение расходует квоту просмотров карточек и попадает в историю доступа с полем `categories`.
- Предпросмотр. `CardPreview.evidence` - тот же раздел, посчитанный для кандидата (`OrganizationEvidence`, либо null ровно тогда, когда `card` равен null), поэтому кандидат видит, что организация прочтет вместе с полем `categories`. Организация и когорта не применяются, так что организация может получить меньше.
- Закрытые схемы и обход приватности. У каждого объекта доказательств `additionalProperties: false`, и все его свойства обязательны. `TestNoOrganizationOperationReachesRawAssessmentData` (Go) и `test_evidence_is_closed_and_no_organization_operation_reaches_raw_assessment_data` (Python) обходят все организационные операции и `ListMyEvidence` по всем ссылкам и падают на схеме оценки, сигнала или проверки и на свойстве с сырым ответом, баллом или провалом.
Открытые вопросы: нужна ли новая версия текста согласия C2, раз публикация `categories` теперь отправляет организации еще один подтверждающий факт оценки (навык, грейд, уровень доверия, год) - решение владельца продукта и юриста, тексты согласий здесь не меняются; нужно ли доказательствам собственное поле карточки вместо поля `categories`; подходит ли работодателю точность в один год; операция скрыть или показать факт для кандидата (сохраненная видимость есть, операции для ее изменения нет); когда в список добавятся заявления профиля и факты из других источников.
### Проверки генераторов
`testdata/openapi-3.2.0.yml` содержит тестовые операции с перечисленными компонентами: пагинацией, Idempotency-Key, If-Match, ETag и problem-ответами. ogen не разрешает внешние ссылки, поэтому фикстура хранит копии компонентов api/core; `scripts/test_contract_copies.py` (входит в `make -C api check`) проверяет, что они, ответы фикстуры и ML-копия `Problem` совпадают с api/core.
+43
View File
@@ -4385,6 +4385,14 @@ PublishedCardPreview:
experience_band: "1_3"
work_formats: null
salary_compatibility: null
evidence:
items:
- skill: backend
grade: middle
trust: 1
basis: synthetic_demo
calibration_status: uncalibrated
observed_year: 2026
generated_at: "2026-10-06T09:30:00Z"
OrganizationAnonymousCandidateCard:
summary: An anonymous card currently visible to one organization
@@ -4408,6 +4416,7 @@ ClosedCardPreview:
state: closed
fields: []
card: null
evidence: null
generated_at: "2026-10-06T09:30:00Z"
PrivacyEventListPage:
summary: A publication, a hiding, and a confirmed status
@@ -4455,6 +4464,40 @@ CardAccessListPage:
page:
has_more: false
next_cursor: null
EvidenceFactListPage:
summary: A confirmed junior backend result with one fact and two tags of the same event
value:
items:
- id: 01928f7a-d1e2-7f3a-8b4c-5d6e7f8a9b01
kind: measurement
source:
type: assessment_result
event_id: 01928f7a-e1f2-7a3b-8c4d-5e6f7a8b9c01
result_id: 01928f7a-e1f2-7a3b-8c4d-5e6f7a8b9c01
skills:
- backend
- go
result:
grade: junior
basis: synthetic_demo
calibration_status: uncalibrated
attribution: personal
trust: 1
occurred_at: "2026-10-08T10:15:00Z"
visibility: visible
page:
has_more: false
next_cursor: null
OrganizationCandidateEvidence:
summary: The one supporting assessment fact of the category on the card
value:
items:
- skill: backend
grade: junior
trust: 1
basis: synthetic_demo
calibration_status: uncalibrated
observed_year: 2026
PrivacyStaleVersion:
summary: The change carried a stale expected_version
description: The setting changed, for example in another tab, after the client read it. Nothing was changed; the client reads the settings again and reapplies its edit.
+247 -2
View File
@@ -3312,6 +3312,246 @@ ContactDisclosure:
oneOf:
- $ref: '#/ContactTelegramUsername'
- type: 'null'
EvidenceKind:
type: string
description: 'Whether a fact is a statement or an observation.
- claim: something the candidate stated that nothing confirmed separately. Its trust is 0.
- measurement: a result that a system observed, such as a confirmed assessment. Its trust is 1 to 3.
Assessments produce measurements only. A claim never becomes a measurement by repetition, and the two kinds are stored apart.'
enum:
- claim
- measurement
EvidenceSourceType:
type: string
description: 'Where the fact comes from.
- assessment_result: a real (root or corrective) assessment result of this platform that confirmed a grade. An express training run (`demo_express`), a failed attempt, and a result without a reviewed category source are never a source.
Adding a value is a contract change.'
enum:
- assessment_result
EvidenceAttribution:
type: string
description: 'Whose contribution the fact is.
- personal: the candidate''s own result. Every assessment fact is personal.
- team_role: a team result with a confirmed role of the candidate.
- team_unattributed: a team result without a confirmed role; it is not a personal skill.
Only `personal` is produced today.'
enum:
- personal
- team_role
- team_unattributed
EvidenceTrustLevel:
type: integer
format: int32
minimum: 0
maximum: 3
description: 'Strength of the confirmation.
- 0: stated by the person, not confirmed separately.
- 1: an observable online result without a reliable confirmation of the identity or the authorship. Every assessment fact has this level today, because the assessment is unproctored and the identity is not confirmed.
- 2: a result tied to a confirmed identity or confirmed by an independent party.
- 3: an in-person check with a matching confirmation.
A repeated statement, a sign-in, or a repeated tag of the same event never raises the level.'
examples:
- 1
EvidenceVisibility:
type: string
description: 'Whether the fact may take part in what an organization reads.
- visible: the fact is eligible for the organization projection. It does not publish the fact: the projection also needs the published card with the `categories` field and an active C2.
- hidden: the candidate hid the fact. No organization reads it. Hiding never edits or deletes the confirmed result.'
enum:
- visible
- hidden
EvidenceSkillCode:
type: string
description: A skill tag from a closed set - the specialization codes of the catalog and the technology codes of the anonymous card. An assessment tags its fact with the specialization of the category.
enum:
- backend
- frontend
- mobile
- network_engineer
- devops_sre
- data_analyst
- ds_ml
- information_security
- qa
- go
- postgresql
- kafka
- docker
EvidenceBasis:
type: string
description: 'What the measurement rests on.
- synthetic_demo: a demonstration category from a synthetic reviewed bank. It shows the mechanics and is not a validated measurement.'
enum:
- synthetic_demo
EvidenceCalibrationStatus:
type: string
description: 'Calibration of the method behind the result.
- uncalibrated: the thresholds are initial values that no measurement has validated.'
enum:
- uncalibrated
EvidenceResult:
type: object
description: 'What the fact says: the grade that was passed and how reliable the method is. It carries no score, answer, item, failure, or anti-cheat data.'
additionalProperties: false
required:
- grade
- basis
- calibration_status
properties:
grade:
$ref: '#/GradeCode'
basis:
$ref: '#/EvidenceBasis'
calibration_status:
$ref: '#/EvidenceCalibrationStatus'
EvidenceSource:
type: object
description: Where the fact comes from. For an assessment the event is the attempt and the result is the immutable result of that attempt, which the candidate reads at `GetMyAssessmentResult`; the two identifiers are equal because a result is keyed by its attempt.
additionalProperties: false
required:
- type
- event_id
- result_id
properties:
type:
$ref: '#/EvidenceSourceType'
event_id:
type: string
format: uuid
description: Identifier of the source event. One event is one fact, however many skills it is tagged with.
result_id:
type: string
format: uuid
description: Identifier of the immutable result that produced the fact.
EvidenceFact:
type: object
description: One independent fact of the current candidate. `occurred_at` is when the source event ended; for an assessment it is the time of the decision. A fact is one source event; the skills of that event are tags of the fact, so a second tag never makes a second fact. Hidden facts are listed here with their visibility, because the candidate owns them.
additionalProperties: false
required:
- id
- kind
- source
- skills
- result
- attribution
- trust
- occurred_at
- visibility
properties:
id:
type: string
format: uuid
description: Identifier of the fact.
kind:
$ref: '#/EvidenceKind'
source:
$ref: '#/EvidenceSource'
skills:
type: array
minItems: 1
maxItems: 13
uniqueItems: true
description: Skill tags of the event in ascending order.
items:
$ref: '#/EvidenceSkillCode'
result:
$ref: '#/EvidenceResult'
attribution:
$ref: '#/EvidenceAttribution'
trust:
$ref: '#/EvidenceTrustLevel'
occurred_at:
$ref: '#/Timestamp'
visibility:
$ref: '#/EvidenceVisibility'
EvidenceFactList:
type: object
description: One page of the facts of the current candidate, newest event first.
additionalProperties: false
required:
- items
- page
properties:
items:
type: array
maxItems: 100
description: Facts of the page.
items:
$ref: '#/EvidenceFact'
page:
$ref: '#/PageInfo'
OrganizationEvidenceFact:
type: object
description: 'The one assessment fact that supports a category of the card as an organization reads it: the earliest visible measurement that passed exactly the confirmed grade of that category. A lower grade, a retake, the other tags of the event, the source, the basis, the exact time, and every identifier stay with the candidate. The fact carries no identifier of the fact, the event, the result, or the candidate, so it cannot be joined to a person by a key. It is not unlinkable: the skill, the grade, the trust level, and the year, together with the other values of the card, can narrow a small pool of candidates, and the minimum cohort of the card does not cover the year. `basis` and `calibration_status` are the same for every candidate: they say that the fact comes from a synthetic demonstration and is not calibrated, so a demonstration is never read as a validated measurement. The fact never carries an answer, score, item, failure, signal, or review band.'
additionalProperties: false
required:
- skill
- grade
- trust
- basis
- calibration_status
- observed_year
properties:
skill:
$ref: '#/EvidenceSkillCode'
grade:
$ref: '#/GradeCode'
trust:
$ref: '#/EvidenceTrustLevel'
basis:
$ref: '#/EvidenceBasis'
calibration_status:
$ref: '#/EvidenceCalibrationStatus'
observed_year:
type: integer
format: int32
minimum: 2000
maximum: 9999
description: Year (UTC) when the assessment ended. The month, day, and time stay with the candidate.
examples:
- 2026
OrganizationEvidence:
type: object
description: 'The permitted evidence of one candidate card, ordered by skill: at most one fact for each category of the card (at most nine). The list is empty when no visible fact supports a category of the card.'
additionalProperties: false
required:
- items
properties:
items:
type: array
maxItems: 9
description: Permitted facts, one for each supported category.
items:
$ref: '#/OrganizationEvidenceFact'
HealthResponse:
type: object
additionalProperties: false
@@ -6201,7 +6441,7 @@ CardField:
description: 'A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.
- categories: specialization and grade confirmed by an authoritative assessment result.
- categories: specialization and grade confirmed by an authoritative assessment result. With it an organization receives the confirmed category and, with each category of the card, one supporting assessment fact: its skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration that mark a synthetic, uncalibrated demonstration (`GetOrganizationCandidateEvidence`). The candidate sees the same on `GetMyCardPreview`.
- self_assessment: the candidate''s declared specialization and grade, separate from confirmed categories.
@@ -6558,12 +6798,13 @@ AnonymousCardContent:
description: Nullable compatibility result with no salary values.
CardPreview:
type: object
description: A private candidate preview computed from the current profile, publication, and consent ledger. Its pseudonym uses a separate preview context and is not an organization's alias. Organization-specific visibility filters and cohort checks can further generalize or suppress the organization-facing card. This read creates no view or history record and never reaches an organization. `card` is null while the profile is closed.
description: A private candidate preview computed from the current profile, publication, and consent ledger. Its pseudonym uses a separate preview context and is not an organization's alias. Organization-specific visibility filters and cohort checks can further generalize or suppress the organization-facing card. This read creates no view or history record and never reaches an organization. `card` is null while the profile is closed. `evidence` is what an organization would read in the evidence section of the card, one supporting assessment fact for each category of the card, and is null exactly when `card` is null; the organization-facing section can still be generalized or suppressed.
additionalProperties: false
required:
- state
- fields
- card
- evidence
- generated_at
properties:
state:
@@ -6574,6 +6815,10 @@ CardPreview:
oneOf:
- $ref: '#/AnonymousCardContent'
- type: 'null'
evidence:
oneOf:
- $ref: '#/OrganizationEvidence'
- type: 'null'
generated_at:
$ref: '#/Timestamp'
PrivacyEventKind:
@@ -0,0 +1,258 @@
schemas:
EvidenceKind:
type: string
description: |-
Whether a fact is a statement or an observation.
- claim: something the candidate stated that nothing confirmed separately. Its trust is 0.
- measurement: a result that a system observed, such as a confirmed assessment. Its trust is 1 to 3.
Assessments produce measurements only. A claim never becomes a measurement by repetition, and the two kinds are stored apart.
enum:
- claim
- measurement
EvidenceSourceType:
type: string
description: |-
Where the fact comes from.
- assessment_result: a real (root or corrective) assessment result of this platform that confirmed a grade. An express training run (`demo_express`), a failed attempt, and a result without a reviewed category source are never a source.
Adding a value is a contract change.
enum:
- assessment_result
EvidenceAttribution:
type: string
description: |-
Whose contribution the fact is.
- personal: the candidate's own result. Every assessment fact is personal.
- team_role: a team result with a confirmed role of the candidate.
- team_unattributed: a team result without a confirmed role; it is not a personal skill.
Only `personal` is produced today.
enum:
- personal
- team_role
- team_unattributed
EvidenceTrustLevel:
type: integer
format: int32
minimum: 0
maximum: 3
description: |-
Strength of the confirmation.
- 0: stated by the person, not confirmed separately.
- 1: an observable online result without a reliable confirmation of the identity or the authorship. Every assessment fact has this level today, because the assessment is unproctored and the identity is not confirmed.
- 2: a result tied to a confirmed identity or confirmed by an independent party.
- 3: an in-person check with a matching confirmation.
A repeated statement, a sign-in, or a repeated tag of the same event never raises the level.
examples:
- 1
EvidenceVisibility:
type: string
description: |-
Whether the fact may take part in what an organization reads.
- visible: the fact is eligible for the organization projection. It does not publish the fact: the projection also needs the published card with the `categories` field and an active C2.
- hidden: the candidate hid the fact. No organization reads it. Hiding never edits or deletes the confirmed result.
enum:
- visible
- hidden
EvidenceSkillCode:
type: string
description: A skill tag from a closed set - the specialization codes of the catalog and the technology codes of the anonymous card. An assessment tags its fact with the specialization of the category.
enum:
- backend
- frontend
- mobile
- network_engineer
- devops_sre
- data_analyst
- ds_ml
- information_security
- qa
- go
- postgresql
- kafka
- docker
EvidenceBasis:
type: string
description: |-
What the measurement rests on.
- synthetic_demo: a demonstration category from a synthetic reviewed bank. It shows the mechanics and is not a validated measurement.
enum:
- synthetic_demo
EvidenceCalibrationStatus:
type: string
description: |-
Calibration of the method behind the result.
- uncalibrated: the thresholds are initial values that no measurement has validated.
enum:
- uncalibrated
EvidenceResult:
type: object
description: >-
What the fact says: the grade that was passed and how reliable the method
is. It carries no score, answer, item, failure, or anti-cheat data.
additionalProperties: false
required:
- grade
- basis
- calibration_status
properties:
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
basis:
$ref: "#/schemas/EvidenceBasis"
calibration_status:
$ref: "#/schemas/EvidenceCalibrationStatus"
EvidenceSource:
type: object
description: >-
Where the fact comes from. For an assessment the event is the attempt
and the result is the immutable result of that attempt, which the
candidate reads at `GetMyAssessmentResult`; the two identifiers are
equal because a result is keyed by its attempt.
additionalProperties: false
required:
- type
- event_id
- result_id
properties:
type:
$ref: "#/schemas/EvidenceSourceType"
event_id:
type: string
format: uuid
description: Identifier of the source event. One event is one fact, however many skills it is tagged with.
result_id:
type: string
format: uuid
description: Identifier of the immutable result that produced the fact.
EvidenceFact:
type: object
description: >-
One independent fact of the current candidate. `occurred_at` is when
the source event ended; for an assessment it is the time of the
decision. A fact is one source event; the skills of that event are tags of the fact, so a second tag
never makes a second fact. Hidden facts are listed here with their
visibility, because the candidate owns them.
additionalProperties: false
required:
- id
- kind
- source
- skills
- result
- attribution
- trust
- occurred_at
- visibility
properties:
id:
type: string
format: uuid
description: Identifier of the fact.
kind:
$ref: "#/schemas/EvidenceKind"
source:
$ref: "#/schemas/EvidenceSource"
skills:
type: array
minItems: 1
maxItems: 13
uniqueItems: true
description: Skill tags of the event in ascending order.
items:
$ref: "#/schemas/EvidenceSkillCode"
result:
$ref: "#/schemas/EvidenceResult"
attribution:
$ref: "#/schemas/EvidenceAttribution"
trust:
$ref: "#/schemas/EvidenceTrustLevel"
occurred_at:
$ref: "./common_schemas.yml#/schemas/Timestamp"
visibility:
$ref: "#/schemas/EvidenceVisibility"
EvidenceFactList:
type: object
description: One page of the facts of the current candidate, newest event first.
additionalProperties: false
required:
- items
- page
properties:
items:
type: array
maxItems: 100
description: Facts of the page.
items:
$ref: "#/schemas/EvidenceFact"
page:
$ref: "./common_schemas.yml#/schemas/PageInfo"
OrganizationEvidenceFact:
type: object
description: >-
The one assessment fact that supports a category of the card as an
organization reads it: the earliest visible measurement that passed
exactly the confirmed grade of that category. A lower grade, a retake,
the other tags of the event, the source, the basis, the exact time, and
every identifier stay with the candidate. The fact carries no
identifier of the fact, the event, the result, or the candidate, so it
cannot be joined to a person by a key. It is not unlinkable: the skill,
the grade, the trust level, and the year, together with the other
values of the card, can narrow a small pool of candidates, and the
minimum cohort of the card does not cover the year. `basis` and
`calibration_status` are the same for every candidate: they say that
the fact comes from a synthetic demonstration and is not calibrated,
so a demonstration is never read as a validated measurement. The fact
never carries an answer, score, item, failure, signal, or review band.
additionalProperties: false
required:
- skill
- grade
- trust
- basis
- calibration_status
- observed_year
properties:
skill:
$ref: "#/schemas/EvidenceSkillCode"
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
trust:
$ref: "#/schemas/EvidenceTrustLevel"
basis:
$ref: "#/schemas/EvidenceBasis"
calibration_status:
$ref: "#/schemas/EvidenceCalibrationStatus"
observed_year:
type: integer
format: int32
minimum: 2000
maximum: 9999
description: Year (UTC) when the assessment ended. The month, day, and time stay with the candidate.
examples:
- 2026
OrganizationEvidence:
type: object
description: >-
The permitted evidence of one candidate card, ordered by skill: at most
one fact for each category of the card (at most nine). The list is empty
when no visible fact supports a category of the card.
additionalProperties: false
required:
- items
properties:
items:
type: array
maxItems: 9
description: Permitted facts, one for each supported category.
items:
$ref: "#/schemas/OrganizationEvidenceFact"
@@ -28,7 +28,7 @@ schemas:
description: |-
A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.
- categories: specialization and grade confirmed by an authoritative assessment result.
- categories: specialization and grade confirmed by an authoritative assessment result. With it an organization receives the confirmed category and, with each category of the card, one supporting assessment fact: its skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration that mark a synthetic, uncalibrated demonstration (`GetOrganizationCandidateEvidence`). The candidate sees the same on `GetMyCardPreview`.
- self_assessment: the candidate's declared specialization and grade, separate from confirmed categories.
- stack: only recognized technology codes from the server's closed taxonomy.
- experience: a coarse total-experience band, without employers, periods, or descriptions.
@@ -468,12 +468,16 @@ schemas:
visibility filters and cohort checks can further generalize or suppress
the organization-facing card. This read creates no view or history
record and never reaches an organization. `card` is null while the
profile is closed.
profile is closed. `evidence` is what an organization would read in the
evidence section of the card, one supporting assessment fact for each
category of the card, and is null exactly when `card` is null; the
organization-facing section can still be generalized or suppressed.
additionalProperties: false
required:
- state
- fields
- card
- evidence
- generated_at
properties:
state:
@@ -484,6 +488,10 @@ schemas:
oneOf:
- $ref: "#/schemas/AnonymousCardContent"
- type: "null"
evidence:
oneOf:
- $ref: "./evidence_schemas.yml#/schemas/OrganizationEvidence"
- type: "null"
generated_at:
$ref: "./common_schemas.yml#/schemas/Timestamp"
PrivacyEventKind:
+369 -2
View File
@@ -25,6 +25,8 @@ tags:
description: 'Invitations from an organization to one candidate: drafts with complete terms, immutable terms versions, sending, the candidate''s inbox, acceptance with the consent C4, structured declines, withdrawal and cancellation, and the contact grant. Contacts are readable only through an active grant, in a response separate from the terms.'
- name: privacy
description: 'Visibility of the current candidate: the publication of the anonymous card (a setting that refers to the C2 consent of the ledger and never replaces it), the search status that is not a consent, the organizations that the candidate hides the profile from, the preview of the card, and the history of the settings and of the accesses. Everything is closed by default, and no change makes a candidate more visible than they chose. No schema here reaches a contact, a name, or the lowest salary.'
- name: evidence
description: 'Skill evidence derived from confirmed assessment results: one fact per source event with its skills, trust level, attribution, date, and visibility. The candidate reads their own facts; an organization reads only the permitted projection of a currently visible card. Raw answers, failures, and anti-cheat data are never part of it.'
- name: consent
description: 'The consent ledger of the current account: the independent consents C1-C5 with their text versions, sources, states, and revocations. The ledger is append-only and returns only the caller''s own records.'
- name: support
@@ -1743,6 +1745,52 @@ paths:
$ref: '#/components/responses/TooManyRequests'
default:
$ref: '#/components/responses/Problem'
/api/v1/organizations/{org_id}/candidate-cards/{candidate_handle}/evidence:
get:
operationId: GetOrganizationCandidateEvidence
summary: Read the permitted skill evidence of one currently visible candidate card.
description: |-
Requires the session cookie of an employer account with an active membership in `org_id`. The organization and membership come from the current server-side session and path, never from cached search data.
`candidate_handle` is the organization-scoped opaque alias issued by the current anonymous-card projection. The server runs the same checks as the card read on every request: active membership, effective C2 publication, the candidate's hiding of this organization, and the minimum cohort. In addition the card must publish the `categories` field and show at least one category after the cohort rules, because the evidence explains those categories and discloses nothing beyond them. An unknown handle, a handle of another organization, a closed or revoked publication, a profile hidden from this organization, a profile suppressed by the minimum cohort, and a card without categories all answer the same 404 not_found. Closing C2 or hiding the organization blocks this read immediately, and a cached response proves nothing.
The response lists, for each category of the card, the one visible fact that supports its confirmed grade: the earliest assessment that passed exactly that grade, so a lower grade or a retake adds nothing. A fact the candidate hid is absent. Each fact carries only the skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration of the method (`synthetic_demo`, `uncalibrated`), which are the same for every candidate and say that the fact is a demonstration, not a validated measurement. It carries no identifier of the fact, event, result, or candidate, no month or exact time, and never an answer, item, score, failed attempt, review band, or anti-cheat signal. An express training run and a failed attempt create no fact. The answer has no key that joins it to a person, but it is not unlinkable: with the other values of the card it can narrow a small pool of candidates.
Reading the evidence is a view of the candidate card: it consumes the organization's current card-view quota with the same distinct-card rule and is recorded in the access history with the `categories` field. When the quota is exhausted the operation answers 429 with Retry-After. The response is `Cache-Control: no-store`.
A missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden; an unknown organization or account without an active membership answers 404 not_found. An `org_id` that is not a UUID or a malformed candidate handle answers 400 validation_failed.
security:
- sessionCookie: []
tags:
- evidence
parameters:
- $ref: '#/components/parameters/OrganizationId'
- $ref: '#/components/parameters/CandidateHandle'
responses:
'200':
description: The permitted evidence of this candidate card for this organization.
headers:
Cache-Control:
$ref: '#/components/headers/CacheControlNoStore'
content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationEvidence'
examples:
permitted:
$ref: '#/components/examples/OrganizationCandidateEvidence'
'400':
$ref: '#/components/responses/ValidationFailed'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
default:
$ref: '#/components/responses/Problem'
/api/v1/organizations/{org_id}/invitations:
get:
operationId: ListOrganizationInvitations
@@ -2808,6 +2856,8 @@ paths:
`card` is the closed `AnonymousCardContent` projection. It reaches no private profile or contact schema and contains no name, email, phone, Telegram name, employer, salary figure, account identifier, or profile identifier. Unpublished or unknown values are null. Only allowed canonical skills and generalized experience are exposed; arbitrary profile text and imported excerpts never appear. `categories` contains only confirmed assessment results. Self-assessed grades and work formats appear only through their separate explicit publication choices, and self-assessment never becomes a confirmed category. Salary compatibility is nullable and contains no salary amount.
`evidence` shows what an organization would read in the evidence section of the card (`GetOrganizationCandidateEvidence`): for each category of the card, the one assessment fact that supports its confirmed grade, with its skill, the passed grade, the trust level, the year, and the basis and calibration (`synthetic_demo`, `uncalibrated`). It is null while `card` is null, and an empty list when the card shows no category or no visible fact supports one. The preview applies no organization or cohort, so an organization can still receive less.
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden.
security:
- sessionCookie: []
@@ -3083,6 +3133,46 @@ paths:
$ref: '#/components/responses/Forbidden'
default:
$ref: '#/components/responses/Problem'
/api/v1/me/evidence:
get:
operationId: ListMyEvidence
summary: List the skill evidence of the current candidate.
description: |-
Requires the session cookie of a candidate account. The candidate comes from the session, so the response holds only the caller's own facts. Returns a page, newest event first with the fact identifier as the tie-breaker, with cursor pagination. The response is `Cache-Control: no-store`.
A fact is derived from the immutable result of a confirmed real assessment (root or corrective), in the same transaction that stores the result. Each fact names its source (the event and the result, which the candidate can open at `GetMyAssessmentResult`), the skills of the event, the grade that was passed with its basis and calibration, the attribution, the date, the visibility, and the trust level. An online assessment without a reliable confirmation of the identity has trust 1. One source event is one fact: its skills are tags of that fact, so several tags never make several facts.
The list never carries raw answers, items, scores, failed attempts, or anti-cheat data. A failed attempt, a result without a reviewed category source, and an express training run (`demo_express`) create no fact, so reading the list before and after an express run shows no new fact. The list includes facts the candidate hid, with `visibility` `hidden`.
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account, or a candidate with an unverified email, answers 403 forbidden. A malformed `limit` or `cursor`, or a cursor of another candidate, answers 400 validation_failed.
security:
- sessionCookie: []
tags:
- evidence
parameters:
- $ref: '#/components/parameters/PageLimit'
- $ref: '#/components/parameters/PageCursor'
responses:
'200':
description: A page of the skill evidence of the current candidate.
headers:
Cache-Control:
$ref: '#/components/headers/CacheControlNoStore'
content:
application/json:
schema:
$ref: '#/components/schemas/EvidenceFactList'
examples:
page:
$ref: '#/components/examples/EvidenceFactListPage'
'400':
$ref: '#/components/responses/ValidationFailed'
'401':
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/Forbidden'
default:
$ref: '#/components/responses/Problem'
/api/v1/me/support-cases:
get:
operationId: ListMySupportCases
@@ -8953,7 +9043,7 @@ components:
description: |-
A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.
- categories: specialization and grade confirmed by an authoritative assessment result.
- categories: specialization and grade confirmed by an authoritative assessment result. With it an organization receives the confirmed category and, with each category of the card, one supporting assessment fact: its skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration that mark a synthetic, uncalibrated demonstration (`GetOrganizationCandidateEvidence`). The candidate sees the same on `GetMyCardPreview`.
- self_assessment: the candidate's declared specialization and grade, separate from confirmed categories.
- stack: only recognized technology codes from the server's closed taxonomy.
- experience: a coarse total-experience band, without employers, periods, or descriptions.
@@ -9257,12 +9347,13 @@ components:
description: Nullable compatibility result with no salary values.
CardPreview:
type: object
description: A private candidate preview computed from the current profile, publication, and consent ledger. Its pseudonym uses a separate preview context and is not an organization's alias. Organization-specific visibility filters and cohort checks can further generalize or suppress the organization-facing card. This read creates no view or history record and never reaches an organization. `card` is null while the profile is closed.
description: A private candidate preview computed from the current profile, publication, and consent ledger. Its pseudonym uses a separate preview context and is not an organization's alias. Organization-specific visibility filters and cohort checks can further generalize or suppress the organization-facing card. This read creates no view or history record and never reaches an organization. `card` is null while the profile is closed. `evidence` is what an organization would read in the evidence section of the card, one supporting assessment fact for each category of the card, and is null exactly when `card` is null; the organization-facing section can still be generalized or suppressed.
additionalProperties: false
required:
- state
- fields
- card
- evidence
- generated_at
properties:
state:
@@ -9273,6 +9364,10 @@ components:
oneOf:
- $ref: '#/components/schemas/AnonymousCardContent'
- type: 'null'
evidence:
oneOf:
- $ref: '#/components/schemas/OrganizationEvidence'
- type: 'null'
generated_at:
$ref: '#/components/schemas/Timestamp'
PrivacyEventKind:
@@ -9395,6 +9490,235 @@ components:
$ref: '#/components/schemas/CardAccess'
page:
$ref: '#/components/schemas/PageInfo'
EvidenceKind:
type: string
description: |-
Whether a fact is a statement or an observation.
- claim: something the candidate stated that nothing confirmed separately. Its trust is 0.
- measurement: a result that a system observed, such as a confirmed assessment. Its trust is 1 to 3.
Assessments produce measurements only. A claim never becomes a measurement by repetition, and the two kinds are stored apart.
enum:
- claim
- measurement
EvidenceSourceType:
type: string
description: |-
Where the fact comes from.
- assessment_result: a real (root or corrective) assessment result of this platform that confirmed a grade. An express training run (`demo_express`), a failed attempt, and a result without a reviewed category source are never a source.
Adding a value is a contract change.
enum:
- assessment_result
EvidenceAttribution:
type: string
description: |-
Whose contribution the fact is.
- personal: the candidate's own result. Every assessment fact is personal.
- team_role: a team result with a confirmed role of the candidate.
- team_unattributed: a team result without a confirmed role; it is not a personal skill.
Only `personal` is produced today.
enum:
- personal
- team_role
- team_unattributed
EvidenceTrustLevel:
type: integer
format: int32
minimum: 0
maximum: 3
description: |-
Strength of the confirmation.
- 0: stated by the person, not confirmed separately.
- 1: an observable online result without a reliable confirmation of the identity or the authorship. Every assessment fact has this level today, because the assessment is unproctored and the identity is not confirmed.
- 2: a result tied to a confirmed identity or confirmed by an independent party.
- 3: an in-person check with a matching confirmation.
A repeated statement, a sign-in, or a repeated tag of the same event never raises the level.
examples:
- 1
EvidenceVisibility:
type: string
description: |-
Whether the fact may take part in what an organization reads.
- visible: the fact is eligible for the organization projection. It does not publish the fact: the projection also needs the published card with the `categories` field and an active C2.
- hidden: the candidate hid the fact. No organization reads it. Hiding never edits or deletes the confirmed result.
enum:
- visible
- hidden
EvidenceSkillCode:
type: string
description: A skill tag from a closed set - the specialization codes of the catalog and the technology codes of the anonymous card. An assessment tags its fact with the specialization of the category.
enum:
- backend
- frontend
- mobile
- network_engineer
- devops_sre
- data_analyst
- ds_ml
- information_security
- qa
- go
- postgresql
- kafka
- docker
EvidenceBasis:
type: string
description: |-
What the measurement rests on.
- synthetic_demo: a demonstration category from a synthetic reviewed bank. It shows the mechanics and is not a validated measurement.
enum:
- synthetic_demo
EvidenceCalibrationStatus:
type: string
description: |-
Calibration of the method behind the result.
- uncalibrated: the thresholds are initial values that no measurement has validated.
enum:
- uncalibrated
EvidenceResult:
type: object
description: 'What the fact says: the grade that was passed and how reliable the method is. It carries no score, answer, item, failure, or anti-cheat data.'
additionalProperties: false
required:
- grade
- basis
- calibration_status
properties:
grade:
$ref: '#/components/schemas/GradeCode'
basis:
$ref: '#/components/schemas/EvidenceBasis'
calibration_status:
$ref: '#/components/schemas/EvidenceCalibrationStatus'
EvidenceSource:
type: object
description: Where the fact comes from. For an assessment the event is the attempt and the result is the immutable result of that attempt, which the candidate reads at `GetMyAssessmentResult`; the two identifiers are equal because a result is keyed by its attempt.
additionalProperties: false
required:
- type
- event_id
- result_id
properties:
type:
$ref: '#/components/schemas/EvidenceSourceType'
event_id:
type: string
format: uuid
description: Identifier of the source event. One event is one fact, however many skills it is tagged with.
result_id:
type: string
format: uuid
description: Identifier of the immutable result that produced the fact.
EvidenceFact:
type: object
description: One independent fact of the current candidate. `occurred_at` is when the source event ended; for an assessment it is the time of the decision. A fact is one source event; the skills of that event are tags of the fact, so a second tag never makes a second fact. Hidden facts are listed here with their visibility, because the candidate owns them.
additionalProperties: false
required:
- id
- kind
- source
- skills
- result
- attribution
- trust
- occurred_at
- visibility
properties:
id:
type: string
format: uuid
description: Identifier of the fact.
kind:
$ref: '#/components/schemas/EvidenceKind'
source:
$ref: '#/components/schemas/EvidenceSource'
skills:
type: array
minItems: 1
maxItems: 13
uniqueItems: true
description: Skill tags of the event in ascending order.
items:
$ref: '#/components/schemas/EvidenceSkillCode'
result:
$ref: '#/components/schemas/EvidenceResult'
attribution:
$ref: '#/components/schemas/EvidenceAttribution'
trust:
$ref: '#/components/schemas/EvidenceTrustLevel'
occurred_at:
$ref: '#/components/schemas/Timestamp'
visibility:
$ref: '#/components/schemas/EvidenceVisibility'
EvidenceFactList:
type: object
description: One page of the facts of the current candidate, newest event first.
additionalProperties: false
required:
- items
- page
properties:
items:
type: array
maxItems: 100
description: Facts of the page.
items:
$ref: '#/components/schemas/EvidenceFact'
page:
$ref: '#/components/schemas/PageInfo'
OrganizationEvidenceFact:
type: object
description: 'The one assessment fact that supports a category of the card as an organization reads it: the earliest visible measurement that passed exactly the confirmed grade of that category. A lower grade, a retake, the other tags of the event, the source, the basis, the exact time, and every identifier stay with the candidate. The fact carries no identifier of the fact, the event, the result, or the candidate, so it cannot be joined to a person by a key. It is not unlinkable: the skill, the grade, the trust level, and the year, together with the other values of the card, can narrow a small pool of candidates, and the minimum cohort of the card does not cover the year. `basis` and `calibration_status` are the same for every candidate: they say that the fact comes from a synthetic demonstration and is not calibrated, so a demonstration is never read as a validated measurement. The fact never carries an answer, score, item, failure, signal, or review band.'
additionalProperties: false
required:
- skill
- grade
- trust
- basis
- calibration_status
- observed_year
properties:
skill:
$ref: '#/components/schemas/EvidenceSkillCode'
grade:
$ref: '#/components/schemas/GradeCode'
trust:
$ref: '#/components/schemas/EvidenceTrustLevel'
basis:
$ref: '#/components/schemas/EvidenceBasis'
calibration_status:
$ref: '#/components/schemas/EvidenceCalibrationStatus'
observed_year:
type: integer
format: int32
minimum: 2000
maximum: 9999
description: Year (UTC) when the assessment ended. The month, day, and time stay with the candidate.
examples:
- 2026
OrganizationEvidence:
type: object
description: 'The permitted evidence of one candidate card, ordered by skill: at most one fact for each category of the card (at most nine). The list is empty when no visible fact supports a category of the card.'
additionalProperties: false
required:
- items
properties:
items:
type: array
maxItems: 9
description: Permitted facts, one for each supported category.
items:
$ref: '#/components/schemas/OrganizationEvidenceFact'
HealthResponse:
type: object
additionalProperties: false
@@ -14154,6 +14478,16 @@ components:
experience_band: '1_3'
work_formats: null
salary_compatibility: null
OrganizationCandidateEvidence:
summary: The one supporting assessment fact of the category on the card
value:
items:
- skill: backend
grade: junior
trust: 1
basis: synthetic_demo
calibration_status: uncalibrated
observed_year: 2026
OrganizationInvitationListPage:
summary: The last page of the invitations of an organization
description: The organization sees that the second invitation was declined, but not the reason or the comment.
@@ -15565,6 +15899,14 @@ components:
experience_band: '1_3'
work_formats: null
salary_compatibility: null
evidence:
items:
- skill: backend
grade: middle
trust: 1
basis: synthetic_demo
calibration_status: uncalibrated
observed_year: 2026
generated_at: '2026-10-06T09:30:00Z'
ClosedCardPreview:
summary: The preview of a closed profile
@@ -15572,6 +15914,7 @@ components:
state: closed
fields: []
card: null
evidence: null
generated_at: '2026-10-06T09:30:00Z'
SearchStatusUpdateLooking:
summary: Set or confirm the status looking
@@ -15673,6 +16016,30 @@ components:
page:
has_more: false
next_cursor: null
EvidenceFactListPage:
summary: A confirmed junior backend result with one fact and two tags of the same event
value:
items:
- id: 01928f7a-d1e2-7f3a-8b4c-5d6e7f8a9b01
kind: measurement
source:
type: assessment_result
event_id: 01928f7a-e1f2-7a3b-8c4d-5e6f7a8b9c01
result_id: 01928f7a-e1f2-7a3b-8c4d-5e6f7a8b9c01
skills:
- backend
- go
result:
grade: junior
basis: synthetic_demo
calibration_status: uncalibrated
attribution: personal
trust: 1
occurred_at: '2026-10-08T10:15:00Z'
visibility: visible
page:
has_more: false
next_cursor: null
SupportCaseListPage:
summary: The last page of the case summaries of the current account
value:
+39
View File
@@ -60,6 +60,13 @@ tags:
Everything is closed by default, and no change makes a candidate more
visible than they chose. No schema here reaches a contact, a name, or
the lowest salary.
- name: evidence
description: >-
Skill evidence derived from confirmed assessment results: one fact per
source event with its skills, trust level, attribution, date, and
visibility. The candidate reads their own facts; an organization reads
only the permitted projection of a currently visible card. Raw
answers, failures, and anti-cheat data are never part of it.
- name: consent
description: >-
The consent ledger of the current account: the independent consents
@@ -135,6 +142,8 @@ paths:
$ref: ./routes/matches.yml
/api/v1/organizations/{org_id}/candidate-cards/{candidate_handle}:
$ref: ./routes/organization_candidate_card.yml
/api/v1/organizations/{org_id}/candidate-cards/{candidate_handle}/evidence:
$ref: ./routes/organization_candidate_card_evidence.yml
/api/v1/organizations/{org_id}/invitations:
$ref: ./routes/organization_invitations.yml
/api/v1/organizations/{org_id}/invitations/{invitation_id}:
@@ -183,6 +192,8 @@ paths:
$ref: ./routes/candidate_privacy_history.yml
/api/v1/me/privacy/access-history:
$ref: ./routes/candidate_privacy_access_history.yml
/api/v1/me/evidence:
$ref: ./routes/candidate_evidence.yml
/api/v1/me/support-cases:
$ref: ./routes/support_cases.yml
/api/v1/me/support-cases/{case_id}:
@@ -871,6 +882,34 @@ components:
$ref: ./components/schemas.yml#/CardAccess
CardAccessList:
$ref: ./components/schemas.yml#/CardAccessList
EvidenceKind:
$ref: ./components/schemas.yml#/EvidenceKind
EvidenceSourceType:
$ref: ./components/schemas.yml#/EvidenceSourceType
EvidenceAttribution:
$ref: ./components/schemas.yml#/EvidenceAttribution
EvidenceTrustLevel:
$ref: ./components/schemas.yml#/EvidenceTrustLevel
EvidenceVisibility:
$ref: ./components/schemas.yml#/EvidenceVisibility
EvidenceSkillCode:
$ref: ./components/schemas.yml#/EvidenceSkillCode
EvidenceBasis:
$ref: ./components/schemas.yml#/EvidenceBasis
EvidenceCalibrationStatus:
$ref: ./components/schemas.yml#/EvidenceCalibrationStatus
EvidenceResult:
$ref: ./components/schemas.yml#/EvidenceResult
EvidenceSource:
$ref: ./components/schemas.yml#/EvidenceSource
EvidenceFact:
$ref: ./components/schemas.yml#/EvidenceFact
EvidenceFactList:
$ref: ./components/schemas.yml#/EvidenceFactList
OrganizationEvidenceFact:
$ref: ./components/schemas.yml#/OrganizationEvidenceFact
OrganizationEvidence:
$ref: ./components/schemas.yml#/OrganizationEvidence
parameters:
IdempotencyKey:
$ref: ./components/parameters.yml#/IdempotencyKey
+39
View File
@@ -0,0 +1,39 @@
get:
operationId: ListMyEvidence
summary: List the skill evidence of the current candidate.
description: |-
Requires the session cookie of a candidate account. The candidate comes from the session, so the response holds only the caller's own facts. Returns a page, newest event first with the fact identifier as the tie-breaker, with cursor pagination. The response is `Cache-Control: no-store`.
A fact is derived from the immutable result of a confirmed real assessment (root or corrective), in the same transaction that stores the result. Each fact names its source (the event and the result, which the candidate can open at `GetMyAssessmentResult`), the skills of the event, the grade that was passed with its basis and calibration, the attribution, the date, the visibility, and the trust level. An online assessment without a reliable confirmation of the identity has trust 1. One source event is one fact: its skills are tags of that fact, so several tags never make several facts.
The list never carries raw answers, items, scores, failed attempts, or anti-cheat data. A failed attempt, a result without a reviewed category source, and an express training run (`demo_express`) create no fact, so reading the list before and after an express run shows no new fact. The list includes facts the candidate hid, with `visibility` `hidden`.
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account, or a candidate with an unverified email, answers 403 forbidden. A malformed `limit` or `cursor`, or a cursor of another candidate, answers 400 validation_failed.
security:
- sessionCookie: []
tags:
- evidence
parameters:
- $ref: ../components/parameters.yml#/PageLimit
- $ref: ../components/parameters.yml#/PageCursor
responses:
"200":
description: A page of the skill evidence of the current candidate.
headers:
Cache-Control:
$ref: ../components/headers.yml#/CacheControlNoStore
content:
application/json:
schema:
$ref: ../components/schemas.yml#/EvidenceFactList
examples:
page:
$ref: ../components/examples.yml#/EvidenceFactListPage
"400":
$ref: ../components/responses.yml#/ValidationFailed
"401":
$ref: ../components/responses.yml#/Unauthenticated
"403":
$ref: ../components/responses.yml#/Forbidden
default:
$ref: ../components/responses.yml#/Problem
@@ -8,6 +8,8 @@ get:
`card` is the closed `AnonymousCardContent` projection. It reaches no private profile or contact schema and contains no name, email, phone, Telegram name, employer, salary figure, account identifier, or profile identifier. Unpublished or unknown values are null. Only allowed canonical skills and generalized experience are exposed; arbitrary profile text and imported excerpts never appear. `categories` contains only confirmed assessment results. Self-assessed grades and work formats appear only through their separate explicit publication choices, and self-assessment never becomes a confirmed category. Salary compatibility is nullable and contains no salary amount.
`evidence` shows what an organization would read in the evidence section of the card (`GetOrganizationCandidateEvidence`): for each category of the card, the one assessment fact that supports its confirmed grade, with its skill, the passed grade, the trust level, the year, and the basis and calibration (`synthetic_demo`, `uncalibrated`). It is null while `card` is null, and an empty list when the card shows no category or no visible fact supports one. The preview applies no organization or cohort, so an organization can still receive less.
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden.
security:
- sessionCookie: []
@@ -0,0 +1,45 @@
get:
operationId: GetOrganizationCandidateEvidence
summary: Read the permitted skill evidence of one currently visible candidate card.
description: |-
Requires the session cookie of an employer account with an active membership in `org_id`. The organization and membership come from the current server-side session and path, never from cached search data.
`candidate_handle` is the organization-scoped opaque alias issued by the current anonymous-card projection. The server runs the same checks as the card read on every request: active membership, effective C2 publication, the candidate's hiding of this organization, and the minimum cohort. In addition the card must publish the `categories` field and show at least one category after the cohort rules, because the evidence explains those categories and discloses nothing beyond them. An unknown handle, a handle of another organization, a closed or revoked publication, a profile hidden from this organization, a profile suppressed by the minimum cohort, and a card without categories all answer the same 404 not_found. Closing C2 or hiding the organization blocks this read immediately, and a cached response proves nothing.
The response lists, for each category of the card, the one visible fact that supports its confirmed grade: the earliest assessment that passed exactly that grade, so a lower grade or a retake adds nothing. A fact the candidate hid is absent. Each fact carries only the skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration of the method (`synthetic_demo`, `uncalibrated`), which are the same for every candidate and say that the fact is a demonstration, not a validated measurement. It carries no identifier of the fact, event, result, or candidate, no month or exact time, and never an answer, item, score, failed attempt, review band, or anti-cheat signal. An express training run and a failed attempt create no fact. The answer has no key that joins it to a person, but it is not unlinkable: with the other values of the card it can narrow a small pool of candidates.
Reading the evidence is a view of the candidate card: it consumes the organization's current card-view quota with the same distinct-card rule and is recorded in the access history with the `categories` field. When the quota is exhausted the operation answers 429 with Retry-After. The response is `Cache-Control: no-store`.
A missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden; an unknown organization or account without an active membership answers 404 not_found. An `org_id` that is not a UUID or a malformed candidate handle answers 400 validation_failed.
security:
- sessionCookie: []
tags:
- evidence
parameters:
- $ref: ../components/parameters.yml#/OrganizationId
- $ref: ../components/parameters.yml#/CandidateHandle
responses:
"200":
description: The permitted evidence of this candidate card for this organization.
headers:
Cache-Control:
$ref: ../components/headers.yml#/CacheControlNoStore
content:
application/json:
schema:
$ref: ../components/schemas.yml#/OrganizationEvidence
examples:
permitted:
$ref: ../components/examples.yml#/OrganizationCandidateEvidence
"400":
$ref: ../components/responses.yml#/ValidationFailed
"401":
$ref: ../components/responses.yml#/Unauthenticated
"403":
$ref: ../components/responses.yml#/Forbidden
"404":
$ref: ../components/responses.yml#/NotFound
"429":
$ref: ../components/responses.yml#/TooManyRequests
default:
$ref: ../components/responses.yml#/Problem