Repository navigation
feat(quiz): add quiz integrity system with Standard and Secure modes - #242
Open
codebysana wants to merge 10 commits into
Open
codebysana wants to merge 10 commits into
codebysana wants to merge 10 commits into
Conversation
Collaborator
|
Hi @codebysana, thanks for this big PR. I found one important problem in Secure mode. Here it is in simple words, with an example. The problemThe server believes the desktop app without any proof. A learner can skip the app and send the same messages from a normal browser. ExampleAli must take a quiz in Secure mode. The rule: use the desktop app, no blocked apps open, camera on. What should happen
What can happen now
So the check works like a guard who asks "do you have a ticket?" and accepts "yes" without looking. What the words mean
Where the gap is
Suggested fix
Also please check
|
…ysana/Edorax into feature/quiz-anti-cheating
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In an online written quiz, a learner can paste answers from another window, ask an AI tool, share their screen, or get help from someone nearby. A browser alone can't see what else is running on the computer, so it can't stop most of this.
This PR adds an integrity layer to quizzes. Each course picks one of two modes:
The goal is to discourage, detect and document. Nothing here fails a learner automatically. Every attempt gets a risk score and a list of timestamped notes, and a mentor makes the final call.
What learners will notice
What's in this PR
Standard mode
Secure mode (desktop app)
Camera and face check
'wasm-unsafe-eval'). Without it the face model could not load, and the face check stayed "unavailable".Typing patterns
Quiz timer
estimatedMinutes, so instructors don't need a new setting. No minutes means no timer.Server
Mentor tools
Fixes along the way
Database and configuration
server/prisma/schema.prismahas changes. A migration is needed (see reviewer notes).server/src/config/env.ts.INTEGRITY_MEDIA_SECRET, otherwise camera photos are turned off.pnpm face:setupindesktop/once to download it. Without it the quiz still works and only the face check is off.How to try it