03 · Trust Model & Anti-Sybil Scoring Specification

SSOT Status: Authoritative Specification

Machine Source: spec/fiderail.manifest.json (schemaVersion: 1.0.0)

Release: v2.3.5 | Active Model: trust-v2


1. Design Principle: Decoupled Enforcement and Intelligence

FideRail strictly separates deterministic policy enforcement from pluggable reputation scoring:

  1. Deterministic Policy Execution Layer: Enforces spending caps, rate limits, asset allowlists, Ed25519 mandate chains, outbound secret/PII scrubbing, Quote-to-Pay digest binding, and idempotency. Zero probabilistic overrides.
  2. Pluggable Risk Intelligence Layer (TrustScorer): Computes reproducible 0-100 credit profiles from indexed stablecoin flows, graph topology, L1 liveness, and verified L2 delivery receipts. Every output binds modelVersion, modelHash (RFC 8785 JCS SHA-256 of active parameters), and an Ed25519-signed per-epoch Merkle stateRoot.

2. Active Scoring Model: trust-v2

Implemented in packages/core/src/scoring.ts (createTrustScorerV2()).

2.1 Positive Signals (Max 100 Points)

All activity and volume signals apply 14-day exponential half-life decay (weight = 0.5^(ageSec / 1209600)):

2.2 Time Maturity Hard Caps

2.3 Deterministic Anti-Sybil Penalties

Risk FlagPenaltyScore CapResulting Tier / Pre-Flight EffectTrigger Rule
RECIPROCAL_LOOP-3010FLAGGED_LOOP (CRITICAL, < 40), BLOCK unconditionallySelf-transfers, 2-hop (A <-> B), or 3-hop (A -> B -> C -> A) directed wash cycles
SINGLE_PAYER_CONCENTRATED-2529FLAGGED_CONCENTRATED (HIGH, < 40), BLOCK above micro captxCount >= 5 and max(txHhi, volumeHhi) > 0.8 or top-1 tx/volume share > 80%
ISOLATED_PAYER_FARM-2525FLAGGED_FARM (HIGH, < 40), BLOCK above micro cap>= 10 unique payers and >= 15 txs with > 95% single-target isolated payers
BEHAVIOR_DRIFT-2069Ineligible for HIGH_TRUST (MODERATE_TRUST cap), riskLevel: HIGH, pre-flight WARN>= 10 txs across >= 24h where recent 20% median ticket >= 10x baseline median and >= $10 USD
MICRO_PING_ONLY-10—riskLevel: MEDIUMMedian ticket < $0.005 USD
NON_X402_WHALE_FLOW-3565Ineligible for HIGH_TRUST, pre-flight WARNGeneric EIP-3009 wallet with median ticket > $100 USD and no verified x402 facilitator channel

2.4 Tier Classification (deriveTrustTier)

2.5 Explainability, Delta History, and Isolated ASSOCIATED_CREDIT


3. Reproducible Benchmark Suite

test/trust-v2-benchmark.test.mjs and scripts/generate-audit-report.mjs preserve createTrustScorerV1() strictly as an offline A/B comparison baseline and verify 6 adversarial vectors (flash-100 isolated farm, 3-hop wash triangle, volume-HHI whale dilution, micro-ping spam, 60-day dormancy decay, and exit-scam BEHAVIOR_DRIFT) plus a 50,000-payment performance benchmark.


4. Risk Disclosure

FideRail provides reproducible on-chain risk intelligence—not financial guarantees or manual dispute arbitration. Final allow/block enforcement executes deterministically according to caller policy.