Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/webdecoy/src/detection/fixtures/input-modality.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"reference": {
"version": "v1.51.1",
"commit": "b769817ffa4069a80217dc5b4cef9ce597077c07"
"version": "v1.51.3",
"commit": "2ed3b473ea2f0b8efe5900827fef1444cd66a194"
},
"cases": [
{
Expand Down
31 changes: 28 additions & 3 deletions packages/webdecoy/src/detection/fixtures/scoring-policy.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
{
"reference": {
"version": "v1.51.1",
"commit": "b769817ffa4069a80217dc5b4cef9ce597077c07",
"engineSha256": "2da0e61e8efcc9022f0cdeaa22740dfc2ba1ee1fb2b0157c491294008616bd1a",
"version": "v1.51.3",
"commit": "2ed3b473ea2f0b8efe5900827fef1444cd66a194",
"engineSha256": "5ace5e1e7a4a777a2ee16b31b3458313f24ff3973db7dee718461ca94cd551f5",
"detectionSha256": "8bfbd56c765ae47edee083e5e3c20512c16a1cca1dc18f7fb88d162f36d67682",
"cadenceFixtureSha256": "c11c199504aaae979acdaecaa8918615b08b4310c1e311c275b4c53a625c69ce"
},
"referenceEvolutionCases": [
{
"name": "continuous human pointer movement during navigation",
"signals": {
"behavioral": {
"totalPoints": 80,
"trajectoryLength": 350,
"approachPoints": 12,
"microTremorScore": 0.6,
"overshootCorrections": 3,
"touchEvents": 0,
"inputForensics": {
"pointerMoveSamples": 30,
"coalescedSamples": 30,
"coalescedMax": 2,
"pointerMoveZeroRatio": 0.049
}
},
"environmental": { "cdpRuntime": { "consoleAttached": true } },
"temporal": { "pageLoadToFirstInteraction": 249 }
},
"reasonIds": [],
"decisions": { "node": "allow", "fcaptcha": "allow" }
}
],
"cases": [
{
"name": "ordinary input with no findings",
Expand Down
7 changes: 7 additions & 0 deletions scripts/check-captcha-score-parity.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ for (const { name, behavioral, reasonIds: expectedIds } of inputModality.cases)
console.log(name + ' — matching reason IDs and allow outcomes');
}

for (const { name, signals: input, reasonIds: expectedIds, decisions } of fixtures.referenceEvolutionCases) {
const signals = withOrdinaryBrowser(input);
const detections = reference.detectCDP(signals);
compareSignalFixture(name, signals, detections, expectedIds, decisions);
console.log(name + ' — matching clear result after the reference false-positive fix');
}

for (const { name, environmental, referenceFloor, reasonIds: expectedIds, decisions } of fixtures.decisiveFloorCases) {
if (referenceFloor === undefined) continue;
const signals = withOrdinaryBrowser({ environmental, behavioral: ordinaryPointer });
Expand Down
Loading