Skip to content

Separate random draws from review recommendations - #256

Merged
jserv merged 1 commit into
sysprog21:mainfrom
Ericko00o:fix/random-problem-selection
Oct 11, 2026
Merged

jserv merged 1 commit into
sysprog21:mainfrom
Ericko00o:fix/random-problem-selection

Conversation

@Ericko00o

@Ericko00o Ericko00o commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Explicit random selection can be monopolized by overdue reviews, leaving other eligible problems unreachable. Sample uniformly from the selected difficulty and topic pool when the candidate clicks Random, exclude the current problem when alternatives exist, and display the selected problem's difficulty. Automatic recommendations and filter changes retain their existing review policy.

Keep this PR limited to the picker policy and its regression tests. Cross-navigation draw persistence, storage tickets, URL identifiers, and report completion tracking are prepared separately and are not included here.

Validation: all 162 targeted picker and lobby tests passed with no failures or skips. ESLint, formatting, and staged checks passed. The full browser suite reported 1039 passed, 5 failed, and 3 skipped. The Git hooks suite passed all 46 checks. The full gate did not pass: fmt, clippy, and cargo-test require the missing Cargo toolchain; wire-fixtures and recording-provision-check-tests encounter existing Windows environment failures; browser-tests includes four Windows ESM path failures and one unavailable-server face-check failure. Java and two built-server browser cases were skipped, and cargo-audit, actionlint, ruff, and shellcheck were unavailable.

Closes #210

cubic-dev-ai[bot]

This comment was marked as resolved.

@jserv jserv changed the title Fix #210 random problem selection at selected difficulties Fix random problem selection at selected difficulties Oct 7, 2026
Comment thread web/app.js Outdated
Comment thread web/app.js Outdated
Comment thread web/app.js Outdated
Comment thread tests/browser/lobby.test.js Outdated
Comment thread tests/browser/lobby.test.js Outdated
jserv

This comment was marked as duplicate.

@Ericko00o Ericko00o changed the title Fix random problem selection at selected difficulties Fix random problem selection by difficulty Oct 7, 2026
@Ericko00o
Ericko00o requested a review from jserv October 7, 2026 09:37

@jserv jserv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Check CONTRIBUTING.md carefully and enforce the rules. In particular, the manner for writing git commit messages.

@Ericko00o
Ericko00o force-pushed the fix/random-problem-selection branch from ac3968c to c06be4d Compare October 8, 2026 08:59
cubic-dev-ai[bot]

This comment was marked as resolved.

cubic-dev-ai[bot]

This comment was marked as resolved.

@Ericko00o
Ericko00o requested a review from jserv October 8, 2026 14:41
@jserv

jserv commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Before asking someone to review, you MUST resolve any regressions flagged by GitHub Actions.

Comment thread web/app.js Outdated
Comment thread web/app.js Outdated
Comment thread web/app.js Outdated
@Ericko00o
Ericko00o force-pushed the fix/random-problem-selection branch from 162d9ee to e299d69 Compare October 9, 2026 08:17
@Ericko00o
Ericko00o requested a review from jserv October 9, 2026 08:57
@jserv
jserv requested review from ColtenOuO and alanhc October 9, 2026 10:11
Comment thread web/app.js Outdated
Comment thread web/app.js Outdated
cubic-dev-ai[bot]

This comment was marked as resolved.

cubic-dev-ai[bot]

This comment was marked as resolved.

@Ericko00o
Ericko00o force-pushed the fix/random-problem-selection branch from 3752b2b to a6dbeba Compare October 10, 2026 08:32
@Ericko00o
Ericko00o requested a review from ColtenOuO October 10, 2026 08:56

@jserv jserv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fold similar commits and refine git commit messages per CONTRIBUTING.md.

@jserv jserv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rebase latest main branch and resolve conflicts.

@Ericko00o
Ericko00o force-pushed the fix/random-problem-selection branch from d6f4ca2 to 5a6dba5 Compare October 11, 2026 04:32
cubic-dev-ai[bot]

This comment was marked as resolved.

@Ericko00o
Ericko00o requested a review from jserv October 11, 2026 05:03
@sysprog21 sysprog21 deleted a comment from Ericko00o Oct 11, 2026
@sysprog21 sysprog21 deleted a comment from cubic-dev-ai Bot Oct 11, 2026

@jserv jserv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove unnecessary Co-authored-by markers.
Avoid ambiguous Refs #210.

Do close an issue when you submit a pull request.

@Ericko00o
Ericko00o force-pushed the fix/random-problem-selection branch from 5a6dba5 to 120f239 Compare October 11, 2026 05:34
@Ericko00o
Ericko00o requested a review from jserv October 11, 2026 05:39
@Ericko00o
Ericko00o force-pushed the fix/random-problem-selection branch from 120f239 to aa1efee Compare October 11, 2026 14:39
Comment thread web/interview.js Outdated
Comment thread web/interview.js Outdated
Comment thread web/app.js Outdated
Overdue reviews can monopolize explicit random selections and prevent
other eligible problems from being offered. Give each problem matching
the selected levels and topic an equal chance, avoiding the current
problem when alternatives exist. Keep review priority for automatic
recommendations and identify the randomly selected problem's level.

Closes sysprog21#210
@Ericko00o
Ericko00o force-pushed the fix/random-problem-selection branch from aa1efee to 0d0a265 Compare October 11, 2026 15:21
@Ericko00o Ericko00o changed the title Fix random problem selection by difficulty Separate random draws from review recommendations Oct 11, 2026
cubic-dev-ai[bot]

This comment was marked as resolved.

@ColtenOuO ColtenOuO left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

@jserv
jserv merged commit 5cdded7 into sysprog21:main Oct 11, 2026
6 checks passed
@jserv

jserv commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Thank @Ericko00o for contributing!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pick a random problem cycles only through overdue attempts while unseen problems remain

3 participants