CTF-304: Hint Cost/Purchase¶
Statement¶
The system could require participants to explicitly confirm spending points before a hint is revealed, presenting the cost and requiring acknowledgment. If a participant's current score minus the hint cost would result in a negative net score for the associated challenge, the system should warn but still allow the purchase.
Rationale¶
The purchase confirmation step prevents accidental hint consumption, which is irreversible. Without a confirmation gate, misclicks or interface confusion could cost participants points they did not intend to spend. (CTFd shows cost before unlock and requires confirmation.)
Traceability¶
- IMPLEMENTS → CODE_FILE
shifter/shifter_platform/ctf/services/submission.py(Submission service - hint_used tracking but no negative-score warning) - TESTS → TEST
shifter/shifter_platform/tests/ctf/test_services/test_hint.py(TestHintPurchaseContext - view-level tests for hint cost/purchase context variables) - IMPLEMENTS → GITHUB_ISSUE
Brad-Edwards/bigrae#567(CTF-304: Hint Cost/Purchase)