Skip to content

Add quiz automation feasibility and safety guidance#22

Draft
ib-bsb-br wants to merge 1 commit into
mainfrom
codex/evaluate-feasibility-of-tampermonkey-script
Draft

Add quiz automation feasibility and safety guidance#22
ib-bsb-br wants to merge 1 commit into
mainfrom
codex/evaluate-feasibility-of-tampermonkey-script

Conversation

@ib-bsb-br

@ib-bsb-br ib-bsb-br commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Provide a safety-first assessment and guidance for browser-based quiz automation requests involving Tampermonkey userscripts and LLM-backed answer lookups based on the captured Moodle-like page.

Description

  • Replaced the README placeholder with Quiz Automation Feasibility Notes that summarize scope and a high-level conclusion about technical feasibility versus policy/ethics constraints.
  • Added a compliant alternative direction that describes a study-helper approach which exports questions, generates explanations, requires explicit user confirmation, and keeps API keys out of userscripts.
  • Documented observed technical constraints (radio inputs/DOM query viability, session/anti-automation checks) and security/privacy warnings about session tokens and API-key handling.
  • Saved the change to README.md and committed it with the message Add quiz automation feasibility and safety guidance.

Testing

  • Ran python - <<'PY' ... to fetch the capture via requests, which failed with ModuleNotFoundError because the requests module is not installed.
  • Successfully fetched a slice of the captured page via curl -L --max-time 20 'https://x0.at/LkAn.txt' | sed -n '1,120p' to inspect page structure.
  • Verified the updated file contents with nl -ba README.md | sed -n '1,200p', which printed the new guidance.
  • Performed repository operations git add README.md and git commit -m "Add quiz automation feasibility and safety guidance", which succeeded and produced a clean repo status via git status --short.

Codex Task

Summary by Sourcery

Documentation:

  • Replace the README placeholder with guidance on quiz automation feasibility, risks, and safer study-helper patterns.

Summary by cubic

Replaced the README placeholder with safety‑first guidance on Tampermonkey-based quiz automation for Moodle‑like pages. It explains technical feasibility and DOM limits, warns about session/API key risks and anti‑automation checks, and recommends a compliant study‑helper that exports questions, provides explanations, requires user confirmation, and uses a local backend for API calls.

Written for commit 0e0c1d0. Summary will update on new commits.

@sourcery-ai

sourcery-ai Bot commented Apr 1, 2026

Copy link
Copy Markdown

Reviewer's Guide

Replaces the placeholder README with detailed "Quiz Automation Feasibility Notes" that document technical feasibility, constraints, and risks of Tampermonkey-based quiz automation, and proposes a safer study-helper alternative aligned with policy and security considerations.

Flow diagram for safe quiz automation and study-helper recommendation

flowchart TD
  A[User_considers_quiz_automation] --> B{Intended_use}
  B -->|Bypass_evaluation_rules| C[Not_recommended\nRisk_of_policy_violation]
  B -->|Study_support_or_accessibility| D[Proceed_with_study_helper_approach]

  D --> E[Export_visible_question_text_only]
  E --> F[Send_questions_to_backend_with_API_key]
  F --> G[LLM_generates_explanations_and_confidence]
  G --> H[Display_explanations_to_user]

  H --> I{User_requests_form_action?}
  I -->|No| J[End_without_form_automation]
  I -->|Yes| K[Prompt_for_explicit_confirmation]

  K --> L{User_confirms?}
  L -->|No| J
  L -->|Yes| M[Perform_limited_form_interaction_without_auto_submit]
  M --> N[Log_actions_and_allow_per_domain_disable]
Loading

File-Level Changes

Change Details Files
Document safety-first guidance and constraints for quiz automation and propose a compliant study-helper alternative.
  • Replace placeholder README content with a structured document titled "Quiz Automation Feasibility Notes"
  • Describe the technical feasibility of Tampermonkey userscripts that scrape quiz pages, call LLM APIs, and auto-select answers, while emphasizing policy and academic integrity concerns
  • Outline a safer "study-helper" design that exports questions, generates explanations, requires explicit confirmation for interactions, and keeps API keys out of userscripts by using a backend relay
  • Summarize technical observations from the captured page, including DOM structure, radio inputs, and potential anti-automation/session controls
  • Highlight security and privacy concerns around session identifiers, embedding API keys in userscripts, and sending quiz content to third-party APIs
  • Conclude with a recommendation to restrict automation to accessibility and study support rather than bypassing evaluation rules
README.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the placeholder in the README with comprehensive feasibility notes regarding quiz automation, covering ethical considerations, technical constraints, and security concerns. The review feedback suggests generalizing specific references to improve documentation maintainability and refining the tone to be more declarative and professional by removing conversational language.

Comment thread README.md
Comment on lines +18 to +19
## Technical constraints observed from the captured page
- The provided capture appears to be a Moodle/Questionnaire-style page with radio-button inputs and standard DOM containers.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The references to "the captured page" and "The provided capture" are specific to the context of the task and the external URL provided during development. For the README to be maintainable and clear to future readers, these should be generalized to describe web-based quizzes or Moodle-like platforms in general.

Suggested change
## Technical constraints observed from the captured page
- The provided capture appears to be a Moodle/Questionnaire-style page with radio-button inputs and standard DOM containers.
## Technical constraints for web-based quizzes
- Moodle/Questionnaire-style pages typically utilize radio-button inputs and standard DOM containers.

Comment thread README.md
- Sending full quiz content to third-party APIs may breach privacy or policy requirements.

## Recommendation
Use automation for accessibility and study support, not for bypassing evaluation rules. If you want, I can provide a legitimate script that only extracts questions and generates explanations locally (or via your own backend) without selecting or submitting answers.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The phrasing "If you want, I can provide..." is conversational and appears to be an artifact from an LLM response. Documentation should use a declarative and impersonal tone.

Suggested change
Use automation for accessibility and study support, not for bypassing evaluation rules. If you want, I can provide a legitimate script that only extracts questions and generates explanations locally (or via your own backend) without selecting or submitting answers.
Use automation for accessibility and study support, not for bypassing evaluation rules. Legitimate implementations should only extract questions and generate explanations locally (or via a secure backend) without selecting or submitting answers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant