Refuse an oversized PR number instead of crashing #8
Loading…
Reference in a new issue
No description provided.
Delete branch "oss-oo/bounded-pr-number"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The family security bench (case S5b) passed 19 of 20 cases against
labci.pyv0.3.0. Only a PR number of 120,000 digits ended in a traceback (Python's 4,300-digitint()limit) instead of a controlled refusal. PR numbers in targets are now limited to 1-18 digits, so such input is refused as unreadable before any int conversion. Test added. Version 0.3.2; gate green.🤖 Generated with Claude Code
The previous commit wrote \d{1,18} inside an rf-string, which Python formatted into \d(1, 18) and broke target parsing (15 test errors); the pattern needs {{1,18}}, like the existing {{7,64}}. The new test no longer fails from inside the API factory, which main() calls first, and asserts that no request is made. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>