feat(assessment): watermark the task text of real attempts

This commit is contained in:
shira committed 2026-10-11 10:44:30 +03:00
1 parent 24b64d698a
commit c975a0d506
57 files changed
+2429 -92

No files matched your search

+15
View File
@@ -10572,6 +10572,19 @@ components:
- root
- corrective
- demo_express
AssessmentWatermark:
type: object
description: 'Visible mark of a real attempt. The client shows `code` with the current time as a faint tile over the task screen, so that a screenshot or a photo of the screen can be traced back to the attempt by an operator. The code is a keyed pseudonym derived on the server: it carries no name, contact, or identifier of the account, and it cannot be computed without the server secret. The task text of such an attempt also carries an invisible mark and interchangeable wordings chosen by the same secret; they change neither the meaning of a task nor its reference answer, and the client keeps the invisible characters out of the accessibility tree. Training runs (`demo_express`) carry no watermark. It is evidence for a manual review and an appeal, never an automatic decision.'
additionalProperties: false
required:
- code
properties:
code:
type: string
minLength: 10
maxLength: 11
pattern: ^[0-9A-HJKMNP-TV-Z]{5}-?[0-9A-HJKMNP-TV-Z]{5}$
description: Two groups of five symbols of Crockford base32, such as `7K3QD-9XM2T`.
AssessmentAttemptCommon:
type: object
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.
@@ -10664,6 +10677,8 @@ components:
description: Practices in the order assigned by the mode policy. The list exposes verdicts only after submission.
items:
$ref: '#/components/schemas/AssessmentPractice'
watermark:
$ref: '#/components/schemas/AssessmentWatermark'
AssessmentQualifiedAttempt:
allOf:
- $ref: '#/components/schemas/AssessmentAttemptCommon'