Reset Local Submissions
Run the guarded script from api/:
uv run python scripts/reset_local_submissions.py
uv run python scripts/reset_local_submissions.py --user-id <github-user-id>
The script previews matches and asks for confirmation before deleting them. For selected requirements or agent-driven use:
uv run python scripts/reset_local_submissions.py --dry-run
uv run python scripts/reset_local_submissions.py --yes [options]
Without filters, the script resets every requirement for every local user. Filter options are repeatable:
--user-id <github-user-id>
--requirement-slug <slug>
Always run with --dry-run first and summarize the matched users,
requirements, and outcomes. Ask for confirmation before running with --yes.
The script resolves slugs through the curriculum artifact and deletes matching
verification_attempts. It refuses non-local databases. Do not bypass that
guard or substitute ad-hoc SQL.