fix(assessment): return confirmed categories with their basis and label demonstration categories

This commit is contained in:
shira committed 2026-10-09 21:24:24 +03:00
1 parent 623d41b969
commit d4903a3796
77 files changed
+1441 -288

No files matched your search

+4 -2
View File
@@ -180,7 +180,7 @@ Questionnaire:
### Candidate profile
The `candidate` tag includes implemented `GetMyProfile` and `SaveMyProfile` operations for the private manual profile. A verified candidate reads and edits only their own profile; an employer receives 403 and a guest receives 401. PUT requires the session CSRF token and exact Origin. Data, version, overlap confirmations, history, and the step transition commit in one transaction. Without DATABASE_URL, the operations retain their 501 fallback.
The `candidate` tag includes implemented `GetMyProfile` and `SaveMyProfile` operations for the private manual profile. A verified candidate reads and edits only their own profile; an employer receives 403 and a guest receives 401. PUT requires the session CSRF token and exact Origin. Data, version, overlap confirmations, history, and the step transition commit in one transaction. Without DATABASE_URL, the operations retain their 501 fallback. `confirmed_categories` is read-only: one category per specialization in catalog order, from assessment results, with `basis` (`synthetic_demo` for a demonstration category), `confirmed_at`, and `attempt_id`; no request carries it.
| Method and path | operationId | Protection | Success | Specific errors |
| --- | --- | --- | --- | --- |
@@ -288,6 +288,7 @@ Attempt lifecycle, with the commands each state accepts:
- Limits: `expires_at` and `sessions` (`used`, `max`, `idle_timeout_seconds`, null when the policy defines no session limit) come from the policy version; PRD FR04 allows two sessions within 72 hours. Creation starts session 1. After an idle timeout the candidate explicitly calls `StartMyAssessmentAttemptSession` with the latest `expected_version`; it starts the next session only if quota and deadline allow. Calling it during an active session is a no-op. Session start does not extend `expires_at` or `chain_deadline`.
- At the limits: a practice already `pending` is graded first. A command or background transition then finalizes `ready_to_finalize` as `completed`, declines an unsubmitted additional practice (`completed`, `not_confirmed`), or moves `in_progress` and `practice_pending` to `expired`. GET never commits these transitions. `GetMyAssessmentResult` answers 409 while a due transition has not yet been stored.
- Insufficient bank is a distinct state in two places. Before a root attempt starts, `GetMyAssessmentAvailability` shows `insufficient_bank` for a grade without a published bank or enough unseen families, and `CreateMyAssessmentAttempt` answers 409 `state_conflict` without creating an attempt or reserving a root slot. A correction with an expired chain deadline or insufficient safe bank is also refused; it does not create a new chain. During an existing attempt, the terminal state `insufficient_bank` ends it without a confirmed grade instead of repeating families.
- Confirmed grade. `confirmed_grade` and `confirmed_basis` of each questionnaire specialization are read together from the current category, in one snapshot. `confirmed_basis` is `synthetic_demo` for a demonstration grade and null exactly when no grade is confirmed. An attempt does not set them directly: only a category upgrade changes them.
- No new problem code is added, so attempt creation gets 409 `state_conflict` plus the availability status instead of a `bank_unavailable` code. The `ProblemCode` enum is copied byte-for-byte into the ML contract (`test_contract_copies.py`), so a new code would also change the ML contract and its generated models. The availability read also tells the client why an attempt cannot start and, for `cooldown`, from when, which a fixed problem detail cannot carry.
- Availability shows the limits of each grade before the start: `time_limit_seconds`, `max_sessions`, `max_items`, and `practice_required`, null when unknown.
- Root-attempt quota and retry timers are separate. Only root creation reserves one of the three root slots per 180 days; corrections in that chain do not reserve another. `insufficient_bank` or an unavailable sandbox does not create a new attempt or open a free chain. After a failure, including the first test, a strictly lower grade can be tested through the same chain; lower-grade corrections do not reset the 30-day same-grade or 90-day promotion timers.
@@ -318,7 +319,7 @@ Result:
- `next_steps` come from the server: `retake_same_grade`, `take_lower_grade`, `accept_lower_grade` (the command is planned), and `take_higher_grade`. A first confirmation is not a promotion, so `take_higher_grade` after it has a null `available_at`; after a promotion the next one waits for the 90-day promotion interval.
- The result never contains answers, per-item correctness, keys, seeds, hidden checks, or anti-cheat signals.
- Category from a `demo_basic` result. A real result carries `category_decision`: `status` (`not_eligible`, `not_confirmed`, `assigned`, `unchanged`), the grade in force before and after the attempt, `method` (`demo_basic_pass_mark`), `source` (`synthetic_demo`), and `calibration_status`. The threshold comes from the accepted policy version pinned to the attempt: reaching it counts, and no request parameter sets it. A category is assigned only when `ASSESSMENT_DEMO_CATEGORIES_ENABLED` is on, the policy version is a complete demonstration policy with `demo_basic` (its threshold is its own `basic_pass_mark_bp`), and an operator attestation exists for the opening, its manifest, and the policy version; otherwise `status` is `not_eligible` and `confirmed_grade` is null even though `outcome` may be `confirmed`. `confirmed_grade` is set only when a reviewed source accepted the confirmation (`assigned` or `unchanged`). A failure, an equal grade, or a lower grade neither lowers nor changes the current category. `demo_express` never gets a `category_decision` and never creates a category. A result stored before category decisions existed has no `category_decision`: its current grade is not reconstructed afterwards.
- `GET /api/v1/me/assessment-results` returns the history of the candidate only: completed `root` and `corrective` results, newest first by `decided_at` and `attempt_id`. The cursor is opaque, bound to the candidate, and uses only `[A-Za-z0-9_-]`; a foreign, altered, or malformed cursor answers 400 `validation_failed` with pointer `/cursor`. An employer account gets 403. A later change of the current policy, bank, or category changes no stored record. An employer receives only the current category (specialization, grade, and the coarse strength `standard`) through the anonymous card when the candidate published the `categories` field; the projection holds no attempt, score, version, or reason for a missing confirmation.
- `GET /api/v1/me/assessment-results` returns the history of the candidate only: completed `root` and `corrective` results, newest first by `decided_at` and `attempt_id`. The cursor is opaque, bound to the candidate, and uses only `[A-Za-z0-9_-]`; a foreign, altered, or malformed cursor answers 400 `validation_failed` with pointer `/cursor`. An employer account gets 403. A later change of the current policy, bank, or category changes no stored record. An employer receives only the current category (specialization, grade, the coarse strength `standard`, and the basis `basis`) through the anonymous card when the candidate published the `categories` field; the projection holds no attempt, score, version, or reason for a missing confirmation.
Planned, additive: a short approach description of up to 1500 characters next to the practice, which never decides the grade (PRD FR05); the debug run operation of the practice; the server signals of the anti-cheat layer (answer time, parallel sessions, address changes), which lead to a review and an appeal, never to a public label and never to the employer (PRD FR05).
@@ -733,6 +734,7 @@ The operation changes nothing and needs no Idempotency-Key; `POST` carries the b
- Access. The organization comes from the path and the active owner membership of the session account. A missing session answers 401, a candidate account, a member who is not the owner, a missing CSRF token, and a foreign `Origin` answer 403, and an unknown organization, an organization without an active membership, a need of another organization, an unknown need, or a `requirements_version` that no change of the confirmed requirements created answer 404. Hidden profiles, a revoked or missing C2 publication, the organization's own hiding, and the minimum cohort of the card are applied before any entry exists: a handle in the result is a handle that `GetOrganizationCandidateCard` opens at that moment.
- Basis. `MatchSearchByNeed` searches the immutable `requirements_version` snapshot (not the general `version`), and its optional `filters` narrow it; `MatchSearchByBank` searches all organization-visible entries with explicit filters. The response `source` repeats the basis: the need reference, or the bank filters with every key present and null for a filter that was not sent (the stack is sorted).
- Entries. Every entry is one candidate specialization under the organization-scoped `candidate_handle`. `main` and `near` hold confirmed categories (`near` when a required skill of the request earns less than 0.25), `unconfirmed` holds the declared specializations, sorted by Fit, then Coverage, then an internal identifier that is never returned. An unconfirmed entry has `category: null`, `strength: null`, and only `fit` and `coverage`. The groups are not one scale, and one handle can be confirmed in one specialization and unconfirmed in another.
- Category basis. Each confirmed category of an entry carries `basis` (`synthetic_demo` for a demonstration category). The organization sees a demonstration as such, not as a standard confirmation; the field is required in `MatchCategory`.
- Neutral and unknown values. The semantics component is 0.5 for every entry with `ml_unavailable`; `percentile` is null with `cohort_below_30` and T is 0.5 (no comparable real cohort exists, and demonstration results never form one); domain, freshness, and responsiveness are 0.5 with their flags; competition is 0 and is neither a penalty nor an unknown; a card value that is not published is `null` in `public_context` with `not_in_public_card`.
- A search is charged like card reads, because an entry carries card content. The whole visible bank is ranked, and each group returns at most `max_results_per_group` entries of the policy version (demo 10, so at most 30 reveals for one search, below the 50 views per day of tier E0); no total is returned. In the order `main`, `near`, `unconfirmed`, each newly revealed candidate counts as one distinct card view of the organization (the same reservation as `GetOrganizationCandidateCard`, so a candidate already viewed inside the window costs nothing again, and repeating the search or opening the card afterwards does not charge twice) and gets one `card_viewed` entry in the access history per search with the fields actually returned. When the allowance ends, the entries already paid for are returned with `truncated: true`, nothing is written for the rest, and no error and no new problem code is returned. `truncated` is also true when a group exceeded its limit and never carries a count. The response `truncated` is required.
- No contact, candidate location, salary amount or minimum, raw answer, failed attempt, or reason for withheld data is in any entry; the explanation uses the bounded `MatchEvidenceCode` and `MatchEvidenceState` values only. A deployment whose effective policy has no `matching` section answers an internal error and never ranks with defaults.
+4 -2
View File
@@ -180,7 +180,7 @@ ML-сервис отвечает на ошибки той же схемой `Pro
### Профиль кандидата
Тег `candidate` включает реализованные `GetMyProfile` и `SaveMyProfile` для приватного ручного профиля. Подтвержденный кандидат читает и меняет только свой профиль; работодатель получает 403, гость - 401. PUT требует CSRF-токен сессии и точный Origin. Данные, версия, подтверждения пересечений, история и переход шага сохраняются одной транзакцией. Без DATABASE_URL остается ответ 501.
Тег `candidate` включает реализованные `GetMyProfile` и `SaveMyProfile` для приватного ручного профиля. Подтвержденный кандидат читает и меняет только свой профиль; работодатель получает 403, гость - 401. PUT требует CSRF-токен сессии и точный Origin. Данные, версия, подтверждения пересечений, история и переход шага сохраняются одной транзакцией. Без DATABASE_URL остается ответ 501. `confirmed_categories` только читается: одна категория на специализацию в порядке каталога из результатов оценки, с `basis` (`synthetic_demo` для демонстрационной категории), `confirmed_at` и `attempt_id`; ни один запрос ее не принимает.
| Метод и путь | operationId | Защита | Успех | Конкретные ошибки |
| --- | --- | --- | --- | --- |
@@ -288,6 +288,7 @@ ML-сервис отвечает на ошибки той же схемой `Pro
- Лимиты: `expires_at` и `sessions` (`used`, `max`, `idle_timeout_seconds`; null, если политика не задает лимит сессий) берутся из версии политики; FR04 в PRD допускает две сессии в пределах 72 часов. Создание начинает сессию 1. После простоя кандидат явно вызывает `StartMyAssessmentAttemptSession` с последним `expected_version`; следующая сессия начинается только если позволяют квота и срок. Вызов во время активной сессии ничего не меняет. Начало сессии не продлевает `expires_at` или `chain_deadline`.
- При достижении лимитов практика, уже имеющая статус `pending`, сначала оценивается. Затем команда или фоновый переход завершает `ready_to_finalize` как `completed`, отклоняет неотправленную дополнительную практику (`completed`, `not_confirmed`) или переводит `in_progress` и `practice_pending` в `expired`. GET не фиксирует эти переходы. `GetMyAssessmentResult` отвечает 409, пока назревший переход не сохранен.
- Недостаточный банк - отдельное состояние в двух местах. До старта корневой попытки `GetMyAssessmentAvailability` показывает `insufficient_bank` для грейда без опубликованного банка или достаточного числа невиденных семейств, а `CreateMyAssessmentAttempt` отвечает 409 `state_conflict`, не создавая попытку и не резервируя корневой слот. Корректировка также отклоняется, если срок цепочки истек или безопасного банка недостаточно; новая цепочка не создается. Во время существующей попытки терминальное состояние `insufficient_bank` завершает ее без подтвержденного грейда вместо повтора семейств.
- Подтвержденный грейд. `confirmed_grade` и `confirmed_basis` каждой специализации анкеты читаются из текущей категории вместе, в одном снимке. `confirmed_basis` равен `synthetic_demo` для демонстрационного грейда и null ровно тогда, когда грейд не подтвержден. Попытка напрямую их не задает: меняет их только повышение категории.
- Новый код проблемы не добавлен, поэтому создание попытки получает 409 `state_conflict` и статус доступности вместо кода `bank_unavailable`. Перечисление `ProblemCode` побайтно скопировано в ML-контракт (`test_contract_copies.py`), поэтому новый код изменил бы и ML-контракт, и его сгенерированные модели. Чтение доступности к тому же объясняет клиенту, почему попытка не может начаться, и для `cooldown` - с какого момента; фиксированный detail проблемы этого передать не может.
- Доступность показывает лимиты каждого грейда до старта: `time_limit_seconds`, `max_sessions`, `max_items` и `practice_required`; null, если значение неизвестно.
- Корневая квота и таймеры повторов разделены. Только запуск корневой попытки резервирует один из трех слотов на 180 дней; корректировки этой цепочки не резервируют дополнительные слоты. `insufficient_bank` или недоступность песочницы не создают новую попытку и не открывают бесплатную цепочку. После неудачи, включая первый тест, строго меньший грейд можно проверить в той же цепочке; корректировки не сбрасывают 30-дневный таймер повтора того же грейда или 90-дневный таймер повышения.
@@ -318,7 +319,7 @@ ML-сервис отвечает на ошибки той же схемой `Pro
- `next_steps` приходят с сервера: `retake_same_grade`, `take_lower_grade`, `accept_lower_grade` (команда запланирована) и `take_higher_grade`. Первое подтверждение - не повышение, поэтому `take_higher_grade` после него имеет null в `available_at`; после повышения следующее ждет 90-дневный интервал повышения.
- Результат никогда не содержит ответы, правильность отдельных заданий, ключи, seed, скрытые проверки или античит-сигналы.
- Категория по результату `demo_basic`. Результат реальной попытки содержит `category_decision`: `status` (`not_eligible`, `not_confirmed`, `assigned`, `unchanged`), грейд, действовавший до попытки и после нее, `method` (`demo_basic_pass_mark`), `source` (`synthetic_demo`) и `calibration_status`. Порог берется из принятой версии политики, закрепленной за попыткой: достижение порога засчитывается, параметр запроса его не задает. Категория присваивается, только если включен `ASSESSMENT_DEMO_CATEGORIES_ENABLED`, версия политики является полной демонстрационной политикой с `demo_basic` (порог - ее собственный `basic_pass_mark_bp`), а для открытия, манифеста и версии политики есть аттестация оператора; иначе `status` равен `not_eligible`, `confirmed_grade` равен null, хотя `outcome` может быть `confirmed`. `confirmed_grade` заполнен, только когда подтверждение принято проверенным источником (`assigned` или `unchanged`). Неудача, равный или более низкий грейд не понижают и не меняют текущую категорию. `demo_express` никогда не получает `category_decision` и не создает категорию. Результат, сохраненный до появления решений о категориях, не содержит `category_decision`: его текущий грейд не восстанавливается задним числом.
- `GET /api/v1/me/assessment-results` возвращает историю только самого кандидата: завершенные `root` и `corrective` результаты от новых к старым по `decided_at` и `attempt_id`. Курсор непрозрачен, привязан к кандидату и содержит только символы `[A-Za-z0-9_-]`; чужой, измененный или некорректный курсор дает 400 `validation_failed` с pointer `/cursor`. Аккаунт работодателя получает 403. Смена текущей политики, банка или категории не меняет ни одну сохраненную запись. Работодатель получает только текущую категорию (специализация, грейд и грубая сила `standard`) через анонимную карточку, если кандидат опубликовал поле `categories`; ни попытки, ни баллы, ни версии, ни причины неподтверждения в этой проекции нет.
- `GET /api/v1/me/assessment-results` возвращает историю только самого кандидата: завершенные `root` и `corrective` результаты от новых к старым по `decided_at` и `attempt_id`. Курсор непрозрачен, привязан к кандидату и содержит только символы `[A-Za-z0-9_-]`; чужой, измененный или некорректный курсор дает 400 `validation_failed` с pointer `/cursor`. Аккаунт работодателя получает 403. Смена текущей политики, банка или категории не меняет ни одну сохраненную запись. Работодатель получает только текущую категорию (специализация, грейд, грубая сила `standard` и основание `basis`) через анонимную карточку, если кандидат опубликовал поле `categories`; ни попытки, ни баллы, ни версии, ни причины неподтверждения в этой проекции нет.
Запланировано, добавляется без ломающих изменений: краткое описание подхода до 1500 знаков рядом с практикой, которое не определяет грейд (FR05 в PRD); операция отладочных запусков практики; серверные сигналы античит-слоя (время ответа, параллельные сессии, смена адреса); сигналы ведут к перепроверке и апелляции, а не к публичному ярлыку, и работодателю не показываются (FR05 в PRD).
@@ -733,6 +734,7 @@ ML-сервис отвечает на ошибки той же схемой `Pro
- Доступ. Организация берется из пути и действующего членства владельца аккаунта сессии. Отсутствие сессии дает 401; аккаунт кандидата, участник не владелец, отсутствие CSRF-токена и чужой `Origin` дают 403; неизвестная организация, организация без действующего членства, потребность другой организации, неизвестная потребность и `requirements_version`, которую не создавало изменение подтвержденных требований, дают 404. Скрытые профили, отозванная или отсутствующая публикация C2, скрытие именно этой организации и минимальная когорта карточки применяются до появления любой записи: handle в результате - это handle, который `GetOrganizationCandidateCard` открывает в тот же момент.
- Основание. `MatchSearchByNeed` ищет по неизменяемому снимку `requirements_version` (не по общей `version`), необязательные `filters` сужают его; `MatchSearchByBank` ищет по всем записям, видимым организации, с явными фильтрами. `source` в ответе повторяет основание: ссылку на потребность либо фильтры банка, где присутствует каждый ключ, а неотправленный фильтр равен null (стек отсортирован).
- Записи. Каждая запись - одна специализация кандидата под организационным `candidate_handle`. В `main` и `near` лежат подтвержденные категории (`near`, если обязательный навык запроса дает меньше 0.25), в `unconfirmed` - заявленные специализации, отсортированные по Fit, затем Coverage, затем по внутреннему идентификатору, который не возвращается. У неподтвержденной записи `category: null`, `strength: null` и только `fit` и `coverage`. Группы - не одна шкала, и один handle может быть подтвержден по одной специализации и не подтвержден по другой.
- Основание категории. Каждая подтвержденная категория записи несет `basis` (`synthetic_demo` для демонстрационной категории). Организация видит демонстрацию как таковую, а не как стандартное подтверждение; поле обязательно в `MatchCategory`.
- Нейтральные и неизвестные значения. Семантика равна 0.5 для каждой записи с `ml_unavailable`; `percentile` равен null с `cohort_below_30`, а T равен 0.5 (сопоставимой реальной когорты нет, демонстрационные результаты ее не образуют); домен, свежесть и своевременность равны 0.5 со своими признаками; соревновательный вклад равен 0 и не является ни штрафом, ни неизвестностью; неопубликованное значение карточки - `null` в `public_context` с `not_in_public_card`.
- Поиск оплачивается как чтение карточек, потому что запись несет содержимое карточки. Ранжируется весь видимый банк, а каждая группа возвращает не более `max_results_per_group` записей версии политики (демо 10, то есть не более 30 показов за один поиск, меньше 50 просмотров в сутки для уровня E0); итог не возвращается. В порядке `main`, `near`, `unconfirmed` каждый впервые показанный кандидат считается одним уникальным просмотром карточки организации (то же резервирование, что у `GetOrganizationCandidateCard`: кандидат, уже просмотренный в окне, второй раз ничего не стоит, и повтор поиска или последующее открытие карточки не списывает дважды) и получает по одной записи `card_viewed` в истории доступа за поиск с фактически возвращенными полями. Когда лимит заканчивается, возвращаются уже оплаченные записи с `truncated: true`, для остальных ничего не пишется, ошибка и новый код проблемы не возвращаются. `truncated` также истинно, когда группа превысила предел, и никогда не несет число. В ответе `truncated` обязателен.
- Ни в одной записи нет контакта, локации кандидата, суммы или минимума зарплаты, сырого ответа, проваленной попытки и причины скрытых данных; объяснение использует только ограниченные значения `MatchEvidenceCode` и `MatchEvidenceState`. Развертывание, действующая политика которого не содержит раздела `matching`, отвечает внутренней ошибкой и не ранжирует по умолчаниям.
+5
View File
@@ -436,6 +436,7 @@ AssessmentAvailability:
specializations:
- specialization: backend
confirmed_grade: null
confirmed_basis: null
active_attempt_id: null
grades:
- grade: intern
@@ -472,6 +473,7 @@ AssessmentAvailability:
practice_required: null
- specialization: network_engineer
confirmed_grade: null
confirmed_basis: null
active_attempt_id: null
grades:
- grade: intern
@@ -4139,6 +4141,7 @@ BackendCandidateProfile:
confirmed_categories:
- specialization: backend
grade: junior
basis: synthetic_demo
confirmed_at: "2026-10-04T18:10:00Z"
attempt_id: 0192b3c4-d5e6-7f80-9a1b-2c3d4e5f6a7b
updated_at: "2026-10-05T09:30:00Z"
@@ -4378,6 +4381,7 @@ PublishedCardPreview:
- specialization: backend
grade: middle
strength: standard
basis: synthetic_demo
stack:
- postgresql
- kafka
@@ -4403,6 +4407,7 @@ OrganizationAnonymousCandidateCard:
- specialization: backend
grade: middle
strength: standard
basis: synthetic_demo
stack:
- postgresql
- kafka
+5
View File
@@ -52,6 +52,7 @@ ThreeGroups:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -87,6 +88,7 @@ ThreeGroups:
category:
specialization: frontend
grade: junior
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -183,6 +185,7 @@ MLUnavailable:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: strong
public_context:
stack:
@@ -234,6 +237,7 @@ CohortBelow30:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -287,6 +291,7 @@ Truncated:
category:
specialization: backend
grade: junior
basis: synthetic_demo
strength: standard
public_context:
stack: null
+18 -3
View File
@@ -1682,6 +1682,7 @@ AssessmentSpecializationAvailability:
required:
- specialization
- confirmed_grade
- confirmed_basis
- active_attempt_id
- grades
properties:
@@ -1692,6 +1693,11 @@ AssessmentSpecializationAvailability:
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
confirmed_basis:
description: What the confirmed grade rests on, or null exactly when `confirmed_grade` is null. `synthetic_demo` marks a demonstration category, which is not a validated measurement and must not be shown as a real confirmation.
oneOf:
- $ref: '#/EvidenceBasis'
- type: 'null'
active_attempt_id:
type:
- string
@@ -2325,11 +2331,12 @@ ProfileParallelPeriodConfirmation:
$ref: '#/ProfileExperiencePeriod'
ProfileConfirmedCategory:
type: object
description: 'A category that an assessment result confirmed: the specialization with the confirmed grade. It is read-only and derived by the server from the assessment results of the candidate; no request carries it and the profile storage holds no such column, so neither a form nor an import can write a confirmed grade. It is separate from the claims of the profile and from the self-assessed grades in `roles`.'
description: 'A category that an assessment result confirmed: the specialization with the confirmed grade. It is read-only and derived by the server from the assessment results of the candidate; no request carries it and the profile storage holds no such column, so neither a form nor an import can write a confirmed grade. It is separate from the claims of the profile and from the self-assessed grades in `roles`. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category that is not a validated measurement.'
additionalProperties: false
required:
- specialization
- grade
- basis
- confirmed_at
- attempt_id
properties:
@@ -2337,6 +2344,8 @@ ProfileConfirmedCategory:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
basis:
$ref: '#/EvidenceBasis'
confirmed_at:
$ref: '#/Timestamp'
attempt_id:
@@ -4808,16 +4817,19 @@ MatchStrength:
- strong
MatchCategory:
type: object
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization.
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which an organization must read as one and never as a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- basis
properties:
specialization:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
basis:
$ref: '#/EvidenceBasis'
MatchScore:
type: number
format: double
@@ -6783,12 +6795,13 @@ PrivacySettings:
description: Number of organizations that the candidate hides the profile from. The list is read with `ListMyHiddenOrganizations`.
CardCategory:
type: object
description: A category confirmed by assessment results, as the card shows it.
description: A category confirmed by assessment results, as the card shows it. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which is never a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- strength
- basis
properties:
specialization:
$ref: '#/SpecializationCode'
@@ -6800,6 +6813,8 @@ CardCategory:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
basis:
$ref: '#/EvidenceBasis'
CardSelfAssessment:
type: object
description: Candidate-declared specialization and optional grade. This is never an assessment result.
@@ -1845,6 +1845,7 @@ schemas:
required:
- specialization
- confirmed_grade
- confirmed_basis
- active_attempt_id
- grades
properties:
@@ -1855,6 +1856,15 @@ schemas:
oneOf:
- $ref: "./catalog_schemas.yml#/schemas/GradeCode"
- type: "null"
confirmed_basis:
description: >-
What the confirmed grade rests on, or null exactly when
`confirmed_grade` is null. `synthetic_demo` marks a demonstration
category, which is not a validated measurement and must not be shown
as a real confirmation.
oneOf:
- $ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
- type: "null"
active_attempt_id:
type:
- string
@@ -593,11 +593,14 @@ schemas:
from the assessment results of the candidate; no request carries it
and the profile storage holds no such column, so neither a form nor an
import can write a confirmed grade. It is separate from the claims of
the profile and from the self-assessed grades in `roles`.
the profile and from the self-assessed grades in `roles`. `basis` says
what the grade rests on; `synthetic_demo` marks a demonstration category
that is not a validated measurement.
additionalProperties: false
required:
- specialization
- grade
- basis
- confirmed_at
- attempt_id
properties:
@@ -605,6 +608,8 @@ schemas:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
confirmed_at:
$ref: "./common_schemas.yml#/schemas/Timestamp"
attempt_id:
@@ -236,16 +236,21 @@ schemas:
type: object
description: >-
A confirmed category. Its specialization must equal the enclosing
match entry's specialization.
match entry's specialization. `basis` says what the grade rests on;
`synthetic_demo` marks a demonstration category, which an organization
must read as one and never as a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- basis
properties:
specialization:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
grade:
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
MatchScore:
type: number
format: double
@@ -315,12 +315,16 @@ schemas:
The list is read with `ListMyHiddenOrganizations`.
CardCategory:
type: object
description: A category confirmed by assessment results, as the card shows it.
description: >-
A category confirmed by assessment results, as the card shows it.
`basis` says what the grade rests on; `synthetic_demo` marks a
demonstration category, which is never a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- strength
- basis
properties:
specialization:
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
@@ -332,6 +336,8 @@ schemas:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
basis:
$ref: "./evidence_schemas.yml#/schemas/EvidenceBasis"
CardSelfAssessment:
type: object
description: Candidate-declared specialization and optional grade. This is never an assessment result.
+28 -3
View File
@@ -4672,11 +4672,12 @@ components:
$ref: '#/components/schemas/ProfileExperiencePeriod'
ProfileConfirmedCategory:
type: object
description: 'A category that an assessment result confirmed: the specialization with the confirmed grade. It is read-only and derived by the server from the assessment results of the candidate; no request carries it and the profile storage holds no such column, so neither a form nor an import can write a confirmed grade. It is separate from the claims of the profile and from the self-assessed grades in `roles`.'
description: 'A category that an assessment result confirmed: the specialization with the confirmed grade. It is read-only and derived by the server from the assessment results of the candidate; no request carries it and the profile storage holds no such column, so neither a form nor an import can write a confirmed grade. It is separate from the claims of the profile and from the self-assessed grades in `roles`. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category that is not a validated measurement.'
additionalProperties: false
required:
- specialization
- grade
- basis
- confirmed_at
- attempt_id
properties:
@@ -4684,6 +4685,8 @@ components:
$ref: '#/components/schemas/SpecializationCode'
grade:
$ref: '#/components/schemas/GradeCode'
basis:
$ref: '#/components/schemas/EvidenceBasis'
confirmed_at:
$ref: '#/components/schemas/Timestamp'
attempt_id:
@@ -6163,6 +6166,7 @@ components:
required:
- specialization
- confirmed_grade
- confirmed_basis
- active_attempt_id
- grades
properties:
@@ -6173,6 +6177,11 @@ components:
oneOf:
- $ref: '#/components/schemas/GradeCode'
- type: 'null'
confirmed_basis:
description: What the confirmed grade rests on, or null exactly when `confirmed_grade` is null. `synthetic_demo` marks a demonstration category, which is not a validated measurement and must not be shown as a real confirmation.
oneOf:
- $ref: '#/components/schemas/EvidenceBasis'
- type: 'null'
active_attempt_id:
type:
- string
@@ -9436,12 +9445,13 @@ components:
description: Number of organizations that the candidate hides the profile from. The list is read with `ListMyHiddenOrganizations`.
CardCategory:
type: object
description: A category confirmed by assessment results, as the card shows it.
description: A category confirmed by assessment results, as the card shows it. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which is never a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- strength
- basis
properties:
specialization:
$ref: '#/components/schemas/SpecializationCode'
@@ -9453,6 +9463,8 @@ components:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
basis:
$ref: '#/components/schemas/EvidenceBasis'
AnonymousCardContent:
type: object
description: The anonymous candidate card as an organization reads it. Only explicitly published values reach it; unconfirmed stack suggestions and unknown values never do. Stack output uses a closed taxonomy. It carries no name, contact, resume text, employer, salary figure, account or profile identifier, and no schema of the private profile or of a contact disclosure is reachable from it; a contact reaches an organization only through the contact grant of an accepted invitation. Each property is null when its field is not published or the candidate has no value for it, so the card does not tell the two apart. The set of properties is closed, and an organization-visible card must never gain a property that identifies the candidate. The search ranking and the full card of an organization's search result are defined by the search contract, which reuses this content.
@@ -10835,16 +10847,19 @@ components:
description: Search basis echoed with the response so the displayed result remains tied to its need requirements version or bank filters.
MatchCategory:
type: object
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization.
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which an organization must read as one and never as a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- basis
properties:
specialization:
$ref: '#/components/schemas/SpecializationCode'
grade:
$ref: '#/components/schemas/GradeCode'
basis:
$ref: '#/components/schemas/EvidenceBasis'
MatchStrength:
type: string
description: Coarse strength of a confirmed assessment for this specialization.
@@ -12441,6 +12456,7 @@ components:
confirmed_categories:
- specialization: backend
grade: junior
basis: synthetic_demo
confirmed_at: '2026-10-04T18:10:00Z'
attempt_id: 0192b3c4-d5e6-7f80-9a1b-2c3d4e5f6a7b
updated_at: '2026-10-05T09:30:00Z'
@@ -12554,6 +12570,7 @@ components:
specializations:
- specialization: backend
confirmed_grade: null
confirmed_basis: null
active_attempt_id: null
grades:
- grade: intern
@@ -12590,6 +12607,7 @@ components:
practice_required: null
- specialization: network_engineer
confirmed_grade: null
confirmed_basis: null
active_attempt_id: null
grades:
- grade: intern
@@ -14552,6 +14570,7 @@ components:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -14587,6 +14606,7 @@ components:
category:
specialization: frontend
grade: junior
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -14681,6 +14701,7 @@ components:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: strong
public_context:
stack:
@@ -14731,6 +14752,7 @@ components:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -14781,6 +14803,7 @@ components:
category:
specialization: backend
grade: junior
basis: synthetic_demo
strength: standard
public_context:
stack: null
@@ -14817,6 +14840,7 @@ components:
- specialization: backend
grade: middle
strength: standard
basis: synthetic_demo
stack:
- postgresql
- kafka
@@ -16265,6 +16289,7 @@ components:
- specialization: backend
grade: middle
strength: standard
basis: synthetic_demo
stack:
- postgresql
- kafka