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

@@ -813,6 +813,32 @@ schemas:
exposes verdicts only after submission.
items:
$ref: "#/schemas/AssessmentPractice"
watermark:
$ref: "#/schemas/AssessmentWatermark"
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`.
AssessmentQualifiedAttempt:
allOf:
- $ref: "#/schemas/AssessmentAttemptCommon"