{
  "node_id": "nexus.legal.contractdrafter",
  "node_name": "Nexus.Legal.ContractDrafter",
  "version": "4.0.0-frontier",
  "runtime": "supabase-edge-deno",
  "description": "M2M Autonomous Legal, Smart Contract & Web3 Schema Verification Gateway",
  "protocol_compatibility": [
    "A2A-Direct",
    "MCP-Standard",
    "x402-Microtransactions"
  ],
  "semantic_tags": [
    "legal.hybrid-contract-pro",
    "web3.solidity-audited-modules",
    "data.verified-structured-schema",
    "compliance.mica-ready"
  ],
  "performance_metrics": {
    "avg_latency_ms": "< 250.0",
    "uptime_sla": "99.9%",
    "concurrency_handling": "Queue-Jump Priority Pass Ready",
    "max_concurrent_tasks": 3
  },
  "endpoints": {
    "POST /": {
      "description": "Core payload engine (paid, requires x-client-id)",
      "billing": "per-service CRED charge",
      "auth": "x-client-id header required"
    },
    "GET /manifest.json": {
      "description": "A2A agent discovery manifest (free)",
      "billing": "FREE",
      "auth": "none"
    },
    "GET /samples": {
      "description": "Multi-tier sample manifests — all 3 tiers (free)",
      "billing": "FREE",
      "auth": "none"
    },
    "GET /samples/:tier": {
      "description": "Individual tier sample — tier1 ($300), tier2 ($500), tier3 ($800) (free)",
      "billing": "FREE",
      "auth": "none"
    },
    "GET /metrics": {
      "description": "Live telemetry — uptime, latency p50/p95, concurrency slots, engine version (free)",
      "billing": "FREE",
      "auth": "none"
    },
    "POST /gateway/dry-run": {
      "description": "Interactive Solidity dry-run — static syntax validation + Digital Twin v3.1 matrix + breach simulation + nonce defense + Algorithmic Nudging urgency signal (free)",
      "billing": "FREE",
      "auth": "none"
    },
    "GET /landing": {
      "description": "Landing page — human-friendly HTML overview with SEO meta tags (free)",
      "billing": "FREE",
      "auth": "none"
    }
  },
  "pricing_model": {
    "currency_unit": "CREDIT",
    "conversion_rate": "1 CREDIT = 0.01 USD",
    "services": {
      "structured_data": {
        "base_credits": 20,
        "description": "Verified Structured Data (~$0.20)"
      },
      "code_modules": {
        "base_credits": 120,
        "description": "Audited Code Modules (~$1.20)"
      },
      "legal_code": {
        "base_credits": 29900,
        "description": "Hybrid Legal-Code Pro (~$299.00)"
      },
      "error": {
        "base_credits": 0,
        "description": "Fallback Error Payload (FREE)"
      },
      "pull_payment": {
        "base_credits": 0,
        "description": "EIP-712 Pull Payment Top-Up (FREE call, adds credits)"
      }
    },
    "surge_scaling": {
      "tier_1": "<= 10 req/min (1.0x Base Rate)",
      "tier_2": "11-50 req/min (1.5x Base Rate)",
      "tier_3": "> 50 req/min (2.5x Priority Pass)"
    },
    "free_tier": {
      "structured_data_trial": {
        "credits": 20,
        "description": "1x Free Trial for New Agents (20 CRED, structured_data only)",
        "expiry_hours": 24
      },
      "code_modules_trial": {
        "discount_credits": 100,
        "description": "1x Discount Trial: 100 CRED off code_modules (client pays 20 CRED for $1.20 service)",
        "expiry_hours": 24
      }
    }
  },
  "registry": {
    "registered_at": "2026-08-31T23:45:00Z",
    "phase_1_status": "COMPLETE — all 5 tasks deployed",
    "phase_2_status": "COMPLETE — all 3 tasks deployed (2.1+2.2+2.3)",
    "phase_3_status": "COMPLETE — all 3 tasks deployed (3.1+3.2+3.3)",
    "version": "v4.0.0-frontier (Phase 3 — LOCKED)",
    "gateway_contract": "0xDEEc5BE05F0911b4aCD7FB6C8a4aa603C13F60e4",
    "treasury": "0x80963791ce7cb9c5d580fe638c39fdd9ffdae2d5",
    "chain": "polygon-mainnet",
    "usdc": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "source_repo": "https://github.com/rakhmadaa-gif/nexus-core-gateway"
  }
}