Repository navigation
Record the device bucket for every captcha type, not only PoW - #3619
Merged
Merged
Conversation
The proof of fingerprint was only generated by the PoW widget and only read on PoW submit, so puzzle and image records never carried the device bucket. The client now sends the proof with the frictionless request, the provider stores its summary on the session, and the PoW, puzzle and image records copy it from there. Escalation sessions inherit it; a proof submitted with a PoW still wins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
forgetso
enabled auto-merge (squash)
October 26, 2026 13:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The widget now sends its proof of fingerprint with the frictionless request, the first request every session makes. The provider checks it, stores the summary (including the device bucket) on the session, and copies it onto the PoW, puzzle or image record the session leads to.
Why
Until now only the PoW widget built the proof, and only a PoW submission read it. Sessions served a puzzle or an image never got a device bucket. In 24 hours of puzzle drags, only 44% could be given one, and only by finding a PoW the same account had solved.
Effect
deviceBucketcounter rules still fire only where they did before. Feeding it to the rules earlier should be its own decision.Old widgets that don't send the proof work as before: their sessions just have no summary.
Test coverage
Local runs: provider unit 1,985 passed; types 292; types-database 110; procaptcha-frictionless 171;
build:tscclean for 76 tasks.🤖 Generated with Claude Code