Engineering · 7 min

Calibrated weights without turning detection into a black box

How Volance moved from hand-tuned classification formulas to a bundled 69-feature logistic model while keeping every signal readable and explicit rules outside the model.

Layer 1

Client integrity

Does the environment look intact, or automated?

Layer 2

Behaviour

Do timing and movement look like a person?

Layer 3

Agent-tell

What markers does the interaction leave?

Layer 4

Network

How did the request arrive?

Layer 5

Disclosure

Did the automation identify itself?

Layer 6Read first

Consistency

Do the signals agree with each other?

Most bot detectors hide behind one of two excuses. Either they ship a pile of brittle regexes and pretend it is intelligence, or they drop a neural network in front of your checkout and tell you the visitor scored 0.14 for reasons nobody in support can explain. Both fail the moment a real customer hits a false positive and emails you asking why they were blocked.

When we added trained classifier weights to Volance, we set a strict design constraint before writing a line of training code: the model may calibrate how strongly each signal votes toward human, bot, or agent, but it may never obscure which checks fired or override explicit cryptographic and IP-verified identity rules. A score is still an estimate, not proof of identity — and measurement without explanation is just a guess you cannot debug.

Why hand-tuned rules hit a ceiling

Volance’s engine evaluates 69 binary feature signals across six layers: client integrity, behavioural timing, programmatic agent tells, network and protocol headers, signed disclosure, and cross-signal consistency. In the original rule-based classifier, those signals were summed into two coarse buckets — one total for bot-like signals, one total for agent-like signals — and fed into a three-way softmax alongside the raw score.

That baseline was easy to read and honest to start with, and we still keep it as the fallback whenever no compatible weight file is present. Its shortcoming showed up as soon as we expanded the signal catalogue to cover mobile touch contact geometry, wheel cadence, keystroke flight variance, TLS family mismatches, and verified crawler IP ranges. Summing every signal in a bucket with a flat rule treats a privacy-conscious visitor on a consumer VPN with missing WebRTC similarly to a headless script tripping a honeypot — unless you hand-tune dozens of brittle special cases every time a new check lands.

A 3-class L2-regularized multinomial logistic model solves that specific calibration problem without inventing opaque latent features. The input vector is the exact 69-element binary array of fired FEATURE_IDS already returned in every POST /api/trace/score response. There are no hidden embeddings, no third-party tracking cookies, and no runtime external dependencies: the trained artifact is a small, inspectable JSON file (weights.json) bundled directly inside the engine and validated against the exact feature list at load time.

What stays inside the model — and what stays outside

Not every decision belongs in a statistical classifier. Cryptographic verification and published crawler IP ranges are deterministic facts, not soft correlations. Mixing them into a statistical vote would invite the exact failure mode teams hate: an authorized agent or legitimate search crawler getting demoted because it has no mouse events.

How Volance separates explicit identity rules from the calibrated 69-feature logistic model.
Traffic typeEvaluated byclassification.modelWhy
Valid Web Bot Auth signature (RFC 9421)Explicit cryptographic rulerulesSigned identity is an authorization fact, independent of mouse or keystroke timing.
Verified known crawler (e.g., Googlebot IP match)Explicit CIDR verification rulerulesPublished IP ranges confirm crawler identity without false datacenter penalties.
Spoofed crawler UA outside published CIDRsExplicit override + hard cap (≤ 15)rulesClaiming a crawler identity from an unrelated host is direct spoofing evidence.
MCP or x402 protocol headersExplicit protocol rulerulesProtocol headers declare an agent explicitly rather than acting as human-likeness cues.
All browser, mobile, and ambiguous trafficBundled 3-class logistic weights (69 features)trainedWeighs noisy human edge cases against multi-signal bot and agent patterns cleanly.

Keeping that boundary explicit means the response tells you which path ran. Every normal session reports classification.model: "trained" alongside the full probabilities distribution and every fired check in signals[]. You can inspect the exact readings in the portal and read how each layer works in the scoring and verdicts documentation.

A worked scenario: noisy human versus computer-use agent

Consider two real-world session shapes that routinely break naive threshold rules. Both arrive on /checkout with a real Chrome user-agent and no WebDriver flag.

Session A is a privacy-conscious human on a consumer VPN using a hardened desktop browser. Two checks fire: net_ip_vpn (Layer 4) and env_fonts (Layer 1, reduced font enumeration). Interaction events show natural curved mouse movement, uneven keystroke dwell, and zero programmatic tells. Under the calibrated weights, net_ip_vpn and env_fonts carry modest negative nudges rather than hard bot votes, because real humans trigger them regularly in the calibration set. The softmax resolves cleanly to human with high confidence, and the policy recommends allow.

