feat(assessment): define corrective and training attempt contracts
This commit is contained in:
1 parent
fade4e76e4
commit
20c03288d6
71 files changed
+14786
-1743
No files matched your search
@@ -509,6 +509,7 @@ AssessmentAvailability:
|
||||
AssessmentAttemptCreateBackendJunior:
|
||||
summary: Start Backend junior with Go tasks
|
||||
value:
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: junior
|
||||
task_language: go
|
||||
@@ -524,9 +525,12 @@ AssessmentAttemptCreated:
|
||||
value:
|
||||
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
||||
version: 1
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: junior
|
||||
task_language: go
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: demo_basic
|
||||
state: in_progress
|
||||
versions:
|
||||
@@ -560,6 +564,86 @@ AssessmentAttemptCreated:
|
||||
- id: c4
|
||||
text: "500"
|
||||
practices: []
|
||||
AssessmentCorrectiveAttemptCreated:
|
||||
summary: Corrective attempt shares the root chain deadline
|
||||
value:
|
||||
id: 01928f7e-8888-7a2b-8c3d-4e5f6a7b8c9d
|
||||
version: 1
|
||||
kind: corrective
|
||||
specialization: backend
|
||||
target_grade: junior
|
||||
task_language: go
|
||||
root_attempt_id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
chain_deadline: "2026-11-23T09:00:00Z"
|
||||
mode: adaptive
|
||||
state: in_progress
|
||||
versions:
|
||||
policy_version: 2
|
||||
bank_version: backend.2026-11.3
|
||||
algorithm_version: irt-1pl-eap.1
|
||||
started_at: "2026-11-22T10:00:00Z"
|
||||
expires_at: "2026-11-23T09:00:00Z"
|
||||
sessions:
|
||||
used: 1
|
||||
max: 2
|
||||
idle_timeout_seconds: 1800
|
||||
finished_at: null
|
||||
progress:
|
||||
answered_items: 0
|
||||
max_items: 25
|
||||
current_item:
|
||||
id: 01928f7e-9999-7a2b-8c3d-4e5f6a7b8c01
|
||||
sequence: 1
|
||||
prompt: "What does an HTTP 412 response indicate for expected_version?"
|
||||
content:
|
||||
format: choice
|
||||
multiple: false
|
||||
options:
|
||||
- id: a1
|
||||
text: The version is stale.
|
||||
- id: b2
|
||||
text: The request is malformed.
|
||||
practices: []
|
||||
AssessmentExpressAttemptCreated:
|
||||
summary: Short training attempt without a qualification category
|
||||
value:
|
||||
id: 01928f7f-9999-7a2b-8c3d-4e5f6a7b8c01
|
||||
version: 1
|
||||
kind: demo_express
|
||||
specialization: null
|
||||
target_grade: null
|
||||
task_language: null
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: demo_express
|
||||
state: in_progress
|
||||
versions:
|
||||
policy_version: 1
|
||||
bank_version: express-demo.2026-10.1
|
||||
algorithm_version: express-interactive.1
|
||||
started_at: "2026-10-08T10:00:00Z"
|
||||
expires_at: "2026-10-08T10:05:00Z"
|
||||
sessions:
|
||||
used: 1
|
||||
max: 1
|
||||
idle_timeout_seconds: 300
|
||||
finished_at: null
|
||||
progress:
|
||||
answered_items: 0
|
||||
max_items: 5
|
||||
current_item:
|
||||
id: 01928f7f-aaaa-7a2b-8c3d-4e5f6a7b8c01
|
||||
sequence: 1
|
||||
prompt: "Choose the status code that signals a version conflict."
|
||||
content:
|
||||
format: choice
|
||||
multiple: false
|
||||
options:
|
||||
- id: c3
|
||||
text: "412"
|
||||
- id: d4
|
||||
text: "200"
|
||||
practices: []
|
||||
AssessmentAnswerAccepted:
|
||||
summary: Answer to item 1 stored; item 2 follows
|
||||
description: >-
|
||||
@@ -572,9 +656,12 @@ AssessmentAnswerAccepted:
|
||||
value:
|
||||
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
||||
version: 2
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: junior
|
||||
task_language: go
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: demo_basic
|
||||
state: in_progress
|
||||
versions:
|
||||
@@ -612,9 +699,12 @@ AssessmentAttemptCompleted:
|
||||
value:
|
||||
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
||||
version: 14
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: junior
|
||||
task_language: go
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: demo_basic
|
||||
state: completed
|
||||
versions:
|
||||
@@ -643,9 +733,12 @@ AssessmentAttemptResumed:
|
||||
value:
|
||||
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
version: 7
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
task_language: python
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: adaptive
|
||||
state: in_progress
|
||||
versions:
|
||||
@@ -701,9 +794,12 @@ AssessmentAttemptPracticePending:
|
||||
value:
|
||||
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
version: 16
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
task_language: python
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: adaptive
|
||||
state: practice_pending
|
||||
versions:
|
||||
@@ -743,9 +839,12 @@ AssessmentAttemptPracticeVerdictPending:
|
||||
value:
|
||||
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
version: 17
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
task_language: python
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: adaptive
|
||||
state: practice_pending
|
||||
versions:
|
||||
@@ -779,9 +878,12 @@ AssessmentAttemptSandboxFailed:
|
||||
value:
|
||||
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
version: 18
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
task_language: python
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: adaptive
|
||||
state: practice_pending
|
||||
versions:
|
||||
@@ -821,9 +923,12 @@ AssessmentAttemptReadyToFinalize:
|
||||
value:
|
||||
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
version: 20
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
task_language: python
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: adaptive
|
||||
state: ready_to_finalize
|
||||
versions:
|
||||
@@ -870,9 +975,12 @@ AssessmentAttemptAdditionalPracticePending:
|
||||
value:
|
||||
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
version: 21
|
||||
kind: root
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
task_language: python
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: adaptive
|
||||
state: additional_practice_pending
|
||||
versions:
|
||||
@@ -932,9 +1040,12 @@ AssessmentAttemptInsufficientBank:
|
||||
value:
|
||||
id: 01928f7c-5555-7a2b-8c3d-4e5f6a7b8c9d
|
||||
version: 10
|
||||
kind: root
|
||||
specialization: network_engineer
|
||||
target_grade: middle
|
||||
task_language: null
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
mode: adaptive
|
||||
state: insufficient_bank
|
||||
versions:
|
||||
@@ -1048,6 +1159,9 @@ AssessmentDemoBasicResult:
|
||||
attempt_id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
||||
specialization: backend
|
||||
target_grade: junior
|
||||
kind: root
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
task_language: go
|
||||
mode: demo_basic
|
||||
versions:
|
||||
@@ -1090,6 +1204,9 @@ AssessmentAdaptiveResult:
|
||||
attempt_id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
kind: root
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
task_language: python
|
||||
mode: adaptive
|
||||
versions:
|
||||
@@ -1157,6 +1274,9 @@ AssessmentNotConfirmedResult:
|
||||
attempt_id: 01928f7d-7777-7a2b-8c3d-4e5f6a7b8c9d
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
kind: root
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
task_language: go
|
||||
mode: adaptive
|
||||
versions:
|
||||
@@ -1224,6 +1344,9 @@ AssessmentInsufficientBankResult:
|
||||
attempt_id: 01928f7c-5555-7a2b-8c3d-4e5f6a7b8c9d
|
||||
specialization: network_engineer
|
||||
target_grade: middle
|
||||
kind: root
|
||||
root_attempt_id: null
|
||||
chain_deadline: null
|
||||
task_language: null
|
||||
mode: adaptive
|
||||
versions:
|
||||
@@ -1246,6 +1369,73 @@ AssessmentInsufficientBankResult:
|
||||
practice_seconds: null
|
||||
next_steps: []
|
||||
decided_at: "2026-11-21T12:31:00Z"
|
||||
AssessmentCorrectiveResult:
|
||||
summary: Corrective result retains its root and fixed deadline
|
||||
value:
|
||||
attempt_id: 01928f7e-8888-7a2b-8c3d-4e5f6a7b8c9d
|
||||
specialization: backend
|
||||
target_grade: middle
|
||||
kind: corrective
|
||||
root_attempt_id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
chain_deadline: "2026-11-23T09:00:00Z"
|
||||
task_language: go
|
||||
mode: adaptive
|
||||
versions:
|
||||
policy_version: 2
|
||||
bank_version: backend.2026-11.3
|
||||
algorithm_version: irt-1pl-eap.1
|
||||
outcome: not_confirmed
|
||||
not_determined_reason: null
|
||||
confirmed_grade: null
|
||||
previous_confirmed_grade: junior
|
||||
strength: null
|
||||
calibration_status: uncalibrated
|
||||
limitations: [uncalibrated_thresholds, unproctored]
|
||||
uncertainty:
|
||||
theta: 0.21
|
||||
standard_error: 0.25
|
||||
interval_95:
|
||||
low: -0.28
|
||||
high: 0.70
|
||||
p_grade: 0.62
|
||||
basic_score: null
|
||||
practices: []
|
||||
gaps: []
|
||||
durations:
|
||||
items_seconds: 1500
|
||||
practice_seconds: 900
|
||||
next_steps: []
|
||||
decided_at: "2026-11-22T11:00:00Z"
|
||||
AssessmentExpressResult:
|
||||
summary: Short training result with no qualification evidence
|
||||
value:
|
||||
attempt_id: 01928f7f-9999-7a2b-8c3d-4e5f6a7b8c9d
|
||||
specialization: null
|
||||
target_grade: null
|
||||
task_language: null
|
||||
kind: demo_express
|
||||
mode: demo_express
|
||||
versions:
|
||||
policy_version: 1
|
||||
bank_version: express-demo.2026-10.1
|
||||
algorithm_version: express-interactive.1
|
||||
outcome: demonstration
|
||||
not_determined_reason: null
|
||||
confirmed_grade: null
|
||||
previous_confirmed_grade: null
|
||||
strength: null
|
||||
calibration_status: uncalibrated
|
||||
limitations: [demonstration_only]
|
||||
uncertainty: null
|
||||
basic_score: null
|
||||
practices: []
|
||||
gaps: []
|
||||
durations:
|
||||
items_seconds: 260
|
||||
practice_seconds: null
|
||||
next_steps: []
|
||||
summary: The run demonstrates the task flow and creates no qualification evidence.
|
||||
decided_at: "2026-11-22T11:00:00Z"
|
||||
AssessmentSpecializationNotInQuestionnaire:
|
||||
summary: The specialization is not in the questionnaire
|
||||
value:
|
||||
|
||||
+410
-22
@@ -33,23 +33,39 @@ CandidateHandle:
|
||||
- cand_7Qm2xVb9Lr4Kp0Zt
|
||||
AssessmentMode:
|
||||
type: string
|
||||
description: 'Measurement method of an attempt. The server selects it from the published task bank of the category; the client never chooses it.
|
||||
description: 'Method of an assessment attempt. For a real assessment, the server selects demo_basic or adaptive from the published bank. A candidate may explicitly request demo_express, which uses a separate training policy and creates no qualification evidence.
|
||||
|
||||
|
||||
- demo_basic: a fixed form of reviewed demo items scored by their keys against the pass mark of the versioned basic grading policy. It computes no ability estimate, standard error, or probability, so every uncertainty field of its result is null, its thresholds are uncalibrated, and its decision is binary: it never offers an additional practice.
|
||||
|
||||
- adaptive: the adaptive test on task families with an ability estimate, its standard error, and the probability of reaching the grade threshold, as the versioned assessment policy defines them. A probability in the band below confirmation offers one additional practice in the same attempt.
|
||||
|
||||
- demo_express: an interactive 3 to 5 minute training run under a separate policy. It does not assign a category or percentile, count toward the real-assessment quota, or create qualification evidence.
|
||||
|
||||
|
||||
Adding a value is a contract change.'
|
||||
enum:
|
||||
- demo_basic
|
||||
- demo_express
|
||||
- adaptive
|
||||
AssessmentRealMode:
|
||||
type: string
|
||||
description: Server-selected mode available to a real category assessment.
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
AssessmentAttemptKind:
|
||||
type: string
|
||||
description: Assessment track that distinguishes root, corrective, and training attempts.
|
||||
enum:
|
||||
- root
|
||||
- corrective
|
||||
- demo_express
|
||||
AssessmentAttemptVersion:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 1
|
||||
description: 'Version of an assessment attempt. A new attempt has version 1, and each committed change advances it by exactly one: an accepted answer, a practice submission or resubmission, a verdict, a decision of finalize, a session start, and a server-side transition such as expiry or automatic finalization. A transition that the server applies when the attempt is read is committed before the response and also advances it. A rejected command and a repeat that stores nothing leave it unchanged. Commands send the version they read as `expected_version`.'
|
||||
description: 'Version of an assessment attempt. A new attempt has version 1, and each committed change advances it by exactly one: an accepted answer, a practice submission or resubmission, a verdict, a decision of finalize, an explicit work-session start, and a server-side transition such as expiry or automatic finalization. Reads never change the attempt. A rejected command and a repeat that stores nothing leave it unchanged. Commands send the version they read as `expected_version`.'
|
||||
examples:
|
||||
- 4
|
||||
AssessmentAttemptState:
|
||||
@@ -72,7 +88,7 @@ AssessmentAttemptState:
|
||||
- insufficient_bank: the published bank could not supply the items required for coverage within the limit, and the attempt ended without a confirmed grade instead of repeating families. The result is available.
|
||||
|
||||
|
||||
When `expires_at` passes or the session limit is reached, a practice submitted before that and still `pending` is graded first. Then the server decides without another command: `ready_to_finalize` is finalized and becomes `completed`; `additional_practice_pending` with the additional practice not submitted is finalized as declined and becomes `completed` with `not_confirmed`; `in_progress` and `practice_pending` become `expired`, with the result reason `expired` or `practice_incomplete`; and when the latest submission of a practice ended `failed`, the attempt becomes `expired` with the reason `sandbox_unavailable`, which is not the candidate''s fault. `completed`, `expired`, and `insufficient_bank` are terminal and accept no command except the repeat of finalize described on FinalizeMyAssessmentAttempt. Adding a value is a contract change.'
|
||||
When `expires_at` passes or the session limit is reached, a read returns the stored state without changing it. A command or background transition commits any due outcome and advances the version. A practice submitted before the limit and still `pending` is graded first. Then `ready_to_finalize` becomes `completed`; `additional_practice_pending` with the additional practice not submitted is finalized as declined and becomes `completed` with `not_confirmed`; `in_progress` and `practice_pending` become `expired`, with the result reason `expired` or `practice_incomplete`; and when the latest submission of a practice ended `failed`, the attempt becomes `expired` with the reason `sandbox_unavailable`, which is not the candidate''s fault. `completed`, `expired`, and `insufficient_bank` are terminal and accept no command except the repeat of finalize described on FinalizeMyAssessmentAttempt. Adding a value is a contract change.'
|
||||
enum:
|
||||
- in_progress
|
||||
- practice_pending
|
||||
@@ -110,7 +126,7 @@ AssessmentSessions:
|
||||
description: 'Work sessions of the attempt, as the policy version limits them, for example two sessions within the time limit.
|
||||
|
||||
|
||||
A session starts with the creation of the attempt or, after the previous session ended, with the next GetMyAssessmentAttempt or command on the active attempt. It ends after `idle_timeout_seconds` without such a request. A request that would start a session beyond `max_sessions` starts none: the server moves the attempt to `expired` and answers with it (a read) or with 409 state_conflict (a command). Reading a terminal attempt or a result never starts a session.'
|
||||
Session 1 starts with attempt creation. After it ends due to `idle_timeout_seconds` of inactivity, the candidate explicitly starts or resumes work with StartMyAssessmentAttemptSession. GetMyAssessmentAttempt and GetMyAssessmentResult are read-only and never start a session. The session command checks the attempt deadline and `max_sessions`; when either limit has passed, it records the due terminal transition and returns the resulting attempt. Reads of terminal attempts do not change them.'
|
||||
additionalProperties: false
|
||||
required:
|
||||
- used
|
||||
@@ -135,14 +151,32 @@ AssessmentSessions:
|
||||
maximum: 86400
|
||||
description: Inactivity after which the current session ends.
|
||||
AssessmentAttemptCreate:
|
||||
description: Start a real assessment, a corrective attempt in an existing chain, or an explicit training run. The required `kind` discriminator selects one of the three request shapes; `mode` remains server-selected for real assessments.
|
||||
oneOf:
|
||||
- $ref: '#/AssessmentQualifiedAttemptCreate'
|
||||
- $ref: '#/AssessmentCorrectiveAttemptCreate'
|
||||
- $ref: '#/AssessmentExpressAttemptCreate'
|
||||
discriminator:
|
||||
propertyName: kind
|
||||
mapping:
|
||||
root: '#/AssessmentQualifiedAttemptCreate'
|
||||
corrective: '#/AssessmentCorrectiveAttemptCreate'
|
||||
demo_express: '#/AssessmentExpressAttemptCreate'
|
||||
AssessmentQualifiedAttemptCreate:
|
||||
type: object
|
||||
description: 'Category to assess: a specialization and the target grade, with the task language. The candidate comes from the session. The mode and versions are chosen by the server; unknown fields such as `mode`, `seed`, or `score` are rejected.'
|
||||
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.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- kind
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
description: Start a real-assessment chain and reserve one root quota slot.
|
||||
specialization:
|
||||
$ref: '#/SpecializationCode'
|
||||
target_grade:
|
||||
@@ -152,6 +186,56 @@ AssessmentAttemptCreate:
|
||||
oneOf:
|
||||
- $ref: '#/TaskLanguage'
|
||||
- type: 'null'
|
||||
AssessmentCorrectiveAttemptCreate:
|
||||
type: object
|
||||
description: Start a corrective real assessment at a lower target grade in the chain rooted at root_attempt_id. The server validates that this grade is strictly below the preceding grade and that the chain remains within its existing deadline and quota. chain_deadline is derived from the root attempt and is never supplied by the client.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- kind
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
- root_attempt_id
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- corrective
|
||||
description: Continue the existing real-assessment chain without reserving another root slot.
|
||||
specialization:
|
||||
$ref: '#/SpecializationCode'
|
||||
target_grade:
|
||||
$ref: '#/GradeCode'
|
||||
task_language:
|
||||
description: Task language of the attempt, or null when the bank offers no choice.
|
||||
oneOf:
|
||||
- $ref: '#/TaskLanguage'
|
||||
- type: 'null'
|
||||
root_attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
description: Root real-assessment attempt whose quota and deadline this attempt shares.
|
||||
AssessmentExpressAttemptCreate:
|
||||
type: object
|
||||
description: Explicitly start the short training run. It has no specialization or target grade, uses its separate demo policy, and does not consume a real-assessment attempt.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- kind
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
description: Explicitly request the training run; real modes cannot be selected by the client.
|
||||
AssessmentAttemptSessionStart:
|
||||
type: object
|
||||
description: Start or resume a work session using the attempt version last read by the candidate.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- expected_version
|
||||
properties:
|
||||
expected_version:
|
||||
$ref: '#/AssessmentAttemptVersion'
|
||||
AssessmentItemId:
|
||||
type: string
|
||||
format: uuid
|
||||
@@ -547,8 +631,20 @@ AssessmentPractice:
|
||||
- $ref: '#/PracticeFailureReason'
|
||||
- type: 'null'
|
||||
AssessmentAttempt:
|
||||
description: Candidate view of a real assessment, a corrective real assessment, or a demo_express training run. The variants keep training output separate from qualification attempts.
|
||||
oneOf:
|
||||
- $ref: '#/AssessmentQualifiedAttempt'
|
||||
- $ref: '#/AssessmentCorrectiveAttempt'
|
||||
- $ref: '#/AssessmentExpressAttempt'
|
||||
discriminator:
|
||||
propertyName: kind
|
||||
mapping:
|
||||
root: '#/AssessmentQualifiedAttempt'
|
||||
corrective: '#/AssessmentCorrectiveAttempt'
|
||||
demo_express: '#/AssessmentExpressAttempt'
|
||||
AssessmentAttemptCommon:
|
||||
type: object
|
||||
description: Assessment attempt of the current candidate for one category, a specialization and a target grade. It shows the state, the fixed versions, the server deadline `expires_at` from the policy version, which the client clock never extends, the session limit, the progress, the item to answer now, and the practices. It never contains answer keys, the correctness of submitted answers, scores of single items, family or variant identifiers, seeds, hidden checks, or anti-cheat signals.
|
||||
description: Common state of an assessment attempt. Real assessments have a specialization and target grade; demo_express has neither. The attempt shows its fixed versions, server deadlines, session limit, progress, current item, and practices. It never contains answer keys, answer correctness, item scores, family or variant identifiers, seeds, hidden checks, or anti-cheat signals.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- id
|
||||
@@ -556,6 +652,7 @@ AssessmentAttempt:
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
- kind
|
||||
- mode
|
||||
- state
|
||||
- versions
|
||||
@@ -574,14 +671,35 @@ AssessmentAttempt:
|
||||
version:
|
||||
$ref: '#/AssessmentAttemptVersion'
|
||||
specialization:
|
||||
$ref: '#/SpecializationCode'
|
||||
description: Null only for demo_express, which has no qualification category.
|
||||
oneOf:
|
||||
- $ref: '#/SpecializationCode'
|
||||
- type: 'null'
|
||||
target_grade:
|
||||
$ref: '#/GradeCode'
|
||||
description: Null only for demo_express, which has no qualification category.
|
||||
oneOf:
|
||||
- $ref: '#/GradeCode'
|
||||
- type: 'null'
|
||||
task_language:
|
||||
description: Task language of the attempt, or null when the bank offers no choice.
|
||||
description: Task language of the attempt, or null when none is selected.
|
||||
oneOf:
|
||||
- $ref: '#/TaskLanguage'
|
||||
- type: 'null'
|
||||
kind:
|
||||
$ref: '#/AssessmentAttemptKind'
|
||||
root_attempt_id:
|
||||
description: Present only for a corrective real assessment. It identifies the root attempt whose quota and chain deadline this attempt shares.
|
||||
oneOf:
|
||||
- type: string
|
||||
format: uuid
|
||||
- type: 'null'
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
description: Present only for a corrective real assessment. It is the immutable deadline derived from the root attempt and is not extended by a lower target grade.
|
||||
oneOf:
|
||||
- $ref: '#/Timestamp'
|
||||
- type: 'null'
|
||||
readOnly: true
|
||||
mode:
|
||||
$ref: '#/AssessmentMode'
|
||||
state:
|
||||
@@ -591,9 +709,10 @@ AssessmentAttempt:
|
||||
started_at:
|
||||
$ref: '#/Timestamp'
|
||||
expires_at:
|
||||
description: Server deadline. For demo_express it is 180 to 300 seconds after started_at; for a corrective assessment it does not exceed chain_deadline.
|
||||
$ref: '#/Timestamp'
|
||||
sessions:
|
||||
description: Session limit of the attempt, or null when its policy version defines none.
|
||||
description: Session limit of the attempt, or null when its policy defines none.
|
||||
oneOf:
|
||||
- $ref: '#/AssessmentSessions'
|
||||
- type: 'null'
|
||||
@@ -612,9 +731,103 @@ AssessmentAttempt:
|
||||
practices:
|
||||
type: array
|
||||
maxItems: 5
|
||||
description: 'Practices in the order they were assigned: the `main` practice first, then an `additional` practice once finalize offers it. Empty only for a demo_basic attempt while code practice is disabled until the sandbox isolation is verified; its result then lists the `practice_not_included` limitation. A list rather than one field leaves room for more practices without a breaking change.'
|
||||
description: Practices in the order assigned by the mode policy. The list exposes verdicts only after submission.
|
||||
items:
|
||||
$ref: '#/AssessmentPractice'
|
||||
AssessmentQualifiedAttempt:
|
||||
allOf:
|
||||
- $ref: '#/AssessmentAttemptCommon'
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
specialization:
|
||||
$ref: '#/SpecializationCode'
|
||||
target_grade:
|
||||
$ref: '#/GradeCode'
|
||||
root_attempt_id:
|
||||
type: 'null'
|
||||
description: Root attempts have no parent attempt.
|
||||
chain_deadline:
|
||||
type: 'null'
|
||||
description: A root attempt has no correction-chain deadline.
|
||||
required:
|
||||
- kind
|
||||
- mode
|
||||
- specialization
|
||||
- target_grade
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
AssessmentCorrectiveAttempt:
|
||||
allOf:
|
||||
- $ref: '#/AssessmentAttemptCommon'
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- corrective
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
specialization:
|
||||
$ref: '#/SpecializationCode'
|
||||
target_grade:
|
||||
$ref: '#/GradeCode'
|
||||
root_attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
$ref: '#/Timestamp'
|
||||
readOnly: true
|
||||
required:
|
||||
- kind
|
||||
- mode
|
||||
- specialization
|
||||
- target_grade
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
AssessmentExpressAttempt:
|
||||
allOf:
|
||||
- $ref: '#/AssessmentAttemptCommon'
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
specialization:
|
||||
type: 'null'
|
||||
target_grade:
|
||||
type: 'null'
|
||||
task_language:
|
||||
type: 'null'
|
||||
root_attempt_id:
|
||||
type: 'null'
|
||||
chain_deadline:
|
||||
type: 'null'
|
||||
required:
|
||||
- kind
|
||||
- mode
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
ChoiceAnswer:
|
||||
type: object
|
||||
description: 'Selected options of a choice item: exactly one unless the item allows several. Two answers are equal when they select the same set of options, in any order.'
|
||||
@@ -797,16 +1010,16 @@ AssessmentOutcome:
|
||||
- not_determined
|
||||
AssessmentNotDeterminedReason:
|
||||
type: string
|
||||
description: 'Why an attempt gives no decision, and whether it counts against the retry rules.
|
||||
description: 'Why an attempt gives no decision. One root quota slot is reserved when a real root attempt starts; corrective checks in its chain do not reserve another slot.
|
||||
|
||||
|
||||
- expired: the time or session limit passed before the candidate finished the item part. It is the candidate''s attempt: it counts toward the attempt limit and starts the same-grade retry interval.
|
||||
- expired: the time or session limit passed before the candidate finished the item part. Retry timing follows the recorded policy; a correction uses the existing root slot and does not reset the chain deadline or 30/90-day timers.
|
||||
|
||||
- practice_incomplete: the item part was done, but the candidate did not submit the main practice before the limit. It counts like `expired`.
|
||||
- practice_incomplete: the item part was done, but the candidate did not submit the main practice before the limit. Retry timing follows the recorded policy; a correction uses the existing root slot and does not reset the chain deadline or 30/90-day timers.
|
||||
|
||||
- insufficient_bank: the bank could not supply the required coverage within the limit. It is a platform limitation: it never counts toward the attempt limit and starts no retry interval.
|
||||
- insufficient_bank: the bank could not supply required coverage. A preflight refusal creates no attempt or root slot; a bank failure in an existing chain does not create a free new chain or another root slot.
|
||||
|
||||
- sandbox_unavailable: the latest submission of a required or additional practice ended `failed` because of the sandbox infrastructure, and the limit passed before a verdict. It is a platform fault: it never counts toward the attempt limit and starts no retry interval.'
|
||||
- sandbox_unavailable: the latest submission of a required or additional practice ended `failed` because of the sandbox infrastructure, and the limit passed before a verdict. It is a platform fault and does not create a new root slot or a free chain.'
|
||||
enum:
|
||||
- expired
|
||||
- practice_incomplete
|
||||
@@ -826,7 +1039,7 @@ CalibrationStatus:
|
||||
- calibrated
|
||||
AssessmentLimitation:
|
||||
type: string
|
||||
description: 'Known limitation of the method behind a result, shown with the result.
|
||||
description: 'Known limitation of the method behind a real-assessment result, shown with the result.
|
||||
|
||||
|
||||
- uncalibrated_thresholds: the thresholds are not yet validated on a pilot.
|
||||
@@ -837,7 +1050,6 @@ AssessmentLimitation:
|
||||
|
||||
- unproctored: the attempt was taken online without supervision.
|
||||
|
||||
|
||||
Adding a value is a contract change.'
|
||||
enum:
|
||||
- uncalibrated_thresholds
|
||||
@@ -990,14 +1202,27 @@ AssessmentNextStep:
|
||||
- $ref: '#/Timestamp'
|
||||
- type: 'null'
|
||||
AssessmentResult:
|
||||
description: Immutable result of a terminal assessment attempt. The result shape distinguishes real grade decisions from demo_express training output.
|
||||
oneOf:
|
||||
- $ref: '#/AssessmentQualifiedResult'
|
||||
- $ref: '#/AssessmentCorrectiveResult'
|
||||
- $ref: '#/AssessmentExpressResult'
|
||||
discriminator:
|
||||
propertyName: kind
|
||||
mapping:
|
||||
root: '#/AssessmentQualifiedResult'
|
||||
corrective: '#/AssessmentCorrectiveResult'
|
||||
demo_express: '#/AssessmentExpressResult'
|
||||
AssessmentRealResultCommon:
|
||||
type: object
|
||||
description: 'Immutable result of a terminal attempt, visible only to its candidate. It records the method, the versions, the decision, its uncertainty, and its limitations; a later policy, bank, or algorithm version never changes it. It never contains answers, per-item correctness, answer keys, seeds, hidden checks, or anti-cheat signals. Fields that the method does not compute are null, never zero: demo_basic has null `uncertainty` and `strength`, and adaptive has null `basic_score`.'
|
||||
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
|
||||
@@ -1022,12 +1247,33 @@ AssessmentResult:
|
||||
$ref: '#/SpecializationCode'
|
||||
target_grade:
|
||||
$ref: '#/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: '#/Timestamp'
|
||||
- type: 'null'
|
||||
readOnly: true
|
||||
task_language:
|
||||
oneOf:
|
||||
- $ref: '#/TaskLanguage'
|
||||
- type: 'null'
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
- corrective
|
||||
mode:
|
||||
$ref: '#/AssessmentMode'
|
||||
type: string
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
versions:
|
||||
$ref: '#/AssessmentVersions'
|
||||
outcome:
|
||||
@@ -1091,6 +1337,148 @@ AssessmentResult:
|
||||
$ref: '#/AssessmentNextStep'
|
||||
decided_at:
|
||||
$ref: '#/Timestamp'
|
||||
AssessmentQualifiedResult:
|
||||
description: Result of a real assessment that is not a corrective attempt. The correction-chain fields are explicitly null.
|
||||
allOf:
|
||||
- $ref: '#/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: '#/AssessmentRealResultCommon'
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- corrective
|
||||
root_attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
$ref: '#/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.
|
||||
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
|
||||
- summary
|
||||
- decided_at
|
||||
properties:
|
||||
attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
specialization:
|
||||
type: 'null'
|
||||
description: Express training does not assess a specialization.
|
||||
target_grade:
|
||||
type: 'null'
|
||||
description: Express training does not assess a target grade.
|
||||
task_language:
|
||||
type: 'null'
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
versions:
|
||||
$ref: '#/AssessmentVersions'
|
||||
outcome:
|
||||
type: string
|
||||
enum:
|
||||
- demonstration
|
||||
not_determined_reason:
|
||||
type: 'null'
|
||||
confirmed_grade:
|
||||
type: 'null'
|
||||
description: Express training never confirms a grade.
|
||||
previous_confirmed_grade:
|
||||
type: 'null'
|
||||
strength:
|
||||
type: 'null'
|
||||
calibration_status:
|
||||
type: string
|
||||
enum:
|
||||
- uncalibrated
|
||||
limitations:
|
||||
type: array
|
||||
minItems: 1
|
||||
maxItems: 1
|
||||
items:
|
||||
type: string
|
||||
enum:
|
||||
- demonstration_only
|
||||
uncertainty:
|
||||
type: 'null'
|
||||
description: Express training computes no ability estimate or percentile.
|
||||
basic_score:
|
||||
type: 'null'
|
||||
practices:
|
||||
type: array
|
||||
maxItems: 0
|
||||
items:
|
||||
$ref: '#/AssessmentPracticeResult'
|
||||
gaps:
|
||||
type: array
|
||||
maxItems: 0
|
||||
items:
|
||||
$ref: '#/AssessmentGap'
|
||||
durations:
|
||||
$ref: '#/AssessmentDurations'
|
||||
next_steps:
|
||||
type: array
|
||||
maxItems: 0
|
||||
items:
|
||||
$ref: '#/AssessmentNextStep'
|
||||
summary:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 2000
|
||||
description: Short educational feedback about this training run.
|
||||
decided_at:
|
||||
$ref: '#/Timestamp'
|
||||
AssessmentGradeAvailabilityStatus:
|
||||
type: string
|
||||
description: 'Whether an attempt for the grade can start now.
|
||||
@@ -1127,9 +1515,9 @@ AssessmentGradeAvailability:
|
||||
status:
|
||||
$ref: '#/AssessmentGradeAvailabilityStatus'
|
||||
mode:
|
||||
description: Mode that an attempt would use, or null when the status is `insufficient_bank`.
|
||||
description: Real-assessment mode that the server would use, or null when the status is `insufficient_bank`. `demo_express` is not a category assessment and is never returned here.
|
||||
oneOf:
|
||||
- $ref: '#/AssessmentMode'
|
||||
- $ref: '#/AssessmentRealMode'
|
||||
- type: 'null'
|
||||
available_at:
|
||||
description: When the status is `cooldown`, the first time the attempt can start; otherwise null.
|
||||
|
||||
@@ -2,15 +2,30 @@ schemas:
|
||||
AssessmentMode:
|
||||
type: string
|
||||
description: |-
|
||||
Measurement method of an attempt. The server selects it from the published task bank of the category; the client never chooses it.
|
||||
Method of an assessment attempt. For a real assessment, the server selects demo_basic or adaptive from the published bank. A candidate may explicitly request demo_express, which uses a separate training policy and creates no qualification evidence.
|
||||
|
||||
- demo_basic: a fixed form of reviewed demo items scored by their keys against the pass mark of the versioned basic grading policy. It computes no ability estimate, standard error, or probability, so every uncertainty field of its result is null, its thresholds are uncalibrated, and its decision is binary: it never offers an additional practice.
|
||||
- adaptive: the adaptive test on task families with an ability estimate, its standard error, and the probability of reaching the grade threshold, as the versioned assessment policy defines them. A probability in the band below confirmation offers one additional practice in the same attempt.
|
||||
- demo_express: an interactive 3 to 5 minute training run under a separate policy. It does not assign a category or percentile, count toward the real-assessment quota, or create qualification evidence.
|
||||
|
||||
Adding a value is a contract change.
|
||||
enum:
|
||||
- demo_basic
|
||||
- demo_express
|
||||
- adaptive
|
||||
AssessmentRealMode:
|
||||
type: string
|
||||
description: Server-selected mode available to a real category assessment.
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
AssessmentAttemptKind:
|
||||
type: string
|
||||
description: Assessment track that distinguishes root, corrective, and training attempts.
|
||||
enum:
|
||||
- root
|
||||
- corrective
|
||||
- demo_express
|
||||
AssessmentAttemptVersion:
|
||||
type: integer
|
||||
format: int64
|
||||
@@ -19,12 +34,10 @@ schemas:
|
||||
Version of an assessment attempt. A new attempt has version 1, and each
|
||||
committed change advances it by exactly one: an accepted answer, a
|
||||
practice submission or resubmission, a verdict, a decision of
|
||||
finalize, a session start, and a server-side transition such as
|
||||
expiry or automatic finalization. A transition that the server applies
|
||||
when the attempt is read is committed before the response and also
|
||||
advances it. A rejected command and a repeat that stores nothing leave
|
||||
it unchanged. Commands send the version they read as
|
||||
`expected_version`.
|
||||
finalize, an explicit work-session start, and a server-side transition
|
||||
such as expiry or automatic finalization. Reads never change the
|
||||
attempt. A rejected command and a repeat that stores nothing leave it
|
||||
unchanged. Commands send the version they read as `expected_version`.
|
||||
examples:
|
||||
- 4
|
||||
AssessmentAttemptState:
|
||||
@@ -40,7 +53,7 @@ schemas:
|
||||
- expired: the time or session limit passed before the candidate finished the required parts. The result is available and confirms no grade.
|
||||
- insufficient_bank: the published bank could not supply the items required for coverage within the limit, and the attempt ended without a confirmed grade instead of repeating families. The result is available.
|
||||
|
||||
When `expires_at` passes or the session limit is reached, a practice submitted before that and still `pending` is graded first. Then the server decides without another command: `ready_to_finalize` is finalized and becomes `completed`; `additional_practice_pending` with the additional practice not submitted is finalized as declined and becomes `completed` with `not_confirmed`; `in_progress` and `practice_pending` become `expired`, with the result reason `expired` or `practice_incomplete`; and when the latest submission of a practice ended `failed`, the attempt becomes `expired` with the reason `sandbox_unavailable`, which is not the candidate's fault. `completed`, `expired`, and `insufficient_bank` are terminal and accept no command except the repeat of finalize described on FinalizeMyAssessmentAttempt. Adding a value is a contract change.
|
||||
When `expires_at` passes or the session limit is reached, a read returns the stored state without changing it. A command or background transition commits any due outcome and advances the version. A practice submitted before the limit and still `pending` is graded first. Then `ready_to_finalize` becomes `completed`; `additional_practice_pending` with the additional practice not submitted is finalized as declined and becomes `completed` with `not_confirmed`; `in_progress` and `practice_pending` become `expired`, with the result reason `expired` or `practice_incomplete`; and when the latest submission of a practice ended `failed`, the attempt becomes `expired` with the reason `sandbox_unavailable`, which is not the candidate's fault. `completed`, `expired`, and `insufficient_bank` are terminal and accept no command except the repeat of finalize described on FinalizeMyAssessmentAttempt. Adding a value is a contract change.
|
||||
enum:
|
||||
- in_progress
|
||||
- practice_pending
|
||||
@@ -87,7 +100,7 @@ schemas:
|
||||
description: |-
|
||||
Work sessions of the attempt, as the policy version limits them, for example two sessions within the time limit.
|
||||
|
||||
A session starts with the creation of the attempt or, after the previous session ended, with the next GetMyAssessmentAttempt or command on the active attempt. It ends after `idle_timeout_seconds` without such a request. A request that would start a session beyond `max_sessions` starts none: the server moves the attempt to `expired` and answers with it (a read) or with 409 state_conflict (a command). Reading a terminal attempt or a result never starts a session.
|
||||
Session 1 starts with attempt creation. After it ends due to `idle_timeout_seconds` of inactivity, the candidate explicitly starts or resumes work with StartMyAssessmentAttemptSession. GetMyAssessmentAttempt and GetMyAssessmentResult are read-only and never start a session. The session command checks the attempt deadline and `max_sessions`; when either limit has passed, it records the due terminal transition and returns the resulting attempt. Reads of terminal attempts do not change them.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- used
|
||||
@@ -112,18 +125,41 @@ schemas:
|
||||
maximum: 86400
|
||||
description: Inactivity after which the current session ends.
|
||||
AssessmentAttemptCreate:
|
||||
description: >-
|
||||
Start a real assessment, a corrective attempt in an existing chain, or
|
||||
an explicit training run. The required `kind` discriminator selects
|
||||
one of the three request shapes; `mode` remains server-selected for
|
||||
real assessments.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/AssessmentQualifiedAttemptCreate"
|
||||
- $ref: "#/schemas/AssessmentCorrectiveAttemptCreate"
|
||||
- $ref: "#/schemas/AssessmentExpressAttemptCreate"
|
||||
discriminator:
|
||||
propertyName: kind
|
||||
mapping:
|
||||
root: "#/schemas/AssessmentQualifiedAttemptCreate"
|
||||
corrective: "#/schemas/AssessmentCorrectiveAttemptCreate"
|
||||
demo_express: "#/schemas/AssessmentExpressAttemptCreate"
|
||||
AssessmentQualifiedAttemptCreate:
|
||||
type: object
|
||||
description: >-
|
||||
Category to assess: a specialization and the target grade, with the
|
||||
task language. The candidate comes from the session. The mode and
|
||||
versions are chosen by the server; unknown fields such as `mode`,
|
||||
`seed`, or `score` are rejected.
|
||||
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.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- kind
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
description: Start a real-assessment chain and reserve one root quota slot.
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
target_grade:
|
||||
@@ -137,6 +173,64 @@ schemas:
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/TaskLanguage"
|
||||
- type: "null"
|
||||
AssessmentCorrectiveAttemptCreate:
|
||||
type: object
|
||||
description: >-
|
||||
Start a corrective real assessment at a lower target grade in the
|
||||
chain rooted at root_attempt_id. The server validates that this grade
|
||||
is strictly below the preceding grade and that the chain remains
|
||||
within its existing deadline and quota. chain_deadline is derived
|
||||
from the root attempt and is never supplied by the client.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- kind
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
- root_attempt_id
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- corrective
|
||||
description: Continue the existing real-assessment chain without reserving another root slot.
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
target_grade:
|
||||
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
task_language:
|
||||
description: Task language of the attempt, or null when the bank offers no choice.
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/TaskLanguage"
|
||||
- type: "null"
|
||||
root_attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
description: Root real-assessment attempt whose quota and deadline this attempt shares.
|
||||
AssessmentExpressAttemptCreate:
|
||||
type: object
|
||||
description: >-
|
||||
Explicitly start the short training run. It has no specialization or
|
||||
target grade, uses its separate demo policy, and does not consume a
|
||||
real-assessment attempt.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- kind
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
description: Explicitly request the training run; real modes cannot be selected by the client.
|
||||
AssessmentAttemptSessionStart:
|
||||
type: object
|
||||
description: Start or resume a work session using the attempt version last read by the candidate.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- expected_version
|
||||
properties:
|
||||
expected_version:
|
||||
$ref: "#/schemas/AssessmentAttemptVersion"
|
||||
AssessmentItemId:
|
||||
type: string
|
||||
format: uuid
|
||||
@@ -593,16 +687,29 @@ schemas:
|
||||
- $ref: "#/schemas/PracticeFailureReason"
|
||||
- type: "null"
|
||||
AssessmentAttempt:
|
||||
description: >-
|
||||
Candidate view of a real assessment, a corrective real assessment, or
|
||||
a demo_express training run. The variants keep training output separate
|
||||
from qualification attempts.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/AssessmentQualifiedAttempt"
|
||||
- $ref: "#/schemas/AssessmentCorrectiveAttempt"
|
||||
- $ref: "#/schemas/AssessmentExpressAttempt"
|
||||
discriminator:
|
||||
propertyName: kind
|
||||
mapping:
|
||||
root: "#/schemas/AssessmentQualifiedAttempt"
|
||||
corrective: "#/schemas/AssessmentCorrectiveAttempt"
|
||||
demo_express: "#/schemas/AssessmentExpressAttempt"
|
||||
AssessmentAttemptCommon:
|
||||
type: object
|
||||
description: >-
|
||||
Assessment attempt of the current candidate for one category, a
|
||||
specialization and a target grade. It shows the state, the fixed
|
||||
versions, the server deadline `expires_at` from the policy version,
|
||||
which the client clock never extends, the session limit, the
|
||||
progress, the item
|
||||
to answer now, and the practices. It never contains answer keys, the
|
||||
correctness of submitted answers, scores of single items, family or
|
||||
variant identifiers, seeds, hidden checks, or anti-cheat signals.
|
||||
Common state of an assessment attempt. Real assessments have a
|
||||
specialization and target grade; demo_express has neither. The
|
||||
attempt shows its fixed versions, server deadlines, session limit,
|
||||
progress, current item, and practices. It never contains answer keys,
|
||||
answer correctness, item scores, family or variant identifiers,
|
||||
seeds, hidden checks, or anti-cheat signals.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- id
|
||||
@@ -610,6 +717,7 @@ schemas:
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
- kind
|
||||
- mode
|
||||
- state
|
||||
- versions
|
||||
@@ -628,14 +736,40 @@ schemas:
|
||||
version:
|
||||
$ref: "#/schemas/AssessmentAttemptVersion"
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
description: Null only for demo_express, which has no qualification category.
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
- type: "null"
|
||||
target_grade:
|
||||
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
description: Null only for demo_express, which has no qualification category.
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
- type: "null"
|
||||
task_language:
|
||||
description: Task language of the attempt, or null when the bank offers no choice.
|
||||
description: Task language of the attempt, or null when none is selected.
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/TaskLanguage"
|
||||
- type: "null"
|
||||
kind:
|
||||
$ref: "#/schemas/AssessmentAttemptKind"
|
||||
root_attempt_id:
|
||||
description: >-
|
||||
Present only for a corrective real assessment. It identifies the
|
||||
root attempt whose quota and chain deadline this attempt shares.
|
||||
oneOf:
|
||||
- type: string
|
||||
format: uuid
|
||||
- type: "null"
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
description: >-
|
||||
Present only for a corrective real assessment. It is the immutable
|
||||
deadline derived from the root attempt and is not extended by a
|
||||
lower target grade.
|
||||
oneOf:
|
||||
- $ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
- type: "null"
|
||||
readOnly: true
|
||||
mode:
|
||||
$ref: "#/schemas/AssessmentMode"
|
||||
state:
|
||||
@@ -645,18 +779,18 @@ schemas:
|
||||
started_at:
|
||||
$ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
expires_at:
|
||||
description: >-
|
||||
Server deadline. For demo_express it is 180 to 300 seconds after
|
||||
started_at; for a corrective assessment it does not exceed
|
||||
chain_deadline.
|
||||
$ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
sessions:
|
||||
description: >-
|
||||
Session limit of the attempt, or null when its policy version
|
||||
defines none.
|
||||
description: Session limit of the attempt, or null when its policy defines none.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/AssessmentSessions"
|
||||
- type: "null"
|
||||
finished_at:
|
||||
description: >-
|
||||
Time the attempt reached a terminal state, or null while it is
|
||||
active.
|
||||
description: Time the attempt reached a terminal state, or null while it is active.
|
||||
oneOf:
|
||||
- $ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
- type: "null"
|
||||
@@ -675,14 +809,104 @@ schemas:
|
||||
type: array
|
||||
maxItems: 5
|
||||
description: >-
|
||||
Practices in the order they were assigned: the `main` practice
|
||||
first, then an `additional` practice once finalize offers it. Empty
|
||||
only for a demo_basic attempt while code practice is disabled until
|
||||
the sandbox isolation is verified; its result then lists the
|
||||
`practice_not_included` limitation. A list rather than one field
|
||||
leaves room for more practices without a breaking change.
|
||||
Practices in the order assigned by the mode policy. The list
|
||||
exposes verdicts only after submission.
|
||||
items:
|
||||
$ref: "#/schemas/AssessmentPractice"
|
||||
AssessmentQualifiedAttempt:
|
||||
allOf:
|
||||
- $ref: "#/schemas/AssessmentAttemptCommon"
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
target_grade:
|
||||
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
root_attempt_id:
|
||||
type: "null"
|
||||
description: Root attempts have no parent attempt.
|
||||
chain_deadline:
|
||||
type: "null"
|
||||
description: A root attempt has no correction-chain deadline.
|
||||
required:
|
||||
- kind
|
||||
- mode
|
||||
- specialization
|
||||
- target_grade
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
AssessmentCorrectiveAttempt:
|
||||
allOf:
|
||||
- $ref: "#/schemas/AssessmentAttemptCommon"
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- corrective
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
target_grade:
|
||||
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
root_attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
$ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
readOnly: true
|
||||
required:
|
||||
- kind
|
||||
- mode
|
||||
- specialization
|
||||
- target_grade
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
AssessmentExpressAttempt:
|
||||
allOf:
|
||||
- $ref: "#/schemas/AssessmentAttemptCommon"
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
specialization:
|
||||
type: "null"
|
||||
target_grade:
|
||||
type: "null"
|
||||
task_language:
|
||||
type: "null"
|
||||
root_attempt_id:
|
||||
type: "null"
|
||||
chain_deadline:
|
||||
type: "null"
|
||||
required:
|
||||
- kind
|
||||
- mode
|
||||
- specialization
|
||||
- target_grade
|
||||
- task_language
|
||||
- root_attempt_id
|
||||
- chain_deadline
|
||||
ChoiceAnswer:
|
||||
type: object
|
||||
description: >-
|
||||
@@ -894,12 +1118,12 @@ schemas:
|
||||
AssessmentNotDeterminedReason:
|
||||
type: string
|
||||
description: |-
|
||||
Why an attempt gives no decision, and whether it counts against the retry rules.
|
||||
Why an attempt gives no decision. One root quota slot is reserved when a real root attempt starts; corrective checks in its chain do not reserve another slot.
|
||||
|
||||
- expired: the time or session limit passed before the candidate finished the item part. It is the candidate's attempt: it counts toward the attempt limit and starts the same-grade retry interval.
|
||||
- practice_incomplete: the item part was done, but the candidate did not submit the main practice before the limit. It counts like `expired`.
|
||||
- insufficient_bank: the bank could not supply the required coverage within the limit. It is a platform limitation: it never counts toward the attempt limit and starts no retry interval.
|
||||
- sandbox_unavailable: the latest submission of a required or additional practice ended `failed` because of the sandbox infrastructure, and the limit passed before a verdict. It is a platform fault: it never counts toward the attempt limit and starts no retry interval.
|
||||
- expired: the time or session limit passed before the candidate finished the item part. Retry timing follows the recorded policy; a correction uses the existing root slot and does not reset the chain deadline or 30/90-day timers.
|
||||
- practice_incomplete: the item part was done, but the candidate did not submit the main practice before the limit. Retry timing follows the recorded policy; a correction uses the existing root slot and does not reset the chain deadline or 30/90-day timers.
|
||||
- insufficient_bank: the bank could not supply required coverage. A preflight refusal creates no attempt or root slot; a bank failure in an existing chain does not create a free new chain or another root slot.
|
||||
- sandbox_unavailable: the latest submission of a required or additional practice ended `failed` because of the sandbox infrastructure, and the limit passed before a verdict. It is a platform fault and does not create a new root slot or a free chain.
|
||||
enum:
|
||||
- expired
|
||||
- practice_incomplete
|
||||
@@ -926,13 +1150,12 @@ schemas:
|
||||
AssessmentLimitation:
|
||||
type: string
|
||||
description: |-
|
||||
Known limitation of the method behind a result, shown with the result.
|
||||
Known limitation of the method behind a real-assessment result, shown with the result.
|
||||
|
||||
- uncalibrated_thresholds: the thresholds are not yet validated on a pilot.
|
||||
- demo_bank: the result comes from the small reviewed demo bank.
|
||||
- practice_not_included: the attempt had no code practice because the sandbox was not enabled.
|
||||
- unproctored: the attempt was taken online without supervision.
|
||||
|
||||
Adding a value is a contract change.
|
||||
enum:
|
||||
- uncalibrated_thresholds
|
||||
@@ -1093,21 +1316,36 @@ schemas:
|
||||
- $ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
- type: "null"
|
||||
AssessmentResult:
|
||||
description: >-
|
||||
Immutable result of a terminal assessment attempt. The result shape
|
||||
distinguishes real grade decisions from demo_express training output.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/AssessmentQualifiedResult"
|
||||
- $ref: "#/schemas/AssessmentCorrectiveResult"
|
||||
- $ref: "#/schemas/AssessmentExpressResult"
|
||||
discriminator:
|
||||
propertyName: kind
|
||||
mapping:
|
||||
root: "#/schemas/AssessmentQualifiedResult"
|
||||
corrective: "#/schemas/AssessmentCorrectiveResult"
|
||||
demo_express: "#/schemas/AssessmentExpressResult"
|
||||
AssessmentRealResultCommon:
|
||||
type: object
|
||||
description: >-
|
||||
Immutable result of a terminal attempt, visible only to its candidate.
|
||||
It records the method, the versions, the decision, its uncertainty,
|
||||
and its limitations; a later policy, bank, or algorithm version never
|
||||
changes it. It never contains answers, per-item correctness, answer
|
||||
keys, seeds, hidden checks, or anti-cheat signals. Fields that the
|
||||
method does not compute are null, never zero: demo_basic has null
|
||||
`uncertainty` and `strength`, and adaptive has null `basic_score`.
|
||||
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
|
||||
@@ -1132,12 +1370,37 @@ schemas:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
target_grade:
|
||||
$ref: "./catalog_schemas.yml#/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: "./common_schemas.yml#/schemas/Timestamp"
|
||||
- type: "null"
|
||||
readOnly: true
|
||||
task_language:
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/TaskLanguage"
|
||||
- type: "null"
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- root
|
||||
- corrective
|
||||
mode:
|
||||
$ref: "#/schemas/AssessmentMode"
|
||||
type: string
|
||||
enum:
|
||||
- demo_basic
|
||||
- adaptive
|
||||
versions:
|
||||
$ref: "#/schemas/AssessmentVersions"
|
||||
outcome:
|
||||
@@ -1209,6 +1472,156 @@ schemas:
|
||||
$ref: "#/schemas/AssessmentNextStep"
|
||||
decided_at:
|
||||
$ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
AssessmentQualifiedResult:
|
||||
description: >-
|
||||
Result of a real assessment that is not a corrective attempt. The
|
||||
correction-chain fields are explicitly null.
|
||||
allOf:
|
||||
- $ref: "#/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: "#/schemas/AssessmentRealResultCommon"
|
||||
- type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- corrective
|
||||
root_attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
readOnly: true
|
||||
chain_deadline:
|
||||
$ref: "./common_schemas.yml#/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.
|
||||
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
|
||||
- summary
|
||||
- decided_at
|
||||
properties:
|
||||
attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
specialization:
|
||||
type: "null"
|
||||
description: Express training does not assess a specialization.
|
||||
target_grade:
|
||||
type: "null"
|
||||
description: Express training does not assess a target grade.
|
||||
task_language:
|
||||
type: "null"
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
mode:
|
||||
type: string
|
||||
enum:
|
||||
- demo_express
|
||||
versions:
|
||||
$ref: "#/schemas/AssessmentVersions"
|
||||
outcome:
|
||||
type: string
|
||||
enum:
|
||||
- demonstration
|
||||
not_determined_reason:
|
||||
type: "null"
|
||||
confirmed_grade:
|
||||
type: "null"
|
||||
description: Express training never confirms a grade.
|
||||
previous_confirmed_grade:
|
||||
type: "null"
|
||||
strength:
|
||||
type: "null"
|
||||
calibration_status:
|
||||
type: string
|
||||
enum:
|
||||
- uncalibrated
|
||||
limitations:
|
||||
type: array
|
||||
minItems: 1
|
||||
maxItems: 1
|
||||
items:
|
||||
type: string
|
||||
enum:
|
||||
- demonstration_only
|
||||
uncertainty:
|
||||
type: "null"
|
||||
description: Express training computes no ability estimate or percentile.
|
||||
basic_score:
|
||||
type: "null"
|
||||
practices:
|
||||
type: array
|
||||
maxItems: 0
|
||||
items:
|
||||
$ref: "#/schemas/AssessmentPracticeResult"
|
||||
gaps:
|
||||
type: array
|
||||
maxItems: 0
|
||||
items:
|
||||
$ref: "#/schemas/AssessmentGap"
|
||||
durations:
|
||||
$ref: "#/schemas/AssessmentDurations"
|
||||
next_steps:
|
||||
type: array
|
||||
maxItems: 0
|
||||
items:
|
||||
$ref: "#/schemas/AssessmentNextStep"
|
||||
summary:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 2000
|
||||
description: Short educational feedback about this training run.
|
||||
decided_at:
|
||||
$ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
AssessmentGradeAvailabilityStatus:
|
||||
type: string
|
||||
description: |-
|
||||
@@ -1247,10 +1660,11 @@ schemas:
|
||||
$ref: "#/schemas/AssessmentGradeAvailabilityStatus"
|
||||
mode:
|
||||
description: >-
|
||||
Mode that an attempt would use, or null when the status is
|
||||
`insufficient_bank`.
|
||||
Real-assessment mode that the server would use, or null when the
|
||||
status is `insufficient_bank`. `demo_express` is not a category
|
||||
assessment and is never returned here.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/AssessmentMode"
|
||||
- $ref: "#/schemas/AssessmentRealMode"
|
||||
- type: "null"
|
||||
available_at:
|
||||
description: When the status is `cooldown`, the first time the attempt can start; otherwise null.
|
||||
|
||||
+892
-227
File diff suppressed because it is too large.
Load diff
@@ -105,6 +105,8 @@ paths:
|
||||
$ref: ./routes/candidate_assessment_attempts.yml
|
||||
/api/v1/me/assessment-attempts/{attempt_id}:
|
||||
$ref: ./routes/candidate_assessment_attempt.yml
|
||||
/api/v1/me/assessment-attempts/{attempt_id}/sessions:
|
||||
$ref: ./routes/candidate_assessment_attempt_sessions.yml
|
||||
/api/v1/me/assessment-attempts/{attempt_id}/answers:
|
||||
$ref: ./routes/candidate_assessment_attempt_answers.yml
|
||||
/api/v1/me/assessment-attempts/{attempt_id}/finalize:
|
||||
@@ -353,6 +355,8 @@ components:
|
||||
$ref: ./components/schemas.yml#/AssessmentSessions
|
||||
AssessmentAttemptCreate:
|
||||
$ref: ./components/schemas.yml#/AssessmentAttemptCreate
|
||||
AssessmentAttemptSessionStart:
|
||||
$ref: ./components/schemas.yml#/AssessmentAttemptSessionStart
|
||||
AssessmentItemId:
|
||||
$ref: ./components/schemas.yml#/AssessmentItemId
|
||||
AssessmentOptionId:
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
get:
|
||||
operationId: GetMyAssessmentAttempt
|
||||
summary: Read or resume an assessment attempt of the current candidate.
|
||||
summary: Read an assessment attempt of the current candidate.
|
||||
description: |-
|
||||
Requires the session cookie of a candidate account. Returns the attempt with its state, fixed versions, time and session limits, progress, the item to answer now, and the practices. A reload, a retried request, or a new session returns the same item instance with the same text and option order; a lost connection never creates a new attempt. The response never says whether an earlier answer was correct and never contains answer keys, item scores, family or variant identifiers, seeds, hidden checks, or anti-cheat signals.
|
||||
Requires the session cookie of a candidate account. Returns the stored attempt projection with its state, fixed versions, time and session limits, progress, the item to answer now, and the practices. This GET is read-only: it never starts or resumes a work session, consumes session quota, advances the version, or commits expiry or finalization. A reload, a retried request, or a new session returns the same item instance with the same text and option order; a lost connection never creates a new attempt. After `idle_timeout_seconds`, the candidate explicitly starts or resumes work with StartMyAssessmentAttemptSession. The response never says whether an earlier answer was correct and never contains answer keys, item scores, family or variant identifiers, seeds, hidden checks, or anti-cheat signals.
|
||||
|
||||
Reading an active attempt counts as activity: after the previous session ended it starts the next session, and when that would exceed the session limit it starts none and the attempt becomes `expired`. Before it answers, the server commits any transition that is due, with a new version: past `expires_at`, `ready_to_finalize` becomes `completed`, an unsubmitted additional practice is declined and the attempt becomes `completed`, and the other active states become `expired`; a practice still `pending` is graded first. The client polls this operation while a practice is `pending`. Reading a terminal attempt changes nothing.
|
||||
When the deadline passes, this read still returns the stored state and deadline. A command or background transition commits the due outcome; if the stored state is still active, GetMyAssessmentResult answers 409 until that transition is committed. The client polls this operation while a practice is `pending`, but polling alone never changes attempt state.
|
||||
|
||||
The attempt must belong to the candidate of the session: an attempt of another candidate answers 404 not_found, the same as an unknown identifier, so identifiers cannot be probed. An employer account answers 403 forbidden; no operation gives an employer the answers or the attempt history.
|
||||
The attempt must belong to the candidate of the session: an attempt of another candidate answers 404 not_found, the same as an unknown identifier, so identifiers cannot be probed. An employer account answers 403 forbidden; no operation gives an employer the answers, qualification evidence, or attempt history.
|
||||
security:
|
||||
- sessionCookie: []
|
||||
tags:
|
||||
|
||||
@@ -6,6 +6,8 @@ post:
|
||||
|
||||
The response is the attempt with the next item to answer. It never says whether the answer was correct. Items are answered in order and each answer is final.
|
||||
|
||||
A work command requires an active session. After `idle_timeout_seconds` of inactivity, the candidate calls StartMyAssessmentAttemptSession to explicitly start or resume a session; this answer command never starts one or consumes session quota. Reading the attempt or result is always read-only. A command that finds a due deadline transition may commit it before returning; a command that finds an expired idle session answers 409 until the candidate explicitly starts the next session.
|
||||
|
||||
Practice: an answer with format `practice` submits the solution of the main or the additional practice. It is stored, and the sandbox runs it asynchronously against the hidden check groups; the response shows the practice `pending`, and the client polls GetMyAssessmentAttempt for the verdict. Only the score 0-3 and the pass state of each group are shown, never the checks, error output, or seeds. Every outcome caused by the solution, such as a compilation error, a crash, or a time or memory limit, is a `finished` verdict. A `failed` verdict means only that the sandbox infrastructure could not run it; it consumes nothing. After `finished` the practice accepts no other solution, so hidden group results cannot be used to tune it. Debug runs of the candidate's own tests and the public examples are unlimited apart from the sandbox rate limit and never show hidden group results; they are planned as a separate operation.
|
||||
|
||||
Repeats and conflicts, per item:
|
||||
@@ -16,7 +18,7 @@ post:
|
||||
|
||||
Optimistic concurrency: `expected_version` must equal the current attempt version, otherwise the server answers 412 version_conflict and stores nothing; the client reads the attempt again. 412 is the repository status for a stale version, also used by SaveMyQuestionnaire; 409 state_conflict is kept for commands that the attempt state does not allow at the current version.
|
||||
|
||||
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden), the Idempotency-Key (422, 409 idempotency_in_progress, replay), the attempt (404 not_found for an unknown attempt or one of another candidate; the server first commits any due transition such as expiry, and the request counts as activity for the session limit), the repeat of the stored answer (200, skipped for a practice whose latest verdict is `failed`), the version (412), the state (409 state_conflict: the attempt is terminal, the item is not current, the item has a different answer, or the practice verdict is pending or finished), then the answer against the item (400 with a pointer such as `/answer/format` or `/answer/option_ids/0`). Following the Idempotency-Key convention, 404 and 409 state_conflict are stored under the key and replayed; 400, 412, 429, and 5xx are not. The rate limit can answer 429 with Retry-After before any check.
|
||||
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden), the Idempotency-Key (422, 409 idempotency_in_progress, replay), the attempt (404 not_found for an unknown attempt or one of another candidate; a due deadline transition may be committed, but this request never starts a work session), the repeat of the stored answer (200, skipped for a practice whose latest verdict is `failed`), the version (412), the state (409 state_conflict: the attempt is terminal, the work session ended, the item is not current, the item has a different answer, or the practice verdict is pending or finished), then the answer against the item (400 with a pointer such as `/answer/format` or `/answer/option_ids/0`). Following the Idempotency-Key convention, 404 and 409 state_conflict are stored under the key and replayed; 400, 412, 429, and 5xx are not. The rate limit can answer 429 with Retry-After before any check.
|
||||
security:
|
||||
- sessionCookie: []
|
||||
sessionCsrf: []
|
||||
|
||||
@@ -4,16 +4,18 @@ post:
|
||||
description: |-
|
||||
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. Finalize always answers with the attempt, never with the result: the decision may continue the attempt, and one response type keeps that unambiguous for every generated client. When the returned state is `completed`, the client reads the result with GetMyAssessmentResult.
|
||||
|
||||
Finalize is a work command and requires an active session. After `idle_timeout_seconds` of inactivity, the candidate first calls StartMyAssessmentAttemptSession with the latest `expected_version`; finalize never starts a session. GET attempt and result operations do not change state. A command or background transition may commit a due deadline outcome.
|
||||
|
||||
Allowed in `ready_to_finalize`, where every required part is done, and in `additional_practice_pending` while the additional practice is `not_started` or `failed`. The server decides from the stored answers with the policy, bank, and algorithm versions fixed at creation:
|
||||
- `demo_basic` compares the raw score with the pass mark of the recorded basic grading policy and completes the attempt. It never offers an additional practice.
|
||||
- `adaptive` applies the probability bands of the recorded policy. Confirmation or rejection completes the attempt. A probability in the band below confirmation (0.50 to below 0.80 in the demo policy) on the first finalize, while time and sessions remain, completes nothing: the server appends an `additional` practice, moves the attempt to `additional_practice_pending`, and answers 200 with it. The additional practice continues the same attempt, keeps its limits, and spends no new attempt. The next finalize, after its verdict, decides with the added evidence; a probability still below confirmation gives `not_confirmed`. An attempt offers at most one additional practice.
|
||||
- Finalize in `additional_practice_pending` declines the offer and gives `not_confirmed` with the current evidence. A retry of the first finalize with a new key cannot decline by accident: it carries the version from before the offer and answers 412.
|
||||
|
||||
A failed attempt never lowers a confirmed grade. Repeats return the same outcome: a retry with the same Idempotency-Key replays the stored response, and a finalize of a `completed` attempt answers 200 with that attempt even with a new key or an older `expected_version`; the result is computed once. When `expires_at` passes or the session limit is reached, the server finalizes `ready_to_finalize` itself, without offering an additional practice, so a finalize after that also answers 200 with the `completed` attempt.
|
||||
A failed attempt never lowers a confirmed grade. Repeats return the same outcome: a retry with the same Idempotency-Key replays the stored response, and a finalize of a `completed` attempt answers 200 with that attempt even with a new key or an older `expected_version`; the result is computed once. When `expires_at` passes or the session limit is reached, a command or background transition finalizes `ready_to_finalize` without offering an additional practice. A finalize after this transition answers 200 with the stored `completed` attempt; a GET never commits it.
|
||||
|
||||
An attempt in `in_progress` or `practice_pending`, one with a practice verdict `pending`, or one that ended as `expired` or `insufficient_bank` answers 409 state_conflict. The problem does not list what is unfinished; the attempt shows it in `state`, `progress`, `current_item`, and `practices`. A stale `expected_version` answers 412 version_conflict, the repository status for a stale version.
|
||||
|
||||
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden), the Idempotency-Key (422, 409 idempotency_in_progress, replay), the attempt (404 not_found, after any due transition), the repeat on a `completed` attempt (200), the version (412), then the state (409 state_conflict). 404 and 409 state_conflict are stored under the key; 400 and 412 are not.
|
||||
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden), the Idempotency-Key (422, 409 idempotency_in_progress, replay), the attempt (404 not_found; a due deadline transition may be committed, but this request never starts a work session), the repeat on a `completed` attempt (200), the version (412), then the state (409 state_conflict, including an ended idle session). 404 and 409 state_conflict are stored under the key; 400 and 412 are not.
|
||||
security:
|
||||
- sessionCookie: []
|
||||
sessionCsrf: []
|
||||
|
||||
@@ -2,11 +2,11 @@ get:
|
||||
operationId: GetMyAssessmentResult
|
||||
summary: Read the result of an assessment attempt of the current candidate.
|
||||
description: |-
|
||||
Requires the session cookie of a candidate account. Returns the immutable result of a terminal attempt: `completed`, `expired`, or `insufficient_bank`. It records the mode, the policy, bank, and algorithm versions, the decision, the previously confirmed grade, the calibration status and limitations of the method, the uncertainty where the method computes it, the practice verdicts, the weak domains, the working time as a separate label, and the next steps that the server allows. A later policy, bank, or algorithm version never changes it.
|
||||
Requires the session cookie of a candidate account. Returns the immutable result of a terminal attempt: `completed`, `expired`, or `insufficient_bank`. A real result records the mode, policy, bank, and algorithm versions, decision, previously confirmed grade, calibration status and limitations, uncertainty where the method computes it, practice verdicts, weak domains, working time as a separate label, and allowed next steps. A corrective result also carries the root attempt and its immutable chain deadline. A `demo_express` result is a short educational summary only: it has no category, percentile, confirmed grade, score, uncertainty, or qualification evidence. A later policy, bank, or algorithm version never changes a result.
|
||||
|
||||
Fields that the method does not compute are null and never zero: a `demo_basic` result has null `uncertainty` and `strength`. The result never contains answers, per-item correctness, answer keys, seeds, hidden checks, or anti-cheat signals.
|
||||
|
||||
An active attempt answers 409 state_conflict; an attempt in `additional_practice_pending` is active and has no result yet. The server first commits any due transition, so an attempt past its limits is read as terminal. An attempt of another candidate answers 404 not_found, the same as an unknown identifier. An employer account answers 403 forbidden; employers see only the current category through a separate projection, never this result or the attempt history.
|
||||
An active attempt answers 409 state_conflict; an attempt in `additional_practice_pending` is active and has no result yet. This GET is read-only and never commits a due transition. If a deadline has passed but the due transition is not yet stored by a command or background worker, the attempt remains active for this read and answers 409; wait for the transition and retry. An attempt of another candidate answers 404 not_found, the same as an unknown identifier. An employer account answers 403 forbidden; employers see only the current category through a separate projection, never this result or the attempt history.
|
||||
security:
|
||||
- sessionCookie: []
|
||||
tags:
|
||||
@@ -32,6 +32,10 @@ get:
|
||||
$ref: ../components/examples.yml#/AssessmentNotConfirmedResult
|
||||
insufficient_bank:
|
||||
$ref: ../components/examples.yml#/AssessmentInsufficientBankResult
|
||||
corrective:
|
||||
$ref: ../components/examples.yml#/AssessmentCorrectiveResult
|
||||
demo_express:
|
||||
$ref: ../components/examples.yml#/AssessmentExpressResult
|
||||
"401":
|
||||
$ref: ../components/responses.yml#/Unauthenticated
|
||||
"403":
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
post:
|
||||
operationId: StartMyAssessmentAttemptSession
|
||||
summary: Start or resume a work session for the current candidate's attempt.
|
||||
description: |-
|
||||
Requires a candidate session, its CSRF token in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The body carries the attempt version the candidate last read. The server checks ownership, idempotency, and `expected_version` atomically before starting a session; a stale version answers 412 and consumes no session. Repeating the same key and body within 24 hours replays the stored response.
|
||||
|
||||
Creation starts session 1. After `idle_timeout_seconds` of inactivity, the candidate uses this command to start the next session. Calling it while a session is already active returns the current attempt without consuming another session or advancing its version. Starting a session advances the version once. The command cannot extend `expires_at` or `chain_deadline`.
|
||||
|
||||
If the attempt deadline or session budget has passed, this command commits the due terminal transition and returns the resulting attempt. A pending practice submitted before the limit is graded first. `GetMyAssessmentAttempt` and `GetMyAssessmentResult` remain read-only: they never start a session or commit a due transition. A background transition may persist a due outcome independently; after that, this command returns the stored terminal attempt without changing it.
|
||||
|
||||
The attempt must belong to the candidate of the session. An attempt of another candidate answers 404 not_found, the same as an unknown identifier. An employer account answers 403 forbidden; no operation gives an employer answers, qualification evidence, or attempt history.
|
||||
security:
|
||||
- sessionCookie: []
|
||||
sessionCsrf: []
|
||||
tags:
|
||||
- assessment
|
||||
parameters:
|
||||
- $ref: ../components/parameters.yml#/AssessmentAttemptId
|
||||
- $ref: ../components/parameters.yml#/IdempotencyKey
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yml#/AssessmentAttemptSessionStart
|
||||
example:
|
||||
expected_version: 7
|
||||
responses:
|
||||
"200":
|
||||
description: >-
|
||||
The current attempt after starting or resuming work, or after a due
|
||||
terminal transition was committed. A replay returns the stored body.
|
||||
headers:
|
||||
Cache-Control:
|
||||
$ref: ../components/headers.yml#/CacheControlNoStore
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas.yml#/AssessmentAttempt
|
||||
examples:
|
||||
resumed:
|
||||
$ref: ../components/examples.yml#/AssessmentAttemptResumed
|
||||
terminal:
|
||||
$ref: ../components/examples.yml#/AssessmentAttemptCompleted
|
||||
"400":
|
||||
$ref: ../components/responses.yml#/ValidationFailed
|
||||
"401":
|
||||
$ref: ../components/responses.yml#/Unauthenticated
|
||||
"403":
|
||||
$ref: ../components/responses.yml#/CsrfCheckFailedOrForbidden
|
||||
"404":
|
||||
$ref: ../components/responses.yml#/NotFound
|
||||
"409":
|
||||
$ref: ../components/responses.yml#/AssessmentCommandConflict
|
||||
"412":
|
||||
$ref: ../components/responses.yml#/AssessmentVersionConflict
|
||||
"422":
|
||||
$ref: ../components/responses.yml#/UnprocessableContent
|
||||
"429":
|
||||
$ref: ../components/responses.yml#/TooManyRequests
|
||||
default:
|
||||
$ref: ../components/responses.yml#/Problem
|
||||
@@ -1,12 +1,12 @@
|
||||
post:
|
||||
operationId: CreateMyAssessmentAttempt
|
||||
summary: Start an assessment attempt for a category of the current candidate.
|
||||
summary: Start a real, corrective, or training assessment attempt.
|
||||
description: |-
|
||||
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The body names the category, a specialization of the questionnaire and a target grade, and the task language. The server picks the mode from the published bank, `demo_basic` or `adaptive`, and fixes the policy, bank, and algorithm versions, the time and session limits, and the item variants in one transaction; the client never sends a mode, a seed, or a version. Creation starts session 1. The self-assessed grade only chooses where the test starts and adds no points. An adaptive retest starts from the previous ability estimate of the specialization, adjusted for the time passed, so a new attempt adds evidence instead of starting the measurement over.
|
||||
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The request is one of three disjoint shapes. A real assessment names a specialization, target grade, and task language; the server picks `demo_basic` or `adaptive` and fixes the policy, bank, and algorithm versions, limits, and item variants. A corrective real assessment also names `root_attempt_id`; the server verifies the lower-grade chain and reuses its fixed quota and deadline. The client never sends a real mode, a seed, a version, or a chain deadline. Explicit `demo_express` starts a separate interactive training run that lasts 3 to 5 minutes, has no category or target grade, and creates no qualification evidence or percentile. Creation starts session 1. The self-assessed grade only chooses where a real test starts and adds no points. An adaptive retest starts from the previous ability estimate of the specialization, adjusted for the time passed, so a new attempt adds evidence instead of starting the measurement over.
|
||||
|
||||
A specialization has at most one active attempt. A new attempt cannot start while one is active, during a retry or promotion interval or past the attempt limit of the policy, or when the bank is insufficient; each answers 409 state_conflict and creates nothing, not even a placeholder attempt. GetMyAssessmentAvailability tells which case applies and when a blocked attempt opens. After a failure, including the first test, a lower grade can be tested at once. An attempt that ends as `expired` or with the reason `practice_incomplete` counts toward the attempt limit and starts the same-grade retry interval; one that ends as `insufficient_bank` or with the reason `sandbox_unavailable` counts toward neither.
|
||||
A specialization has at most one active real attempt. A new root attempt cannot start while one is active, during a retry or promotion interval, past the root quota, or when the bank is insufficient; each such preflight refusal answers 409 state_conflict and creates nothing or consumes no root slot. Starting a root attempt reserves one slot in the root quota. A corrective attempt must reference its root, target a strictly lower grade not already attempted in that chain, and remain inside the root's fixed quota and deadline (72 hours from the root start in the current policy). It gets its own item, practice, and session limits, but spends no additional root slot and cannot reset the chain deadline or any 30/90-day timer. After a failure, including the first test, a lower grade can be tested at once. An expired or incomplete attempt does not create a free new chain; an insufficient bank or sandbox failure does not grant another root slot. `demo_express` is outside real-assessment availability, quotas, retry intervals, and qualification history.
|
||||
|
||||
The limits are server-side: `expires_at` and `sessions` come from the policy version, the client clock never extends them, and after them the attempt accepts no command. Within them the attempt is also bounded by the item limit of the policy.
|
||||
The limits are server-side: `expires_at` and `sessions` come from the policy version, the client clock never extends them, and after them the attempt accepts no work command. For a corrective attempt, `expires_at` is no later than the root's immutable `chain_deadline`. Within these limits the attempt is also bounded by the item limit of its policy.
|
||||
|
||||
Idempotency: a retry with the same key and body within 24 hours replays the stored 201 or 409 state_conflict response and creates nothing, so a lost response never creates a second attempt. A different body with the same key answers 422 idempotency_key_reused. 400 is never stored, so a corrected retry is evaluated again.
|
||||
|
||||
@@ -27,6 +27,18 @@ post:
|
||||
examples:
|
||||
backend_junior_go:
|
||||
$ref: ../components/examples.yml#/AssessmentAttemptCreateBackendJunior
|
||||
corrective_backend_junior_go:
|
||||
summary: Start a lower-grade assessment inside an existing correction chain
|
||||
value:
|
||||
kind: corrective
|
||||
specialization: backend
|
||||
target_grade: junior
|
||||
task_language: go
|
||||
root_attempt_id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
||||
demo_express:
|
||||
summary: Start a short educational training run
|
||||
value:
|
||||
kind: demo_express
|
||||
responses:
|
||||
"201":
|
||||
description: >-
|
||||
@@ -42,6 +54,10 @@ post:
|
||||
examples:
|
||||
demo_basic_created:
|
||||
$ref: ../components/examples.yml#/AssessmentAttemptCreated
|
||||
corrective_created:
|
||||
$ref: ../components/examples.yml#/AssessmentCorrectiveAttemptCreated
|
||||
demo_express_created:
|
||||
$ref: ../components/examples.yml#/AssessmentExpressAttemptCreated
|
||||
"400":
|
||||
$ref: ../components/responses.yml#/AssessmentAttemptCreateValidationFailed
|
||||
"401":
|
||||
|
||||
Reference in new issue
Block a user