chore: checkpoint assessment and inbox integration
This commit is contained in:
1 parent
88a31ba0d5
commit
5c52fd8b91
31 files changed
+4608
-181
No files matched your search
+275
-163
@@ -669,6 +669,48 @@ paths:
|
||||
$ref: '#/components/responses/Forbidden'
|
||||
default:
|
||||
$ref: '#/components/responses/Problem'
|
||||
/api/v1/me/assessment-results:
|
||||
get:
|
||||
operationId: ListMyAssessmentResults
|
||||
summary: List immutable real assessment results of the current candidate.
|
||||
description: |-
|
||||
Requires a candidate session. Returns only completed root and corrective results owned by this candidate, newest first by decided_at and attempt_id. demo_express training results never appear. The cursor is opaque and bound to this candidate and listing; a malformed or foreign cursor returns 400 validation_failed.
|
||||
|
||||
A v2 result includes the category decision captured when that attempt ended, including the confirmed grade then in force. Legacy v1 results omit category_decision because a later category must not be projected backward. Later policy, bank, review, or category changes do not alter either result. Employers cannot read this history; their separate projection contains only the current permitted category and no answers.
|
||||
security:
|
||||
- sessionCookie: []
|
||||
tags:
|
||||
- assessment
|
||||
parameters:
|
||||
- name: limit
|
||||
in: query
|
||||
required: false
|
||||
description: Maximum number of results per page.
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
minimum: 1
|
||||
maximum: 50
|
||||
default: 20
|
||||
- $ref: '#/components/parameters/PageCursor'
|
||||
responses:
|
||||
'200':
|
||||
description: One owner-scoped page of immutable results.
|
||||
headers:
|
||||
Cache-Control:
|
||||
$ref: '#/components/headers/CacheControlNoStore'
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/AssessmentResultHistoryPage'
|
||||
'400':
|
||||
$ref: '#/components/responses/ValidationFailed'
|
||||
'401':
|
||||
$ref: '#/components/responses/Unauthenticated'
|
||||
'403':
|
||||
$ref: '#/components/responses/Forbidden'
|
||||
default:
|
||||
$ref: '#/components/responses/Problem'
|
||||
/api/v1/me/assessment-attempts:
|
||||
post:
|
||||
operationId: CreateMyAssessmentAttempt
|
||||
@@ -5640,6 +5682,74 @@ components:
|
||||
root: '#/components/schemas/AssessmentQualifiedResult'
|
||||
corrective: '#/components/schemas/AssessmentCorrectiveResult'
|
||||
demo_express: '#/components/schemas/AssessmentExpressResult'
|
||||
AssessmentRealResult:
|
||||
description: A completed root or corrective result. Training-only demo_express results are excluded from qualification history.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/AssessmentQualifiedResult'
|
||||
- $ref: '#/components/schemas/AssessmentCorrectiveResult'
|
||||
discriminator:
|
||||
propertyName: kind
|
||||
mapping:
|
||||
root: '#/components/schemas/AssessmentQualifiedResult'
|
||||
corrective: '#/components/schemas/AssessmentCorrectiveResult'
|
||||
AssessmentCategoryDecisionView:
|
||||
type: object
|
||||
description: Category decision captured when this result was stored. It is absent from legacy v1 results because their current grade cannot be inferred later. It never exposes review identifiers, private answers, or the candidate's current category after this decision.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- previous_confirmed_grade
|
||||
- current_confirmed_grade
|
||||
- method
|
||||
- source
|
||||
- calibration_status
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- not_eligible
|
||||
- not_confirmed
|
||||
- assigned
|
||||
- unchanged
|
||||
previous_confirmed_grade:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/GradeCode'
|
||||
- type: 'null'
|
||||
current_confirmed_grade:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/GradeCode'
|
||||
- type: 'null'
|
||||
method:
|
||||
oneOf:
|
||||
- type: string
|
||||
enum:
|
||||
- demo_basic_pass_mark
|
||||
- type: 'null'
|
||||
source:
|
||||
oneOf:
|
||||
- type: string
|
||||
enum:
|
||||
- synthetic_demo
|
||||
- type: 'null'
|
||||
calibration_status:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/CalibrationStatus'
|
||||
- type: 'null'
|
||||
AssessmentResultHistoryPage:
|
||||
type: object
|
||||
description: Owner-only immutable root and corrective results ordered by decided_at and attempt_id descending. Legacy v1 results omit category_decision.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- items
|
||||
- page
|
||||
properties:
|
||||
items:
|
||||
type: array
|
||||
maxItems: 50
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentRealResult'
|
||||
page:
|
||||
$ref: '#/components/schemas/PageInfo'
|
||||
AssessmentGradeAvailabilityStatus:
|
||||
type: string
|
||||
description: |-
|
||||
@@ -9229,6 +9339,171 @@ components:
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
AssessmentRealResultCommon:
|
||||
type: object
|
||||
description: Immutable result of a real assessment, visible only to its candidate. It records the method, versions, decision, uncertainty, and limitations. A corrective result also carries root_attempt_id and chain_deadline from the same chain. Later policy, bank, or algorithm versions never change it. It never contains answers, per-item correctness, keys, seeds, hidden checks, or anti-cheat signals. Fields the method does not compute are null, never zero.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- attempt_id
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
- kind
|
||||
- mode
|
||||
- versions
|
||||
- outcome
|
||||
- not_determined_reason
|
||||
- confirmed_grade
|
||||
- previous_confirmed_grade
|
||||
- strength
|
||||
- calibration_status
|
||||
- limitations
|
||||
- uncertainty
|
||||
- basic_score
|
||||
- practices
|
||||
- gaps
|
||||
- durations
|
||||
- next_steps
|
||||
- decided_at
|
||||
properties:
|
||||
attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
specialization:
|
||||
$ref: '#/components/schemas/SpecializationCode'
|
||||
target_grade:
|
||||
$ref: '#/components/schemas/GradeCode'
|
||||
root_attempt_id:
|
||||
description: Root attempt of a corrective check, or null when this is not a corrective result. The corrective attempt keeps this link.
|
||||
oneOf:
|
||||
- type: string
|
||||
format: uuid
|
||||
- type: 'null'
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
description: Immutable deadline shared by a corrective chain, or null when this result is not from a corrective check.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/Timestamp'
|
||||
- type: 'null'
|
||||
readOnly: true
|
||||
task_language:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TaskLanguage'
|
||||
- type: 'null'
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
- corrective
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
versions:
|
||||
$ref: '#/components/schemas/AssessmentVersions'
|
||||
outcome:
|
||||
$ref: '#/components/schemas/AssessmentOutcome'
|
||||
not_determined_reason:
|
||||
description: The reason when `outcome` is `not_determined`, otherwise null.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/AssessmentNotDeterminedReason'
|
||||
- type: 'null'
|
||||
confirmed_grade:
|
||||
description: Grade that this attempt confirmed, the target grade, or null when it confirmed none. Together with the specialization it forms the category.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/GradeCode'
|
||||
- type: 'null'
|
||||
previous_confirmed_grade:
|
||||
description: Confirmed grade of the specialization before this attempt, or null. When the attempt confirmed nothing, this grade stays in force.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/GradeCode'
|
||||
- type: 'null'
|
||||
category_decision:
|
||||
$ref: '#/components/schemas/AssessmentCategoryDecisionView'
|
||||
strength:
|
||||
description: Strength of an adaptive confirmation, otherwise null.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/AssessmentStrength'
|
||||
- type: 'null'
|
||||
calibration_status:
|
||||
$ref: '#/components/schemas/CalibrationStatus'
|
||||
limitations:
|
||||
type: array
|
||||
maxItems: 10
|
||||
uniqueItems: true
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentLimitation'
|
||||
uncertainty:
|
||||
description: Ability estimate and uncertainty of an adaptive attempt with a decision; null for demo_basic, which computes none, and for an attempt without a decision.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/AssessmentUncertainty'
|
||||
- type: 'null'
|
||||
basic_score:
|
||||
description: Raw score of a demo_basic attempt with a decision, otherwise null.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/BasicScore'
|
||||
- type: 'null'
|
||||
practices:
|
||||
type: array
|
||||
maxItems: 5
|
||||
description: Verdicts of the practices that have one, main first.
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentPracticeResult'
|
||||
gaps:
|
||||
type: array
|
||||
maxItems: 20
|
||||
description: Domains with weak evidence; empty when none were found or the method finds none.
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentGap'
|
||||
durations:
|
||||
$ref: '#/components/schemas/AssessmentDurations'
|
||||
next_steps:
|
||||
type: array
|
||||
maxItems: 5
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentNextStep'
|
||||
decided_at:
|
||||
$ref: '#/components/schemas/Timestamp'
|
||||
AssessmentQualifiedResult:
|
||||
description: Result of a real assessment that is not a corrective attempt. The correction-chain fields are explicitly null.
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/AssessmentRealResultCommon'
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
root_attempt_id:
|
||||
type: 'null'
|
||||
chain_deadline:
|
||||
type: 'null'
|
||||
required:
|
||||
- kind
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
AssessmentCorrectiveResult:
|
||||
description: Result of a corrective real assessment. Both chain fields are present and identify the same immutable correction chain.
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/AssessmentRealResultCommon'
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- corrective
|
||||
root_attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
$ref: '#/components/schemas/Timestamp'
|
||||
readOnly: true
|
||||
required:
|
||||
- kind
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
AssessmentQualifiedAttemptCreate:
|
||||
type: object
|
||||
description: Start a real assessment for a specialization and target grade, with the task language. The candidate comes from the session. The server chooses demo_basic or adaptive and fixes the policy, bank, and algorithm versions. Unknown fields such as `mode`, `seed`, or `score` are rejected.
|
||||
@@ -9539,169 +9814,6 @@ components:
|
||||
type: string
|
||||
format: uuid
|
||||
description: Frozen item IDs still unanswered when finalize is rejected for an incomplete attempt. Omitted when the conflict is unrelated to unanswered items.
|
||||
AssessmentRealResultCommon:
|
||||
type: object
|
||||
description: Immutable result of a real assessment, visible only to its candidate. It records the method, versions, decision, uncertainty, and limitations. A corrective result also carries root_attempt_id and chain_deadline from the same chain. Later policy, bank, or algorithm versions never change it. It never contains answers, per-item correctness, keys, seeds, hidden checks, or anti-cheat signals. Fields the method does not compute are null, never zero.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- attempt_id
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
- kind
|
||||
- mode
|
||||
- versions
|
||||
- outcome
|
||||
- not_determined_reason
|
||||
- confirmed_grade
|
||||
- previous_confirmed_grade
|
||||
- strength
|
||||
- calibration_status
|
||||
- limitations
|
||||
- uncertainty
|
||||
- basic_score
|
||||
- practices
|
||||
- gaps
|
||||
- durations
|
||||
- next_steps
|
||||
- decided_at
|
||||
properties:
|
||||
attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
specialization:
|
||||
$ref: '#/components/schemas/SpecializationCode'
|
||||
target_grade:
|
||||
$ref: '#/components/schemas/GradeCode'
|
||||
root_attempt_id:
|
||||
description: Root attempt of a corrective check, or null when this is not a corrective result. The corrective attempt keeps this link.
|
||||
oneOf:
|
||||
- type: string
|
||||
format: uuid
|
||||
- type: 'null'
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
description: Immutable deadline shared by a corrective chain, or null when this result is not from a corrective check.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/Timestamp'
|
||||
- type: 'null'
|
||||
readOnly: true
|
||||
task_language:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/TaskLanguage'
|
||||
- type: 'null'
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
- corrective
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
versions:
|
||||
$ref: '#/components/schemas/AssessmentVersions'
|
||||
outcome:
|
||||
$ref: '#/components/schemas/AssessmentOutcome'
|
||||
not_determined_reason:
|
||||
description: The reason when `outcome` is `not_determined`, otherwise null.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/AssessmentNotDeterminedReason'
|
||||
- type: 'null'
|
||||
confirmed_grade:
|
||||
description: Grade that this attempt confirmed, the target grade, or null when it confirmed none. Together with the specialization it forms the category.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/GradeCode'
|
||||
- type: 'null'
|
||||
previous_confirmed_grade:
|
||||
description: Confirmed grade of the specialization before this attempt, or null. When the attempt confirmed nothing, this grade stays in force.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/GradeCode'
|
||||
- type: 'null'
|
||||
strength:
|
||||
description: Strength of an adaptive confirmation, otherwise null.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/AssessmentStrength'
|
||||
- type: 'null'
|
||||
calibration_status:
|
||||
$ref: '#/components/schemas/CalibrationStatus'
|
||||
limitations:
|
||||
type: array
|
||||
maxItems: 10
|
||||
uniqueItems: true
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentLimitation'
|
||||
uncertainty:
|
||||
description: Ability estimate and uncertainty of an adaptive attempt with a decision; null for demo_basic, which computes none, and for an attempt without a decision.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/AssessmentUncertainty'
|
||||
- type: 'null'
|
||||
basic_score:
|
||||
description: Raw score of a demo_basic attempt with a decision, otherwise null.
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/BasicScore'
|
||||
- type: 'null'
|
||||
practices:
|
||||
type: array
|
||||
maxItems: 5
|
||||
description: Verdicts of the practices that have one, main first.
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentPracticeResult'
|
||||
gaps:
|
||||
type: array
|
||||
maxItems: 20
|
||||
description: Domains with weak evidence; empty when none were found or the method finds none.
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentGap'
|
||||
durations:
|
||||
$ref: '#/components/schemas/AssessmentDurations'
|
||||
next_steps:
|
||||
type: array
|
||||
maxItems: 5
|
||||
items:
|
||||
$ref: '#/components/schemas/AssessmentNextStep'
|
||||
decided_at:
|
||||
$ref: '#/components/schemas/Timestamp'
|
||||
AssessmentQualifiedResult:
|
||||
description: Result of a real assessment that is not a corrective attempt. The correction-chain fields are explicitly null.
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/AssessmentRealResultCommon'
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
root_attempt_id:
|
||||
type: 'null'
|
||||
chain_deadline:
|
||||
type: 'null'
|
||||
required:
|
||||
- kind
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
AssessmentCorrectiveResult:
|
||||
description: Result of a corrective real assessment. Both chain fields are present and identify the same immutable correction chain.
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/AssessmentRealResultCommon'
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- corrective
|
||||
root_attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
$ref: '#/components/schemas/Timestamp'
|
||||
readOnly: true
|
||||
required:
|
||||
- kind
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
AssessmentExpressResult:
|
||||
type: object
|
||||
description: Immutable educational result of a demo_express run. It includes a short summary but cannot report a category, percentile, uncertainty, grade, strength, or qualification evidence. The result belongs only to the training mode and does not consume a real-assessment quota.
|
||||
|
||||
Reference in new issue
Block a user