feat(assessment): keep real attempts in fullscreen and protect the task text

This commit is contained in:
shira committed 2026-10-11 03:03:55 +03:00
1 parent 56dcf32f8c
commit efa41d5967
46 files changed
+1940 -72

No files matched your search

@@ -663,13 +663,20 @@ type Handler interface {
// address during the attempt, parallel sessions, and the comparison of answers to variants of the same
// task by candidates. The server stores for these only one-way keyed digests: it stores no network
// address, no session token, and no answer text. Client signals are stored only while the C3 consent
// is current. The client shows it before a real attempt starts and does not start the attempt until
// the notice is acknowledged.
// is current. The notice also lists the measures that the page applies during a real attempt:
// fullscreen mode, hiding the task when the candidate leaves fullscreen, the tab, or the window,
// blocking copy, selection, the context menu, drag, and printing of the task text, and blocking paste
// into answer fields (paste into the practice code editor is allowed and recorded as a signal with a
// size only). A watermark on the task page is announced as planned. These measures are applied by the
// client and never change a score, a category, or a quota. The client shows the notice before a real
// attempt starts and does not start the attempt until the notice is acknowledged.
//
// The acknowledgement is stored on the server per account and notice version, so it survives a reload
// and a new browser. It is not a consent and never changes C3: the signal operation still requires a
// current C3 consent, and an unacknowledged notice does not make that operation fail. The demo_express
// training mode collects no signals and needs no acknowledgement.
// and a new browser. An acknowledgement of an earlier version never counts for the current one: when
// the text gains a version, every candidate acknowledges it again. It is not a consent and never
// changes C3: the signal operation still requires a current C3 consent, and an unacknowledged notice
// does not make that operation fail. The demo_express training mode collects no signals and needs no
// acknowledgement.
//
// A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account or
// an unconfirmed email answers 403 forbidden.