{
  "schemaVersion": "1.0.0",
  "updatedAt": "2026-12-04",
  "project": {
    "name": "FideRail",
    "packageName": "fiderail",
    "currentRelease": "2.3.5",
    "tagline": "Local-First Non-Custodial Payment Guardrail & Anti-Sybil Trust Control Plane for AI Agents",
    "website": "https://fiderail.com",
    "apiBaseUrl": "https://api.fiderail.com",
    "repository": "https://gitlab.com/fiderail/fiderail",
    "repositoryMirror": "https://github.com/fiderail/fiderail",
    "repositories": {
      "gitlab": "https://gitlab.com/fiderail/fiderail",
      "github": "https://github.com/fiderail/fiderail"
    },
    "license": "MIT",
    "contacts": {
      "general": "founder@fiderail.com",
      "security": "security@fiderail.com"
    }
  },
  "constitutionalRedLines": [
    {
      "id": "ZERO_CUSTODY",
      "title": "Non-Custodial / Zero Fund Touch",
      "rule": "Never hold, custody, or access user private keys, session keys, or funds; never operate a centralized custodial payment facilitator, lending book, or underwriting pool."
    },
    {
      "id": "ZERO_TOKEN",
      "title": "No Platform Token",
      "rule": "Never issue a platform coin, utility token, or governance token; all pricing and settlement rely strictly on fiat-pegged stablecoins."
    },
    {
      "id": "ZERO_HUMAN_ARBITRATION",
      "title": "Zero Human Intervention & Arbitration",
      "rule": "Maintainers never act as subjective dispute arbitrators or manually override scores/blacklists; all enforcement, penalties, and verification are deterministic or cryptographically proven."
    },
    {
      "id": "CRYPTOGRAPHIC_VERIFIABILITY",
      "title": "Cryptographic Verifiability",
      "rule": "Verify delegated capability mandates, salted delivery receipts (fiderail-sar-v2), and per-epoch Merkle stateRoot commitments using deterministic canonical encoding (RFC 8785 JCS) and Ed25519 signatures."
    },
    {
      "id": "CODE_IS_LAW",
      "title": "Code Is Law",
      "rule": "Open-source deterministic policy execution, versioned model parameters with reproducible hashes (modelHash), cryptographically signed capability mandates, and tamper-evident receipts."
    },
    {
      "id": "LOCKED_FOUR_CHAINS_EIGHT_STABLECOINS",
      "title": "Locked 4 Chains x 2 Stablecoins Boundary",
      "rule": "Fixed network and asset boundary of 4 chains (Base, Solana, Arbitrum, Polygon) and 2 fiat-pegged stablecoins per chain (8 assets total). Volatile assets and additional chains are excluded."
    }
  ],
  "architecture": {
    "controlPlaneModel": "HYBRID_C",
    "corePipeline": [
      "PaymentIntent",
      "AttenuatedMandateVerification",
      "RiskAndIdentityEvaluation",
      "DeterministicVerdictAndAttestation"
    ],
    "paymentAdapters": [
      {
        "id": "x402",
        "status": "ACTIVE",
        "description": "HTTP 402 payment challenges, buyer Guard-and-Pay, seller middleware, and x402#2299 Trust-Provider hook"
      },
      {
        "id": "mcp-pay",
        "status": "ACTIVE",
        "description": "Paid MCP tool execution guard and delegated mandate verification"
      },
      {
        "id": "a2a",
        "status": "ACTIVE",
        "description": "Agent-to-Agent task payment intent and verifiable delivery envelope"
      },
      {
        "id": "session-key",
        "status": "ACTIVE",
        "description": "Smart-account / ERC-7715 / Solana delegated session key policy guard"
      }
    ],
    "delegationModel": {
      "name": "Attenuated Capability Delegation Chain",
      "modes": [
        "SPECIFIED",
        "BOUNDED"
      ],
      "properties": [
        "Offline cryptographic verification in microseconds",
        "Strict monotonic attenuation (sub-agent child mandates can only narrow limits, never expand)",
        "Lifecycle state machine: ACTIVE -> SUSPENDED | REVOKED | EXPIRED"
      ]
    },
    "cryptographicPrimitives": {
      "canonicalEncoding": "RFC 8785 JCS",
      "saltedReceiptFormat": "fiderail-sar-v2 (min 128-bit salt + taskId + parentReceiptHash)",
      "trustSnapshotCommitment": "Ed25519-signed deterministic Merkle stateRoot per recomputation epoch",
      "proofTypes": [
        "ed25519",
        "eip712"
      ],
      "deliveryVerificationTiers": [
        "L0_UNVERIFIED",
        "L1_LIVENESS_PROBE",
        "L2_SIGNED_SAR_TELEMETRY"
      ]
    },
    "runtimeAndStorage": {
      "currentRuntime": {
        "language": "Node.js >= 22.13 + TypeScript (strict Monorepo) + Python >= 3.9 thin SDK",
        "cloudDb": "PostgreSQL 16 (monthly partitioned payments, NUMERIC(78,0), lossless SQLite migrator) + SQLite WAL adapter for dev/CI",
        "edgeCoreRuntime": "Runtime-agnostic pure core (@fiderail/spec, @fiderail/zk-types, @fiderail/core — zero Node deps) + RemoteTrustClient with TTL cache & outage degradation",
        "clientSdks": "TypeScript SDK (@fiderail/core, @fiderail/guard, @fiderail/seller) + spec-synced zero-dependency Python SDK (sdks/python)",
        "edgeLedger": "Concurrent-safe embedded SQLite (node:sqlite / Python sqlite3) with atomic reservations, mandate spend tracking, and TTL risk cache",
        "mcpTransports": [
          "stdio",
          "streamable-http"
        ]
      }
    }
  },
  "networkBoundary": {
    "maxChains": 4,
    "maxAssetsPerChain": 2,
    "maxTotalAssets": 8,
    "chains": [
      {
        "key": "base",
        "name": "Base",
        "caip2": "eip155:8453",
        "vm": "evm",
        "chainId": 8453,
        "status": "ACTIVE",
        "indexingMode": "permit2_and_eip3009_classified",
        "assets": [
          {
            "symbol": "USDC",
            "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "decimals": 6,
            "fiatPeg": "USD",
            "isPrimaryDefault": true,
            "status": "ACTIVE"
          },
          {
            "symbol": "EURC",
            "contract": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
            "decimals": 6,
            "fiatPeg": "EUR",
            "isPrimaryDefault": false,
            "status": "ACTIVE"
          }
        ]
      },
      {
        "key": "solana",
        "name": "Solana",
        "caip2": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
        "vm": "svm",
        "chainId": null,
        "status": "ACTIVE",
        "indexingMode": "facilitator_incremental",
        "assets": [
          {
            "symbol": "USDC",
            "contract": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
            "decimals": 6,
            "fiatPeg": "USD",
            "isPrimaryDefault": true,
            "status": "ACTIVE"
          },
          {
            "symbol": "USDT",
            "contract": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
            "decimals": 6,
            "fiatPeg": "USD",
            "isPrimaryDefault": false,
            "status": "ACTIVE"
          }
        ]
      },
      {
        "key": "arbitrum",
        "name": "Arbitrum",
        "caip2": "eip155:42161",
        "vm": "evm",
        "chainId": 42161,
        "status": "ACTIVE",
        "indexingMode": "allowlisted_x402_only",
        "assets": [
          {
            "symbol": "USDC",
            "contract": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
            "decimals": 6,
            "fiatPeg": "USD",
            "isPrimaryDefault": true,
            "status": "ACTIVE"
          },
          {
            "symbol": "USDT0",
            "contract": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
            "decimals": 6,
            "fiatPeg": "USD",
            "isPrimaryDefault": false,
            "status": "ACTIVE"
          }
        ]
      },
      {
        "key": "polygon",
        "name": "Polygon",
        "caip2": "eip155:137",
        "vm": "evm",
        "chainId": 137,
        "status": "ACTIVE",
        "indexingMode": "allowlisted_x402_only",
        "assets": [
          {
            "symbol": "USDC",
            "contract": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
            "decimals": 6,
            "fiatPeg": "USD",
            "isPrimaryDefault": true,
            "status": "ACTIVE"
          },
          {
            "symbol": "USDT",
            "contract": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
            "decimals": 6,
            "fiatPeg": "USD",
            "isPrimaryDefault": false,
            "status": "ACTIVE"
          }
        ]
      }
    ]
  },
  "scoring": {
    "activeModel": {
      "version": "trust-v2",
      "pluggableIntelligenceLayer": true,
      "halfLifeDays": 14,
      "maturityCaps": {
        "under24hMaxScore": 65,
        "under3dMaxScore": 80,
        "under7dMaxScore": 90
      },
      "payerWeights": {
        "crossEcosystemBuyer": 1,
        "isolatedSingleTargetPayer": 0.2
      },
      "positiveWeights": {
        "uniquePayerDiversityMax": 40,
        "organicVolumeMax": 30,
        "activityMax": 20,
        "lowHhiDispersionMax": 10
      },
      "penalties": {
        "RECIPROCAL_LOOP": {
          "delta": -30,
          "scoreCap": 10,
          "description": "Self-transfers, 2-hop (A <-> B), or 3-hop (A -> B -> C -> A) directed wash cycles"
        },
        "SINGLE_PAYER_CONCENTRATED": {
          "delta": -25,
          "scoreCap": 29,
          "description": "Max(txHhi, volumeHhi) or top-1 payer tx/volume share > 80% across >= 5 transactions"
        },
        "ISOLATED_PAYER_FARM": {
          "delta": -25,
          "scoreCap": 25,
          "description": "High-volume payee (>= 10 unique payers, >= 15 txs) where > 95% of payers never paid any other counterparty"
        },
        "BEHAVIOR_DRIFT": {
          "delta": -20,
          "scoreCap": 69,
          "description": "Sudden exit-scam / anomaly spike: recent ticket median >= 10x historical median and >= $10 USD"
        },
        "MICRO_PING_ONLY": {
          "delta": -10,
          "description": "Median ticket < $0.005 USD"
        },
        "NON_X402_WHALE_FLOW": {
          "delta": -35,
          "scoreCap": 65,
          "description": "Generic EIP-3009 wallet with median ticket > $100 USD and no verified x402 facilitator channel"
        }
      }
    },
    "legacyBaseline": {
      "version": "trust-v1",
      "preservedForAbComparison": true
    }
  },
  "pricing": {
    "openSourceSdk": "MIT open-source protocol, local deterministic Edge Guard SDK (@fiderail/guard, @fiderail/core, @fiderail/seller, sdks/python), and self-hostable MCP/API stack — $0 forever (no thresholds, no lock-in)",
    "publicFreeTier": "Permanent free tier on the public hosted node (api.fiderail.com) with fair-use per-IP rate limits (120 req/min general API & /mcp, 6 req/min grader, 10 req/min telemetry), best-effort availability (no SLA), and permanently free /healthz, /v1/history, /v1/diagnose, /.well-known/*, /reports/1m-audit, and /docs",
    "overageMetering": "Automatic HTTP 402 pay-per-call overage at $0.002 USDC on GET /v1/trust/{chain}/{address} when free-tier quota is exceeded or operator-configured x402Enforce is enabled (zero accounts, zero API keys, zero custody)",
    "enterpriseSupport": "Dedicated high-QPS throughput, multi-region read nodes, drift webhooks, VPC/BYOC deployment, and SLA contracts via founder@fiderail.com (zero black-box score overrides)",
    "meteredOracleUsdc": 0.002,
    "meteredEndpoint": "/v1/trust/{chain}/{address}"
  },
  "restEndpoints": [
    {
      "method": "GET",
      "path": "/healthz",
      "summary": "Live indexer telemetry, dataset freshness, and L1/L2 health summary",
      "status": "ACTIVE"
    },
    {
      "method": "GET",
      "path": "/v1/trust/{chain}/{address}",
      "summary": "Anti-sybil credit score, confidence, dual HHI metrics, dataCoverage, associatedCredit, Bazaar services, and liveness",
      "status": "ACTIVE"
    },
    {
      "method": "GET",
      "path": "/v1/history/{chain}/{address}",
      "summary": "Delta trust score history, risk flag transitions, and latest Merkle stateRoot commitment",
      "status": "ACTIVE"
    },
    {
      "method": "GET",
      "path": "/v1/agents",
      "summary": "Paginated cross-chain credit leaderboard with channel, tier, and sort filters",
      "status": "ACTIVE"
    },
    {
      "method": "GET",
      "path": "/v1/services",
      "summary": "Search CDP Bazaar, PayAI, and Open Bazaar services enriched with trust and liveness",
      "status": "ACTIVE"
    },
    {
      "method": "POST",
      "path": "/v1/preflight",
      "summary": "Simulate pre-flight payment firewall check (ALLOW / WARN / BLOCK)",
      "status": "ACTIVE"
    },
    {
      "method": "POST",
      "path": "/v1/diagnose",
      "summary": "Zero-payment x402 endpoint diagnostic grader & Open Bazaar self-submission",
      "status": "ACTIVE"
    },
    {
      "method": "POST",
      "path": "/v1/trust-provider/before-settle",
      "summary": "x402#2299 Trust-Provider onBeforeSettle behavioral risk hook",
      "status": "ACTIVE"
    },
    {
      "method": "POST",
      "path": "/v1/telemetry/delivery",
      "summary": "Report L2 post-payment delivery telemetry (fiderail-sar-v2 required, deduplicated, unverified negative claims quarantined)",
      "status": "ACTIVE"
    },
    {
      "method": "POST",
      "path": "/mcp",
      "summary": "Remote Streamable HTTP MCP (JSON-RPC 2.0) endpoint exposing all FideRail trust, pre-flight firewall, and diagnostic tools",
      "status": "ACTIVE"
    },
    {
      "method": "GET",
      "path": "/.well-known/fiderail-keys.json",
      "summary": "Public Ed25519 verification keys and canonical signing format for Merkle stateRoot commitments",
      "status": "ACTIVE"
    },
    {
      "method": "GET",
      "path": "/.well-known/fiderail-manifest.json",
      "summary": "Machine-readable Single Source of Truth (SSOT) manifest for FideRail v2.3.5",
      "status": "ACTIVE"
    },
    {
      "method": "GET",
      "path": "/reports/1m-audit",
      "summary": "Self-hosted stratified 1M+ On-Chain Agent Payments Audit Report (HTML/Markdown)",
      "status": "ACTIVE"
    }
  ],
  "mcpTools": [
    {
      "name": "check_agent_trust",
      "status": "ACTIVE"
    },
    {
      "name": "preflight_payment_guard",
      "status": "ACTIVE"
    },
    {
      "name": "list_audited_agents",
      "status": "ACTIVE"
    },
    {
      "name": "discover_trusted_services",
      "status": "ACTIVE"
    },
    {
      "name": "guarded_x402_fetch",
      "status": "ACTIVE"
    },
    {
      "name": "diagnose_x402_endpoint",
      "status": "ACTIVE"
    }
  ],
  "canonicalDocs": [
    "README.md",
    "CHANGELOG.md",
    "SECURITY.md",
    "docs/01-scope-and-boundaries.md",
    "docs/02-architecture.md",
    "docs/03-trust-model.md",
    "docs/04-operations.md",
    "docs/05-mcp-tools-and-limits.md"
  ]
}