# FideRail 1M+ On-Chain Agent Payments Audit Report

> **SSOT Status**: Authoritative Specification  
> **Machine Source**: [`/.well-known/fiderail-manifest.json`](/.well-known/fiderail-manifest.json) (`schemaVersion: 1.0.0`)  
> **Release**: `v2.3.5` | **Active Model**: `trust-v2` (`c810c963f75f591a…`)  
> **Audit Source Mode**: `live_postgresql` | **Reproducible Generator**: `npm run report:audit`  
> **Snapshot Generated At**: `2026-12-04T04:26:03.511Z` *(live counters update continuously at `/healthz`)*

---

## 1. Executive Principle: 1M+ Transfers Is NOT 1M+ Organic Commerce

A core failure mode in Web3 analytics is treating raw on-chain transaction volume as equivalent to genuine economic activity. In autonomous AI Agent commerce, wash loops, isolated sybil farms, micro-ping spam, and generic non-x402 whale flows routinely distort naive counters.

FideRail strictly enforces **4-Tier Honest Data Stratification** on every public dashboard, API response, and audit report:

| Stratification Tier | Definition | What Is Explicitly Excluded |
|---|---|---|
| **Tier 1 · Confirmed Stablecoin Transfers** | Raw non-reorged stablecoin transfers observed within FideRail's locked 4-chain × 8-stablecoin boundary | Reorged blocks, volatile altcoins, unindexed chains |
| **Tier 2 · Classified Agent-Rail Payments** | Transfers attributed to x402 Permit2 proxies, EIP-3009 `TransferWithAuthorization`, or Solana x402 facilitators | Unrelated DEX/bridge noise (Arbitrum/Polygon strictly allowlisted) |
| **Tier 3 · Verified x402 Protocol Payments** | Transactions settled exclusively through verified x402 channels (`base_x402_permit2`, `solana_x402_*`, allowlisted EVM x402) | Generic `base_eip3009` whale flows (`NON_X402_WHALE_FLOW`) |
| **Tier 4 · Organic Multi-Day Commerce** | Strict subset of Tier 3: verified x402 multi-day cross-ecosystem payees achieving `HIGH_TRUST` (`>= 70`) under `trust-v2` with zero sybil flags | Generic EIP-3009 outside Tier 3, `RECIPROCAL_LOOP`, `SINGLE_PAYER_CONCENTRATED`, `ISOLATED_PAYER_FARM`, `MICRO_PING_ONLY`, `BEHAVIOR_DRIFT`, `NEW_WALLET_MATURITY_CAP` |

---

## 2. Empirical Baseline & 4-Chain Coverage Snapshot

Observed 24-hour empirical throughput captured during FideRail's Round 2 Base + Solana cross-chain baseline (`2026-11-28T04:26:33.006Z`):

