All files / web/src/lib/curriculum/timing constants.ts

100% Statements 18/18
100% Branches 0/0
100% Functions 0/0
100% Lines 18/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 192x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x  
/**
 * Timing-integrity constants shared across the curriculum timing helpers.
 *
 * This module is the single source of truth for the maximum plausible
 * response-time cap. It has no runtime dependencies and is client-safe.
 */
 
/**
 * Maximum possible auto-pause clamp (5 minutes).
 *
 * Any measured response time that exceeds this value provably outran the
 * largest auto-pause the client could ever apply, so it is treated as a
 * Tier-1 (provably broken) sample. Also used as the server-side backstop cap.
 *
 * The auto-pause calculator (`components/practice/autoPauseCalculator.ts`)
 * re-exports this as `MAX_PAUSE_THRESHOLD_MS` — one source of truth, no drift.
 */
export const MAX_RESPONSE_TIME_CAP_MS = 300_000