feat(support): verify the manual assessment request after a C3 refusal
This commit is contained in:
1 parent
6bfd7098c3
commit
68286af8b7
20 files changed
+680
-74
No files matched your search
+4
-2
@@ -384,7 +384,7 @@ Planned, additive: reading and comparing versions, exclusions, the market range
|
||||
|
||||
### Support cases
|
||||
|
||||
The `support` tag covers the cases of the current account (PRD FR18, with the manual assessment of FR04 and C3): questions to support, complaints, appeals of a grade or an anti-cheat decision, and manual assessment requests. The operations are in the contract, but their business logic is not implemented: a guest answers 401 `unauthenticated`, and a request with a verified session reaches 501 `not_implemented` after request validation. Unsafe protected operations also require the session-bound CSRF token and exact Origin.
|
||||
The `support` tag covers the cases of the current account (PRD FR18, with the manual assessment of FR04 and C3): questions to support, complaints, appeals of a grade or an anti-cheat decision, and manual assessment requests. The operations are implemented: a guest answers 401 `unauthenticated`, and a verified session passes request validation and the domain rules. Unsafe protected operations also require the session-bound CSRF token and exact Origin.
|
||||
|
||||
| Method and path | operationId | Security | Success | Specific errors |
|
||||
| --- | --- | --- | --- | --- |
|
||||
@@ -415,7 +415,7 @@ Types and object references:
|
||||
- An organization is visible to a candidate that it invited or whose profile the organization contract shows to the candidate, and to an employer account with an active membership. The server checks every reference against the session account: an unknown object and someone else's object both answer 404 `not_found`, so a reference never reveals whether a foreign object exists. The case stores only `{type, id}`.
|
||||
- Invitations are in the contract (see Invitations and contact grants below) but not implemented, and anti-cheat review decisions are not in the contract yet. Until they are implemented, every `invitation` reference answers 404 and every anti-cheat appeal answers 409 `state_conflict`; the request shapes stay the same.
|
||||
- `offer_content` and `salary_terms_violation` complaints require an invitation; another object answers 400 with the pointer `/object/type` (a domain rule after the schema).
|
||||
- A failed first test or no attempt at all never blocks a manual assessment. Creating a case never grants, revokes, or changes a consent, a grade, or an attempt; how a manual assessment relates to the C3 consent is defined by consent revocation and manual assessment.
|
||||
- A failed first test or no attempt at all never blocks a manual assessment. Creating a case never grants, revokes, or changes a consent, a grade, or an attempt; a manual assessment does not depend on C3. A candidate who revoked C3 (`DELETE /api/v1/me/consents/c3`) or never gave it creates the same request, and the request neither reads nor changes the consent ledger. A retry with the same `Idempotency-Key` returns the original case; a new key (for example after a page reload) while a manual assessment of the same specialization is open answers 409 `state_conflict`, and the open case stays the only one. `rubric_version` is `null` when the target has no single current reviewed category; the server does not guess a rubric, and the case still waits for an expert with no automatic result.
|
||||
|
||||
Content and fields the client never sets:
|
||||
|
||||
@@ -444,6 +444,8 @@ Commands and limits:
|
||||
|
||||
Open product question for manual assessment: whether repeated manual assessments of the same category follow the retest rules of FR04 (the same grade after 30 days, at most three attempts in 180 days) or their own rule. The contract only allows one open manual assessment per specialization and invents no interval.
|
||||
|
||||
Open questions for manual assessment after a C3 refusal: whether the request needs a structured reason (for example a "C3 refused" marker) instead of the free-text `description`; whether a target with two current categories for the same specialization and grade (different task languages) should get a rubric chosen by language instead of `null`; whether a repeat with a new key should return the existing open case instead of 409. The contract invents none of these.
|
||||
|
||||
Planned, additive (a new operation or an optional field): replies of the author, attachments, withdrawal of a case, list filters by status and type, the resulting category of a manual assessment in the decision, a next step for the author, staff queues and decisions, and the pause rules of the response target.
|
||||
|
||||
Planned contract changes (new enum values; like the catalog codes, generated clients reject an unknown value, so each one is released with regenerated clients): object types `vacancy` and `application` for the vacancies and protected applications of FR16, and an object type for the profile analysis findings. `waiting_for_user` and `support_case` are already in the enums, so the reply operation and follow-up cases need no such change. No new event kind or actor kind is planned: an author reply is a `reply` with the actor `user`, a decision revision is another `decision` event, and experts and moderators are `support`.
|
||||
|
||||
+4
-2
@@ -384,7 +384,7 @@ ML-сервис отвечает на ошибки той же схемой `Pro
|
||||
|
||||
### Обращения
|
||||
|
||||
Тег `support` описывает обращения текущего аккаунта (FR18 в PRD, с ручной оценкой из FR04 и C3): вопросы в поддержку, жалобы, апелляции грейда и античит-решения, запросы ручной оценки. Операции есть в контракте, но их бизнес-логика еще не реализована: гость получает 401 `unauthenticated`, а запрос с подтвержденной сессией достигает 501 `not_implemented` после проверки запроса. Небезопасные защищенные операции также требуют session-bound CSRF-токен и точный Origin.
|
||||
Тег `support` описывает обращения текущего аккаунта (FR18 в PRD, с ручной оценкой из FR04 и C3): вопросы в поддержку, жалобы, апелляции грейда и античит-решения, запросы ручной оценки. Операции реализованы: гость получает 401 `unauthenticated`, а подтвержденная сессия проходит проверку запроса и доменные правила. Небезопасные защищенные операции также требуют session-bound CSRF-токен и точный Origin.
|
||||
|
||||
| Метод и путь | operationId | Защита | Успех | Конкретные ошибки |
|
||||
| --- | --- | --- | --- | --- |
|
||||
@@ -415,7 +415,7 @@ ML-сервис отвечает на ошибки той же схемой `Pro
|
||||
- Организацию видит кандидат, которого она пригласила или которому контракт организации показывает ее профиль, и аккаунт работодателя с действующим членством в ней. Сервер сверяет каждую ссылку с аккаунтом сессии: неизвестный и чужой объект одинаково дают 404 `not_found`, поэтому ссылка не раскрывает, существует ли чужой объект. Обращение хранит только `{type, id}`.
|
||||
- Приглашения есть в контракте (см. раздел Приглашения и контактные разрешения ниже), но не реализованы, а решений античит-проверки в контракте пока нет. До их реализации любая ссылка `invitation` дает 404, а любая античит-апелляция - 409 `state_conflict`; форма запроса не меняется.
|
||||
- Жалобы `offer_content` и `salary_terms_violation` требуют приглашения; другой объект дает 400 с pointer `/object/type` (доменное правило после схемы).
|
||||
- Неудачный первый тест или отсутствие попыток не блокируют ручную оценку. Создание обращения не дает, не отзывает и не меняет согласие, грейд или попытку; связь ручной оценки с согласием C3 определяют отзыв согласия и ручная оценка.
|
||||
- Неудачный первый тест или отсутствие попыток не блокируют ручную оценку. Создание обращения не дает, не отзывает и не меняет согласие, грейд или попытку; ручная оценка не зависит от C3. Кандидат, отозвавший C3 (`DELETE /api/v1/me/consents/c3`) или не дававший его, создает такой же запрос, а запрос не читает и не меняет журнал согласий. Повтор с тем же `Idempotency-Key` возвращает исходное обращение; новый ключ (например, после перезагрузки страницы) при открытой ручной оценке той же специализации дает 409 `state_conflict`, и открытое обращение остается единственным. `rubric_version` равна `null`, если для цели нет единственной актуальной проверенной категории; сервер не выбирает рубрику наугад, а обращение все равно ожидает эксперта без автоматического результата.
|
||||
|
||||
Содержание и поля, которые клиент не задает:
|
||||
|
||||
@@ -444,6 +444,8 @@ ML-сервис отвечает на ошибки той же схемой `Pro
|
||||
|
||||
Открытый продуктовый вопрос для ручной оценки: подчиняются ли повторные ручные оценки той же категории правилам пересдачи из FR04 (тот же грейд через 30 дней, не больше трех попыток за 180 дней) или собственному правилу. Контракт разрешает только одну открытую ручную оценку на специализацию и интервал не придумывает.
|
||||
|
||||
Открытые вопросы ручной оценки после отказа от C3: нужна ли структурная причина запроса (например, пометка "отказ от C3") вместо свободного текста `description`; должен ли запрос со второй задачей языка (две актуальные категории для одной специализации и грейда) получать рубрику с выбором языка, а не `null`; нужно ли возвращать существующее открытое обращение вместо 409 при повторе с новым ключом. Контракт ничего из этого не выдумывает.
|
||||
|
||||
Запланировано, добавляется без ломающих изменений (новая операция или необязательное поле): ответы автора, вложения, отзыв обращения, фильтры списка по статусу и типу, итоговая категория ручной оценки в решении, следующий шаг для автора, служебные очереди и решения и правила паузы срока ответа.
|
||||
|
||||
Запланированные изменения контракта (новые значения перечислений; как и коды каталога, сгенерированные клиенты отклоняют неизвестное значение, поэтому каждое выходит вместе с перегенерированными клиентами): типы объектов `vacancy` и `application` для вакансий и защищенных откликов из FR16 и тип объекта для замечаний из анализа профиля. `waiting_for_user` и `support_case` уже есть в перечислениях, поэтому операции ответа и последующим обращениям такое изменение не нужно. Новых видов событий и участников не планируется: ответ автора - это `reply` с участником `user`, пересмотр решения - еще одно событие `decision`, а эксперты и модераторы - это `support`.
|
||||
|
||||
Reference in new issue
Block a user