- **Base Generic EIP-3009 USDC Run-Rate**: **301,089 txs / 24h** (reaches 1M+ cumulative transfers in ~3.3 days — heavily mixed with non-x402 whale wallets, hence FideRail's mandatory `NON_X402_WHALE_FLOW` isolation).
- **Base Verified x402 Permit2 Proxy Run-Rate**: **16,055 txs / 24h**.
- **Solana PayAI Facilitator Run-Rate**: **17,349 txs / 24h**.

### Current Snapshot Stratification (`live_postgresql`)

| Stratification Bucket | Payees (% of Audited) | Indexed Txs (% of Audited) | Volume USDC (% of Audited) |
|---|---:|---:|---:|
| **Tier 1 · Live Indexed Transfers** | — *(raw transfers)* | **1,340,616** | — *(0 when offline without DB)* |
| **Tier 2 · Audited Classified Payees** | **14,035** (100%) | **1,340,616** (100.00%) | **$31,642,960.30** (100.00%) |
| **Tier 3 · Verified x402 Protocol Payees** | **774** (5.51%) | **185,116** (13.81%) | **$338,204.27** (1.07%) |
| **Tier 4 · Organic Verified x402 `HIGH_TRUST` Payees** | **9** (0.06%) | **34,928** (2.61%) | **$753.92** (0.00%) |
| **Generic EIP-3009 Organic `HIGH_TRUST` *(Non-Permit2, outside Tier 3)*** | **97** (0.69%) | **761,003** (56.77%) | **$72,397.00** (0.23%) |
| **Flagged Risk Payees (Loops / Conc. / Farms)** | **1,941** (13.83%) | **506,751** (37.80%) | **$15,744,145.85** (49.76%) |

| Chain (CAIP-2) | Locked Stablecoins | Rail Status | Live Indexed Txs | Audited Payees | Verified x402 | High-Trust | Flagged |
|---|---|---|---:|---:|---:|---:|---:|
| **Base** (`eip155:8453`) | `USDC`, `EURC` | `ACTIVE` | 1,226,051 | 13,857 | 596 | 106 | 1,857 |
| **Solana** (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`) | `USDC`, `USDT` | `ACTIVE` | 114,053 | 169 | 169 | 0 | 81 |
| **Arbitrum** (`eip155:42161`) | `USDC`, `USDT0` | `ALLOWLIST LIVE` | 204 | 5 | 5 | 0 | 2 |
| **Polygon** (`eip155:137`) | `USDC`, `USDT` | `ALLOWLIST LIVE` | 308 | 4 | 4 | 0 | 1 |

### Solana Facilitator Attribution Verification (Zero Fee-Payer Misattribution)

Because Solana x402 facilitators (such as PayAI and Coinbase CDP) routinely act as the gas `feePayer` and submit transactions through router PDAs, naive instruction parsers can accidentally misattribute the facilitator relay key as the sole buyer and falsely trigger `SINGLE_PAYER_CONCENTRATED`.

FideRail's Solana parser (`packages/indexer/src/svm-adapter.ts`) eliminates relay misattribution by extracting SPL `preTokenBalances`/`postTokenBalances` token-account `owner`s per instruction and running `collapsePassthroughIntermediaries()` to collapse acyclic zero-delta router PDAs while strictly preserving directed wash cycles:

- **Solana Flagged Breakdown**: `81` of `169` audited Solana payees (47.93%) carry deterministic risk flags: `44` `RECIPROCAL_LOOP`, `38` `SINGLE_PAYER_CONCENTRATED`, and `1` `ISOLATED_PAYER_FARM`.
- **Highest-Volume Sybil Sample (`AQqnMFBwGZ…`)**: `110,169` txs across `44` payers totaling **$406.51 USDC** (avg **$0.0037/tx**) -> flagged `SINGLE_PAYER_CONCENTRATED, MICRO_PING_ONLY`.
- **Circular Wash Sample (`4s8XQC2WzR…`)**: `54` txs across `5` mutual payers totaling **$0.43 USDC** -> flagged `RECIPROCAL_LOOP`.

---

## 3. Empirical Red-Team Findings: `trust-v1` vs `trust-v2` Live A/B Proof

Five adversarial patterns that bypass naive volume/count scoring (`trust-v1`) are deterministically caught by the active `trust-v2` model. Every row below is freshly computed by `scripts/generate-audit-report.mjs` using `@fiderail/core`:

| Adversarial / Organic Scenario | Legacy `trust-v1` | Active `trust-v2` | Deterministic `trust-v2` Risk Flags |
|---|---|---|---|
| Honest Multi-Day x402 Provider (10d, 20 cross-eco payers) | **98** (`HIGH_TRUST`) | **90** (`HIGH_TRUST`, conf=`HIGH`) | `CLEAN` |
| Vector 1: <1h 100-Wallet Isolated Flash Farm | **100** (`HIGH_TRUST`) | **25** (`FLAGGED_FARM`, conf=`LOW`) | `ISOLATED_PAYER_FARM`, `NEW_WALLET_MATURITY_CAP` |
| Vector 2: 3-Hop Directed Wash Triangle (A->B->C->A) | **43** (`MODERATE_TRUST`) | **0** (`FLAGGED_LOOP`, conf=`LOW`) | `RECIPROCAL_LOOP` |
| Vector 3: Volume-HHI Evasion (1x$100 + 20x$0.01) | **98** (`HIGH_TRUST`) | **29** (`FLAGGED_CONCENTRATED`, conf=`HIGH`) | `SINGLE_PAYER_CONCENTRATED` |
| Vector 4: 60-Day Dormant Legacy Wallet Decay | **94** (`HIGH_TRUST`) | **65** (`MODERATE_TRUST`, conf=`HIGH`) | `CLEAN` |
| Vector 5: Exit-Scam Ticket Spike (BEHAVIOR_DRIFT) | **98** (`HIGH_TRUST`) | **69** (`MODERATE_TRUST`, conf=`HIGH`) | `BEHAVIOR_DRIFT` |

### Key Defensive Takeaways
1. **Flash-100 Sybil Farms Eliminated**: A 100-wallet isolated farm executing in under 1 hour scored `100` (`HIGH_TRUST`) under `trust-v1`; under `trust-v2` it drops to **`<= 25`** (strictly below the default `minTrustScore: 40` firewall threshold), triggers `ISOLATED_PAYER_FARM` + `NEW_WALLET_MATURITY_CAP`, and is deterministically **`BLOCK`ed** above micro-probe caps. All deterministic sybil tiers (`FLAGGED_LOOP <= 10`, `FLAGGED_FARM <= 25`, `FLAGGED_CONCENTRATED <= 29`) stay strictly `< 40`.
2. **3-Hop Circular Wash Triangles Caught**: `A -> B -> C -> A` bypassed `trust-v1`'s 2-hop check; `trust-v2` flags all three nodes `RECIPROCAL_LOOP` (`FLAGGED_LOOP`, capped `<= 10`) and blocks settlement unconditionally.
3. **Dual Volume-HHI Blocks Whale Dilution**: Mixing 1 × $100 payment with 20 × $0.01 decoy payers drops transaction-count HHI below `0.10`, but `trust-v2`'s `max(txHhi, volumeHhi)` detects `volumeHhi > 0.99` and flags `SINGLE_PAYER_CONCENTRATED` (capped `<= 29`).
4. **Exit-Scam Spikes & Dormancy Handled Automatically**: 14-day exponential half-life decay prevents abandoned legacy wallets from retaining inflated scores, while `BEHAVIOR_DRIFT` caps scores at `<= 69` (excluding `HIGH_TRUST`, `riskLevel: HIGH`) and warns buyers whenever a historically low-ticket provider suddenly spikes.

---

## 4. Independent Reproducibility, Edge Guardrails & Permanent Free Tier

FideRail adheres strictly to **Code Is Law** and **Zero Human Arbitration**:

- **MIT Open-Source Local Edge Guard (`$0` Forever)**: Protect your agents deterministically with single-package install `npm install @fiderail/guard` (re-exporting `@fiderail/core`) or zero-dependency Python `pip install fiderail`.
- **Permanent Free Tier + Automatic HTTP 402 Overage**: The public anti-sybil API and Remote MCP node (`https://api.fiderail.com`) provide a permanent free tier within per-IP rate limits, seamlessly returning HTTP `402` (`$0.002 USDC`/call) on overage queries to `GET /v1/trust/{chain}/{address}` alongside enterprise SLA options ([pricing & terms](https://fiderail.com/pricing)).

```bash
# 1. Regenerate this audit report against your own PostgreSQL 16 / SQLite DB (or committed baseline)
DATABASE_URL="postgres://..." npm run report:audit -- --out docs/reports/1m-agent-payments-audit-report.md

# 2. Run the full TypeScript + Python verification suite (including 6-vector anti-sybil benchmark & SSOT anti-drift checks)
npm test

# 3. Inspect any address's delta reputation history and Ed25519-signed Merkle stateRoot
curl -sS https://api.fiderail.com/v1/history/base/0x7284d41b5b852f2bd4c99bdf95043d84452d299c
```
