feat(assessment): record capture hints and keep one window per attempt
This commit is contained in:
1 parent
c975a0d506
commit
bb917bf62e
108 files changed
+6649
-139
No files matched your search
@@ -815,6 +815,28 @@ schemas:
|
||||
$ref: "#/schemas/AssessmentPractice"
|
||||
watermark:
|
||||
$ref: "#/schemas/AssessmentWatermark"
|
||||
AssessmentWorkSession:
|
||||
type: object
|
||||
description: >-
|
||||
The work session of a real attempt that the calling page holds. It is a
|
||||
one-page-at-a-time rule for the attempt, not a score or a signal, and it
|
||||
changes no result.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- held_until
|
||||
- renew_after_seconds
|
||||
properties:
|
||||
held_until:
|
||||
$ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
renew_after_seconds:
|
||||
type: integer
|
||||
format: int32
|
||||
minimum: 1
|
||||
maximum: 3600
|
||||
description: >-
|
||||
How often the page repeats the hold. It is well below the hold time,
|
||||
so a page whose timer is slowed down in the background still renews
|
||||
before its hold expires.
|
||||
AssessmentWatermark:
|
||||
type: object
|
||||
description: >-
|
||||
|
||||
@@ -8,6 +8,7 @@ schemas:
|
||||
- $ref: "#/schemas/AssessmentFocusLossSignal"
|
||||
- $ref: "#/schemas/AssessmentClipboardSignal"
|
||||
- $ref: "#/schemas/AssessmentFullscreenExitSignal"
|
||||
- $ref: "#/schemas/AssessmentCaptureSignal"
|
||||
discriminator:
|
||||
propertyName: kind
|
||||
mapping:
|
||||
@@ -16,6 +17,8 @@ schemas:
|
||||
paste: "#/schemas/AssessmentClipboardSignal"
|
||||
cut: "#/schemas/AssessmentClipboardSignal"
|
||||
fullscreen_exit: "#/schemas/AssessmentFullscreenExitSignal"
|
||||
screenshot_key: "#/schemas/AssessmentCaptureSignal"
|
||||
devtools_open: "#/schemas/AssessmentCaptureSignal"
|
||||
AssessmentFocusLossSignal:
|
||||
type: object
|
||||
additionalProperties: false
|
||||
@@ -88,6 +91,34 @@ schemas:
|
||||
$ref: "#/schemas/AssessmentItemId"
|
||||
occurred_at:
|
||||
$ref: "#/schemas/Timestamp"
|
||||
AssessmentCaptureSignal:
|
||||
type: object
|
||||
description: >-
|
||||
A hint that the screen may be captured or inspected. `screenshot_key`
|
||||
is a key or key combination that the browser saw and that usually takes
|
||||
a screenshot (PrintScreen, Cmd+Shift+3, 4, or 5 on macOS, Win+Shift+S);
|
||||
`devtools_open` is the result of a heuristic that guesses that the
|
||||
developer tools are open (a docked panel changes the window size, or the
|
||||
console reads an object). Both are weak: a browser does not see every
|
||||
screenshot, an operating system can take one without a key the page
|
||||
sees, a phone photo is invisible to the page, and the heuristic gives
|
||||
false positives. They lead to attention in a manual review at most,
|
||||
never to a score change, and they carry no measurement.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- kind
|
||||
- item_instance_id
|
||||
- occurred_at
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
enum:
|
||||
- screenshot_key
|
||||
- devtools_open
|
||||
item_instance_id:
|
||||
$ref: "#/schemas/AssessmentItemId"
|
||||
occurred_at:
|
||||
$ref: "#/schemas/Timestamp"
|
||||
AssessmentSignalBatch:
|
||||
type: object
|
||||
description: >-
|
||||
|
||||
Reference in new issue
Block a user