Identity coherence: combine claim-vs-measurement checks into one observation
Consolidates #92, #93 and #94 into one detection.
Each compares what the browser claims to be (User-Agent, platform) with one measured property. They are combined into a single identity-coherence-v1 experimental observation, where each measurement is one axis that reports agree, contradict or unknown. Unknown never counts.
It is observe-only: it is reported under experimental.observations and never changes the production score, token issuance, rate limits or any existing FCAPTCHA_EXPERIMENTAL_BLOCKING policy. Any future enforcement would be a new, separately named policy.
Axes
- [x] Claim model and OS axes: WebGL graphics backend (from #93) and font set. Shipped in v1.42.0.
- [x] JS engine axis (from #92): derive Blink/Gecko/WebKit from the math/error fingerprints plus cheap client probes. Merged in #181.
- [x] TLS family axis (from #94): classify a natively computed or trusted-proxy JA4 into chromium/gecko/webkit only when its pinned cipher-set hash remains family-specific. Merged in #236. Unknown, malformed, intercepted, shared, or drifted values fail open to unknown; client-supplied JA3 is never used.
Acceptance (carried over)
- [x] Honest Chrome, Edge, Firefox and Safari on desktop and mobile never contradict their claim, and the bench personas stay within budget.
- [x] Every iOS browser runs WebKit, so
CriOS/FxiOSwith a WebKit engine or TLS hello is honest. - [x] A TLS-intercepting proxy classifies as unknown, not as a mismatch, and how is documented.
- [x] Synthetic contradicting vectors fire identically in all three servers.
Current stock Firefox and Safari captures now verify the JS and native TLS axes without a contradiction. Firefox 160 exposed that Chromium's historical TCP JA4_b is now shared; #242 made that shared hash unknown across Go, Node and Python and added measured parity coverage.
Canvas readback stability (#95) is tracked separately in #235.
JS-engine axis merged in #181.
Evidence and safety notes:
- observe-only; no score, recommendation, token, PoW, rate-limit, or blocking-policy change
- requires at least two agreeing error, math, or bounded feature probes
- unfamiliar or conflicting measurements remain unknown
- shared Go/Node/Python fixtures cover stock Chrome, Firefox, Safari, Chrome on iPhone, desktop-mode iPad, contradictions, and conflict-to-unknown behavior
- full 507-sample gate passed with 0/252 captured+derived human samples flagged and 0 replay errors
The TLS-family axis remains open, so this issue stays open.
Implementation PR #236 adds the observe-only trusted-JA4 TLS-family axis across Go, Node, and Python.
Research/design notes:
- standard JA4 does not retain raw cipher/extension lists; it retains their hashes, so the proxy-header path cannot literally inspect Gecko-only extensions
- the implementation therefore keys only on the JA4_b cipher-set hashes in FoxIO's public reference mapping, pinned to commit
f1fea2e2313b5fd57de313fd5882eeacb3bd22ef - unknown/malformed/intercepted/drifted hashes remain unknown
- Node and Python already gated configured JA4 headers by proxy trust; source review found and fixed a Go parity gap where the configured header could reach scoring with
peerTrusted=false
Local validation is green (Node 147/147, Python 140/140, 40 shared identity vectors in all three implementations). The issue remains open pending live isolated current-Firefox/current-Safari TLS captures; the reference mapping alone is not a current-browser measurement.
Merged in #236 as 35b7fc9de2d4a59dfa3595be796134632899f83d.
CI was fully green across unit/compatibility matrices, all three conformance servers, Docker/replica/Helm checks, and the fixed benchmark. The benchmark replayed 858 samples (450 human, 408 agent), passed with warnings confined to pre-existing documented exemptions, and reported identity-coherence-v1 on 33 human and 33 agent base samples with zero contradictions in each group. The JA4 axis remains diagnostic-only and does not affect score or enforcement.
Implementation is complete. The remaining acceptance item is live current stock Firefox/Safari evidence, tracked together with canvas validation in #235.
Current stock Safari evidence is now complete via #235 and merged PR #241.
Safari 26.6.2 on macOS 26.6.2 produced native JA4 t13i2012h2_a09f3c656075_7f0f34a4126d. Its cipher-set hash a09f3c656075 mapped to WebKit, agreed with the Safari claim, and identity-coherence-v1 remained clear. The patched rerun was allowed at score 0.0756. The full 858-sample benchmark gate stayed green.
Current stock Firefox remains the only live-browser evidence gap before the final acceptance item can close.
Final current-browser evidence is complete.
Stock Firefox 160.0 on macOS 26.6.2, using native TLS through the isolated loopback validator built from merged commit 2e97208, returned allow at 0.1296. Its identity-coherence-v1 observation is clear with no detections. Native JA4 was t13i1516h2_8daaf6152771_e6dcd7ae0a9e.
The run also found and resolved a useful fail-open mapping case: JA4_b 8daaf6152771 is no longer Blink-exclusive because stock Firefox 160 uses it. PR #242 removes that shared hash from the family map in Go, Node and Python, adds measured regression coverage, and passed the complete CI and benchmark matrix. Safari's current-browser native-TLS evidence is recorded in #235.