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

@@ -318,6 +318,16 @@ type AssessmentAttemptPublicSnapshot struct {
IdleTimeout int32 `json:"idle_timeout_seconds"`
CurrentItem *AssessmentAttemptPublicItem `json:"current_item"`
Practices []AssessmentAttemptPublicPractice `json:"practices"`
// Watermark is set when a response is presented, never when it is stored:
// the retained idempotent response stays free of it, and every presentation
// derives the same value from the attempt.
Watermark *AssessmentAttemptPublicWatermark `json:"watermark,omitempty"`
}
// AssessmentAttemptPublicWatermark is the visible pseudonymous code that the
// task screen shows next to the time. It reveals nothing about the candidate.
type AssessmentAttemptPublicWatermark struct {
Code string `json:"code"`
}
// AssessmentAttemptPublicPractice is the empty, explicit practice projection