Session B is an unauthenticated computer-use agent clicking through the same checkout flow. Three checks fire: action_loop_regularity (Layer 3), agent_think_act_rhythm (multi-second stillness bursts between identical tool steps), and sparse_pointer (clicks without realistic approach paths). Even with a clean browser fingerprint, those three signals carry strong positive weight toward the agent class and strong negative weight against human. Here is the redacted response shape the relay receives:

{
  "score": 52,
  "band": "suspicious_agent",
  "verdict": "suspicious_agent",
  "action": "flag",
  "confidence": 0.94,
  "classification": {
    "label": "agent",
    "confidence": 0.94,
    "probabilities": { "human": 0.02, "bot": 0.04, "agent": 0.94 },
    "agentType": "computer_use",
    "model": "trained"
  },
  "signals": [
    { "id": "action_loop_regularity", "layer": 3, "value": 0.06, "fired": true },
    { "id": "agent_think_act_rhythm", "layer": 3, "value": 0.12, "fired": true },
    { "id": "sparse_pointer", "layer": 3, "value": 0.1, "fired": true }
  ],
  "cascade": {
    "needed": true,
    "mode": "pow_timing",
    "band": "suspicious_agent",
    "suggestedTests": ["pow_sha256", "event_loop_jitter"]
  }
}

Notice how the response stays actionable even in the middle band: the score lands at 52 (flag), the calibrated classifier identifies agent (computer_use) at 0.94 confidence instead of confusing it with a generic headless scraper, and the cascade attaches a lightweight, invisible SHA-256 proof-of-work and event-loop jitter check if your server wants one more reading before deciding. See how Volance works for the full flow from collector to relay policy.

Closing the loop with customer feedback

A static weight file is only the starting line. Every time a developer opens a session in the portal and marks it Actually human or Actually bot, that review is stored in workspace feedback. Our offline training script accepts anonymized feedback exports alongside the baseline red-team and noisy-human calibration corpus, fits L2-regularized weights deterministically, and refuses to write a new artifact if holdout accuracy drops below 0.90.

We deliberately keep retraining offline and versioned in source control rather than mutating weights live on every click. Online self-updating models are fragile: a single mislabelled batch or a coordinated adversarial flood can poison a production classifier silently overnight. Versioned, holdout-gated weights let us review every shift in feature importance before it reaches a single customer request, using the same adversarial testing discipline we wrote about in red-teaming our own detection.

Where linear calibrated weights stop working

Stating the boundary plainly matters more than selling magic. A linear logistic classifier over 69 binary checks has three real limitations that we do not pretend away:

  • No higher-order interaction terms. Each signal votes additively. If a specific rare combination of two benign checks only becomes suspicious together, a linear model cannot invent that cross-term on its own — we have to express it explicitly as a Layer 6 consistency signal first.
  • Blind to unseen behaviours. If a patient script mimics human timing, runs inside an unpatched real browser on a residential IP, and fires zero of the 69 checks, the input vector is all zeros. Calibrated weights cannot separate two identical feature vectors; that is why the score remains a graded estimate rather than proof.
  • Feedback volume and label noise. Before a workspace or cohort has hundreds of carefully reviewed sessions, human-labelled feedback can be skewed toward edge cases. Regularization and holdout gating guard against overfitting, which means early weights lean heavily on the controlled calibration set until real-world review volume matures.

Those limits are features of an honest architecture, not bugs to hide behind a marketing score. Every weight in the model maps one-to-one to a named check you can read, question, and audit — and when the evidence is still genuinely ambiguous, Volance says so and hands your server the tools to step up rather than guessing.

Frequently asked

Does Volance train on my visitors’ personal data or keystrokes?

No. The classifier reads only the 69 binary signal flags (whether named behavioural, integrity, or network checks fired). Volance never collects keystroke characters, form values, or raw IP addresses in the scoring payload.

How can I tell if a session used the trained weights or explicit rules?

Check classification.model in the POST /api/trace/score response or in the portal session detail view. Normal sessions report "trained"; explicit cryptographic or verified-crawler overrides report "rules".

Can trained weights override a valid Web Bot Auth signature or verified Googlebot?

No. Explicit identity rules (valid RFC 9421 Web Bot Auth signatures, verified known-crawler IP ranges, and protocol headers) run outside the statistical model so verified automation is never penalized for lacking human mouse events.

Do custom allow/block thresholds still work with trained weights?

Yes. The calibrated model produces the 3-class classification (human, bot, agent) and probabilities, while your workspace’s custom allow and block thresholds continue to govern the verdict band and recommended action.

Join the blog list

Occasional writing on behavioral detection, signed agents, and policy. No digest, no sequence, unsubscribe any time.

One script. One API call. A human-likeness score with the signals behind it, and a decision your server still owns.

Get started free