psocache_usersig: refuse --limit combined with --entry (DRAFT-230) #933

Merged
fin-github merged 1 commit from upstream-pr/933 into main 2026-11-24 21:03:32 +00:00
fin-github commented 2026-11-24 15:17:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fin-github on 2026-11-24T15:17:17Z.


Claimed in the coordination issue as: DRAFT-230 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620)

Supersedes draft #230, carried over from the original repository. This is the same commit rebased onto current main, with the original author (Alex Arenas) kept and git cherry-pick -x recording where it came from. The change and its explanation are theirs; see #230 for the original description.

Tested

  • python -I tests/test_psocache_usersig.py: OK
  • python -I scripts/check_no_game_data.py on the changed files: clean.

Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online.

AI-assisted (Claude Code): rebasing, conflict resolution and test runs.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474957519 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/933). Originally posted by [fin-github](https://github.com/fin-github) on 2026-11-24T15:17:17Z. --- Claimed in the coordination issue as: `DRAFT-230` (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620) Supersedes draft #230, carried over from the original repository. This is the same commit rebased onto current `main`, with the original author (Alex Arenas) kept and `git cherry-pick -x` recording where it came from. The change and its explanation are theirs; see #230 for the original description. ### Tested - `python -I tests/test_psocache_usersig.py`: OK - `python -I scripts/check_no_game_data.py` on the changed files: clean. Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online. AI-assisted (Claude Code): rebasing, conflict resolution and test runs.
KernelSmoker commented 2026-11-24 15:20:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T15:20:21Z.

Review: APPROVED


Reviewed exact head 5a3247c8794dfd8a0756f8afea64ad280c126500. The new usage guard rejects --entry with --limit before inspecting the cache, preventing a misleading mixed selection mode; it leaves either option alone unchanged. python3 -I tests/test_psocache_usersig.py -v passed 8/8, and Python compile plus git diff --check passed. Synthetic fixtures only; no game data or GPU used.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6042053619 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/933#pullrequestreview-6042053619). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T15:20:21Z. **Review:** APPROVED --- Reviewed exact head `5a3247c8794dfd8a0756f8afea64ad280c126500`. The new usage guard rejects `--entry` with `--limit` before inspecting the cache, preventing a misleading mixed selection mode; it leaves either option alone unchanged. `python3 -I tests/test_psocache_usersig.py -v` passed 8/8, and Python compile plus `git diff --check` passed. Synthetic fixtures only; no game data or GPU used.
QemmHD commented 2026-11-24 21:03:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T21:03:30Z.


Merging.

Why merged: DRAFT-230: psocache_usersig refuses --limit together with --entry, which used to be silently contradictory. It carries Alex Arenas' original commit. KernelSmoker approved this exact head.

Why it's good: A 2-line argparse guard. Own tests: 8/8.

Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 66d4f5aa3. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 573 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 0b45fdc21: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls, new env vars or build/CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7144418402 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/933#issuecomment-7144418402). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T21:03:30Z. --- Merging. **Why merged:** DRAFT-230: psocache_usersig refuses --limit together with --entry, which used to be silently contradictory. It carries Alex Arenas' original commit. KernelSmoker approved this exact head. **Why it's good:** A 2-line argparse guard. Own tests: 8/8. Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 66d4f5aa3. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 573 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 0b45fdc21: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls, new env vars or build/CI changes. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!933
No description provided.